Page 1 of 1

Copy paste Microsoft words to docbook xml

Posted: Wed Nov 16, 2016 6:55 am
by boyboy
Hi,

I am using the XML Editor, copying Microsoft words content to docbook xml using Author interface.
The text color and images are not pull over.

Is there any way to achieve this?
Thank you.

Re: Copy paste Microsoft words to docbook xml

Posted: Wed Nov 16, 2016 6:15 pm
by alex_jitianu
Hello,

The Smart Paste support is configurable. Underneath the scenes there is an XSLT that converts the HTML flavor put into clipboard into the specific format. In case of DocBook, this file is

Code: Select all

{oxygenInstallDir}/frameworks/docbook/resources/xhtml2db5Driver.xsl
. So what you should do is:
1. First decide if the information you want (text color and images) is present inside the HTML content put by Word into the Clipboard when content is copied. A clipboard inspector can do that.
2. Secondly, if that information is there you can change xhtml2db5Driver.xsl so that it converts it into DocBook.

If you can send us a sample file on support@oxygenxml.com then we can also take a look at it (perhaps is something that we should handle by default). Together with the sample file please tell us what version of Microsoft Word (or what other word processor ) you are using and what section we should copy for testing.

Best regards,
Alex