Next in thread → Next in month →

Re: [docbook-apps] docbook -> docx

From
Camille Bégnis <>
Date
2015-01-25T14:42:01+00:00
ID
Thread
Re: [docbook-apps] docbook -> docx
Hello,

      

      I advise the XSL-FO converter from XMLMind: http://www.xmlmind.com/foconverter/

      It's reasonably priced and does a very good job.

      

      However one limitation is that the output is made out of XSL-FO so
      all the structure information is lost (basically the Word output
      does not use styles)

      

      HTH,

      

      

        

          
NeoDoc

          
Camille
                  Bégnis

           
          


           
          
Tél: +33
                (0)4.42.52.24.20

           
          
5, rue de la Touloubre

           
          
13770
                Venelles

           
          
France

           
          
http://www.neodoc.fr/

        

      

      Le 23/01/2015 16:03, David Goss a écrit :

    

    
      

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

        

        

        

        
http://www.sagehill.net/docbookxsl/MSWord.html

        

        

        
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 | www.fstrf.org

          
4033 Maple Rd, Amherst, NY 14226

          
(716) 834-0900 extension 7204

          
 

        

        

        
        
From: "Peter Lavin" <>

          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.

            

            
See:

            

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

            

            

            
http://www.objectorientedphp.com/articles/pandoc.html

            

            

            
Peter

            

              
On 23 January 2015 at 08:45,
                Fredrik Unger <> wrote:

                Hi,

                  

                  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 ?

                  

                  

                  Thanks,

                  

                  Fredrik Unger

                  

                  ---------------------------------------------------------------------

                  To unsubscribe, e-mail: 

                  For additional commands, e-mail: 
Next in thread → Next in month →