Petr Nalevka wrote:
> 
> I very much appreciate the makeParagraphs command in XML Mind. I have
> implemented a simple command to convert plain text into DocBook
> paragraphs. This is a great feature which allows me to copy website text
> or text from Word processor and integrate it into my DocBook document
> with two clicks.
> 
> I tried to create a similar paste command for DocBook itemized lists.
> But here I was not so succesful.
> 
> The idea is:
> 1) to copy several lines of text
> 2) insert an empty list using XML Mind DocBook Icons
> 3) paste the plain text into the list as <listitem>s
> 
> Unfortunately XML Mind does not allow me to INSERT into an
> <itemizedlist>. The only workaround I found was to create a dummy
> listitem first and then past the lines (wrapped by listitems) AFTER it.
> 
> Also it would be great not to stop at simple wrapping of paragraphs. If
> the makePragaraphs command would have more parameters (for example line
> separator and column separator) I can imagine it would be simple to copy
> a spreadsheet from let say Open Office as a DocBook table.
> 
> But maybe I have missed something in the commands and it is possible to
> implement such behavior?
> 

No, you did miss anything. It is of course possible, and even easy, to
implement such commands (makeListItems, makeTableRows, etc). You just
need to program them in Java[tm]. See "How to avoid writing a validating
command"
http://www.xmlmind.com/xmleditor/_distrib/doc/dev/command2.html#d0e3413


Reply via email to