On 01/10/2017 12:09 PM, Santhanam, Visagan wrote:


While iam converting the word document to DOCBOOK 5.0 book, my text
formatting is lost. especially the all the new line characters are
missing. Is this the known issue or is there any workaround for the same?


Out of the box, this is normal. Word To XML (w2x for short) cannot make a difference between paragraphs where whitespace and newlines are significant (e.g. code snippets) and ordinary paragraphs.

You need to pass special options to w2x to solve this kind of problem. See "Converting custom paragraph styles to semantic tags", http://www.xmlmind.com/w2x/_distrib/doc/manual/index.html#convert_paragraph_styles

For example, in our manual.docx, we use a custom MS-Word paragraph style called "ProgramListing" to style code snippets. To support "ProgramListing"-styled paragraphs, we had to pass to w2x the following options:

-p edit.prune.preserve p-ProgramListing

-p edit.blocks.convert "p-ProgramListing span g:id='pre' g:container='pre'"

However, if you use desktop app w2x-app, the simplest is to use the *setup* *assistant* for that. See http://www.xmlmind.com/w2x/_distrib/doc/w2x_app_help/options_wizard.html



--
XMLmind Word To XML Support List
w2x-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/w2x-support

Reply via email to