Tools/Scripts/texi2html.py
Robert Pyron
rpyron at alum.mit.edu
Sat Apr 13 00:19:43 EDT 2002
On Mon, 08 Apr 2002 20:40:09 GMT, Robert Pyron <rpyron at alum.mit.edu>
wrote:
>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
Update, 4/12/2002
A few more changes:
BUGFIX fixed KeyError in end_ifset (well, I may have just made it go
away, rather than fix it)
BUGFIX allow @menu and menu items inside @ifset or @ifclear
add support for @vtable
BUGFIX changed the way I am storing and outputting node information
for htmlhelp
The program now handles documentation for MySQL (my original goal),
TexInfo, GCC, and glibc.
By the way, I would be pleased and honored if my modifications were
to be included in the standard distribution. How do I submit them
for consideration?
Bob Pyron
More information about the Python-list
mailing list