OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: SV: docbook -> docx

Hello Fredrik,


Just for completeness I will also mention that if the documents always going to look the same word have the possibility to import xml and put into a document at predefined positions. I have not tried it myself so cannot speak about the user friendliness of this and in addition some XSLT transform might be needed to conform to some format so as previously stated it’s more for completeness.





Från: David Goss [mailto:goss@fstrf.org]
Skickat: den 23 januari 2015 16:04
Till: Peter Lavin
Kopia: Fredrik Unger; docbook-apps
Ämne: Re: [docbook-apps] docbook -> docx


There is also the roundtrip stylesheets in the Docbook XSL distribution. These require that you use a subset of docbook elements.



I haven't personally tried the roundtrip stuff. Whenever a non-technical person has asked for an "editable" version of a docbook file, I usually just copy/paste the HTML into Word, and explain the caveat that they should just ignore the formatting.

David Goss, Technical Writer
Frontier Science |

4033 Maple Rd, Amherst, NY 14226

(716) 834-0900 extension 7204


From: "Peter Lavin" <lavin.peter@gmail.com>
To: "Fredrik Unger" <
Cc: "docbook-apps" <
Sent: Friday, January 23, 2015 9:03:12 AM
Subject: Re: [docbook-apps] docbook -> docx


Hi Fredrik,

pandoc does a decent job of converting DocBook to .docx.




http://johnmacfarlane.net/pandoc/  and for a detailed review,





On 23 January 2015 at 08:45, Fredrik Unger <fred@tree.se> wrote:


I am looking into generating reports that has to be Word 2010.

Now I am able to get reasonable results with a simple test file using python-docx, currently just writing the report in python.

My plan would be :
- Generate/write docbook file
- Create docx file with styles as template in Word 2010
- Translate docbook -> docx using python-docx building a
  small python library

This gives me the freedom to generate the reports in docbook xml using
the tools in python, xml, templates etc.

My current document contains, text, tables, images which all are supported in python-docx.

Are there any better alternatives to this approach ?


Fredrik Unger

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]