1 .. include:: docs/header0.txt
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: docutils-develop@lists.sourceforge.net
11 :Web site: https://docutils.sourceforge.io/
12 :Copyright: This document has been placed in the public domain.
17 Release 0.21.2b.dev (unpublished)
18 =================================
23 Release 0.21.1 (2024-04-10)
24 ===========================
26 The sdist in 0.21 was incomplete
28 - pypi allows no file replacing
29 - adding a postrelease suffix "post1": docutils-0.21.post1.tar.gz
30 works on pypi, but fails with pip because the metadata differs.
32 But if the metadata is 0.21.post1 pypi makes it a new release.
34 0.21.1 is the same code except for the version number.
36 Release 0.21 (2024-04-09)
37 =========================
41 - Drop support for Python 3.7 and 3.8.
42 - Updated build system to use Flit_ (patch #186 by Adam Turner).
44 - Provide ``rst2*`` "console_scripts" `entry points`_
45 (without the ``.py`` extension) instead of installing the
46 ``rst2*.py`` front end tools in the binary PATH.
48 .. _Flit: https://github.com/pypa/flit/
50 * docs/ref/docutils.dtd
52 - The <image> element accepts a new attribute "loading".
54 - Fix definitions (no change to actual behaviour):
56 * The <math_block> element uses the attribute "xml:space".
57 * The <raw> element may contain text only (no inline elements).
58 * The <topic> element uses the "depth" and "local" attributes to
59 store "contents" directive options when used as placeholder for a
60 generated table of contents (LaTeX writers with `use_latex_toc`_
64 Reference names (``%refname.type`` and ``%refnames.type``)
65 are whitespace-normalized but **not** always downcased.
67 * docutils/frontend.py
69 - Allow `validate_*()` functions to be called with just the "value"
70 argument but keep the legacy interface for use with optparse.
71 - New function `frontend.validate_math_output()`.
75 - Simpler and more secure `input encoding`_ default behaviour:
77 Do not use the locale encoding as fallback if Python is started in
78 `UTF-8 mode`_. Stop using "latin1" as second fallback.
80 Remove BOM (U+FEFF ZWNBSP at start of data) only if the "input_encoding"
81 configuration setting is None, '', 'utf-8-sig', 'utf-16', or 'utf-32'.
82 Do not remove other ZWNBSPs.
84 .. _UTF-8 mode: https://docs.python.org/3/library/os.html#utf8-mode
85 .. _input encoding: docs/api/publisher.html#encodings
87 - Auto-close `FileInput.source` in case of reading/decoding errors.
89 * docutils/languages/, docutils/parsers/rst/languages/
91 - Mark/Fix mistranslated localizations of the "admonition" directive
92 name. In Docutils, "admonition" is used as a generic term for
93 "advice"/"advisory"/"remark", not a reprimand.
94 - Add support for Georgian language (patch #204 by Temuri Doghonadze).
95 - Update/complete Catalan translations (patch #203 by Antoni Bella Pérez).
99 - Remove compatibility hacks `nodes.reprunicode` and `nodes.ensure_str()`.
101 * docutils/parsers/rst/directives/images.py
103 - New "image" directive option "loading".
105 * docutils/parsers/rst/directives/tables.py
107 - Use the same CSV format for the ``:header:`` option and the main data
108 of the "csv-table" directive.
110 - Move `parsers.rst.directives.Table.process_header_option()` method
111 to `parsers.rst.directives.CSVTable`.
113 * docutils/parsers/rst/states.py
115 - Don't split inside "< >" when parsing "option groups" (fixes bug #474).
117 * docutils/parsers/rst/directives/misc.py,
118 docutils/parsers/rst/directives/tables.py
120 - Consider the new root_prefix_ setting when including files with
121 "include", "raw", or "csv-table" directives.
123 * docutils/utils/math/*
125 - Use custom exception `utils.math.MathError` instead of
126 abusing `SyntaxError` for LaTeX math syntax errors.
127 - Unify interface of LaTeX -> MathML conversion functions.
128 Improve error reporting.
129 - Sort ℏ (`\hslash`) as "mathord", not "mathalpha".
131 * docutils/utils/math/latex2mathml.py
133 - Generate "MathML Core" to fix rendering with Chromium/Android.
135 Use CSS rules instead of the deprecated "columnalign" attribute
136 to style <mtable> as "align" environment.
138 Use Mathematical Alphanumeric Symbols instead of <mstyle> with
139 "mathvariant" attribute.
141 - Use <mi> instead of <mo> for character class "mathord".
143 - Support "aligned" environment.
145 - Eliminate side-effect on later import of "tex2unichar".
147 * docutils/utils/math/mathml_elements.py
149 - New module defining MathML element classes
150 (outsourced from latex2mathml.py).
151 - Base MathML element classes on `xml.etree.ElementTree`.
153 * docutils/utils/roman.py
155 - Update to version `1.4 <https://pypi.org/project/roman/4.1/>`__.
156 Fixes feature-request #95 (license is now ZPL 2.1).
158 * docutils/utils/smartquotes.py
160 - Pre-compile regexps once, not with every call of `educateQuotes()`
161 (patch #206 by Chris Sewell).
162 - Simplify regexps; skip replacement rules if there is nothing to replace.
164 * docutils/writers/html4css1/__init__.py
166 - Support video inclusion via ``<object>`` tags.
168 * docutils/writers/html5_polyglot/\*.css
170 - Move MathML styles to "minimal.css" (required for correct rendering).
171 - Highlight heading of target section also with explicit hyperlink target.
172 - No additional margins for line-blocks.
174 * docutils/writers/_html_base.py
176 - Stop setting the "footnote-reference" class value for footnote references.
177 Since 0.18, you can use the CSS selector ``[role="doc-noteref"]``.
178 - Support reading/embedding images also with "file:" URI.
179 - Warn, if image scaling fails because the image file cannot be read.
180 - Support video inclusion via ``<video>`` tags
181 (moved here from writers/html5_polyglot/__init__.py).
182 - New auxiliary method `HTMLTranslator.uri2imagepath()` ensures the
183 image file can also be read when CWD and output directory differ.
184 - Consider the root_prefix_ setting when converting an image URI
185 to a local filesystem path.
186 - New `\<image>`_ attribute "loading" overrides image_loading_ setting.
187 - Embed SVG images as ``<svg>`` instead of data-URI.
188 Fixes feature-request #100.
189 - Generate system messages for errors/warnings during the writing stage
190 (image transformations, math content conversion, ...).
191 - Close ``<dt>`` element in `depart_term()` to allow a
192 "definition_list_item" with multiple "terms" (cf. feature-request #60).
193 - Link to the document "#top" from the ToC heading
194 (unless toc_backlinks_ is False).
195 - Transfer `id` attribute from <field> elements to the respective
196 <field_name> child element to allow cross-references to field-list items
197 (<field>s are skipped in HTML output).
199 * docutils/writers/latex2e/__init__.py
201 - Fix placement of hyperlink target (label) for tables (bug #440).
202 - More compact LaTeX source for option-lists and description-lists
203 (no change in output).
205 * docutils/writers/manpage.py
207 - Put manual section in .TH in quotes.
208 - Skip footer to avoid the link to document source in the manpage.
209 - Add multiple definition list term support, see feature #60.
210 - Render reference, refid and refuri.
211 Use of ``.UR`` and ``.UE`` macros for reference markup is too brittle.
212 - Add preprocessor hinting tbl first line, see bug #477.
213 - Change tbl-Tables using box option, see bug #475.
214 - Apply literal block patch #205. Use ``.EE`` and ``.EX`` macros.
215 Thanks to G. Branden Robinson.
217 * docutils/writers/odf_odt/__init__.py
219 - Use context manager for image reading operations.
220 Catch `URLError` when `urllib.request.urlopen()` fails.
222 - Convert image URI to path if accessing a local file. Fixes bug #153.
224 * docutils/writers/s5_html/__init__.py
226 - Warn if the S5 writer cannot copy the theme files.
227 - Programmatic customization of theme_url_ setting no longer
228 overridden by the default for theme_.
232 - New configuration setting `sources`_.
233 - Match `prune`_ values with `fnmatch.fnmatch()`.
236 Release 0.20.1 (2023-05-17)
237 ===========================
239 * docutils/MANIFEST.in
241 - Include tox.ini and docutils.conf in the source package
242 (cf. bug #467 and bug #461).
244 * tools/rst2odt_prepstyles.py
246 - Moved to ``docutils/writers/odf_odt/prepstyles.py``.
247 Replaced with a provisional backwards compatibility script.
250 Release 0.20 (2023-05-09)
251 =========================
255 - Docutils 0.20 is the last version supporting Python 3.7 and 3.8.
256 - Support Python 3.11 (patch #198 by Hugo van Kemenade).
260 - New functions `rst2…()` for use as "console_scripts" `entry points`_.
261 (cf. `Future changes` in the RELEASE-NOTES_).
263 * docutils/frontend.py
265 - New configuration setting "output_". Obsoletes the ``<destination>``
266 positional argument (cf. `Future changes` in the RELEASE-NOTES_).
268 * docutils/languages/
269 docutils/parsers/rst/languages/
271 - Support Ukrainian. Patch by Dmytro Kazanzhy.
275 - Fix `previous_sibling()` method that led to invalid HTML in some cases
277 - Fix bug #463. Spurious comma in deprecation warning.
279 * docutils/parsers/recommonmark_wrapper.py
281 - Improved mock Sphinx module.
283 * docutils/transforms/__init__.py
285 - `Transformer.populate_from_components()` now silently ignores
286 components that are not instances of `docutils.TransformSpec`.
288 * docutils/transforms/frontmatter.py
290 - Accept author names with initials like ``A. Einstein`` in the "author"
291 `bibliographic field`_ instead of rising an error
292 (generally, such names are `parsed as enumerated list`__).
294 .. _bibliographic field:
295 docs/ref/rst/restructuredtext.html#bibliographic-fields
296 __ docs/ref/rst/restructuredtext.html#enumerated-lists
298 * docutils/transforms/references.py
300 - `DanglingReferences` ignores `citation_reference` nodes if the
301 "use_bibex" setting is active. (In this case, citations are provided
302 by LaTeX/BibTeX.) Fixes bug #384.
304 * docutils/utils/__init__.py
306 - New utility function `xml_declaration()`.
307 - `DependencyList.add()` accepts `pathlib.Path` instances.
308 - `find_file_in_dirs()` now returns a POSIX path also on Windows;
309 `get_stylesheet_list()` no longer converts ``\`` to ``/``.
311 * docutils/utils/math/latex2mathml.py
313 - Support "mod" notation for modulo operation / modulus arithmetic.
315 * docutils/utils/math/tex2mathml_extern.py
317 - Support `Pandoc` as alternative LaTeX to MathML converter.
320 * docutils/writers/_html_base.py
322 - Refactoring of `HTMLTranslator` initialization and collecting of
323 document "parts". Adapt HTML writers importing `_html_base`.
325 Changes to the HTML output (no space character before closing tag of
326 XML declaration, order of metadata elements)
327 don't affect the HTML semantics, styling, and rendering.
329 - Wrap definition lists with "details" class argument in a <div>
330 with the "id" and "class" values of the list node.
332 - Use dpub-ARIA role "doc-footnote__" (instead of ARIA role "note")
335 __ https://www.w3.org/TR/dpub-aria-1.1/#doc-footnote
337 * docutils/writers/html5_polyglot/__init__.py
339 - Do not convert class values to HTML5 text-level tags inside
340 <code> and <code-block> (fixes bug #476).
342 * docutils/writers/latex2e/__init__.py
344 - Do not load the `inputenc` package in UTF-8 encoded LaTeX sources.
345 (UTF-8 is the default encoding for LaTeX2e since 2018).
346 - Fix behaviour of the use_bibtex_ setting.
347 - Outsource parts of `depart_document()` to new auxiliary methods
348 `make_title()` and `append_bibliography()`.
349 - Ensure POSIX paths in stylesheet loading macros.
351 * docutils/writers/latex2e/titlepage.tex
353 - Drop ``\usepackage{fixltx2e}`` from template.
354 (Obsolete since 2015 and dropped from other templates in Docutils 0.14.)
356 * docutils/writers/manpage.py
358 - Do not output empty "manual" in ``.TH``.
360 * docutils/writers/xetex/__init__.py
362 - Ignore settings in the [latex2e writer] configuration file section.
363 Place common settings in section [latex writers].
367 - Fix SetuptoolsDeprecationWarning: ``Installing '' as data is deprecated``
368 by adding data directories to package_data.packages list.
372 - Extracted flake8 configuration and moved to ``.flake8``.
373 - changedir to directory ``test`` to avoid path problems.
377 - Refactored tests to use common `unittest` idioms.
378 Fixes errors when running the test suite with ``python -m unittest``
379 or external test frameworks, such as Pytest_.
381 .. _pytest: https://pypi.org/project/pytest/
385 - Removed. Use the coverage.py_ project instead,
386 ``coverage run test/alltests.py`` and ``coverage report``.
388 .. _coverage.py: https://pypi.org/project/coverage/
392 - Moved ``quicktest.py`` to ``tools/dev/``.
395 Release 0.19 (2022-07-05)
396 =========================
400 - Dropped support for Python 2.7, 3.5, and 3.6. and removed compatibility
401 hacks from code and tests.
403 check PEP 8 conformity with `flake8` (exceptions in file tox.ini).
405 * docutils/__main__.py
407 - New module. Support for ``python -m docutils``.
408 Also used for the ``docutils`` console script `entry point`_.
412 - Let `Publisher.publish()` print info and prompt when waiting for input
413 from a terminal (cf. https://clig.dev/#interactivity).
414 - Respect `input_encoding_error_handler`_ setting when opening a source.
418 - New function `error_string()`
419 obsoletes `utils.error_reporting.ErrorString`.
420 - Class `ErrorOutput` moved here from `utils.error_reporting` module.
421 - Use "utf-8-sig" instead of Python's default encoding if the
422 `input_encoding`_ setting is None.
423 - Fix error when reading of UTF-16 encoded source without trailing newline.
424 - Suppress deprecation warning (fixes bug #464).
426 * docutils/parsers/__init__.py
428 - Aliases "markdown" and "commonmark" point to "commonmark_wrapper".
429 - Alias for the "myst" parser (https://pypi.org/project/myst-docutils).
430 - Use absolute module names in `_parser_aliases` instead of two
431 import attempts. (Keeps details if the `recommonmark_wrapper` module
432 raises an `ImportError`.)
433 - Prepend parser name to `ImportError` if importing a parser class fails.
435 * docutils/parsers/commonmark_wrapper.py
437 - New module for parsing CommonMark input. Selects a locally installed
438 3rd-party parser (`pycmark`, `myst`, or `recommonmark`).
440 * docutils/parsers/recommonmark_wrapper.py
442 - Raise `ImportError`, if import of the upstream parser module fails.
443 If called from an `"include" directive`_,
444 the system-message now has source/line info.
445 - Adapt to and test with `recommonmark` versions 0.6.0 and 0.7.1.
447 .. _"include" directive: docs/ref/rst/directives.html#include
449 * docutils/parsers/rst/__init__.py
451 - Update PEP base URL (fixes bug #445),
452 use "https:" scheme in RFC base URL.
453 - Add `reporter` to `Directive` class attributes.
455 * docutils/parsers/rst/directives/__init__.py
457 - `parser_name()` keeps details if converting `ImportError` to `ValueError`.
459 * docutils/parsers/rst/roles.py
461 - Don't use mutable default values for function arguments. Fixes bug #430.
463 * docutils/transforms/universal.py
465 - Fix bug #435: invalid references in `problematic` nodes
468 * docutils/utils/__init__.py
470 - `decode_path()` returns `str` instance instead of `nodes.reprunicode`.
472 * docutils/utils/error_reporting.py
474 - Add deprecation warning.
476 * docutils/writers/_html_base.py
478 - Add "html writers" to `config_section_dependencies`. Fixes bug #443.
479 - Write table column widths with 3 digits precision. Fixes bug #444.
481 * docutils/writers/html5_polyglot/__init__.py
483 - Add space before "charset" meta tag closing sequence.
484 - Remove class value "controls" from an `image` node with video content
485 after converting it to a "control" attribute of the <video> tag.
486 - Wrap groups of footnotes in an ``<aside>`` for easier styling.
488 * docutils/writers/pep_html/
490 - Use "https:" scheme in "python_home" URL default.
491 - Fix links in template.txt.
495 - New ``docutils``" console script `entry point`_. Fixes bug #447.
499 - Always encode the log file ``alltests.out`` using "utf-8".
501 * test/DocutilsTestSupport.py
503 - `exception_data()` now returns None if no exception was raised.
504 - `recommonmark_wrapper` only imported if upstream parser is present.
506 * test/test_parsers/test_rst/test_directives/test_tables.py
508 - Fix bug #436: Null char valid in CSV since Python 3.11.
510 * tools/docutils-cli.py
512 - Allow 3rd-party drop-in components for reader and parser, too.
514 - Actual code moved to docutils.__main__.py.
516 * tools/rst2odt_prepstyles.py
518 - Options ``-h`` and ``--help`` print short usage message.
522 https://packaging.python.org/en/latest/specifications/entry-points/
525 Release 0.18.1 (2021-11-23)
526 ===========================
530 - `Node.traverse()` returns a list again to restore backwards
531 compatibility. Fixes bug #431.
533 - New method `Node.findall()`: like `Node.traverse()` but returns an
534 iterator. Obsoletes `Node.traverse()`.
536 * docutils/utils/__init__.py
538 - Fix behaviour of `get_stylesheet_list()`: do not look up stylesheets
539 given as `stylesheet`_ setting. Cf. bug #434.
541 * docutils/writers/_html_base.py
543 - Fix handling of ``footnote_backlinks == False`` (report Alan G Isaac).
545 * docutils/writers/html5_polyglot/math.css
547 - Fix typo (bug #432).
549 * docutils/writers/odf_odt/__init__.py
551 - Fix spurious output with Windows (bug #350).
553 * test/test_error_reporting.py
555 - Fix a false positive (bug #434).
558 Release 0.18 (2021-10-26)
559 =========================
561 * docutils/frontend.py
562 - Mark as provisional (will switch from using `optparse` to `argparse`).
563 - Remove hack for the now obsolete "mod_python" Apache module.
564 - New function `get_default_settings()`.
568 - Don't change a list while looping over it (in
569 `document.set_name_id_map()`). Thanks to Mickey Endito.
571 * docutils/parsers/recommonmark_wrapper.py
573 - Test and update to work with `recommonmark` version 0.6.0.
576 Unfortunately, recommonmark_ is `no longer maintained`__.
578 __ https://github.com/readthedocs/recommonmark/issues/221
580 * docutils/parsers/rst/directives/misc.py
582 - Fix bug #424 Wrong circular inclusion detection.
583 Use a "magic" comment instead of line numbers
584 to keep a log of recursive inclusions.
586 * docutils/parsers/rst/states.py
588 - Use a "magic" comment to update the log of recursive inclusions.
590 * docutils/writers/html5_polyglot/__init__.py
592 - New option `image_loading`_. Support "lazy" loading of images.
593 Obsoletes `embed_images`_.
595 * docutils/writers/pseudoxml.py
597 - Fix spelling of setting `detailed`_.
599 * tools/docutils-cli.py
601 - Read settings from standard configuration files.
603 Fix spelling errors in documentation and docstrings.
604 Thanks to Dimitri Papadopoulos.
607 Release 0.18b1 (2021-10-05)
608 ===========================
610 * docs/ref/docutils.dtd
612 - New document tree element <meta>.
614 * docutils/frontend.py
616 - The default value for the `auto_id_prefix`_ setting changed to "%":
617 auto-generated IDs use the tag name as prefix.
621 - Make `\<meta>`_ a standard Docutils doctree node. Writers may ignore
622 <meta> nodes if they are not supported by the output format.
624 - document.make_id(): Do not strip leading number and hyphen characters
625 from `name` if the `id_prefix`_ setting is non-empty.
627 - `Node.traverse()` returns an iterator instead of a list.
629 * docutils/parsers/rst/directives/html.py
631 - Removed. (Meta directive moved to ``misc.py``.)
633 * docutils/parsers/rst/directives/misc.py
635 - `Meta` directive class (moved from html.py) inserts `meta`
636 (instead of `pending`) nodes.
638 - Add `class` option to `Raw` directive.
640 * docutils/parsers/rst/directives/tables.py
642 - Unify behaviour of `"widths" option`_: check that the length of an
643 integer list equals the number of table columns also for the "table"
646 * docutils/tools/math/math2html.py,
647 docutils/tools/math/tex2unicode.py,
648 docutils/writers/html5/math.css
650 - Fork from elyxer and remove code that is not required
652 - Scale variable sized operators and big delimiters with CSS
653 - Support more commands, fix mapping of commands to Unicode characters
654 (cf. `LaTeX syntax for mathematics`_).
655 - Fix bug #244 Wrong subscript/superscript order.
656 - Don't use <tt> element (deprecated in HTML5).
657 - Use STIX fonts if available.
659 .. _LaTeX syntax for mathematics: docs/ref/rst/mathematics.html
661 * docutils/parsers/rst/states.py
663 - Fix source location (line number) for attribution elements.
664 Patch by Mickey Endito.
665 - Add line, source, and rawsource internal attributes for blockquote
666 elements. Patch by Mickey Endito.
668 * docutils/transforms/references.py
670 - Skip system_messages when propagating targets. Fixes bug #425.
672 * docutils/utils/__init__.py
674 - Removed `unique_combinations()` (obsoleted by `itertools.combinations()`).
676 * docutils/utils/latex2mathml.py
678 - Major update (fixes and support for additional commands and symbols).
681 * docutils/writers/_html_base.py
683 - Write footnote brackets and field term colons to HTML, so that
684 they are present also without CSS and when copying text.
685 Adapt ``minimal.css``.
687 - Use semantic tags <aside> for footnote text, topics, admonitions,
688 and system-messages and <nav> for the table of contents. Use <div>
691 - Only specify table column widths, if the `"widths" option`_ is set
692 and is not "auto" (fixes bug #426).
693 The `table_style`_ setting "colwidths-grid" restores the current default.
695 .. _"widths" option: docs/ref/rst/directives.html#column-widths
697 - Use ARIA roles to enable accessible HTML for abstract, dedication,
698 the table of contents, footnote, references, footnotes, citations,
701 - Use "aria-level" attribute instead of invalid tags <h7>, <h8>, ...
702 for headings of deeply nested sections.
704 - Do not set classes "compound-first", "compound-middle", or
705 "compound-last" to elements nested in a compound.
706 Use class value "backrefs" instead of "fn-backref" for a span of
709 - Do not write class values handled by the HTML writer ("colwidths-auto",
710 "colwidths-given", "colwidths-grid") to the output.
712 - Move space character between section number and heading into
715 - Removed attribute `HTMLTranslator.topic_classes`
717 - Items of a definition list with class argument "details" are
718 converted to <details> disclosure elements.
720 * docutils/writers/html4css1/__init__.py
722 - Overwrite methods in _html_base.HTMLTranslator that use HTML5 tags
723 (details, aside, nav, ...) and attributes (role, aria-level).
725 * docutils/writers/latex2e/__init__.py
727 - The setting `legacy_class_functions`_ now defaults to "False".
728 Adapt stylesheets modifying ``\DUadmonition`` and/or ``\DUtitle``.
730 - Apply patch #181 "Fix tocdepth when chapter/part in use" by
731 John Thorvald Wodder II.
733 - Fix newlines after/before `ids_to_labels()` (cf. patch #183).
735 - Refactor/revise ToC writing.
737 - Don't add ``\phantomsection`` to labels in math-blocks.
739 - Improve spacing and allow customization of Docutils-generated table
742 - New algorithm for table column widths. Fixes bug #422.
743 New configuration setting `legacy_column_widths`_.
745 `Table.set_table_style()` arguments changed.
747 Only write "continued on next page..." if it fits
748 without making the table columns wider.
750 Table "width" option overrides conflicting "auto" column "widths".
752 * docutils/writers/latex2e/docutils.sty
754 - Fix excessive padding above sidebar titles.
756 * docutils/writers/pseudoxml.py
758 - Fix option `detailed`_ under Python 2.7.
760 * docutils/writers/s5_html/themes/default
762 - Remove IE 6 compatibility workarounds ``iepngfix.htc`` and
763 ``blank.gif`` (fixes bug #169).
765 * docutils/writers/manpage.py
767 - Fix: double quotes need to be escaped on macro invocation.
771 Release 0.17.1 (2021-04-16)
772 ===========================
774 * docutils/utils/math/latex2mathml.py
776 - Fix bug #406 (MathML translation of ``\mathbf``).
778 * docutils/writers/latex2e/__init__.py
780 - Open ``docutils.sty`` with encoding set to "utf-8".
781 Fixes bug #414: error with Py3k when locale encoding is "ascii".
783 * docutils/parsers/*.py, docutils/transforms/*.py
785 - Provide fallbacks for parser config settings
786 to facilitate programmatic use.
788 * docutils/writers/manpage.py
790 - Apply patch #166: move macro defs above ``.TH``
791 (thanks Willie and sorry for the delay).
794 Release 0.17 (2021-04-03)
795 =========================
799 - Installing with ``setup.py`` now requires `setuptools`.
800 Alternatively, install with `pip`_ (or "manually").
801 - Use `importlib.import_module()` to programmatically import modules.
802 - Fix bug #385: Import of language modules.
804 .. _pip: https://pypi.org/project/pip/
806 * docs/ref/docutils.dtd
808 - The "title" attribute of <sidebar> elements is now optional.
810 * docutils/MANIFEST.in
812 - Exclude test outputs.
814 * docutils/__init__.py
816 - VersionInfo: `ValueError` for invalid values, fix comparison to tuples.
818 * docutils/languages/
819 docutils/parsers/rst/languages/
821 - Apply patch # 177 Arabic mappings by Shahin.
822 - Apply patch for bug #399 Fixes in Korean translation by Shinjo Park.
826 - Apply patch #165 "Fix error when copying `system_message` node"
828 - Apply version of patch #167 "Let `document.set_id()` register all
829 existing IDs". Thanks to Takeshi KOMIYA.
830 - Fix bug #410: Use a "property" function to recursively fetch
831 `Node.document` value from parent node.
833 * docutils/parsers/recommonmark_wrapper.py
835 - New, **experimental** wrapper to integrate the
836 `recommonmark`_ Markdown parser for use with Docutils.
837 Currently only tested with `recommonmark` version 0.4.0.
839 .. _recommonmark: https://pypi.org/project/recommonmark/
841 * docutils/parsers/rst/directives/body.py
843 - Make the sidebar's "title" argument optional (feature request #69).
845 * docutils/parsers/rst/directives/html.py
847 - Make `meta` elements available for "latex" and "odt" writers.
849 * docutils/parsers/rst/directives/misc.py
851 - Prevent infinite inclusion loops.
853 * docutils/parsers/rst/roles.py
855 - Apply patch #174 "Lowercase new role names on registration"
856 by John Thorvald Wodder II.
858 * docutils/utils/smartquotes.py
860 - Fix bug #383: Smart quotes around opening and separator characters.
862 * docutils/transforms/components.py
864 - Allow a comma-separated list of formats for the Filter transform.
866 * docutils/writers/html*
868 - Implement feature request #40 "Option to embed images as data URI".
870 * docutils/writers/html5_polyglot/__init__.py
872 - Use the new semantic tags <main>, <section>, <header>,
873 <footer>, <aside>, <figure>, and <figcaption>.
874 See ``minimal.css`` and ``plain.css`` for styling rule examples.
876 Change the `initial_header_level`_ setting default to "2", as browsers
877 use the `same style for <h1> and <h2> when nested in a <section\>`__.
879 __ https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article
881 - Use HTML text-level tags <small>, <s>, <q>, <dfn>, <var>, <samp>, <kbd>,
882 <i>, <b>, <u>, <mark>, and <bdi> if a unique, matching class value
883 is found in `\<inline>`_ and `\<literal>`_ elements.
884 Use <ins> and <del> if a unique matching class value
885 is found in `inline`, `literal`, or `container` elements.
886 Use <small> for generated code line numbers.
888 - Fix bug #398: properly close link tag to "schema.dcterms".
890 - Add a `viewport meta tag`__ to fix rendering in mobile browsers.
892 __ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
894 - Use <video> for images with video MIME types supported by HTML5.
896 * docutils/writers/html5_polyglot/minimal.css
898 - Move non-essential styling to ``plain.css``.
899 Small fixes and tweaks.
901 - Support "captionbelow" class value for tables.
903 - Display code line numbers as pseudo-elements which are skipped
904 when copying text from code blocks. Solves feature request #32.
906 * docutils/writers/html5_polyglot/plain.css
908 - Support numbered figures.
910 * docutils/writers/html5_polyglot/responsive.css
912 - New optional style that adapts to different screen sizes.
914 * docutils/writers/latex2e/__init__.py
916 - Use LaTeX environments for admonitions and "class wrappers" for styling
917 admonitions and titles if the new configuration setting
918 `legacy_class_functions`_ is False.
920 - Remove backwards compatibility code for the deprecated
921 `styling command`__ prefix ``\docutilsrole``.
923 __ docs/user/latex.html#custom-interpreted-text-roles
925 - Remove legacy LaTeX stylesheet ``docutils-05-compat.sty``.
927 - Support the `memoir` LaTeX document class.
928 Fixes bugs #390, #391, and #392. Thanks to John Thorvald Wodder II.
930 - The special value "auto" for the `graphicx_option`_ setting
931 is no longer supported (it never worked for xetex/luatex).
933 - Most helper commands and element definitions are now defined in the
934 LaTeX package `docutils.sty`_ and only inserted in the document
935 preamble if the `stylesheet`__ setting does not list "docutils".
937 .. _docutils.sty: https://ctan.org/pkg/docutils
938 __ docs/user/config.html#stylesheet-latex-writers
940 - Apply patch #173 "Make \*TeX writers convert nonstandard table
941 classes to DUclass environments" by John Thorvald Wodder II.
943 - Fix bug #408 "Incorrect assert in latex writer
944 for multiple citation references".
946 - Apply patch #175 "Fix alignment of nested tables"
947 by John Thorvald Wodder II. Additional fixes to table alignment.
949 - Do not write Docutils-generated ToC, when ``use_latex_toc == True``.
950 (This did happen when publishing from a doctree.)
952 - Set PDF document properties from "meta" directive content.
954 - Apply version of patch #176 "LaTeX writer: Append ``\leavevmode`` to
955 non-docinfo field names" by John Thorvald Wodder II.
957 * docutils/writers/manpage.py
959 - Fix #394 fix missing new line after rubric.
960 - Patch #168 fix crashing on empty citation (by Takeshi KOMIYA).
961 - Fix #126 manpage title with spaces.
962 - Fix #380 command line option problem in sphinx.
964 * docutils/writers/odf_odt/__init__.py
966 - Fix/improve metadata handling:
967 fix "keyword" splitting,
968 allow generic fields (stored as "Custom Properties").
970 * docutils/writers/pseudoxml.py
972 - New option `detailled`_.
974 * test/DocutilsTestSupport.py
976 - Run python3 test like python2 against source not the build/-directory
978 * tools/docutils-cli.py
980 - New generic command line front end that allows the free selection of
981 reader, parser, and writer components.
984 Release 0.16 (2020-01-16)
985 =========================
989 - Dropped support for Python 2.6, 3.3 and 3.4
990 - Docutils now supports Python 2.7 and Python 3.5+ natively
991 (without conversion by `2to3`).
992 - Keep `backslash escapes`__ in the document tree. Backslash characters in
993 text are be represented by NULL characters in the `text` attribute of
994 Doctree nodes and removed in the writing stage by the node's
997 __ https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#escaping-mechanism
999 * docs/ref/docutils.dtd
1001 - Use "parameter entities" for `class names`, `reference names`,
1006 - Remove the `handle_io_errors` option from io.FileInput/Output.
1010 - Speed up Node.next_node().
1011 - If `auto_id_prefix`_ ends with "%", this is replaced with the tag name.
1012 - Warn about `Node.traverse()` returning an iterator instead of a list
1015 * docutils/statemachine.py
1017 - Patch [ 158 ] Speed up patterns by saving compiled versions (eric89gxl)
1019 * docutils/transforms/universal.py
1021 - Fix [ 332 ] Standard backslash escape for smartquotes.
1022 - Fix [ 342 ] No escape in roles descending from `inline literal`.
1024 * docutils/utils/__init__.py
1026 - `unescape()` definition moved to `nodes` to avoid circular import
1027 dependency. Fixes [ 366 ].
1029 * docutils/writers/latex2e/__init__.py
1031 - Fix topic subtitle.
1032 - Make "rubric" bold-italic and left aligned.
1033 - Fix [ 339 ] don't use "alltt" or literal-block-environment
1034 in admonitions and footnotes.
1035 - Deprecation warning for ``\docutilsrole``-prefixed styling commands.
1036 - Add "latex writers" to the `config_section_dependencies`.
1037 - Ignore classes for `rubric` elements
1038 (class wrapper interferes with LaTeX formatting).
1040 * docutils/writers/manpage.py
1042 - Apply fix for [ 287 ] comma after option is bold.
1043 - Apply fix for [ 289 ], line starting with ``.`` in a text.
1045 * docutils/writers/odf_odt/__init__.py
1047 - Fix: ElementTree.getchildren deprecated warning
1049 * docutils/writers/xetex/__init__.py
1051 - Add "latex writers" to the `config_section_dependencies`.
1055 - Fix [ 377 ] ResourceWarning: unclosed file python3.8
1056 Close alltests.out with atexit.
1060 - Fix [ 377 ] ResourceWarning: unclosed file python3.8
1061 Read defaults file with context.
1063 - Set `auto_id_prefix`_ to "%" (expands to tag-names).
1064 Results in descriptive links in HTML and more localized changes when
1065 editions to the input add or remove auto-ids.
1069 - Apply patch #157: avoid test failure because of a `ResourceWarning`.
1071 * test/test_writers/test_odt.py
1073 - Fix [ 359 ] Test suite fails on Python 3.8. odt XML sorting.
1074 Use ElementTree instead of minidom.
1076 * tools/buildhtml.py
1078 - New option `html_writer`_.
1081 Release 0.15.1 (2019-07-24)
1082 ===========================
1084 source: branches/rel-0.15
1086 Fix [ 366 ] circular dependency. Release for Python 2 only.
1089 Release 0.15 (2019-07-20)
1090 =========================
1094 - Dropped support for Python 2.4, 2.5, 3.1, and 3.2.
1095 - Infrastructure automation.
1097 * docs/ref/docutils.dtd
1099 - The <table> element accepts the new attribute "width".
1101 * docs/ref/rst/restructuredtext.txt
1103 - Document rST syntax change: Tokens like ``:this:example:`` are now valid
1104 field list names (instead of ordinary text).
1108 - Fix [ 348 ] Since Python 3.4, the 'U' universal newlines mode has been
1109 deprecated. Thanks to hugovk.
1111 * docutils/languages/ko.py, docutils/parsers/rst/languages/ko.py
1113 - Apply [ 153 ] Korean mappings by Thomas Sungjin Kang.
1117 - Fix [ 251 ] `system_message.copy()` `TypeError`.
1118 - `Element.copy()` also copies `document`, `line`, and `source` attributes.
1120 * docutils/parsers/rst/__init__.py
1122 - Apply [ 152 ] reset `default role` at end of document.
1124 * docutils/parsers/rst/states.py
1126 - Allow embedded colons in field list field names.
1128 * docutils/parsers/rst/directives/html.py
1130 - Fix bug #281: Remove escaping backslashes in meta directive content.
1132 * docutils/parsers/rst/directives/misc.py
1134 - Don't convert tabs to spaces, if `tab_width` is negative in
1135 "include" directive with "code" option.
1137 * docutils/parsers/rst/directives/tables.py
1139 - Apply patch #121: Add "width" option for the table directives.
1141 * docutils/transforms/frontmatter.py
1143 - Add field name as class argument to generic docinfo fields unconditionally.
1145 * docutils/transforms/references.py
1147 - Fix bug #331: fixed the "trim" options of the "unicode" directive.
1149 * docutils/utils/__init__.py
1151 - Deprecate `unique_combination()` (obsoleted by `itertools.combination()`.
1153 * docutils/utils/smartquotes.py
1155 - Fix bug #332: use open quote after whitespace, ZWSP, and ZWNJ.
1157 * docutils/writers/html5_polyglot/
1159 - automatically add HTML5-compatible meta tags for docinfo items
1160 "authors", "date", and "copyright".
1162 * docutils/writers/_html_base.py
1164 - Fix bug #358: Non-breaking space removed from fixed-width literal.
1166 * docutils/writers/latex2e/__init__.py
1168 - Fix bug #323: spurious ``\phantomsection`` and whitespace in
1170 - Fix bug #324: Invalid LaTeX for table with empty multi-column cell.
1171 - Fixes to literal block handling.
1174 Release 0.14 (2017-08-03)
1175 =========================
1177 * docs/ref/docutils.dtd
1179 - Enable validation of Docutils XML documents against the DTD:
1181 Use attribute type NMTOKEN instead of REFID for the `refid` attribute
1182 and NMTOKENS for `backrefs`: REFID refers to an ID type instance,
1183 however, the `ids` attribute cannot use the ID type because `XML only
1184 allows one ID per Element Type`__ and doesn't support a multiple-ID
1185 "IDS" attribute type.
1187 __ https://www.w3.org/TR/REC-xml/#sec-attribute-types
1189 * docs/ref/rst/restructuredtext.txt
1191 - Added documentation for escaped whitespace in URI contexts.
1192 - Clarify use of Unicode character categories.
1194 * docutils/parsers/rst/states.py
1196 - Added functionality: escaped whitespace in URI contexts.
1197 - Consistent handling of all whitespace characters in inline markup
1198 recognition. Fixes [ 307 ] and [ 3402314 ] (now [ 173 ]).
1200 * docutils/parsers/rst/directives/images.py
1202 - Added support for escaped whitespace in URI contexts.
1204 * docutils/parsers/rst/directives/tables.py
1206 - Rework patch [ 120 ] (revert change to Table.get_column_widths()
1207 that led to problems in an application with a custom table directive).
1209 * docutils/transforms/frontmatter.py
1211 - Fix [ 320 ] Russian docinfo fields not recognized.
1213 * docutils/transforms/references.py
1215 - Don't add a second ID to problematic references.
1217 * docutils/transforms/universal.py
1219 Fix `SmartQuotes`: warn only once if language is unsupported,
1220 keep "rawsource" when "educating" quotes.
1222 * docutils/utils/__init__.py
1224 - Added `split_escaped_whitespac()` function, support for escaped
1225 whitespace in URI contexts.
1227 * docutils/utils/error_reporting.py
1229 - Fix [ 321 ] Import block might cause name error.
1231 * docutils/utils/smartquotes.py
1233 - Update quote definitions for languages et, fi, fr, ro, sv, tr, uk.
1234 - New quote definitions for hr, hsb, hu, lv, sh, sl, sr.
1235 - Fix [ 313 ] Differentiate apostrophe from closing single quote
1237 - Fix [ 317 ] Extra space inserted with French smartquotes.
1238 - Add command line interface for stand-alone use (requires 2.7).
1240 * docutils/writers/_html_base.py
1242 - Provide default title in metadata (required by HTML5).
1243 - Fix [ 312 ] HTML writer generates invalid HTML if the table has two tags.
1244 - Fix [ 319 ] The MathJax CDN shut down on April 30, 2017. For security
1245 reasons, we don't use a third party public installation as default but
1246 warn if `math_output`_ is set to MathJax without specifying a URL.
1248 * docutils/writers/html4css1/__init__.py
1250 - Apply [ 125 ] HTML writer: respect automatic table column sizing.
1252 * docutils/writers/latex2e/__init__.py
1254 - Handle class arguments for block-level elements by wrapping them
1255 in a "DUclass" environment. This replaces the special handling for
1256 `epigraph` and `topic` elements.
1258 * docutils/writers/manpage.py
1260 - Apply [ 141 ] Handling inline in manpage writer.
1262 * docutils/writers/odf_odt/__init__.py
1264 - Command line setting `language`_ now sets the default language of the
1265 generated ODF document.
1266 - The use of image directive options :width: (%), :scale:, etc now
1267 set the width/height/size of images in the generated ODF
1269 - The heading/title of admonitions now reflects the language
1270 specified by the `language`_ setting.
1271 - Fixed [ 306 ] only first of multiple "image" directives with the same URL
1273 - Fixed [ 282 ] python3: `AttributeError`.
1275 * tools/rst2html4.py: New front-end.
1277 * tools/dev/generate_punctuation_chars.py: New script
1278 to test and update utils.punctuation_chars.
1281 Release 0.13.1 (2016-12-09)
1282 ===========================
1284 * docs/ref/docutils.dtd
1286 - Add the document tree elements <math> and <math_block> (already in use).
1288 * docutils/languages/fa.py
1289 docutils/parsers/rst/languages/fa.py
1290 docutils/languages/la.py
1291 docutils/parsers/rst/languages/la.py:
1293 - Apply [ 133 ] Persian mappings by Shahin Azad.
1294 - Apply [ 135 ] Language modules for Latvian by Alexander Smishlajev
1298 - Fix [ 253 ] Attribute key without value not allowed in XML.
1302 - Apply [ 103 ] Recognize inline markups without word boundaries.
1303 - Enable escaping in embedded URIs and aliases (fixes [ 284 ]).
1305 * docutils/parsers/rst/__init__.py
1307 - Fix [ 233 ] Change the base URL for the :rfc: role.
1309 * docutils/parsers/rst/directives/tables.py
1311 - Apply [ 120 ] tables accept option widths: list of relative widths, 'auto'
1314 - Implement feature request [ 48 ]
1315 Add :align: option to the table directives.
1316 Thanks to Takeshi KOMIYA for the patch.
1318 * docutils/parsers/rst/roles.py
1320 - Fix [ 295 ] Class argument for custom role inheriting from math.
1322 * docutils/parsers/rst/tableparser.py
1324 - Really fix [ 159 ] Spurious table column alignment errors.
1326 * docutils/transforms/frontmatter.py
1328 - Add name of generic bibliographic fields as a "classes" attribute value
1329 (after conversion to a valid identifier form).
1331 * docutils/utils/error_reporting.py
1333 - Fix [ 130 ] support streams expecting byte-strings in ErrorOutput.
1335 * docutils/utils/math/math2html.py
1337 - Add ``\colon`` macro, fix spacing around colons. Fixes [ 246 ].
1338 - New upstream version (additional macros, piece-wise integrals and sums).
1340 * docutils/writers/_html_base.py
1342 - New auxiliary module for definitions common to all HTML writers.
1344 * docutils/writers/html5_polyglot/
1346 - New HTML writer generating clean, polyglot_ markup conforming to
1349 The CSS stylesheets ``minimal.css`` and ``plain.css`` contain required
1350 and recommended layout rules.
1352 * docutils/writers/html4css1/__init__.py
1354 - Add "docutils" to class values for "container" object to address [ 267 ].
1355 - Apply patch [ 119 ] by Anatoly Techtonik: use absolute paths for
1356 `default_stylesheet_path` and `default_template_path`.
1357 - Fix [ 266 ] creating labels/class values in description list items.
1358 - Do not use <sup> and <sub> tags inside <pre> (parsed-literal blocks).
1359 - Fix footnotes with content that does not start with a paragraph.
1360 - Use https in default MathJax URL (report Alan G Isaac).
1361 - Outsourcing of common code to _html_base.py.
1363 * docutils/writers/latex2e/__init__.py
1365 - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
1366 admonitions and docinfo.
1368 - Use absolute path for `default_template_path`.
1370 - Removed deprecated options ``--use-latex-footnotes`` and
1371 ``--figure-footnotes``.
1373 - Cleaner LaTeX code for enumerations and literal blocks.
1375 - Use `hyperref` package together with `bookmark` (improved hyperlinking
1376 by the same author).
1378 - Fix [ 286 ] Empty column title cause invalid latex file.
1380 - Fix [ 224 ] Fix rowspan support for tables.
1382 - Let LaTeX determine the column widths in tables with "colwidths-auto".
1383 Not suited for multi-paragraph cells!
1385 * docutils/writers/odf_odt/__init__.py
1387 - remove decode.encode of filename stored in zip.
1389 * docutils/writers/xetex/__init__.py
1391 - LuaLaTex compatibility: do not load `xunicode` package.
1395 - New front-end ``rst2html5.py``.
1399 - Test py26, py27, py33 and py34.
1401 To use, install the `tox` package via pip or easy_install and use
1402 tox from the project root directory.
1404 .. _polyglot: https://www.w3.org/TR/html-polyglot/
1405 .. _HTML 5: https://www.w3.org/TR/html5/
1408 Release 0.12 (2014-07-06)
1409 =========================
1411 * docs/ref/rst/directives.txt
1413 - Update "math" and "csv-table" descriptions.
1415 * docutils/parsers/rst/directives/images.py
1417 - Fix [ 258 ] ``figwidth="image"`` generates unitless width value.
1419 * docutils/parsers/rst/states.py
1421 - Improve error report when a non-ASCII character is specified as
1422 delimiter, quote or escape character under Python 2.
1423 Fixes [ 249 ] and [ 250 ].
1425 * docutils/writers/html4css1/__init__.py
1427 - Don't add newline after inline math.
1428 Thanks to Yury G. Kudryashov for the patch.
1430 * docutils/writers/latex2e/__init__.py
1432 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
1433 - Apply [ 116 ] by Kirill Smelkov. Don't hard code \large for subtitle.
1435 * docutils/writers/odf_odt/__init__.py
1437 - Apply patch by Jakub Wilk to fix bug [ 100 ].
1439 * test/test_error_reporting.py
1441 - Fix [ 223 ] by removing redundant tests we do not have control over.
1443 * test/test_nodes.py
1445 - Apply [ 115 ] respect fixed 2to3 string literal conversion behaviour.
1448 Release 0.11 (2013-07-22)
1449 =========================
1453 - Apply [ 2714873 ] Fix for the overwriting of document attributes.
1454 - Support embedded aliases within hyperlink references.
1455 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
1456 language module) before global search.
1460 - Fix [ 3601607 ] `node.__repr__()` must return `str` instance.
1462 * docutils/parsers/rst/directives/__init__.py
1464 - Fix [ 3606028 ] `assert` is skipped with ``python -O``.
1466 * docutils/parsers/rst/directives/images.py
1468 - Apply [ 3599485 ] node source/line information for sphinx translation.
1470 * docutils/parsers/rst/directives/tables.py
1472 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
1474 * docutils/parsers/rst/states.py
1476 - Fix [ 157 ] Line block parsing doesn't like system message.
1477 - Always import our local copy of roman.py (report Larry Hastings).
1479 * docutils/transforms/references.py
1481 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
1483 * docutils/utils/__init__.py
1485 - Fix [ 3596884 ] exception importing `docutils.io`.
1487 * docutils/writers/html4css1/__init__.py
1489 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
1490 - New setting `stylesheet_dirs`_: Comma-separated list of directories
1491 where stylesheets are found. Used by `stylesheet_path` when expanding
1492 relative path arguments.
1493 - New default for `math_output`_: ``HTML math.css``.
1494 - Avoid repeated class declarations in html4css1 writer
1495 (modified version of patch [ 104 ]).
1498 * docutils/writers/latex2e/__init__.py
1500 - Drop the simple algorithm replacing straight double quotes with
1501 English typographic ones.
1502 Use the `smart_quotes`_ setting to activate this feature.
1503 - Fix literal use of babel shorthands (straight quote, tilde, ...).
1504 - Fix [ 3603246 ] Bug in option ``--graphicx-option=auto``.
1505 - New setting `stylesheet_dirs`__.
1507 __ docs/user/config.html#stylesheet-dirs-latex-writers
1510 * docutils/writers/manpage.py
1512 - Fix [3607063] handle lines starting with a period.
1513 - Fix option separating comma was bold (thanks to Bill Morris).
1516 Release 0.10 (2012-12-16)
1517 =========================
1521 - Dropped support for Python 2.3.
1522 - ``docutils/math``, ``docutils/error_reporting.py``, and
1523 ``docutils/urischemes.py`` moved to the utils package.
1524 - Fix [3541369] Relative __import__ also with Python 3.3.
1525 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
1526 and parsers for Python 2.7 up.
1527 - Fix import of PIL.Image.
1528 - Change default of `syntax_highlight`_ option to "long",
1529 basic syntax highlight styles for LaTeX and HTML.
1533 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
1534 option is ignored and will be removed in a future release.
1535 - Fix Py3k error writing to stdout with encoding differing from default.
1536 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
1538 * docutils/parsers/rst/directives/misc.py
1540 - Fix [ 3546533 ] Unicode error with "date" directive.
1542 * docutils/transforms/universal.py
1544 - SmartQuotes transform for typographic quotes and dashes.
1546 * docutils/utils/__init__.py
1548 - `normalize_language_tag()` now returns `BCP 47`_ conforming tags
1549 with sub-tags separated by ``-``.
1551 * docutils/writers/html4css1/__init__.py
1553 - Use ``<code>`` tag for inline "code",
1554 do not drop nested inline nodes (syntax highlight tokens).
1555 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
1556 - No line break after opening inline math tag.
1558 * docutils/writers/manpage.py
1560 - Apply [ 3527401 ] admonition's don't preserve indentation
1561 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
1563 * docutils/writers/xetex/__init__.py
1565 - Apply [ 3555160 ] ensure order of "otherlanguages".
1566 - Fix section numbering by LaTeX.
1568 * docutils/writers/s5_html/__init__.py
1570 - Fix [ 3556388 ] MathJax does not work with rst2s5.
1572 * docutils/writers/docutils_xml.py
1574 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
1575 - Fix/improve output with `indents`_ setting.
1579 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
1581 * tools/test/test_buildhtml.py
1583 - Fix [ 3521167 ] allow running in any directory.
1584 - Fix [ 3521168 ] allow running with Python 3.
1587 Release 0.9.1 (2012-06-17)
1588 ==========================
1592 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
1593 installed in the PYTHONPATH. Converted tests are now
1594 stored in ``test3/``, tools no longer need conversion.
1596 If you installed one of Docutils versions 0.7 ... 0.9 with
1597 ``setup.py install`` under Python 3, remove the spurious
1598 ``test/`` and ``tools/`` directories in the site library root.
1602 - Make tests independent from the location of the ``test/`` directory.
1603 - Use converted sources (from the ``build/`` directory) for tests under
1608 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
1612 - Fix writing binary data to sys.stdout under Python 3 (allows
1613 ``rst2odt.py`` to be used with output redirection).
1615 * docutils/parsers/rst/directives/misc.py
1617 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
1618 ``locale == C`` and 8-bit char in path argument of `include` directive.
1622 - class `Tee`: catch `UnicodeError` when writing to "ascii" stream or
1623 file under Python 3.
1626 Release 0.9 (2012-05-02)
1627 ========================
1631 - New reStructuredText "code" role and directive and "code" option
1632 of the "include" directive with syntax highlighting by Pygments_.
1633 - Fix parse_option_marker for option arguments containing ``=``.
1634 - Fix [ 2993756 ] import Python Imaging Library's Image module
1635 via ``import PIL`` as starting with PIL 1.2,
1636 "PIL lives in the PIL namespace only" (announcement__).
1638 .. _Pygments: https://pygments.org/
1639 __ https://mail.python.org/pipermail/image-sig/2011-January/006650.html
1643 - Fix [ 2971827 ] and [ 3442827 ]
1644 extras/roman.py moved to docutils/utils/roman.py
1646 * docutils/frontend.py
1648 - Fix [ 3481980 ] Use `os.getcwdu()` in `make_paths_absolute()`.
1652 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
1653 - `mode` argument for FileOutput avoids code replication in
1655 - New exceptions `InputError` and `OutputError` for IO errors in
1656 FileInput/FileOutput.
1660 - No "hard" system exit on file IO errors: catch and report them in
1661 `Publisher.reportException` instead. Allows handling by a calling
1662 application if the configuration setting `traceback`_ is True.
1664 * docutils/utils.py -> docutils/utils/__init__.py
1666 - docutils.utils is now a package (providing a place for sub-modules)
1668 - DependencyList uses io.FileOutput and 'utf-8' encoding to prevent
1669 errors recording non-ASCII filenames (fixes [ 3434355 ]).
1671 - Fix `relative_path()` with source=None and `unicode` target.
1673 * docutils/parsers/rst/states.py
1675 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
1676 characters and "international" quotes around inline markup.
1677 - Use `field_marker` pattern to look for start of a
1678 directive option block (fixes [ 3484857 ]).
1680 * docutils/parsers/rst/tableparser.py
1682 - Fix [ 2926161 ] for simple tables.
1683 (Combining chars in grid tables still contribute to cell width.)
1685 * docutils/writers/latex2e/__init__.py
1687 - Support the `abbreviation` and `acronym` standard roles.
1688 - Record only files required to generate the LaTeX source as dependencies.
1689 - Fix handling of missing stylesheets.
1690 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
1691 when suppressing LaTeX section numbering.
1692 - Use ``\DUtitle`` for unsupported section levels.
1693 - Apply [ 3512791 ] do not compare string literals with "is".
1695 * docutils/writers/xetex/__init__.py
1697 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
1699 * docutils/writers/html4css1/__init__.py
1701 - Change default for `math_output`_ setting to MathJax.
1702 - Fix handling of missing stylesheets.
1704 * docutils/writers/docutils_xml.py
1706 - Use the visitor pattern with `default_visit()`/`default_depart()` methods
1707 instead of minidom to facilitate special handling of selected nodes.
1708 - Support raw XML (inserted as-is inside a <raw></raw> node).
1710 * docutils/writers/manpage.py
1712 - Do not emit comment line with trailing blank. Problematic for VCS.
1715 Release 0.8.1 (2011-08-30)
1716 ==========================
1720 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
1721 and [ 3395920 ] (correct copyright info for rst.el).
1725 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
1727 * docutils/writers/latex2e/__init__.py
1729 - Clean up Babel language setting. Restores Sphinx compatibility.
1732 Release 0.8 (2011-07-07)
1733 ========================
1737 - Handle language codes according to `BCP 47`_.
1738 - If the specified language is not supported by Docutils,
1739 warn and fall back to English.
1740 - Math support: reStructuredText "math" role and directive,
1741 `math` and `math_block` doctree elements.
1742 - Decode command line arguments with the locale's preferred encoding
1743 (to allow, e.g., ``--title=Dornröschen``).
1744 - Orphaned `python` reader and `newlatex2e` writer moved to the sandbox.
1745 - New sub-module `error_reporting`: handle encoding/decoding errors
1746 when reporting exceptions.
1747 - Some additions to the Docutils core are released under the 2-Clause BSD
1748 license, see COPYING_ for details.
1750 .. _BCP 47: https://www.rfc-editor.org/rfc/bcp/bcp47.txt
1751 .. _COPYING: COPYING.html
1755 - Most directives now support a "name" option that attaches a
1758 - Directive content may start on the first line also when the directive
1759 type accepts options.
1761 * docs/dev/policies.txt
1763 - Recommend the 2-Clause BSD license
1764 (http://opensource.org/licenses/BSD-2-Clause)
1765 for code that is kept under the author's copyright.
1767 * tools/buildhtml.py
1769 - Fix ``--local`` switch.
1771 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
1773 * docutils/writers/html4css1/__init__.py
1775 - Set "lang" argument for objects with class argument
1776 "language-<language tag>".
1777 - New setting `math_output`_ with support for HTML, MathML, and LaTeX.
1779 * docutils/writers/latex2e/__init__.py
1781 - Fix [ 3043986 ] `AttributeError` using :local: with table of content.
1782 - Place title data in the document preamble.
1783 - Load `babel` package only if required.
1784 - Update list of supported languages.
1785 - New config setting `hyperref_options`_.
1786 No hard-coded "unicode" hyperref option (clash with xetex).
1787 - Set language for custom roles, paragraphs, block-quotes, and
1788 line-quotes with class argument "language-<language tag>".
1789 - Fix [ 3095603 ] wrong quotes output for Russian and other languages.
1790 - Convert image URI to a local file path.
1791 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
1792 has more than one paragraph (Wolfgang Scherer).
1793 - \leavevmode before longtable only when needed (prevents spurious vspace)
1794 - do not advance table counter for tables without caption
1796 * docutils/writers/xetex/__init__.py
1798 - New writer generating LaTeX code for compiling with ``xelatex``.
1800 A separate writer (inheriting from latex2e) instead of a ``--xetex``
1801 option allows separate config options for XeTeX vs. LaTeX2e.
1803 * docutils/writers/manpage.py
1805 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
1806 - Fix: vertical space cleaning for option group ``.``.
1808 * tools/editors/emacs/rst.el
1810 - Fix [ 3001100 ] does not handle spaces in filenames.
1811 Thanks to Jakub Wilk.
1815 - strip whitespace from stylesheet arguments
1816 - exclude combining chars from column_width()
1817 (partial fix for [ 2926161 ])
1819 * docutils/parsers/rst/directives/misc.py
1821 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
1826 - Do not ``close()`` `sys.stdin`, `sys.stdout`, or `sys.stderr`. Prevents
1827 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
1830 Release 0.7 (2010-07-07)
1831 ========================
1835 - Fix [ 2881769 ] setup configuration.
1836 - Fix [ 2788716 ] reporting problems in included files.
1840 - FileInput opens files as text files with universal newline support
1841 (mode "rU", configurable with the new optional argument "mode").
1845 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
1849 - Fix [ 2923723 ] let `decode_path()` tolerate ``path == None``.
1851 * docutils/writers/html4css1/__init__.py
1853 - Support SVG and SWF images (thanks to Stefan Rank).
1854 - Generate valid XHTML for centred images with targets.
1855 Use CSS classes instead of "align" tags for image alignment.
1857 * docutils/writers/latex2e/__init__.py
1859 - Use `transforms.writer_aux.Admonitions` to "normalize" special
1861 - Use the ``\url`` command for URLs (breaks long URLs instead of
1862 writing into the margin).
1863 - Preserve runs of spaces in `inline literals`__.
1864 - Deprecate `figure_footnotes`_ setting.
1865 - Rename `use_latex_footnotes`_ setting to `docutils_footnotes`_.
1866 - New `latex_preamble`_ setting.
1867 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
1868 - Fix hyperlink targets (labels) for images, figures, and tables.
1869 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
1870 - Apply [ 2961991 ] Call hyperref with unicode option.
1871 - Drop the special `output_encoding`_ default ("latin-1").
1872 The Docutils wide default (usually "UTF-8") is used instead.
1873 - Render inline markup in document title and subtitle.
1874 - Fix numbering depth with LaTeX section numbering.
1875 - Update Unicode -> LaTeX translations.
1876 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
1878 __ docs/ref/restructuredtext.html#inline-literals
1880 * docutils/writers/manpage.py
1882 - Fix: supported attribute (thanks to peter2108).
1883 - Remove trailing blanks in code (keep in sync with mercurial version).
1884 - Titles level 1, that is ``.SH``, always uppercase.
1885 - Apply patch from mg: literal text should be bold in man-pages.
1889 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
1894 - Python 3 support: copy test/ and tools/ to the build-dir
1895 and convert Python sources with 2to3.
1898 Release 0.6 (2009-10-11)
1899 ========================
1903 - Docutils is now compatible with Python versions from 2.3 up to 2.6
1904 and convertible to 3.1 code.
1906 + Node.__nonzero__ returns True instead of 1.
1907 + use os.walk instead os.path.walk.
1908 + minimize `types` module where possible.
1909 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
1910 + Text nodes now subclass unicode rather than UserString
1911 (which is gone in python 3.0).
1912 + 3.0 compatibility module docutils._compat
1914 + Drop 2.2 compatibility workarounds.
1915 + Drop extras/optparse.py and extras/textwrap.py
1916 (stdlib modules since 2.3).
1918 - OpenOffice export: ODT writer moved from sandbox to Docutils core.
1919 - Unix man page export: manpage writer moved from sandbox to Docutils
1922 - Apply [ 1719345 ] Galician translation
1923 - Apply [ 1905741 ] Polish translation
1924 - Apply [ 1878977 ] make_id(): deaccent characters.
1925 - Apply [ 2029251 ] return nonzero when tests fail.
1926 - Fix [ 1692788 ] allow UTF-8 in style sheets.
1927 - Fix [ 2781629 ] support non-ASCII chars in file names.
1928 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
1929 - Fix [ 2831643 ] renaming `DirectiveError.message` to `DirectiveError.msg`
1930 - Fix [ 2821266 ] ``--strict`` option works now like ``--halt=info``.
1931 - Fix [ 2788716 ] `DirectiveError` now correctly reports source and line.
1932 - Fix [ 1627229 ] hyperlink references in substitutions.
1934 - The `newlatex` writer is orphaned.
1938 - Documented Unicode characters allowed as inline markup openers,
1939 closers, and delimiters.
1940 - Allow units for all length specifications.
1941 - Allow percent sign in "scale" argument of "figure" and "image" directives.
1942 - Bugfix: The "figalign" argument of a figure now works as intended
1943 (aligning the figure, not its contents).
1944 - Align images with class "align-[right|center|left]"
1945 (allows setting the alignment of an image in a figure).
1947 * docutils/nodes.py:
1949 - Added `Element.__contains_()` method, for the in-operator.
1951 * docutils/parsers/rst/states.py:
1953 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
1954 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
1955 " " (non-breaking space), and "¡ ¿" openers.
1957 * docutils/parsers/directives/misc.py:
1959 - Added ``start-line`` and ``end-line`` options to "include"
1960 directive to select a range of lines.
1961 - Hard tabs in literal inclusions are replaced by spaces. This is
1962 configurable via the new ``tab-width`` option of the "include" directive
1963 (a negative tab-width prevents tab expansion).
1965 * docutils/utils.py:
1967 - Add `get_stylesheet_lis()` function.
1968 - Apply [ 2834836 ] print info at halt
1970 * docutils/transforms/universal.py:
1972 - Raise default priority of StripClasses to exclude stripped classes from
1975 * docutils/writers/html4css1/__init__.py:
1977 - `stylesheet`_ and `stylesheet_path`_ settings support a comma
1978 separated list of stylesheets.
1979 - Address [ 1938891 ] Inline literal text creates "pre" span only when
1980 needed to prevent inter-word line wraps.
1981 - Use `translate()` method instead of repeated `replace()` calls.
1982 - Fix [ 1757105 ] New `table_style`_ setting. Added to standard table
1983 classes to allow CSS styling that does not interfere with other
1984 table-using constructs (field lists, citations, ...).
1986 * docutils/writers/newlatex2e/__init__.py:
1988 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
1990 * docutils/writers/latex2e/__init__.py:
1992 - Add `embed_stylesheet`_ setting.
1993 - Apply [ 1474017 ] image vertical alignment is reversed.
1994 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
1995 - Change: has_key for dictionaries (not Nodes) to in-operator.
1996 - Merge adjacent citations into one latex cite command.
1997 - Failsafe implementation of custom roles. LaTeX compilation now ignores
1998 unknown classes instead of aborting with an error.
1999 - Support custom roles based on standard roles.
2000 - LaTeX packages can be used as `stylesheet`_ arguments without
2001 restriction. (A style sheet is now referenced with the ``\usepackage``
2002 command, if it ends with ``.sty`` or has no extension.)
2003 - Add ``bp`` to lengths without unit (prevents LaTeX errors).
2004 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
2005 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
2006 2005-02-04 as a configurable length unit).
2007 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
2008 if font-encoding is set to ''. LaTeX defaults to OT1 then.
2009 - Set sub- and superscript role argument in text mode not as math.
2010 Use a custom role based on sub-/superscript if you want italic shape.
2011 - Shorter preamble and less dependencies: Load packages and define macros
2012 only if required in the document.
2013 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
2014 - New custom environments and commands with optional "classes" argument.
2015 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
2016 - Better conformance to Docutils specifications with `use_latex_toc`_.
2017 Support for LaTeX generated ToC also with unnumbered sections.
2018 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
2019 section numbering by LaTeX.
2020 - Use default font in admonitions and sidebar.
2021 - Align of image in a figure defaults to 'center'.
2022 - Bugfix: Newlines around targets and references prevent run-together
2024 - Fix internal hyperlinks.
2025 - Use class defaults for page margins ('typearea' now optional).
2026 - Float placement made configurable, default changed to "here definitely".
2027 - Typeset generic topic as "quote block with title".
2028 - Use template (file and configuration option).
2029 - In the default template, load cmap.sty (fix text extraction in PDF) and
2030 fixltx2e.sty (LaTeX patches, \textsubscript).
2031 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
2032 - Use `translate()` instead of repeated `replace()` calls for text encoding.
2033 - Hyperlinked footnotes and support for symbol footnotes and
2034 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
2035 - Complete pairs of binary options
2036 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
2037 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
2039 - font-encoding: "T1" (formerly implicitly set by 'ae').
2040 - use-latex-toc: true (ToC with page numbers).
2041 - use-latex-footnotes: true (no mixup with figures).
2043 * docutils/writers/manpage.py
2045 - Do not print version at document end, this is done by the viewer.
2046 - Do not print date at document end, this is done by the viewer.
2047 - Fix storage of docinfo fields for none standard fields.
2049 * docutils/tools/rst2man.py
2052 Release 0.5 (2008-06-25)
2053 ========================
2055 * docutils/languages/he.py: Added to project: Hebrew mappings by
2058 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
2059 mappings by Meir Kriheli.
2061 * docutils/frontend.py:
2063 - Configuration files are now assumed and required to be
2065 - Paths of applied configuration files are now recorded in the
2066 runtime setting `_config_files`_ (accessible via `dump_settings`_).
2067 - Added `strip_elements_with_classes`_ and `strip_classes`_ settings.
2071 - Added code to determine the input encoding from data: encoding
2072 declarations or the presence of byte order marks (UTF-8 & UTF-16).
2073 - Added support for IronPython 1.0.
2075 * docutils/nodes.py:
2077 - Added `document.__getstate_()` method, for pickling.
2079 * docutils/parsers/rst/states.py:
2081 - Allow ``+`` and ``:`` in reference names.
2082 - Unquoted targets beginning with an underscore (``.. __target:
2083 URI``) are no longer accepted.
2084 - Added support for multiple attributions in a physical block quote
2085 (indented text block), dividing it into multiple logical block
2087 - Added support for unicode bullets in bullet lists: "•", "‣", and
2089 - Added support for new object-oriented directive interface,
2090 retaining compatibility to the old functional interface.
2091 - Added support for throwing `DirectiveError`'s from within
2094 * docutils/parsers/rst/__init__.py:
2096 - Added `Directive` base class.
2097 - Added `DirectiveError` base class.
2098 - Fixed `file_insertion_enabled`_ & `raw_enabled`_ setting
2101 * docutils/parsers/directives/:
2103 - Refactored all reStructuredText directives to use the new
2104 object-oriented directive interface. Errors are now (mostly)
2105 thrown using the new `DirectiveError` class.
2107 * docutils/parsers/directives/misc.py:
2109 - Added ``start-after`` and ``end-before`` options to ``include``
2110 directive; thanks to Stefan Rank.
2112 * docutils/transforms/universal.py:
2114 - Added `StripClassesAndElements` transform to remove from the
2115 document tree all elements with classes in
2116 `strip_elements_with_classes`_ and all "classes"
2117 attribute values in `strip_classes`_
2119 * docutils/transforms/writer_aux.py:
2121 - Added `Admonitions` transform to transform specific admonitions
2122 (like "note", "warning", etc.) into generic admonitions with a
2125 * docutils/writers/html4css1/__init__.py:
2127 - Moved template functionality from the PEP/HTML writer here.
2128 - Expanded the fragments available in the ``parts`` attribute.
2129 - Moved ``id`` attributes from titles to surrounding ``div``
2131 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
2132 universally supported now).
2133 - ``template.txt`` is now opened in text mode instead of binary mode
2134 (to ensure Windows compatibility).
2135 - ``a`` elements now have an "internal" or "external" class,
2136 depending on reference type.
2138 * docutils/writers/html4css1/template.txt: Added to project.
2140 * docutils/writers/pep_html/:
2142 - Moved template functionality to the HTML writer.
2144 * docutils/writers/s5_html/__init__.py:
2146 - Added `view_mode`_ & `hidden_controls`_ settings.
2148 * docutils/writers/latex2e/__init__.py:
2150 - Add `literal_block_env`_.
2151 - Fix: escaping ``%`` in href urls.
2152 - Move usepackage hyperref after stylesheet inclusion.
2153 - Fix: scrartcl does not have chapter but scrreprt.
2154 - Add newline after ``\end{verbatim}``.
2155 - Merge smaller differences from latex2e_adaptive_preamble.
2156 - Add ``use-part-section``.
2157 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
2158 - Using leavemode option_list no longer needs to check if parent
2159 is a definition list.
2160 - Append ``\leavemode`` to definition list terms.
2161 - No longer write visit\_/depart_definition_list_item comments to
2163 - Table column width with 3 decimal places.
2164 - Add table stubs support (boldfont).
2165 - Add assemble_parts to writer.
2166 - Add simply support for nested tables.
2167 - Fix verbatim in tables if use-verbatim-when-possible.
2168 - Use section commands down to subparagraph.
2169 - Put ensuremath around some latin1 chars.
2170 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
2171 - New experimental setting `use_bibtex`_.
2172 - New setting `reference_label`_ to allow usage of LaTeX ref for
2173 labels in section references.
2174 - Add a label after every section to support sectionnumbers as reference
2176 - Fix: bug# 1605376 rst2latex: bad options group list
2177 - Remove inactive code for use_optionlist_for_option_list.
2178 - Remove latex comments from option_list output.
2179 - Fix: bug# 1612270 double quotes in italian literal.
2180 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
2181 - Add setting `use_latex_abstract`_.
2182 - Image width unit ``px`` is translated to ``pt``.
2183 - Add image height support.
2184 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
2186 - Fix: Do not escape underscores in citation reference labels if
2187 use-latex-citations is set.
2188 - Use centering instead of center for figure contents, to avoid vertical
2190 - Recognize table class: borderless, nolines, booktabs, standard.
2191 - Fix: Renaming contents section does not work with latex writer; SF
2193 - Applied patch for custom roles with classes from Edward Loper.
2194 - Fixed bug that caused crashes with more than 256 lists.
2196 * docutils/writers/pep_html/__init__.py:
2198 - Changed to support new python.org website structure and
2201 * docs/howto/security.txt: "Deploying Docutils Securely", added to
2204 * tools/buildhtml.py:
2206 - Add `ignore`_ setting to exclude a list of shell patterns
2207 (default: ``.svn:CVS``).
2209 * tools/editors/emacs/rst.el:
2211 - Changed license to "GPL".
2212 - Added ``rst-straighten-decorations`` function.
2213 - The ``compile`` module is now always loaded.
2214 - Added ``rst-toggle-line-block`` function.
2215 - Headings consisting only of non-ASCII characters are now
2216 recognized by ``rst-toc`` and ``rst-adjust``.
2217 - Added font-lock support for multi-line comments where the first
2218 comment line is empty.
2219 - Added ``(require 'font-lock)``.
2223 - Provide descriptive error message if distutils is missing.
2226 Release 0.4 (2006-01-09)
2227 ========================
2231 - Updated the project policies for trunk/branch development &
2234 * docutils/__init__.py:
2236 - Added ``__version_details__`` attribute to describe code source
2237 (repository/snapshot/release).
2238 - Replaced ``default_transforms`` attribute of ``TransformSpec`` with
2239 ``get_transforms()`` method.
2243 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
2244 functions, for document tree extraction and reprocessing.
2248 - Added ``DocTreeInput`` class, for reprocessing existing documents.
2249 - Added support for non-Unicode (e.g. binary) writer output.
2251 * docutils/nodes.py:
2253 - Re-introduced ``Targetable.indirect_reference_name``, for
2254 MoinMoin/reST compatibility (removed in r3124/r3129).
2255 - Added ``serial_escape`` function; escapes string values that are
2256 elements of a list, for serialization. Modified Docutils-XML
2257 writing (``Element._dom_node``) and pseudo-XML writing
2258 (``Element.starttag``) to use ``serial_escape``.
2259 - Added ``Node.deepcopy()`` method.
2260 - Removed the internal lists ``document.substitution_refs``,
2261 ``document.anonymous_refs``, and ``document.anonymous_targets``.
2262 - Added a "container" element.
2263 - Fixed bug where values of list-valued attributes of elements
2264 originating from custom interpreted text roles (i.e., with custom
2265 classes) were being shared between element instances. Reported by
2268 * docutils/statemachine.py:
2270 - Added trailing whitespace stripping to ``string2lines()``.
2271 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
2272 Asian double-width character support.
2274 * docutils/utils.py:
2276 - Added ``east_asian_column_width()`` for double-width character
2279 * docutils/languages/ja.py: Added to project: Japanese mappings by
2282 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
2283 mappings by Panjunyong.
2285 * docutils/parsers/null.py: Added to project; a do-nothing parser.
2287 * docutils/parsers/rst/__init__.py:
2289 - Added validator to "tab_width" setting, with test. Closes SF bug
2290 #1212515, report from Wu Wei.
2292 * docutils/parsers/rst/states.py:
2294 - Fixed bug with escaped colons indicating a literal block.
2295 - Fixed bug with enumerated lists (SF#1254145).
2296 - Backslash-escaped colons inside of field names are now allowed.
2297 - Targets (implicit and explicit), anonymous hyperlink references
2298 and auto-numbered footnote references inside of substitution
2299 definitions are now disallowed.
2300 - Fixed bug: list items with blank first lines.
2301 - Fixed bug: block quote attributions with indented second lines.
2302 - Added East Asian double-width character support (Python 2.4 only).
2304 * docutils/parsers/rst/tableparser.py:
2306 - Added East Asian double-width character support (Python 2.4 only).
2308 * docutils/parsers/rst/directives/body.py:
2310 - Added the "container" directive.
2312 * docutils/parsers/rst/directives/misc.py:
2314 - Added the "default-role", "title", and "date" directives.
2315 - Added standard data file syntax to the "include" directive.
2316 - Added support for "class" directive content.
2318 * docutils/parsers/rst/directives/images.py:
2320 - Added ``indirect_reference_name`` support for images with a target
2322 - Added support for image width and height units.
2323 - Fixed bug with image "target" options.
2325 * docutils/parsers/rst/directives/references.py:
2327 - Added "class" attribute to "target-notes" directive, for
2328 footnote_reference classes.
2330 * docutils/parsers/rst/include/: Directory added to project; contains
2331 standard data files for the "include" directive. Initial contents:
2332 character entity substitution definition sets, and a set of
2333 definitions for S5/HTML presentations.
2335 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
2336 mappings by David Goodger.
2338 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
2339 Simplified Chinese mappings by Panjunyong.
2341 * docutils/readers/__init__.py:
2343 - Added universal.Decorations and universal.ExposeInternals
2344 transforms as default transforms for all readers.
2345 - Added ``ReReader`` base class for readers that reread an existing
2348 * docutils/readers/doctree.py: Added to project; a reader for existing
2351 * docutils/transforms/frontmatter.py:
2353 - Fixed the DocInfo transform to handle SVN-style expansion of the
2355 - In ``DocInfo.extract_authors``, treat the contents of "authors"
2358 * docutils/transforms/misc.py:
2360 - Added misc.Transitions transform, extracted from
2361 universal.FinalChecks.
2363 * docutils/transforms/references.py:
2365 - Added references.DanglingReferences transform, extracted from
2366 universal.FinalChecks.
2367 - Fixed bug with doubly-indirect substitutions.
2368 - Added footnote_reference classes attribute to "TargetNotes".
2369 - Fixed bug with circular substitution definitions that put Docutils
2370 into an infinite loop.
2372 * docutils/transforms/universal.py:
2374 - Added universal.ExposeInternals transform, extracted from
2375 universal.FinalChecks.
2376 - Removed universal.FinalChecks transform (logic has been moved to
2377 several new transforms).
2378 - Fixed bug with the "expose_internals" setting and Text nodes
2379 (exposed by the "rawsource" internal attribute).
2380 - Added the universal.StripComments transform, implementation of the
2381 "strip_comments" setting.
2383 * docutils/transforms/writer_aux.py: Added to project; auxiliary
2384 transforms for writers.
2386 - Added ``Compound`` transform, which flattens compound paragraphs.
2388 * docutils/writers/: Several writer modules (html4css1.py) were
2389 converted into packages. Support modules and data files have been
2390 moved into the packages. The stylesheets for the HTML writers are
2391 now installed along with the code, the code knows where to find
2392 them, and the default is to use them (actually, to embed them).
2393 Some adjustments to configuration files may be necessary. The
2394 easiest way to obtain the new default behavior is to remove all
2395 settings whose name includes "stylesheet".
2397 * docutils/writers/__init__.py:
2399 - Added universal.Messages and universal.FilterMessages transforms
2400 as default transforms for all writers.
2401 - Added ``UnfilteredWriter`` base class for writers that pass the
2402 document tree on unchanged.
2404 * docutils/writers/docutils_xml.py:
2406 - Made ``xmlcharrefreplace`` the default output encoding error
2409 * docutils/writers/html4css1/:
2411 - Added support for image width and height units.
2412 - Made ``xmlcharrefreplace`` the default output encoding error
2414 - Made ``--embed-stylesheet`` the default rather than
2415 ``--link-stylesheet``.
2416 - Moved "id" attribute from container (section etc.) to title's <a>
2417 tag, to be on the same tag as "name".
2418 (!!! To be reverted in Docutils 0.5.)
2419 - Added vertical space between fields of field lists.
2420 - Added ``--compact-field-lists`` option to remove vertical space in
2422 - Made cloaking of email addresses with ``--cloak-email-addresses``
2424 - Fixed support for centered images.
2425 - Added support for class="compact" & class="open" lists.
2427 * docutils/writers/latex2e/:
2429 - Underscores in citekeys are no longer escaped.
2431 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
2432 mapping of Unicode characters to LaTeX equivalents.
2434 * docutils/writers/s5_html/: Package added to project; writer for
2435 S5/HTML slide shows.
2437 * docs/dev/distributing.txt: Added to project; guide for distributors
2438 (package maintainers).
2440 * docs/dev/hacking.txt: Added to project; guide for developers.
2442 * docs/ref/doctree.txt:
2444 - Updated for plural attributes "classes", "ids", "names",
2446 - Added the "container" element.
2448 * docs/ref/docutils.dtd:
2450 - Updated for plural attributes "classes", "ids", "names",
2453 * docs/user/emacs.txt: Added to project; a document about Emacs
2454 support for reStructuredText and Docutils.
2456 * docs/user/links.txt: Added to project; lists of Docutils-related
2459 * docs/user/mailing-lists.txt: Added to project; information about
2460 Docutils-related mailing lists and how to access them.
2462 * docs/user/slide-shows.txt: Added to project; example of and docs for
2463 the S5/HTML writer (``rst2s5.py`` front end).
2465 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
2466 Files", added to project.
2468 * test/coverage.sh: Added to project; test coverage script.
2470 * test/DocutilsTestSupport.py:
2472 - Added support for specifying runtime settings at the suite level.
2474 * test/test_functional.py:
2476 - Added the ``clear_output_directory`` function.
2477 - Added support for ``_test_more`` functions in functional test
2480 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
2482 * tools/rstpep2html.py: Renamed from pep.py.
2484 * tools/dev/create_unimap.py: Added to project; script to create the
2485 docutils/writers/unimap_latex.py mapping file.
2487 * tools/dev/profile_docutils.py: Added to project; profiler script.
2489 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
2491 * tools/editors/emacs/restructuredtext.el,
2492 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
2493 Removed from project; the functionality is now contained in rst.el.
2495 * tools/editors/emacs/rst.el: Added to project. Added many features
2496 and fixed many bugs. See docs/user/emacs.txt for details.
2498 * tools/stylesheets: Removed from project. Stylesheets have been
2499 renamed and moved into writer packages.
2502 Release 0.3.9 (2005-05-26)
2503 ==========================
2507 - Eliminated and replaced all uses of the old string attributes
2508 ``id``, ``name``, ``dupname`` and ``class`` with references to the
2509 new list attributes ``ids``, ``names``, ``dupnames`` and
2510 ``classes`` throughout the whole source tree.
2514 - Enabled ``--dump-*`` options when ``--traceback`` specified,
2515 allowing for easier debugging.
2516 - In ``Publisher.publish()``, expanded the generic top-level
2519 * docutils/examples.py:
2521 - Added ``internals`` function for exploration.
2525 - Fixed ``Input.decode`` method to apply heuristics only if no
2526 encoding is explicitly given, and to provide better reporting of
2528 - The ``Input.decode`` method now removes byte order marks (BOMs)
2531 * docutils/nodes.py:
2533 - ``image`` element class changed to subclass of Element, not
2534 TextElement (it's an empty element, and cannot contain text).
2535 - Added ``attr_defaults`` dictionary for default attribute values.
2536 - Added empty list as default value for the following attributes:
2537 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
2538 - Added ``document.decoration`` attribute,
2539 ``document.get_decoration`` method, and ``decoration.get_header``
2540 & ``.get_footer`` methods.
2541 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
2544 * docutils/utils.py:
2546 - Removed ``docutils.utils.Reporter.categories``,
2547 ``docutils.utils.ConditionSet``, and all references to them, to
2548 simplify error reporting.
2550 * docutils/languages/nl.py: Added to project; Dutch mappings by
2553 * docutils/parsers/rst/__init__.py:
2555 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
2557 * docutils/parsers/rst/states.py:
2559 - Added check for escaped at-mark to prevent email address recognition.
2560 - Fixed option lists to allow spaces inside ``<angle-bracketed option
2562 - Allowed whitespace in paths and URLs.
2563 - Added auto-enumerated list items.
2564 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
2566 - Added support for table stub columns.
2568 * docutils/parsers/rst/directives/__init__.py:
2570 - Allowed whitespace in paths (``path`` function).
2571 - Added ``uri`` directive option conversion function.
2573 * docutils/parsers/rst/directives/body.py:
2575 - Fixed illegal context bug with "topic" directive (allowed within
2576 sidebars; not within body elements).
2578 * docutils/parsers/rst/directives/images.py:
2580 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
2581 - Added support for the ``file_insertion_enabled`` setting in the
2582 "figure" directive (disables "figwidth" option).
2583 - "image" directive: added checks for valid values of "align" option,
2584 depending on context. "figure" directive: added specialized
2585 "align" option and attribute on "figure" element.
2586 - Made ":figwidth: image" option of "figure" directive work again.
2587 - Fixed bug with reference names containing uppercase letters
2588 (e.g. ``Name_``) in "target" option of "image" directive.
2590 * docutils/parsers/rst/directives/misc.py:
2592 - Fixed "include" and "raw" directives to catch text decoding
2594 - Allowed whitespace in "include" & "raw" directive paths.
2595 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
2596 settings in "include" & "raw" directives.
2598 * docutils/parsers/rst/directives/parts.py:
2600 - Added "header" & "footer" directives.
2601 - Fixed illegal context bug with "contents" directive (topics
2602 allowed within sidebars; not within body elements).
2604 * docutils/parsers/rst/directives/tables.py:
2606 - Added "list-table" directive.
2607 - Caught empty CSV table bug.
2608 - Added support for the ``file_insertion_enabled`` setting in the
2609 "csv-table" directive.
2610 - Added ``stub-columns`` option to "csv-table" and "list-table"
2613 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
2614 mappings by Martijn Pieters.
2616 * docutils/readers/standalone.py:
2618 - Added ``section_subtitles`` setting to activate or deactivate the
2619 ``SectSubTitle`` transform.
2621 * docutils/transforms/frontmatter.py:
2623 - Added SectSubTitle transform to promote titles of lone
2624 subsections to subtitles.
2626 * docutils/transforms/references.py:
2628 - Fixed mislocated internal targets bug, by propagating internal
2629 targets to the next node, making use of the newly added support
2630 for multiple names and IDs.
2631 - Fixed duplicate footnote label bug.
2632 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
2635 * docutils/writers/html4css1.py:
2637 - Fixed unencoded stylesheet reference bug (characters like "&" in
2638 stylesheet references).
2639 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
2641 - Added support for multiple IDs per node by creating empty ``span``
2643 - Added the ``field_name_limit`` & ``option_limit`` settings &
2645 - Added support for table stub columns.
2646 - Added support for the ``align`` attribute on ``figure`` elements.
2647 - Added the ``cloak_email_addresses`` setting & support.
2648 - Added ``html_prolog``, ``html_head``, ``html_body``,
2649 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
2650 ``docutils.core.publish_parts``.
2651 - Added support for section subtitles.
2653 * docutils/writers/latex2e.py:
2655 - Fixed tables starting with more than one multirow cell.
2656 - Improved ``--use-latex-docinfo`` so that organization/contact/address
2657 fields are lumped with the last author field and appear on the
2659 - Made sure the titlepage is always shown with ``--use-latex-docinfo``,
2660 even if the document has no title.
2661 - Made sure that latex doesn't fill in today's date if no date field
2663 - Added support for section subtitles.
2665 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
2666 (under development).
2668 * docutils/writers/null.py: Added to project; a do-nothing Writer.
2670 * docs/api/publisher.txt:
2672 - Added "``publish_parts`` Details" section.
2674 * docutils/dev/repository.txt: Added to project; information about the
2675 Docutils Subversion repository.
2677 * docs/ref/docutils.dtd:
2679 - Added a ``stub`` attribute to the ``colspec`` element via the
2680 ``tbl.colspec.att`` parameter entity.
2681 - Allowed topic elements within sidebars
2682 - Added an ``align`` attribute to the ``figure`` element.
2684 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
2688 Release 0.3.7 (2004-12-24)
2689 ==========================
2691 * docutils/frontend.py:
2693 - Added options: ``--input-encoding-error-handler``,
2694 ``--record-dependencies``, ``--leave-footnote-reference-space``,
2695 ``--strict-visitor``.
2696 - Added command-line and config file support for "overrides" setting
2701 - Added support for input encoding error handler.
2703 * docutils/nodes.py:
2705 - Added dispatch_visit and dispatch_departure methods to
2706 NodeVisitor; useful as a hook for Visitors.
2707 - Changed structure of ``line_block``; added ``line``.
2708 - Added ``compound`` node class.
2709 - Added a mechanism for Visitors to transitionally ignore new node
2712 * docutils/utils.py:
2714 - Moved ``escape2null`` and ``unescape`` functions from
2715 docutils/parsers/rst/states.py.
2717 * docutils/parsers/rst/roles.py:
2720 - Changed role function API: the "text" parameter now takes
2721 null-escaped interpreted text content.
2723 * docutils/parsers/rst/states.py:
2725 - Fixed bug where a "role" directive in a nested parse would crash
2726 the parser; the state machine's "language" attribute was not being
2728 - Added support for line block syntax.
2729 - Fixed directive parsing bug: argument-less directives didn't
2730 notice that arguments were present.
2731 - Removed error checking for transitions.
2732 - Added support for multiple classifiers in definition list items.
2733 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
2734 - Changed role function API: the "text" parameter now takes
2735 null-escaped interpreted text content.
2736 - Empty sections and documents are allowed now.
2738 * docutils/parsers/rst/directives/__init__.py:
2740 - Added ``encoding`` directive option conversion function.
2741 - Allow multiple class names in class_option conversion function.
2743 * docutils/parsers/rst/directives/body.py:
2745 - Converted the line-block directive to use the new structure.
2746 - Extracted the old line-block functionality to the ``block``
2747 function (still used).
2748 - Added ``compound`` directive (thanks to Lea Wiemann).
2750 * docutils/parsers/rst/directives/misc.py:
2752 - Added "encoding" option to "include" and "raw" directives.
2753 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
2754 - Allow multiple class names in the "class" directive.
2756 * docutils/parsers/rst/directives/parts.py:
2758 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
2759 options. Thanks to Lele Gaifax.
2761 * docutils/parsers/rst/directives/tables.py:
2763 - Added "encoding" directive to "csv-table" directive.
2764 - Added workaround for lack of Unicode support in csv.py, for
2765 non-ASCII CSV input.
2767 * docutils/transforms/misc.py:
2769 - Fixed bug when multiple "class" directives are applied to a single
2771 - Enabled multiple format names for "raw" directive.
2773 * docutils/transforms/references.py:
2775 - Added support for trimming whitespace from beside substitution
2778 * docutils/transforms/universal.py:
2780 - FinalChecks now checks for illegal transitions and moves
2781 transitions between sections.
2783 * docutils/writers/html4css1.py:
2785 - HTMLTranslator.encode now converts U+00A0 to " ".
2786 - "stylesheet" and "stylesheet_path" settings are now mutually
2788 - Added support for the new line_block/line structure.
2789 - ``--footnote-references`` now overrides
2790 ``--trim-footnote-reference-space``, if applicable.
2791 - Added support for ``compound`` elements.
2792 - Enabled multiple format names for "raw" directive.
2793 - ``<p>`` tags of a paragraph which is the only visible child of the
2794 document node are no longer stripped.
2795 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
2796 new method ``should_be_compact_paragraph()``.
2797 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
2799 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
2800 the output if they have their ``class`` attribute set.
2801 - The whole document is now surrounded by a ``<div
2802 class="document">`` element.
2803 - Body-level images are now wrapped by their own ``<div>`` elements,
2804 with image classes copied to the wrapper, and for images which
2805 have the ``:align:`` option set, the surrounding ``<div>`` now
2806 receives a class attribute (like ``class="align-left"``).
2808 * docutils/writers/latex2e.py:
2810 - no newline after depart_term.
2811 - Added translations for some Unicode quotes.
2812 - Added option "font-encoding", made package AE the default.
2813 - `stylesheet`_ and `stylesheet_path`_ settings are now mutually
2815 - ``--footnote-references`` now overrides
2816 ``--trim-footnote-reference-space``, if applicable.
2817 - The footnote label style now matches the footnote reference style
2818 ("brackets" or "superscript").
2819 - Added support for ``compound`` elements.
2820 - Enabled multiple format names for "raw" directive.
2822 * docs/ref/docutils.dtd:
2824 - Changed structure of the ``line_block`` element; added ``line``.
2825 - Added ``compound`` element.
2826 - Added "ltrim" and "rtrim" attributes to
2827 ``substitution_definition`` element.
2828 - Enabled multiple format names for ``raw`` element.
2829 - Enabled multiple classifiers in ``definition_list_item`` elements.
2831 * docs/ref/rst/directives.txt
2833 - Marked "line-block" as deprecated.
2834 - "Class" directive now allows multiple class names.
2835 - Added "Rationale for Class Attribute Value Conversion".
2836 - Added warning about "raw" overuse/abuse.
2838 * docs/ref/rst/restructuredtext.txt:
2840 - Added syntax for line blocks.
2841 - Definition list items may have multiple classifiers.
2843 * docs/ref/rst/roles.txt:
2847 * tools/stylesheets/default.css:
2849 - Added support for the new line_block structure.
2850 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
2853 Release 0.3.5 (2004-07-29)
2854 ==========================
2858 * _`Documentation cleanup/reorganization`.
2860 - Created new subdirectories of docs/:
2862 * ``docs/user/``: introductory/tutorial material for end-users
2863 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
2864 * ``docs/api/``: API reference material for client-developers
2865 * ``docs/ref/``: reference material for all groups
2866 * ``docs/howto/``: for component-developers and core-developers
2867 * ``docs/peps/``: Python Enhancement Proposals
2869 - Moved ``docs/*`` to ``docs/user/``.
2870 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
2871 ``spec/`` to ``docs/dev``.
2872 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
2873 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
2874 - Moved ``alternatives.txt``, and ``problems.txt`` from
2875 ``spec/rst/`` to ``docs/dev/rst/``.
2876 - Moved ``reStructuredText.txt``, ``directives.txt``,
2877 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
2878 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
2879 ``roles.txt``, ``reStructuredText.txt`` to
2880 ``restructuredtext.txt``.
2881 - Moved ``spec/howto/`` to ``docs/howto``.
2883 In order to keep the CVS history of moved files, we supplied
2884 SourceForge with a script for modifying the Docutils CVS repository.
2886 After running the cleanup script:
2888 - Added ``docs/index.txt``.
2889 - Added a ``.htaccess`` file to the ``web`` module, containing
2890 redirects for all old paths to new paths. They'll preserve
2891 fragments (the "#name" part of a URL), and won't clutter up the
2892 file system, and will correct the URL in the user's browser.
2893 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
2894 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
2895 the "To Do" list itself in ``docs/dev/todo.txt``.
2896 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
2897 section of ``docs/dev/todo.txt``.
2898 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
2899 - Added "How To Report Bugs" to ``BUGS.txt``.
2900 - Went through all the sources and docs (including under web/) and
2901 updated links. Mostly done by Lea Wiemann; thanks Lea!
2902 (Still need to update links in the sandboxes.)
2906 * BUGS.txt: Added to project.
2908 * THANKS.txt: Added to project.
2910 * docutils/__init__.py:
2912 - 0.3.4: Post-release.
2916 - Added special error handling & advice for UnicodeEncodeError.
2917 - Refactored Publisher.publish (simplified exception handling &
2918 extracted debug dumps).
2919 - Renamed "enable_exit" parameter of convenience functions to
2920 "enable_exit_status".
2921 - Enabled traceback (exception propagation) by default in
2922 programmatic convenience functions.
2923 - Now publish_file and publish_cmdline convenience functions return
2924 the encoded string results in addition to their regular I/O.
2925 - Extracted common code from publish_file, publish_string, and
2926 publish_parts, into new publish_programmatically. Extracted
2927 settings code to ``Publisher.process_programmatic_settings``.
2928 - In Publisher.publish, disabled ``settings_overrides`` when
2929 ``settings`` is supplied; redundant.
2931 * docutils/frontend.py:
2933 - Added help text for ``--output-encoding-error-handler`` and
2934 ``--error-encoding-error-handler``.
2935 - Renamed ``--exit`` to ``--exit-status``.
2936 - Simplified default-setting code.
2938 * docutils/parsers/rst/__init__.py:
2940 - Added ``--pep-base-url`` and ``--rfc-base-url`` options.
2942 * docutils/parsers/rst/states.py:
2944 - Made URI recognition more aggressive and intelligent.
2946 * docutils/parsers/rst/directives/__init__.py:
2948 - Added several directive option conversion functions.
2950 * docutils/parsers/rst/directives/body.py:
2952 - Moved "table" directive to tables.py.
2954 * docutils/parsers/rst/directives/tables.py: Table-related directives,
2957 * docutils/writers/latex2e.py:
2959 - Added ``--table-style=(standard|booktabs|nolines)``
2960 - figures get "here" option (LaTeX per default puts them at bottom),
2961 and figure content is centered.
2962 - Rowspan support for tables.
2963 - Fix: admonition titles before first section.
2964 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
2965 - Replave ``_`` in literal by an underlined blank, because it has the correct
2967 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
2968 - A few unicode replacements, if output_encoding != utf
2969 - Add `graphicx_option`_ setting.
2970 - Indent literal-blocks.
2971 - Fix: omit ``\maketitle`` when there is no document title.
2973 * docs/index.txt: "Docutils Project Documentation Overview", added to
2976 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
2977 Tool", added to project.
2979 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
2981 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
2983 * docs/dev/policies.txt: Added to project (extracted from
2984 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
2986 * docs/dev/release.txt: Added to project (extracted from
2987 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
2989 * docs/dev/testing.txt: Added to project.
2991 * docs/dev/website.txt: Added to project (extracted from
2992 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
2994 * docs/ref/rst/directives.txt:
2996 - Added directives: "table", "csv-table".
2998 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
2999 added to project. 1 page for syntax, and a 1 page reference for
3000 directives and roles. Source text to be used as-is; not meant to be
3003 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
3004 with a change of title.
3006 * test/functional/, contents, and test/test_functional.py: Added to
3009 * tools/buildhtml.py: Fixed bug with config file handling.
3011 * tools/html.py: Removed from project (duplicate of rst2html.py).
3013 * tools/pep2html.py: Removed from project (duplicate of Python's
3014 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
3015 Docutils-related PEPs in docs/peps/).
3017 * tools/rst2pseudoxml.py: Renamed from publish.py.
3019 * tools/rst2xml.py: Renamed from docutils-xml.py.
3021 * tools/test.txt: Removed from project; moved to
3022 docs/user/rst/demo.txt.
3024 * setup.py: Now also installs ``rst2latex.py``.
3027 Release 0.3.3 (2004-05-09)
3028 ==========================
3030 * docutils/__init__.py:
3032 - 0.3.1: Reorganized config file format (multiple sections); see
3034 - Added unknown_reference_resolvers attribute to TransformSpec.
3035 - 0.3.2: Interpreted text reorganization.
3040 - Catch system messages to stop tracebacks from parsing errors.
3041 - Catch exceptions during processing report & exit without
3042 tracebacks, except when ``--traceback`` used.
3043 - Reordered components for OptionParser; application comes last.
3044 - Added "config_section" parameter to several methods and functions,
3045 allowing front ends to easily specify their config file sections.
3046 - Added publish_parts convenience function to allow access to individual
3047 parts of a document.
3049 * docutils/examples.py: Added to project; practical examples of
3050 Docutils client code, to be used as-is or as models for variations.
3052 * docutils/frontend.py:
3054 - Added "traceback" setting.
3055 - Implemented support for config file reorganization:
3056 ``standard_config_files`` moved from ``ConfigParser`` to
3057 ``OptionParser``; added
3058 ``OptionParser.get_config_file_settings()`` and
3059 ``.get_standard_config_settings()``; support for old "[options]"
3060 section (with deprecation warning) and mapping from old to new
3062 - Reimplemented setting validation.
3063 - Enabled flexible boolean values: yes/no, true/false, on/off.
3064 - Added ``Values``, a subclass of ``optparse.Values``, with support
3065 for list setting attributes.
3066 - Added support for new ``DOCUTILSCONFIG`` environment variable;
3067 thanks to Beni Cherniavsky.
3068 - Added ``--no-section-numbering`` option.
3072 - Catch IOErrors when opening source & destination files, report &
3073 exit without tracebacks. Added ``handle_io_errors`` parameter to
3074 ``FileInput`` & ``FileOutput`` to enable caller error handling.
3076 * docutils/nodes.py:
3078 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
3079 method definitions (via ``exec``) to dynamic assignments (via
3080 ``setattr``); thanks to Roman Suzi.
3081 - Encapsulated visitor dynamic assignments in a function; thanks to
3083 - Added indirect_reference_name attribute to the Targetable
3084 class. This attribute holds the whitespace_normalized_name
3085 (contains mixed case) of a target.
3087 * docutils/statemachine.py:
3089 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
3090 - Added ``StringList.get_2D_block``.
3092 * docutils/utils.py:
3094 - Added "level" attribute to SystemMessage exceptions.
3096 * docutils/languages/af.py: Added to project; Afrikaans mappings by
3099 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
3102 * docutils/languages/eo.py: Added to project; Esperanto mappings by
3103 Marcelo Huerta San Martin.
3105 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
3106 mappings by Lalo Martins.
3108 * docutils/languages/ru.py: Added to project; Russian mappings by
3111 * docutils/parsers/rst/roles.py: Added to project. Contains
3112 interpreted text role functions, a registry for interpreted text
3113 roles, and an API for adding to and retrieving from the registry.
3114 Contributed by Edward Loper.
3116 * docutils/parsers/rst/states.py:
3118 - Updated ``RSTState.nested_parse`` for "include" in table cells.
3119 - Allowed true em-dash character and "``---``" as block quote
3121 - Added support for <angle-bracketed> complex option arguments
3123 - Fixed handling of backslashes in substitution definitions.
3124 - Fixed off-by-1 error with extra whitespace after substitution
3125 definition directive.
3126 - Added inline markup parsing to field lists' field names.
3127 - Added support for quoted (and unindented) literal blocks.
3128 Driven in part by a bribe from Frank Siebenlist (thanks!).
3129 - Parser now handles escapes in URIs correctly.
3130 - Made embedded-URIs' reference text omittable. Idea from Beni
3132 - Refactored explicit target processing code.
3133 - Added name attribute to references containing the reference name only
3134 through whitespace_normalize_name (no case changes).
3135 - parse_target no longer returns the refname after going through
3136 normalize_name. This is now handled in make_target.
3137 - Fixed bug relating to role-less interpreted text in non-English
3139 - Reorganized interpreted text processing; moved code into the new
3140 roles.py module. Contributed by Edward Loper.
3141 - Refactored ``Body.parse_directive`` into ``run_directive`` and
3142 ``parse_directive_block``.
3144 * docutils/parsers/rst/tableparser.py:
3146 - Reworked for ``StringList``, to support "include" directives in
3149 * docutils/parsers/rst/directives/__init__.py:
3151 - Renamed ``unchanged()`` directive option conversion function to
3152 ``unchanged_required``, and added a new ``unchanged``.
3153 - Catch unicode value too high error; fixes bug 781766.
3154 - Beefed up directive error reporting.
3156 * docutils/parsers/rst/directives/body.py:
3158 - Added basic "table" directive.
3160 * docutils/parsers/rst/directives/images.py:
3162 - Added "target" option to "image" directive.
3163 - Added name attribute to references containing the reference name only
3164 through whitespace_normalize_name (no case changes).
3166 * docutils/parsers/rst/directives/misc.py:
3168 - Isolated the import of the ``urllib2`` module; was causing
3169 problems on SourceForge (``libssl.so.2`` unavailable?).
3170 - Added the "role" directive for declaring custom interpreted text
3173 * docutils/parsers/rst/directives/parts.py:
3175 - The "contents" directive does more work up-front, creating the
3176 "topic" and "title", and leaving the "pending" node for the
3177 transform. Allows earlier reference resolution; fixes subtle bug.
3179 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
3180 mappings by Jannie Hofmeyr.
3182 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
3183 mappings by Marek Blaha.
3185 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
3186 mappings by Marcelo Huerta San Martin.
3188 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
3189 Portuguese mappings by Lalo Martins.
3191 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
3192 mappings by Roman Suzi.
3194 * docutils/transforms/parts.py:
3196 - The "contents" directive does more work up-front, creating the
3197 "topic" and "title", and leaving the "pending" node for the
3198 transform. Allows earlier reference resolution; fixes subtle bug.
3199 - Added support for disabling of section numbering.
3201 * docutils/transforms/references.py:
3203 - Verifying that external targets are truly targets and not indirect
3204 references. This is because we are now adding a "name" attribute to
3205 references in addition to targets. Note sure if this is correct!
3206 - Added code to hook into the unknown_reference_resolvers list for a
3207 transformer in resolve_indirect_target. This allows the
3208 unknown_reference_resolvers to keep around indirect targets which
3209 docutils doesn't know about.
3210 - Added specific error message for duplicate targets.
3212 * docutils/transforms/universal.py:
3214 - Added FilterMessages transform (removes system messages below the
3215 verbosity threshold).
3216 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
3217 to FinalCheckVisitor for application-specific handling of
3218 unresolvable references.
3219 - Added specific error message for duplicate targets.
3221 * docutils/writers/__init__.py:
3223 - Added assemble_parts method to the Writer class to allow for
3224 access to a documents individual parts.
3225 - Documented & set default for ``Writer.output`` attribute.
3227 * docutils/writers/html4css1.py:
3229 - Fixed unicode handling of attribute values (bug 760673).
3230 - Prevent duplication of "class" attribute values (bug report from
3232 - Improved table grid/border handling (prompted by report from Bob
3234 - Added support for table titles.
3235 - Added "<title />" for untitled docs, for XHTML conformance; thanks
3237 - Added functionality to keep track of individual parts of a document
3238 and store them in a dictionary as the "parts" attribute of the writer.
3239 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
3240 - Added proper support for the "scale" attribute of the "image"
3241 element. Contributed by Brent Cook.
3242 - Added ``--initial-header-level`` option.
3243 - Fixed bug: the body_pre_docinfo segment depended on there being a
3244 docinfo; if no docinfo, the document title was incorporated into
3245 the body segment. Adversely affected the publish_parts interface.
3247 * docutils/writers/latex2e.py:
3249 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
3250 about a missing file.
3251 - Added options and support: ``--compound-enumerators``,
3252 ``--section-prefix-for-enumerators``, and
3253 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
3255 - Added option ``--use-verbatim-when-possible``, to avoid
3256 problematic characters (eg, '~' in italian) in literal blocks.
3257 - It's now possible to use four section levels in the `book` and
3258 `report` LaTeX document classes. The default `article` class still has
3261 * docs/config.txt: "Docutils Configuration Files", added to project.
3262 Moved config file entry descriptions from tools.txt.
3266 - Moved config file entry descriptions to config.txt.
3268 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
3271 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
3272 Text Roles", added to project.
3274 * spec/rst/reStructuredText.txt:
3276 - Added description of support for <angle-bracketed> complex option
3277 arguments to option lists.
3278 - Added subsections for indented and quoted literal blocks.
3280 * test: Continually adding & updating tests.
3282 - Added test/test_settings.py & test/data/config_*.txt support
3284 - Added test/test_writers/test_htmlfragment.py.
3286 * test/DocutilsTestSupport.py:
3288 - Refactored LaTeX publisher test suite/case class names to make
3289 testing other writers easier.
3290 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
3291 to test the processing of HTML fragments which use the new
3292 publish_parts convenience function.
3294 * tools/buildhtml.py:
3296 - Added support for the ``--prune`` option.
3297 - Removed dependency on pep2html.py; plaintext PEPs no longer
3300 * tools/docutils.conf:
3302 - Updated for configuration file reorganization.
3304 * tools/rst2html.py:
3306 - copied from tools/html.py
3310 - added a 'scripts' section to configuration
3311 - added 'tools/rst2html.py' to the scripts section
3314 Release 0.3 (2003-06-24)
3315 ========================
3319 * Renamed "attribute" to "option" for directives/extensions.
3321 * Renamed transform method "transform" to "apply".
3323 * Renamed "options" to "settings" for runtime settings (as set by
3324 command-line options). Sometimes "option" (singular) became
3325 "settings" (plural). Some variations below:
3327 - document.options -> document.settings (stored in other objects as
3329 - option_spec -> settings_spec (not directives though)
3330 - OptionSpec -> SettingsSpec
3331 - cmdline_options -> settings_spec
3332 - relative_path_options -> relative_path_settings
3333 - option_default_overrides -> settings_default_overrides
3334 - Publisher.set_options -> Publisher.get_settings
3338 * COPYING.txt: Added "Public Domain Dedication".
3340 * FAQ.txt: Frequently asked questions, added to project.
3344 - Updated with PyPI Trove classifiers.
3345 - Conditional installation of third-party modules.
3347 * docutils/__init__.py:
3349 - Bumped version to 0.2.1 to reflect changes to I/O classes.
3350 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
3351 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
3352 - Bumped version to 0.2.3 because of the new ``--embed-stylesheet``
3353 option and its effect on the PEP template & writer.
3354 - Bumped version to 0.2.4 due to changes to the PEP template &
3356 - Bumped version to 0.2.5 to reflect changes to Reporter output.
3357 - Added ``TransformSpec`` class for new transform system.
3358 - Bumped version to 0.2.6 for API changes (renaming).
3359 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
3360 convenience functions.
3361 - Added ``Component.component_type`` attribute.
3362 - Bumped version to 0.2.8 because of the internal parser switch from
3363 plain lists to the docutils.statemachine.StringList objects.
3364 - Bumped version to 0.2.9 because of the frontend.py API changes.
3365 - Bumped version to 0.2.10 due to changes to the project layout
3366 (third-party modules removed from the "docutils" package), and
3367 signature changes in ``io.Input``/``io.Output``.
3368 - Changed version to 0.3.0 for release.
3372 - Made ``publish()`` a bit more convenient.
3373 - Generalized ``Publisher.set_io``.
3374 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
3375 parameters; improved its docstring.
3376 - Added ``publish_file()`` and ``publish_string()``.
3377 - Factored ``Publisher.set_source()`` and ``.set_destination()``
3379 - Added support for ``--dump-pseudo-xml``, ``--dump-settings``, and
3380 ``--dump-transforms`` hidden options.
3381 - Added ``Publisher.apply_transforms()`` method.
3382 - Added ``Publisher.set_components()`` method; support for
3383 ``publish_*()`` conveninece functions.
3384 - Moved config file processing to docutils/frontend.py.
3385 - Added support for exit status ("exit_level" setting &
3386 ``enable_exit`` parameter for Publisher.publish() and convenience
3389 * docutils/frontend.py:
3391 - Check for & exit on identical source & destination paths.
3392 - Fixed bug with absolute paths & ``--config``.
3393 - Set non-command-line defaults in ``OptionParser.__init__()``:
3394 ``_source`` & ``_destination``.
3395 - Distributed ``relative_path_settings`` to components; updated
3396 ``OptionParser.populate_from_components()`` to combine it all.
3397 - Require list of keys in ``make_paths_absolute`` (was implicit in
3398 global ``relative_path_settings``).
3399 - Added ``--expose-internal-attribute``, ``--dump-pseudo-xml``,
3400 ``--dump-settings``, and ``--dump-transforms`` hidden options.
3401 - Removed nasty internals-fiddling ``ConfigParser.get_section``
3402 code, replaced with correct code.
3403 - Added validation functionality for config files.
3404 - Added ``--error-encoding`` option/setting, "_disable_config"
3406 - Added encoding validation; updated ``--input-encoding`` and
3407 ``--output-encoding``; added ``--error-encoding-error-handler`` and
3408 ``--output-encoding-error-handler``.
3409 - Moved config file processing from docutils/core.py.
3410 - Updated ``OptionParser.populate_from_components`` to handle new
3411 ``SettingsSpec.settings_defaults`` dict.
3412 - Added support for "-" => stdin/stdout.
3413 - Added "exit_level" setting (``--exit`` option).
3417 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
3418 - Added automatic closing to ``FileInput`` and ``FileOutput``.
3419 - Delayed opening of ``FileOutput`` file until ``write()`` called.
3420 - ``FileOutput.write()`` now returns the encoded output string.
3421 - Try to get path/stream name automatically in ``FileInput`` &
3423 - Added defaults for source & destination paths.
3424 - Allow for Unicode I/O with an explicit "unicode" encoding.
3425 - Added ``Output.encode()``.
3426 - Removed dependency on runtime settings; pass encoding directly.
3427 - Recognize Unicode strings in ``Input.decode()``.
3428 - Added support for output encoding error handlers.
3430 * docutils/nodes.py:
3432 - Added "Invisible" element category class.
3433 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
3434 modification during a traversal.
3435 - Added element classes: ``line_block``, ``generated``, ``address``,
3436 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
3437 ``superscript``, ``subscript``, ``inline``
3438 - Added support for lists of nodes to ``Element.insert()``.
3439 - Fixed parent linking in ``Element.replace()``.
3440 - Added new abstract superclass ``FixedTextElement``; adds
3441 "xml:space" attribute.
3442 - Added support for "line" attribute of ``system_message`` nodes.
3443 - Added support for the observer pattern from ``utils.Reporter``.
3444 Added ``parse_messages`` and ``transform_messages`` attributes to
3445 ``document``, removed ``messages``. Added ``note_parse_message``
3446 and ``note_transform_message`` methods.
3447 - Added support for improved diagnostics:
3449 - Added "document", "source", and "line" internal attributes to
3450 ``Node``, set by ``Node.setup_child()``.
3451 - Converted variations on ``node.parent = self`` to
3452 ``self.setup_child(node)``.
3453 - Added ``document.current_source`` & ``.current_line``
3454 attributes, and ``.note_source`` observer method.
3455 - Changed "system_message" output to GNU-Tools format.
3457 - Added a "rawsource" attribute to the ``Text`` class, for text
3458 before backslash-escape resolution.
3459 - Support for new transform system.
3460 - Reworked ``pending`` element.
3461 - Fixed XML DOM bug (SF #660611).
3462 - Removed the ``interpeted`` element class and added
3463 ``title_reference``, ``abbreviation``, ``acronym``.
3464 - Made substitutions case-sensitive-but-forgiving; moved some code
3466 - Fixed Unicode bug on element attributes (report: William Dode).
3468 * docutils/optik.py: Removed from project; replaced with
3469 extras/optparse.py and extras/textwrap.py. These will be installed
3470 only if they're not already present in the Python installation.
3472 * docutils/roman.py: Moved to extras/roman.py; this will be installed
3473 only if it's not already present in the Python installation.
3475 * docutils/statemachine.py:
3477 - Factored out ``State.add_initial_transitions()`` so it can be
3479 - Converted whitespace-specific "blank" and "indent" transitions
3480 from special-case code to ordinary transitions: removed
3481 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
3482 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
3483 ``ws_initial_transitions`` attributes.
3484 - Removed ``State.match_transition()`` after merging it into
3486 - Added ``StateCorrection`` exception.
3487 - Added support for ``StateCorrection`` in ``StateMachine.run()``
3488 (moved ``TransitionCorrection`` support there too.)
3489 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
3490 ``EOFError`` instead of ``IndexError``.
3491 - Added ``State.no_match`` method.
3492 - Added support for the Observer pattern, triggered by input line
3494 - Added ``strip_top`` parameter to
3495 ``StateMachineWS.get_first_known_indented``.
3496 - Made ``context`` a parameter to ``StateMachine.run()``.
3497 - Added ``ViewList`` & ``StringList`` classes;
3498 ``extract_indented()`` becomes ``StringList.get_indented()``.
3499 - Added ``StateMachine.insert_input()``.
3500 - Fixed ViewList slice handling for Python 2.3. Patch from (and
3501 thanks to) Fred Drake.
3503 * docutils/utils.py:
3505 - Added a ``source`` attribute to Reporter instances and
3506 ``system_message`` elements.
3507 - Added an observer pattern to ``utils.Reporter`` to keep track of
3509 - Fixed bugs in ``relative_path()``.
3510 - Added support for improved diagnostics.
3511 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
3512 - Added support for encoding Reporter stderr output, and encoding
3514 - Reporter keeps track of the highest level system message yet
3517 * docutils/languages: Fixed bibliographic field language lookups.
3519 * docutils/languages/es.py: Added to project; Spanish mappings by
3520 Marcelo Huerta San Martin.
3522 * docutils/languages/fr.py: Added to project; French mappings by
3525 * docutils/languages/it.py: Added to project; Italian mappings by
3528 * docutils/languages/sk.py: Added to project; Slovak mappings by
3531 * docutils/parser/__init__.py:
3533 - Added ``Parser.finish_parse()`` method.
3535 * docutils/parser/rst/__init__.py:
3537 - Added options: ``--pep-references``, ``--rfc-references``,
3538 ``--tab-width``, ``--trim-footnote-reference-space``.
3540 * docutils/parsers/rst/states.py:
3542 - Changed "title under/overline too short" system messages from INFO
3543 to WARNING, and fixed its insertion location.
3544 - Fixed enumerated list item parsing to allow paragraphs & section
3545 titles to begin with enumerators.
3546 - Converted system messages to use the new "line" attribute.
3547 - Fixed a substitution reference edge case.
3548 - Added support for ``--pep-references`` and ``--rfc-references``
3549 options; reworked ``Inliner`` code to make customization easier.
3550 - Removed field argument parsing.
3551 - Added support for short section title over/underlines.
3552 - Fixed "simple reference name" regexp to ignore text like
3553 "object.__method__"; not an anonymous reference.
3554 - Added support for improved diagnostics.
3555 - Reworked directive API, based on Dethe Elza's contribution. Added
3556 ``Body.parse_directive()``, ``.parse_directive_options()``,
3557 ``.parse_directive_arguments()`` methods.
3558 - Added ``ExtensionOptions`` class, to parse directive options
3559 without parsing field bodies. Factored
3560 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
3561 ``ExtensionOptions``.
3562 - Improved definition list term/classifier parsing.
3563 - Added warnings for unknown directives.
3564 - Renamed ``Stuff`` to ``Struct``.
3565 - Now flagged as errors: transitions at the beginning or end of
3566 sections, empty sections (except title), and empty documents.
3567 - Updated for ``statemachine.StringList``.
3568 - Enabled recognition of schemeless email addresses in targets.
3569 - Added support for embedded URIs in hyperlink references.
3570 - Added backslash-escapes to inline markup end-string suffix.
3571 - Added support for correct interpreted text processing.
3572 - Fixed nested title parsing (topic, sidebar directives).
3573 - Added special processing of backslash-escaped whitespace (idea
3574 from David Abrahams).
3575 - Made substitutions case-sensitive-but-forgiving; moved some code
3576 to ``docutils.nodes``.
3577 - Added support for block quote attributions.
3578 - Added a kludge to work-around a conflict between the bubble-up
3579 parser strategy and short titles (<= 3 char-long over- &
3580 underlines). Fixes SF bug #738803 "infinite loop with multiple
3581 titles" submitted by Jason Diamond.
3582 - Added explicit interpreted text roles for standard inline markup:
3583 "emphasis", "strong", "literal".
3584 - Implemented "superscript" and "subscript" interpreted text roles.
3585 - Added initial support for "abbreviation" and "acronym" roles;
3587 - Added support for ``--trim-footnote-reference-space`` option.
3588 - Optional space before colons in directives & hyperlink targets.
3590 * docutils/parsers/rst/tableparser.py:
3592 - Fixed a bug that was producing unwanted empty rows in "simple"
3594 - Detect bad column spans in "simple" tables.
3596 * docutils/parsers/rst/directives: Updated all directive functions to
3599 * docutils/parsers/rst/directives/__init__.py:
3601 - Added ``flag()``, ``unchanged()``, ``path()``,
3602 ``nonnegative_int()``, ``choice()``, and ``class_option()``
3603 directive option helper functions.
3604 - Added warnings for unknown directives.
3605 - Return ``None`` for missing directives.
3606 - Added ``register_directive()``, thanks to William Dode and Paul
3609 * docutils/parsers/rst/directives/admonitions.py:
3611 - Added "admonition" directive.
3613 * docutils/parsers/rst/directives/body.py: Added to project. Contains
3614 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
3615 "parsed-literal", "rubric", "epigraph", "highlights" and
3616 "pull-quote" directives.
3618 * docutils/parsers/rst/directives/images.py:
3620 - Added an "align" attribute to the "image" & "figure" directives
3621 (by Adam Chodorowski).
3622 - Added "class" option to "image", and "figclass" to "figure".
3624 * docutils/parsers/rst/directives/misc.py:
3626 - Added "include", "raw", and "replace" directives, courtesy of
3628 - Added "unicode" and "class" directives.
3630 * docutils/parsers/rst/directives/parts.py:
3632 - Added the "sectnum" directive; by Dmitry Jemerov.
3633 - Added "class" option to "contents" directive.
3635 * docutils/parsers/rst/directives/references.py: Added to project.
3636 Contains the "target-notes" directive.
3638 * docutils/parsers/rst/languages/__init__.py:
3640 - Return ``None`` from get_language() for missing language modules.
3642 * docutils/parsers/rst/languages/de.py: Added to project; German
3643 mappings by Engelbert Gruber.
3645 * docutils/parsers/rst/languages/en.py:
3647 - Added interpreted text roles mapping.
3649 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
3650 mappings by Marcelo Huerta San Martin.
3652 * docutils/parsers/rst/languages/fr.py: Added to project; French
3653 mappings by William Dode.
3655 * docutils/parsers/rst/languages/it.py: Added to project; Italian
3656 mappings by Nicola Larosa.
3658 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
3659 mappings by Miroslav Vasko.
3661 * docutils/readers/__init__.py:
3663 - Added support for the observer pattern from ``utils.Reporter``, in
3664 ``Reader.parse`` and ``Reader.transform``.
3665 - Removed ``Reader.transform()`` method.
3666 - Added default parameter values to ``Reader.__init__()`` to make
3667 instantiation easier.
3668 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
3670 * docutils/readers/pep.py:
3672 - Added the ``peps.TargetNotes`` transform to the Reader.
3673 - Removed PEP & RFC reference detection code; moved to
3674 parsers/rst/states.py as options (enabled here by default).
3675 - Added support for pre-acceptance PEPs (no PEP number yet).
3676 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
3679 * docutils/readers/python: Python Source Reader subpackage added to
3680 project, including preliminary versions of:
3683 - moduleparser.py: Parser for Python modules.
3685 * docutils/transforms/__init__.py:
3687 - Added ``Transformer`` class and completed transform reform.
3688 - Added unknown_reference_resolvers list for each transformer. This list holds
3689 the list of functions provided by each component of the transformer that
3690 help resolve references.
3692 * docutils/transforms/frontmatter.py:
3694 - Improved support for generic fields.
3695 - Fixed bibliographic field language lookups.
3697 * docutils/transforms/misc.py: Added to project. Miscellaneous
3700 * docutils/transforms/parts.py:
3702 - Moved the "id" attribute from TOC list items to the references
3703 (``Contents.build_contents()``).
3704 - Added the ``SectNum`` transform; by Dmitry Jemerov.
3705 - Added "class" attribute support to ``Contents``.
3707 * docutils/transforms/peps.py:
3709 - Added ``mask_email()`` function, updating to pep2html.py's
3711 - Linked "Content-Type: text/x-rst" to PEP 12.
3712 - Added the ``TargetNotes`` PEP-specific transform.
3713 - Added ``TargetNotes.cleanup_callback``.
3714 - Added title check to ``Headers``.
3716 * docutils/transforms/references.py:
3718 - Added the ``TargetNotes`` generic transform.
3719 - Split ``Hyperlinks`` into multiple transforms.
3720 - Fixed bug with multiply-indirect references (report: Bruce Smith).
3721 - Added check for circular indirect references.
3722 - Made substitutions case-sensitive-but-forgiving.
3724 * docutils/transforms/universal.py:
3726 - Added support for the ``--expose-internal-attributes`` option.
3727 - Removed ``Pending`` transform classes & data.
3729 * docutils/writers/__init__.py:
3731 - Removed ``Writer.transform()`` method.
3733 * docutils/writers/docutils-xml.py:
3735 - Added XML and doctype declarations.
3736 - Added ``--no-doctype`` and ``--no-xml-declaration`` options.
3738 * docutils/writers/html4css1.py:
3740 - "name" attributes only on these tags: a, applet, form, frame,
3742 - Added "name" attribute to <a> in section titles for Netscape 4
3743 support (bug report: Pearu Peterson).
3744 - Fixed targets (names) on footnote, citation, topic title,
3745 problematic, and system_message nodes (for Netscape 4).
3746 - Changed field names from "<td>" to "<th>".
3747 - Added "@" to "@" encoding to thwart address harvesters.
3748 - Improved the vertical whitespace optimization; ignore "invisible"
3749 nodes (targets, comments, etc.).
3750 - Improved inline literals with ``<span class="pre">`` around chunks
3751 of text and `` `` for runs of spaces.
3752 - Improved modularity of output; added ``self.body_pre_docinfo`` and
3753 ``self.docinfo`` segments.
3754 - Added support for "line_block", "address" elements.
3755 - Improved backlinks (footnotes & system_messages).
3756 - Improved system_message output.
3757 - Redefined ``--stylesheet`` as containing an invariant URL, used
3758 verbatim. Added ``--stylesheet-path``, interpreted w.r.t. the
3760 - Added ``--footnote-references`` option (superscript or brackets).
3761 - Added ``--compact-lists`` and ``--no-compact-lists`` options.
3762 - Added ``--embed-stylesheet`` and ``--link-stylesheet`` options;
3763 factored out ``HTMLTranslator.get_stylesheet_reference()``.
3764 - Improved field list rendering.
3765 - Added Docutils version to "generator" meta tag.
3766 - Fixed a bug with images; they must be inline, so wrapped in <p>.
3767 - Improved layout of <pre> HTML source.
3768 - Fixed attribute typo on <colspec>.
3769 - Refined XML prologue.
3770 - Support for no stylesheet.
3771 - Removed "interpreted" element support.
3772 - Added support for "title_reference", "sidebar", "attribution",
3773 "rubric", and generic "admonition" elements.
3774 - Added ``--attribution`` option.
3775 - Added support for "inline", "subscript", "superscript" elements.
3776 - Added initial support for "abbreviation" and "acronym";
3779 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
3783 - Double quotes in literal blocks (special treatment for de/ngerman).
3784 - Added ``--hyperlink-color`` option ('0' turns off coloring of links).
3785 - Added ``--attribution`` option.
3786 - Right align attributions.
3788 * docutils/writers/pep_html.py:
3790 - Parameterized output encoding in PEP template.
3791 - Reworked substitutions from ``locals()`` into ``subs`` dict.
3792 - Redefined ``--pep-stylesheet`` as containing an invariant URL, used
3793 verbatim. Added ``--pep-stylesheet-path``, interpreted w.r.t. the
3795 - Added an override on the ``--footnote-references`` option.
3796 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
3797 - Added Docutils version to "generator" meta tag.
3798 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
3802 - Added a "silent" setting for ``buildhtml.py``.
3803 - Added a "Getting Help" section.
3804 - Rearranged the structure.
3805 - Kept up to date, with new settings, command-line options etc.
3806 - Added section for ``rst2latex.py`` (Engelbert Gruber).
3807 - Converted settings table into a definition list.
3809 * docs/rst/quickstart.txt:
3811 - Added a table of contents.
3812 - Added feedback information.
3813 - Added mention of minimum section title underline lengths.
3814 - Removed the 4-character minimum for section title underlines.
3816 * docs/rst/quickref.html:
3818 - Added a "Getting Help" section.
3819 - Added a style to make section title backlinks more subtle.
3820 - Added mention of minimum section title underline lengths.
3821 - Removed the 4-character minimum for section title underlines.
3823 * extras: Directory added to project; contains third-party modules
3824 that Docutils depends on (optparse, textwrap, roman). These are
3825 only installed if they're not already present.
3827 * licenses: Directory added to project; contains copies of license
3828 files for non-public-domain files.
3832 - Changed the focus. It's about DTD elements: structural
3833 relationships, semantics, and external (public) attributes. Not
3834 about the element class library.
3835 - Moved some implementation-specific stuff into ``docutils.nodes``
3837 - Wrote descriptions of all common attributes and parameter
3838 entities. Filled in introductory material.
3839 - Working through the element descriptions: 55 down, 37 to go.
3840 - Removed "Representation of Horizontal Rules" to
3841 spec/rst/alternatives.txt.
3843 * spec/docutils.dtd:
3845 - Added "generated" inline element.
3846 - Added "line_block" body element.
3847 - Added "auto" attribute to "title".
3848 - Changed content models of "literal_block" and "doctest_block" to
3850 - Added ``%number;`` attribute type parameter entity.
3851 - Changed ``%structural.elements;`` to ``%section.elements``.
3852 - Updated attribute types; made more specific.
3853 - Added "address" bibliographic element.
3854 - Added "line" attribute to ``system_message`` element.
3855 - Removed "field_argument" element; "field_name" may contain
3856 multiple words and whitespace.
3857 - Changed public identifier to docutils.sf.net.
3858 - Removed "interpreted" element; added "title_reference",
3859 "abbreviation", "acronym".
3860 - Removed "refuri" attribute from "footnote_reference" and
3861 "citation_reference".
3862 - Added "sidebar", "rubric", "attribution", "admonition",
3863 "superscript", "subscript", and "inline" elements.
3865 * spec/pep-0256.txt: Converted to reStructuredText & updated.
3867 * spec/pep-0257.txt: Converted to reStructuredText & updated.
3869 * spec/pep-0258.txt: Converted to reStructuredText & updated.
3871 * spec/semantics.txt: Updated with text from a Doc-SIG response to
3874 * spec/transforms.txt: Added to project.
3876 * spec/howto: Added subdirectory, for developer how-to docs.
3878 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
3879 Elza, edited & extended by David Goodger.
3881 * spec/howto/i18n.txt: Docutils Internationalization. Added to
3884 * spec/rst/alternatives.txt:
3886 - Added "Doctree Representation of Transitions" from
3888 - Updated "Inline External Targets" & closed the debate.
3889 - Added ideas for interpreted text syntax extensions.
3890 - Added "Nested Inline Markup" section.
3892 * spec/rst/directives.txt:
3894 - Added directives: "topic", "sectnum", "target-notes",
3895 "line-block", "parsed-literal", "include", "replace", "sidebar",
3896 "admonition", "rubric", "epigraph", "highlights", "unicode" and
3898 - Formalized descriptions of directive details.
3899 - Added an "align" attribute to the "image" & "figure" directives
3900 (by Adam Chodorowski).
3901 - Added "class" options to "topic", "sidebar", "line-block",
3902 "parsed-literal", "contents", and "image"; and "figclass" to
3905 * spec/rst/interpreted.txt: Added to project. Descriptions of
3906 interpreted text roles.
3908 * spec/rst/introduction.txt:
3910 - Added pointers to material for new users.
3912 * spec/rst/reStructuredText.txt:
3914 - Disambiguated comments (just add a newline after the "::").
3915 - Updated enumerated list description; added a discussion of the
3916 second-line validity checking.
3917 - Updated directive description.
3918 - Added a note redirecting newbies to the user docs.
3919 - Expanded description of inline markup start-strings in non-markup
3921 - Removed field arguments and made field lists a generic construct.
3922 - Removed the 4-character minimum for section title underlines.
3923 - Clarified term/classifier delimiter & inline markup ambiguity
3925 - Added "Embedded URIs".
3926 - Updated "Interpreted Text" section.
3927 - Added "Character-Level Inline Markup" section.
3929 * test: Continually adding & updating tests.
3931 - Moved test/test_rst/ to test/test_parsers/test_rst/.
3932 - Moved test/test_pep/ to test/test_readers/test_pep/.
3933 - Added test/test_readers/test_python/.
3934 - Added test/test_writers/ (Engelbert Gruber).
3938 - Made the ``locale.setlocale()`` calls in front ends
3941 * tools/buildhtml.py:
3943 - Added ``--silent`` option.
3944 - Fixed bug with absolute paths & ``--config``.
3945 - Updated for new I/O classes.
3946 - Added some exception handling.
3947 - Separated publishers' setting defaults; prevents interference.
3948 - Updated for new ``publish_file()`` convenience function.
3950 * tools/pep-html-template:
3952 - Allow for ``--embed-stylesheet``.
3953 - Added Docutils version to "generator" meta tag.
3954 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
3955 - Conform to XHTML spec.
3957 * tools/pep2html.py:
3959 - Made ``argv`` a parameter to ``main()``.
3960 - Added support for "Content-Type:" header & arbitrary PEP formats.
3961 - Linked "Content-Type: text/plain" to PEP 9.
3962 - Files skipped (due to an error) are not pushed onto the server.
3963 - Updated for new I/O classes.
3964 - Added ``check_requirements()`` & ``pep_type_error()``.
3965 - Added some exception handling.
3966 - Updated for new ``publish_string()`` convenience function.
3967 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
3969 * tools/quicktest.py:
3971 - Added ``-V``/``--version`` option.
3973 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
3975 * tools/unicode2rstsubs.py: Added to project. Produces character
3976 entity files (reSructuredText substitutions) from the MathML master
3979 * tools/editors: Support code for editors, added to project. Contains
3980 ``emacs/restructuredtext.el``.
3982 * tools/stylesheets/default.css: Moved into the stylesheets directory.
3984 - Added style for chunks of inline literals.
3985 - Removed margin for first child of table cells.
3986 - Right-aligned field list names.
3987 - Support for auto-numbered section titles in TOCs.
3988 - Increased the size of inline literals (<tt>) in titles.
3989 - Restored the light gray background for inline literals.
3990 - Added support for "line_block" elements.
3991 - Added style for "address" elements.
3992 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
3993 - Improved field list rendering.
3994 - Vertical whitespace improvements.
3995 - Removed "a.target" style.
3997 * tools/stylesheets/pep.css:
3999 - Fixed nested section margins.
4000 - Other changes parallel those of ``../default.css``.
4003 Release 0.2 (2002-07-31)
4004 ========================
4008 - The word "component" was being used ambiguously. From now on,
4009 "component" will be used to mean "Docutils component", as in Reader,
4010 Writer, Parser, or Transform. Portions of documents (Table of
4011 Contents, sections, etc.) will be called "document parts".
4012 - Did a grand renaming: a lot of ``verylongnames`` became
4013 ``very_long_names``.
4014 - Cleaned up imports: no more relative package imports or
4015 comma-separated lists of top-level modules.
4016 - Added support for an option values object which carries default
4017 settings and overrides (from command-line options and library use).
4018 - Added internal Unicode support, and support for both input and
4020 - Added support for the ``docutils.io.IO`` class & subclasses.
4024 * docutils/__init__.py:
4026 - Added ``ApplicationError`` and ``DataError``, for use throughout
4028 - Added ``Component`` base class for Docutils components; implements
4029 the ``supports`` method.
4030 - Added ``__version__`` (thus, ``docutils.__version__``).
4034 - Removed many keyword parameters to ``Publisher.__init__()`` and
4035 ``publish()``; bundled into an option values object. Added
4036 "argv", "usage", "description", and "option_spec" parameters for
4037 command-line support.
4038 - Added ``Publisher.process_command_line()`` and ``.set_options()``
4040 - Reworked I/O model for ``docutils.io`` wrappers.
4041 - Updated ``Publisher.set_options()``; now returns option values
4043 - Added support for configuration files (/etc/docutils.conf,
4044 ./docutils.conf, ~/.docutils).
4045 - Added ``Publisher.setup_option_parser()``.
4046 - Added default usage message and description.
4048 * docutils/frontend.py: Added to project; support for front-end
4049 (command-line) scripts. Option specifications may be augmented by
4050 components. Requires Optik (http://optik.sourceforge.net/) for option
4051 processing (installed locally as docutils/optik.py).
4053 * docutils/io.py: Added to project; uniform API for a variety of input
4056 * docutils/nodes.py:
4058 - Added ``TreeCopyVisitor`` class.
4059 - Added a ``copy`` method to ``Node`` and subclasses.
4060 - Added a ``SkipDeparture`` exception for visitors.
4061 - Renamed ``TreePruningException`` from ``VisitorException``.
4062 - Added docstrings to ``TreePruningException``, subclasses, and
4064 - Improved docstrings.
4065 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
4066 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
4068 - Added ``decoration``, ``header``, and ``footer`` node classes, and
4069 ``PreDecorative`` mixin.
4070 - Reworked the name/id bookkeeping; to ``document``, removed
4071 ``explicit_targets`` and ``implicit_targets`` attributes, added
4072 ``nametypes`` attribute and ``set_name_id_map`` method.
4073 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
4075 - Added ``document.has_name()`` method.
4076 - Fixed DOM generation for list-attributes.
4077 - Added category class ``Labeled`` (used by footnotes & citations).
4078 - Added ``Element.set_class()`` method (sets "class" attribute).
4080 * docutils/optik.py: Added to project. Combined from the Optik
4081 package, with added option groups and other modifications. The use
4082 of this module is probably only temporary.
4084 * docutils/statemachine.py:
4086 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
4087 - Added underscores to improve many awkward names.
4088 - In ``string2lines()``, changed whitespace normalizing translation
4089 table to regexp; restores Python 2.0 compatibility with Unicode.
4091 * docutils/urischemes.py:
4093 - Filled in some descriptions.
4094 - Added "shttp" scheme.
4096 * docutils/utils.py:
4098 - Added ``clean_rcs_keywords`` function (moved from
4099 docutils/transforms/frontmatter.py
4100 ``DocInfo.filter_rcs_keywords``).
4101 - Added underscores to improve many awkward names.
4102 - Changed names of Reporter's thresholds:
4103 warning_level -> report_level; error_level -> halt_level.
4104 - Moved ``utils.id()`` to ``nodes.make_id()``.
4105 - Added ``relative_path(source, target)``.
4107 * docutils/languages/de.py: German mappings; added to project. Thanks
4108 to Gunnar Schwant for the translations.
4110 * docutils/languages/en.py: Added "Dedication" bibliographic field
4113 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
4116 * docutils/parsers/rst/states.py:
4118 - Added underscores to improve many awkward names.
4119 - Added RFC-2822 header support.
4120 - Extracted the inline parsing code from ``RSTState`` to a separate
4121 class, ``Inliner``, which will allow easy subclassing.
4122 - Made local bindings for ``memo`` container & often-used contents
4123 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
4124 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
4125 - Added ``MarkupMismatch`` exception; for late corrections.
4126 - Added ``-/:`` characters to inline markup's start string prefix,
4127 ``/`` to end string suffix.
4128 - Fixed a footnote bug.
4129 - Fixed a bug with literal blocks.
4130 - Applied patch from Simon Budig: simplified regexps with symbolic
4131 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
4132 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
4133 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
4134 - Allowed non-ASCII in "simple names" (directive names, field names,
4136 - Converted ``Inliner.patterns.initial`` to be dynamically built
4137 from parts with ``build_regexp()`` function.
4138 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
4139 - Updated docstrings.
4140 - Changed "table" to "grid_table"; added "simple_table" support.
4142 * docutils/parsers/rst/tableparser.py:
4144 - Changed ``TableParser`` to ``GridTableParser``.
4145 - Added ``SimpleTableParser``.
4146 - Refactored naming.
4148 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
4149 a fallback language for directive names.
4151 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
4152 directive to use a ``pending`` element, used only by HTML writers.
4154 * docutils/parsers/rst/directives/parts.py: Renamed from
4157 - Added "backlinks" attribute to "contents" directive.
4159 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
4160 project by Adam Chodorowski.
4162 * docutils/readers/__init__.py: Gave Readers more control over
4163 choosing and instantiating Parsers.
4165 * docutils/readers/pep.py: Added to project; for PEP processing.
4167 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
4168 requires a ``component`` parameter.
4170 * docutils/transforms/components.py: Added to project; transforms
4171 related to Docutils components.
4173 * docutils/transforms/frontmatter.py:
4175 - In ``DocInfo.extract_authors``, check for a single "author" in an
4176 "authors" group, and convert it to a single "author" element.
4177 - Added support for "Dedication" and generic bibliographic fields.
4179 * docutils/transforms/peps.py: Added to project; PEP-specific.
4181 * docutils/transforms/parts.py: Renamed from old components.py.
4183 - Added filter for ``Contents``, to use alt-text for inline images,
4184 and to remove inline markup that doesn't make sense in the ToC.
4185 - Added "name" attribute to TOC topic depending on its title.
4186 - Added support for optional TOC backlinks.
4188 * docutils/transforms/references.py: Fixed indirect target resolution
4189 in ``Hyperlinks`` transform.
4191 * docutils/transforms/universal.py:
4193 - Changed ``Messages`` transform to properly filter out system
4194 messages below the warning threshold.
4195 - Added ``Decorations`` transform (support for ``--generator``,
4196 ``--date``, ``--time``, ``--source-link`` options).
4198 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
4199 Engelbert Gruber's PDF writer.
4201 * docutils/writers/html4css1.py:
4203 - Made XHTML-compatible (switched to lowercase element & attribute
4204 names; empty tag format).
4205 - Escape double-dashes in comment text.
4206 - Improved boilerplate & modularity of output.
4207 - Exposed modular output in Writer class.
4208 - Added a "generator" meta tag to <head>.
4209 - Added support for the ``--stylesheet`` option.
4210 - Added support for ``decoration``, ``header``, and ``footer``
4212 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
4213 translation table to regexp; restores Python 2.0 compatibility
4215 - Added the translator class as instance variable to the Writer, to
4216 make it easily subclassable.
4217 - Improved option list spacing (thanks to Richard Jones).
4218 - Modified field list output.
4219 - Added backlinks to footnotes & citations.
4220 - Added percentage widths to "<col>" tags (from colspec).
4221 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
4222 "<span>" changed to "<var>".
4223 - Inline literals: "<code>" changed to "<tt>".
4224 - Many changes to optimize vertical space: compact simple lists etc.
4225 - Add a command-line options & directive attributes to control TOC
4226 and footnote/citation backlinks.
4227 - Added support for optional footnote/citation backlinks.
4228 - Added support for generic bibliographic fields.
4229 - Identify backrefs.
4230 - Relative URLs for stylesheet links.
4232 * docutils/writers/pep_html.py: Added to project; HTML Writer for
4233 PEPs (subclass of ``html4css1.Writer``).
4235 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
4237 * docutils/writers/docutils_xml.py: Added to project; trivial writer
4238 of the Docutils internal doctree in XML.
4240 * docs/tools.txt: "Docutils Front-End Tools", added to project.
4244 - Changed the title to "The Docutils Document Tree".
4245 - Added "Hyperlink Bookkeeping" section.
4247 * spec/docutils.dtd:
4249 - Added ``decoration``, ``header``, and ``footer`` elements.
4250 - Brought ``interpreted`` element in line with the parser: changed
4251 attribute "type" to "role", added "position".
4252 - Added support for generic bibliographic fields.
4254 * spec/notes.txt: Continual updates. Added "Project Policies".
4256 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
4259 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
4261 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
4262 mailing list discussions.
4264 * spec/pep-0287.txt:
4266 - Renamed to "reStructuredText Docstring Format".
4268 - Reworked Q&A as an enumerated list.
4269 - Converted to reStructuredText format.
4271 * spec/pysource.dtd:
4273 - Reworked structural elements, incorporating ideas from Tony Ibbs.
4275 * spec/pysource.txt: Removed from project. Moved much of its contents
4278 * spec/rst/alternatives.txt:
4280 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
4281 - Added "Inline External Targets" section.
4283 * spec/rst/directives.txt:
4285 - Added "backlinks" attribute to "contents" directive.
4287 * spec/rst/problems.txt:
4289 - Updated the Enumerated List Markup discussion.
4290 - Added new alternative table markup syntaxes.
4292 * spec/rst/reStructuredText.txt:
4294 - Clarified field list usage.
4295 - Updated enumerated list description.
4296 - Clarified purpose of directives.
4297 - Added ``-/:`` characters to inline markup's start string prefix,
4298 ``/`` to end string suffix.
4299 - Updated "Authors" bibliographic field behavior.
4300 - Changed "inline hyperlink targets" to "inline internal targets".
4301 - Added "simple table" syntax to supplement the existing but
4302 newly-renamed "grid tables".
4303 - Added cautions for anonymous hyperlink use.
4304 - Added "Dedication" and generic bibliographic fields.
4306 * test: Made test modules standalone (subdirectories became packages).
4308 * test/DocutilsTestSupport.py:
4310 - Added support for PEP extensions to reStructuredText.
4311 - Added support for simple tables.
4312 - Refactored naming.
4314 * test/package_unittest.py: Renamed from UnitTestFolder.py.
4316 - Now supports true packages containing test modules
4317 (``__init__.py`` files required); fixes duplicate module name bug.
4319 * test/test_pep/: Subpackage added to project; PEP testing.
4321 * test/test_rst/test_SimpleTableParser.py: Added to project.
4325 - Updated html.py and publish.py front-end tools to use the new
4326 command-line processing facilities of ``docutils.frontend``
4327 (exposed in ``docutils.core.Publisher``), reducing each to just a
4329 - Added ``locale.setlocale()`` calls to front-end tools.
4331 * tools/buildhtml.py: Added to project; batch-generates .html from all
4332 the .txt files in directories and subdirectories.
4334 * tools/default.css:
4336 - Added support for ``header`` and ``footer`` elements.
4337 - Added styles for "Dedication" topics (biblio fields).
4339 * tools/docutils.conf: A configuration file; added to project.
4341 * tools/docutils-xml.py: Added to project.
4343 * tools/pep.py: Added to project; PEP to HTML front-end tool.
4345 * tools/pep-html-template: Added to project.
4347 * tools/pep2html.py: Added to project from Python (nondist/peps).
4348 Added support for Docutils (reStructuredText PEPs).
4350 * tools/quicktest.py:
4352 - Added the ``--attributes`` option, hacked a bit.
4353 - Added a second command-line argument (output file); cleaned up.
4355 * tools/stylesheets/: Subdirectory added to project.
4357 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
4360 Release 0.1 (2002-04-20)
4361 ========================
4363 This is the first release of Docutils, merged from the now inactive
4364 reStructuredText__ and `Docstring Processing System`__ projects. For
4365 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
4366 `DPS HISTORY`__ files.
4368 __ http://structuredtext.sourceforge.net/
4369 __ http://docstring.sourceforge.net/
4370 __ http://structuredtext.sourceforge.net/HISTORY.html
4371 __ http://docstring.sourceforge.net/HISTORY.html
4373 General changes: renamed 'dps' package to 'docutils'; renamed
4374 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
4375 the test suites (reStructuredText's test/test_states renamed to
4376 test/test_rst); and all modifications required to make it all work.
4378 * docutils/parsers/rst/states.py:
4380 - Improved diagnostic system messages for missing blank lines.
4381 - Fixed substitution_reference bug.
4386 .. _RELEASE-NOTES: RELEASE-NOTES.html
4387 .. _`_config_files`: docs/user/config.html#config-files
4388 .. _auto_id_prefix: docs/user/config.html#auto-id-prefix
4390 .. _detailed: docs/user/config.html#detailed
4391 .. _docutils_footnotes: docs/user/config.html#docutils-footnotes
4392 .. _dump_settings: docs/user/config.html#dump-settings
4393 .. _embed_images: docs/user/config.html#embed-images
4394 .. _embed_stylesheet: docs/user/config.html#embed-stylesheet
4395 .. _figure_footnotes: docs/user/config.html#figure-footnotes
4396 .. _file_insertion_enabled: docs/user/config.html#file-insertion-enabled
4397 .. _graphicx_option: docs/user/config.html#graphicx-option
4398 .. _hidden_controls: docs/user/config.html#hidden-controls
4399 .. _html_writer: docs/user/config.html#html-writer
4400 .. _hyperref_options: docs/user/config.html#hyperref-options
4401 .. _id_prefix: docs/user/config.html#id-prefix
4402 .. _ignore: docs/user/config.html#ignore
4403 .. _image_loading: docs/user/config.html#image-loading
4404 .. _indents: docs/user/config.html#indents
4405 .. _initial_header_level: docs/user/config.html#initial-header-level
4406 .. _input_encoding: docs/user/config.html#input-encoding
4407 .. _input_encoding_error_handler: docs/user/config.html#input-encoding-error-handler
4408 .. _language: docs/user/config.html#language
4409 .. _latex_preamble: docs/user/config.html#latex-preamble
4410 .. _legacy_class_functions: docs/user/config.html#legacy-class-functions
4411 .. _legacy_column_widths: docs/user/config.html#legacy-column-widths
4412 .. _literal_block_env: docs/user/config.html#literal-block-env
4413 .. _math_output: docs/user/config.html#math-output
4414 .. _output: docs/user/config.html#output
4415 .. _output_encoding: docs/user/config.html#output-encoding
4416 .. _prune: docs/user/config.html#prune
4417 .. _raw_enabled: docs/user/config.html#raw-enabled
4418 .. _reference_label: docs/user/config.html#reference-label
4419 .. _root_prefix: docs/user/config.html#root-prefix
4420 .. _smart_quotes: docs/user/config.html#smart-quotes
4421 .. _sources: docs/user/config.html#sources
4422 .. _strip_classes: docs/user/config.html#strip-classes
4423 .. _strip_elements_with_classes: docs/user/config.html#strip-elements-with-classes
4424 .. _stylesheet: docs/user/config.html#stylesheet
4425 .. _stylesheet_dirs: docs/user/config.html#stylesheet-dirs
4426 .. _stylesheet_path: docs/user/config.html#stylesheet-path
4427 .. _syntax_highlight: docs/user/config.html#syntax-highlight
4428 .. _table_style: docs/user/config.html#table-style
4429 .. _theme: docs/user/config.html#theme
4430 .. _theme_url: docs/user/config.html#theme-url
4431 .. _toc_backlinks: docs/user/config.html#toc-backlinks
4432 .. _traceback: docs/user/config.html#traceback
4433 .. _use_bibtex: docs/user/config.html#use-bibtex
4434 .. _use_latex_abstract: docs/user/config.html#use-latex-abstract
4435 .. _use_latex_footnotes: docs/user/config.html#use-latex-footnotes
4436 .. _use_latex_toc: docs/user/config.html#use-latex-toc
4437 .. _view_mode: docs/user/config.html#view-mode
4439 .. _<meta>: docs/ref/doctree.html#meta
4440 .. _<image>: docs/ref/doctree.html#image
4441 .. _<inline>: docs/ref/doctree.html#inline
4442 .. _<literal>: docs/ref/doctree.html#literal
4448 indent-tabs-mode: nil
4449 sentence-end-double-space: t