1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: docutils-develop@lists.sourceforge.net
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
21 - Fix [ 253 ] Attribute key without value not allowed in XML.
25 - Apply [ 103 ] Recognize inline markups without word boundaries.
26 - Enable escaping in embedded URIs and aliases (fixes [ 284 ]).
28 * docutils/parsers/rst/__init__.py
30 - Fix [ 233 ] Change the base URL for the :rfc: role.
32 * docutils/parsers/rst/directives/tables.py
34 - Patch [ 120 ] tables accept option widths: list of relative widths, 'auto'
37 * docutils/parsers/rst/roles.py
39 - Fix [ 295 ] Class argument for custom role inheriting from math.
41 * docutils/parsers/rst/tableparser.py
43 - Really fix [ 159 ] Spurious table column alignment errors.
45 * docutils/transforms/frontmatter.py
47 - Add name of generic bibliographic fields as a "classes" attribute value
48 (after conversion to a valid identifier form).
50 * docutils/utils/error_reporting.py
52 - Fix [ 130 ] support streams expectiong byte-strings in ErrorOutput.
54 * docutils/utils/math/math2html.py
56 - Add ``\colon`` macro, fix spacing around colons. Fixes [ 246 ].
57 - New upstream version (additional macros, piecewise integrals and sums).
59 * docutils/writers/html_plain/
61 - New HTML writer generating clean, polyglot_ markup conforming to
64 The CSS stylesheets ``minimal.css`` and ``plain.css`` contain required
65 and recommended layout rules.
67 * docutils/writers/html4css1/__init__.py
69 - Add "docutils" to class values for "container" object to address [ 267 ].
70 - Apply patch [ 119 ] by Anatoly Techtonik: use absolute paths for
71 ``default_stylesheet_path`` and ``default_template_path``.
72 - Fix [ 266 ] creating labels/class values in description list items.
73 - Do not use <sup> and <sub> tags inside <pre> (parsed-literal blocks).
74 - Fix footnotes with content that does not start with a paragraph.
75 - Use https in default MathJax URL (report Alan G Isaac).
77 * docutils/writers/latex2e/__init__.py
79 - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
80 admonitions and docinfo.
82 - Use absolute path for ``default_template_path``.
84 - Removed deprecated options ``--use-latex-footnotes`` and
85 ``--figure-footnotes``.
87 - Cleaner LaTeX code for enumerations and literal blocks.
89 - Use "hyperref" package together with "bookmark" (improved hyperlinking
92 - Fix [ 286 ] Empty column title cause invalid latex file.
94 * docutils/writers/odf_odt/__init__.py
96 - remove decode.encode of filename stored in zip.
98 * docutils/writers/xetex/__init__.py
100 - LuaLaTex compatibility: do not load "xunicode".
104 - New front-end ``rst2html5.py``.
108 - Test py26, py27, py33 and py34.
110 To use, install the ``tox`` package via pip or easy_install and use
111 tox from the project root directory.
113 .. _polyglot: http://www.w3.org/TR/html-polyglot/
114 .. _HTML 5: http://www.w3.org/TR/html5/
115 .. _XHTML 1.0: http://www.w3.org/TR/xhtml1/
118 Release 0.12 (2014-07-06)
119 =========================
121 * docs/ref/rst/directives.txt
123 - Update "math" and "csv-table" descriptions.
125 * docutils/parsers/rst/directives/images.py
127 - Fix [ 258 ] figwidth="image" generates unitless width value.
129 * docutils/parsers/rst/states.py
131 - Improve error report when a non-ASCII character is specified as
132 delimiter, quote or escape character under Python 2.
133 Fixes [ 249 ] and [ 250 ].
135 * docutils/writers/html4css1/__init__.py
137 - Don't add newline after inline math.
138 Thanks to Yury G. Kudryashov for the patch.
140 * docutils/writers/latex2e/__init__.py
142 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
143 - Apply [ 116 ] by Kirill Smelkov. Don't hardcode \large for subtitle.
145 * docutils/writers/odf_odt/__init__.py
147 - Apply patch by Jakub Wilk to fix bug [ 100 ].
149 * test/test_error_reporting.py
151 - Fix [ 223 ] by removing redundant tests we do not have control over.
155 - Apply [ 115 ] respect fixed 2to3 string literal conversion behavior.
157 Release 0.11 (2013-07-22)
158 =========================
162 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
163 - Support embedded aliases within hyperlink references.
164 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
165 language module) before global search.
169 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
171 * docutils/parsers/rst/directives/__init__.py
173 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
175 * docutils/parsers/rst/directives/images.py
177 - Apply [ 3599485 ] node source/line information for sphinx translation.
179 * docutils/parsers/rst/directives/tables.py
181 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
183 * docutils/parsers/rst/states.py
185 - Fix [ 157 ] Line block parsing doesn't like system message.
186 - Always import our local copy of roman.py (report Larry Hastings).
188 * docutils/transforms/references.py
190 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
192 * docutils/utils/__init__.py
194 - Fix [ 3596884 ] exception importing ``docutils.io``.
196 * docutils/writers/html4css1/__init__.py
198 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
199 - New setting `stylesheet_dirs`: Comma-separated list of directories
200 where stylesheets are found. Used by `stylesheet_path` when expanding
201 relative path arguments.
202 - New default for math-output_: ``HTML math.css``.
203 - Avoid repeated class declarations in html4css1 writer
204 (modified version of patch [ 104 ]).
206 .. _math-output: docs/user/config.html#math-output
208 * docutils/writers/latex2e/__init__.py
210 - Drop the simple algorithm replacing straight double quotes with
211 English typographic ones.
212 Activate the SmartQuotes_ transform if you want this feature.
213 - Fix literal use of babel shorthands (straight quote, tilde, ...).
214 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
215 - New setting `stylesheet_dirs`.
217 .. _SmartQuotes: docs/user/config.html#smart-quotes
219 * docutils/writers/manpage.py
221 - Fix [3607063] handle lines starting with a period.
222 - Fix option separating comma was bold (thanks to Bill Morris).
224 Release 0.10 (2012-12-16)
225 =========================
229 - Dropped support for Python 2.3.
230 - ``docutils/math``, ``docutils/error_reporting.py``, and
231 ``docutils/urischemes.py`` moved to the utils package.
232 - Fix [3541369] Relative __import__ also with Python 3.3.
233 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
234 and parsers for Python 2.7 up.
235 - Fix import of PIL.Image.
236 - Change default of "syntax highlight" option to "long",
237 basic syntax highlight styles for LaTeX and HTML.
241 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
242 option is ignored and will be removed in a future release.
243 - Fix Py3k error writing to stdout with encoding differing from default.
244 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
246 * docutils/parsers/rst/directives/misc.py
248 - Fix [ 3546533 ] Unicode error with `date` directive.
250 * docutils/transforms/universal.py
252 - SmartQuotes transform for typographic quotes and dashes.
254 * docutils/utils/__init__.py
256 - normalize_language_tag() now returns `BCP 47`_ conformant tags
257 with subtags separated by ``-``.
259 * docutils/writers/html4css1/__init__.py
261 - Use ``<code>`` tag for inline "code",
262 do not drop nested inline nodes (syntax highlight tokens).
263 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
264 - No line break after opening inline math tag.
266 * docutils/writers/manpage.py
268 - Apply [ 3527401 ] addmonition's don't preserve indentation
269 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
271 * docutils/writers/xetex/__init__.py
273 - Apply [ 3555160 ] ensure order of "otherlanguages".
274 - Fix section numbering by LaTeX.
276 * docutils/writers/s5_html/__init__.py
278 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
280 * docutils/writers/s5_html/docutils_xml.py
282 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
286 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
288 * tools/test/test_buildhtml.py
290 - Fix [ 3521167 ] allow running in any directory.
291 - Fix [ 3521168 ] allow running with Python 3.
294 Release 0.9.1 (2012-06-17)
295 ==========================
299 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
300 installed in the PYTHONPATH. Converted tests are now
301 stored in ``test3/``, tools no longer need conversion.
303 If you installed one of Docutils versions 0.7 ... 0.9 with
304 ``setup.py install`` under Python 3, remove the spurious
305 ``test/`` and ``tools/`` directories in the site library root.
309 - Make tests independent from the location of the ``test/`` directory.
310 - Use converted sources (from the ``build/`` directory) for tests under
315 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
319 - Fix writing binary data to sys.stdout under Python 3 (allows
320 ``rst2odt.py`` to be used with output redirection).
322 * docutils/parsers/rst/directives/misc.py
324 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
325 ``locale == C`` and 8-bit char in path argument of `include` directive.
329 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
332 Release 0.9 (2012-05-02)
333 ========================
337 - New reStructuredText "code" role and directive and "code" option
338 of the "include" directive with syntax highlighting by Pygments_.
339 - Fix parse_option_marker for option arguments containing ``=``.
340 - Fix [ 2993756 ]: import Python Imaging Library's Image module
341 via ``import PIL`` as starting with PIL 1.2,
342 "PIL lives in the PIL namespace only" (announcement__).
344 .. _Pygments: http://pygments.org/
345 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
349 - Fix [ 2971827 ] and [ 3442827 ]
350 extras/roman.py moved to docutils/utils/roman.py
352 * docutils/frontend.py
354 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
358 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
359 - `mode` argument for FileOutput avoids code replication in
361 - New exceptions InputError and OutputError for IO errors in
362 FileInput/FileOutput.
366 - No "hard" system exit on file IO errors: catch and report them in
367 `Publisher.reportException` instead. Allows handling by a calling
368 application if the configuration setting `traceback` is True.
370 * docutils/utils.py -> docutils/utils/__init__.py
372 - docutils.utils is now a package (providing a place for sub-modules)
374 .. note:: docutils/math, docutils/error_reporting.py, and
375 docutils/urischemes.py will move to the utils package in the next
376 release, too. See RELEASE-NOTES__
378 __ RELEASE-NOTES.html
380 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
381 errors recording non-ASCII filenames (fixes [ 3434355 ]).
383 - Fix relative_path() with source=None and `unicode` target.
385 * docutils/parsers/rst/states.py
387 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
388 characters and "international" quotes around inline markup.
389 - Use `field_marker` pattern to look for start of a
390 directive option block (fixes [ 3484857 ]).
392 * docutils/parsers/rst/tableparser.py
394 - Fix [ 2926161 ] for simple tables.
395 (Combining chars in grid tables still contribute to cell width.)
397 * docutils/writers/latex2e/__init__.py
399 - Support the `abbreviation` and `acronym` standard roles.
400 - Record only files required to generate the LaTeX source as dependencies.
401 - Fix handling of missing stylesheets.
402 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
403 when suppressing LaTeX section numbering.
404 - Use ``\DUtitle`` for unsupported section levels
405 - Apply [ 3512791 ] do not compare string literals with "is"
407 * docutils/writers/xetex/__init__.py
409 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
411 * docutils/writers/html4css1/__init__.py
413 - Change default for `math-output` setting to MathJax.
414 - Fix handling of missing stylesheets.
416 * docutils/writers/docutils_xml.py
418 - Use the visitor pattern with default_visit()/default_depart() methods
419 instead of minidom to facilitate special handling of selected nodes.
420 - Support raw XML (inserted as-is inside a <raw></raw> node).
422 * docutils/writers/manpage.py
424 - Do not emit comment line with trailing blank. Problematic for VCS.
426 Release 0.8.1 (2011-08-30)
427 ==========================
431 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
432 and [ 3395920 ] (correct copyright info for rst.el).
436 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
438 * docutils/writers/latex2e/__init__.py
440 - Clean up Babel language setting. Restores Sphinx compatibility.
442 Release 0.8 (2011-07-07)
443 ========================
447 - Handle language codes according to `BCP 47`_.
448 - If the specified language is not supported by Docutils,
449 warn and fall back to English.
450 - Math support: reStructuredText "math" role and directive,
451 ``math`` and ``math_block`` doctree elements.
452 - Decode command line arguments with the locale's preferred encoding
453 (to allow, e.g., ``--title=Dornröschen``).
454 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
455 - New sub-module `error_reporting`: handle encoding/decoding errors
456 when reporting exceptions.
457 - Some additions to the Docutils core are released under the 2-Clause BSD
458 license, see COPYING_ for details.
460 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
461 .. _COPYING: COPYING.html
465 - Most directives now support a "name" option that attaches a
468 - Directive content may start on the first line also when the directive
469 type accepts options.
471 * docs/dev/policies.txt:
473 - Recommend the 2-Clause BSD license
474 (http://www.spdx.org/licenses/BSD-2-Clause)
475 for code that is kept under the author's copyright.
477 * tools/buildhtml.py:
479 - Fix ``--local`` switch.
481 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
483 * docutils/writers/html4css1/__init__.py
485 - Set "lang" argument for objects with class argument
486 "language-<language tag>".
487 - New setting "math-output" with support for HTML, MathML, and LaTeX.
489 * docutils/writers/latex2e/__init__.py
491 - Fix [ 3043986 ] AttributeError using :local: with table of content.
492 - Place title data in the document preamble.
493 - Load `babel` package only if required.
494 - Update list of supported languages.
495 - New config setting "hyperref-options".
496 No hard-coded "unicode" hyperref option (clash with xetex).
497 - Set language for custom roles, paragraphs, block-quotes, and
498 line-quotes with class argument "language-<language tag>".
499 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
500 - Convert image URI to a local file path.
501 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
502 has more than one paragraph (Wolfgang Scherer).
503 - \leavevmode before longtable only when needed (prevents spurious vspace)
504 - do not advance table counter for tables without caption
506 * docutils/writers/xetex/__init__.py
508 - New writer generating LaTeX code for compiling with ``xelatex``.
510 A separate writer (inheriting from latex2e) instead of a ``--xetex``
511 option allows separate config options for XeTeX vs. LaTeX2e.
513 * docutils/writers/manpage.py
515 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
516 - Fix: vertical space cleaning for option group ``.``.
518 * tools/editors/emacs/rst.el:
520 - Fix [ 3001100 ] does not handle spaces in filenames
521 (thanks to Jakub Wilk)
525 - strip whitespace from stylesheet arguments
526 - exclude combining chars from column_width()
527 (partial fix for [ 2926161 ])
529 * docutils/parsers/rst/directives/misc.py:
531 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
536 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
537 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
539 Release 0.7 (2010-07-07)
540 ========================
544 - Fix [ 2881769 ] setup configuration.
545 - Fix [ 2788716 ] reporting problems in included files.
549 - FileInput opens files as text files with universal newline support
550 (mode "rU", configurable with the new optional argument "mode").
554 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
558 - Fix [ 2923723 ] let decode_path() tolerate path == None
560 * docutils/writers/html4css1/__init__.py
562 - Support SVG and SWF images (thanks to Stefan Rank).
563 - Generate valid XHTML for centered images with targets.
564 Use CSS classes instead of "align" tags for image alignment.
566 * docutils/writers/latex2e/__init__.py
568 - Use `transforms.writer_aux.Admonitions` to "normalize" special
570 - Use the ``\url`` command for URLs (breaks long URLs instead of
571 writing into the margin).
572 - Preserve runs of spaces in `inline literals`__.
573 - Deprecate ``figure_footnotes`` setting.
574 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
575 - New ``latex_preamble`` setting.
576 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
577 - Fix hyperlink targets (labels) for images, figures, and tables.
578 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
579 - Apply [ 2961991 ] Call hyperref with unicode option.
580 - Drop the special `output_encoding`__ default ("latin-1").
581 The Docutils wide default (usually "UTF-8") is used instead.
582 - Render inline markup in document title and subtitle.
583 - Fix numbering depth with LaTeX section numbering.
584 - Update Unicode -> LaTeX translations.
585 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
587 __ docs/ref/restructuredtext.html#inline-literals
588 __ docs/user/config.html#docutils-footnotes
589 __ docs/user/config.html#output_encoding
591 * docutils/writers/manpage.py
593 - Fix: supported attribute (thanks to peter2108).
594 - Remove trailing blanks in code (keep in sync with mercurial version).
595 - Titles level 1, that is ``.SH``, always uppercase.
596 - Apply patch from mg: literal text should be bold in man-pages.
600 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
605 - Python 3 support: copy test/ and tools/ to the build-dir
606 and convert Python sources with 2to3.
609 Release 0.6 (2009-10-11)
610 ========================
614 - Docutils is now compatible with Python versions from 2.3 up to 2.6
615 and convertible to 3.1 code.
617 + Node.__nonzero__ returns True instead of 1.
618 + use os.walk instead os.path.walk.
619 + minimize "types" module where possible.
620 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
621 + Text nodes now subclass unicode rather than UserString
622 (which is gone in python 3.0).
623 + 3.0 compatibility module docutils._compat
625 + Drop 2.2 compatibility workarounds.
626 + Drop extras/optparse.py and extras/textwrap.py
627 (stdlib modules since 2.3).
629 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
630 - Unix man page export: manpage writer moved from sandbox to Doctutils
633 - Apply [ 1719345 ] Galician translation
634 - Apply [ 1905741 ] Polish translation
635 - Apply [ 1878977 ] make_id(): deaccent characters.
636 - Apply [ 2029251 ] return nonzero when tests fail.
637 - Fix [ 1692788 ] allow UTF-8 in style sheets.
638 - Fix [ 2781629 ] support non-ASCII chars in file names.
639 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
640 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
641 - Fix [ 2821266 ] --strict option works now like --halt=info.
642 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
643 - Fix [ 1627229 ] hyperlink references in substitutions.
645 - The "newlatex" writer is orphaned.
649 - Documented Unicode characters allowed as inline markup openers,
650 closers, and delimiters.
651 - Allow units for all length specifications.
652 - Allow percent sign in "scale" argument of "figure" and "image" directives.
653 - Bugfix: The "figalign" argument of a figure now works as intended
654 (aligning the figure, not its contents).
655 - Align images with class "align-[right|center|left]"
656 (allows setting the alignment of an image in a figure).
660 - Added ``Element.__contains__`` method, for the in-operator.
662 * docutils/parsers/rst/states.py:
664 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
665 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
666 " " (non-breaking space), and "¡ ¿" openers.
668 * docutils/parsers/directives/misc.py:
670 - Added ``start-line`` and ``end-line`` options to "include"
671 directive to select a range of lines.
672 - Hard tabs in literal inclusions are replaced by spaces. This is
673 configurable via the new ``tab-width`` option of the "include" directive
674 (a negative tab-width prevents tab expansion).
678 - Add ``get_stylesheet_list`` function.
679 - Apply [ 2834836 ] print info at halt
681 * docutils/transforms/universal.py:
683 - Raise default priority of StripClasses to exclude stripped classes from
686 * docutils/writers/html4css1/__init__.py:
688 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
689 separated list of stylesheets.
690 - Address [ 1938891 ] Inline literal text creates "pre" span only when
691 needed to prevent inter-word line wraps.
692 - Use `translate` method instead of repeated `replace` calls.
693 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
694 classes to allow CSS styling that does not interfere with other
695 table-using constructs (field lists, citations, ...).
697 * docutils/writers/newlatex2e/__init__.py:
699 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
701 * docutils/writers/latex2e/__init__.py (see also
702 `<docs/user/docutils-05-compat.sty.html>`__) :
704 - Add ``--embed-stylesheet`` option.
705 - Apply [ 1474017 ] image vertical alignment is reversed.
706 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
707 - Change: has_key for dictionaries (not Nodes) to in-operator.
708 - Merge adjacent citations into one latex cite command.
709 - Failsave implementation of custom roles. LaTeX compilation now ignores
710 unknown classes instead of aborting with an error.
711 - Support custom roles based on standard roles.
712 - LaTeX packages can be used as ``--stylesheet`` arguments without
713 restriction. (A style sheet is now referenced with the ``\usepackage``
714 command, if it ends with ``.sty`` or has no extension.)
715 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
716 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
717 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
718 2005-02-04 as a configurable length unit).
719 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
720 if font-encoding is set to ''. LaTeX defaults to OT1 then.
721 - Set sub- and superscript role argument in text mode not as math.
722 Use a custom role based on sub-/superscript if you want italic shape.
723 - Shorter preamble and less dependencies: Load packages and define macros
724 only if required in the document.
725 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
726 - New custom environments and commands with optional "classes" argument.
727 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
728 - Better conformance to Docutils specifications with ``--use-latex-toc``.
729 Support for LaTeX generated ToC also with unnumbered sections.
730 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
731 section numbering by LaTeX.
732 - Use default font in admonitions and sidebar.
733 - Align of image in a figure defaults to 'center'.
734 - Bugfix: Newlines around targets and references prevent run-together
736 - Fix internal hyperlinks.
737 - Use class defaults for page margins ('typearea' now optional).
738 - Float placement made configurable, default changed to "here definitely".
739 - Typeset generic topic as "quote block with title".
740 - Use template (file and configuration option).
741 - In the default template, load cmap.sty (fix text extraction in PDF) and
742 fixltx2e.sty (LaTeX patches, \textsubscript).
743 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
744 - Use `translate` instead of repeated `replace` calls for text encoding.
745 - Hyperlinked footnotes and support for symbol footnotes and
746 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
747 - Complete pairs of binary options
748 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
749 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
751 - font-encoding: "T1" (formerly implicitely set by 'ae').
752 - use-latex-toc: true (ToC with page numbers).
753 - use-latex-footnotes: true (no mixup with figures).
755 * docutils/writers/manpage.py
757 - Do not print version at document end, this is done by the viewer.
758 - Do not print date at document end, this is done by the viewer.
759 - Fix storage of docinfo fields for none standard fields.
761 * docutils/tools/rst2man.py
763 Release 0.5 (2008-06-25)
764 ========================
766 * docutils/languages/he.py: Added to project: Hebrew mappings by
769 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
770 mappings by Meir Kriheli.
772 * docutils/frontend.py:
774 - Configuration files are now assumed and required to be
776 - Paths of applied configuration files are now recorded in the
777 runtime setting ``_config_files`` (accessible via
778 ``--dump-settings``).
779 - Added ``--strip-elements-with-class`` and ``--strip-class``
780 options (``strip_elements_with_classes`` and ``strip_classes``
785 - Added code to determine the input encoding from data: encoding
786 declarations or the presence of byte order marks (UTF-8 & UTF-16).
787 - Added support for IronPython 1.0.
791 - Added ``document.__getstate__`` method, for pickling.
793 * docutils/parsers/rst/states.py:
795 - Allow ``+`` and ``:`` in reference names.
796 - Unquoted targets beginning with an underscore (``.. __target:
797 URI``) are no longer accepted.
798 - Added support for multiple attributions in a physical block quote
799 (indented text block), dividing it into multiple logical block
801 - Added support for unicode bullets in bullet lists: "•", "‣", and
803 - Added support for new object-oriented directive interface,
804 retaining compatibility to the old functional interface.
805 - Added support for throwing ``DirectiveError``'s from within
808 * docutils/parsers/rst/__init__.py:
810 - Added ``Directive`` base class.
811 - Added ``DirectiveError`` base class.
812 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
815 * docutils/parsers/directives/:
817 - Refactored all reStructuredText directives to use the new
818 object-oriented directive interface. Errors are now (mostly)
819 thrown using the new ``DirectiveError`` class.
821 * docutils/parsers/directives/misc.py:
823 - Added ``start-after`` and ``end-before`` options to ``include``
824 directive; thanks to Stefan Rank.
826 * docutils/transforms/universal.py:
828 - Added ``StripClassesAndElements`` transform to remove from the
829 document tree all elements with classes in
830 ``settings.strip_elements_with_classes`` and all "classes"
831 attribute values in ``self.document.settings.strip_classes``.
833 * docutils/transforms/writer_aux.py:
835 - Added ``Admonitions`` transform to transform specific admonitions
836 (like ``note``, ``warning``, etc.) into generic admonitions with a
839 * docutils/writers/html4css1/__init__.py:
841 - Moved template functionality from the PEP/HTML writer here.
842 - Expanded the fragments available in the ``parts`` attribute.
843 - Moved ``id`` attributes from titles to surrounding ``div``
845 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
846 universally supported now).
847 - ``template.txt`` is now opened in text mode instead of binary mode
848 (to ensure Windows compatibility).
849 - ``a`` elements now have an "internal" or "external" class,
850 depending on reference type.
852 * docutils/writers/html4css1/template.txt: Added to project.
854 * docutils/writers/pep_html/:
856 - Moved template functionality to the HTML writer.
858 * docutils/writers/s5_html/__init__.py:
860 - Added ``view_mode`` & ``hidden_controls`` settings
861 (``--view-mode`` & ``--hidden-controls/--visible-controls``
864 * docutils/writers/latex2e/__init__.py:
866 - Add ``--literal-block-env``
867 - Fix: escaping ``%`` in href urls.
868 - Move usepackage hyperref after stylesheet inclusion.
869 - Fix: scrartcl does not have chapter but scrreprt.
870 - Add newline after ``\end{verbatim}``.
871 - Merge smaller differences from latex2e_adaptive_preamble.
872 - Add ``use-part-section``.
873 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
874 - Using leavemode option_list no longer needs to check if parent
875 is a definition list.
876 - Append ``\leavemode`` to definition list terms.
877 - No longer write visit\_/depart_definition_list_item comments to
879 - Table column width with 3 decimal places.
880 - Add table stubs support (boldfont).
881 - Add assemble_parts to writer.
882 - Add simply support for nested tables.
883 - Fix verbatim in tables if use-verbatim-when-possible.
884 - Use section commands down to subparagraph.
885 - Put ensuremath around some latin1 chars.
886 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
887 - New option ``--use-bibtex=style,db1,db2``.
888 - New option ``--reference-label`` to allow usage of LaTeX ref for
889 labels in section references.
890 - Add a label after every section to support sectionnumbers as reference
892 - Fix: bug# 1605376 rst2latex: bad options group list
893 - Remove inactive code for use_optionlist_for_option_list.
894 - Remove latex comments from option_list output.
895 - Fix: bug# 1612270 double qoutes in italian literal.
896 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
897 - Add option --use-latex-abstract.
898 - Image width unit ``px`` is translated to ``pt``.
899 - Add image height support.
900 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
902 - Fix: Do not escape underscores in citation reference labels if
903 use-latex-citations is set.
904 - Use centering instead of center for figure contents, to avoid vertical
906 - Recognize table class: borderless, nolines, booktabs, standard.
907 - Fix: Renaming contents section does not work with latex writer; SF
909 - Applied patch for custom roles with classes from Edward Loper.
910 - Fixed bug that caused crashes with more than 256 lists.
912 * docutils/writers/pep_html/__init__.py:
914 - Changed to support new python.org website structure and
917 * docs/howto/security.txt: "Deploying Docutils Securely", added to
920 * tools/buildhtml.py:
922 -- Added ``ignore`` setting to exclude a list of shell patterns
923 (default: ``.svn:CVS``).
925 * tools/editors/emacs/rst.el:
927 - Changed license to "GPL".
928 - Added ``rst-straighten-decorations`` function.
929 - The ``compile`` module is now always loaded.
930 - Added ``rst-toggle-line-block`` function.
931 - Headings consisting only of non-ASCII characters are now
932 recognized by ``rst-toc`` and ``rst-adjust``.
933 - Added font-lock support for multi-line comments where the first
934 comment line is empty.
935 - Added ``(require 'font-lock)``.
939 - Provide descriptive error message if distutils is missing.
942 Release 0.4 (2006-01-09)
943 ========================
947 - Updated the project policies for trunk/branch development &
950 * docutils/__init__.py:
952 - Added ``__version_details__`` attribute to describe code source
953 (repository/snapshot/release).
954 - Replaced ``default_transforms`` attribute of TransformSpec with
955 ``get_transforms()`` method.
959 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
960 functions, for document tree extraction and reprocessing.
964 - Added ``DocTreeInput`` class, for reprocessing existing documents.
965 - Added support for non-Unicode (e.g. binary) writer output.
969 - Re-introduced ``Targetable.indirect_reference_name``, for
970 MoinMoin/reST compatibility (removed in r3124/r3129).
971 - Added ``serial_escape`` function; escapes string values that are
972 elements of a list, for serialization. Modified Docutils-XML
973 writing (``Element._dom_node``) and pseudo-XML writing
974 (``Element.starttag``) to use ``serial_escape``.
975 - Added ``Node.deepcopy()`` method.
976 - Removed the internal lists ``document.substitution_refs``,
977 ``document.anonymous_refs``, and ``document.anonymous_targets``.
978 - Added a "container" element.
979 - Fixed bug where values of list-valued attributes of elements
980 originating from custom interpreted text roles (i.e., with custom
981 classes) were being shared between element instances. Reported by
984 * docutils/statemachine.py:
986 - Added trailing whitespace stripping to ``string2lines()``.
987 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
988 Asian double-width character support.
992 - Added ``east_asian_column_width()`` for double-width character
995 * docutils/languages/ja.py: Added to project: Japanese mappings by
998 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
999 mappings by Panjunyong.
1001 * docutils/parsers/null.py: Added to project; a do-nothing parser.
1003 * docutils/parsers/rst/__init__.py:
1005 - Added validator to tab_width setting, with test. Closes SF bug
1006 #1212515, report from Wu Wei.
1008 * docutils/parsers/rst/states.py:
1010 - Fixed bug with escaped colons indicating a literal block.
1011 - Fixed bug with enumerated lists (SF#1254145).
1012 - Backslash-escaped colons inside of field names are now allowed.
1013 - Targets (implicit and explicit), anonymous hyperlink references
1014 and auto-numbered footnote references inside of substitution
1015 definitions are now disallowed.
1016 - Fixed bug: list items with blank first lines.
1017 - Fixed bug: block quote attributions with indented second lines.
1018 - Added East Asian double-width character support (Python 2.4 only).
1020 * docutils/parsers/rst/tableparser.py:
1022 - Added East Asian double-width character support (Python 2.4 only).
1024 * docutils/parsers/rst/directives/body.py:
1026 - Added the "container" directive.
1028 * docutils/parsers/rst/directives/misc.py:
1030 - Added the "default-role", "title", and "date" directives.
1031 - Added standard data file syntax to the "include" directive.
1032 - Added support for "class" directive content.
1034 * docutils/parsers/rst/directives/images.py:
1036 - Added ``indirect_reference_name`` support for images with a target
1038 - Added support for image width and height units.
1039 - Fixed bug with image "target" options.
1041 * docutils/parsers/rst/directives/references.py:
1043 - Added "class" attribute to "target-notes" directive, for
1044 footnote_reference classes.
1046 * docutils/parsers/rst/include/: Directory added to project; contains
1047 standard data files for the "include" directive. Initial contents:
1048 character entity substitution definition sets, and a set of
1049 definitions for S5/HTML presentations.
1051 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
1052 mappings by David Goodger.
1054 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
1055 Simplified Chinese mappings by Panjunyong.
1057 * docutils/readers/__init__.py:
1059 - Added universal.Decorations and universal.ExposeInternals
1060 transforms as default transforms for all readers.
1061 - Added ``ReReader`` base class for readers that reread an existing
1064 * docutils/readers/doctree.py: Added to project; a reader for existing
1067 * docutils/transforms/frontmatter.py:
1069 - Fixed the DocInfo transform to handle SVN-style expansion of the
1071 - In ``DocInfo.extract_authors``, treat the contents of "authors"
1074 * docutils/transforms/misc.py:
1076 - Added misc.Transitions transform, extracted from
1077 universal.FinalChecks.
1079 * docutils/transforms/references.py:
1081 - Added references.DanglingReferences transform, extracted from
1082 universal.FinalChecks.
1083 - Fixed bug with doubly-indirect substitutions.
1084 - Added footnote_reference classes attribute to "TargetNotes".
1085 - Fixed bug with circular substitution definitions that put Docutils
1086 into an infinite loop.
1088 * docutils/transforms/universal.py:
1090 - Added universal.ExposeInternals transform, extracted from
1091 universal.FinalChecks.
1092 - Removed universal.FinalChecks transform (logic has been moved to
1093 several new transforms).
1094 - Fixed bug with the "expose_internals" setting and Text nodes
1095 (exposed by the "rawsource" internal attribute).
1096 - Added the universal.StripComments transform, implementation of the
1097 "strip_comments" setting.
1099 * docutils/transforms/writer_aux.py: Added to project; auxiliary
1100 transforms for writers.
1102 - Added ``Compound`` transform, which flattens compound paragraphs.
1104 * docutils/writers/: Several writer modules (html4css1.py) were
1105 converted into packages. Support modules and data files have been
1106 moved into the packages. The stylesheets for the HTML writers are
1107 now installed along with the code, the code knows where to find
1108 them, and the default is to use them (actually, to embed them).
1109 Some adjustments to configuration files may be necessary. The
1110 easiest way to obtain the new default behavior is to remove all
1111 settings whose name includes "stylesheet".
1113 * docutils/writers/__init__.py:
1115 - Added universal.Messages and universal.FilterMessages transforms
1116 as default transforms for all writers.
1117 - Added ``UnfilteredWriter`` base class for writers that pass the
1118 document tree on unchanged.
1120 * docutils/writers/docutils_xml.py:
1122 - Made ``xmlcharrefreplace`` the default output encoding error
1125 * docutils/writers/html4css1/:
1127 - Added support for image width and height units.
1128 - Made ``xmlcharrefreplace`` the default output encoding error
1130 - Made ``--embed-stylesheet`` the default rather than
1131 ``--link-stylesheet``.
1132 - Moved "id" attribute from container (section etc.) to title's <a>
1133 tag, to be on the same tag as "name".
1134 (!!! To be reverted in Docutils 0.5.)
1135 - Added vertical space between fields of field lists.
1136 - Added ``--compact-field-lists`` option to remove vertical space in
1138 - Made cloaking of email addresses with ``--cloak-email-addresses``
1140 - Fixed support for centered images.
1141 - Added support for class="compact" & class="open" lists.
1143 * docutils/writers/latex2e/:
1145 - Underscores in citekeys are no longer escaped.
1147 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1148 mapping of Unicode characters to LaTeX equivalents.
1150 * docutils/writers/s5_html/: Package added to project; writer for
1151 S5/HTML slide shows.
1153 * docs/dev/distributing.txt: Added to project; guide for distributors
1154 (package maintainers).
1156 * docs/dev/hacking.txt: Added to project; guide for developers.
1158 * docs/ref/doctree.txt:
1160 - Updated for plural attributes "classes", "ids", "names",
1162 - Added the "container" element.
1164 * docs/ref/docutils.dtd:
1166 - Updated for plural attributes "classes", "ids", "names",
1169 * docs/user/emacs.txt: Added to project; a document about Emacs
1170 support for reStructuredText and Docutils.
1172 * docs/user/links.txt: Added to project; lists of Docutils-related
1175 * docs/user/mailing-lists.txt: Added to project; information about
1176 Docutils-related mailing lists and how to access them.
1178 * docs/user/slide-shows.txt: Added to project; example of and docs for
1179 the S5/HTML writer (``rst2s5.py`` front end).
1181 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1182 Files", added to project.
1184 * test/coverage.sh: Added to project; test coverage script.
1186 * test/DocutilsTestSupport.py:
1188 - Added support for specifying runtime settings at the suite level.
1190 * test/test_functional.py:
1192 - Added the ``clear_output_directory`` function.
1193 - Added support for ``_test_more`` functions in functional test
1196 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1198 * tools/rstpep2html.py: Renamed from pep.py.
1200 * tools/dev/create_unimap.py: Added to project; script to create the
1201 docutils/writers/unimap_latex.py mapping file.
1203 * tools/dev/profile_docutils.py: Added to project; profiler script.
1205 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1207 * tools/editors/emacs/restructuredtext.el,
1208 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1209 Removed from project; the functionality is now contained in rst.el.
1211 * tools/editors/emacs/rst.el: Added to project. Added many features
1212 and fixed many bugs. See docs/user/emacs.txt for details.
1214 * tools/stylesheets: Removed from project. Stylesheets have been
1215 renamed and moved into writer packages.
1218 Release 0.3.9 (2005-05-26)
1219 ==========================
1223 - Eliminated and replaced all uses of the old string attributes
1224 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1225 new list attributes ``ids``, ``names``, ``dupnames`` and
1226 ``classes`` throughout the whole source tree.
1230 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1231 allowing for easier debugging.
1232 - In ``Publisher.publish()``, expanded the generic top-level
1235 * docutils/examples.py:
1237 - Added ``internals`` function for exploration.
1241 - Fixed ``Input.decode`` method to apply heuristics only if no
1242 encoding is explicitly given, and to provide better reporting of
1244 - The ``Input.decode`` method now removes byte order marks (BOMs)
1247 * docutils/nodes.py:
1249 - ``image`` element class changed to subclass of Element, not
1250 TextElement (it's an empty element, and cannot contain text).
1251 - Added ``attr_defaults`` dictionary for default attribute values.
1252 - Added empty list as default value for the following attributes:
1253 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1254 - Added ``document.decoration`` attribute,
1255 ``document.get_decoration`` method, and ``decoration.get_header``
1256 & ``.get_footer`` methods.
1257 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1260 * docutils/utils.py:
1262 - Removed ``docutils.utils.Reporter.categories``,
1263 ``docutils.utils.ConditionSet``, and all references to them, to
1264 simplify error reporting.
1266 * docutils/languages/nl.py: Added to project; Dutch mappings by
1269 * docutils/parsers/rst/__init__.py:
1271 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1273 * docutils/parsers/rst/states.py:
1275 - Added check for escaped at-mark to prevent email address recognition.
1276 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1278 - Allowed whitespace in paths and URLs.
1279 - Added auto-enumerated list items.
1280 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1282 - Added support for table stub columns.
1284 * docutils/parsers/rst/directives/__init__.py:
1286 - Allowed whitespace in paths (``path`` function).
1287 - Added ``uri`` directive option conversion function.
1289 * docutils/parsers/rst/directives/body.py:
1291 - Fixed illegal context bug with "topic" directive (allowed within
1292 sidebars; not within body elements).
1294 * docutils/parsers/rst/directives/images.py:
1296 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1297 - Added support for the ``file_insertion_enabled`` setting in the
1298 "figure" directive (disables "figwidth" option).
1299 - "image" directive: added checks for valid values of "align" option,
1300 depending on context. "figure" directive: added specialized
1301 "align" option and attribute on "figure" element.
1302 - Made ":figwidth: image" option of "figure" directive work again.
1303 - Fixed bug with reference names containing uppercase letters
1304 (e.g. ``Name_``) in "target" option of "image" directive.
1306 * docutils/parsers/rst/directives/misc.py:
1308 - Fixed "include" and "raw" directives to catch text decoding
1310 - Allowed whitespace in "include" & "raw" directive paths.
1311 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1312 settings in "include" & "raw" directives.
1314 * docutils/parsers/rst/directives/parts.py:
1316 - Added "header" & "footer" directives.
1317 - Fixed illegal context bug with "contents" directive (topics
1318 allowed within sidebars; not within body elements).
1320 * docutils/parsers/rst/directives/tables.py:
1322 - Added "list-table" directive.
1323 - Caught empty CSV table bug.
1324 - Added support for the ``file_insertion_enabled`` setting in the
1325 "csv-table" directive.
1326 - Added ``stub-columns`` option to "csv-table" and "list-table"
1329 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1330 mappings by Martijn Pieters.
1332 * docutils/readers/standalone.py:
1334 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1335 options to activate or deactivate the SectSubTitle transform.
1337 * docutils/transforms/frontmatter.py:
1339 - Added SectSubTitle transform to promote titles of lone
1340 subsections to subtitles.
1342 * docutils/transforms/references.py:
1344 - Fixed mislocated internal targets bug, by propagating internal
1345 targets to the next node, making use of the newly added support
1346 for multiple names and IDs.
1347 - Fixed duplicate footnote label bug.
1348 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1351 * docutils/writers/html4css1.py:
1353 - Fixed unencoded stylesheet reference bug (characters like "&" in
1354 stylesheet references).
1355 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1357 - Added support for multiple IDs per node by creating empty ``span``
1359 - Added the ``field_name_limit`` & ``option_limit`` settings &
1361 - Added support for table stub columns.
1362 - Added support for the ``align`` attribute on ``figure`` elements.
1363 - Added the ``cloak_email_addresses`` setting & support.
1364 - Added ``html_prolog``, ``html_head``, ``html_body``,
1365 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1366 ``docutils.core.publish_parts``.
1367 - Added support for section subtitles.
1369 * docutils/writers/latex2e.py:
1371 - Fixed tables starting with more than one multirow cell.
1372 - Improved --use-latex-docinfo so that organization/contact/address
1373 fields are lumped with the last author field and appear on the
1375 - Made sure the titlepage is always shown with --use-latex-docinfo,
1376 even if the document has no title.
1377 - Made sure that latex doesn't fill in today's date if no date field
1379 - Added support for section subtitles.
1381 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1382 (under development).
1384 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1386 * docs/api/publisher.txt:
1388 - Added "``publish_parts`` Details" section.
1390 * docutils/dev/repository.txt: Added to project; information about the
1391 Docutils Subversion repository.
1393 * docs/ref/docutils.dtd:
1395 - Added a ``stub`` attribute to the ``colspec`` element via the
1396 ``tbl.colspec.att`` parameter entity.
1397 - Allowed topic elements within sidebars
1398 - Added an ``align`` attribute to the ``figure`` element.
1400 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1404 Release 0.3.7 (2004-12-24)
1405 ==========================
1407 * docutils/frontend.py:
1409 - Added options: --input-encoding-error-handler,
1410 --record-dependencies, --leave-footnote-reference-space,
1412 - Added command-line and config file support for "overrides" setting
1417 - Added support for input encoding error handler.
1419 * docutils/nodes.py:
1421 - Added dispatch_visit and dispatch_departure methods to
1422 NodeVisitor; useful as a hook for Visitors.
1423 - Changed structure of ``line_block``; added ``line``.
1424 - Added ``compound`` node class.
1425 - Added a mechanism for Visitors to transitionally ignore new node
1428 * docutils/utils.py:
1430 - Moved ``escape2null`` and ``unescape`` functions from
1431 docutils/parsers/rst/states.py.
1433 * docutils/parsers/rst/roles.py:
1436 - Changed role function API: the "text" parameter now takes
1437 null-escaped interpreted text content.
1439 * docutils/parsers/rst/states.py:
1441 - Fixed bug where a "role" directive in a nested parse would crash
1442 the parser; the state machine's "language" attribute was not being
1444 - Added support for line block syntax.
1445 - Fixed directive parsing bug: argument-less directives didn't
1446 notice that arguments were present.
1447 - Removed error checking for transitions.
1448 - Added support for multiple classifiers in definition list items.
1449 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1450 - Changed role function API: the "text" parameter now takes
1451 null-escaped interpreted text content.
1452 - Empty sections and documents are allowed now.
1454 * docutils/parsers/rst/directives/__init__.py:
1456 - Added ``encoding`` directive option conversion function.
1457 - Allow multiple class names in class_option conversion function.
1459 * docutils/parsers/rst/directives/body.py:
1461 - Converted the line-block directive to use the new structure.
1462 - Extracted the old line-block functionality to the ``block``
1463 function (still used).
1464 - Added ``compound`` directive (thanks to Lea Wiemann).
1466 * docutils/parsers/rst/directives/misc.py:
1468 - Added "encoding" option to "include" and "raw" directives.
1469 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1470 - Allow multiple class names in the "class" directive.
1472 * docutils/parsers/rst/directives/parts.py:
1474 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1475 options. Thanks to Lele Gaifax.
1477 * docutils/parsers/rst/directives/tables.py:
1479 - Added "encoding" directive to "csv-table" directive.
1480 - Added workaround for lack of Unicode support in csv.py, for
1481 non-ASCII CSV input.
1483 * docutils/transforms/misc.py:
1485 - Fixed bug when multiple "class" directives are applied to a single
1487 - Enabled multiple format names for "raw" directive.
1489 * docutils/transforms/references.py:
1491 - Added support for trimming whitespace from beside substitution
1494 * docutils/transforms/universal.py:
1496 - FinalChecks now checks for illegal transitions and moves
1497 transitions between sections.
1499 * docutils/writers/html4css1.py:
1501 - HTMLTranslator.encode now converts U+00A0 to " ".
1502 - "stylesheet" and "stylesheet_path" settings are now mutually
1504 - Added support for the new line_block/line structure.
1505 - --footnote-references now overrides
1506 --trim-footnote-reference-space, if applicable.
1507 - Added support for ``compound`` elements.
1508 - Enabled multiple format names for "raw" directive.
1509 - ``<p>`` tags of a paragraph which is the only visible child of the
1510 document node are no longer stripped.
1511 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1512 new method ``should_be_compact_paragraph()``.
1513 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1515 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1516 the output if they have their ``class`` attribute set.
1517 - The whole document is now surrounded by a ``<div
1518 class="document">`` element.
1519 - Body-level images are now wrapped by their own ``<div>`` elements,
1520 with image classes copied to the wrapper, and for images which
1521 have the ``:align:`` option set, the surrounding ``<div>`` now
1522 receives a class attribute (like ``class="align-left"``).
1524 * docutils/writers/latex2e.py:
1526 - no newline after depart_term.
1527 - Added translations for some Unicode quotes.
1528 - Added option "font-encoding", made package AE the default.
1529 - "stylesheet" and "stylesheet_path" settings are now mutually
1531 - --footnote-references now overrides
1532 --trim-footnote-reference-space, if applicable.
1533 - The footnote label style now matches the footnote reference style
1534 ("brackets" or "superscript").
1535 - Added support for ``compound`` elements.
1536 - Enabled multiple format names for "raw" directive.
1538 * docs/ref/docutils.dtd:
1540 - Changed structure of the ``line_block`` element; added ``line``.
1541 - Added ``compound`` element.
1542 - Added "ltrim" and "rtrim" attributes to
1543 ``substitution_definition`` element.
1544 - Enabled multiple format names for ``raw`` element.
1545 - Enabled multiple classifiers in ``definition_list_item`` elements.
1547 * docs/ref/rst/directives.txt
1549 - Marked "line-block" as deprecated.
1550 - "Class" directive now allows multiple class names.
1551 - Added "Rationale for Class Attribute Value Conversion".
1552 - Added warning about "raw" overuse/abuse.
1554 * docs/ref/rst/restructuredtext.txt:
1556 - Added syntax for line blocks.
1557 - Definition list items may have multiple classifiers.
1559 * docs/ref/rst/roles.txt:
1563 * tools/stylesheets/default.css:
1565 - Added support for the new line_block structure.
1566 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1569 Release 0.3.5 (2004-07-29)
1570 ==========================
1574 * _`Documentation cleanup/reorganization`.
1576 - Created new subdirectories of docs/:
1578 * ``docs/user/``: introductory/tutorial material for end-users
1579 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1580 * ``docs/api/``: API reference material for client-developers
1581 * ``docs/ref/``: reference material for all groups
1582 * ``docs/howto/``: for component-developers and core-developers
1583 * ``docs/peps/``: Python Enhancement Proposals
1585 - Moved ``docs/*`` to ``docs/user/``.
1586 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1587 ``spec/`` to ``docs/dev``.
1588 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1589 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1590 - Moved ``alternatives.txt``, and ``problems.txt`` from
1591 ``spec/rst/`` to ``docs/dev/rst/``.
1592 - Moved ``reStructuredText.txt``, ``directives.txt``,
1593 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1594 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1595 ``roles.txt``, ``reStructuredText.txt`` to
1596 ``restructuredtext.txt``.
1597 - Moved ``spec/howto/`` to ``docs/howto``.
1599 In order to keep the CVS history of moved files, we supplied
1600 SourceForge with a `script for modifying the Docutils CVS
1603 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1605 After running the cleanup script:
1607 - Added ``docs/index.txt``.
1608 - Added a ``.htaccess`` file to the ``web`` module, containing
1609 redirects for all old paths to new paths. They'll preserve
1610 fragments (the "#name" part of a URL), and won't clutter up the
1611 file system, and will correct the URL in the user's browser.
1612 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1613 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1614 the "To Do" list itself in ``docs/dev/todo.txt``.
1615 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1616 section of ``docs/dev/todo.txt``.
1617 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1618 - Added "How To Report Bugs" to ``BUGS.txt``.
1619 - Went through all the sources and docs (including under web/) and
1620 updated links. Mostly done by Lea Wiemann; thanks Lea!
1621 (Still need to update links in the sandboxes.)
1625 * BUGS.txt: Added to project.
1627 * THANKS.txt: Added to project.
1629 * docutils/__init__.py:
1631 - 0.3.4: Post-release.
1635 - Added special error handling & advice for UnicodeEncodeError.
1636 - Refactored Publisher.publish (simplified exception handling &
1637 extracted debug dumps).
1638 - Renamed "enable_exit" parameter of convenience functions to
1639 "enable_exit_status".
1640 - Enabled traceback (exception propagation) by default in
1641 programmatic convenience functions.
1642 - Now publish_file and publish_cmdline convenience functions return
1643 the encoded string results in addition to their regular I/O.
1644 - Extracted common code from publish_file, publish_string, and
1645 publish_parts, into new publish_programmatically. Extracted
1646 settings code to ``Publisher.process_programmatic_settings``.
1647 - In Publisher.publish, disabled ``settings_overrides`` when
1648 ``settings`` is supplied; redundant.
1650 * docutils/frontend.py:
1652 - Added help text for "--output-encoding-error-handler" and
1653 "--error-encoding-error-handler".
1654 - Renamed "--exit" to "--exit-status".
1655 - Simplified default-setting code.
1657 * docutils/parsers/rst/__init__.py:
1659 - Added "--pep-base-url" and "--rfc-base-url" options.
1661 * docutils/parsers/rst/states.py:
1663 - Made URI recognition more aggressive and intelligent.
1665 * docutils/parsers/rst/directives/__init__.py:
1667 - Added several directive option conversion functions.
1669 * docutils/parsers/rst/directives/body.py:
1671 - Moved "table" directive to tables.py.
1673 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1676 * docutils/writers/latex2e.py:
1678 - Added "--table-style=(standard|booktabs|nolines)"
1679 - figures get "here" option (LaTeX per default puts them at bottom),
1680 and figure content is centered.
1681 - Rowspan support for tables.
1682 - Fix: admonition titles before first section.
1683 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1684 - Replave ``_`` in literal by an underlined blank, because it has the correct
1686 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1687 - A few unicode replacements, if output_encoding != utf
1688 - Add "--graphicx-option".
1689 - Indent literal-blocks.
1690 - Fix: omit ``\maketitle`` when there is no document title.
1692 * docs/index.txt: "Docutils Project Documentation Overview", added to
1695 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1696 Tool", added to project.
1698 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1700 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1702 * docs/dev/policies.txt: Added to project (extracted from
1703 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1705 * docs/dev/release.txt: Added to project (extracted from
1706 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1708 * docs/dev/testing.txt: Added to project.
1710 * docs/dev/website.txt: Added to project (extracted from
1711 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1713 * docs/ref/rst/directives.txt:
1715 - Added directives: "table", "csv-table".
1717 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1718 added to project. 1 page for syntax, and a 1 page reference for
1719 directives and roles. Source text to be used as-is; not meant to be
1722 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1723 with a change of title.
1725 * test/functional/, contents, and test/test_functional.py: Added to
1728 * tools/buildhtml.py: Fixed bug with config file handling.
1730 * tools/html.py: Removed from project (duplicate of rst2html.py).
1732 * tools/pep2html.py: Removed from project (duplicate of Python's
1733 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1734 Docutils-related PEPs in docs/peps/).
1736 * tools/rst2pseudoxml.py: Renamed from publish.py.
1738 * tools/rst2xml.py: Renamed from docutils-xml.py.
1740 * tools/test.txt: Removed from project; moved to
1741 docs/user/rst/demo.txt.
1743 * setup.py: Now also installs ``rst2latex.py``.
1746 Release 0.3.3 (2004-05-09)
1747 ==========================
1749 * docutils/__init__.py:
1751 - 0.3.1: Reorganized config file format (multiple sections); see
1753 - Added unknown_reference_resolvers attribute to TransformSpec.
1754 - 0.3.2: Interpreted text reorganization.
1759 - Catch system messages to stop tracebacks from parsing errors.
1760 - Catch exceptions during processing report & exit without
1761 tracebacks, except when "--traceback" used.
1762 - Reordered components for OptionParser; application comes last.
1763 - Added "config_section" parameter to several methods and functions,
1764 allowing front ends to easily specify their config file sections.
1765 - Added publish_parts convenience function to allow access to individual
1766 parts of a document.
1768 * docutils/examples.py: Added to project; practical examples of
1769 Docutils client code, to be used as-is or as models for variations.
1771 * docutils/frontend.py:
1773 - Added "--traceback" & "--no-traceback" options ("traceback"
1775 - Implemented support for config file reorganization:
1776 ``standard_config_files`` moved from ``ConfigParser`` to
1777 ``OptionParser``; added
1778 ``OptionParser.get_config_file_settings()`` and
1779 ``.get_standard_config_settings()``; support for old "[options]"
1780 section (with deprecation warning) and mapping from old to new
1782 - Reimplemented setting validation.
1783 - Enabled flexible boolean values: yes/no, true/false, on/off.
1784 - Added ``Values``, a subclass of ``optparse.Values``, with support
1785 for list setting attributes.
1786 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1787 thanks to Beni Cherniavsky.
1788 - Added "--no-section-numbering" option.
1792 - Catch IOErrors when opening source & destination files, report &
1793 exit without tracebacks. Added ``handle_io_errors`` parameter to
1794 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1796 * docutils/nodes.py:
1798 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1799 method definitions (via ``exec``) to dynamic assignments (via
1800 ``setattr``); thanks to Roman Suzi.
1801 - Encapsulated visitor dynamic assignments in a function; thanks to
1803 - Added indirect_reference_name attribute to the Targetable
1804 class. This attribute holds the whitespace_normalized_name
1805 (contains mixed case) of a target.
1807 * docutils/statemachine.py:
1809 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1810 - Added ``StringList.get_2D_block``.
1812 * docutils/utils.py:
1814 - Added "level" attribute to SystemMessage exceptions.
1816 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1819 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1822 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1823 Marcelo Huerta San Martin.
1825 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1826 mappings by Lalo Martins.
1828 * docutils/languages/ru.py: Added to project; Russian mappings by
1831 * docutils/parsers/rst/roles.py: Added to project. Contains
1832 interpreted text role functions, a registry for interpreted text
1833 roles, and an API for adding to and retrieving from the registry.
1834 Contributed by Edward Loper.
1836 * docutils/parsers/rst/states.py:
1838 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1839 - Allowed true em-dash character and "---" as block quote
1841 - Added support for <angle-bracketed> complex option arguments
1843 - Fixed handling of backslashes in substitution definitions.
1844 - Fixed off-by-1 error with extra whitespace after substitution
1845 definition directive.
1846 - Added inline markup parsing to field lists' field names.
1847 - Added support for quoted (and unindented) literal blocks.
1848 Driven in part by a bribe from Frank Siebenlist (thanks!).
1849 - Parser now handles escapes in URIs correctly.
1850 - Made embedded-URIs' reference text omittable. Idea from Beni
1852 - Refactored explicit target processing code.
1853 - Added name attribute to references containing the reference name only
1854 through whitespace_normalize_name (no case changes).
1855 - parse_target no longer returns the refname after going through
1856 normalize_name. This is now handled in make_target.
1857 - Fixed bug relating to role-less interpreted text in non-English
1859 - Reorganized interpreted text processing; moved code into the new
1860 roles.py module. Contributed by Edward Loper.
1861 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1862 ``parse_directive_block``.
1864 * docutils/parsers/rst/tableparser.py:
1866 - Reworked for ``StringList``, to support "include" directives in
1869 * docutils/parsers/rst/directives/__init__.py:
1871 - Renamed ``unchanged()`` directive option conversion function to
1872 ``unchanged_required``, and added a new ``unchanged``.
1873 - Catch unicode value too high error; fixes bug 781766.
1874 - Beefed up directive error reporting.
1876 * docutils/parsers/rst/directives/body.py:
1878 - Added basic "table" directive.
1880 * docutils/parsers/rst/directives/images.py:
1882 - Added "target" option to "image" directive.
1883 - Added name attribute to references containing the reference name only
1884 through whitespace_normalize_name (no case changes).
1886 * docutils/parsers/rst/directives/misc.py:
1888 - Isolated the import of the ``urllib2`` module; was causing
1889 problems on SourceForge (``libssl.so.2`` unavailable?).
1890 - Added the "role" directive for declaring custom interpreted text
1893 * docutils/parsers/rst/directives/parts.py:
1895 - The "contents" directive does more work up-front, creating the
1896 "topic" and "title", and leaving the "pending" node for the
1897 transform. Allows earlier reference resolution; fixes subtle bug.
1899 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1900 mappings by Jannie Hofmeyr.
1902 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1903 mappings by Marek Blaha.
1905 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1906 mappings by Marcelo Huerta San Martin.
1908 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1909 Portuguese mappings by Lalo Martins.
1911 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1912 mappings by Roman Suzi.
1914 * docutils/transforms/parts.py:
1916 - The "contents" directive does more work up-front, creating the
1917 "topic" and "title", and leaving the "pending" node for the
1918 transform. Allows earlier reference resolution; fixes subtle bug.
1919 - Added support for disabling of section numbering.
1921 * docutils/transforms/references.py:
1923 - Verifying that external targets are truly targets and not indirect
1924 references. This is because we are now adding a "name" attribute to
1925 references in addition to targets. Note sure if this is correct!
1926 - Added code to hook into the unknown_reference_resolvers list for a
1927 transformer in resolve_indirect_target. This allows the
1928 unknown_reference_resolvers to keep around indirect targets which
1929 docutils doesn't know about.
1930 - Added specific error message for duplicate targets.
1932 * docutils/transforms/universal.py:
1934 - Added FilterMessages transform (removes system messages below the
1935 verbosity threshold).
1936 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1937 to FinalCheckVisitor for application-specific handling of
1938 unresolvable references.
1939 - Added specific error message for duplicate targets.
1941 * docutils/writers/__init__.py:
1943 - Added assemble_parts method to the Writer class to allow for
1944 access to a documents individual parts.
1945 - Documented & set default for ``Writer.output`` attribute.
1947 * docutils/writers/html4css1.py:
1949 - Fixed unicode handling of attribute values (bug 760673).
1950 - Prevent duplication of "class" attribute values (bug report from
1952 - Improved table grid/border handling (prompted by report from Bob
1954 - Added support for table titles.
1955 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1957 - Added functionality to keep track of individual parts of a document
1958 and store them in a dictionary as the "parts" attribute of the writer.
1959 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1960 - Added proper support for the "scale" attribute of the "image"
1961 element. Contributed by Brent Cook.
1962 - Added ``--initial-header-level`` option.
1963 - Fixed bug: the body_pre_docinfo segment depended on there being a
1964 docinfo; if no docinfo, the document title was incorporated into
1965 the body segment. Adversely affected the publish_parts interface.
1967 * docutils/writers/latex2e.py:
1969 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1970 about a missing file.
1971 - Added options and support: ``--compound-enumerators``,
1972 ``--section-prefix-for-enumerators``, and
1973 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1975 - Added option ``--use-verbatim-when-possible``, to avoid
1976 problematic characters (eg, '~' in italian) in literal blocks.
1977 - It's now possible to use four section levels in the `book` and
1978 `report` LaTeX classes. The default `article` class still has
1981 * docs/config.txt: "Docutils Configuration Files", added to project.
1982 Moved config file entry descriptions from tools.txt.
1986 - Moved config file entry descriptions to config.txt.
1988 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1991 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1992 Text Roles", added to project.
1994 * spec/rst/reStructuredText.txt:
1996 - Added description of support for <angle-bracketed> complex option
1997 arguments to option lists.
1998 - Added subsections for indented and quoted literal blocks.
2000 * test: Continually adding & updating tests.
2002 - Added test/test_settings.py & test/data/config_*.txt support
2004 - Added test/test_writers/test_htmlfragment.py.
2006 * test/DocutilsTestSupport.py:
2008 - Refactored LaTeX publisher test suite/case class names to make
2009 testing other writers easier.
2010 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
2011 to test the processing of HTML fragments which use the new
2012 publish_parts convenience function.
2014 * tools/buildhtml.py:
2016 - Added support for the "--prune" option.
2017 - Removed dependency on pep2html.py; plaintext PEPs no longer
2020 * tools/docutils.conf:
2022 - Updated for configuration file reorganization.
2024 * tools/rst2html.py:
2026 - copied from tools/html.py
2030 - added a 'scripts' section to configuration
2031 - added 'tools/rst2html.py' to the scripts section
2034 Release 0.3 (2003-06-24)
2035 ========================
2039 * Renamed "attribute" to "option" for directives/extensions.
2041 * Renamed transform method "transform" to "apply".
2043 * Renamed "options" to "settings" for runtime settings (as set by
2044 command-line options). Sometimes "option" (singular) became
2045 "settings" (plural). Some variations below:
2047 - document.options -> document.settings (stored in other objects as
2049 - option_spec -> settings_spec (not directives though)
2050 - OptionSpec -> SettingsSpec
2051 - cmdline_options -> settings_spec
2052 - relative_path_options -> relative_path_settings
2053 - option_default_overrides -> settings_default_overrides
2054 - Publisher.set_options -> Publisher.get_settings
2058 * COPYING.txt: Added "Public Domain Dedication".
2060 * FAQ.txt: Frequently asked questions, added to project.
2064 - Updated with PyPI Trove classifiers.
2065 - Conditional installation of third-party modules.
2067 * docutils/__init__.py:
2069 - Bumped version to 0.2.1 to reflect changes to I/O classes.
2070 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
2071 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
2072 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
2073 option and its effect on the PEP template & writer.
2074 - Bumped version to 0.2.4 due to changes to the PEP template &
2076 - Bumped version to 0.2.5 to reflect changes to Reporter output.
2077 - Added ``TransformSpec`` class for new transform system.
2078 - Bumped version to 0.2.6 for API changes (renaming).
2079 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
2080 convenience functions.
2081 - Added ``Component.component_type`` attribute.
2082 - Bumped version to 0.2.8 because of the internal parser switch from
2083 plain lists to the docutils.statemachine.StringList objects.
2084 - Bumped version to 0.2.9 because of the frontend.py API changes.
2085 - Bumped version to 0.2.10 due to changes to the project layout
2086 (third-party modules removed from the "docutils" package), and
2087 signature changes in ``io.Input``/``io.Output``.
2088 - Changed version to 0.3.0 for release.
2092 - Made ``publish()`` a bit more convenient.
2093 - Generalized ``Publisher.set_io``.
2094 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
2095 parameters; improved its docstring.
2096 - Added ``publish_file()`` and ``publish_string()``.
2097 - Factored ``Publisher.set_source()`` and ``.set_destination()``
2099 - Added support for "--dump-pseudo-xml", "--dump-settings", and
2100 "--dump-transforms" hidden options.
2101 - Added ``Publisher.apply_transforms()`` method.
2102 - Added ``Publisher.set_components()`` method; support for
2103 ``publish_*()`` conveninece functions.
2104 - Moved config file processing to docutils/frontend.py.
2105 - Added support for exit status ("exit_level" setting &
2106 ``enable_exit`` parameter for Publisher.publish() and convenience
2109 * docutils/frontend.py:
2111 - Check for & exit on identical source & destination paths.
2112 - Fixed bug with absolute paths & "--config".
2113 - Set non-command-line defaults in ``OptionParser.__init__()``:
2114 ``_source`` & ``_destination``.
2115 - Distributed ``relative_path_settings`` to components; updated
2116 ``OptionParser.populate_from_components()`` to combine it all.
2117 - Require list of keys in ``make_paths_absolute`` (was implicit in
2118 global ``relative_path_settings``).
2119 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
2120 "--dump-settings", and "--dump-transforms" hidden options.
2121 - Removed nasty internals-fiddling ``ConfigParser.get_section``
2122 code, replaced with correct code.
2123 - Added validation functionality for config files.
2124 - Added "--error-encoding" option/setting, "_disable_config"
2126 - Added encoding validation; updated "--input-encoding" and
2127 "--output-encoding"; added "--error-encoding-error-handler" and
2128 "--output-encoding-error-handler".
2129 - Moved config file processing from docutils/core.py.
2130 - Updated ``OptionParser.populate_from_components`` to handle new
2131 ``SettingsSpec.settings_defaults`` dict.
2132 - Added support for "-" => stdin/stdout.
2133 - Added "exit_level" setting ("--exit" option).
2137 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
2138 - Added automatic closing to ``FileInput`` and ``FileOutput``.
2139 - Delayed opening of ``FileOutput`` file until ``write()`` called.
2140 - ``FileOutput.write()`` now returns the encoded output string.
2141 - Try to get path/stream name automatically in ``FileInput`` &
2143 - Added defaults for source & destination paths.
2144 - Allow for Unicode I/O with an explicit "unicode" encoding.
2145 - Added ``Output.encode()``.
2146 - Removed dependency on runtime settings; pass encoding directly.
2147 - Recognize Unicode strings in ``Input.decode()``.
2148 - Added support for output encoding error handlers.
2150 * docutils/nodes.py:
2152 - Added "Invisible" element category class.
2153 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2154 modification during a traversal.
2155 - Added element classes: ``line_block``, ``generated``, ``address``,
2156 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2157 ``superscript``, ``subscript``, ``inline``
2158 - Added support for lists of nodes to ``Element.insert()``.
2159 - Fixed parent linking in ``Element.replace()``.
2160 - Added new abstract superclass ``FixedTextElement``; adds
2161 "xml:space" attribute.
2162 - Added support for "line" attribute of ``system_message`` nodes.
2163 - Added support for the observer pattern from ``utils.Reporter``.
2164 Added ``parse_messages`` and ``transform_messages`` attributes to
2165 ``document``, removed ``messages``. Added ``note_parse_message``
2166 and ``note_transform_message`` methods.
2167 - Added support for improved diagnostics:
2169 - Added "document", "source", and "line" internal attributes to
2170 ``Node``, set by ``Node.setup_child()``.
2171 - Converted variations on ``node.parent = self`` to
2172 ``self.setup_child(node)``.
2173 - Added ``document.current_source`` & ``.current_line``
2174 attributes, and ``.note_source`` observer method.
2175 - Changed "system_message" output to GNU-Tools format.
2177 - Added a "rawsource" attribute to the ``Text`` class, for text
2178 before backslash-escape resolution.
2179 - Support for new transform system.
2180 - Reworked ``pending`` element.
2181 - Fixed XML DOM bug (SF #660611).
2182 - Removed the ``interpeted`` element class and added
2183 ``title_reference``, ``abbreviation``, ``acronym``.
2184 - Made substitutions case-sensitive-but-forgiving; moved some code
2186 - Fixed Unicode bug on element attributes (report: William Dode).
2188 * docutils/optik.py: Removed from project; replaced with
2189 extras/optparse.py and extras/textwrap.py. These will be installed
2190 only if they're not already present in the Python installation.
2192 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2193 only if it's not already present in the Python installation.
2195 * docutils/statemachine.py:
2197 - Factored out ``State.add_initial_transitions()`` so it can be
2199 - Converted whitespace-specific "blank" and "indent" transitions
2200 from special-case code to ordinary transitions: removed
2201 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2202 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2203 ``ws_initial_transitions`` attributes.
2204 - Removed ``State.match_transition()`` after merging it into
2206 - Added ``StateCorrection`` exception.
2207 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2208 (moved ``TransitionCorrection`` support there too.)
2209 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2210 ``EOFError`` instead of ``IndexError``.
2211 - Added ``State.no_match`` method.
2212 - Added support for the Observer pattern, triggered by input line
2214 - Added ``strip_top`` parameter to
2215 ``StateMachineWS.get_first_known_indented``.
2216 - Made ``context`` a parameter to ``StateMachine.run()``.
2217 - Added ``ViewList`` & ``StringList`` classes;
2218 ``extract_indented()`` becomes ``StringList.get_indented()``.
2219 - Added ``StateMachine.insert_input()``.
2220 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2221 thanks to) Fred Drake.
2223 * docutils/utils.py:
2225 - Added a ``source`` attribute to Reporter instances and
2226 ``system_message`` elements.
2227 - Added an observer pattern to ``utils.Reporter`` to keep track of
2229 - Fixed bugs in ``relative_path()``.
2230 - Added support for improved diagnostics.
2231 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2232 - Added support for encoding Reporter stderr output, and encoding
2234 - Reporter keeps track of the highest level system message yet
2237 * docutils/languages: Fixed bibliographic field language lookups.
2239 * docutils/languages/es.py: Added to project; Spanish mappings by
2240 Marcelo Huerta San Martin.
2242 * docutils/languages/fr.py: Added to project; French mappings by
2245 * docutils/languages/it.py: Added to project; Italian mappings by
2248 * docutils/languages/sk.py: Added to project; Slovak mappings by
2251 * docutils/parser/__init__.py:
2253 - Added ``Parser.finish_parse()`` method.
2255 * docutils/parser/rst/__init__.py:
2257 - Added options: "--pep-references", "--rfc-references",
2258 "--tab-width", "--trim-footnote-reference-space".
2260 * docutils/parsers/rst/states.py:
2262 - Changed "title under/overline too short" system messages from INFO
2263 to WARNING, and fixed its insertion location.
2264 - Fixed enumerated list item parsing to allow paragraphs & section
2265 titles to begin with enumerators.
2266 - Converted system messages to use the new "line" attribute.
2267 - Fixed a substitution reference edge case.
2268 - Added support for "--pep-references" and "--rfc-references"
2269 options; reworked ``Inliner`` code to make customization easier.
2270 - Removed field argument parsing.
2271 - Added support for short section title over/underlines.
2272 - Fixed "simple reference name" regexp to ignore text like
2273 "object.__method__"; not an anonymous reference.
2274 - Added support for improved diagnostics.
2275 - Reworked directive API, based on Dethe Elza's contribution. Added
2276 ``Body.parse_directive()``, ``.parse_directive_options()``,
2277 ``.parse_directive_arguments()`` methods.
2278 - Added ``ExtensionOptions`` class, to parse directive options
2279 without parsing field bodies. Factored
2280 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2281 ``ExtensionOptions``.
2282 - Improved definition list term/classifier parsing.
2283 - Added warnings for unknown directives.
2284 - Renamed ``Stuff`` to ``Struct``.
2285 - Now flagged as errors: transitions at the beginning or end of
2286 sections, empty sections (except title), and empty documents.
2287 - Updated for ``statemachine.StringList``.
2288 - Enabled recognition of schemeless email addresses in targets.
2289 - Added support for embedded URIs in hyperlink references.
2290 - Added backslash-escapes to inline markup end-string suffix.
2291 - Added support for correct interpreted text processing.
2292 - Fixed nested title parsing (topic, sidebar directives).
2293 - Added special processing of backslash-escaped whitespace (idea
2294 from David Abrahams).
2295 - Made substitutions case-sensitive-but-forgiving; moved some code
2296 to ``docutils.nodes``.
2297 - Added support for block quote attributions.
2298 - Added a kludge to work-around a conflict between the bubble-up
2299 parser strategy and short titles (<= 3 char-long over- &
2300 underlines). Fixes SF bug #738803 "infinite loop with multiple
2301 titles" submitted by Jason Diamond.
2302 - Added explicit interpreted text roles for standard inline markup:
2303 "emphasis", "strong", "literal".
2304 - Implemented "superscript" and "subscript" interpreted text roles.
2305 - Added initial support for "abbreviation" and "acronym" roles;
2307 - Added support for "--trim-footnote-reference-space" option.
2308 - Optional space before colons in directives & hyperlink targets.
2310 * docutils/parsers/rst/tableparser.py:
2312 - Fixed a bug that was producing unwanted empty rows in "simple"
2314 - Detect bad column spans in "simple" tables.
2316 * docutils/parsers/rst/directives: Updated all directive functions to
2319 * docutils/parsers/rst/directives/__init__.py:
2321 - Added ``flag()``, ``unchanged()``, ``path()``,
2322 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2323 directive option helper functions.
2324 - Added warnings for unknown directives.
2325 - Return ``None`` for missing directives.
2326 - Added ``register_directive()``, thanks to William Dode and Paul
2329 * docutils/parsers/rst/directives/admonitions.py:
2331 - Added "admonition" directive.
2333 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2334 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2335 "parsed-literal", "rubric", "epigraph", "highlights" and
2336 "pull-quote" directives.
2338 * docutils/parsers/rst/directives/images.py:
2340 - Added an "align" attribute to the "image" & "figure" directives
2341 (by Adam Chodorowski).
2342 - Added "class" option to "image", and "figclass" to "figure".
2344 * docutils/parsers/rst/directives/misc.py:
2346 - Added "include", "raw", and "replace" directives, courtesy of
2348 - Added "unicode" and "class" directives.
2350 * docutils/parsers/rst/directives/parts.py:
2352 - Added the "sectnum" directive; by Dmitry Jemerov.
2353 - Added "class" option to "contents" directive.
2355 * docutils/parsers/rst/directives/references.py: Added to project.
2356 Contains the "target-notes" directive.
2358 * docutils/parsers/rst/languages/__init__.py:
2360 - Return ``None`` from get_language() for missing language modules.
2362 * docutils/parsers/rst/languages/de.py: Added to project; German
2363 mappings by Engelbert Gruber.
2365 * docutils/parsers/rst/languages/en.py:
2367 - Added interpreted text roles mapping.
2369 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2370 mappings by Marcelo Huerta San Martin.
2372 * docutils/parsers/rst/languages/fr.py: Added to project; French
2373 mappings by William Dode.
2375 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2376 mappings by Nicola Larosa.
2378 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2379 mappings by Miroslav Vasko.
2381 * docutils/readers/__init__.py:
2383 - Added support for the observer pattern from ``utils.Reporter``, in
2384 ``Reader.parse`` and ``Reader.transform``.
2385 - Removed ``Reader.transform()`` method.
2386 - Added default parameter values to ``Reader.__init__()`` to make
2387 instantiation easier.
2388 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2390 * docutils/readers/pep.py:
2392 - Added the ``peps.TargetNotes`` transform to the Reader.
2393 - Removed PEP & RFC reference detection code; moved to
2394 parsers/rst/states.py as options (enabled here by default).
2395 - Added support for pre-acceptance PEPs (no PEP number yet).
2396 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2399 * docutils/readers/python: Python Source Reader subpackage added to
2400 project, including preliminary versions of:
2403 - moduleparser.py: Parser for Python modules.
2405 * docutils/transforms/__init__.py:
2407 - Added ``Transformer`` class and completed transform reform.
2408 - Added unknown_reference_resolvers list for each transformer. This list holds
2409 the list of functions provided by each component of the transformer that
2410 help resolve references.
2412 * docutils/transforms/frontmatter.py:
2414 - Improved support for generic fields.
2415 - Fixed bibliographic field language lookups.
2417 * docutils/transforms/misc.py: Added to project. Miscellaneous
2420 * docutils/transforms/parts.py:
2422 - Moved the "id" attribute from TOC list items to the references
2423 (``Contents.build_contents()``).
2424 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2425 - Added "class" attribute support to ``Contents``.
2427 * docutils/transforms/peps.py:
2429 - Added ``mask_email()`` function, updating to pep2html.py's
2431 - Linked "Content-Type: text/x-rst" to PEP 12.
2432 - Added the ``TargetNotes`` PEP-specific transform.
2433 - Added ``TargetNotes.cleanup_callback``.
2434 - Added title check to ``Headers``.
2436 * docutils/transforms/references.py:
2438 - Added the ``TargetNotes`` generic transform.
2439 - Split ``Hyperlinks`` into multiple transforms.
2440 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2441 - Added check for circular indirect references.
2442 - Made substitutions case-sensitive-but-forgiving.
2444 * docutils/transforms/universal.py:
2446 - Added support for the "--expose-internal-attributes" option.
2447 - Removed ``Pending`` transform classes & data.
2449 * docutils/writers/__init__.py:
2451 - Removed ``Writer.transform()`` method.
2453 * docutils/writers/docutils-xml.py:
2455 - Added XML and doctype declarations.
2456 - Added "--no-doctype" and "--no-xml-declaration" options.
2458 * docutils/writers/html4css1.py:
2460 - "name" attributes only on these tags: a, applet, form, frame,
2462 - Added "name" attribute to <a> in section titles for Netscape 4
2463 support (bug report: Pearu Peterson).
2464 - Fixed targets (names) on footnote, citation, topic title,
2465 problematic, and system_message nodes (for Netscape 4).
2466 - Changed field names from "<td>" to "<th>".
2467 - Added "@" to "@" encoding to thwart address harvesters.
2468 - Improved the vertical whitespace optimization; ignore "invisible"
2469 nodes (targets, comments, etc.).
2470 - Improved inline literals with ``<span class="pre">`` around chunks
2471 of text and `` `` for runs of spaces.
2472 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2473 ``self.docinfo`` segments.
2474 - Added support for "line_block", "address" elements.
2475 - Improved backlinks (footnotes & system_messages).
2476 - Improved system_message output.
2477 - Redefined "--stylesheet" as containing an invariant URL, used
2478 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2480 - Added "--footnote-references" option (superscript or brackets).
2481 - Added "--compact-lists" and "--no-compact-lists" options.
2482 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2483 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2484 - Improved field list rendering.
2485 - Added Docutils version to "generator" meta tag.
2486 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2487 - Improved layout of <pre> HTML source.
2488 - Fixed attribute typo on <colspec>.
2489 - Refined XML prologue.
2490 - Support for no stylesheet.
2491 - Removed "interpreted" element support.
2492 - Added support for "title_reference", "sidebar", "attribution",
2493 "rubric", and generic "admonition" elements.
2494 - Added "--attribution" option.
2495 - Added support for "inline", "subscript", "superscript" elements.
2496 - Added initial support for "abbreviation" and "acronym";
2499 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2503 - Double quotes in literal blocks (special treatment for de/ngerman).
2504 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2505 - Added "--attribution" option.
2506 - Right align attributions.
2508 * docutils/writers/pep_html.py:
2510 - Parameterized output encoding in PEP template.
2511 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2512 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2513 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2515 - Added an override on the "--footnote-references" option.
2516 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2517 - Added Docutils version to "generator" meta tag.
2518 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2522 - Added a "silent" setting for ``buildhtml.py``.
2523 - Added a "Getting Help" section.
2524 - Rearranged the structure.
2525 - Kept up to date, with new settings, command-line options etc.
2526 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2527 - Converted settings table into a definition list.
2529 * docs/rst/quickstart.txt:
2531 - Added a table of contents.
2532 - Added feedback information.
2533 - Added mention of minimum section title underline lengths.
2534 - Removed the 4-character minimum for section title underlines.
2536 * docs/rst/quickref.html:
2538 - Added a "Getting Help" section.
2539 - Added a style to make section title backlinks more subtle.
2540 - Added mention of minimum section title underline lengths.
2541 - Removed the 4-character minimum for section title underlines.
2543 * extras: Directory added to project; contains third-party modules
2544 that Docutils depends on (optparse, textwrap, roman). These are
2545 only installed if they're not already present.
2547 * licenses: Directory added to project; contains copies of license
2548 files for non-public-domain files.
2552 - Changed the focus. It's about DTD elements: structural
2553 relationships, semantics, and external (public) attributes. Not
2554 about the element class library.
2555 - Moved some implementation-specific stuff into ``docutils.nodes``
2557 - Wrote descriptions of all common attributes and parameter
2558 entities. Filled in introductory material.
2559 - Working through the element descriptions: 55 down, 37 to go.
2560 - Removed "Representation of Horizontal Rules" to
2561 spec/rst/alternatives.txt.
2563 * spec/docutils.dtd:
2565 - Added "generated" inline element.
2566 - Added "line_block" body element.
2567 - Added "auto" attribute to "title".
2568 - Changed content models of "literal_block" and "doctest_block" to
2570 - Added ``%number;`` attribute type parameter entity.
2571 - Changed ``%structural.elements;`` to ``%section.elements``.
2572 - Updated attribute types; made more specific.
2573 - Added "address" bibliographic element.
2574 - Added "line" attribute to ``system_message`` element.
2575 - Removed "field_argument" element; "field_name" may contain
2576 multiple words and whitespace.
2577 - Changed public identifier to docutils.sf.net.
2578 - Removed "interpreted" element; added "title_reference",
2579 "abbreviation", "acronym".
2580 - Removed "refuri" attribute from "footnote_reference" and
2581 "citation_reference".
2582 - Added "sidebar", "rubric", "attribution", "admonition",
2583 "superscript", "subscript", and "inline" elements.
2585 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2587 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2589 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2591 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2594 * spec/transforms.txt: Added to project.
2596 * spec/howto: Added subdirectory, for developer how-to docs.
2598 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2599 Elza, edited & extended by David Goodger.
2601 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2604 * spec/rst/alternatives.txt:
2606 - Added "Doctree Representation of Transitions" from
2608 - Updated "Inline External Targets" & closed the debate.
2609 - Added ideas for interpreted text syntax extensions.
2610 - Added "Nested Inline Markup" section.
2612 * spec/rst/directives.txt:
2614 - Added directives: "topic", "sectnum", "target-notes",
2615 "line-block", "parsed-literal", "include", "replace", "sidebar",
2616 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2618 - Formalized descriptions of directive details.
2619 - Added an "align" attribute to the "image" & "figure" directives
2620 (by Adam Chodorowski).
2621 - Added "class" options to "topic", "sidebar", "line-block",
2622 "parsed-literal", "contents", and "image"; and "figclass" to
2625 * spec/rst/interpreted.txt: Added to project. Descriptions of
2626 interpreted text roles.
2628 * spec/rst/introduction.txt:
2630 - Added pointers to material for new users.
2632 * spec/rst/reStructuredText.txt:
2634 - Disambiguated comments (just add a newline after the "::").
2635 - Updated enumerated list description; added a discussion of the
2636 second-line validity checking.
2637 - Updated directive description.
2638 - Added a note redirecting newbies to the user docs.
2639 - Expanded description of inline markup start-strings in non-markup
2641 - Removed field arguments and made field lists a generic construct.
2642 - Removed the 4-character minimum for section title underlines.
2643 - Clarified term/classifier delimiter & inline markup ambiguity
2645 - Added "Embedded URIs".
2646 - Updated "Interpreted Text" section.
2647 - Added "Character-Level Inline Markup" section.
2649 * test: Continually adding & updating tests.
2651 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2652 - Moved test/test_pep/ to test/test_readers/test_pep/.
2653 - Added test/test_readers/test_python/.
2654 - Added test/test_writers/ (Engelbert Gruber).
2658 - Made the ``locale.setlocale()`` calls in front ends
2661 * tools/buildhtml.py:
2663 - Added "--silent" option.
2664 - Fixed bug with absolute paths & "--config".
2665 - Updated for new I/O classes.
2666 - Added some exception handling.
2667 - Separated publishers' setting defaults; prevents interference.
2668 - Updated for new ``publish_file()`` convenience function.
2670 * tools/pep-html-template:
2672 - Allow for "--embed-stylesheet".
2673 - Added Docutils version to "generator" meta tag.
2674 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2675 - Conform to XHTML spec.
2677 * tools/pep2html.py:
2679 - Made ``argv`` a parameter to ``main()``.
2680 - Added support for "Content-Type:" header & arbitrary PEP formats.
2681 - Linked "Content-Type: text/plain" to PEP 9.
2682 - Files skipped (due to an error) are not pushed onto the server.
2683 - Updated for new I/O classes.
2684 - Added ``check_requirements()`` & ``pep_type_error()``.
2685 - Added some exception handling.
2686 - Updated for new ``publish_string()`` convenience function.
2687 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2689 * tools/quicktest.py:
2691 - Added "-V"/"--version" option.
2693 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2695 * tools/unicode2rstsubs.py: Added to project. Produces character
2696 entity files (reSructuredText substitutions) from the MathML master
2699 * tools/editors: Support code for editors, added to project. Contains
2700 ``emacs/restructuredtext.el``.
2702 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2704 - Added style for chunks of inline literals.
2705 - Removed margin for first child of table cells.
2706 - Right-aligned field list names.
2707 - Support for auto-numbered section titles in TOCs.
2708 - Increased the size of inline literals (<tt>) in titles.
2709 - Restored the light gray background for inline literals.
2710 - Added support for "line_block" elements.
2711 - Added style for "address" elements.
2712 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2713 - Improved field list rendering.
2714 - Vertical whitespace improvements.
2715 - Removed "a.target" style.
2717 * tools/stylesheets/pep.css:
2719 - Fixed nested section margins.
2720 - Other changes parallel those of ``../default.css``.
2723 Release 0.2 (2002-07-31)
2724 ========================
2728 - The word "component" was being used ambiguously. From now on,
2729 "component" will be used to mean "Docutils component", as in Reader,
2730 Writer, Parser, or Transform. Portions of documents (Table of
2731 Contents, sections, etc.) will be called "document parts".
2732 - Did a grand renaming: a lot of ``verylongnames`` became
2733 ``very_long_names``.
2734 - Cleaned up imports: no more relative package imports or
2735 comma-separated lists of top-level modules.
2736 - Added support for an option values object which carries default
2737 settings and overrides (from command-line options and library use).
2738 - Added internal Unicode support, and support for both input and
2740 - Added support for the ``docutils.io.IO`` class & subclasses.
2744 * docutils/__init__.py:
2746 - Added ``ApplicationError`` and ``DataError``, for use throughout
2748 - Added ``Component`` base class for Docutils components; implements
2749 the ``supports`` method.
2750 - Added ``__version__`` (thus, ``docutils.__version__``).
2754 - Removed many keyword parameters to ``Publisher.__init__()`` and
2755 ``publish()``; bundled into an option values object. Added
2756 "argv", "usage", "description", and "option_spec" parameters for
2757 command-line support.
2758 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2760 - Reworked I/O model for ``docutils.io`` wrappers.
2761 - Updated ``Publisher.set_options()``; now returns option values
2763 - Added support for configuration files (/etc/docutils.conf,
2764 ./docutils.conf, ~/.docutils).
2765 - Added ``Publisher.setup_option_parser()``.
2766 - Added default usage message and description.
2768 * docutils/frontend.py: Added to project; support for front-end
2769 (command-line) scripts. Option specifications may be augmented by
2770 components. Requires Optik (http://optik.sf.net/) for option
2771 processing (installed locally as docutils/optik.py).
2773 * docutils/io.py: Added to project; uniform API for a variety of input
2776 * docutils/nodes.py:
2778 - Added ``TreeCopyVisitor`` class.
2779 - Added a ``copy`` method to ``Node`` and subclasses.
2780 - Added a ``SkipDeparture`` exception for visitors.
2781 - Renamed ``TreePruningException`` from ``VisitorException``.
2782 - Added docstrings to ``TreePruningException``, subclasses, and
2784 - Improved docstrings.
2785 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2786 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2788 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2789 ``PreDecorative`` mixin.
2790 - Reworked the name/id bookkeeping; to ``document``, removed
2791 ``explicit_targets`` and ``implicit_targets`` attributes, added
2792 ``nametypes`` attribute and ``set_name_id_map`` method.
2793 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2795 - Added ``document.has_name()`` method.
2796 - Fixed DOM generation for list-attributes.
2797 - Added category class ``Labeled`` (used by footnotes & citations).
2798 - Added ``Element.set_class()`` method (sets "class" attribute).
2800 * docutils/optik.py: Added to project. Combined from the Optik
2801 package, with added option groups and other modifications. The use
2802 of this module is probably only temporary.
2804 * docutils/statemachine.py:
2806 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2807 - Added underscores to improve many awkward names.
2808 - In ``string2lines()``, changed whitespace normalizing translation
2809 table to regexp; restores Python 2.0 compatibility with Unicode.
2811 * docutils/urischemes.py:
2813 - Filled in some descriptions.
2814 - Added "shttp" scheme.
2816 * docutils/utils.py:
2818 - Added ``clean_rcs_keywords`` function (moved from
2819 docutils/transforms/frontmatter.py
2820 ``DocInfo.filter_rcs_keywords``).
2821 - Added underscores to improve many awkward names.
2822 - Changed names of Reporter's thresholds:
2823 warning_level -> report_level; error_level -> halt_level.
2824 - Moved ``utils.id()`` to ``nodes.make_id()``.
2825 - Added ``relative_path(source, target)``.
2827 * docutils/languages/de.py: German mappings; added to project. Thanks
2828 to Gunnar Schwant for the translations.
2830 * docutils/languages/en.py: Added "Dedication" bibliographic field
2833 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2836 * docutils/parsers/rst/states.py:
2838 - Added underscores to improve many awkward names.
2839 - Added RFC-2822 header support.
2840 - Extracted the inline parsing code from ``RSTState`` to a separate
2841 class, ``Inliner``, which will allow easy subclassing.
2842 - Made local bindings for ``memo`` container & often-used contents
2843 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2844 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2845 - Added ``MarkupMismatch`` exception; for late corrections.
2846 - Added ``-/:`` characters to inline markup's start string prefix,
2847 ``/`` to end string suffix.
2848 - Fixed a footnote bug.
2849 - Fixed a bug with literal blocks.
2850 - Applied patch from Simon Budig: simplified regexps with symbolic
2851 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2852 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2853 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2854 - Allowed non-ASCII in "simple names" (directive names, field names,
2856 - Converted ``Inliner.patterns.initial`` to be dynamically built
2857 from parts with ``build_regexp()`` function.
2858 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2859 - Updated docstrings.
2860 - Changed "table" to "grid_table"; added "simple_table" support.
2862 * docutils/parsers/rst/tableparser.py:
2864 - Changed ``TableParser`` to ``GridTableParser``.
2865 - Added ``SimpleTableParser``.
2866 - Refactored naming.
2868 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2869 a fallback language for directive names.
2871 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2872 directive to use a ``pending`` element, used only by HTML writers.
2874 * docutils/parsers/rst/directives/parts.py: Renamed from
2877 - Added "backlinks" attribute to "contents" directive.
2879 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2880 project by Adam Chodorowski.
2882 * docutils/readers/__init__.py: Gave Readers more control over
2883 choosing and instantiating Parsers.
2885 * docutils/readers/pep.py: Added to project; for PEP processing.
2887 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2888 requires a ``component`` parameter.
2890 * docutils/transforms/components.py: Added to project; transforms
2891 related to Docutils components.
2893 * docutils/transforms/frontmatter.py:
2895 - In ``DocInfo.extract_authors``, check for a single "author" in an
2896 "authors" group, and convert it to a single "author" element.
2897 - Added support for "Dedication" and generic bibliographic fields.
2899 * docutils/transforms/peps.py: Added to project; PEP-specific.
2901 * docutils/transforms/parts.py: Renamed from old components.py.
2903 - Added filter for `Contents`, to use alt-text for inline images,
2904 and to remove inline markup that doesn't make sense in the ToC.
2905 - Added "name" attribute to TOC topic depending on its title.
2906 - Added support for optional TOC backlinks.
2908 * docutils/transforms/references.py: Fixed indirect target resolution
2909 in ``Hyperlinks`` transform.
2911 * docutils/transforms/universal.py:
2913 - Changed ``Messages`` transform to properly filter out system
2914 messages below the warning threshold.
2915 - Added ``Decorations`` transform (support for ``--generator``,
2916 ``--date``, ``--time``, ``--source-link`` options).
2918 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2919 Engelbert Gruber's PDF writer.
2921 * docutils/writers/html4css1.py:
2923 - Made XHTML-compatible (switched to lowercase element & attribute
2924 names; empty tag format).
2925 - Escape double-dashes in comment text.
2926 - Improved boilerplate & modularity of output.
2927 - Exposed modular output in Writer class.
2928 - Added a "generator" meta tag to <head>.
2929 - Added support for the ``--stylesheet`` option.
2930 - Added support for ``decoration``, ``header``, and ``footer``
2932 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2933 translation table to regexp; restores Python 2.0 compatibility
2935 - Added the translator class as instance variable to the Writer, to
2936 make it easily subclassable.
2937 - Improved option list spacing (thanks to Richard Jones).
2938 - Modified field list output.
2939 - Added backlinks to footnotes & citations.
2940 - Added percentage widths to "<col>" tags (from colspec).
2941 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2942 "<span>" changed to "<var>".
2943 - Inline literals: "<code>" changed to "<tt>".
2944 - Many changes to optimize vertical space: compact simple lists etc.
2945 - Add a command-line options & directive attributes to control TOC
2946 and footnote/citation backlinks.
2947 - Added support for optional footnote/citation backlinks.
2948 - Added support for generic bibliographic fields.
2949 - Identify backrefs.
2950 - Relative URLs for stylesheet links.
2952 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2953 PEPs (subclass of ``html4css1.Writer``).
2955 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2957 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2958 of the Docutils internal doctree in XML.
2960 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2964 - Changed the title to "The Docutils Document Tree".
2965 - Added "Hyperlink Bookkeeping" section.
2967 * spec/docutils.dtd:
2969 - Added ``decoration``, ``header``, and ``footer`` elements.
2970 - Brought ``interpreted`` element in line with the parser: changed
2971 attribute "type" to "role", added "position".
2972 - Added support for generic bibliographic fields.
2974 * spec/notes.txt: Continual updates. Added "Project Policies".
2976 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2979 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2981 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2982 mailing list discussions.
2984 * spec/pep-0287.txt:
2986 - Renamed to "reStructuredText Docstring Format".
2988 - Reworked Q&A as an enumerated list.
2989 - Converted to reStructuredText format.
2991 * spec/pysource.dtd:
2993 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2995 * spec/pysource.txt: Removed from project. Moved much of its contents
2998 * spec/rst/alternatives.txt:
3000 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
3001 - Added "Inline External Targets" section.
3003 * spec/rst/directives.txt:
3005 - Added "backlinks" attribute to "contents" directive.
3007 * spec/rst/problems.txt:
3009 - Updated the Enumerated List Markup discussion.
3010 - Added new alternative table markup syntaxes.
3012 * spec/rst/reStructuredText.txt:
3014 - Clarified field list usage.
3015 - Updated enumerated list description.
3016 - Clarified purpose of directives.
3017 - Added ``-/:`` characters to inline markup's start string prefix,
3018 ``/`` to end string suffix.
3019 - Updated "Authors" bibliographic field behavior.
3020 - Changed "inline hyperlink targets" to "inline internal targets".
3021 - Added "simple table" syntax to supplement the existing but
3022 newly-renamed "grid tables".
3023 - Added cautions for anonymous hyperlink use.
3024 - Added "Dedication" and generic bibliographic fields.
3026 * test: Made test modules standalone (subdirectories became packages).
3028 * test/DocutilsTestSupport.py:
3030 - Added support for PEP extensions to reStructuredText.
3031 - Added support for simple tables.
3032 - Refactored naming.
3034 * test/package_unittest.py: Renamed from UnitTestFolder.py.
3036 - Now supports true packages containing test modules
3037 (``__init__.py`` files required); fixes duplicate module name bug.
3039 * test/test_pep/: Subpackage added to project; PEP testing.
3041 * test/test_rst/test_SimpleTableParser.py: Added to project.
3045 - Updated html.py and publish.py front-end tools to use the new
3046 command-line processing facilities of ``docutils.frontend``
3047 (exposed in ``docutils.core.Publisher``), reducing each to just a
3049 - Added ``locale.setlocale()`` calls to front-end tools.
3051 * tools/buildhtml.py: Added to project; batch-generates .html from all
3052 the .txt files in directories and subdirectories.
3054 * tools/default.css:
3056 - Added support for ``header`` and ``footer`` elements.
3057 - Added styles for "Dedication" topics (biblio fields).
3059 * tools/docutils.conf: A configuration file; added to project.
3061 * tools/docutils-xml.py: Added to project.
3063 * tools/pep.py: Added to project; PEP to HTML front-end tool.
3065 * tools/pep-html-template: Added to project.
3067 * tools/pep2html.py: Added to project from Python (nondist/peps).
3068 Added support for Docutils (reStructuredText PEPs).
3070 * tools/quicktest.py:
3072 - Added the ``--attributes`` option, hacked a bit.
3073 - Added a second command-line argument (output file); cleaned up.
3075 * tools/stylesheets/: Subdirectory added to project.
3077 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
3080 Release 0.1 (2002-04-20)
3081 ========================
3083 This is the first release of Docutils, merged from the now inactive
3084 reStructuredText__ and `Docstring Processing System`__ projects. For
3085 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
3086 `DPS HISTORY`__ files.
3088 __ http://structuredtext.sourceforge.net/
3089 __ http://docstring.sourceforge.net/
3090 __ http://structuredtext.sourceforge.net/HISTORY.html
3091 __ http://docstring.sourceforge.net/HISTORY.html
3093 General changes: renamed 'dps' package to 'docutils'; renamed
3094 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
3095 the test suites (reStructuredText's test/test_states renamed to
3096 test/test_rst); and all modifications required to make it all work.
3098 * docutils/parsers/rst/states.py:
3100 - Improved diagnostic system messages for missing blank lines.
3101 - Fixed substitution_reference bug.
3107 indent-tabs-mode: nil
3108 sentence-end-double-space: t