document reference markup
[docutils.git] / docutils / HISTORY.txt
blob46164e55a480d165fe3ecfe05b6d77c13aeff324
1 .. include:: docs/header0.txt
3 ==================
4  Docutils History
5 ==================
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: docutils-develop@lists.sourceforge.net
9 :Date: $Date$
10 :Revision: $Revision$
11 :Web site: https://docutils.sourceforge.io/
12 :Copyright: This document has been placed in the public domain.
14 .. contents::
17 Release 0.21.rc1
18 ================
20 * General
22   - Drop support for Python 3.7 and 3.8.
23   - Updated build system to use Flit_ (patch #186 by Adam Turner).
24     Removed ``setup.py``.
25   - Provide ``rst2*`` "console_scripts" `entry points`_
26     (without the ``.py`` extension) instead of installing the
27     ``rst2*.py`` front end tools in the binary PATH.
29   .. _Flit: https://github.com/pypa/flit/
31 * docs/ref/docutils.dtd
33   - The <image> element accepts a new attribute "loading".
35   - Fix definitions (no change to actual behaviour):
37     * The <math_block> element uses the attribute "xml:space".
38     * The <raw> element may contain text only (no inline elements).
40 * docutils/frontend.py
42   - Allow `validate_*()` functions to be called with just the "value"
43     argument but keep the legacy interface for use with optparse.
44   - New function `frontend.validate_math_output()`.
46 * docutils/io.py
48   - Simpler and more secure `input encoding`_ default behaviour:
50     Do not use the locale encoding as fallback if Python is started in
51     `UTF-8 mode`_. Stop using "latin1" as second fallback.
53     Remove BOM (U+FEFF ZWNBSP at start of data) only if the "input_encoding"
54     configuration setting is None, '', 'utf-8-sig', 'utf-16', or 'utf-32'.
55     Do not remove other ZWNBSPs.
57     .. _UTF-8 mode: https://docs.python.org/3/library/os.html#utf8-mode
58     .. _input encoding: docs/api/publisher.html#encodings
60   - Auto-close `FileInput.source` in case of reading/decoding errors.
62 * docutils/languages/, docutils/parsers/rst/languages/
64   - Mark/Fix mistranslated localizations of the "admonition" directive
65     name. In Docutils, "admonition" is used as a generic term for
66     "advice"/"advisory"/"remark", not a reprimand.
67   - Add support for Georgian language (patch #204 by Temuri Doghonadze).
68   - Update/complete Catalan translations (patch #203 by Antoni Bella Pérez).
70 * docutils/nodes.py
72   - Remove compatibility hacks `nodes.reprunicode` and `nodes.ensure_str()`.
74 * docutils/parsers/rst/directives/images.py
76   - New "image" directive option "loading".
78 * docutils/parsers/rst/directives/tables.py
80   - Use the same CSV format for the ``:header:`` option and the main data
81     of the "csv-table" directive.
83   - Move `parsers.rst.directives.Table.process_header_option()` method
84     to `parsers.rst.directives.CSVTable`.
86 * docutils/parsers/rst/states.py
88   - Don't split inside "< >" when parsing "option groups" (fixes bug #474).
90 * docutils/parsers/rst/directives/misc.py,
91   docutils/parsers/rst/directives/tables.py
93   - Consider the new root_prefix_ setting when including files with
94     "include", "raw", or "csv-table" directives.
96 * docutils/utils/math/*
98   - Use custom exception `utils.math.MathError` instead of
99     abusing `SyntaxError` for LaTeX math syntax errors.
100   - Unify interface of LaTeX -> MathML conversion functions.
101     Improve error reporting.
102   - Sort ℏ (`\hslash`) as "mathord", not "mathalpha".
104 * docutils/utils/math/latex2mathml.py
106   - Generate "MathML Core" to fix rendering with Chromium/Android.
108     Use CSS rules instead of the deprecated "columnalign" attribute
109     to style <mtable> as "align" environment.
111     Use Mathematical Alphanumeric Symbols instead of <mstyle> with
112     "mathvariant" attribute.
114   - Use <mi> instead of <mo> for character class "mathord".
116   - Support "aligned" environment.
118   - Eliminate side-effect on later import of "tex2unichar".
120 * docutils/utils/math/mathml_elements.py
122   - New module defining MathML element classes
123     (outsourced from latex2mathml.py).
124   - Base MathML element classes on `xml.etree.ElementTree`.
126 * docutils/utils/roman.py
128   - Update to version `1.4 <https://pypi.org/project/roman/4.1/>`__.
129     Fixes feature-request #95 (license is now ZPL 2.1).
131 * docutils/utils/smartquotes.py
133   - Pre-compile regexps once, not with every call of `educateQuotes()`
134     (patch #206 by Chris Sewell).
135   - Simplify regexps; skip replacement rules if there is nothing to replace.
137 * docutils/writers/html4css1/__init__.py
139   - Support video inclusion via ``<object>`` tags.
141 * docutils/writers/html5_polyglot/\*.css
143   - Move MathML styles to "minimal.css" (required for correct rendering).
144   - Highlight heading of target section also with explicit hyperlink target.
146 * docutils/writers/_html_base.py
148   - Stop setting the "footnote-reference" class value for footnote references.
149     Since 0.18, you can use the CSS selector ``[role="doc-noteref"]``.
150   - Support reading/embedding images also with "file:" URI.
151   - Warn, if image scaling fails because the image file cannot be read.
152   - Support video inclusion via ``<video>`` tags
153     (moved here from writers/html5_polyglot/__init__.py).
154   - New auxiliary method `HTMLTranslator.uri2imagepath()` ensures the
155     image file can also be read when CWD and output directory differ.
156   - Consider the root_prefix_ setting when converting an image URI
157     to a local filesystem path.
158   - New `\<image>`_ attribute "loading" overrides image_loading_ setting.
159   - Embed SVG images as ``<svg>`` instead of data-URI.
160     Fixes feature-request #100.
161   - Generate system messages for errors/warnings during the writing stage
162     (image transformations, math content conversion, ...).
163   - Close ``<dt>`` element in `depart_term()` to allow a
164     "definition_list_item" with multiple "terms" (cf. feature-request #60).
165   - Link to the document "#top" from the ToC heading
166     (unless toc_backlinks_ is False).
168 * docutils/writers/latex2e/__init__.py
170   - Fix placement of hyperlink target (label) for tables (bug #440).
171   - More compact LaTeX source for option-lists and description-lists
172     (no change in output).
174 * docutils/writers/manpage.py
176   - Skip footer to avoid the link to document source in the manpage.
177   - Add multiple definition list term support, see feature #60.
178   - Use ``'UR`` and ``'UE`` macros for reference markup.
179   - Add preprocessor hinting tbl first line, see bug #477.
180   - Change tbl-Tables using box option, see bug #475.
181   - Apply literal block patch #205. Use ``.EE`` and ``.EX`` macros.
182     Thanks to G. Branden Robinson.
184 * docutils/writers/odf_odt/__init__.py
186   - Use context manager for image reading operations.
187     Catch `URLError` when `urllib.request.urlopen()` fails.
189   - Convert image URI to path if accessing a local file. Fixes bug #153.
191 * docutils/writers/s5_html/__init__.py
193   - Warn if the S5 writer cannot copy the theme files.
194   - Programmatic customization of theme_url_ setting no longer
195     overridden by the default for theme_.
197 * tools/buildhtml.py
199   - New configuration setting `sources`_.
200   - Match `prune`_ values with `fnmatch.fnmatch()`.
203 Release 0.20.1 (2023-05-17)
204 ===========================
206 * docutils/MANIFEST.in
208   - Include tox.ini and docutils.conf in the source package
209     (cf. bug #467 and bug #461).
211 * tools/rst2odt_prepstyles.py
213   - Moved to ``docutils/writers/odf_odt/prepstyles.py``.
214     Replaced with a provisional backwards compatibility script.
217 Release 0.20 (2023-05-09)
218 =========================
220 * General
222   - Docutils 0.20 is the last version supporting Python 3.7 and 3.8.
223   - Support Python 3.11 (patch #198 by Hugo van Kemenade).
225 * docutils/core.py
227   - New functions `rst2…()` for use as "console_scripts" `entry points`_.
228     (cf. `Future changes` in the RELEASE-NOTES_).
230 * docutils/frontend.py
232   - New configuration setting "output_". Obsoletes the ``<destination>``
233     positional argument (cf. `Future changes` in the RELEASE-NOTES_).
235 * docutils/languages/
236   docutils/parsers/rst/languages/
238   - Support Ukrainian. Patch by Dmytro Kazanzhy.
240 * docutils/nodes.py
242   - Fix `previous_sibling()` method that led to invalid HTML in some cases
243     (cf. patch #195).
244   - Fix bug #463. Spurious comma in deprecation warning.
246 * docutils/parsers/recommonmark_wrapper.py
248   - Improved mock Sphinx module.
250 * docutils/transforms/__init__.py
252   - `Transformer.populate_from_components()` now silently ignores
253     components that are not instances of `docutils.TransformSpec`.
255 * docutils/transforms/frontmatter.py
257   - Accept author names with initials like ``A. Einstein`` in the "author"
258     `bibliographic field`_ instead of rising an error
259     (generally, such names are `parsed as enumerated list`__).
261     .. _bibliographic field:
262         docs/ref/rst/restructuredtext.html#bibliographic-fields
263     __ docs/ref/rst/restructuredtext.html#enumerated-lists
265 * docutils/transforms/references.py
267   - `DanglingReferences` ignores `citation_reference` nodes if the
268     "use_bibex" setting is active. (In this case, citations are provided
269     by LaTeX/BibTeX.) Fixes bug #384.
271 * docutils/utils/__init__.py
273   - New utility function `xml_declaration()`.
274   - `DependencyList.add()` accepts `pathlib.Path` instances.
275   - `find_file_in_dirs()` now returns a POSIX path also on Windows;
276     `get_stylesheet_list()` no longer converts ``\`` to ``/``.
278 * docutils/utils/math/latex2mathml.py
280   - Support "mod" notation for modulo operation / modulus arithmetic.
282 * docutils/utils/math/tex2mathml_extern.py
284   - Support `Pandoc` as alternative LaTeX to MathML converter.
285     Patch by Ximin Luo.
287 * docutils/writers/_html_base.py
289   - Refactoring of `HTMLTranslator` initialization and collecting of
290     document "parts". Adapt HTML writers importing `_html_base`.
292     Changes to the HTML output (no space character before closing tag of
293     XML declaration, order of metadata elements)
294     don't affect the HTML semantics, styling, and rendering.
296   - Wrap definition lists with "details" class argument in a <div>
297     with the "id" and "class" values of the list node.
299   - Use dpub-ARIA role "doc-footnote__" (instead of ARIA role "note")
300     for footnotes.
302     __ https://www.w3.org/TR/dpub-aria-1.1/#doc-footnote
304 * docutils/writers/html5_polyglot/__init__.py
306   - Do not convert class values to HTML5 text-level tags inside
307     <code> and <code-block> (fixes bug #476).
309 * docutils/writers/latex2e/__init__.py
311   - Do not load the `inputenc` package in UTF-8 encoded LaTeX sources.
312     (UTF-8 is the default encoding for LaTeX2e since 2018).
313   - Fix behaviour of the use_bibtex_ setting.
314   - Outsource parts of `depart_document()` to new auxiliary methods
315     `make_title()` and `append_bibliography()`.
316   - Ensure POSIX paths in stylesheet loading macros.
318 * docutils/writers/latex2e/titlepage.tex
320   - Drop ``\usepackage{fixltx2e}`` from template.
321     (Obsolete since 2015 and dropped from other templates in Docutils 0.14.)
323 * docutils/writers/manpage.py
325   - Do not output empty "manual" in ``.TH``.
327 * docutils/writers/xetex/__init__.py
329   - Ignore settings in the [latex2e writer] configuration file section.
330     Place common settings in section [latex writers].
332 * setup.py
334   - Fix SetuptoolsDeprecationWarning: ``Installing '' as data is deprecated``
335     by adding data directories to package_data.packages list.
337 * tox.ini
339   - Extracted flake8 configuration and moved to ``.flake8``.
340   - changedir to directory ``test`` to avoid path problems.
342 * test/
344   - Refactored tests to use common `unittest` idioms.
345     Fixes errors when running the test suite with ``python -m unittest``
346     or external test frameworks, such as Pytest_.
348   .. _pytest: https://pypi.org/project/pytest/
350 * test/coverage.sh
352   - Removed. Use the coverage.py_ project instead,
353     ``coverage run test/alltests.py`` and ``coverage report``.
355   .. _coverage.py: https://pypi.org/project/coverage/
357 * tools/
359   - Moved ``quicktest.py`` to ``tools/dev/``.
362 Release 0.19 (2022-07-05)
363 =========================
365 * General
367   - Dropped support for Python 2.7, 3.5, and 3.6. and removed compatibility
368     hacks from code and tests.
369   - Code cleanup,
370     check PEP 8 conformity with `flake8` (exceptions in file tox.ini).
372 * docutils/__main__.py
374   - New module. Support for ``python -m docutils``.
375     Also used for the ``docutils`` console script `entry point`_.
377 * docutils/core.py
379   - Let `Publisher.publish()` print info and prompt when waiting for input
380     from a terminal (cf. https://clig.dev/#interactivity).
381   - Respect `input_encoding_error_handler`_ setting when opening a source.
383 * docutils/io.py
385   - New function `error_string()`
386     obsoletes `utils.error_reporting.ErrorString`.
387   - Class `ErrorOutput` moved here from `utils.error_reporting` module.
388   - Use "utf-8-sig" instead of Python's default encoding if the
389     `input_encoding`_ setting is None.
390   - Fix error when reading of UTF-16 encoded source without trailing newline.
391   - Suppress deprecation warning (fixes bug #464).
393 * docutils/parsers/__init__.py
395   - Aliases "markdown" and "commonmark" point to "commonmark_wrapper".
396   - Alias for the "myst" parser (https://pypi.org/project/myst-docutils).
397   - Use absolute module names in `_parser_aliases` instead of two
398     import attempts. (Keeps details if the `recommonmark_wrapper` module
399     raises an `ImportError`.)
400   - Prepend parser name to `ImportError` if importing a parser class fails.
402 * docutils/parsers/commonmark_wrapper.py
404   - New module for parsing CommonMark input. Selects a locally installed
405     3rd-party parser (`pycmark`, `myst`, or `recommonmark`).
407 * docutils/parsers/recommonmark_wrapper.py
409   - Raise `ImportError`, if import of the upstream parser module fails.
410     If called from an `"include" directive`_,
411     the system-message now has source/line info.
412   - Adapt to and test with `recommonmark` versions 0.6.0 and 0.7.1.
414   .. _"include" directive: docs/ref/rst/directives.html#include
416 * docutils/parsers/rst/__init__.py
418   - Update PEP base URL (fixes bug #445),
419     use "https:" scheme in RFC base URL.
420   - Add `reporter` to `Directive` class attributes.
422 * docutils/parsers/rst/directives/__init__.py
424   - `parser_name()` keeps details if converting  `ImportError` to  `ValueError`.
426 * docutils/parsers/rst/roles.py
428   - Don't use mutable default values for function arguments. Fixes bug #430.
430 * docutils/transforms/universal.py
432   - Fix bug #435: invalid references in `problematic` nodes
433     with report_level=4.
435 * docutils/utils/__init__.py
437   - `decode_path()` returns `str` instance instead of `nodes.reprunicode`.
439 * docutils/utils/error_reporting.py
441   - Add deprecation warning.
443 * docutils/writers/_html_base.py
445   - Add "html writers" to `config_section_dependencies`. Fixes bug #443.
446   - Write table column widths with 3 digits precision. Fixes bug #444.
448 * docutils/writers/html5_polyglot/__init__.py
450   - Add space before "charset" meta tag closing sequence.
451   - Remove class value "controls" from an `image` node with video content
452     after converting it to a "control" attribute of the <video> tag.
453   - Wrap groups of footnotes in an ``<aside>`` for easier styling.
455 * docutils/writers/pep_html/
457   - Use "https:" scheme in "python_home" URL default.
458   - Fix links in template.txt.
460 * setup.py
462   - New ``docutils``" console script `entry point`_. Fixes bug #447.
464 * test/alltests.py
466   - Always encode the log file ``alltests.out`` using "utf-8".
468 * test/DocutilsTestSupport.py
470   - `exception_data()` now returns None if no exception was raised.
471   - `recommonmark_wrapper` only imported if upstream parser is present.
473 * test/test_parsers/test_rst/test_directives/test_tables.py
475   - Fix bug #436: Null char valid in CSV since Python 3.11.
477 * tools/docutils-cli.py
479   - Allow 3rd-party drop-in components for reader and parser, too.
480   - Fix help output.
481   - Actual code moved to docutils.__main__.py.
483 * tools/rst2odt_prepstyles.py
485   - Options ``-h`` and ``--help`` print short usage message.
487 .. _entry point:
488 .. _entry points:
489     https://packaging.python.org/en/latest/specifications/entry-points/
492 Release 0.18.1 (2021-11-23)
493 ===========================
495 * docutils/nodes.py
497   - `Node.traverse()` returns a list again to restore backwards
498     compatibility. Fixes bug #431.
500   - New method `Node.findall()`: like `Node.traverse()` but returns an
501     iterator. Obsoletes `Node.traverse()`.
503 * docutils/utils/__init__.py
505   - Fix behaviour of `get_stylesheet_list()`: do not look up stylesheets
506     given as `stylesheet`_ setting. Cf. bug #434.
508 * docutils/writers/_html_base.py
510   - Fix handling of ``footnote_backlinks == False`` (report Alan G Isaac).
512 * docutils/writers/html5_polyglot/math.css
514   - Fix typo (bug #432).
516 * docutils/writers/odf_odt/__init__.py
518   - Fix spurious output with Windows (bug #350).
520 * test/test_error_reporting.py
522   - Fix a false positive (bug #434).
525 Release 0.18 (2021-10-26)
526 =========================
528 * docutils/frontend.py
529   - Mark as provisional (will switch from using `optparse` to `argparse`).
530   - Remove hack for the now obsolete "mod_python" Apache module.
531   - New function `get_default_settings()`.
533 * docutils/nodes.py
535   - Don't change a list while looping over it (in
536     `document.set_name_id_map()`). Thanks to Mickey Endito.
538 * docutils/parsers/recommonmark_wrapper.py
540   - Test and update to work with `recommonmark` version 0.6.0.
541     Still provisional.
543     Unfortunately, recommonmark_ is `no longer maintained`__.
545     __ https://github.com/readthedocs/recommonmark/issues/221
547 * docutils/parsers/rst/directives/misc.py
549   - Fix bug #424 Wrong circular inclusion detection.
550     Use a "magic" comment instead of line numbers
551     to keep a log of recursive inclusions.
553 * docutils/parsers/rst/states.py
555   -  Use a "magic" comment to update the log of recursive inclusions.
557 * docutils/writers/html5_polyglot/__init__.py
559   - New option `image_loading`_. Support "lazy" loading of images.
560     Obsoletes `embed_images`_.
562 * docutils/writers/pseudoxml.py
564   - Fix spelling of setting `detailed`_.
566 * tools/docutils-cli.py
568   - Read settings from standard configuration files.
570 Fix spelling errors in documentation and docstrings.
571 Thanks to Dimitri Papadopoulos.
574 Release 0.18b1 (2021-10-05)
575 ===========================
577 * docs/ref/docutils.dtd
579   - New document tree element <meta>.
581 * docutils/frontend.py
583   - The default value for the `auto_id_prefix`_ setting changed to "%":
584     auto-generated IDs use the tag name as prefix.
586 * docutils/nodes.py
588   - Make `\<meta>`_ a standard Docutils doctree node. Writers may ignore
589     <meta> nodes if they are not supported by the output format.
591   - document.make_id(): Do not strip leading number and hyphen characters
592     from `name` if the `id_prefix`_ setting is non-empty.
594   - `Node.traverse()` returns an iterator instead of a list.
596 * docutils/parsers/rst/directives/html.py
598   - Removed. (Meta directive moved to ``misc.py``.)
600 * docutils/parsers/rst/directives/misc.py
602   - `Meta` directive class (moved from html.py) inserts `meta`
603     (instead of `pending`) nodes.
605   - Add `class` option to `Raw` directive.
607 * docutils/parsers/rst/directives/tables.py
609   - Unify behaviour of `"widths" option`_: check that the length of an
610     integer list equals the number of table columns also for the "table"
611     directive.
613 * docutils/tools/math/math2html.py,
614   docutils/tools/math/tex2unicode.py,
615   docutils/writers/html5/math.css
617   - Fork from elyxer and remove code that is not required
618     for math conversion.
619   - Scale variable sized operators and big delimiters with CSS
620   - Support more commands, fix mapping of commands to Unicode characters
621     (cf. `LaTeX syntax for mathematics`_).
622   - Fix bug #244 Wrong subscript/superscript order.
623   - Don't use <tt> element (deprecated in HTML5).
624   - Use STIX fonts if available.
626   .. _LaTeX syntax for mathematics: docs/ref/rst/mathematics.html
628 * docutils/parsers/rst/states.py
630   - Fix source location (line number) for attribution elements.
631     Patch by Mickey Endito.
632   - Add line, source, and rawsource internal attributes for blockquote
633     elements. Patch by Mickey Endito.
635 * docutils/transforms/references.py
637   - Skip system_messages when propagating targets. Fixes bug #425.
639 * docutils/utils/__init__.py
641   - Removed `unique_combinations()` (obsoleted by `itertools.combinations()`).
643 * docutils/utils/latex2mathml.py
645   - Major update (fixes and support for additional commands and symbols).
646     Fixes bug #407.
648 * docutils/writers/_html_base.py
650   - Write footnote brackets and field term colons to HTML, so that
651     they are present also without CSS and when copying text.
652     Adapt ``minimal.css``.
654   - Use semantic tags <aside> for footnote text, topics, admonitions,
655     and system-messages and <nav> for the table of contents. Use <div>
656     for citations.
658   - Only specify table column widths, if the `"widths" option`_ is set
659     and is not "auto" (fixes bug #426).
660     The `table_style`_ setting "colwidths-grid" restores the current default.
662     .. _"widths" option: docs/ref/rst/directives.html#column-widths
664   - Use ARIA roles to enable accessible HTML for abstract, dedication,
665     the table of contents, footnote, references, footnotes, citations,
666     and backlinks.
668   - Use "aria-level" attribute instead of invalid tags <h7>, <h8>, ...
669     for headings of deeply nested sections.
671   - Do not set classes "compound-first", "compound-middle", or
672     "compound-last" to elements nested in a compound.
673     Use class value "backrefs" instead of "fn-backref" for a span of
674     back-references.
676   - Do not write class values handled by the HTML writer ("colwidths-auto",
677     "colwidths-given", "colwidths-grid") to the output.
679   - Move space character between section number and heading into
680     "sectnum" span.
682   - Removed attribute `HTMLTranslator.topic_classes`
684   - Items of a definition list with class argument "details" are
685     converted to <details> disclosure elements.
687 * docutils/writers/html4css1/__init__.py
689   - Overwrite methods in _html_base.HTMLTranslator that use HTML5 tags
690     (details, aside, nav, ...) and attributes (role, aria-level).
692 * docutils/writers/latex2e/__init__.py
694   - The setting `legacy_class_functions`_ now defaults to "False".
695     Adapt stylesheets modifying ``\DUadmonition`` and/or ``\DUtitle``.
697   - Apply patch #181 "Fix tocdepth when chapter/part in use" by
698     John Thorvald Wodder II.
700   - Fix newlines after/before `ids_to_labels()` (cf. patch #183).
702   - Refactor/revise ToC writing.
704   - Don't add ``\phantomsection`` to labels in math-blocks.
706   - Improve spacing and allow customization of Docutils-generated table
707     of contents.
709   - New algorithm for table column widths. Fixes bug #422.
710     New configuration setting `legacy_column_widths`_.
712     `Table.set_table_style()` arguments changed.
714     Only write "continued on next page..." if it fits
715     without making the table columns wider.
717     Table "width" option overrides conflicting "auto" column "widths".
719 * docutils/writers/latex2e/docutils.sty
721   - Fix excessive padding above sidebar titles.
723 * docutils/writers/pseudoxml.py
725   - Fix option `detailed`_ under Python 2.7.
727 * docutils/writers/s5_html/themes/default
729   - Remove IE 6 compatibility workarounds ``iepngfix.htc`` and
730     ``blank.gif`` (fixes bug #169).
732 * docutils/writers/manpage.py
734   - Fix: double quotes need to be escaped on macro invocation.
735     Done everywhere.
738 Release 0.17.1 (2021-04-16)
739 ===========================
741 * docutils/utils/math/latex2mathml.py
743   - Fix bug #406 (MathML translation of ``\mathbf``).
745 * docutils/writers/latex2e/__init__.py
747   - Open ``docutils.sty`` with encoding set to "utf-8".
748     Fixes bug #414: error with Py3k when locale encoding is "ascii".
750 * docutils/parsers/*.py, docutils/transforms/*.py
752   - Provide fallbacks for parser config settings
753     to facilitate programmatic use.
755 * docutils/writers/manpage.py
757   - Apply patch #166: move macro defs above ``.TH``
758     (thanks Willie and sorry for the delay).
761 Release 0.17 (2021-04-03)
762 =========================
764 * General
766   - Installing with ``setup.py`` now requires `setuptools`.
767     Alternatively, install with `pip`_ (or "manually").
768   - Use `importlib.import_module()` to programmatically import modules.
769   - Fix bug #385: Import of language modules.
771   .. _pip: https://pypi.org/project/pip/
773 * docs/ref/docutils.dtd
775   - The "title" attribute of <sidebar> elements is now optional.
777 * docutils/MANIFEST.in
779   - Exclude test outputs.
781 * docutils/__init__.py
783   - VersionInfo:  `ValueError` for invalid values, fix comparison to tuples.
785 * docutils/languages/
786   docutils/parsers/rst/languages/
788   - Apply patch # 177 Arabic mappings by Shahin.
789   - Apply patch for bug #399 Fixes in Korean translation by Shinjo Park.
791 * docutils/nodes.py
793   - Apply patch #165 "Fix error when copying `system_message` node"
794     by Takeshi KOMIYA.
795   - Apply version of patch #167 "Let `document.set_id()` register all
796     existing IDs". Thanks to Takeshi KOMIYA.
797   - Fix bug #410: Use a "property" function to recursively fetch
798     `Node.document` value from parent node.
800 * docutils/parsers/recommonmark_wrapper.py
802   - New, **experimental** wrapper to integrate the
803     `recommonmark`_ Markdown parser for use with Docutils.
804     Currently only tested with `recommonmark` version 0.4.0.
806     .. _recommonmark: https://pypi.org/project/recommonmark/
808 * docutils/parsers/rst/directives/body.py
810   - Make the sidebar's "title" argument optional (feature request #69).
812 * docutils/parsers/rst/directives/html.py
814   - Make `meta` elements available for "latex" and "odt" writers.
816 * docutils/parsers/rst/directives/misc.py
818   - Prevent infinite inclusion loops.
820 * docutils/parsers/rst/roles.py
822   - Apply patch #174 "Lowercase new role names on registration"
823     by John Thorvald Wodder II.
825 * docutils/utils/smartquotes.py
827   - Fix bug #383: Smart quotes around opening and separator characters.
829 * docutils/transforms/components.py
831   - Allow a comma-separated list of formats for the Filter transform.
833 * docutils/writers/html*
835   - Implement feature request #40 "Option to embed images as data URI".
837 * docutils/writers/html5_polyglot/__init__.py
839   - Use the new semantic tags <main>, <section>, <header>,
840     <footer>, <aside>, <figure>, and <figcaption>.
841     See ``minimal.css`` and ``plain.css`` for styling rule examples.
843     Change the `initial_header_level`_ setting default to "2", as browsers
844     use the `same style for <h1> and <h2> when nested in a <section\>`__.
846     __ https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article
848   - Use HTML text-level tags <small>, <s>, <q>, <dfn>, <var>, <samp>, <kbd>,
849     <i>, <b>, <u>, <mark>, and <bdi> if a unique, matching class value
850     is found in `\<inline>`_ and `\<literal>`_ elements.
851     Use <ins> and <del> if a unique matching class value
852     is found in `inline`, `literal`, or `container` elements.
853     Use <small> for generated code line numbers.
855   - Fix bug #398: properly close link tag to "schema.dcterms".
857   - Add a `viewport meta tag`__ to fix rendering in mobile browsers.
859     __ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
861   - Use <video> for images with video MIME types supported by HTML5.
863 * docutils/writers/html5_polyglot/minimal.css
865   - Move non-essential styling to ``plain.css``.
866     Small fixes and tweaks.
868   - Support "captionbelow" class value for tables.
870   - Display code line numbers as pseudo-elements which are skipped
871     when copying text from code blocks. Solves feature request #32.
873 * docutils/writers/html5_polyglot/plain.css
875   - Support numbered figures.
877 * docutils/writers/html5_polyglot/responsive.css
879   - New optional style that adapts to different screen sizes.
881 * docutils/writers/latex2e/__init__.py
883   - Use LaTeX environments for admonitions and "class wrappers" for styling
884     admonitions and titles if the new configuration setting
885     `legacy_class_functions`_ is False.
887   - Remove backwards compatibility code for the deprecated
888     `styling command`__ prefix ``\docutilsrole``.
890     __ docs/user/latex.html#custom-interpreted-text-roles
892   - Remove legacy LaTeX stylesheet ``docutils-05-compat.sty``.
894   - Support the `memoir` LaTeX document class.
895     Fixes bugs #390, #391, and #392. Thanks to John Thorvald Wodder II.
897   - The special value "auto" for the `graphicx_option`_ setting
898     is no longer supported (it never worked for xetex/luatex).
900   - Most helper commands and element definitions are now defined in the
901     LaTeX package `docutils.sty`_ and only inserted in the document
902     preamble if the `stylesheet`__ setting does not list "docutils".
904     .. _docutils.sty: https://ctan.org/pkg/docutils
905     __ docs/user/config.html#stylesheet-latex-writers
907   - Apply patch #173 "Make \*TeX writers convert nonstandard table
908     classes to DUclass environments" by John Thorvald Wodder II.
910   - Fix bug #408 "Incorrect assert in latex writer
911     for multiple citation references".
913   - Apply patch #175 "Fix alignment of nested tables"
914     by John Thorvald Wodder II. Additional fixes to table alignment.
916   - Do not write Docutils-generated ToC, when ``use_latex_toc == True``.
917     (This did happen when publishing from a doctree.)
919   - Set PDF document properties from "meta" directive content.
921   - Apply version of patch #176 "LaTeX writer: Append ``\leavevmode`` to
922     non-docinfo field names" by John Thorvald Wodder II.
924 * docutils/writers/manpage.py
926   - Fix #394 fix missing new line after rubric.
927   - Patch #168 fix crashing on empty citation (by Takeshi KOMIYA).
928   - Fix #126 manpage title with spaces.
929   - Fix #380 command line option problem in sphinx.
931 * docutils/writers/odf_odt/__init__.py
933   - Fix/improve metadata handling:
934     fix "keyword" splitting,
935     allow generic fields (stored as "Custom Properties").
937 * docutils/writers/pseudoxml.py
939   - New option `detailled`_.
941 * test/DocutilsTestSupport.py
943   - Run python3 test like python2 against source not the build/-directory
945 * tools/docutils-cli.py
947   - New generic command line front end that allows the free selection of
948     reader, parser, and writer components.
951 Release 0.16 (2020-01-16)
952 =========================
954 * General
956   - Dropped support for Python 2.6, 3.3 and 3.4
957   - Docutils now supports Python 2.7 and Python 3.5+ natively
958     (without conversion by `2to3`).
959   - Keep `backslash escapes`__ in the document tree. Backslash characters in
960     text are be represented by NULL characters in the `text` attribute of
961     Doctree nodes and removed in the writing stage by the node's
962     `astext()` method.
964   __ https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#escaping-mechanism
966 * docs/ref/docutils.dtd
968   - Use "parameter entities" for `class names`, `reference names`,
969     and `ids`.
971 * docutils/io.py
973   - Remove the `handle_io_errors` option from io.FileInput/Output.
975 * docutils/nodes.py
977   - Speed up Node.next_node().
978   - If `auto_id_prefix`_ ends with "%", this is replaced with the tag name.
979   - Warn about `Node.traverse()` returning an iterator instead of a list
980     in future.
982 * docutils/statemachine.py
984   - Patch [ 158 ] Speed up patterns by saving compiled versions (eric89gxl)
986 * docutils/transforms/universal.py
988   - Fix [ 332 ] Standard backslash escape for smartquotes.
989   - Fix [ 342 ] No escape in roles descending from `inline literal`.
991 * docutils/utils/__init__.py
993   - `unescape()` definition moved to `nodes` to avoid circular import
994     dependency. Fixes [ 366 ].
996 * docutils/writers/latex2e/__init__.py
998   - Fix topic subtitle.
999   - Make "rubric" bold-italic and left aligned.
1000   - Fix [ 339 ] don't use "alltt" or literal-block-environment
1001     in admonitions and footnotes.
1002   - Deprecation warning for ``\docutilsrole``-prefixed styling commands.
1003   - Add "latex writers" to the `config_section_dependencies`.
1004   - Ignore classes for `rubric` elements
1005     (class wrapper interferes with LaTeX formatting).
1007 * docutils/writers/manpage.py
1009   - Apply fix for [ 287 ] comma after option is bold.
1010   - Apply fix for [ 289 ], line starting with ``.`` in a text.
1012 * docutils/writers/odf_odt/__init__.py
1014   - Fix: ElementTree.getchildren deprecated warning
1016 * docutils/writers/xetex/__init__.py
1018   - Add "latex writers" to the `config_section_dependencies`.
1020 * test/alltests.py
1022   - Fix [ 377 ] ResourceWarning: unclosed file python3.8
1023     Close alltests.out with atexit.
1025 * test/functional/*
1027   - Fix [ 377 ] ResourceWarning: unclosed file python3.8
1028     Read defaults file with context.
1030   - Set `auto_id_prefix`_ to "%" (expands to tag-names).
1031     Results in descriptive links in HTML and more localized changes when
1032     editions to the input add or remove auto-ids.
1034 * test/test_io.py
1036   - Apply patch #157: avoid test failure because of a `ResourceWarning`.
1038 * test/test_writers/test_odt.py
1040   - Fix [ 359 ] Test suite fails on Python 3.8. odt XML sorting.
1041     Use ElementTree instead of minidom.
1043 * tools/buildhtml.py
1045   - New option `html_writer`_.
1048 Release 0.15.1 (2019-07-24)
1049 ===========================
1051 source: branches/rel-0.15
1053 Fix [ 366 ] circular dependency. Release for Python 2 only.
1056 Release 0.15 (2019-07-20)
1057 =========================
1059 * General
1061   - Dropped support for Python 2.4, 2.5, 3.1, and 3.2.
1062   - Infrastructure automation.
1064 * docs/ref/docutils.dtd
1066   - The <table> element accepts the new attribute "width".
1068 * docs/ref/rst/restructuredtext.txt
1070   - Document rST syntax change: Tokens like ``:this:example:`` are now valid
1071     field list names (instead of ordinary text).
1073 * docutils/io.py
1075   - Fix [ 348 ] Since Python 3.4, the 'U' universal newlines mode has been
1076     deprecated. Thanks to hugovk.
1078 * docutils/languages/ko.py, docutils/parsers/rst/languages/ko.py
1080   - Apply [ 153 ] Korean mappings by Thomas Sungjin Kang.
1082 * docutils/nodes.py
1084   - Fix [ 251 ] `system_message.copy()`  `TypeError`.
1085   - `Element.copy()` also copies `document`, `line`, and `source` attributes.
1087 * docutils/parsers/rst/__init__.py
1089   - Apply [ 152 ] reset `default role` at end of document.
1091 * docutils/parsers/rst/states.py
1093   - Allow embedded colons in field list field names.
1095 * docutils/parsers/rst/directives/html.py
1097   - Fix bug #281: Remove escaping backslashes in meta directive content.
1099 * docutils/parsers/rst/directives/misc.py
1101   - Don't convert tabs to spaces, if `tab_width` is negative in
1102     "include" directive with "code" option.
1104 * docutils/parsers/rst/directives/tables.py
1106   - Apply patch #121: Add "width" option for the table directives.
1108 * docutils/transforms/frontmatter.py
1110   - Add field name as class argument to generic docinfo fields unconditionally.
1112 * docutils/transforms/references.py
1114   - Fix bug #331: fixed the "trim" options of the "unicode" directive.
1116 * docutils/utils/__init__.py
1118   - Deprecate `unique_combination()` (obsoleted by `itertools.combination()`.
1120 * docutils/utils/smartquotes.py
1122   - Fix bug #332: use open quote after whitespace, ZWSP, and ZWNJ.
1124 * docutils/writers/html5_polyglot/
1126   - automatically add HTML5-compatible meta tags for docinfo items
1127     "authors", "date", and "copyright".
1129 * docutils/writers/_html_base.py
1131   - Fix bug #358: Non-breaking space removed from fixed-width literal.
1133 * docutils/writers/latex2e/__init__.py
1135   - Fix bug #323: spurious ``\phantomsection`` and whitespace in
1136     ``parts['title']``.
1137   - Fix bug #324: Invalid LaTeX for table with empty multi-column cell.
1138   - Fixes to literal block handling.
1141 Release 0.14 (2017-08-03)
1142 =========================
1144 * docs/ref/docutils.dtd
1146   - Enable validation of Docutils XML documents against the DTD:
1148     Use attribute type NMTOKEN instead of REFID for the `refid` attribute
1149     and NMTOKENS for `backrefs`: REFID refers to an ID type instance,
1150     however, the `ids` attribute cannot use the ID type because `XML only
1151     allows one ID per Element Type`__ and doesn't support a multiple-ID
1152     "IDS" attribute type.
1154   __ https://www.w3.org/TR/REC-xml/#sec-attribute-types
1156 * docs/ref/rst/restructuredtext.txt
1158   - Added documentation for escaped whitespace in URI contexts.
1159   - Clarify use of Unicode character categories.
1161 * docutils/parsers/rst/states.py
1163   - Added functionality: escaped whitespace in URI contexts.
1164   - Consistent handling of all whitespace characters in inline markup
1165     recognition. Fixes [ 307 ] and [ 3402314 ] (now [ 173 ]).
1167 * docutils/parsers/rst/directives/images.py
1169   - Added support for escaped whitespace in URI contexts.
1171 * docutils/parsers/rst/directives/tables.py
1173   - Rework patch [ 120 ] (revert change to Table.get_column_widths()
1174     that led to problems in an application with a custom table directive).
1176 * docutils/transforms/frontmatter.py
1178   - Fix [ 320 ] Russian docinfo fields not recognized.
1180 * docutils/transforms/references.py
1182   - Don't add a second ID to problematic references.
1184 * docutils/transforms/universal.py
1186   Fix `SmartQuotes`: warn only once if language is unsupported,
1187   keep "rawsource" when "educating" quotes.
1189 * docutils/utils/__init__.py
1191   - Added `split_escaped_whitespac()` function, support for escaped
1192     whitespace in URI contexts.
1194 * docutils/utils/error_reporting.py
1196   - Fix [ 321 ] Import block might cause name error.
1198 * docutils/utils/smartquotes.py
1200   - Update quote definitions for languages et, fi, fr, ro, sv, tr, uk.
1201   - New quote definitions for hr, hsb, hu, lv, sh, sl, sr.
1202   - Fix [ 313 ] Differentiate apostrophe from closing single quote
1203     (if possible).
1204   - Fix [ 317 ] Extra space inserted with French smartquotes.
1205   - Add command line interface for stand-alone use (requires 2.7).
1207 * docutils/writers/_html_base.py
1209   - Provide default title in metadata (required by HTML5).
1210   - Fix [ 312 ] HTML writer generates invalid HTML if the table has two tags.
1211   - Fix [ 319 ] The MathJax CDN shut down on April 30, 2017. For security
1212     reasons, we don't use a third party public installation as default but
1213     warn if `math_output`_ is set to MathJax without specifying a URL.
1215 * docutils/writers/html4css1/__init__.py
1217   - Apply [ 125 ] HTML writer: respect automatic table column sizing.
1219 * docutils/writers/latex2e/__init__.py
1221   - Handle class arguments for block-level elements by wrapping them
1222     in a "DUclass" environment. This replaces the special handling for
1223     `epigraph` and `topic` elements.
1225 * docutils/writers/manpage.py
1227   - Apply [ 141 ] Handling inline in manpage writer.
1229 * docutils/writers/odf_odt/__init__.py
1231   - Command line setting `language`_ now sets the default language of the
1232     generated ODF document.
1233   - The use of image directive options :width: (%), :scale:, etc now
1234     set the width/height/size of images in the generated ODF
1235     documents.
1236   - The heading/title of admonitions now reflects the language
1237     specified by the `language`_ setting.
1238   - Fixed [ 306 ] only first of multiple "image" directives with the same URL
1239     shown in output.
1240   - Fixed [ 282 ] python3:  `AttributeError`.
1242 * tools/rst2html4.py: New front-end.
1244 * tools/dev/generate_punctuation_chars.py: New script
1245   to test and update utils.punctuation_chars.
1248 Release 0.13.1 (2016-12-09)
1249 ===========================
1251 * docs/ref/docutils.dtd
1253   - Add the document tree elements <math> and <math_block> (already in use).
1255 * docutils/languages/fa.py
1256   docutils/parsers/rst/languages/fa.py
1257   docutils/languages/la.py
1258   docutils/parsers/rst/languages/la.py:
1260   - Apply [ 133 ] Persian mappings by Shahin Azad.
1261   - Apply [ 135 ] Language modules for Latvian by Alexander Smishlajev
1263 * docutils/nodes.py
1265   - Fix [ 253 ] Attribute key without value not allowed in XML.
1267 * docutils/parsers/
1269   - Apply [ 103 ] Recognize inline markups without word boundaries.
1270   - Enable escaping in embedded URIs and aliases (fixes [ 284 ]).
1272 * docutils/parsers/rst/__init__.py
1274   - Fix [ 233 ] Change the base URL for the :rfc: role.
1276 * docutils/parsers/rst/directives/tables.py
1278   - Apply [ 120 ] tables accept option widths: list of relative widths, 'auto'
1279     or 'grid'.
1281   - Implement feature request [ 48 ]
1282     Add :align: option to the table directives.
1283     Thanks to Takeshi KOMIYA for the patch.
1285 * docutils/parsers/rst/roles.py
1287   - Fix [ 295 ] Class argument for custom role inheriting from math.
1289 * docutils/parsers/rst/tableparser.py
1291   - Really fix [ 159 ] Spurious table column alignment errors.
1293 * docutils/transforms/frontmatter.py
1295   - Add name of generic bibliographic fields as a "classes" attribute value
1296     (after conversion to a valid identifier form).
1298 * docutils/utils/error_reporting.py
1300   - Fix [ 130 ] support streams expecting byte-strings in ErrorOutput.
1302 * docutils/utils/math/math2html.py
1304   - Add ``\colon`` macro, fix spacing around colons. Fixes [ 246 ].
1305   - New upstream version (additional macros, piece-wise integrals and sums).
1307 * docutils/writers/_html_base.py
1309   - New auxiliary module for definitions common to all HTML writers.
1311 * docutils/writers/html5_polyglot/
1313   - New HTML writer generating clean, polyglot_ markup conforming to
1314     `HTML 5`_.
1316     The CSS stylesheets ``minimal.css`` and ``plain.css`` contain required
1317     and recommended layout rules.
1319 * docutils/writers/html4css1/__init__.py
1321   - Add "docutils" to class values for "container" object to address [ 267 ].
1322   - Apply patch [ 119 ] by Anatoly Techtonik: use absolute paths for
1323     `default_stylesheet_path` and `default_template_path`.
1324   - Fix [ 266 ] creating labels/class values in description list items.
1325   - Do not use <sup> and <sub> tags inside <pre> (parsed-literal blocks).
1326   - Fix footnotes with content that does not start with a paragraph.
1327   - Use https in default MathJax URL (report Alan G Isaac).
1328   - Outsourcing of common code to _html_base.py.
1330 * docutils/writers/latex2e/__init__.py
1332   - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
1333     admonitions and docinfo.
1335   - Use absolute path for `default_template_path`.
1337   - Removed deprecated options ``--use-latex-footnotes`` and
1338     ``--figure-footnotes``.
1340   - Cleaner LaTeX code for enumerations and literal blocks.
1342   - Use `hyperref` package together with `bookmark` (improved hyperlinking
1343     by the same author).
1345   - Fix [ 286 ] Empty column title cause invalid latex file.
1347   - Fix [ 224 ] Fix rowspan support for tables.
1349   - Let LaTeX determine the column widths in tables with "colwidths-auto".
1350     Not suited for multi-paragraph cells!
1352 * docutils/writers/odf_odt/__init__.py
1354   - remove decode.encode of filename stored in zip.
1356 * docutils/writers/xetex/__init__.py
1358   - LuaLaTex compatibility: do not load `xunicode` package.
1360 * tools/
1362   - New front-end ``rst2html5.py``.
1364 * tox.ini
1366   - Test py26, py27, py33 and py34.
1368     To use, install the `tox` package via pip or easy_install and use
1369     tox from the project root directory.
1371 .. _polyglot: https://www.w3.org/TR/html-polyglot/
1372 .. _HTML 5: https://www.w3.org/TR/html5/
1375 Release 0.12 (2014-07-06)
1376 =========================
1378 * docs/ref/rst/directives.txt
1380   - Update "math" and "csv-table" descriptions.
1382 * docutils/parsers/rst/directives/images.py
1384   - Fix [ 258 ] ``figwidth="image"`` generates unitless width value.
1386 * docutils/parsers/rst/states.py
1388   - Improve error report when a non-ASCII character is specified as
1389     delimiter, quote or escape character under Python 2.
1390     Fixes [ 249 ] and [ 250 ].
1392 * docutils/writers/html4css1/__init__.py
1394   - Don't add newline after inline math.
1395     Thanks to Yury G. Kudryashov for the patch.
1397 * docutils/writers/latex2e/__init__.py
1399   - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
1400   - Apply [ 116 ] by Kirill Smelkov. Don't hard code \large for subtitle.
1402 * docutils/writers/odf_odt/__init__.py
1404   - Apply patch by Jakub Wilk to fix bug [ 100 ].
1406 * test/test_error_reporting.py
1408   - Fix [ 223 ] by removing redundant tests we do not have control over.
1410 * test/test_nodes.py
1412   - Apply [ 115 ] respect fixed 2to3 string literal conversion behaviour.
1415 Release 0.11 (2013-07-22)
1416 =========================
1418 * General
1420   - Apply [ 2714873 ] Fix for the overwriting of document attributes.
1421   - Support embedded aliases within hyperlink references.
1422   - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
1423     language module) before global search.
1425 * docutils/nodes.py
1427   - Fix [ 3601607 ] `node.__repr__()` must return `str` instance.
1429 * docutils/parsers/rst/directives/__init__.py
1431   - Fix [ 3606028 ] `assert` is skipped with ``python -O``.
1433 * docutils/parsers/rst/directives/images.py
1435   - Apply [ 3599485 ] node source/line information for sphinx translation.
1437 * docutils/parsers/rst/directives/tables.py
1439   - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
1441 * docutils/parsers/rst/states.py
1443   - Fix [ 157 ] Line block parsing doesn't like system message.
1444   - Always import our local copy of roman.py (report Larry Hastings).
1446 * docutils/transforms/references.py
1448   - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
1450 * docutils/utils/__init__.py
1452   - Fix [ 3596884 ] exception importing `docutils.io`.
1454 * docutils/writers/html4css1/__init__.py
1456   - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
1457   - New setting `stylesheet_dirs`_: Comma-separated list of directories
1458     where stylesheets are found. Used by `stylesheet_path` when expanding
1459     relative path arguments.
1460   - New default for `math_output`_: ``HTML math.css``.
1461   - Avoid repeated class declarations in html4css1 writer
1462     (modified version of patch [ 104 ]).
1465 * docutils/writers/latex2e/__init__.py
1467   - Drop the simple algorithm replacing straight double quotes with
1468     English typographic ones.
1469     Use the `smart_quotes`_ setting to activate this feature.
1470   - Fix literal use of babel shorthands (straight quote, tilde, ...).
1471   - Fix [ 3603246 ] Bug in option ``--graphicx-option=auto``.
1472   - New setting `stylesheet_dirs`__.
1474     __ docs/user/config.html#stylesheet-dirs-latex-writers
1477 * docutils/writers/manpage.py
1479   - Fix [3607063] handle lines starting with a period.
1480   - Fix option separating comma was bold (thanks to Bill Morris).
1483 Release 0.10 (2012-12-16)
1484 =========================
1486 * General
1488   - Dropped support for Python 2.3.
1489   - ``docutils/math``, ``docutils/error_reporting.py``, and
1490     ``docutils/urischemes.py`` moved to the utils package.
1491   - Fix [3541369] Relative __import__ also with Python 3.3.
1492   - Fix [3559988] and [3560841] __import__ local writer, reader, languages
1493     and parsers for Python 2.7 up.
1494   - Fix import of PIL.Image.
1495   - Change default of `syntax_highlight`_ option to "long",
1496     basic syntax highlight styles for LaTeX and HTML.
1498 * docutils/io.py
1500   - FileInput/FileOutput: no system-exit on IOError.  The `handle_io_errors`
1501     option is ignored and will be removed in a future release.
1502   - Fix Py3k error writing to stdout with encoding differing from default.
1503   - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
1505 * docutils/parsers/rst/directives/misc.py
1507   - Fix [ 3546533 ] Unicode error with "date" directive.
1509 * docutils/transforms/universal.py
1511   - SmartQuotes transform for typographic quotes and dashes.
1513 * docutils/utils/__init__.py
1515   - `normalize_language_tag()` now returns `BCP 47`_ conforming tags
1516     with sub-tags separated by ``-``.
1518 * docutils/writers/html4css1/__init__.py
1520   - Use ``<code>`` tag for inline "code",
1521     do not drop nested inline nodes (syntax highlight tokens).
1522   - Customizable MathJax URL (based on patch by Dmitry Shachnev).
1523   - No line break after opening inline math tag.
1525 * docutils/writers/manpage.py
1527   - Apply [ 3527401 ] admonition's don't preserve indentation
1528   - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
1530 * docutils/writers/xetex/__init__.py
1532   - Apply [ 3555160 ] ensure order of "otherlanguages".
1533   - Fix section numbering by LaTeX.
1535 * docutils/writers/s5_html/__init__.py
1537   - Fix [ 3556388 ] MathJax does not work with rst2s5.
1539 * docutils/writers/docutils_xml.py
1541   - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
1542   - Fix/improve output with `indents`_ setting.
1544 * setup.py
1546   - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
1548 * tools/test/test_buildhtml.py
1550   - Fix [ 3521167 ] allow running in any directory.
1551   - Fix [ 3521168 ] allow running with Python 3.
1554 Release 0.9.1 (2012-06-17)
1555 ==========================
1557 * setup.py
1559   - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
1560     installed in the PYTHONPATH. Converted tests are now
1561     stored in ``test3/``, tools no longer need conversion.
1563     If you installed one of Docutils versions 0.7 ... 0.9 with
1564     ``setup.py install`` under Python 3, remove the spurious
1565     ``test/`` and ``tools/`` directories in the site library root.
1567 * test/
1569   - Make tests independent from the location of the ``test/`` directory.
1570   - Use converted sources (from the ``build/`` directory) for tests under
1571     Python 3.
1573 * tools/
1575   - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
1577 * docutils/io.py
1579   - Fix writing binary data to sys.stdout under Python 3 (allows
1580     ``rst2odt.py`` to be used with output redirection).
1582 * docutils/parsers/rst/directives/misc.py
1584   - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
1585     ``locale == C`` and 8-bit char in path argument of `include` directive.
1587 * test/alltests.py
1589   - class `Tee`: catch  `UnicodeError` when writing to "ascii" stream or
1590     file under Python 3.
1593 Release 0.9 (2012-05-02)
1594 ========================
1596 * General:
1598   - New reStructuredText "code" role and directive and "code" option
1599     of the "include" directive with syntax highlighting by Pygments_.
1600   - Fix parse_option_marker for option arguments containing ``=``.
1601   - Fix [ 2993756 ] import Python Imaging Library's Image module
1602     via ``import PIL`` as starting with PIL 1.2,
1603     "PIL lives in the PIL namespace only" (announcement__).
1605 .. _Pygments: https://pygments.org/
1606 __ https://mail.python.org/pipermail/image-sig/2011-January/006650.html
1608 * setup.py
1610   - Fix [ 2971827 ] and [ 3442827 ]
1611     extras/roman.py moved to docutils/utils/roman.py
1613 * docutils/frontend.py
1615   - Fix [ 3481980 ] Use `os.getcwdu()` in `make_paths_absolute()`.
1617 * docutils/io.py
1619   - Fix [ 3395948 ] (Work around encoding problems in Py3k).
1620   - `mode` argument for FileOutput avoids code replication in
1621     BinaryFileOutput.
1622   - New exceptions  `InputError` and  `OutputError` for IO errors in
1623     FileInput/FileOutput.
1625 * docutils/core.py
1627   - No "hard" system exit on file IO errors: catch and report them in
1628     `Publisher.reportException` instead. Allows handling by a calling
1629     application if the configuration setting `traceback`_ is True.
1631 * docutils/utils.py -> docutils/utils/__init__.py
1633   - docutils.utils is now a package (providing a place for sub-modules)
1635   - DependencyList uses io.FileOutput and 'utf-8' encoding to prevent
1636     errors recording non-ASCII filenames (fixes [ 3434355 ]).
1638   - Fix `relative_path()` with source=None and `unicode` target.
1640 * docutils/parsers/rst/states.py
1642   - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
1643     characters and "international" quotes around inline markup.
1644   - Use `field_marker` pattern to look for start of a
1645     directive option block (fixes [ 3484857 ]).
1647 * docutils/parsers/rst/tableparser.py
1649   - Fix [ 2926161 ] for simple tables.
1650     (Combining chars in grid tables still contribute to cell width.)
1652 * docutils/writers/latex2e/__init__.py
1654   - Support the `abbreviation` and `acronym` standard roles.
1655   - Record only files required to generate the LaTeX source as dependencies.
1656   - Fix handling of missing stylesheets.
1657   - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
1658     when suppressing LaTeX section numbering.
1659   - Use ``\DUtitle`` for unsupported section levels.
1660   - Apply [ 3512791 ] do not compare string literals with "is".
1662 * docutils/writers/xetex/__init__.py
1664   - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
1666 * docutils/writers/html4css1/__init__.py
1668   - Change default for `math_output`_ setting to MathJax.
1669   - Fix handling of missing stylesheets.
1671 * docutils/writers/docutils_xml.py
1673   - Use the visitor pattern with `default_visit()`/`default_depart()` methods
1674     instead of minidom to facilitate special handling of selected nodes.
1675   - Support raw XML (inserted as-is inside a <raw></raw> node).
1677 * docutils/writers/manpage.py
1679   - Do not emit comment line with trailing blank. Problematic for VCS.
1682 Release 0.8.1 (2011-08-30)
1683 ==========================
1685 * General:
1687   - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
1688     and [ 3395920 ] (correct copyright info for rst.el).
1690 * test/
1692   -  Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
1694 * docutils/writers/latex2e/__init__.py
1696   - Clean up Babel language setting. Restores Sphinx compatibility.
1699 Release 0.8 (2011-07-07)
1700 ========================
1702 * General:
1704   - Handle language codes according to `BCP 47`_.
1705   - If the specified language is not supported by Docutils,
1706     warn and fall back to English.
1707   - Math support: reStructuredText "math" role and directive,
1708     `math` and `math_block` doctree elements.
1709   - Decode command line arguments with the locale's preferred encoding
1710     (to allow, e.g., ``--title=Dornröschen``).
1711   - Orphaned `python` reader and `newlatex2e` writer moved to the sandbox.
1712   - New sub-module `error_reporting`: handle encoding/decoding errors
1713     when reporting exceptions.
1714   - Some additions to the Docutils core are released under the 2-Clause BSD
1715     license, see COPYING_ for details.
1717   .. _BCP 47: https://www.rfc-editor.org/rfc/bcp/bcp47.txt
1718   .. _COPYING: COPYING.html
1720 * reStructuredText:
1722   - Most directives now support a "name" option that attaches a
1723     reference name.
1725   - Directive content may start on the first line also when the directive
1726     type accepts options.
1728 * docs/dev/policies.txt
1730   - Recommend the 2-Clause BSD license
1731     (http://opensource.org/licenses/BSD-2-Clause)
1732     for code that is kept under the author's copyright.
1734 * tools/buildhtml.py
1736   - Fix ``--local`` switch.
1738 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
1740 * docutils/writers/html4css1/__init__.py
1742   - Set "lang" argument for objects with class argument
1743     "language-<language tag>".
1744   - New setting `math_output`_ with support for HTML, MathML, and LaTeX.
1746 * docutils/writers/latex2e/__init__.py
1748   - Fix [ 3043986 ]  `AttributeError` using :local: with table of content.
1749   - Place title data in the document preamble.
1750   - Load `babel` package only if required.
1751   - Update list of supported languages.
1752   - New config setting `hyperref_options`_.
1753     No hard-coded "unicode" hyperref option (clash with xetex).
1754   - Set language for custom roles, paragraphs, block-quotes, and
1755     line-quotes with class argument "language-<language tag>".
1756   - Fix [ 3095603 ] wrong quotes output for Russian and other languages.
1757   - Convert image URI to a local file path.
1758   - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
1759     has more than one paragraph (Wolfgang Scherer).
1760   - \leavevmode before longtable only when needed (prevents spurious vspace)
1761   - do not advance table counter for tables without caption
1763 * docutils/writers/xetex/__init__.py
1765   - New writer generating LaTeX code for compiling with ``xelatex``.
1767     A separate writer (inheriting from latex2e) instead of a ``--xetex``
1768     option allows separate config options for XeTeX vs. LaTeX2e.
1770 * docutils/writers/manpage.py
1772   - Fix: BUG#3219183 - vertical space in definition lists containing markup.
1773   - Fix: vertical space cleaning for option group ``.``.
1775 * tools/editors/emacs/rst.el
1777   - Fix [ 3001100 ] does not handle spaces in filenames.
1778     Thanks to Jakub Wilk.
1780 * docutils/utils.py
1782   - strip whitespace from stylesheet arguments
1783   - exclude combining chars from column_width()
1784     (partial fix for [ 2926161 ])
1786 * docutils/parsers/rst/directives/misc.py
1788   - Fix [ 1830389 ] Replace not breaking on getting system_messages from
1789     nested_parse
1791 * docutils/io.py
1793   - Do not ``close()`` `sys.stdin`, `sys.stdout`, or `sys.stderr`. Prevents
1794     ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
1797 Release 0.7 (2010-07-07)
1798 ========================
1800 * General:
1802   - Fix [ 2881769 ] setup configuration.
1803   - Fix [ 2788716 ] reporting problems in included files.
1805 * docutils/io.py
1807   - FileInput opens files as text files with universal newline support
1808     (mode "rU", configurable with the new optional argument "mode").
1810 * docutils/nodes.py
1812   - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
1814 * docutils/utils.py
1816   - Fix [ 2923723 ] let `decode_path()` tolerate ``path == None``.
1818 * docutils/writers/html4css1/__init__.py
1820   - Support SVG and SWF images (thanks to Stefan Rank).
1821   - Generate valid XHTML for centred images with targets.
1822     Use CSS classes instead of "align" tags for image alignment.
1824 * docutils/writers/latex2e/__init__.py
1826   - Use `transforms.writer_aux.Admonitions` to "normalize" special
1827     admonitions.
1828   - Use the ``\url`` command for URLs (breaks long URLs instead of
1829     writing into the margin).
1830   - Preserve runs of spaces in `inline literals`__.
1831   - Deprecate `figure_footnotes`_ setting.
1832   - Rename `use_latex_footnotes`_ setting to `docutils_footnotes`_.
1833   - New `latex_preamble`_ setting.
1834   - Use PDF standard fonts (Times/Helvetica/Courier) as default.
1835   - Fix hyperlink targets (labels) for images, figures, and tables.
1836   - Apply [ 2961988 ] Load babel after inputenc and fontenc.
1837   - Apply [ 2961991 ] Call hyperref with unicode option.
1838   - Drop the special `output_encoding`_ default ("latin-1").
1839     The Docutils wide default (usually "UTF-8") is used instead.
1840   - Render inline markup in document title and subtitle.
1841   - Fix numbering depth with LaTeX section numbering.
1842   - Update Unicode -> LaTeX translations.
1843   - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
1845 __ docs/ref/restructuredtext.html#inline-literals
1847 * docutils/writers/manpage.py
1849   - Fix: supported attribute (thanks to peter2108).
1850   - Remove trailing blanks in code (keep in sync with mercurial version).
1851   - Titles level 1, that is ``.SH``, always uppercase.
1852   - Apply patch from mg: literal text should be bold in man-pages.
1854 * docutils/nodes.py
1856   - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
1857     Turkish locale.
1859 * setup.py
1861   - Python 3 support: copy test/ and tools/ to the build-dir
1862     and convert Python sources with 2to3.
1865 Release 0.6 (2009-10-11)
1866 ========================
1868 * General:
1870   - Docutils is now compatible with Python versions from 2.3 up to 2.6
1871     and convertible to 3.1 code.
1873     + Node.__nonzero__ returns True instead of 1.
1874     + use os.walk instead os.path.walk.
1875     + minimize `types` module where possible.
1876     + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
1877     + Text nodes now subclass unicode rather than UserString
1878       (which is gone in python 3.0).
1879     + 3.0 compatibility module docutils._compat
1881     + Drop 2.2 compatibility workarounds.
1882     + Drop extras/optparse.py and extras/textwrap.py
1883       (stdlib modules since 2.3).
1885   - OpenOffice export: ODT writer moved from sandbox to Docutils core.
1886   - Unix man page export: manpage writer moved from sandbox to Docutils
1887     core.
1889   - Apply [ 1719345 ] Galician translation
1890   - Apply [ 1905741 ] Polish translation
1891   - Apply [ 1878977 ] make_id(): deaccent characters.
1892   - Apply [ 2029251 ] return nonzero when tests fail.
1893   - Fix [ 1692788 ] allow UTF-8 in style sheets.
1894   - Fix [ 2781629 ] support non-ASCII chars in file names.
1895   - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
1896   - Fix [ 2831643 ] renaming `DirectiveError.message` to `DirectiveError.msg`
1897   - Fix [ 2821266 ] ``--strict`` option works now like ``--halt=info``.
1898   - Fix [ 2788716 ]  `DirectiveError` now correctly reports source and line.
1899   - Fix [ 1627229 ] hyperlink references in substitutions.
1901   - The `newlatex` writer is orphaned.
1903 * reStructuredText:
1905   - Documented Unicode characters allowed as inline markup openers,
1906     closers, and delimiters.
1907   - Allow units for all length specifications.
1908   - Allow percent sign in "scale" argument of "figure" and "image" directives.
1909   - Bugfix: The "figalign" argument of a figure now works as intended
1910     (aligning the figure, not its contents).
1911   - Align images with class "align-[right|center|left]"
1912     (allows setting the alignment of an image in a figure).
1914 * docutils/nodes.py:
1916   - Added `Element.__contains_()` method, for the in-operator.
1918 * docutils/parsers/rst/states.py:
1920   - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
1921   - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
1922     " " (non-breaking space), and "¡ ¿" openers.
1924 * docutils/parsers/directives/misc.py:
1926   - Added ``start-line`` and ``end-line`` options to "include"
1927     directive to select a range of lines.
1928   - Hard tabs in literal inclusions are replaced by spaces. This is
1929     configurable via the new ``tab-width`` option of the "include" directive
1930     (a negative tab-width prevents tab expansion).
1932 * docutils/utils.py:
1934   - Add `get_stylesheet_lis()` function.
1935   - Apply [ 2834836 ] print info at halt
1937 * docutils/transforms/universal.py:
1939   - Raise default priority of StripClasses to exclude stripped classes from
1940     the ToC.
1942 * docutils/writers/html4css1/__init__.py:
1944   - `stylesheet`_ and `stylesheet_path`_ settings support a comma
1945     separated list of stylesheets.
1946   - Address [ 1938891 ] Inline literal text creates "pre" span only when
1947     needed to prevent inter-word line wraps.
1948   - Use `translate()` method instead of repeated `replace()` calls.
1949   - Fix [ 1757105 ] New `table_style`_ setting. Added to standard table
1950     classes to allow CSS styling that does not interfere with other
1951     table-using constructs (field lists, citations, ...).
1953 * docutils/writers/newlatex2e/__init__.py:
1955   - Apply [ 1612821 ] Double quotes in literal text in Italian/German
1957 * docutils/writers/latex2e/__init__.py:
1959   - Add `embed_stylesheet`_ setting.
1960   - Apply [ 1474017 ] image vertical alignment is reversed.
1961   - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
1962   - Change: has_key for dictionaries (not Nodes) to in-operator.
1963   - Merge adjacent citations into one latex cite command.
1964   - Failsafe implementation of custom roles. LaTeX compilation now ignores
1965     unknown classes instead of aborting with an error.
1966   - Support custom roles based on standard roles.
1967   - LaTeX packages can be used as `stylesheet`_ arguments without
1968     restriction. (A style sheet is now referenced with the ``\usepackage``
1969     command, if it ends with ``.sty`` or has no extension.)
1970   - Add ``bp`` to lengths without unit (prevents LaTeX errors).
1971   - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
1972   - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
1973     2005-02-04 as a configurable length unit).
1974   - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
1975     if font-encoding is set to ''. LaTeX defaults to OT1 then.
1976   - Set sub- and superscript role argument in text mode not as math.
1977     Use a custom role based on sub-/superscript if you want italic shape.
1978   - Shorter preamble and less dependencies: Load packages and define macros
1979     only if required in the document.
1980   - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
1981   - New custom environments and commands with optional "classes" argument.
1982   - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
1983   - Better conformance to Docutils specifications with `use_latex_toc`_.
1984     Support for LaTeX generated ToC also with unnumbered sections.
1985   - If 'sectnum_xform' is False, the 'sectnum' directive triggers
1986     section numbering by LaTeX.
1987   - Use default font in admonitions and sidebar.
1988   - Align of image in a figure defaults to 'center'.
1989   - Bugfix: Newlines around targets and references prevent run-together
1990     paragraphs.
1991   - Fix internal hyperlinks.
1992   - Use class defaults for page margins ('typearea' now optional).
1993   - Float placement made configurable, default changed to "here definitely".
1994   - Typeset generic topic as "quote block with title".
1995   - Use template (file and configuration option).
1996   - In the default template, load cmap.sty (fix text extraction in PDF) and
1997     fixltx2e.sty (LaTeX patches, \textsubscript).
1998   - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
1999   - Use `translate()` instead of repeated `replace()` calls for text encoding.
2000   - Hyperlinked footnotes and support for symbol footnotes and
2001     ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
2002   - Complete pairs of binary options
2003     (``--figure-footnotes, --figure-citations, --link-stylesheet``,
2004     ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
2005   - New defaults:
2006     - font-encoding: "T1" (formerly implicitly set by 'ae').
2007     - use-latex-toc: true (ToC with page numbers).
2008     - use-latex-footnotes: true (no mixup with figures).
2010 * docutils/writers/manpage.py
2012   - Do not print version at document end, this is done by the viewer.
2013   - Do not print date at document end, this is done by the viewer.
2014   - Fix storage of docinfo fields for none standard fields.
2016 * docutils/tools/rst2man.py
2019 Release 0.5 (2008-06-25)
2020 ========================
2022 * docutils/languages/he.py: Added to project: Hebrew mappings by
2023   Meir Kriheli.
2025 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
2026   mappings by Meir Kriheli.
2028 * docutils/frontend.py:
2030   - Configuration files are now assumed and required to be
2031     UTF-8-encoded.
2032   - Paths of applied configuration files are now recorded in the
2033     runtime setting `_config_files`_ (accessible via `dump_settings`_).
2034   - Added `strip_elements_with_classes`_ and `strip_classes`_ settings.
2036 * docutils/io.py:
2038   - Added code to determine the input encoding from data: encoding
2039     declarations or the presence of byte order marks (UTF-8 & UTF-16).
2040   - Added support for IronPython 1.0.
2042 * docutils/nodes.py:
2044   - Added `document.__getstate_()` method, for pickling.
2046 * docutils/parsers/rst/states.py:
2048   - Allow ``+`` and ``:`` in reference names.
2049   - Unquoted targets beginning with an underscore (``.. __target:
2050     URI``) are no longer accepted.
2051   - Added support for multiple attributions in a physical block quote
2052     (indented text block), dividing it into multiple logical block
2053     quotes.
2054   - Added support for unicode bullets in bullet lists: "•", "‣", and
2055     "⁃".
2056   - Added support for new object-oriented directive interface,
2057     retaining compatibility to the old functional interface.
2058   - Added support for throwing `DirectiveError`'s from within
2059     directive code.
2061 * docutils/parsers/rst/__init__.py:
2063   - Added `Directive` base class.
2064   - Added `DirectiveError` base class.
2065   - Fixed `file_insertion_enabled`_ & `raw_enabled`_ setting
2066     definitions.
2068 * docutils/parsers/directives/:
2070   - Refactored all reStructuredText directives to use the new
2071     object-oriented directive interface.  Errors are now (mostly)
2072     thrown using the new `DirectiveError` class.
2074 * docutils/parsers/directives/misc.py:
2076   - Added ``start-after`` and ``end-before`` options to ``include``
2077     directive; thanks to Stefan Rank.
2079 * docutils/transforms/universal.py:
2081   - Added `StripClassesAndElements` transform to remove from the
2082     document tree all elements with classes in
2083     `strip_elements_with_classes`_ and all "classes"
2084     attribute values in `strip_classes`_
2086 * docutils/transforms/writer_aux.py:
2088   - Added `Admonitions` transform to transform specific admonitions
2089     (like "note", "warning", etc.) into generic admonitions with a
2090     localized title.
2092 * docutils/writers/html4css1/__init__.py:
2094   - Moved template functionality from the PEP/HTML writer here.
2095   - Expanded the fragments available in the ``parts`` attribute.
2096   - Moved ``id`` attributes from titles to surrounding ``div``
2097     elements.
2098   - Dropped all ``name`` attributes of ``a`` elements (``id`` is
2099     universally supported now).
2100   - ``template.txt`` is now opened in text mode instead of binary mode
2101     (to ensure Windows compatibility).
2102   - ``a`` elements now have an "internal" or "external" class,
2103     depending on reference type.
2105 * docutils/writers/html4css1/template.txt: Added to project.
2107 * docutils/writers/pep_html/:
2109   - Moved template functionality to the HTML writer.
2111 * docutils/writers/s5_html/__init__.py:
2113   - Added `view_mode`_ & `hidden_controls`_ settings.
2115 * docutils/writers/latex2e/__init__.py:
2117   - Add `literal_block_env`_.
2118   - Fix: escaping ``%`` in href urls.
2119   - Move usepackage hyperref after stylesheet inclusion.
2120   - Fix: scrartcl does not have chapter but scrreprt.
2121   - Add newline after ``\end{verbatim}``.
2122   - Merge smaller differences from latex2e_adaptive_preamble.
2123   - Add ``use-part-section``.
2124   - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
2125   - Using leavemode option_list no longer needs to check if parent
2126     is a definition list.
2127   - Append ``\leavemode`` to definition list terms.
2128   - No longer write visit\_/depart_definition_list_item comments to
2129     output.
2130   - Table column width with 3 decimal places.
2131   - Add table stubs support (boldfont).
2132   - Add assemble_parts to writer.
2133   - Add simply support for nested tables.
2134   - Fix verbatim in tables if use-verbatim-when-possible.
2135   - Use section commands down to subparagraph.
2136   - Put ensuremath around some latin1 chars.
2137   - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
2138   - New experimental setting `use_bibtex`_.
2139   - New setting `reference_label`_ to allow usage of LaTeX ref for
2140     labels in section references.
2141   - Add a label after every section to support sectionnumbers as reference
2142     labels.
2143   - Fix: bug# 1605376 rst2latex: bad options group list
2144   - Remove inactive code for use_optionlist_for_option_list.
2145   - Remove latex comments from option_list output.
2146   - Fix: bug# 1612270 double quotes in italian literal.
2147   - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
2148   - Add setting `use_latex_abstract`_.
2149   - Image width unit ``px`` is translated to ``pt``.
2150   - Add image height support.
2151   - Fix: image width ``70%`` is converted ``0.700\linewidth``.
2152     bug #1457388
2153   - Fix: Do not escape underscores in citation reference labels if
2154     use-latex-citations is set.
2155   - Use centering instead of center for figure contents, to avoid vertical
2156     space.
2157   - Recognize table class: borderless, nolines, booktabs, standard.
2158   - Fix: Renaming contents section does not work with latex writer; SF
2159     bug #1487405.
2160   - Applied patch for custom roles with classes from Edward Loper.
2161   - Fixed bug that caused crashes with more than 256 lists.
2163 * docutils/writers/pep_html/__init__.py:
2165   - Changed to support new python.org website structure and
2166     pep2pyramid.py.
2168 * docs/howto/security.txt: "Deploying Docutils Securely", added to
2169   project.
2171 * tools/buildhtml.py:
2173   - Add `ignore`_ setting to exclude a list of shell patterns
2174     (default: ``.svn:CVS``).
2176 * tools/editors/emacs/rst.el:
2178   - Changed license to "GPL".
2179   - Added ``rst-straighten-decorations`` function.
2180   - The ``compile`` module is now always loaded.
2181   - Added ``rst-toggle-line-block`` function.
2182   - Headings consisting only of non-ASCII characters are now
2183     recognized by ``rst-toc`` and ``rst-adjust``.
2184   - Added font-lock support for multi-line comments where the first
2185     comment line is empty.
2186   - Added ``(require 'font-lock)``.
2188 * setup.py:
2190   - Provide descriptive error message if distutils is missing.
2193 Release 0.4 (2006-01-09)
2194 ========================
2196 * General:
2198   - Updated the project policies for trunk/branch development &
2199     version numbering.
2201 * docutils/__init__.py:
2203   - Added ``__version_details__`` attribute to describe code source
2204     (repository/snapshot/release).
2205   - Replaced ``default_transforms`` attribute of ``TransformSpec`` with
2206     ``get_transforms()`` method.
2208 * docutils/core.py:
2210   - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
2211     functions, for document tree extraction and reprocessing.
2213 * docutils/io.py:
2215   - Added ``DocTreeInput`` class, for reprocessing existing documents.
2216   - Added support for non-Unicode (e.g. binary) writer output.
2218 * docutils/nodes.py:
2220   - Re-introduced ``Targetable.indirect_reference_name``, for
2221     MoinMoin/reST compatibility (removed in r3124/r3129).
2222   - Added ``serial_escape`` function; escapes string values that are
2223     elements of a list, for serialization.  Modified Docutils-XML
2224     writing (``Element._dom_node``) and pseudo-XML writing
2225     (``Element.starttag``) to use ``serial_escape``.
2226   - Added ``Node.deepcopy()`` method.
2227   - Removed the internal lists ``document.substitution_refs``,
2228     ``document.anonymous_refs``, and ``document.anonymous_targets``.
2229   - Added a "container" element.
2230   - Fixed bug where values of list-valued attributes of elements
2231     originating from custom interpreted text roles (i.e., with custom
2232     classes) were being shared between element instances.  Reported by
2233     Shmuel Zeigerman.
2235 * docutils/statemachine.py:
2237   - Added trailing whitespace stripping to ``string2lines()``.
2238   - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
2239     Asian double-width character support.
2241 * docutils/utils.py:
2243   - Added ``east_asian_column_width()`` for double-width character
2244     support.
2246 * docutils/languages/ja.py: Added to project: Japanese mappings by
2247   Hisashi Morita.
2249 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
2250   mappings by Panjunyong.
2252 * docutils/parsers/null.py: Added to project; a do-nothing parser.
2254 * docutils/parsers/rst/__init__.py:
2256   - Added validator to "tab_width" setting, with test.  Closes SF bug
2257     #1212515, report from Wu Wei.
2259 * docutils/parsers/rst/states.py:
2261   - Fixed bug with escaped colons indicating a literal block.
2262   - Fixed bug with enumerated lists (SF#1254145).
2263   - Backslash-escaped colons inside of field names are now allowed.
2264   - Targets (implicit and explicit), anonymous hyperlink references
2265     and auto-numbered footnote references inside of substitution
2266     definitions are now disallowed.
2267   - Fixed bug: list items with blank first lines.
2268   - Fixed bug: block quote attributions with indented second lines.
2269   - Added East Asian double-width character support (Python 2.4 only).
2271 * docutils/parsers/rst/tableparser.py:
2273   - Added East Asian double-width character support (Python 2.4 only).
2275 * docutils/parsers/rst/directives/body.py:
2277   - Added the "container" directive.
2279 * docutils/parsers/rst/directives/misc.py:
2281   - Added the "default-role", "title", and "date" directives.
2282   - Added standard data file syntax to the "include" directive.
2283   - Added support for "class" directive content.
2285 * docutils/parsers/rst/directives/images.py:
2287   - Added ``indirect_reference_name`` support for images with a target
2288     option.
2289   - Added support for image width and height units.
2290   - Fixed bug with image "target" options.
2292 * docutils/parsers/rst/directives/references.py:
2294   - Added "class" attribute to "target-notes" directive, for
2295     footnote_reference classes.
2297 * docutils/parsers/rst/include/: Directory added to project; contains
2298   standard data files for the "include" directive.  Initial contents:
2299   character entity substitution definition sets, and a set of
2300   definitions for S5/HTML presentations.
2302 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
2303   mappings by David Goodger.
2305 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
2306   Simplified Chinese mappings by Panjunyong.
2308 * docutils/readers/__init__.py:
2310   - Added universal.Decorations and universal.ExposeInternals
2311     transforms as default transforms for all readers.
2312   - Added ``ReReader`` base class for readers that reread an existing
2313     document tree.
2315 * docutils/readers/doctree.py: Added to project; a reader for existing
2316   document trees.
2318 * docutils/transforms/frontmatter.py:
2320   - Fixed the DocInfo transform to handle SVN-style expansion of the
2321     "Date" keyword.
2322   - In ``DocInfo.extract_authors``, treat the contents of "authors"
2323     fields uniformly.
2325 * docutils/transforms/misc.py:
2327   - Added misc.Transitions transform, extracted from
2328     universal.FinalChecks.
2330 * docutils/transforms/references.py:
2332   - Added references.DanglingReferences transform, extracted from
2333     universal.FinalChecks.
2334   - Fixed bug with doubly-indirect substitutions.
2335   - Added footnote_reference classes attribute to "TargetNotes".
2336   - Fixed bug with circular substitution definitions that put Docutils
2337     into an infinite loop.
2339 * docutils/transforms/universal.py:
2341   - Added universal.ExposeInternals transform, extracted from
2342     universal.FinalChecks.
2343   - Removed universal.FinalChecks transform (logic has been moved to
2344     several new transforms).
2345   - Fixed bug with the "expose_internals" setting and Text nodes
2346     (exposed by the "rawsource" internal attribute).
2347   - Added the universal.StripComments transform, implementation of the
2348     "strip_comments" setting.
2350 * docutils/transforms/writer_aux.py: Added to project; auxiliary
2351   transforms for writers.
2353   - Added ``Compound`` transform, which flattens compound paragraphs.
2355 * docutils/writers/: Several writer modules (html4css1.py) were
2356   converted into packages.  Support modules and data files have been
2357   moved into the packages.  The stylesheets for the HTML writers are
2358   now installed along with the code, the code knows where to find
2359   them, and the default is to use them (actually, to embed them).
2360   Some adjustments to configuration files may be necessary.  The
2361   easiest way to obtain the new default behavior is to remove all
2362   settings whose name includes "stylesheet".
2364 * docutils/writers/__init__.py:
2366   - Added universal.Messages and universal.FilterMessages transforms
2367     as default transforms for all writers.
2368   - Added ``UnfilteredWriter`` base class for writers that pass the
2369     document tree on unchanged.
2371 * docutils/writers/docutils_xml.py:
2373   - Made ``xmlcharrefreplace`` the default output encoding error
2374     handler.
2376 * docutils/writers/html4css1/:
2378   - Added support for image width and height units.
2379   - Made ``xmlcharrefreplace`` the default output encoding error
2380     handler.
2381   - Made ``--embed-stylesheet`` the default rather than
2382     ``--link-stylesheet``.
2383   - Moved "id" attribute from container (section etc.) to title's <a>
2384     tag, to be on the same tag as "name".
2385     (!!! To be reverted in Docutils 0.5.)
2386   - Added vertical space between fields of field lists.
2387   - Added ``--compact-field-lists`` option to remove vertical space in
2388     simple field lists.
2389   - Made cloaking of email addresses with ``--cloak-email-addresses``
2390     less obtrusive.
2391   - Fixed support for centered images.
2392   - Added support for class="compact" & class="open" lists.
2394 * docutils/writers/latex2e/:
2396   - Underscores in citekeys are no longer escaped.
2398 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
2399   mapping of Unicode characters to LaTeX equivalents.
2401 * docutils/writers/s5_html/: Package added to project; writer for
2402   S5/HTML slide shows.
2404 * docs/dev/distributing.txt: Added to project; guide for distributors
2405   (package maintainers).
2407 * docs/dev/hacking.txt: Added to project; guide for developers.
2409 * docs/ref/doctree.txt:
2411   - Updated for plural attributes "classes", "ids", "names",
2412     "dupnames".
2413   - Added the "container" element.
2415 * docs/ref/docutils.dtd:
2417   - Updated for plural attributes "classes", "ids", "names",
2418     "dupnames".
2420 * docs/user/emacs.txt: Added to project; a document about Emacs
2421   support for reStructuredText and Docutils.
2423 * docs/user/links.txt: Added to project; lists of Docutils-related
2424   links.
2426 * docs/user/mailing-lists.txt: Added to project; information about
2427   Docutils-related mailing lists and how to access them.
2429 * docs/user/slide-shows.txt: Added to project; example of and docs for
2430   the S5/HTML writer (``rst2s5.py`` front end).
2432 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
2433   Files", added to project.
2435 * test/coverage.sh: Added to project; test coverage script.
2437 * test/DocutilsTestSupport.py:
2439   - Added support for specifying runtime settings at the suite level.
2441 * test/test_functional.py:
2443   - Added the ``clear_output_directory`` function.
2444   - Added support for ``_test_more`` functions in functional test
2445     config files.
2447 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
2449 * tools/rstpep2html.py: Renamed from pep.py.
2451 * tools/dev/create_unimap.py: Added to project; script to create the
2452   docutils/writers/unimap_latex.py mapping file.
2454 * tools/dev/profile_docutils.py: Added to project; profiler script.
2456 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
2458 * tools/editors/emacs/restructuredtext.el,
2459   tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
2460   Removed from project; the functionality is now contained in rst.el.
2462 * tools/editors/emacs/rst.el: Added to project.  Added many features
2463   and fixed many bugs.  See docs/user/emacs.txt for details.
2465 * tools/stylesheets: Removed from project.  Stylesheets have been
2466   renamed and moved into writer packages.
2469 Release 0.3.9 (2005-05-26)
2470 ==========================
2472 * General:
2474   - Eliminated and replaced all uses of the old string attributes
2475     ``id``, ``name``, ``dupname`` and ``class`` with references to the
2476     new list attributes ``ids``, ``names``, ``dupnames`` and
2477     ``classes`` throughout the whole source tree.
2479 * docutils/core.py:
2481   - Enabled ``--dump-*`` options when ``--traceback`` specified,
2482     allowing for easier debugging.
2483   - In ``Publisher.publish()``, expanded the generic top-level
2484     exception catching.
2486 * docutils/examples.py:
2488   - Added ``internals`` function for exploration.
2490 * docutils/io.py:
2492   - Fixed ``Input.decode`` method to apply heuristics only if no
2493     encoding is explicitly given, and to provide better reporting of
2494     decoding errors.
2495   - The ``Input.decode`` method now removes byte order marks (BOMs)
2496     from input streams.
2498 * docutils/nodes.py:
2500   - ``image`` element class changed to subclass of Element, not
2501     TextElement (it's an empty element, and cannot contain text).
2502   - Added ``attr_defaults`` dictionary for default attribute values.
2503   - Added empty list as default value for the following attributes:
2504     ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
2505   - Added ``document.decoration`` attribute,
2506     ``document.get_decoration`` method, and ``decoration.get_header``
2507     & ``.get_footer`` methods.
2508   - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
2509     methods.
2511 * docutils/utils.py:
2513   - Removed ``docutils.utils.Reporter.categories``,
2514     ``docutils.utils.ConditionSet``, and all references to them, to
2515     simplify error reporting.
2517 * docutils/languages/nl.py: Added to project; Dutch mappings by
2518   Martijn Pieters.
2520 * docutils/parsers/rst/__init__.py:
2522   - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
2524 * docutils/parsers/rst/states.py:
2526   - Added check for escaped at-mark to prevent email address recognition.
2527   - Fixed option lists to allow spaces inside ``<angle-bracketed option
2528     arguments>``.
2529   - Allowed whitespace in paths and URLs.
2530   - Added auto-enumerated list items.
2531   - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
2532     followed by text.
2533   - Added support for table stub columns.
2535 * docutils/parsers/rst/directives/__init__.py:
2537   - Allowed whitespace in paths (``path`` function).
2538   - Added ``uri`` directive option conversion function.
2540 * docutils/parsers/rst/directives/body.py:
2542   - Fixed illegal context bug with "topic" directive (allowed within
2543     sidebars; not within body elements).
2545 * docutils/parsers/rst/directives/images.py:
2547   - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
2548   - Added support for the ``file_insertion_enabled`` setting in the
2549     "figure" directive (disables "figwidth" option).
2550   - "image" directive: added checks for valid values of "align" option,
2551     depending on context.  "figure" directive: added specialized
2552     "align" option and attribute on "figure" element.
2553   - Made ":figwidth: image" option of "figure" directive work again.
2554   - Fixed bug with reference names containing uppercase letters
2555     (e.g. ``Name_``) in "target" option of "image" directive.
2557 * docutils/parsers/rst/directives/misc.py:
2559   - Fixed "include" and "raw" directives to catch text decoding
2560     errors.
2561   - Allowed whitespace in "include" & "raw" directive paths.
2562   - Added support for ``file_insertion_enabled`` & ``raw_enabled``
2563     settings in "include" & "raw" directives.
2565 * docutils/parsers/rst/directives/parts.py:
2567   - Added "header" & "footer" directives.
2568   - Fixed illegal context bug with "contents" directive (topics
2569     allowed within sidebars; not within body elements).
2571 * docutils/parsers/rst/directives/tables.py:
2573   - Added "list-table" directive.
2574   - Caught empty CSV table bug.
2575   - Added support for the ``file_insertion_enabled`` setting in the
2576     "csv-table" directive.
2577   - Added ``stub-columns`` option to "csv-table" and "list-table"
2578     directives.
2580 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
2581   mappings by Martijn Pieters.
2583 * docutils/readers/standalone.py:
2585   - Added ``section_subtitles`` setting to activate or deactivate the
2586     ``SectSubTitle`` transform.
2588 * docutils/transforms/frontmatter.py:
2590   - Added SectSubTitle transform to promote titles of lone
2591     subsections to subtitles.
2593 * docutils/transforms/references.py:
2595   - Fixed mislocated internal targets bug, by propagating internal
2596     targets to the next node, making use of the newly added support
2597     for multiple names and IDs.
2598   - Fixed duplicate footnote label bug.
2599   - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
2600     transform.
2602 * docutils/writers/html4css1.py:
2604   - Fixed unencoded stylesheet reference bug (characters like "&" in
2605     stylesheet references).
2606   - ``target`` nodes now appear as ``span`` tags (instead of ``a``
2607     tags).
2608   - Added support for multiple IDs per node by creating empty ``span``
2609     tags.
2610   - Added the ``field_name_limit`` & ``option_limit`` settings &
2611     support.
2612   - Added support for table stub columns.
2613   - Added support for the ``align`` attribute on ``figure`` elements.
2614   - Added the ``cloak_email_addresses`` setting & support.
2615   - Added ``html_prolog``, ``html_head``, ``html_body``,
2616     ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
2617     ``docutils.core.publish_parts``.
2618   - Added support for section subtitles.
2620 * docutils/writers/latex2e.py:
2622   - Fixed tables starting with more than one multirow cell.
2623   - Improved ``--use-latex-docinfo`` so that organization/contact/address
2624     fields are lumped with the last author field and appear on the
2625     titlepage.
2626   - Made sure the titlepage is always shown with ``--use-latex-docinfo``,
2627     even if the document has no title.
2628   - Made sure that latex doesn't fill in today's date if no date field
2629     was given.
2630   - Added support for section subtitles.
2632 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
2633   (under development).
2635 * docutils/writers/null.py: Added to project; a do-nothing Writer.
2637 * docs/api/publisher.txt:
2639   - Added "``publish_parts`` Details" section.
2641 * docutils/dev/repository.txt: Added to project; information about the
2642   Docutils Subversion repository.
2644 * docs/ref/docutils.dtd:
2646   - Added a ``stub`` attribute to the ``colspec`` element via the
2647     ``tbl.colspec.att`` parameter entity.
2648   - Allowed topic elements within sidebars
2649   - Added an ``align`` attribute to the ``figure`` element.
2651 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
2652   writer.
2655 Release 0.3.7 (2004-12-24)
2656 ==========================
2658 * docutils/frontend.py:
2660   - Added options: ``--input-encoding-error-handler``,
2661     ``--record-dependencies``, ``--leave-footnote-reference-space``,
2662     ``--strict-visitor``.
2663   - Added command-line and config file support for "overrides" setting
2664     parameter.
2666 * docutils/io.py:
2668   - Added support for input encoding error handler.
2670 * docutils/nodes.py:
2672   - Added dispatch_visit and dispatch_departure methods to
2673     NodeVisitor; useful as a hook for Visitors.
2674   - Changed structure of ``line_block``; added ``line``.
2675   - Added ``compound`` node class.
2676   - Added a mechanism for Visitors to transitionally ignore new node
2677     classes.
2679 * docutils/utils.py:
2681   - Moved ``escape2null`` and ``unescape`` functions from
2682     docutils/parsers/rst/states.py.
2684 * docutils/parsers/rst/roles.py:
2686   - Added "raw" role.
2687   - Changed role function API: the "text" parameter now takes
2688     null-escaped interpreted text content.
2690 * docutils/parsers/rst/states.py:
2692   - Fixed bug where a "role" directive in a nested parse would crash
2693     the parser; the state machine's "language" attribute was not being
2694     copied over.
2695   - Added support for line block syntax.
2696   - Fixed directive parsing bug: argument-less directives didn't
2697     notice that arguments were present.
2698   - Removed error checking for transitions.
2699   - Added support for multiple classifiers in definition list items.
2700   - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
2701   - Changed role function API: the "text" parameter now takes
2702     null-escaped interpreted text content.
2703   - Empty sections and documents are allowed now.
2705 * docutils/parsers/rst/directives/__init__.py:
2707   - Added ``encoding`` directive option conversion function.
2708   - Allow multiple class names in class_option conversion function.
2710 * docutils/parsers/rst/directives/body.py:
2712   - Converted the line-block directive to use the new structure.
2713   - Extracted the old line-block functionality to the ``block``
2714     function (still used).
2715   - Added ``compound`` directive (thanks to Lea Wiemann).
2717 * docutils/parsers/rst/directives/misc.py:
2719   - Added "encoding" option to "include" and "raw" directives.
2720   - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
2721   - Allow multiple class names in the "class" directive.
2723 * docutils/parsers/rst/directives/parts.py:
2725   - Directive "sectnum" now accepts "prefix", "suffix", and "start"
2726     options.  Thanks to Lele Gaifax.
2728 * docutils/parsers/rst/directives/tables.py:
2730   - Added "encoding" directive to "csv-table" directive.
2731   - Added workaround for lack of Unicode support in csv.py, for
2732     non-ASCII CSV input.
2734 * docutils/transforms/misc.py:
2736   - Fixed bug when multiple "class" directives are applied to a single
2737     element.
2738   - Enabled multiple format names for "raw" directive.
2740 * docutils/transforms/references.py:
2742   - Added support for trimming whitespace from beside substitution
2743     references.
2745 * docutils/transforms/universal.py:
2747   - FinalChecks now checks for illegal transitions and moves
2748     transitions between sections.
2750 * docutils/writers/html4css1.py:
2752   - HTMLTranslator.encode now converts U+00A0 to "&nbsp;".
2753   - "stylesheet" and "stylesheet_path" settings are now mutually
2754     exclusive.
2755   - Added support for the new line_block/line structure.
2756   - ``--footnote-references`` now overrides
2757     ``--trim-footnote-reference-space``, if applicable.
2758   - Added support for ``compound`` elements.
2759   - Enabled multiple format names for "raw" directive.
2760   - ``<p>`` tags of a paragraph which is the only visible child of the
2761     document node are no longer stripped.
2762   - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
2763     new method ``should_be_compact_paragraph()``.
2764   - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
2765     elements.
2766   - "raw" elements are now surrounded by ``span`` or ``div`` tags in
2767     the output if they have their ``class`` attribute set.
2768   - The whole document is now surrounded by a ``<div
2769     class="document">`` element.
2770   - Body-level images are now wrapped by their own ``<div>`` elements,
2771     with image classes copied to the wrapper, and for images which
2772     have the ``:align:`` option set, the surrounding ``<div>`` now
2773     receives a class attribute (like ``class="align-left"``).
2775 * docutils/writers/latex2e.py:
2777   - no newline after depart_term.
2778   - Added translations for some Unicode quotes.
2779   - Added option "font-encoding", made package AE the default.
2780   - `stylesheet`_ and `stylesheet_path`_ settings are now mutually
2781     exclusive.
2782   - ``--footnote-references`` now overrides
2783     ``--trim-footnote-reference-space``, if applicable.
2784   - The footnote label style now matches the footnote reference style
2785     ("brackets" or "superscript").
2786   - Added support for ``compound`` elements.
2787   - Enabled multiple format names for "raw" directive.
2789 * docs/ref/docutils.dtd:
2791   - Changed structure of the ``line_block`` element; added ``line``.
2792   - Added ``compound`` element.
2793   - Added "ltrim" and "rtrim" attributes to
2794     ``substitution_definition`` element.
2795   - Enabled multiple format names for ``raw`` element.
2796   - Enabled multiple classifiers in ``definition_list_item`` elements.
2798 * docs/ref/rst/directives.txt
2800   - Marked "line-block" as deprecated.
2801   - "Class" directive now allows multiple class names.
2802   - Added "Rationale for Class Attribute Value Conversion".
2803   - Added warning about "raw" overuse/abuse.
2805 * docs/ref/rst/restructuredtext.txt:
2807   - Added syntax for line blocks.
2808   - Definition list items may have multiple classifiers.
2810 * docs/ref/rst/roles.txt:
2812   - Added "raw" role.
2814 * tools/stylesheets/default.css:
2816   - Added support for the new line_block structure.
2817   - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
2820 Release 0.3.5 (2004-07-29)
2821 ==========================
2823 General:
2825 * _`Documentation cleanup/reorganization`.
2827   - Created new subdirectories of docs/:
2829     * ``docs/user/``: introductory/tutorial material for end-users
2830     * ``docs/dev/``: for core-developers (development notes, plans, etc.)
2831     * ``docs/api/``: API reference material for client-developers
2832     * ``docs/ref/``: reference material for all groups
2833     * ``docs/howto/``: for component-developers and core-developers
2834     * ``docs/peps/``: Python Enhancement Proposals
2836   - Moved ``docs/*`` to ``docs/user/``.
2837   - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
2838     ``spec/`` to ``docs/dev``.
2839   - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
2840     ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
2841   - Moved ``alternatives.txt``, and ``problems.txt`` from
2842     ``spec/rst/`` to ``docs/dev/rst/``.
2843   - Moved ``reStructuredText.txt``, ``directives.txt``,
2844     ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
2845     to ``docs/ref/rst/``.  Renamed ``interpreted.txt`` to
2846     ``roles.txt``, ``reStructuredText.txt`` to
2847     ``restructuredtext.txt``.
2848   - Moved ``spec/howto/`` to ``docs/howto``.
2850   In order to keep the CVS history of moved files, we supplied
2851   SourceForge with a script for modifying the Docutils CVS repository.
2853   After running the cleanup script:
2855   - Added ``docs/index.txt``.
2856   - Added a ``.htaccess`` file to the ``web`` module, containing
2857     redirects for all old paths to new paths.  They'll preserve
2858     fragments (the "#name" part of a URL), and won't clutter up the
2859     file system, and will correct the URL in the user's browser.
2860   - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
2861     ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
2862     the "To Do" list itself in ``docs/dev/todo.txt``.
2863   - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
2864     section of ``docs/dev/todo.txt``.
2865   - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
2866   - Added "How To Report Bugs" to ``BUGS.txt``.
2867   - Went through all the sources and docs (including under web/) and
2868     updated links.  Mostly done by Lea Wiemann; thanks Lea!
2869     (Still need to update links in the sandboxes.)
2871 Specific:
2873 * BUGS.txt: Added to project.
2875 * THANKS.txt: Added to project.
2877 * docutils/__init__.py:
2879   - 0.3.4: Post-release.
2881 * docutils/core.py:
2883   - Added special error handling & advice for UnicodeEncodeError.
2884   - Refactored Publisher.publish (simplified exception handling &
2885     extracted debug dumps).
2886   - Renamed "enable_exit" parameter of convenience functions to
2887     "enable_exit_status".
2888   - Enabled traceback (exception propagation) by default in
2889     programmatic convenience functions.
2890   - Now publish_file and publish_cmdline convenience functions return
2891     the encoded string results in addition to their regular I/O.
2892   - Extracted common code from publish_file, publish_string, and
2893     publish_parts, into new publish_programmatically.  Extracted
2894     settings code to ``Publisher.process_programmatic_settings``.
2895   - In Publisher.publish, disabled ``settings_overrides`` when
2896     ``settings`` is supplied; redundant.
2898 * docutils/frontend.py:
2900   - Added help text for ``--output-encoding-error-handler`` and
2901     ``--error-encoding-error-handler``.
2902   - Renamed ``--exit`` to ``--exit-status``.
2903   - Simplified default-setting code.
2905 * docutils/parsers/rst/__init__.py:
2907   - Added ``--pep-base-url`` and ``--rfc-base-url`` options.
2909 * docutils/parsers/rst/states.py:
2911   - Made URI recognition more aggressive and intelligent.
2913 * docutils/parsers/rst/directives/__init__.py:
2915   - Added several directive option conversion functions.
2917 * docutils/parsers/rst/directives/body.py:
2919   - Moved "table" directive to tables.py.
2921 * docutils/parsers/rst/directives/tables.py: Table-related directives,
2922   added to project.
2924 * docutils/writers/latex2e.py:
2926   - Added ``--table-style=(standard|booktabs|nolines)``
2927   - figures get "here" option (LaTeX per default puts them at bottom),
2928     and figure content is centered.
2929   - Rowspan support for tables.
2930   - Fix: admonition titles before first section.
2931   - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
2932   - Replave ``_`` in literal by an underlined blank, because it has the correct
2933     width.
2934   - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
2935   - A few unicode replacements, if output_encoding != utf
2936   - Add `graphicx_option`_ setting.
2937   - Indent literal-blocks.
2938   - Fix: omit ``\maketitle`` when there is no document title.
2940 * docs/index.txt: "Docutils Project Documentation Overview", added to
2941   project.
2943 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
2944   Tool", added to project.
2946 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
2948 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
2950 * docs/dev/policies.txt: Added to project (extracted from
2951   ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
2953 * docs/dev/release.txt: Added to project (extracted from
2954   ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
2956 * docs/dev/testing.txt: Added to project.
2958 * docs/dev/website.txt: Added to project (extracted from
2959   ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
2961 * docs/ref/rst/directives.txt:
2963   - Added directives: "table", "csv-table".
2965 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
2966   added to project.  1 page for syntax, and a 1 page reference for
2967   directives and roles.  Source text to be used as-is; not meant to be
2968   converted to HTML.
2970 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
2971   with a change of title.
2973 * test/functional/, contents, and test/test_functional.py: Added to
2974   project.
2976 * tools/buildhtml.py: Fixed bug with config file handling.
2978 * tools/html.py: Removed from project (duplicate of rst2html.py).
2980 * tools/pep2html.py: Removed from project (duplicate of Python's
2981   nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
2982   Docutils-related PEPs in docs/peps/).
2984 * tools/rst2pseudoxml.py: Renamed from publish.py.
2986 * tools/rst2xml.py: Renamed from docutils-xml.py.
2988 * tools/test.txt: Removed from project; moved to
2989   docs/user/rst/demo.txt.
2991 * setup.py: Now also installs ``rst2latex.py``.
2994 Release 0.3.3 (2004-05-09)
2995 ==========================
2997 * docutils/__init__.py:
2999   - 0.3.1: Reorganized config file format (multiple sections); see
3000     docs/config.txt.
3001   - Added unknown_reference_resolvers attribute to TransformSpec.
3002   - 0.3.2: Interpreted text reorganization.
3003   - 0.3.3: Released.
3005 * docutils/core.py:
3007   - Catch system messages to stop tracebacks from parsing errors.
3008   - Catch exceptions during processing report & exit without
3009     tracebacks, except when ``--traceback`` used.
3010   - Reordered components for OptionParser; application comes last.
3011   - Added "config_section" parameter to several methods and functions,
3012     allowing front ends to easily specify their config file sections.
3013   - Added publish_parts convenience function to allow access to individual
3014     parts of a document.
3016 * docutils/examples.py: Added to project; practical examples of
3017   Docutils client code, to be used as-is or as models for variations.
3019 * docutils/frontend.py:
3021   - Added "traceback" setting.
3022   - Implemented support for config file reorganization:
3023     ``standard_config_files`` moved from ``ConfigParser`` to
3024     ``OptionParser``; added
3025     ``OptionParser.get_config_file_settings()`` and
3026     ``.get_standard_config_settings()``; support for old "[options]"
3027     section (with deprecation warning) and mapping from old to new
3028     settings.
3029   - Reimplemented setting validation.
3030   - Enabled flexible boolean values: yes/no, true/false, on/off.
3031   - Added ``Values``, a subclass of ``optparse.Values``, with support
3032     for list setting attributes.
3033   - Added support for new ``DOCUTILSCONFIG`` environment variable;
3034     thanks to Beni Cherniavsky.
3035   - Added ``--no-section-numbering`` option.
3037 * docutils/io.py:
3039   - Catch IOErrors when opening source & destination files, report &
3040     exit without tracebacks.  Added ``handle_io_errors`` parameter to
3041     ``FileInput`` & ``FileOutput`` to enable caller error handling.
3043 * docutils/nodes.py:
3045   - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
3046     method definitions (via ``exec``) to dynamic assignments (via
3047     ``setattr``); thanks to Roman Suzi.
3048   - Encapsulated visitor dynamic assignments in a function; thanks to
3049     Ian Bicking.
3050   - Added indirect_reference_name attribute to the Targetable
3051     class. This attribute holds the whitespace_normalized_name
3052     (contains mixed case) of a target.
3054 * docutils/statemachine.py:
3056   - Renamed ``StringList.strip_indent`` to ``.trim_left``.
3057   - Added ``StringList.get_2D_block``.
3059 * docutils/utils.py:
3061   - Added "level" attribute to SystemMessage exceptions.
3063 * docutils/languages/af.py: Added to project; Afrikaans mappings by
3064   Jannie Hofmeyr.
3066 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
3067   Blaha.
3069 * docutils/languages/eo.py: Added to project; Esperanto mappings by
3070   Marcelo Huerta San Martin.
3072 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
3073   mappings by Lalo Martins.
3075 * docutils/languages/ru.py: Added to project; Russian mappings by
3076   Roman Suzi.
3078 * docutils/parsers/rst/roles.py: Added to project.  Contains
3079   interpreted text role functions, a registry for interpreted text
3080   roles, and an API for adding to and retrieving from the registry.
3081   Contributed by Edward Loper.
3083 * docutils/parsers/rst/states.py:
3085   - Updated ``RSTState.nested_parse`` for "include" in table cells.
3086   - Allowed true em-dash character and "``---``" as block quote
3087     attribution marker.
3088   - Added support for <angle-bracketed> complex option arguments
3089     (option lists).
3090   - Fixed handling of backslashes in substitution definitions.
3091   - Fixed off-by-1 error with extra whitespace after substitution
3092     definition directive.
3093   - Added inline markup parsing to field lists' field names.
3094   - Added support for quoted (and unindented) literal blocks.
3095     Driven in part by a bribe from Frank Siebenlist (thanks!).
3096   - Parser now handles escapes in URIs correctly.
3097   - Made embedded-URIs' reference text omittable.  Idea from Beni
3098     Cherniavsky.
3099   - Refactored explicit target processing code.
3100   - Added name attribute to references containing the reference name only
3101     through whitespace_normalize_name (no case changes).
3102   - parse_target no longer returns the refname after going through
3103     normalize_name. This is now handled in make_target.
3104   - Fixed bug relating to role-less interpreted text in non-English
3105     contexts.
3106   - Reorganized interpreted text processing; moved code into the new
3107     roles.py module.  Contributed by Edward Loper.
3108   - Refactored ``Body.parse_directive`` into ``run_directive`` and
3109     ``parse_directive_block``.
3111 * docutils/parsers/rst/tableparser.py:
3113   - Reworked for ``StringList``, to support "include" directives in
3114     table cells.
3116 * docutils/parsers/rst/directives/__init__.py:
3118   - Renamed ``unchanged()`` directive option conversion function to
3119     ``unchanged_required``, and added a new ``unchanged``.
3120   - Catch unicode value too high error; fixes bug 781766.
3121   - Beefed up directive error reporting.
3123 * docutils/parsers/rst/directives/body.py:
3125   - Added basic "table" directive.
3127 * docutils/parsers/rst/directives/images.py:
3129   - Added "target" option to "image" directive.
3130   - Added name attribute to references containing the reference name only
3131     through whitespace_normalize_name (no case changes).
3133 * docutils/parsers/rst/directives/misc.py:
3135   - Isolated the import of the ``urllib2`` module; was causing
3136     problems on SourceForge (``libssl.so.2`` unavailable?).
3137   - Added the "role" directive for declaring custom interpreted text
3138     roles.
3140 * docutils/parsers/rst/directives/parts.py:
3142   - The "contents" directive does more work up-front, creating the
3143     "topic" and "title", and leaving the "pending" node for the
3144     transform.  Allows earlier reference resolution; fixes subtle bug.
3146 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
3147   mappings by Jannie Hofmeyr.
3149 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
3150   mappings by Marek Blaha.
3152 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
3153   mappings by Marcelo Huerta San Martin.
3155 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
3156   Portuguese mappings by Lalo Martins.
3158 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
3159   mappings by Roman Suzi.
3161 * docutils/transforms/parts.py:
3163   - The "contents" directive does more work up-front, creating the
3164     "topic" and "title", and leaving the "pending" node for the
3165     transform.  Allows earlier reference resolution; fixes subtle bug.
3166   - Added support for disabling of section numbering.
3168 * docutils/transforms/references.py:
3170   - Verifying that external targets are truly targets and not indirect
3171     references. This is because we are now adding a "name" attribute to
3172     references in addition to targets. Note sure if this is correct!
3173   - Added code to hook into the unknown_reference_resolvers list for a
3174     transformer in resolve_indirect_target. This allows the
3175     unknown_reference_resolvers to keep around indirect targets which
3176     docutils doesn't know about.
3177   - Added specific error message for duplicate targets.
3179 * docutils/transforms/universal.py:
3181   - Added FilterMessages transform (removes system messages below the
3182     verbosity threshold).
3183   - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
3184     to FinalCheckVisitor for application-specific handling of
3185     unresolvable references.
3186   - Added specific error message for duplicate targets.
3188 * docutils/writers/__init__.py:
3190   - Added assemble_parts method to the Writer class to allow for
3191     access to a documents individual parts.
3192   - Documented & set default for ``Writer.output`` attribute.
3194 * docutils/writers/html4css1.py:
3196   - Fixed unicode handling of attribute values (bug 760673).
3197   - Prevent duplication of "class" attribute values (bug report from
3198     Kirill Lapshin).
3199   - Improved table grid/border handling (prompted by report from Bob
3200     Marshall).
3201   - Added support for table titles.
3202   - Added "<title />" for untitled docs, for XHTML conformance; thanks
3203     to Darek Suchojad.
3204   - Added functionality to keep track of individual parts of a document
3205     and store them in a dictionary as the "parts" attribute of the writer.
3206     Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
3207   - Added proper support for the "scale" attribute of the "image"
3208     element.  Contributed by Brent Cook.
3209   - Added ``--initial-header-level`` option.
3210   - Fixed bug: the body_pre_docinfo segment depended on there being a
3211     docinfo; if no docinfo, the document title was incorporated into
3212     the body segment.  Adversely affected the publish_parts interface.
3214 * docutils/writers/latex2e.py:
3216   - Changed default stylesheet to "no stylesheet" to avoid latex complaining
3217     about a missing file.
3218   - Added options and support: ``--compound-enumerators``,
3219     ``--section-prefix-for-enumerators``, and
3220     ``--section-enumerator-separator``.  By John F Meinel Jr (SF patch
3221     934322).
3222   - Added option ``--use-verbatim-when-possible``, to avoid
3223     problematic characters (eg, '~' in italian) in literal blocks.
3224   - It's now possible to use four section levels in the `book` and
3225     `report` LaTeX document classes.  The default `article` class still has
3226     three levels limit.
3228 * docs/config.txt: "Docutils Configuration Files", added to project.
3229   Moved config file entry descriptions from tools.txt.
3231 * docs/tools.txt:
3233   - Moved config file entry descriptions to config.txt.
3235 * spec/notes.txt: Continual updates.  Added "Setting Up For Docutils
3236   Development".
3238 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
3239   Text Roles", added to project.
3241 * spec/rst/reStructuredText.txt:
3243   - Added description of support for <angle-bracketed> complex option
3244     arguments to option lists.
3245   - Added subsections for indented and quoted literal blocks.
3247 * test: Continually adding & updating tests.
3249   - Added test/test_settings.py & test/data/config_*.txt support
3250     files.
3251   - Added test/test_writers/test_htmlfragment.py.
3253 * test/DocutilsTestSupport.py:
3255   - Refactored LaTeX publisher test suite/case class names to make
3256     testing other writers easier.
3257   - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
3258     to test the processing of HTML fragments which use the new
3259     publish_parts convenience function.
3261 * tools/buildhtml.py:
3263   - Added support for the ``--prune`` option.
3264   - Removed dependency on pep2html.py; plaintext PEPs no longer
3265     supported.
3267 * tools/docutils.conf:
3269   - Updated for configuration file reorganization.
3271 * tools/rst2html.py:
3273   - copied from tools/html.py
3275 * setup.py:
3277   - added a 'scripts' section to configuration
3278   - added 'tools/rst2html.py' to the scripts section
3281 Release 0.3 (2003-06-24)
3282 ========================
3284 General:
3286 * Renamed "attribute" to "option" for directives/extensions.
3288 * Renamed transform method "transform" to "apply".
3290 * Renamed "options" to "settings" for runtime settings (as set by
3291   command-line options).  Sometimes "option" (singular) became
3292   "settings" (plural).  Some variations below:
3294   - document.options -> document.settings (stored in other objects as
3295     well)
3296   - option_spec -> settings_spec (not directives though)
3297   - OptionSpec -> SettingsSpec
3298   - cmdline_options -> settings_spec
3299   - relative_path_options -> relative_path_settings
3300   - option_default_overrides -> settings_default_overrides
3301   - Publisher.set_options -> Publisher.get_settings
3303 Specific:
3305 * COPYING.txt: Added "Public Domain Dedication".
3307 * FAQ.txt: Frequently asked questions, added to project.
3309 * setup.py:
3311   - Updated with PyPI Trove classifiers.
3312   - Conditional installation of third-party modules.
3314 * docutils/__init__.py:
3316   - Bumped version to 0.2.1 to reflect changes to I/O classes.
3317   - Bumped version to 0.2.2 to reflect changes to stylesheet options.
3318   - Factored ``SettingsSpec`` out of ``Component``; separately useful.
3319   - Bumped version to 0.2.3 because of the new ``--embed-stylesheet``
3320     option and its effect on the PEP template & writer.
3321   - Bumped version to 0.2.4 due to changes to the PEP template &
3322     stylesheet.
3323   - Bumped version to 0.2.5 to reflect changes to Reporter output.
3324   - Added ``TransformSpec`` class for new transform system.
3325   - Bumped version to 0.2.6 for API changes (renaming).
3326   - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
3327     convenience functions.
3328   - Added ``Component.component_type`` attribute.
3329   - Bumped version to 0.2.8 because of the internal parser switch from
3330     plain lists to the docutils.statemachine.StringList objects.
3331   - Bumped version to 0.2.9 because of the frontend.py API changes.
3332   - Bumped version to 0.2.10 due to changes to the project layout
3333     (third-party modules removed from the "docutils" package), and
3334     signature changes in ``io.Input``/``io.Output``.
3335   - Changed version to 0.3.0 for release.
3337 * docutils/core.py:
3339   - Made ``publish()`` a bit more convenient.
3340   - Generalized ``Publisher.set_io``.
3341   - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
3342     parameters; improved its docstring.
3343   - Added ``publish_file()`` and ``publish_string()``.
3344   - Factored ``Publisher.set_source()`` and ``.set_destination()``
3345     out of ``.set_io``.
3346   - Added support for ``--dump-pseudo-xml``, ``--dump-settings``, and
3347     ``--dump-transforms`` hidden options.
3348   - Added ``Publisher.apply_transforms()`` method.
3349   - Added ``Publisher.set_components()`` method; support for
3350     ``publish_*()`` conveninece functions.
3351   - Moved config file processing to docutils/frontend.py.
3352   - Added support for exit status ("exit_level" setting &
3353     ``enable_exit`` parameter for Publisher.publish() and convenience
3354     functions).
3356 * docutils/frontend.py:
3358   - Check for & exit on identical source & destination paths.
3359   - Fixed bug with absolute paths & ``--config``.
3360   - Set non-command-line defaults in ``OptionParser.__init__()``:
3361     ``_source`` & ``_destination``.
3362   - Distributed ``relative_path_settings`` to components; updated
3363     ``OptionParser.populate_from_components()`` to combine it all.
3364   - Require list of keys in ``make_paths_absolute`` (was implicit in
3365     global ``relative_path_settings``).
3366   - Added ``--expose-internal-attribute``, ``--dump-pseudo-xml``,
3367     ``--dump-settings``, and ``--dump-transforms`` hidden options.
3368   - Removed nasty internals-fiddling ``ConfigParser.get_section``
3369     code, replaced with correct code.
3370   - Added validation functionality for config files.
3371   - Added ``--error-encoding`` option/setting, "_disable_config"
3372     internal setting.
3373   - Added encoding validation; updated ``--input-encoding`` and
3374     ``--output-encoding``; added ``--error-encoding-error-handler`` and
3375     ``--output-encoding-error-handler``.
3376   - Moved config file processing from docutils/core.py.
3377   - Updated ``OptionParser.populate_from_components`` to handle new
3378     ``SettingsSpec.settings_defaults`` dict.
3379   - Added support for "-" => stdin/stdout.
3380   - Added "exit_level" setting (``--exit`` option).
3382 * docutils/io.py:
3384   - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
3385   - Added automatic closing to ``FileInput`` and ``FileOutput``.
3386   - Delayed opening of ``FileOutput`` file until ``write()`` called.
3387   - ``FileOutput.write()`` now returns the encoded output string.
3388   - Try to get path/stream name automatically in ``FileInput`` &
3389     ``FileOutput``.
3390   - Added defaults for source & destination paths.
3391   - Allow for Unicode I/O with an explicit "unicode" encoding.
3392   - Added ``Output.encode()``.
3393   - Removed dependency on runtime settings; pass encoding directly.
3394   - Recognize Unicode strings in ``Input.decode()``.
3395   - Added support for output encoding error handlers.
3397 * docutils/nodes.py:
3399   - Added "Invisible" element category class.
3400   - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
3401     modification during a traversal.
3402   - Added element classes: ``line_block``, ``generated``, ``address``,
3403     ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
3404     ``superscript``, ``subscript``, ``inline``
3405   - Added support for lists of nodes to ``Element.insert()``.
3406   - Fixed parent linking in ``Element.replace()``.
3407   - Added new abstract superclass ``FixedTextElement``; adds
3408     "xml:space" attribute.
3409   - Added support for "line" attribute of ``system_message`` nodes.
3410   - Added support for the observer pattern from ``utils.Reporter``.
3411     Added ``parse_messages`` and ``transform_messages`` attributes to
3412     ``document``, removed ``messages``.  Added ``note_parse_message``
3413     and ``note_transform_message`` methods.
3414   - Added support for improved diagnostics:
3416     - Added "document", "source", and "line" internal attributes to
3417       ``Node``, set by ``Node.setup_child()``.
3418     - Converted variations on ``node.parent = self`` to
3419       ``self.setup_child(node)``.
3420     - Added ``document.current_source`` & ``.current_line``
3421       attributes, and ``.note_source`` observer method.
3422     - Changed "system_message" output to GNU-Tools format.
3424   - Added a "rawsource" attribute to the ``Text`` class, for text
3425     before backslash-escape resolution.
3426   - Support for new transform system.
3427   - Reworked ``pending`` element.
3428   - Fixed XML DOM bug (SF #660611).
3429   - Removed the ``interpeted`` element class and added
3430     ``title_reference``, ``abbreviation``, ``acronym``.
3431   - Made substitutions case-sensitive-but-forgiving; moved some code
3432     from the parser.
3433   - Fixed Unicode bug on element attributes (report: William Dode).
3435 * docutils/optik.py: Removed from project; replaced with
3436   extras/optparse.py and extras/textwrap.py.  These will be installed
3437   only if they're not already present in the Python installation.
3439 * docutils/roman.py: Moved to extras/roman.py; this will be installed
3440   only if it's not already present in the Python installation.
3442 * docutils/statemachine.py:
3444   - Factored out ``State.add_initial_transitions()`` so it can be
3445     extended.
3446   - Converted whitespace-specific "blank" and "indent" transitions
3447     from special-case code to ordinary transitions: removed
3448     ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
3449     ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
3450     ``ws_initial_transitions`` attributes.
3451   - Removed ``State.match_transition()`` after merging it into
3452     ``.check_line()``.
3453   - Added ``StateCorrection`` exception.
3454   - Added support for ``StateCorrection`` in ``StateMachine.run()``
3455     (moved ``TransitionCorrection`` support there too.)
3456   - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
3457     ``EOFError`` instead of ``IndexError``.
3458   - Added ``State.no_match`` method.
3459   - Added support for the Observer pattern, triggered by input line
3460     changes.
3461   - Added ``strip_top`` parameter to
3462     ``StateMachineWS.get_first_known_indented``.
3463   - Made ``context`` a parameter to ``StateMachine.run()``.
3464   - Added ``ViewList`` & ``StringList`` classes;
3465     ``extract_indented()`` becomes ``StringList.get_indented()``.
3466   - Added ``StateMachine.insert_input()``.
3467   - Fixed ViewList slice handling for Python 2.3.  Patch from (and
3468     thanks to) Fred Drake.
3470 * docutils/utils.py:
3472   - Added a ``source`` attribute to Reporter instances and
3473     ``system_message`` elements.
3474   - Added an observer pattern to ``utils.Reporter`` to keep track of
3475     system messages.
3476   - Fixed bugs in ``relative_path()``.
3477   - Added support for improved diagnostics.
3478   - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
3479   - Added support for encoding Reporter stderr output, and encoding
3480     error handlers.
3481   - Reporter keeps track of the highest level system message yet
3482     generated.
3484 * docutils/languages: Fixed bibliographic field language lookups.
3486 * docutils/languages/es.py: Added to project; Spanish mappings by
3487   Marcelo Huerta San Martin.
3489 * docutils/languages/fr.py: Added to project; French mappings by
3490   Stefane Fermigier.
3492 * docutils/languages/it.py: Added to project; Italian mappings by
3493   Nicola Larosa.
3495 * docutils/languages/sk.py: Added to project; Slovak mappings by
3496   Miroslav Vasko.
3498 * docutils/parser/__init__.py:
3500   - Added ``Parser.finish_parse()`` method.
3502 * docutils/parser/rst/__init__.py:
3504   - Added options: ``--pep-references``, ``--rfc-references``,
3505     ``--tab-width``, ``--trim-footnote-reference-space``.
3507 * docutils/parsers/rst/states.py:
3509   - Changed "title under/overline too short" system messages from INFO
3510     to WARNING, and fixed its insertion location.
3511   - Fixed enumerated list item parsing to allow paragraphs & section
3512     titles to begin with enumerators.
3513   - Converted system messages to use the new "line" attribute.
3514   - Fixed a substitution reference edge case.
3515   - Added support for ``--pep-references`` and ``--rfc-references``
3516     options; reworked ``Inliner`` code to make customization easier.
3517   - Removed field argument parsing.
3518   - Added support for short section title over/underlines.
3519   - Fixed "simple reference name" regexp to ignore text like
3520     "object.__method__"; not an anonymous reference.
3521   - Added support for improved diagnostics.
3522   - Reworked directive API, based on Dethe Elza's contribution.  Added
3523     ``Body.parse_directive()``, ``.parse_directive_options()``,
3524     ``.parse_directive_arguments()`` methods.
3525   - Added ``ExtensionOptions`` class, to parse directive options
3526     without parsing field bodies.  Factored
3527     ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
3528     ``ExtensionOptions``.
3529   - Improved definition list term/classifier parsing.
3530   - Added warnings for unknown directives.
3531   - Renamed ``Stuff`` to ``Struct``.
3532   - Now flagged as errors: transitions at the beginning or end of
3533     sections, empty sections (except title), and empty documents.
3534   - Updated for ``statemachine.StringList``.
3535   - Enabled recognition of schemeless email addresses in targets.
3536   - Added support for embedded URIs in hyperlink references.
3537   - Added backslash-escapes to inline markup end-string suffix.
3538   - Added support for correct interpreted text processing.
3539   - Fixed nested title parsing (topic, sidebar directives).
3540   - Added special processing of backslash-escaped whitespace (idea
3541     from David Abrahams).
3542   - Made substitutions case-sensitive-but-forgiving; moved some code
3543     to ``docutils.nodes``.
3544   - Added support for block quote attributions.
3545   - Added a kludge to work-around a conflict between the bubble-up
3546     parser strategy and short titles (<= 3 char-long over- &
3547     underlines).  Fixes SF bug #738803 "infinite loop with multiple
3548     titles" submitted by Jason Diamond.
3549   - Added explicit interpreted text roles for standard inline markup:
3550     "emphasis", "strong", "literal".
3551   - Implemented "superscript" and "subscript" interpreted text roles.
3552   - Added initial support for "abbreviation" and "acronym" roles;
3553     incomplete.
3554   - Added support for ``--trim-footnote-reference-space`` option.
3555   - Optional space before colons in directives & hyperlink targets.
3557 * docutils/parsers/rst/tableparser.py:
3559   - Fixed a bug that was producing unwanted empty rows in "simple"
3560     tables.
3561   - Detect bad column spans in "simple" tables.
3563 * docutils/parsers/rst/directives: Updated all directive functions to
3564   new API.
3566 * docutils/parsers/rst/directives/__init__.py:
3568   - Added ``flag()``, ``unchanged()``, ``path()``,
3569     ``nonnegative_int()``, ``choice()``, and ``class_option()``
3570     directive option helper functions.
3571   - Added warnings for unknown directives.
3572   - Return ``None`` for missing directives.
3573   - Added ``register_directive()``, thanks to William Dode and Paul
3574     Moore.
3576 * docutils/parsers/rst/directives/admonitions.py:
3578   - Added "admonition" directive.
3580 * docutils/parsers/rst/directives/body.py: Added to project.  Contains
3581   the "topic", "sidebar" (from Patrick O'Brien), "line-block",
3582   "parsed-literal", "rubric", "epigraph", "highlights" and
3583   "pull-quote" directives.
3585 * docutils/parsers/rst/directives/images.py:
3587   - Added an "align" attribute to the "image" & "figure" directives
3588     (by Adam Chodorowski).
3589   - Added "class" option to "image", and "figclass" to "figure".
3591 * docutils/parsers/rst/directives/misc.py:
3593   - Added "include", "raw", and "replace" directives, courtesy of
3594     Dethe Elza.
3595   - Added "unicode" and "class" directives.
3597 * docutils/parsers/rst/directives/parts.py:
3599   - Added the "sectnum" directive; by Dmitry Jemerov.
3600   - Added "class" option to "contents" directive.
3602 * docutils/parsers/rst/directives/references.py: Added to project.
3603   Contains the "target-notes" directive.
3605 * docutils/parsers/rst/languages/__init__.py:
3607   - Return ``None`` from get_language() for missing language modules.
3609 * docutils/parsers/rst/languages/de.py: Added to project; German
3610   mappings by Engelbert Gruber.
3612 * docutils/parsers/rst/languages/en.py:
3614   - Added interpreted text roles mapping.
3616 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
3617   mappings by Marcelo Huerta San Martin.
3619 * docutils/parsers/rst/languages/fr.py: Added to project; French
3620   mappings by William Dode.
3622 * docutils/parsers/rst/languages/it.py: Added to project; Italian
3623   mappings by Nicola Larosa.
3625 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
3626   mappings by Miroslav Vasko.
3628 * docutils/readers/__init__.py:
3630   - Added support for the observer pattern from ``utils.Reporter``, in
3631     ``Reader.parse`` and ``Reader.transform``.
3632   - Removed ``Reader.transform()`` method.
3633   - Added default parameter values to ``Reader.__init__()`` to make
3634     instantiation easier.
3635   - Removed bogus aliases: "restructuredtext" is *not* a Reader.
3637 * docutils/readers/pep.py:
3639   - Added the ``peps.TargetNotes`` transform to the Reader.
3640   - Removed PEP & RFC reference detection code; moved to
3641     parsers/rst/states.py as options (enabled here by default).
3642   - Added support for pre-acceptance PEPs (no PEP number yet).
3643   - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
3644     easy subclassing.
3646 * docutils/readers/python: Python Source Reader subpackage added to
3647   project, including preliminary versions of:
3649   - __init__.py
3650   - moduleparser.py: Parser for Python modules.
3652 * docutils/transforms/__init__.py:
3654   - Added ``Transformer`` class and completed transform reform.
3655   - Added unknown_reference_resolvers list for each transformer. This list holds
3656     the list of functions provided by each component of the transformer that
3657     help resolve references.
3659 * docutils/transforms/frontmatter.py:
3661   - Improved support for generic fields.
3662   - Fixed bibliographic field language lookups.
3664 * docutils/transforms/misc.py: Added to project.  Miscellaneous
3665   transforms.
3667 * docutils/transforms/parts.py:
3669   - Moved the "id" attribute from TOC list items to the references
3670     (``Contents.build_contents()``).
3671   - Added the ``SectNum`` transform; by Dmitry Jemerov.
3672   - Added "class" attribute support to ``Contents``.
3674 * docutils/transforms/peps.py:
3676   - Added ``mask_email()`` function, updating to pep2html.py's
3677     functionality.
3678   - Linked "Content-Type: text/x-rst" to PEP 12.
3679   - Added the ``TargetNotes`` PEP-specific transform.
3680   - Added ``TargetNotes.cleanup_callback``.
3681   - Added title check to ``Headers``.
3683 * docutils/transforms/references.py:
3685   - Added the ``TargetNotes`` generic transform.
3686   - Split ``Hyperlinks`` into multiple transforms.
3687   - Fixed bug with multiply-indirect references (report: Bruce Smith).
3688   - Added check for circular indirect references.
3689   - Made substitutions case-sensitive-but-forgiving.
3691 * docutils/transforms/universal.py:
3693   - Added support for the ``--expose-internal-attributes`` option.
3694   - Removed ``Pending`` transform classes & data.
3696 * docutils/writers/__init__.py:
3698   - Removed ``Writer.transform()`` method.
3700 * docutils/writers/docutils-xml.py:
3702   - Added XML and doctype declarations.
3703   - Added ``--no-doctype`` and ``--no-xml-declaration`` options.
3705 * docutils/writers/html4css1.py:
3707   - "name" attributes only on these tags: a, applet, form, frame,
3708     iframe, img, map.
3709   - Added "name" attribute to <a> in section titles for Netscape 4
3710     support (bug report: Pearu Peterson).
3711   - Fixed targets (names) on footnote, citation, topic title,
3712     problematic, and system_message nodes (for Netscape 4).
3713   - Changed field names from "<td>" to "<th>".
3714   - Added "@" to "&#64;" encoding to thwart address harvesters.
3715   - Improved the vertical whitespace optimization; ignore "invisible"
3716     nodes (targets, comments, etc.).
3717   - Improved inline literals with ``<span class="pre">`` around chunks
3718     of text and ``&nbsp;`` for runs of spaces.
3719   - Improved modularity of output; added ``self.body_pre_docinfo`` and
3720     ``self.docinfo`` segments.
3721   - Added support for "line_block", "address" elements.
3722   - Improved backlinks (footnotes & system_messages).
3723   - Improved system_message output.
3724   - Redefined ``--stylesheet`` as containing an invariant URL, used
3725     verbatim.  Added ``--stylesheet-path``, interpreted w.r.t. the
3726     working directory.
3727   - Added ``--footnote-references`` option (superscript or brackets).
3728   - Added ``--compact-lists`` and ``--no-compact-lists`` options.
3729   - Added ``--embed-stylesheet`` and ``--link-stylesheet`` options;
3730     factored out ``HTMLTranslator.get_stylesheet_reference()``.
3731   - Improved field list rendering.
3732   - Added Docutils version to "generator" meta tag.
3733   - Fixed a bug with images; they must be inline, so wrapped in <p>.
3734   - Improved layout of <pre> HTML source.
3735   - Fixed attribute typo on <colspec>.
3736   - Refined XML prologue.
3737   - Support for no stylesheet.
3738   - Removed "interpreted" element support.
3739   - Added support for "title_reference", "sidebar", "attribution",
3740     "rubric", and generic "admonition" elements.
3741   - Added ``--attribution`` option.
3742   - Added support for "inline", "subscript", "superscript" elements.
3743   - Added initial support for "abbreviation" and "acronym";
3744     incomplete.
3746 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
3747   (from the sandbox).
3749   - Added french.
3750   - Double quotes in literal blocks (special treatment for de/ngerman).
3751   - Added ``--hyperlink-color`` option ('0' turns off coloring of links).
3752   - Added ``--attribution`` option.
3753   - Right align attributions.
3755 * docutils/writers/pep_html.py:
3757   - Parameterized output encoding in PEP template.
3758   - Reworked substitutions from ``locals()`` into ``subs`` dict.
3759   - Redefined ``--pep-stylesheet`` as containing an invariant URL, used
3760     verbatim.  Added ``--pep-stylesheet-path``, interpreted w.r.t. the
3761     working directory.
3762   - Added an override on the ``--footnote-references`` option.
3763   - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
3764   - Added Docutils version to "generator" meta tag.
3765   - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
3767 * docs/tools.txt:
3769   - Added a "silent" setting for ``buildhtml.py``.
3770   - Added a "Getting Help" section.
3771   - Rearranged the structure.
3772   - Kept up to date, with new settings, command-line options etc.
3773   - Added section for ``rst2latex.py`` (Engelbert Gruber).
3774   - Converted settings table into a definition list.
3776 * docs/rst/quickstart.txt:
3778   - Added a table of contents.
3779   - Added feedback information.
3780   - Added mention of minimum section title underline lengths.
3781   - Removed the 4-character minimum for section title underlines.
3783 * docs/rst/quickref.html:
3785   - Added a "Getting Help" section.
3786   - Added a style to make section title backlinks more subtle.
3787   - Added mention of minimum section title underline lengths.
3788   - Removed the 4-character minimum for section title underlines.
3790 * extras: Directory added to project; contains third-party modules
3791   that Docutils depends on (optparse, textwrap, roman).  These are
3792   only installed if they're not already present.
3794 * licenses: Directory added to project; contains copies of license
3795   files for non-public-domain files.
3797 * spec/doctree.txt:
3799   - Changed the focus.  It's about DTD elements:  structural
3800     relationships, semantics, and external (public) attributes.  Not
3801     about the element class library.
3802   - Moved some implementation-specific stuff into ``docutils.nodes``
3803     docstrings.
3804   - Wrote descriptions of all common attributes and parameter
3805     entities.  Filled in introductory material.
3806   - Working through the element descriptions: 55 down, 37 to go.
3807   - Removed "Representation of Horizontal Rules" to
3808     spec/rst/alternatives.txt.
3810 * spec/docutils.dtd:
3812   - Added "generated" inline element.
3813   - Added "line_block" body element.
3814   - Added "auto" attribute to "title".
3815   - Changed content models of "literal_block" and "doctest_block" to
3816     ``%text.model``.
3817   - Added ``%number;`` attribute type parameter entity.
3818   - Changed ``%structural.elements;`` to ``%section.elements``.
3819   - Updated attribute types; made more specific.
3820   - Added "address" bibliographic element.
3821   - Added "line" attribute to ``system_message`` element.
3822   - Removed "field_argument" element; "field_name" may contain
3823     multiple words and whitespace.
3824   - Changed public identifier to docutils.sf.net.
3825   - Removed "interpreted" element; added "title_reference",
3826     "abbreviation", "acronym".
3827   - Removed "refuri" attribute from "footnote_reference" and
3828     "citation_reference".
3829   - Added "sidebar", "rubric", "attribution", "admonition",
3830     "superscript", "subscript", and "inline" elements.
3832 * spec/pep-0256.txt: Converted to reStructuredText & updated.
3834 * spec/pep-0257.txt: Converted to reStructuredText & updated.
3836 * spec/pep-0258.txt: Converted to reStructuredText & updated.
3838 * spec/semantics.txt: Updated with text from a Doc-SIG response to
3839   Dallas Mahrt.
3841 * spec/transforms.txt: Added to project.
3843 * spec/howto: Added subdirectory, for developer how-to docs.
3845 * spec/howto/rst-directives.txt: Added to project.  Original by Dethe
3846   Elza, edited & extended by David Goodger.
3848 * spec/howto/i18n.txt: Docutils Internationalization.  Added to
3849   project.
3851 * spec/rst/alternatives.txt:
3853   - Added "Doctree Representation of Transitions" from
3854     spec/doctree.txt.
3855   - Updated "Inline External Targets" & closed the debate.
3856   - Added ideas for interpreted text syntax extensions.
3857   - Added "Nested Inline Markup" section.
3859 * spec/rst/directives.txt:
3861   - Added directives: "topic", "sectnum", "target-notes",
3862     "line-block", "parsed-literal", "include", "replace", "sidebar",
3863     "admonition", "rubric", "epigraph", "highlights", "unicode" and
3864     "class".
3865   - Formalized descriptions of directive details.
3866   - Added an "align" attribute to the "image" & "figure" directives
3867     (by Adam Chodorowski).
3868   - Added "class" options to "topic", "sidebar", "line-block",
3869     "parsed-literal", "contents", and "image"; and "figclass" to
3870     "figure".
3872 * spec/rst/interpreted.txt: Added to project.  Descriptions of
3873   interpreted text roles.
3875 * spec/rst/introduction.txt:
3877   - Added pointers to material for new users.
3879 * spec/rst/reStructuredText.txt:
3881   - Disambiguated comments (just add a newline after the "::").
3882   - Updated enumerated list description; added a discussion of the
3883     second-line validity checking.
3884   - Updated directive description.
3885   - Added a note redirecting newbies to the user docs.
3886   - Expanded description of inline markup start-strings in non-markup
3887     contexts.
3888   - Removed field arguments and made field lists a generic construct.
3889   - Removed the 4-character minimum for section title underlines.
3890   - Clarified term/classifier delimiter & inline markup ambiguity
3891     (definition lists).
3892   - Added "Embedded URIs".
3893   - Updated "Interpreted Text" section.
3894   - Added "Character-Level Inline Markup" section.
3896 * test: Continually adding & updating tests.
3898   - Moved test/test_rst/ to test/test_parsers/test_rst/.
3899   - Moved test/test_pep/ to test/test_readers/test_pep/.
3900   - Added test/test_readers/test_python/.
3901   - Added test/test_writers/ (Engelbert Gruber).
3903 * tools:
3905   - Made the ``locale.setlocale()`` calls in front ends
3906     fault-tolerant.
3908 * tools/buildhtml.py:
3910   - Added ``--silent`` option.
3911   - Fixed bug with absolute paths & ``--config``.
3912   - Updated for new I/O classes.
3913   - Added some exception handling.
3914   - Separated publishers' setting defaults; prevents interference.
3915   - Updated for new ``publish_file()`` convenience function.
3917 * tools/pep-html-template:
3919   - Allow for ``--embed-stylesheet``.
3920   - Added Docutils version to "generator" meta tag.
3921   - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
3922   - Conform to XHTML spec.
3924 * tools/pep2html.py:
3926   - Made ``argv`` a parameter to ``main()``.
3927   - Added support for "Content-Type:" header & arbitrary PEP formats.
3928   - Linked "Content-Type: text/plain" to PEP 9.
3929   - Files skipped (due to an error) are not pushed onto the server.
3930   - Updated for new I/O classes.
3931   - Added ``check_requirements()`` & ``pep_type_error()``.
3932   - Added some exception handling.
3933   - Updated for new ``publish_string()`` convenience function.
3934   - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
3936 * tools/quicktest.py:
3938   - Added ``-V``/``--version`` option.
3940 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
3942 * tools/unicode2rstsubs.py: Added to project.  Produces character
3943   entity files (reSructuredText substitutions) from the MathML master
3944   unicode.xml file.
3946 * tools/editors: Support code for editors, added to project.  Contains
3947   ``emacs/restructuredtext.el``.
3949 * tools/stylesheets/default.css: Moved into the stylesheets directory.
3951   - Added style for chunks of inline literals.
3952   - Removed margin for first child of table cells.
3953   - Right-aligned field list names.
3954   - Support for auto-numbered section titles in TOCs.
3955   - Increased the size of inline literals (<tt>) in titles.
3956   - Restored the light gray background for inline literals.
3957   - Added support for "line_block" elements.
3958   - Added style for "address" elements.
3959   - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
3960   - Improved field list rendering.
3961   - Vertical whitespace improvements.
3962   - Removed "a.target" style.
3964 * tools/stylesheets/pep.css:
3966   - Fixed nested section margins.
3967   - Other changes parallel those of ``../default.css``.
3970 Release 0.2 (2002-07-31)
3971 ========================
3973 General:
3975 - The word "component" was being used ambiguously.  From now on,
3976   "component" will be used to mean "Docutils component", as in Reader,
3977   Writer, Parser, or Transform.  Portions of documents (Table of
3978   Contents, sections, etc.)  will be called "document parts".
3979 - Did a grand renaming: a lot of ``verylongnames`` became
3980   ``very_long_names``.
3981 - Cleaned up imports: no more relative package imports or
3982   comma-separated lists of top-level modules.
3983 - Added support for an option values object which carries default
3984   settings and overrides (from command-line options and library use).
3985 - Added internal Unicode support, and support for both input and
3986   output encodings.
3987 - Added support for the ``docutils.io.IO`` class & subclasses.
3989 Specific:
3991 * docutils/__init__.py:
3993   - Added ``ApplicationError`` and ``DataError``, for use throughout
3994     the package.
3995   - Added ``Component`` base class for Docutils components; implements
3996     the ``supports`` method.
3997   - Added ``__version__`` (thus, ``docutils.__version__``).
3999 * docutils/core.py:
4001   - Removed many keyword parameters to ``Publisher.__init__()`` and
4002     ``publish()``; bundled into an option values object.  Added
4003     "argv", "usage", "description", and "option_spec" parameters for
4004     command-line support.
4005   - Added ``Publisher.process_command_line()`` and ``.set_options()``
4006     methods.
4007   - Reworked I/O model for ``docutils.io`` wrappers.
4008   - Updated ``Publisher.set_options()``; now returns option values
4009     object.
4010   - Added support for configuration files (/etc/docutils.conf,
4011     ./docutils.conf, ~/.docutils).
4012   - Added ``Publisher.setup_option_parser()``.
4013   - Added default usage message and description.
4015 * docutils/frontend.py: Added to project; support for front-end
4016   (command-line) scripts.  Option specifications may be augmented by
4017   components.  Requires Optik (http://optik.sourceforge.net/) for option
4018   processing (installed locally as docutils/optik.py).
4020 * docutils/io.py: Added to project; uniform API for a variety of input
4021   output mechanisms.
4023 * docutils/nodes.py:
4025   - Added ``TreeCopyVisitor`` class.
4026   - Added a ``copy`` method to ``Node`` and subclasses.
4027   - Added a ``SkipDeparture`` exception for visitors.
4028   - Renamed ``TreePruningException`` from ``VisitorException``.
4029   - Added docstrings to ``TreePruningException``, subclasses, and
4030     ``Nodes.walk()``.
4031   - Improved docstrings.
4032   - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
4033   - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
4034     imports.
4035   - Added ``decoration``, ``header``, and ``footer`` node classes, and
4036     ``PreDecorative`` mixin.
4037   - Reworked the name/id bookkeeping; to ``document``, removed
4038     ``explicit_targets`` and ``implicit_targets`` attributes, added
4039     ``nametypes`` attribute and ``set_name_id_map`` method.
4040   - Added ``NodeFound`` exception, for use with ``NodeVisitor``
4041     traversals.
4042   - Added ``document.has_name()`` method.
4043   - Fixed DOM generation for list-attributes.
4044   - Added category class ``Labeled`` (used by footnotes & citations).
4045   - Added ``Element.set_class()`` method (sets "class" attribute).
4047 * docutils/optik.py: Added to project.  Combined from the Optik
4048   package, with added option groups and other modifications.  The use
4049   of this module is probably only temporary.
4051 * docutils/statemachine.py:
4053   - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
4054   - Added underscores to improve many awkward names.
4055   - In ``string2lines()``, changed whitespace normalizing translation
4056     table to regexp; restores Python 2.0 compatibility with Unicode.
4058 * docutils/urischemes.py:
4060   - Filled in some descriptions.
4061   - Added "shttp" scheme.
4063 * docutils/utils.py:
4065   - Added ``clean_rcs_keywords`` function (moved from
4066     docutils/transforms/frontmatter.py
4067     ``DocInfo.filter_rcs_keywords``).
4068   - Added underscores to improve many awkward names.
4069   - Changed names of Reporter's thresholds:
4070     warning_level -> report_level; error_level -> halt_level.
4071   - Moved ``utils.id()`` to ``nodes.make_id()``.
4072   - Added ``relative_path(source, target)``.
4074 * docutils/languages/de.py: German mappings; added to project.  Thanks
4075   to Gunnar Schwant for the translations.
4077 * docutils/languages/en.py: Added "Dedication" bibliographic field
4078   mappings.
4080 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
4081   Chodorowski.
4083 * docutils/parsers/rst/states.py:
4085   - Added underscores to improve many awkward names.
4086   - Added RFC-2822 header support.
4087   - Extracted the inline parsing code from ``RSTState`` to a separate
4088     class, ``Inliner``, which will allow easy subclassing.
4089   - Made local bindings for ``memo`` container & often-used contents
4090     (reduces code complexity a lot).  See ``RSTState.runtime_init()``.
4091   - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
4092   - Added ``MarkupMismatch`` exception; for late corrections.
4093   - Added ``-/:`` characters to inline markup's start string prefix,
4094     ``/`` to end string suffix.
4095   - Fixed a footnote bug.
4096   - Fixed a bug with literal blocks.
4097   - Applied patch from Simon Budig: simplified regexps with symbolic
4098     names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
4099   - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
4100   - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
4101   - Allowed non-ASCII in "simple names" (directive names, field names,
4102     references, etc.).
4103   - Converted ``Inliner.patterns.initial`` to be dynamically built
4104     from parts with ``build_regexp()`` function.
4105   - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
4106   - Updated docstrings.
4107   - Changed "table" to "grid_table"; added "simple_table" support.
4109 * docutils/parsers/rst/tableparser.py:
4111   - Changed ``TableParser`` to ``GridTableParser``.
4112   - Added ``SimpleTableParser``.
4113   - Refactored naming.
4115 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
4116   a fallback language for directive names.
4118 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
4119   directive to use a ``pending`` element, used only by HTML writers.
4121 * docutils/parsers/rst/directives/parts.py: Renamed from
4122   components.py.
4124   - Added "backlinks" attribute to "contents" directive.
4126 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
4127   project by Adam Chodorowski.
4129 * docutils/readers/__init__.py: Gave Readers more control over
4130   choosing and instantiating Parsers.
4132 * docutils/readers/pep.py: Added to project; for PEP processing.
4134 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
4135   requires a ``component`` parameter.
4137 * docutils/transforms/components.py: Added to project; transforms
4138   related to Docutils components.
4140 * docutils/transforms/frontmatter.py:
4142   - In ``DocInfo.extract_authors``, check for a single "author" in an
4143     "authors" group, and convert it to a single "author" element.
4144   - Added support for "Dedication" and generic bibliographic fields.
4146 * docutils/transforms/peps.py: Added to project; PEP-specific.
4148 * docutils/transforms/parts.py: Renamed from old components.py.
4150   - Added filter for ``Contents``, to use alt-text for inline images,
4151     and to remove inline markup that doesn't make sense in the ToC.
4152   - Added "name" attribute to TOC topic depending on its title.
4153   - Added support for optional TOC backlinks.
4155 * docutils/transforms/references.py: Fixed indirect target resolution
4156   in ``Hyperlinks`` transform.
4158 * docutils/transforms/universal.py:
4160   - Changed ``Messages`` transform to properly filter out system
4161     messages below the warning threshold.
4162   - Added ``Decorations`` transform (support for ``--generator``,
4163     ``--date``, ``--time``, ``--source-link`` options).
4165 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
4166   Engelbert Gruber's PDF writer.
4168 * docutils/writers/html4css1.py:
4170   - Made XHTML-compatible (switched to lowercase element & attribute
4171     names; empty tag format).
4172   - Escape double-dashes in comment text.
4173   - Improved boilerplate & modularity of output.
4174   - Exposed modular output in Writer class.
4175   - Added a "generator" meta tag to <head>.
4176   - Added support for the ``--stylesheet`` option.
4177   - Added support for ``decoration``, ``header``, and ``footer``
4178     elements.
4179   - In ``HTMLTranslator.attval()``, changed whitespace normalizing
4180     translation table to regexp; restores Python 2.0 compatibility
4181     with Unicode.
4182   - Added the translator class as instance variable to the Writer, to
4183     make it easily subclassable.
4184   - Improved option list spacing (thanks to Richard Jones).
4185   - Modified field list output.
4186   - Added backlinks to footnotes & citations.
4187   - Added percentage widths to "<col>" tags (from colspec).
4188   - Option lists: "<code>" changed to "<kbd>", ``option_argument``
4189     "<span>" changed to "<var>".
4190   - Inline literals: "<code>" changed to "<tt>".
4191   - Many changes to optimize vertical space: compact simple lists etc.
4192   - Add a command-line options & directive attributes to control TOC
4193     and footnote/citation backlinks.
4194   - Added support for optional footnote/citation backlinks.
4195   - Added support for generic bibliographic fields.
4196   - Identify backrefs.
4197   - Relative URLs for stylesheet links.
4199 * docutils/writers/pep_html.py: Added to project; HTML Writer for
4200   PEPs (subclass of ``html4css1.Writer``).
4202 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
4204 * docutils/writers/docutils_xml.py: Added to project; trivial writer
4205   of the Docutils internal doctree in XML.
4207 * docs/tools.txt: "Docutils Front-End Tools", added to project.
4209 * spec/doctree.txt:
4211   - Changed the title to "The Docutils Document Tree".
4212   - Added "Hyperlink Bookkeeping" section.
4214 * spec/docutils.dtd:
4216   - Added ``decoration``, ``header``, and ``footer`` elements.
4217   - Brought ``interpreted`` element in line with the parser: changed
4218     attribute "type" to "role", added "position".
4219   - Added support for generic bibliographic fields.
4221 * spec/notes.txt: Continual updates.  Added "Project Policies".
4223 * spec/pep-0256.txt:  Updated.  Added "Roadmap to the Doctring PEPs"
4224   section.
4226 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
4228 * spec/pep-0258.txt: Updated.  Added text from pysource.txt and
4229   mailing list discussions.
4231 * spec/pep-0287.txt:
4233   - Renamed to "reStructuredText Docstring Format".
4234   - Minor edits.
4235   - Reworked Q&A as an enumerated list.
4236   - Converted to reStructuredText format.
4238 * spec/pysource.dtd:
4240   - Reworked structural elements, incorporating ideas from Tony Ibbs.
4242 * spec/pysource.txt: Removed from project.  Moved much of its contents
4243   to pep-0258.txt.
4245 * spec/rst/alternatives.txt:
4247   - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
4248   - Added "Inline External Targets" section.
4250 * spec/rst/directives.txt:
4252   - Added "backlinks" attribute to "contents" directive.
4254 * spec/rst/problems.txt:
4256   - Updated the Enumerated List Markup discussion.
4257   - Added new alternative table markup syntaxes.
4259 * spec/rst/reStructuredText.txt:
4261   - Clarified field list usage.
4262   - Updated enumerated list description.
4263   - Clarified purpose of directives.
4264   - Added ``-/:`` characters to inline markup's start string prefix,
4265     ``/`` to end string suffix.
4266   - Updated "Authors" bibliographic field behavior.
4267   - Changed "inline hyperlink targets" to "inline internal targets".
4268   - Added "simple table" syntax to supplement the existing but
4269     newly-renamed "grid tables".
4270   - Added cautions for anonymous hyperlink use.
4271   - Added "Dedication" and generic bibliographic fields.
4273 * test: Made test modules standalone (subdirectories became packages).
4275 * test/DocutilsTestSupport.py:
4277   - Added support for PEP extensions to reStructuredText.
4278   - Added support for simple tables.
4279   - Refactored naming.
4281 * test/package_unittest.py: Renamed from UnitTestFolder.py.
4283   - Now supports true packages containing test modules
4284     (``__init__.py`` files required); fixes duplicate module name bug.
4286 * test/test_pep/: Subpackage added to project; PEP testing.
4288 * test/test_rst/test_SimpleTableParser.py: Added to project.
4290 * tools:
4292   - Updated html.py and publish.py front-end tools to use the new
4293     command-line processing facilities of ``docutils.frontend``
4294     (exposed in ``docutils.core.Publisher``), reducing each to just a
4295     few lines of code.
4296   - Added ``locale.setlocale()`` calls to front-end tools.
4298 * tools/buildhtml.py: Added to project; batch-generates .html from all
4299   the .txt files in directories and subdirectories.
4301 * tools/default.css:
4303   - Added support for ``header`` and ``footer`` elements.
4304   - Added styles for "Dedication" topics (biblio fields).
4306 * tools/docutils.conf: A configuration file; added to project.
4308 * tools/docutils-xml.py: Added to project.
4310 * tools/pep.py: Added to project; PEP to HTML front-end tool.
4312 * tools/pep-html-template: Added to project.
4314 * tools/pep2html.py: Added to project from Python (nondist/peps).
4315   Added support for Docutils (reStructuredText PEPs).
4317 * tools/quicktest.py:
4319   - Added the ``--attributes`` option, hacked a bit.
4320   - Added a second command-line argument (output file); cleaned up.
4322 * tools/stylesheets/: Subdirectory added to project.
4324 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
4327 Release 0.1 (2002-04-20)
4328 ========================
4330 This is the first release of Docutils, merged from the now inactive
4331 reStructuredText__ and `Docstring Processing System`__ projects.  For
4332 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
4333 `DPS HISTORY`__ files.
4335 __ http://structuredtext.sourceforge.net/
4336 __ http://docstring.sourceforge.net/
4337 __ http://structuredtext.sourceforge.net/HISTORY.html
4338 __ http://docstring.sourceforge.net/HISTORY.html
4340 General changes: renamed 'dps' package to 'docutils'; renamed
4341 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
4342 the test suites (reStructuredText's test/test_states renamed to
4343 test/test_rst); and all modifications required to make it all work.
4345 * docutils/parsers/rst/states.py:
4347   - Improved diagnostic system messages for missing blank lines.
4348   - Fixed substitution_reference bug.
4350 .. References
4351    ==========
4353 .. _RELEASE-NOTES: RELEASE-NOTES.html
4354 .. _`_config_files`: docs/user/config.html#config-files
4355 .. _auto_id_prefix: docs/user/config.html#auto-id-prefix
4356 .. _detailled:
4357 .. _detailed: docs/user/config.html#detailed
4358 .. _docutils_footnotes: docs/user/config.html#docutils-footnotes
4359 .. _dump_settings: docs/user/config.html#dump-settings
4360 .. _embed_images: docs/user/config.html#embed-images
4361 .. _embed_stylesheet: docs/user/config.html#embed-stylesheet
4362 .. _figure_footnotes: docs/user/config.html#figure-footnotes
4363 .. _file_insertion_enabled: docs/user/config.html#file-insertion-enabled
4364 .. _graphicx_option: docs/user/config.html#graphicx-option
4365 .. _hidden_controls: docs/user/config.html#hidden-controls
4366 .. _html_writer: docs/user/config.html#html-writer
4367 .. _hyperref_options: docs/user/config.html#hyperref-options
4368 .. _id_prefix: docs/user/config.html#id-prefix
4369 .. _ignore: docs/user/config.html#ignore
4370 .. _image_loading: docs/user/config.html#image-loading
4371 .. _indents: docs/user/config.html#indents
4372 .. _initial_header_level: docs/user/config.html#initial-header-level
4373 .. _input_encoding: docs/user/config.html#input-encoding
4374 .. _input_encoding_error_handler: docs/user/config.html#input-encoding-error-handler
4375 .. _language: docs/user/config.html#language
4376 .. _latex_preamble: docs/user/config.html#latex-preamble
4377 .. _legacy_class_functions: docs/user/config.html#legacy-class-functions
4378 .. _legacy_column_widths: docs/user/config.html#legacy-column-widths
4379 .. _literal_block_env: docs/user/config.html#literal-block-env
4380 .. _math_output: docs/user/config.html#math-output
4381 .. _output: docs/user/config.html#output
4382 .. _output_encoding: docs/user/config.html#output-encoding
4383 .. _prune: docs/user/config.html#prune
4384 .. _raw_enabled: docs/user/config.html#raw-enabled
4385 .. _reference_label: docs/user/config.html#reference-label
4386 .. _root_prefix: docs/user/config.html#root-prefix
4387 .. _smart_quotes: docs/user/config.html#smart-quotes
4388 .. _sources: docs/user/config.html#sources
4389 .. _strip_classes: docs/user/config.html#strip-classes
4390 .. _strip_elements_with_classes: docs/user/config.html#strip-elements-with-classes
4391 .. _stylesheet: docs/user/config.html#stylesheet
4392 .. _stylesheet_dirs: docs/user/config.html#stylesheet-dirs
4393 .. _stylesheet_path: docs/user/config.html#stylesheet-path
4394 .. _syntax_highlight: docs/user/config.html#syntax-highlight
4395 .. _table_style: docs/user/config.html#table-style
4396 .. _theme: docs/user/config.html#theme
4397 .. _theme_url: docs/user/config.html#theme-url
4398 .. _toc_backlinks: docs/user/config.html#toc-backlinks
4399 .. _traceback: docs/user/config.html#traceback
4400 .. _use_bibtex: docs/user/config.html#use-bibtex
4401 .. _use_latex_abstract: docs/user/config.html#use-latex-abstract
4402 .. _use_latex_footnotes: docs/user/config.html#use-latex-footnotes
4403 .. _use_latex_toc: docs/user/config.html#use-latex-toc
4404 .. _view_mode: docs/user/config.html#view-mode
4406 .. _<meta>: docs/ref/doctree.html#meta
4407 .. _<image>: docs/ref/doctree.html#image
4408 .. _<inline>: docs/ref/doctree.html#inline
4409 .. _<literal>: docs/ref/doctree.html#literal
4413    Local Variables:
4414    mode: indented-text
4415    indent-tabs-mode: nil
4416    sentence-end-double-space: t
4417    fill-column: 70
4418    End: