Copy paste Microsoft words to docbook xml

boyboy
Posts: 2
Joined: Wed Nov 16, 2016 6:45 am

Copy paste Microsoft words to docbook xml

Post by boyboy » Wed Nov 16, 2016 6:55 am

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.

alex_jitianu
Posts: 742
Joined: Wed Nov 16, 2005 11:11 am

Re: Copy paste Microsoft words to docbook xml

Post by alex_jitianu » Wed Nov 16, 2016 6:15 pm

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

Post Reply