cpython/Doc/tools/sgmlconv
Fred Drake aaed9710e9 create_module_info(): New function: Modify a <section> to create a
<moduleinfo> element based on various meta information, and
	strip some cruftiness.  This is more usable for information
	extraction, and organizes the information more clearly.

cleanup_synopses():  Rewrite to use create_module_info(), so this
	will work with multi-rooted "documents".
1998-12-10 20:25:30 +00:00
..
README General comments on what's here and how to try it out. Note 1998-12-02 17:21:35 +00:00
docfixer.py create_module_info(): New function: Modify a <section> to create a 1998-12-10 20:25:30 +00:00
esis2sgml.py Don't pass around a list of known empty elements, since the ESIS 1998-12-10 18:31:37 +00:00
esistools.py Utility functions and misc. classes used in handling ESIS data. 1998-12-01 19:00:58 +00:00
fixgenents.sh Handle SGML variant as well as XML variant. SGML is *much* more 1998-12-10 04:56:00 +00:00
latex2esis.py Use esistools. 1998-12-01 19:04:12 +00:00
make.rules Support conversions to both SGML and XML; SGML is the "default". 1998-12-01 19:05:56 +00:00

README

These scripts and Makefile fragment are used to convert the Python
documentation in LaTeX format to SGML.  XML is also supported as a
target, but is unlikely to be used.

This material is highly preliminary and incomplete.  The XML omnibus
package developed by the Python XML-SIG is required.  See
http://www.python.org/sigs/xml-sig/ for more information on the
package.

To convert a document to SGML:

	cd Doc/<document-dir>
	make -f ../tools/sgmlconv/make.rules TOOLSDIR=../tools

To generate XML instead, use:

	cd Doc/<document-dir>
	make -f ../tools/sgmlconv/make.rules TOOLSDIR=../tools xml

Note that building the second target format is fast because both
conversions use the same intermediate format (an ESIS event stream).

Please send comments and bug reports to python-docs@python.org.