Tools/Scripts/texi2html.py
Robert Pyron
rpyron at alum.mit.edu
Mon Apr 8 16:40:09 EDT 2002
I have made some changes to Tools/Scripts/texi2html.py that I think
might be useful for others...
I wanted to produce a Windows HTMLHelp (.CHM) file for MySQL.
To that end, I made the following modifications:
1. BUGFIX: In function makefile(), strip blanks from the nodename.
This is necesary to match the behavior of parser.makeref() and
parser.do_node().
2. I modified the original texi2html code to add support for
the following items:
@uref URL reference
@image image file reference
@multitable output an HTML table
accents partial support for accents, to match MAKEINFO output
3. I added a new command-line option, '-hh basename', to specify
HTML Help output. This will cause three files to be created
in the current directory:
`basename`.hhp HTML Help Workshop project file
`basename`.hhc Contents file for the project
`basename`.hhk Index file for the project
When fed into HTML Help Workshop, the resulting file will be
named `basename`.chm.
4. A new class, HTMLHelp, to accomplish item 3.
My version of texi2html.py can be found at:
http://www.dullandboring.com/pystuff/index.htm
Bob Pyron
More information about the Python-list
mailing list