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: RE: [docbook-apps] anyone have a windows-based publishing infrast ructure?

> -----Original Message-----
> From: Bob Stayton [mailto:bobs@sco.com]

> > The approach of Mark Pilgrim 
> (http://www.diveintopython.org/about.html) uses
> > the Python Win32 modules and Word itself as a COM object to 
> produce real
> > Word documents. It worked for me (well, a simple test 
> document) but I've
> > found it useless: There is no way back. 
> I followed this link, but it does not mention anything
> about Word.  It says the book was produced using the
> DocBook XSL stylesheets, HTMLDoc, and w3m.  Was there
> something in the downloaded tool files that used Word?

Yes, there you'll find a python script named "makerealworddoc.py". Sorry for
not making it clear in the first posting. Here's the docstring of this

"""Convert HTML page to Word 97 document

This script is used during the build process of "Dive Into Python"
(http://diveintopython.org/) to create the downloadable Word 97 version
of the book (http://diveintopython.org/diveintopython.doc)

Looks for 2 arguments on the command line.  The first argument is the input
file; the second argument is the output (.doc) file.

Only runs on Windows.  Requires Microsoft Word 2000.

Safe to run on the same file(s) more than once.  The output file will be
silently overwritten if it already exists.

Mark Pilgrim uses the single HTML output of the docbook XSL stylesheets and
converts it into a Word document (actually he lets Word do the conversion).
This might not be the best solution for complicated documents, but I was
impressed by the result he achieves with this real simple script.

Gisbert Amm

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