summaryrefslogtreecommitdiffstats
path: root/Doc/tools/sgmlconv/latex2esis.py
Commit message (Collapse)AuthorAgeFilesLines
* Delete the LaTeX doc tree.Georg Brandl2007-08-151-566/+0
|
* Run 2to3 over Doc/tools/.Collin Winter2007-03-211-3/+3
|
* SF patch 1631942 by Collin Winter:Guido van Rossum2007-01-101-1/+2
| | | | | | (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-1/+1
|
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-9/+9
| | | | From SF patch #852334.
* Modernization: Use string methods, use str instead ofFred Drake2002-10-161-17/+14
| | | | | types.StringType, inherit from list instead of UserList.
* When adding a name to the table of macros and environments, make sure itFred Drake2002-04-101-1/+4
| | | | | is not already present. If it is, raise an exception, since that should not happen in a well-defined conversion.
* Fix bug in command line handling, noted by Fredrik Lundh.Fred Drake2002-04-051-1/+1
|
* Drop xmllib in favor of SAX.Fred Drake2001-11-301-21/+30
|
* Adjust input pre-processing so that a comment on the last line does notFred Drake2001-11-191-1/+3
| | | | break the processor; this will do the right thing.
* Convert most uses of the string module to string methods.Fred Drake2001-09-281-5/+5
| | | | (string.join() lives!)
* Simplify a helper by returning fewer values.Fred Drake2001-09-251-5/+4
|
* 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.
* 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.
* 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.
* 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.
* 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.
* Ripped out the old conversion.Fred Drake1999-07-291-367/+7
|
* 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.
* 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.
* Some more fixes.Fred Drake1999-05-101-11/+16
| | | | Add controls for some of the esoteric indexing macros.
* 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! ;-)
* Added table entries for \funcline and \funclineni.Fred Drake1999-01-291-0/+2
|
* 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
|
* Shorten the name of the <rfc> "number" attribute to "num".Fred Drake1999-01-141-1/+1
|
* Elaborate a comment on the format of the table that drives theFred Drake1999-01-141-1/+5
| | | | conversion.
* Adjustments to allow elements with subelements as parameters. This isFred Drake1999-01-141-95/+145
| | | | | | | | | used to deal with the table headings and entries. An additional flag in the element table is used to indicate elements which have no "general" content, but which do have subelement content. These must be flagged distinctly from empty elements. Currently used for \lineii, \lineiii, and \lineiv.
* convert(): Make sure no line has trailing whitespace. (docfixer.pyFred Drake1999-01-071-3/+5
| | | | | checks for \n\n as a paragraph separator, LaTeX allows white space between the newlines.)
* Use esistools.Fred Drake1998-12-011-29/+25
| | | | Lots of changes to the conversion table.
* Several small adjustments.Fred Drake1998-11-301-60/+88
|
* The & character is also escaped using \.Fred Drake1998-11-231-1/+1
|
* Fix comment regex so we don't screw up structured comments withFred Drake1998-11-231-1/+1
| | | | different internal indentation levels.
* Moved into tools/sgmlconv/.Fred Drake1998-11-231-0/+337