This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] anyone have a windows-based publishing infrast ructure?
- From: Gisbert Amm <gia at webde-ag dot de>
- To: 'Bob Stayton' <bobs at sco dot com>
- Cc: 'docbook apps list' <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 10 Sep 2003 09:06:18 +0200
- 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
script:
"""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
(HTML)
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.
Regards,
Gisbert Amm
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.