summaryrefslogtreecommitdiffstats
path: root/Doc/tools/sgmlconv
Commit message (Collapse)AuthorAgeFilesLines
* Simplify a helper by returning fewer values.Fred Drake2001-09-251-5/+4
|
* Change the command lines to use a similar "phrasing" to that used in theFred Drake2001-07-181-15/+15
| | | | | other documentation makefiles. This is probably not sufficient to run the conversion on Windows, but goes at least part way.
* Change the target name for \kbd.Fred Drake2001-07-141-1/+1
|
* Add conversion information for the grammar production support (preliminary).Fred Drake2001-07-091-0/+16
|
* Move & update a comment.Fred Drake2001-07-071-4/+12
| | | | Add support for the \ulink macro.
* Add entries for recently defined markup.Fred Drake2001-07-061-0/+23
|
* Simplification to mirror a better conversion specification and moreFred Drake2001-07-061-6/+1
| | | | powerful latex2esis.py.
* Allow optional arguments to LaTeX macros to span lines. This is legal inFred Drake2001-07-061-1/+1
| | | | | LaTeX and we have at least one occurance of that in the content, so this script needs to support it as well.
* encode(): Handle Latin-1 input characters better.Fred Drake2001-04-211-3/+7
|
* Add support for <memberline/> (needs markup improvement!).Fred Drake2001-04-211-1/+5
| | | | | | Update <versionadded/> to recent addition of optional explanatory text; make the explanation text take the same attribute name for both <versionadded/> and <versionchanged/>.
* Update the XML conversion specification.Fred Drake2001-04-101-0/+2
|
* Allow the <author/> element to appear before a paragraph without beingFred Drake2001-03-291-1/+1
| | | | made a part of the paragraph.
* Remove the annoying __version__ definitions.Fred Drake2001-03-233-4/+0
|
* Lots of small changes to make this work with the Python DOM bindingsFred Drake2001-03-231-91/+95
| | | | | | | (minidom in particular); it was using PyDOM which is now obsolete. Only write the output file on success -- this avoids updating the timestamp on the file on failure, which confuses "make".
* Pick up the "encode" function from esistools instead of defining our ownFred Drake2001-03-231-15/+9
| | | | | | (broken) version. Remove Conversion.err_write() -- use dbgmsg() consistently.
* Re-write to no longer depend on an old version of PyXML. This nowFred Drake2001-03-231-46/+273
| | | | | | | implements a SAX XMLReader interface instead of the old Builder interface used with PyDOM (now obsolete). This only depends on the standard library, not PyXML.
* Pick the "escape" function from the standard library instead of from PyXML.Fred Drake2001-03-231-1/+1
|
* Add conversions for more of the markup -- not all of this was around whenFred Drake2001-03-231-1/+32
| | | | this file was written!
* Conversion.write_ordinal(): Not used, remove it.Fred Drake2000-11-221-4/+0
|
* Convert the LaTeX "tie" (~) to a simple space.Fred Drake2000-11-221-4/+40
| | | | | | Add support for some combining characters. Remove unnecessary imports and dependencies on PyXML and esistools.
* Update to reflect the process changes.Fred Drake2000-11-221-21/+6
| | | | | Remove the SGML aspects; there's too much XML momentum to worry about the SGML flavor at this point.
* Update the rules to separate the two phases for the ESIS generation,Fred Drake2000-11-222-22/+27
| | | | entirely so that debugging can be performed independently.
* Add support for (relatively) recent additions and changes to python.sty,Fred Drake2000-11-221-2/+30
| | | | and one more standard LaTeX macro.
* Note that readframes() returns data in linear format, even if the originalFred Drake2000-11-171-0/+38
| | | | | | | is encoded in u-LAW format. Based on suggestion from Anthony Baxter <anthony_baxter@users.sourceforge.net>. This closes bug #122273.
* Martin von Loewis <loewis@informatik.hu-berlin.de>:Fred Drake2000-07-011-1/+1
| | | | Correct typo that caused a well-formedness failure.
* 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.