On 10/09/2014 10:05 PM, Jeff Hooker wrote:

I’m converting a large quantity of Word 2010 documents to Docbook XML
using the Paste From Word feature in XXE 6.0.

The documents have been very tightly controlled in Word, so they are
unusually clean and, for the most part, convert to XML extremely well.

Thanks for the compliments.



The only important exceptions are the code samples.


Yes. I had to a similar "code samples" problem for a specific MS-Word document and managed to solve it using a short customization of "Paste From Word".



I’ve tried a number of approaches to styling the code samples in the
Word document to give XMLmind clues about what they are, but it still
creates them as a series of simple para elements.

This is normal. MS-Word has no concept of "programlisting", not even predefined styles for it.



If I must I will
script a post-processing step to address this, but though I’d ask if
there was some configurable way of communicating style information to
the Paste From Word feature.


Sure. However how to do this is currently not documented. The good news is that we are documenting how "Paste From Word" works, how it can be adapted to your MS-Word documents and how to use it to import MS-Word docs into XML document types other than XHTML, DITA and DocBook. This documentation will be available in XXE v6.1, which should be released in about a week.


---
PS: FYI, the "Paste From Word" very complex table bug you have reported, which caused XXE to hang while rendering the imported table, is solved in XXE v6.1.


---
PS 2: As of XXE v6.1, "Paste From Word" in a DocBook document creates by default CALS tables. Previously, it created HTML tables (which are also supported by DocBook).

--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to