summaryrefslogtreecommitdiffstats
path: root/Doc/tools/sgmlconv
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused "import curses".Guido van Rossum2000-05-241-1/+0
|
* Don't insert extra indentation before <title> elements.Fred Drake2000-01-201-12/+12
|
* rewrite_descriptor(): Fixup conversion of arguments (simpler).Fred Drake1999-11-231-12/+35
| | | | | | | | join_adjacent_elements(): Hack to merge adjacent instances of <option>; the source \programopt with GNU-style long options created problems with LaTeX2HTML; this removes the evil workaround, which should never be necessary from structured documents(!).
* Don't rename \var to <varname>; DocBook is too verbose here.Fred Drake1999-11-231-4/+9
| | | | | | | | Do adopt DocBook's <command>, <option>, <envar> names for \program, \programopt, \envvar. Add \filenq --> <filename quote="no"> (it has to go somewhere, at least for now).
* Added citetitle and programopt.Fred Drake1999-11-091-1/+8
| | | | | | Made var get renamed to varname (more like DocBook). Other names should probably be changed as well; still waiting for the DocBook book to arrive.
* Update the instructions slightly.Fred Drake1999-08-261-4/+44
| | | | | Add a new section describing what each of the tools does, in general terms.
* Removed; no longer needed now that the other tools can handle entityFred Drake1999-08-261-24/+0
| | | | references directly.
* feed(): Added support for ESIS '&' lines.Fred Drake1999-08-261-1/+4
|
* Remove use of fixgenents.sh; no longer needed.Fred Drake1999-08-261-5/+4
|
* Specify: \geq --> &geq;Fred Drake1999-08-261-4/+12
| | | | | | \leq --> &leq; \LaTeX --> LaTeX (just text) \TeX --> TeX (just text)
* Conversion.subconvert(): Added support for "entityref" parametersFred Drake1999-08-261-0/+7
| | | | | | | (must be named in the conversion spec.). TableParser.start_entityref(): New method. Use to support creating entity references via the conversion specification.
* write_esis(): Added support for ENTITY_REFERENCE nodes.Fred Drake1999-08-261-40/+44
|
* convert(): Add support for ESIS '&' lines, and make sure we don'tFred Drake1999-08-261-0/+5
| | | | silently ignore unrecognized lines.
* rewrite_descriptor(): Fix bug that dropped the first TEXT node fromFred Drake1999-08-201-45/+36
| | | | | | | | | | | | | | | <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.
* remap_element_names(): Only used for things that the new conversionFred Drake1999-08-031-32/+6
| | | | | | | | | | | | | | engine in latex2esis.py can do, so discard it. paragraph detection & markup: Handle some of the list-like environments properly, picking up paragraphs inside list items. (Only changed a few element-sets used for recognition.) fixup_refmodindexes_chunk(): Use the right attribute to determine the module a <ref*modindex/> element is referring to. convert(): Don't call remap_element_names(); it was removed.
* The new conversion engine supports more of the table re-writing thanFred Drake1999-08-031-6/+9
| | | | the old one, so use it.
* bwrite(), ewrite(): Helpers for diagnostic output; essentially theFred Drake1999-08-021-30/+61
| | | | | | | | | | | | | | | | | | | | | | | | | same as sys.stderr.write(), but bwrite() will make it bold if stderr is a tty (for visibility). Use these everywhere instead of accessing sys.stderr.write() directly. find_all_child_elements(): Find all elements by type name that are immediate children of another. cleanup_synopses(): Receive both the document and fragment objects as parameters; if only the document is passed, synopsis information is never found since it's in the fragment! build_para(): Add a chunk of code to ensure that a newline always follows the </para> end-tag. Not really important, but makes presentation consistent for authoring/ maintenance. fixup_bifuncindexes_chunk(): Use find_all_child_elements() instead of find_all_elements() so we don't work with too many levels at once; that could cause DOM exceptions with the <elem>.removeChild() method.
* Mostly minor changes.Fred Drake1999-08-021-52/+23
| | | | | | | | | Removed some obsolete commented-out code. Merged BaseConversion into Conversion since there's only one conversion process now. Remove push/pop of output stream; it's no longer needed.
* This doesn't need to do nearly as much for the new conversion, soFred Drake1999-08-021-24/+0
| | | | simplify.
* A few small improvements to the conversion.Fred Drake1999-08-021-3/+7
|
* Ripped out the old conversion.Fred Drake1999-07-291-367/+7
|
* Added a few more passes through the document fragment. Not actuallyFred Drake1999-07-291-11/+126
| | | | very interesting.
* Massive changes.Fred Drake1999-07-291-38/+478
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Separate the Conversion class into a base and a subclass; the subclass is pretty minimal but the separation is useful for.... NewConversion: New class that implements a somewhat different approach to the conversion. This uses a table of instances (rather than tuples) that have more information than the tuples used for the older conversion procedure. This allows a lot more control over the conversion, and it seems to be pretty stable. TableEntry, Parameter: New classes that are used to build the conversion specification used by NewConversion. TableParser: xmllib.XMLParser subclass that builds a conversion specification from an XML document. load_table(): Convenience function that loads a table from a file. main(): Added flags --new and --old; these select which conversion is used. The default is --new. Several fixes have been made in the old conversion as well; these were done before writing & switching to the new conversion, and should be archived. The next checkin of this file will discard the old conversion; is is kept in this checkin to allow it to be retrieved if needed, and to avoid lossing the bugfixes that have been made to it in the interim.
* Minor updates.Fred Drake1999-07-291-4/+8
|
* Use the (new) buildFragment() method of the EsisBuilder rather thanFred Drake1999-07-291-15/+1
| | | | implementing it all here.
* Some minor cleanup.Fred Drake1999-07-291-20/+18
|
* Conversion specification, used by a new path through latex2esis.py.Fred Drake1999-07-291-0/+631
| | | | | The specific markup conversion is coded here instead of an even more cryptic table in the code of latex2esis.py.
* Minor update.Fred Drake1999-07-291-3/+6
|
* Make the default target xml instead of sgml.Fred Drake1999-07-221-2/+2
|
* Make the default target xml instead of sgml.Fred Drake1999-07-221-2/+4
| | | | | | Use a temporary file to pass results from latex2esis.py to docfixer.py; this makes for better error detection by make (if the first pipeline stage fails, make wasn't catching it).
* Enhanced docstring and some comments.Fred Drake1999-05-191-8/+21
| | | | | | _begin_macro_rx: Fixed RE that didn't properly allow a space after the name of the macro. This affects the conversion of the tutorial.
* Modify to perform "---" to "&mdash;" conversion outside ofFred Drake1999-05-181-7/+16
| | | | | verbatim-like environments. The list of verbatim-like environments is a defined by a variable in main().
* Remove the "---" to "&mdash;" conversion; this is wrong in verbatimFred Drake1999-05-181-1/+0
| | | | environments. Move the conversion to esis2sgml.py.
* Lots of adjustments to deal with the document content now being storedFred Drake1999-05-101-91/+94
| | | | in a fragment rather than the main document object.
* Some more fixes.Fred Drake1999-05-101-11/+16
| | | | Add controls for some of the esoteric indexing macros.
* ExtendedEsisBuilder.push(): Override inherited definition. We don'tFred Drake1999-05-071-3/+17
| | | | | | want to push nodes into the document, but into a document fragment, since we're not necesarily working with something that's well-formed.
* Fix some bugs introduced in the previous checkin.Fred Drake1999-05-071-9/+13
|
* Define & use a Conversion object. It's still really ugly, but atFred Drake1999-05-071-227/+255
| | | | least there's a token object in here now! ;-)
* Add support for <platform>, some cleanup of module section afterFred Drake1999-03-111-0/+20
| | | | creating the <moduleinfo>.
* Mark <verbatim> elements that represent interactive sessions; theseFred Drake1999-02-181-0/+11
| | | | become <interpreter-session> elements.
* Minor adjustments to reflect esis2sgml.py changes.Fred Drake1999-02-181-1/+2
| | | | Added "esis" target to only generate the ESIS data.
* Some adjustments, mostly to make it more general.Fred Drake1999-02-181-21/+97
|
* Use a common definition for $(SUBMAKE) instead of repeating everythingFred Drake1999-02-151-19/+16
| | | | all over the place.
* Updated comments on version of XML package needed.Fred Drake1999-01-291-1/+2
|
* Added support to handle \versionadded in a reasonable way.Fred Drake1999-01-291-9/+19
|
* Be a little smarter on some attribute values, making an assumption aboutFred Drake1999-01-291-1/+4
| | | | the DTD.
* fixup_descriptors(): Change the way we look for descriptor nodes;Fred Drake1999-01-291-4/+15
| | | | | this takes 5 minutes off the conversion of the whole tree by reducing the number of tree-traversals from 14 to 1.
* Added the Doc/sgml/ directory to the tarball.Fred Drake1999-01-291-1/+1
|
* Rewrite code that converts the little descriptor environments to buildFred Drake1999-01-291-53/+114
| | | | | the right <signature>s and <description>. This seems to work a lot better now!
* Added table entries for \funcline and \funclineni.Fred Drake1999-01-291-0/+2
|