summaryrefslogtreecommitdiffstats
path: root/Doc/tools/sgmlconv
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove use of fixgenents.sh; no longer needed.Fred Drake1999-08-261-5/+4
|
* Specify: \geq --> ≥Fred Drake1999-08-261-4/+12
| | | | | | \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
|
* Convert <version> to &version;.Fred Drake1999-01-291-0/+2
|
* Update the docstring.Fred Drake1999-01-281-101/+159
| | | | | | | | | | | | | | Lots of changes to get the paragraph marking to work, and not go into an infinite recursion. Start to rationalize markup of method signatures; not complete. find_all_elements(): similar to getElementsByTagName(), but operates on the not-quite-legal fragments we deal with here. Simplifies several individual transforms. fixup_sectionauthors(): Convert \sectionauthor items to <author> just after the <section>'s <title>.
* Added table entries for \methodline, \methodlineni.Fred Drake1999-01-281-0/+2
|
* Constructor arguments for classes should be called <args>.Fred Drake1999-01-281-1/+1
|
* Add "term" to AUTOCLOSE.Fred Drake1999-01-221-1/+1
|
* convert(): Added parameter "autoclose", which should be a sequence ofFred Drake1999-01-201-8/+19
| | | | | | | | | | | | | | general identifiers for which closing tags will be omitted when SGML is generated. This can be used to tell the markup generator to drop stuff like </para>. Note that it needs to be possible for the closing tag to *always* be omitted for it to be included in "autoclose". main(): Added command-line option "-a" / "--autoclose" to set the list of general identifiers passed to the convert() function as the "autoclose" parameter. The list may only be specified once (not additive) and GIs should be comma-separated. The default list includes only "para".
* Modified the "sgml" and "xml" targets to stop if the sub-makes fail inFred Drake1999-01-201-3/+22
| | | | | | | | any subdirectory; don't continue with remaining subdirs. Added "api", "ext", "lib", "mac", "ref", and "tut" targets to only do submakes in those directories. This is just a lot easier to use than to cd into the subdir and use make.rules directly.
* create_module_info(): If there's a \moduleauthor, move it to anFred Drake1999-01-191-20/+18
| | | | | | <author> inside the <moduleinfo> element. Fix problems with paragraph identification.