================== Docutils History ================== :Author: David Goodger; open to all Docutils developers :Contact: goodger@python.org :Date: $Date$ :Web site: http://docutils.sourceforge.net/ :Copyright: This document has been placed in the public domain. .. contents:: Changes Since 0.3.7 =================== * docutils/parsers/rst/states.py: - Added check for escaped at-mark to prevent email address recognition. * docutils/parsers/rst/directives/tables.py: - Added "list-table" directive. * docutils/writers/latex2e.py: - Improved --use-latex-docinfo so that organization/contact/address fields are lumped with the last author field and appear on the titlepage. - Made sure the titlepage is always shown with --use-latex-docinfo, even if the document has no title. - Made sure that latex doesn't fill in today's date if no date field was given. Release 0.3.7 (2004-12-24) ========================== * docutils/frontend.py: - Added options: --input-encoding-error-handler, --record-dependencies, --leave-footnote-reference-space, --strict-visitor. - Added command-line and config file support for "overrides" setting parameter. * docutils/io.py: - Added support for input encoding error handler. * docutils/nodes.py: - Added dispatch_visit and dispatch_departure methods to NodeVisitor; useful as a hook for Visitors. - Changed structure of ``line_block``; added ``line``. - Added ``compound`` node class. - Added a mechanism for Visitors to transitionally ignore new node classes. * docutils/utils.py: - Moved ``escape2null`` and ``unescape`` functions from docutils/parsers/rst/states.py. * docutils/parsers/rst/roles.py: - Added "raw" role. - Changed role function API: the "text" parameter now takes null-escaped interpreted text content. * docutils/parsers/rst/states.py: - Fixed bug where a "role" directive in a nested parse would crash the parser; the state machine's "language" attribute was not being copied over. - Added support for line block syntax. - Fixed directive parsing bug: argument-less directives didn't notice that arguments were present. - Removed error checking for transitions. - Added support for multiple classifiers in definition list items. - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py. - Changed role function API: the "text" parameter now takes null-escaped interpreted text content. - Empty sections and documents are allowed now. * docutils/parsers/rst/directives/__init__.py: - Added ``encoding`` directive option conversion function. - Allow multiple class names in class_option conversion function. * docutils/parsers/rst/directives/body.py: - Converted the line-block directive to use the new structure. - Extracted the old line-block functionality to the ``block`` function (still used). - Added ``compound`` directive (thanks to Felix Wiemann). * docutils/parsers/rst/directives/misc.py: - Added "encoding" option to "include" and "raw" directives. - Added "trim", "ltrim", and "rtrim" options to "unicode" directive. - Allow multiple class names in the "class" directive. * docutils/parsers/rst/directives/parts.py: - Directive "sectnum" now accepts "prefix", "suffix", and "start" options. Thanks to Lele Gaifax. * docutils/parsers/rst/directives/tables.py: - Added "encoding" directive to "csv-table" directive. - Added workaround for lack of Unicode support in csv.py, for non-ASCII CSV input. * docutils/transforms/misc.py: - Fixed bug when multiple "class" directives are applied to a single element. - Enabled multiple format names for "raw" directive. * docutils/transforms/references.py: - Added support for trimming whitespace from beside substitution references. * docutils/transforms/universal.py: - FinalChecks now checks for illegal transitions and moves transitions between sections. * docutils/writers/html4css1.py: - HTMLTranslator.encode now converts U+00A0 to " ". - "stylesheet" and "stylesheet_path" settings are now mutually exclusive. - Added support for the new line_block/line structure. - --footnote-references now overrides --trim-footnote-reference-space, if applicable. - Added support for ``compound`` elements. - Enabled multiple format names for "raw" directive. - ``
`` tags of a paragraph which is the only visible child of the document node are no longer stripped. - Moved paragraph-compacting logic (for stripping ``
`` tags) to new method ``should_be_compact_paragraph()``. - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt`` elements. - "raw" elements are now surrounded by ``span`` or ``div`` tags in the output if they have their ``class`` attribute set. - The whole document is now surrounded by a ``
. - Improved layout of
HTML source. - Fixed attribute typo on. - Refined XML prologue. - Support for no stylesheet. - Removed "interpreted" element support. - Added support for "title_reference", "sidebar", "attribution", "rubric", and generic "admonition" elements. - Added "--attribution" option. - Added support for "inline", "subscript", "superscript" elements. - Added initial support for "abbreviation" and "acronym"; incomplete. * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber (from the sandbox). - Added french. - Double quotes in literal blocks (special treatment for de/ngerman). - Added '--hyperlink-color' option ('0' turns off coloring of links). - Added "--attribution" option. - Right align attributions. * docutils/writers/pep_html.py: - Parameterized output encoding in PEP template. - Reworked substitutions from ``locals()`` into ``subs`` dict. - Redefined "--pep-stylesheet" as containing an invariant URL, used verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the working directory. - Added an override on the "--footnote-references" option. - Factored out ``HTMLTranslator.get_stylesheet_reference()``. - Added Docutils version to "generator" meta tag. - Added a "DO NOT EDIT THIS FILE" comment to generated HTML. * docs/tools.txt: - Added a "silent" setting for ``buildhtml.py``. - Added a "Getting Help" section. - Rearranged the structure. - Kept up to date, with new settings, command-line options etc. - Added section for ``rst2latex.py`` (Engelbert Gruber). - Converted settings table into a definition list. * docs/rst/quickstart.txt: - Added a table of contents. - Added feedback information. - Added mention of minimum section title underline lengths. - Removed the 4-character minimum for section title underlines. * docs/rst/quickref.html: - Added a "Getting Help" section. - Added a style to make section title backlinks more subtle. - Added mention of minimum section title underline lengths. - Removed the 4-character minimum for section title underlines. * extras: Directory added to project; contains third-party modules that Docutils depends on (optparse, textwrap, roman). These are only installed if they're not already present. * licenses: Directory added to project; contains copies of license files for non-public-domain files. * spec/doctree.txt: - Changed the focus. It's about DTD elements: structural relationships, semantics, and external (public) attributes. Not about the element class library. - Moved some implementation-specific stuff into ``docutils.nodes`` docstrings. - Wrote descriptions of all common attributes and parameter entities. Filled in introductory material. - Working through the element descriptions: 55 down, 37 to go. - Removed "Representation of Horizontal Rules" to spec/rst/alternatives.txt. * spec/docutils.dtd: - Added "generated" inline element. - Added "line_block" body element. - Added "auto" attribute to "title". - Changed content models of "literal_block" and "doctest_block" to ``%text.model``. - Added ``%number;`` attribute type parameter entity. - Changed ``%structural.elements;`` to ``%section.elements``. - Updated attribute types; made more specific. - Added "address" bibliographic element. - Added "line" attribute to ``system_message`` element. - Removed "field_argument" element; "field_name" may contain multiple words and whitespace. - Changed public identifier to docutils.sf.net. - Removed "interpreted" element; added "title_reference", "abbreviation", "acronym". - Removed "refuri" attribute from "footnote_reference" and "citation_reference". - Added "sidebar", "rubric", "attribution", "admonition", "superscript", "subscript", and "inline" elements. * spec/pep-0256.txt: Converted to reStructuredText & updated. * spec/pep-0257.txt: Converted to reStructuredText & updated. * spec/pep-0258.txt: Converted to reStructuredText & updated. * spec/semantics.txt: Updated with text from a Doc-SIG response to Dallas Mahrt. * spec/transforms.txt: Added to project. * spec/howto: Added subdirectory, for developer how-to docs. * spec/howto/rst-directives.txt: Added to project. Original by Dethe Elza, edited & extended by David Goodger. * spec/howto/i18n.txt: Docutils Internationalization. Added to project. * spec/rst/alternatives.txt: - Added "Doctree Representation of Transitions" from spec/doctree.txt. - Updated "Inline External Targets" & closed the debate. - Added ideas for interpreted text syntax extensions. - Added "Nested Inline Markup" section. * spec/rst/directives.txt: - Added directives: "topic", "sectnum", "target-notes", "line-block", "parsed-literal", "include", "replace", "sidebar", "admonition", "rubric", "epigraph", "highlights", "unicode" and "class". - Formalized descriptions of directive details. - Added an "align" attribute to the "image" & "figure" directives (by Adam Chodorowski). - Added "class" options to "topic", "sidebar", "line-block", "parsed-literal", "contents", and "image"; and "figclass" to "figure". * spec/rst/interpreted.txt: Added to project. Descriptions of interpreted text roles. * spec/rst/introduction.txt: - Added pointers to material for new users. * spec/rst/reStructuredText.txt: - Disambiguated comments (just add a newline after the "::"). - Updated enumerated list description; added a discussion of the second-line validity checking. - Updated directive description. - Added a note redirecting newbies to the user docs. - Expanded description of inline markup start-strings in non-markup contexts. - Removed field arguments and made field lists a generic construct. - Removed the 4-character minimum for section title underlines. - Clarified term/classifier delimiter & inline markup ambiguity (definition lists). - Added "Embedded URIs". - Updated "Interpreted Text" section. - Added "Character-Level Inline Markup" section. * test: Continually adding & updating tests. - Moved test/test_rst/ to test/test_parsers/test_rst/. - Moved test/test_pep/ to test/test_readers/test_pep/. - Added test/test_readers/test_python/. - Added test/test_writers/ (Engelbert Gruber). * tools: - Made the ``locale.setlocale()`` calls in front ends fault-tolerant. * tools/buildhtml.py: - Added "--silent" option. - Fixed bug with absolute paths & "--config". - Updated for new I/O classes. - Added some exception handling. - Separated publishers' setting defaults; prevents interference. - Updated for new ``publish_file()`` convenience function. * tools/pep-html-template: - Allow for "--embed-stylesheet". - Added Docutils version to "generator" meta tag. - Added a "DO NOT EDIT THIS FILE" comment to generated HTML. - Conform to XHTML spec. * tools/pep2html.py: - Made ``argv`` a parameter to ``main()``. - Added support for "Content-Type:" header & arbitrary PEP formats. - Linked "Content-Type: text/plain" to PEP 9. - Files skipped (due to an error) are not pushed onto the server. - Updated for new I/O classes. - Added ``check_requirements()`` & ``pep_type_error()``. - Added some exception handling. - Updated for new ``publish_string()`` convenience function. - Added a "DO NOT EDIT THIS FILE" comment to generated HTML. * tools/quicktest.py: - Added "-V"/"--version" option. * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber. * tools/unicode2rstsubs.py: Added to project. Produces character entity files (reSructuredText substitutions) from the MathML master unicode.xml file. * tools/editors: Support code for editors, added to project. Contains ``emacs/restructuredtext.el``. * tools/stylesheets/default.css: Moved into the stylesheets directory. - Added style for chunks of inline literals. - Removed margin for first child of table cells. - Right-aligned field list names. - Support for auto-numbered section titles in TOCs. - Increased the size of inline literals () in titles. - Restored the light gray background for inline literals. - Added support for "line_block" elements. - Added style for "address" elements. - Removed "a.footnote-reference" style; doing it with ```` now. - Improved field list rendering. - Vertical whitespace improvements. - Removed "a.target" style. * tools/stylesheets/pep.css: - Fixed nested section margins. - Other changes parallel those of ``../default.css``. Release 0.2 (2002-07-31) ======================== General: - The word "component" was being used ambiguously. From now on, "component" will be used to mean "Docutils component", as in Reader, Writer, Parser, or Transform. Portions of documents (Table of Contents, sections, etc.) will be called "document parts". - Did a grand renaming: a lot of ``verylongnames`` became ``very_long_names``. - Cleaned up imports: no more relative package imports or comma-separated lists of top-level modules. - Added support for an option values object which carries default settings and overrides (from command-line options and library use). - Added internal Unicode support, and support for both input and output encodings. - Added support for the ``docutils.io.IO`` class & subclasses. Specific: * docutils/__init__.py: - Added ``ApplicationError`` and ``DataError``, for use throughout the package. - Added ``Component`` base class for Docutils components; implements the ``supports`` method. - Added ``__version__`` (thus, ``docutils.__version__``). * docutils/core.py: - Removed many keyword parameters to ``Publisher.__init__()`` and ``publish()``; bundled into an option values object. Added "argv", "usage", "description", and "option_spec" parameters for command-line support. - Added ``Publisher.process_command_line()`` and ``.set_options()`` methods. - Reworked I/O model for ``docutils.io`` wrappers. - Updated ``Publisher.set_options()``; now returns option values object. - Added support for configuration files (/etc/docutils.conf, ./docutils.conf, ~/.docutils). - Added ``Publisher.setup_option_parser()``. - Added default usage message and description. * docutils/frontend.py: Added to project; support for front-end (command-line) scripts. Option specifications may be augmented by components. Requires Optik (http://optik.sf.net/) for option processing (installed locally as docutils/optik.py). * docutils/io.py: Added to project; uniform API for a variety of input output mechanisms. * docutils/nodes.py: - Added ``TreeCopyVisitor`` class. - Added a ``copy`` method to ``Node`` and subclasses. - Added a ``SkipDeparture`` exception for visitors. - Renamed ``TreePruningException`` from ``VisitorException``. - Added docstrings to ``TreePruningException``, subclasses, and ``Nodes.walk()``. - Improved docstrings. - Added ``SparseNodeVisitor``, refined ``NodeVisitor``. - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular imports. - Added ``decoration``, ``header``, and ``footer`` node classes, and ``PreDecorative`` mixin. - Reworked the name/id bookkeeping; to ``document``, removed ``explicit_targets`` and ``implicit_targets`` attributes, added ``nametypes`` attribute and ``set_name_id_map`` method. - Added ``NodeFound`` exception, for use with ``NodeVisitor`` traversals. - Added ``document.has_name()`` method. - Fixed DOM generation for list-attributes. - Added category class ``Labeled`` (used by footnotes & citations). - Added ``Element.set_class()`` method (sets "class" attribute). * docutils/optik.py: Added to project. Combined from the Optik package, with added option groups and other modifications. The use of this module is probably only temporary. * docutils/statemachine.py: - Added ``runtime_init`` method to ``StateMachine`` and ``State``. - Added underscores to improve many awkward names. - In ``string2lines()``, changed whitespace normalizing translation table to regexp; restores Python 2.0 compatibility with Unicode. * docutils/urischemes.py: - Filled in some descriptions. - Added "shttp" scheme. * docutils/utils.py: - Added ``clean_rcs_keywords`` function (moved from docutils/transforms/frontmatter.py ``DocInfo.filter_rcs_keywords``). - Added underscores to improve many awkward names. - Changed names of Reporter's thresholds: warning_level -> report_level; error_level -> halt_level. - Moved ``utils.id()`` to ``nodes.make_id()``. - Added ``relative_path(source, target)``. * docutils/languages/de.py: German mappings; added to project. Thanks to Gunnar Schwant for the translations. * docutils/languages/en.py: Added "Dedication" bibliographic field mappings. * docutils/languages/sv.py: Swedish mappings; added to project by Adam Chodorowski. * docutils/parsers/rst/states.py: - Added underscores to improve many awkward names. - Added RFC-2822 header support. - Extracted the inline parsing code from ``RSTState`` to a separate class, ``Inliner``, which will allow easy subclassing. - Made local bindings for ``memo`` container & often-used contents (reduces code complexity a lot). See ``RSTState.runtime_init()``. - ``RSTState.parent`` replaces ``RSTState.statemachine.node``. - Added ``MarkupMismatch`` exception; for late corrections. - Added ``-/:`` characters to inline markup's start string prefix, ``/`` to end string suffix. - Fixed a footnote bug. - Fixed a bug with literal blocks. - Applied patch from Simon Budig: simplified regexps with symbolic names, removed ``Inliner.groups`` and ``Body.explicit.groups``. - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``. - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``. - Allowed non-ASCII in "simple names" (directive names, field names, references, etc.). - Converted ``Inliner.patterns.initial`` to be dynamically built from parts with ``build_regexp()`` function. - Changed ``Inliner.inline_target`` to ``.inline_internal_target``. - Updated docstrings. - Changed "table" to "grid_table"; added "simple_table" support. * docutils/parsers/rst/tableparser.py: - Changed ``TableParser`` to ``GridTableParser``. - Added ``SimpleTableParser``. - Refactored naming. * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as a fallback language for directive names. * docutils/parsers/rst/directives/html.py: Changed the ``meta`` directive to use a ``pending`` element, used only by HTML writers. * docutils/parsers/rst/directives/parts.py: Renamed from components.py. - Added "backlinks" attribute to "contents" directive. * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to project by Adam Chodorowski. * docutils/readers/__init__.py: Gave Readers more control over choosing and instantiating Parsers. * docutils/readers/pep.py: Added to project; for PEP processing. * docutils/transforms/__init__.py: ``Transform.__init__()`` now requires a ``component`` parameter. * docutils/transforms/components.py: Added to project; transforms related to Docutils components. * docutils/transforms/frontmatter.py: - In ``DocInfo.extract_authors``, check for a single "author" in an "authors" group, and convert it to a single "author" element. - Added support for "Dedication" and generic bibliographic fields. * docutils/transforms/peps.py: Added to project; PEP-specific. * docutils/transforms/parts.py: Renamed from old components.py. - Added filter for `Contents`, to use alt-text for inline images, and to remove inline markup that doesn't make sense in the ToC. - Added "name" attribute to TOC topic depending on its title. - Added support for optional TOC backlinks. * docutils/transforms/references.py: Fixed indirect target resolution in ``Hyperlinks`` transform. * docutils/transforms/universal.py: - Changed ``Messages`` transform to properly filter out system messages below the warning threshold. - Added ``Decorations`` transform (support for ``--generator``, ``--date``, ``--time``, ``--source-link`` options). * docutils/writers/__init__.py: Added "pdf" alias in anticipation of Engelbert Gruber's PDF writer. * docutils/writers/html4css1.py: - Made XHTML-compatible (switched to lowercase element & attribute names; empty tag format). - Escape double-dashes in comment text. - Improved boilerplate & modularity of output. - Exposed modular output in Writer class. - Added a "generator" meta tag to . - Added support for the ``--stylesheet`` option. - Added support for ``decoration``, ``header``, and ``footer`` elements. - In ``HTMLTranslator.attval()``, changed whitespace normalizing translation table to regexp; restores Python 2.0 compatibility with Unicode. - Added the translator class as instance variable to the Writer, to make it easily subclassable. - Improved option list spacing (thanks to Richard Jones). - Modified field list output. - Added backlinks to footnotes & citations. - Added percentage widths to " " tags (from colspec). - Option lists: " " changed to "", ``option_argument`` "" changed to "". - Inline literals: "
" changed to "". - Many changes to optimize vertical space: compact simple lists etc. - Add a command-line options & directive attributes to control TOC and footnote/citation backlinks. - Added support for optional footnote/citation backlinks. - Added support for generic bibliographic fields. - Identify backrefs. - Relative URLs for stylesheet links. * docutils/writers/pep_html.py: Added to project; HTML Writer for PEPs (subclass of ``html4css1.Writer``). * docutils/writers/pseudoxml.py: Renamed from pprint.py. * docutils/writers/docutils_xml.py: Added to project; trivial writer of the Docutils internal doctree in XML. * docs/tools.txt: "Docutils Front-End Tools", added to project. * spec/doctree.txt: - Changed the title to "The Docutils Document Tree". - Added "Hyperlink Bookkeeping" section. * spec/docutils.dtd: - Added ``decoration``, ``header``, and ``footer`` elements. - Brought ``interpreted`` element in line with the parser: changed attribute "type" to "role", added "position". - Added support for generic bibliographic fields. * spec/notes.txt: Continual updates. Added "Project Policies". * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs" section. * spec/pep-0257.txt: Clarified prohibition of signature repetition. * spec/pep-0258.txt: Updated. Added text from pysource.txt and mailing list discussions. * spec/pep-0287.txt: - Renamed to "reStructuredText Docstring Format". - Minor edits. - Reworked Q&A as an enumerated list. - Converted to reStructuredText format. * spec/pysource.dtd: - Reworked structural elements, incorporating ideas from Tony Ibbs. * spec/pysource.txt: Removed from project. Moved much of its contents to pep-0258.txt. * spec/rst/alternatives.txt: - Expanded auto-enumerated list idea; thanks to Fred Bremmer. - Added "Inline External Targets" section. * spec/rst/directives.txt: - Added "backlinks" attribute to "contents" directive. * spec/rst/problems.txt: - Updated the Enumerated List Markup discussion. - Added new alternative table markup syntaxes. * spec/rst/reStructuredText.txt: - Clarified field list usage. - Updated enumerated list description. - Clarified purpose of directives. - Added ``-/:`` characters to inline markup's start string prefix, ``/`` to end string suffix. - Updated "Authors" bibliographic field behavior. - Changed "inline hyperlink targets" to "inline internal targets". - Added "simple table" syntax to supplement the existing but newly-renamed "grid tables". - Added cautions for anonymous hyperlink use. - Added "Dedication" and generic bibliographic fields. * test: Made test modules standalone (subdirectories became packages). * test/DocutilsTestSupport.py: - Added support for PEP extensions to reStructuredText. - Added support for simple tables. - Refactored naming. * test/package_unittest.py: Renamed from UnitTestFolder.py. - Now supports true packages containing test modules (``__init__.py`` files required); fixes duplicate module name bug. * test/test_pep/: Subpackage added to project; PEP testing. * test/test_rst/test_SimpleTableParser.py: Added to project. * tools: - Updated html.py and publish.py front-end tools to use the new command-line processing facilities of ``docutils.frontend`` (exposed in ``docutils.core.Publisher``), reducing each to just a few lines of code. - Added ``locale.setlocale()`` calls to front-end tools. * tools/buildhtml.py: Added to project; batch-generates .html from all the .txt files in directories and subdirectories. * tools/default.css: - Added support for ``header`` and ``footer`` elements. - Added styles for "Dedication" topics (biblio fields). * tools/docutils.conf: A configuration file; added to project. * tools/docutils-xml.py: Added to project. * tools/pep.py: Added to project; PEP to HTML front-end tool. * tools/pep-html-template: Added to project. * tools/pep2html.py: Added to project from Python (nondist/peps). Added support for Docutils (reStructuredText PEPs). * tools/quicktest.py: - Added the ``--attributes`` option, hacked a bit. - Added a second command-line argument (output file); cleaned up. * tools/stylesheets/: Subdirectory added to project. * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs. Release 0.1 (2002-04-20) ======================== This is the first release of Docutils, merged from the now inactive reStructuredText__ and `Docstring Processing System`__ projects. For the pre-Docutils history, see the `reStructuredText HISTORY`__ and the `DPS HISTORY`__ files. __ http://structuredtext.sourceforge.net/ __ http://docstring.sourceforge.net/ __ http://structuredtext.sourceforge.net/HISTORY.html __ http://docstring.sourceforge.net/HISTORY.html General changes: renamed 'dps' package to 'docutils'; renamed 'restructuredtext' subpackage to 'rst'; merged the codebases; merged the test suites (reStructuredText's test/test_states renamed to test/test_rst); and all modifications required to make it all work. * docutils/parsers/rst/states.py: - Improved diagnostic system messages for missing blank lines. - Fixed substitution_reference bug. .. Local Variables: mode: indented-text indent-tabs-mode: nil sentence-end-double-space: t fill-column: 70 End: