cpython/Doc/tools/sgmlconv
Fred Drake abf8a1daa8 rewrite_descriptor(): Fix bug that dropped the first TEXT node from
<description> elements.  Add another sanity
                       check to make sure a special case only becomes
                       involved for <opcodedesc> and <opcodedescni>
                       elements.

fixup_paras_helper():  Clean up control flow.

Everywhere that checks node.nodeType==ELEMENT and node.tagName now
just check node.nodeName (nodeName is guaranteed for all node types
and will be special values that don't conflict with GIs for
non-ELEMENT nodes).  Simplifies a number of tests and improves
readability in a lot of places.
1999-08-20 14:28:29 +00:00
..
Makefile Make the default target xml instead of sgml. 1999-07-22 13:57:12 +00:00
README Minor update. 1999-07-29 22:01:39 +00:00
conversion.xml The new conversion engine supports more of the table re-writing than 1999-08-03 15:27:37 +00:00
docfixer.py rewrite_descriptor(): Fix bug that dropped the first TEXT node from 1999-08-20 14:28:29 +00:00
esis2sgml.py Some minor cleanup. 1999-07-29 22:03:52 +00:00
esistools.py Use the (new) buildFragment() method of the EsisBuilder rather than 1999-07-29 22:13:31 +00:00
fixgenents.sh This doesn't need to do nearly as much for the new conversion, so 1999-08-02 14:32:46 +00:00
latex2esis.py Mostly minor changes. 1999-08-02 14:35:25 +00:00
make.rules Minor updates. 1999-07-29 22:14:09 +00:00

README

These scripts and Makefile fragment are used to convert the Python
documentation in LaTeX format to SGML or XML.  Though I originally
thought that the XML was unlikely to be used, tool support for XML
is increasing quickly enough that it may well be the final format.
(It is the default output format when using the makefiles included
here.)

This material is preliminary and incomplete.  The XML omnibus package
developed by the Python XML-SIG is required; specifically, the version
available in the public CVS repository.  See
http://www.python.org/sigs/xml-sig/ for more information on the
package.

To convert all documents to SGML:

	cd Doc/
	make -f tools/sgmlconv/Makefile sgml

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).
This is true regardless of whether you build SGML or XML first.

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