Hello, thank you for pointing me to this guide. It was very easy for me to implement a command for pasting tables as well as whole lists. It works like charm.
But I have a different issue with the clipboard in XML Mind. Maybe the issue is very specific to my setup and OS (Ubuntu 8.10 Java 1.6.0_10-b33, Open Office 3.0 as well as 2.4). But whenever I copy a part of the spreadsheet in Open Office and return to XML Mind everything slows down massively. Even with small matrix beeing copied (80x6) I wait several seconds to get focus and if I click somewhere the caret needs another second or two to change position. With bigger matix (1000x6) the editor gets totally irresponsive. It must be something with the format of the clipboard data which Open Office uses because if I first paste the text to an plain text editor and than I copy it again, there is no issue in XML Mind. Also I tried copy really huge texts into the clipboard. Even with the whole HTML 4.01 sepcification there was no significant lag. Can you reproduce the issue with your setup? By the way the table and list paste functions are very useful. Often I need to convert a Word document into DocBook. Before I used Open Office Save As..DocBook feature which produces very ugly output which can be later automatically cleaned up a bit and later it needs a lot of manual enhancements like correct sectioning etc... With the paste commands now I simply do a serie of copy and pastes into XML Mind and everything is much simpler and faster. Thank you very much for this superb support. Best regards, Petr Nalevka On Tue, Jan 13, 2009 at 6:25 PM, Hussein Shafie <hussein at xmlmind.com> wrote: > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20090119/0b2573f9/attachment.htm

