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.
23 * docutils/parsers/rst/__init__.py
25 - Fix [ 233 ] Change the base URL for the :rfc: role.
27 * docutils/parsers/rst/directives/tables.py
29 - Patch [ 120 ] tables accept option widths: list of relative widths, 'auto'
32 * docutils/utils/math/math2html.py
34 - Add ``\colon`` macro, fix spacing around colons. Fixes [ 246 ].
35 - New upstream version (additional macros, piecewise integrals and sums).
37 * docutils/writers/html_base/
39 - New HTML writer generating clean, polyglot_ markup conforming to
40 `HTML 5`_ and compatible with `XHTML 1.0`_ Transitional.
42 New stylesheet ``html-base.css`` for default layout using CSS 2.1 rules.
44 Also base for the xhtml11_ writer.
46 * docutils/writers/html4css1/__init__.py
48 - Add "docutils" to class values for "container" object to address [ 267 ].
49 - Apply patch [ 119 ] by Anatoly Techtonik: use absolute paths for
50 ``default_stylesheet_path`` and ``default_template_path``.
51 - Fix [ 266 ] creating labels/class values in description list items.
52 - Do not use <sup> and <sub> tags inside <pre> (parsed-literal blocks).
54 * docutils/writers/latex2e/__init__.py
56 - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
57 admonitions and docinfo.
59 - Use absolute path for ``default_template_path``.
61 - Removed deprecated options ``--use-latex-footnotes`` and
62 ``--figure-footnotes``.
64 - Cleaner LaTeX code for enumerations and literal blocks.
66 - Use "hyperref" package together with "bookmark" (improved hyperlinking
69 * docutils/writers/odf_odt/__init__.py
71 - remove decode.encode of filename stored in zip.
73 * docutils/writers/xetex/__init__.py
75 - LuaLaTex compatibility: do not load "xunicode".
77 * docutils/writers/_`xhtml11`/
79 - New HTML writer generating `XHTML 1.1`_ styled with CSS2.1
80 Moved to the docutils core from sandbox/html4strict.
85 - New front-ends ``rst2xhtml.py`` and ``rst2html5.py`` for the
86 corresponding writers.
90 - Test py26, py27, py33 and py34.
92 To use, install the ``tox`` package via pip or easy_install and use
93 tox from the project root directory.
95 .. _polyglot: http://www.w3.org/TR/html-polyglot/
96 .. _HTML 5: http://www.w3.org/TR/html5/
97 .. _XHTML 1.0: http://www.w3.org/TR/xhtml1/
98 .. _XHTML 1.1: http://www.w3.org/TR/xhtml11/
101 Release 0.12 (2014-07-06)
102 =========================
104 * docs/ref/rst/directives.txt
106 - Update "math" and "csv-table" descriptions.
108 * docutils/parsers/rst/directives/images.py
110 - Fix [ 258 ] figwidth="image" generates unitless width value.
112 * docutils/parsers/rst/states.py
114 - Improve error report when a non-ASCII character is specified as
115 delimiter, quote or escape character under Python 2.
116 Fixes [ 249 ] and [ 250 ].
118 * docutils/writers/html4css1/__init__.py
120 - Don't add newline after inline math.
121 Thanks to Yury G. Kudryashov for the patch.
123 * docutils/writers/latex2e/__init__.py
125 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
126 - Apply [ 116 ] by Kirill Smelkov. Don't hardcode \large for subtitle.
128 * docutils/writers/odf_odt/__init__.py
130 - Apply patch by Jakub Wilk to fix bug [ 100 ].
132 * test/test_error_reporting.py
134 - Fix [ 223 ] by removing redundant tests we do not have control over.
138 - Apply [ 115 ] respect fixed 2to3 string literal conversion behavior.
140 Release 0.11 (2013-07-22)
141 =========================
145 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
146 - Support embedded aliases within hyperlink references.
147 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
148 language module) before global search.
152 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
154 * docutils/parsers/rst/directives/__init__.py
156 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
158 * docutils/parsers/rst/directives/images.py
160 - Apply [ 3599485 ] node source/line information for sphinx translation.
162 * docutils/parsers/rst/directives/tables.py
164 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
166 * docutils/parsers/rst/states.py
168 - Fix [ 157 ] Line block parsing doesn't like system message.
169 - Always import our local copy of roman.py (report Larry Hastings).
171 * docutils/transforms/references.py
173 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
175 * docutils/utils/__init__.py
177 - Fix [ 3596884 ] exception importing ``docutils.io``.
179 * docutils/writers/html4css1/__init__.py
181 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
182 - New setting `stylesheet_dirs`: Comma-separated list of directories
183 where stylesheets are found. Used by `stylesheet_path` when expanding
184 relative path arguments.
185 - New default for math-output_: ``HTML math.css``.
186 - Avoid repeated class declarations in html4css1 writer
187 (modified version of patch [ 104 ]).
189 .. _math-output: docs/user/config.html#math-output
191 * docutils/writers/latex2e/__init__.py
193 - Drop the simple algorithm replacing straight double quotes with
194 English typographic ones.
195 Activate the SmartQuotes_ transform if you want this feature.
196 - Fix literal use of babel shorthands (straight quote, tilde, ...).
197 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
198 - New setting `stylesheet_dirs`.
200 .. _SmartQuotes: docs/user/config.html#smart-quotes
202 * docutils/writers/manpage.py
204 - Fix [3607063] handle lines starting with a period.
205 - Fix option separating comma was bold (thanks to Bill Morris).
207 Release 0.10 (2012-12-16)
208 =========================
212 - Dropped support for Python 2.3.
213 - ``docutils/math``, ``docutils/error_reporting.py``, and
214 ``docutils/urischemes.py`` moved to the utils package.
215 - Fix [3541369] Relative __import__ also with Python 3.3.
216 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
217 and parsers for Python 2.7 up.
218 - Fix import of PIL.Image.
219 - Change default of "syntax highlight" option to "long",
220 basic syntax highlight styles for LaTeX and HTML.
224 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
225 option is ignored and will be removed in a future release.
226 - Fix Py3k error writing to stdout with encoding differing from default.
227 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
229 * docutils/parsers/rst/directives/misc.py
231 - Fix [ 3546533 ] Unicode error with `date` directive.
233 * docutils/transforms/universal.py
235 - SmartQuotes transform for typographic quotes and dashes.
237 * docutils/utils/__init__.py
239 - normalize_language_tag() now returns `BCP 47`_ conformant tags
240 with subtags separated by ``-``.
242 * docutils/writers/html4css1/__init__.py
244 - Use ``<code>`` tag for inline "code",
245 do not drop nested inline nodes (syntax highlight tokens).
246 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
247 - No line break after opening inline math tag.
249 * docutils/writers/manpage.py
251 - Apply [ 3527401 ] addmonition's don't preserve indentation
252 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
254 * docutils/writers/xetex/__init__.py
256 - Apply [ 3555160 ] ensure order of "otherlanguages".
257 - Fix section numbering by LaTeX.
259 * docutils/writers/s5_html/__init__.py
261 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
263 * docutils/writers/s5_html/docutils_xml.py
265 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
269 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
271 * tools/test/test_buildhtml.py
273 - Fix [ 3521167 ] allow running in any directory.
274 - Fix [ 3521168 ] allow running with Python 3.
277 Release 0.9.1 (2012-06-17)
278 ==========================
282 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
283 installed in the PYTHONPATH. Converted tests are now
284 stored in ``test3/``, tools no longer need conversion.
286 If you installed one of Docutils versions 0.7 ... 0.9 with
287 ``setup.py install`` under Python 3, remove the spurious
288 ``test/`` and ``tools/`` directories in the site library root.
292 - Make tests independent from the location of the ``test/`` directory.
293 - Use converted sources (from the ``build/`` directory) for tests under
298 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
302 - Fix writing binary data to sys.stdout under Python 3 (allows
303 ``rst2odt.py`` to be used with output redirection).
305 * docutils/parsers/rst/directives/misc.py
307 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
308 ``locale == C`` and 8-bit char in path argument of `include` directive.
312 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
315 Release 0.9 (2012-05-02)
316 ========================
320 - New reStructuredText "code" role and directive and "code" option
321 of the "include" directive with syntax highlighting by Pygments_.
322 - Fix parse_option_marker for option arguments containing ``=``.
323 - Fix [ 2993756 ]: import Python Imaging Library's Image module
324 via ``import PIL`` as starting with PIL 1.2,
325 "PIL lives in the PIL namespace only" (announcement__).
327 .. _Pygments: http://pygments.org/
328 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
332 - Fix [ 2971827 ] and [ 3442827 ]
333 extras/roman.py moved to docutils/utils/roman.py
335 * docutils/frontend.py
337 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
341 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
342 - `mode` argument for FileOutput avoids code replication in
344 - New exceptions InputError and OutputError for IO errors in
345 FileInput/FileOutput.
349 - No "hard" system exit on file IO errors: catch and report them in
350 `Publisher.reportException` instead. Allows handling by a calling
351 application if the configuration setting `traceback` is True.
353 * docutils/utils.py -> docutils/utils/__init__.py
355 - docutils.utils is now a package (providing a place for sub-modules)
357 .. note:: docutils/math, docutils/error_reporting.py, and
358 docutils/urischemes.py will move to the utils package in the next
359 release, too. See RELEASE-NOTES__
361 __ RELEASE-NOTES.html
363 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
364 errors recording non-ASCII filenames (fixes [ 3434355 ]).
366 - Fix relative_path() with source=None and `unicode` target.
368 * docutils/parsers/rst/states.py
370 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
371 characters and "international" quotes around inline markup.
372 - Use `field_marker` pattern to look for start of a
373 directive option block (fixes [ 3484857 ]).
375 * docutils/parsers/rst/tableparser.py
377 - Fix [ 2926161 ] for simple tables.
378 (Combining chars in grid tables still contribute to cell width.)
380 * docutils/writers/latex2e/__init__.py
382 - Support the `abbreviation` and `acronym` standard roles.
383 - Record only files required to generate the LaTeX source as dependencies.
384 - Fix handling of missing stylesheets.
385 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
386 when suppressing LaTeX section numbering.
387 - Use ``\DUtitle`` for unsupported section levels
388 - Apply [ 3512791 ] do not compare string literals with "is"
390 * docutils/writers/xetex/__init__.py
392 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
394 * docutils/writers/html4css1/__init__.py
396 - Change default for `math-output` setting to MathJax.
397 - Fix handling of missing stylesheets.
399 * docutils/writers/docutils_xml.py
401 - Use the visitor pattern with default_visit()/default_depart() methods
402 instead of minidom to facilitate special handling of selected nodes.
403 - Support raw XML (inserted as-is inside a <raw></raw> node).
405 * docutils/writers/manpage.py
407 - Do not emit comment line with trailing blank. Problematic for VCS.
409 Release 0.8.1 (2011-08-30)
410 ==========================
414 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
415 and [ 3395920 ] (correct copyright info for rst.el).
419 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
421 * docutils/writers/latex2e/__init__.py
423 - Clean up Babel language setting. Restores Sphinx compatibility.
425 Release 0.8 (2011-07-07)
426 ========================
430 - Handle language codes according to `BCP 47`_.
431 - If the specified language is not supported by Docutils,
432 warn and fall back to English.
433 - Math support: reStructuredText "math" role and directive,
434 ``math`` and ``math_block`` doctree elements.
435 - Decode command line arguments with the locale's preferred encoding
436 (to allow, e.g., ``--title=Dornröschen``).
437 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
438 - New sub-module `error_reporting`: handle encoding/decoding errors
439 when reporting exceptions.
440 - Some additions to the Docutils core are released under the 2-Clause BSD
441 license, see COPYING_ for details.
443 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
444 .. _COPYING: COPYING.html
448 - Most directives now support a "name" option that attaches a
451 - Directive content may start on the first line also when the directive
452 type accepts options.
454 * docs/dev/policies.txt:
456 - Recommend the 2-Clause BSD license
457 (http://www.spdx.org/licenses/BSD-2-Clause)
458 for code that is kept under the author's copyright.
460 * tools/buildhtml.py:
462 - Fix ``--local`` switch.
464 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
466 * docutils/writers/html4css1/__init__.py
468 - Set "lang" argument for objects with class argument
469 "language-<language tag>".
470 - New setting "math-output" with support for HTML, MathML, and LaTeX.
472 * docutils/writers/latex2e/__init__.py
474 - Fix [ 3043986 ] AttributeError using :local: with table of content.
475 - Place title data in the document preamble.
476 - Load `babel` package only if required.
477 - Update list of supported languages.
478 - New config setting "hyperref-options".
479 No hard-coded "unicode" hyperref option (clash with xetex).
480 - Set language for custom roles, paragraphs, block-quotes, and
481 line-quotes with class argument "language-<language tag>".
482 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
483 - Convert image URI to a local file path.
484 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
485 has more than one paragraph (Wolfgang Scherer).
486 - \leavevmode before longtable only when needed (prevents spurious vspace)
487 - do not advance table counter for tables without caption
489 * docutils/writers/xetex/__init__.py
491 - New writer generating LaTeX code for compiling with ``xelatex``.
493 A separate writer (inheriting from latex2e) instead of a ``--xetex``
494 option allows separate config options for XeTeX vs. LaTeX2e.
496 * docutils/writers/manpage.py
498 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
499 - Fix: vertical space cleaning for option group ``.``.
501 * tools/editors/emacs/rst.el:
503 - Fix [ 3001100 ] does not handle spaces in filenames
504 (thanks to Jakub Wilk)
508 - strip whitespace from stylesheet arguments
509 - exclude combining chars from column_width()
510 (partial fix for [ 2926161 ])
512 * docutils/parsers/rst/directives/misc.py:
514 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
519 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
520 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
522 Release 0.7 (2010-07-07)
523 ========================
527 - Fix [ 2881769 ] setup configuration.
528 - Fix [ 2788716 ] reporting problems in included files.
532 - FileInput opens files as text files with universal newline support
533 (mode "rU", configurable with the new optional argument "mode").
537 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
541 - Fix [ 2923723 ] let decode_path() tolerate path == None
543 * docutils/writers/html4css1/__init__.py
545 - Support SVG and SWF images (thanks to Stefan Rank).
546 - Generate valid XHTML for centered images with targets.
547 Use CSS classes instead of "align" tags for image alignment.
549 * docutils/writers/latex2e/__init__.py
551 - Use `transforms.writer_aux.Admonitions` to "normalize" special
553 - Use the ``\url`` command for URLs (breaks long URLs instead of
554 writing into the margin).
555 - Preserve runs of spaces in `inline literals`__.
556 - Deprecate ``figure_footnotes`` setting.
557 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
558 - New ``latex_preamble`` setting.
559 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
560 - Fix hyperlink targets (labels) for images, figures, and tables.
561 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
562 - Apply [ 2961991 ] Call hyperref with unicode option.
563 - Drop the special `output_encoding`__ default ("latin-1").
564 The Docutils wide default (usually "UTF-8") is used instead.
565 - Render inline markup in document title and subtitle.
566 - Fix numbering depth with LaTeX section numbering.
567 - Update Unicode -> LaTeX translations.
568 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
570 __ docs/ref/restructuredtext.html#inline-literals
571 __ docs/user/config.html#docutils-footnotes
572 __ docs/user/config.html#output_encoding
574 * docutils/writers/manpage.py
576 - Fix: supported attribute (thanks to peter2108).
577 - Remove trailing blanks in code (keep in sync with mercurial version).
578 - Titles level 1, that is ``.SH``, always uppercase.
579 - Apply patch from mg: literal text should be bold in man-pages.
583 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
588 - Python 3 support: copy test/ and tools/ to the build-dir
589 and convert Python sources with 2to3.
592 Release 0.6 (2009-10-11)
593 ========================
597 - Docutils is now compatible with Python versions from 2.3 up to 2.6
598 and convertible to 3.1 code.
600 + Node.__nonzero__ returns True instead of 1.
601 + use os.walk instead os.path.walk.
602 + minimize "types" module where possible.
603 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
604 + Text nodes now subclass unicode rather than UserString
605 (which is gone in python 3.0).
606 + 3.0 compatibility module docutils._compat
608 + Drop 2.2 compatibility workarounds.
609 + Drop extras/optparse.py and extras/textwrap.py
610 (stdlib modules since 2.3).
612 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
613 - Unix man page export: manpage writer moved from sandbox to Doctutils
616 - Apply [ 1719345 ] Galician translation
617 - Apply [ 1905741 ] Polish translation
618 - Apply [ 1878977 ] make_id(): deaccent characters.
619 - Apply [ 2029251 ] return nonzero when tests fail.
620 - Fix [ 1692788 ] allow UTF-8 in style sheets.
621 - Fix [ 2781629 ] support non-ASCII chars in file names.
622 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
623 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
624 - Fix [ 2821266 ] --strict option works now like --halt=info.
625 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
626 - Fix [ 1627229 ] hyperlink references in substitutions.
628 - The "newlatex" writer is orphaned.
632 - Documented Unicode characters allowed as inline markup openers,
633 closers, and delimiters.
634 - Allow units for all length specifications.
635 - Allow percent sign in "scale" argument of "figure" and "image" directives.
636 - Bugfix: The "figalign" argument of a figure now works as intended
637 (aligning the figure, not its contents).
638 - Align images with class "align-[right|center|left]"
639 (allows setting the alignment of an image in a figure).
643 - Added ``Element.__contains__`` method, for the in-operator.
645 * docutils/parsers/rst/states.py:
647 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
648 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
649 " " (non-breaking space), and "¡ ¿" openers.
651 * docutils/parsers/directives/misc.py:
653 - Added ``start-line`` and ``end-line`` options to "include"
654 directive to select a range of lines.
655 - Hard tabs in literal inclusions are replaced by spaces. This is
656 configurable via the new ``tab-width`` option of the "include" directive
657 (a negative tab-width prevents tab expansion).
661 - Add ``get_stylesheet_list`` function.
662 - Apply [ 2834836 ] print info at halt
664 * docutils/transforms/universal.py:
666 - Raise default priority of StripClasses to exclude stripped classes from
669 * docutils/writers/html4css1/__init__.py:
671 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
672 separated list of stylesheets.
673 - Address [ 1938891 ] Inline literal text creates "pre" span only when
674 needed to prevent inter-word line wraps.
675 - Use `translate` method instead of repeated `replace` calls.
676 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
677 classes to allow CSS styling that does not interfere with other
678 table-using constructs (field lists, citations, ...).
680 * docutils/writers/newlatex2e/__init__.py:
682 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
684 * docutils/writers/latex2e/__init__.py (see also
685 `<docs/user/docutils-05-compat.sty.html>`__) :
687 - Add ``--embed-stylesheet`` option.
688 - Apply [ 1474017 ] image vertical alignment is reversed.
689 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
690 - Change: has_key for dictionaries (not Nodes) to in-operator.
691 - Merge adjacent citations into one latex cite command.
692 - Failsave implementation of custom roles. LaTeX compilation now ignores
693 unknown classes instead of aborting with an error.
694 - Support custom roles based on standard roles.
695 - LaTeX packages can be used as ``--stylesheet`` arguments without
696 restriction. (A style sheet is now referenced with the ``\usepackage``
697 command, if it ends with ``.sty`` or has no extension.)
698 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
699 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
700 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
701 2005-02-04 as a configurable length unit).
702 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
703 if font-encoding is set to ''. LaTeX defaults to OT1 then.
704 - Set sub- and superscript role argument in text mode not as math.
705 Use a custom role based on sub-/superscript if you want italic shape.
706 - Shorter preamble and less dependencies: Load packages and define macros
707 only if required in the document.
708 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
709 - New custom environments and commands with optional "classes" argument.
710 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
711 - Better conformance to Docutils specifications with ``--use-latex-toc``.
712 Support for LaTeX generated ToC also with unnumbered sections.
713 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
714 section numbering by LaTeX.
715 - Use default font in admonitions and sidebar.
716 - Align of image in a figure defaults to 'center'.
717 - Bugfix: Newlines around targets and references prevent run-together
719 - Fix internal hyperlinks.
720 - Use class defaults for page margins ('typearea' now optional).
721 - Float placement made configurable, default changed to "here definitely".
722 - Typeset generic topic as "quote block with title".
723 - Use template (file and configuration option).
724 - In the default template, load cmap.sty (fix text extraction in PDF) and
725 fixltx2e.sty (LaTeX patches, \textsubscript).
726 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
727 - Use `translate` instead of repeated `replace` calls for text encoding.
728 - Hyperlinked footnotes and support for symbol footnotes and
729 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
730 - Complete pairs of binary options
731 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
732 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
734 - font-encoding: "T1" (formerly implicitely set by 'ae').
735 - use-latex-toc: true (ToC with page numbers).
736 - use-latex-footnotes: true (no mixup with figures).
738 * docutils/writers/manpage.py
740 - Do not print version at document end, this is done by the viewer.
741 - Do not print date at document end, this is done by the viewer.
742 - Fix storage of docinfo fields for none standard fields.
744 * docutils/tools/rst2man.py
746 Release 0.5 (2008-06-25)
747 ========================
749 * docutils/languages/he.py: Added to project: Hebrew mappings by
752 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
753 mappings by Meir Kriheli.
755 * docutils/frontend.py:
757 - Configuration files are now assumed and required to be
759 - Paths of applied configuration files are now recorded in the
760 runtime setting ``_config_files`` (accessible via
761 ``--dump-settings``).
762 - Added ``--strip-elements-with-class`` and ``--strip-class``
763 options (``strip_elements_with_classes`` and ``strip_classes``
768 - Added code to determine the input encoding from data: encoding
769 declarations or the presence of byte order marks (UTF-8 & UTF-16).
770 - Added support for IronPython 1.0.
774 - Added ``document.__getstate__`` method, for pickling.
776 * docutils/parsers/rst/states.py:
778 - Allow ``+`` and ``:`` in reference names.
779 - Unquoted targets beginning with an underscore (``.. __target:
780 URI``) are no longer accepted.
781 - Added support for multiple attributions in a physical block quote
782 (indented text block), dividing it into multiple logical block
784 - Added support for unicode bullets in bullet lists: "•", "‣", and
786 - Added support for new object-oriented directive interface,
787 retaining compatibility to the old functional interface.
788 - Added support for throwing ``DirectiveError``'s from within
791 * docutils/parsers/rst/__init__.py:
793 - Added ``Directive`` base class.
794 - Added ``DirectiveError`` base class.
795 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
798 * docutils/parsers/directives/:
800 - Refactored all reStructuredText directives to use the new
801 object-oriented directive interface. Errors are now (mostly)
802 thrown using the new ``DirectiveError`` class.
804 * docutils/parsers/directives/misc.py:
806 - Added ``start-after`` and ``end-before`` options to ``include``
807 directive; thanks to Stefan Rank.
809 * docutils/transforms/universal.py:
811 - Added ``StripClassesAndElements`` transform to remove from the
812 document tree all elements with classes in
813 ``settings.strip_elements_with_classes`` and all "classes"
814 attribute values in ``self.document.settings.strip_classes``.
816 * docutils/transforms/writer_aux.py:
818 - Added ``Admonitions`` transform to transform specific admonitions
819 (like ``note``, ``warning``, etc.) into generic admonitions with a
822 * docutils/writers/html4css1/__init__.py:
824 - Moved template functionality from the PEP/HTML writer here.
825 - Expanded the fragments available in the ``parts`` attribute.
826 - Moved ``id`` attributes from titles to surrounding ``div``
828 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
829 universally supported now).
830 - ``template.txt`` is now opened in text mode instead of binary mode
831 (to ensure Windows compatibility).
832 - ``a`` elements now have an "internal" or "external" class,
833 depending on reference type.
835 * docutils/writers/html4css1/template.txt: Added to project.
837 * docutils/writers/pep_html/:
839 - Moved template functionality to the HTML writer.
841 * docutils/writers/s5_html/__init__.py:
843 - Added ``view_mode`` & ``hidden_controls`` settings
844 (``--view-mode`` & ``--hidden-controls/--visible-controls``
847 * docutils/writers/latex2e/__init__.py:
849 - Add ``--literal-block-env``
850 - Fix: escaping ``%`` in href urls.
851 - Move usepackage hyperref after stylesheet inclusion.
852 - Fix: scrartcl does not have chapter but scrreprt.
853 - Add newline after ``\end{verbatim}``.
854 - Merge smaller differences from latex2e_adaptive_preamble.
855 - Add ``use-part-section``.
856 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
857 - Using leavemode option_list no longer needs to check if parent
858 is a definition list.
859 - Append ``\leavemode`` to definition list terms.
860 - No longer write visit\_/depart_definition_list_item comments to
862 - Table column width with 3 decimal places.
863 - Add table stubs support (boldfont).
864 - Add assemble_parts to writer.
865 - Add simply support for nested tables.
866 - Fix verbatim in tables if use-verbatim-when-possible.
867 - Use section commands down to subparagraph.
868 - Put ensuremath around some latin1 chars.
869 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
870 - New option ``--use-bibtex=style,db1,db2``.
871 - New option ``--reference-label`` to allow usage of LaTeX ref for
872 labels in section references.
873 - Add a label after every section to support sectionnumbers as reference
875 - Fix: bug# 1605376 rst2latex: bad options group list
876 - Remove inactive code for use_optionlist_for_option_list.
877 - Remove latex comments from option_list output.
878 - Fix: bug# 1612270 double qoutes in italian literal.
879 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
880 - Add option --use-latex-abstract.
881 - Image width unit ``px`` is translated to ``pt``.
882 - Add image height support.
883 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
885 - Fix: Do not escape underscores in citation reference labels if
886 use-latex-citations is set.
887 - Use centering instead of center for figure contents, to avoid vertical
889 - Recognize table class: borderless, nolines, booktabs, standard.
890 - Fix: Renaming contents section does not work with latex writer; SF
892 - Applied patch for custom roles with classes from Edward Loper.
893 - Fixed bug that caused crashes with more than 256 lists.
895 * docutils/writers/pep_html/__init__.py:
897 - Changed to support new python.org website structure and
900 * docs/howto/security.txt: "Deploying Docutils Securely", added to
903 * tools/buildhtml.py:
905 -- Added ``ignore`` setting to exclude a list of shell patterns
906 (default: ``.svn:CVS``).
908 * tools/editors/emacs/rst.el:
910 - Changed license to "GPL".
911 - Added ``rst-straighten-decorations`` function.
912 - The ``compile`` module is now always loaded.
913 - Added ``rst-toggle-line-block`` function.
914 - Headings consisting only of non-ASCII characters are now
915 recognized by ``rst-toc`` and ``rst-adjust``.
916 - Added font-lock support for multi-line comments where the first
917 comment line is empty.
918 - Added ``(require 'font-lock)``.
922 - Provide descriptive error message if distutils is missing.
925 Release 0.4 (2006-01-09)
926 ========================
930 - Updated the project policies for trunk/branch development &
933 * docutils/__init__.py:
935 - Added ``__version_details__`` attribute to describe code source
936 (repository/snapshot/release).
937 - Replaced ``default_transforms`` attribute of TransformSpec with
938 ``get_transforms()`` method.
942 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
943 functions, for document tree extraction and reprocessing.
947 - Added ``DocTreeInput`` class, for reprocessing existing documents.
948 - Added support for non-Unicode (e.g. binary) writer output.
952 - Re-introduced ``Targetable.indirect_reference_name``, for
953 MoinMoin/reST compatibility (removed in r3124/r3129).
954 - Added ``serial_escape`` function; escapes string values that are
955 elements of a list, for serialization. Modified Docutils-XML
956 writing (``Element._dom_node``) and pseudo-XML writing
957 (``Element.starttag``) to use ``serial_escape``.
958 - Added ``Node.deepcopy()`` method.
959 - Removed the internal lists ``document.substitution_refs``,
960 ``document.anonymous_refs``, and ``document.anonymous_targets``.
961 - Added a "container" element.
962 - Fixed bug where values of list-valued attributes of elements
963 originating from custom interpreted text roles (i.e., with custom
964 classes) were being shared between element instances. Reported by
967 * docutils/statemachine.py:
969 - Added trailing whitespace stripping to ``string2lines()``.
970 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
971 Asian double-width character support.
975 - Added ``east_asian_column_width()`` for double-width character
978 * docutils/languages/ja.py: Added to project: Japanese mappings by
981 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
982 mappings by Panjunyong.
984 * docutils/parsers/null.py: Added to project; a do-nothing parser.
986 * docutils/parsers/rst/__init__.py:
988 - Added validator to tab_width setting, with test. Closes SF bug
989 #1212515, report from Wu Wei.
991 * docutils/parsers/rst/states.py:
993 - Fixed bug with escaped colons indicating a literal block.
994 - Fixed bug with enumerated lists (SF#1254145).
995 - Backslash-escaped colons inside of field names are now allowed.
996 - Targets (implicit and explicit), anonymous hyperlink references
997 and auto-numbered footnote references inside of substitution
998 definitions are now disallowed.
999 - Fixed bug: list items with blank first lines.
1000 - Fixed bug: block quote attributions with indented second lines.
1001 - Added East Asian double-width character support (Python 2.4 only).
1003 * docutils/parsers/rst/tableparser.py:
1005 - Added East Asian double-width character support (Python 2.4 only).
1007 * docutils/parsers/rst/directives/body.py:
1009 - Added the "container" directive.
1011 * docutils/parsers/rst/directives/misc.py:
1013 - Added the "default-role", "title", and "date" directives.
1014 - Added standard data file syntax to the "include" directive.
1015 - Added support for "class" directive content.
1017 * docutils/parsers/rst/directives/images.py:
1019 - Added ``indirect_reference_name`` support for images with a target
1021 - Added support for image width and height units.
1022 - Fixed bug with image "target" options.
1024 * docutils/parsers/rst/directives/references.py:
1026 - Added "class" attribute to "target-notes" directive, for
1027 footnote_reference classes.
1029 * docutils/parsers/rst/include/: Directory added to project; contains
1030 standard data files for the "include" directive. Initial contents:
1031 character entity substitution definition sets, and a set of
1032 definitions for S5/HTML presentations.
1034 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
1035 mappings by David Goodger.
1037 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
1038 Simplified Chinese mappings by Panjunyong.
1040 * docutils/readers/__init__.py:
1042 - Added universal.Decorations and universal.ExposeInternals
1043 transforms as default transforms for all readers.
1044 - Added ``ReReader`` base class for readers that reread an existing
1047 * docutils/readers/doctree.py: Added to project; a reader for existing
1050 * docutils/transforms/frontmatter.py:
1052 - Fixed the DocInfo transform to handle SVN-style expansion of the
1054 - In ``DocInfo.extract_authors``, treat the contents of "authors"
1057 * docutils/transforms/misc.py:
1059 - Added misc.Transitions transform, extracted from
1060 universal.FinalChecks.
1062 * docutils/transforms/references.py:
1064 - Added references.DanglingReferences transform, extracted from
1065 universal.FinalChecks.
1066 - Fixed bug with doubly-indirect substitutions.
1067 - Added footnote_reference classes attribute to "TargetNotes".
1068 - Fixed bug with circular substitution definitions that put Docutils
1069 into an infinite loop.
1071 * docutils/transforms/universal.py:
1073 - Added universal.ExposeInternals transform, extracted from
1074 universal.FinalChecks.
1075 - Removed universal.FinalChecks transform (logic has been moved to
1076 several new transforms).
1077 - Fixed bug with the "expose_internals" setting and Text nodes
1078 (exposed by the "rawsource" internal attribute).
1079 - Added the universal.StripComments transform, implementation of the
1080 "strip_comments" setting.
1082 * docutils/transforms/writer_aux.py: Added to project; auxiliary
1083 transforms for writers.
1085 - Added ``Compound`` transform, which flattens compound paragraphs.
1087 * docutils/writers/: Several writer modules (html4css1.py) were
1088 converted into packages. Support modules and data files have been
1089 moved into the packages. The stylesheets for the HTML writers are
1090 now installed along with the code, the code knows where to find
1091 them, and the default is to use them (actually, to embed them).
1092 Some adjustments to configuration files may be necessary. The
1093 easiest way to obtain the new default behavior is to remove all
1094 settings whose name includes "stylesheet".
1096 * docutils/writers/__init__.py:
1098 - Added universal.Messages and universal.FilterMessages transforms
1099 as default transforms for all writers.
1100 - Added ``UnfilteredWriter`` base class for writers that pass the
1101 document tree on unchanged.
1103 * docutils/writers/docutils_xml.py:
1105 - Made ``xmlcharrefreplace`` the default output encoding error
1108 * docutils/writers/html4css1/:
1110 - Added support for image width and height units.
1111 - Made ``xmlcharrefreplace`` the default output encoding error
1113 - Made ``--embed-stylesheet`` the default rather than
1114 ``--link-stylesheet``.
1115 - Moved "id" attribute from container (section etc.) to title's <a>
1116 tag, to be on the same tag as "name".
1117 (!!! To be reverted in Docutils 0.5.)
1118 - Added vertical space between fields of field lists.
1119 - Added ``--compact-field-lists`` option to remove vertical space in
1121 - Made cloaking of email addresses with ``--cloak-email-addresses``
1123 - Fixed support for centered images.
1124 - Added support for class="compact" & class="open" lists.
1126 * docutils/writers/latex2e/:
1128 - Underscores in citekeys are no longer escaped.
1130 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1131 mapping of Unicode characters to LaTeX equivalents.
1133 * docutils/writers/s5_html/: Package added to project; writer for
1134 S5/HTML slide shows.
1136 * docs/dev/distributing.txt: Added to project; guide for distributors
1137 (package maintainers).
1139 * docs/dev/hacking.txt: Added to project; guide for developers.
1141 * docs/ref/doctree.txt:
1143 - Updated for plural attributes "classes", "ids", "names",
1145 - Added the "container" element.
1147 * docs/ref/docutils.dtd:
1149 - Updated for plural attributes "classes", "ids", "names",
1152 * docs/user/emacs.txt: Added to project; a document about Emacs
1153 support for reStructuredText and Docutils.
1155 * docs/user/links.txt: Added to project; lists of Docutils-related
1158 * docs/user/mailing-lists.txt: Added to project; information about
1159 Docutils-related mailing lists and how to access them.
1161 * docs/user/slide-shows.txt: Added to project; example of and docs for
1162 the S5/HTML writer (``rst2s5.py`` front end).
1164 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1165 Files", added to project.
1167 * test/coverage.sh: Added to project; test coverage script.
1169 * test/DocutilsTestSupport.py:
1171 - Added support for specifying runtime settings at the suite level.
1173 * test/test_functional.py:
1175 - Added the ``clear_output_directory`` function.
1176 - Added support for ``_test_more`` functions in functional test
1179 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1181 * tools/rstpep2html.py: Renamed from pep.py.
1183 * tools/dev/create_unimap.py: Added to project; script to create the
1184 docutils/writers/unimap_latex.py mapping file.
1186 * tools/dev/profile_docutils.py: Added to project; profiler script.
1188 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1190 * tools/editors/emacs/restructuredtext.el,
1191 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1192 Removed from project; the functionality is now contained in rst.el.
1194 * tools/editors/emacs/rst.el: Added to project. Added many features
1195 and fixed many bugs. See docs/user/emacs.txt for details.
1197 * tools/stylesheets: Removed from project. Stylesheets have been
1198 renamed and moved into writer packages.
1201 Release 0.3.9 (2005-05-26)
1202 ==========================
1206 - Eliminated and replaced all uses of the old string attributes
1207 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1208 new list attributes ``ids``, ``names``, ``dupnames`` and
1209 ``classes`` throughout the whole source tree.
1213 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1214 allowing for easier debugging.
1215 - In ``Publisher.publish()``, expanded the generic top-level
1218 * docutils/examples.py:
1220 - Added ``internals`` function for exploration.
1224 - Fixed ``Input.decode`` method to apply heuristics only if no
1225 encoding is explicitly given, and to provide better reporting of
1227 - The ``Input.decode`` method now removes byte order marks (BOMs)
1230 * docutils/nodes.py:
1232 - ``image`` element class changed to subclass of Element, not
1233 TextElement (it's an empty element, and cannot contain text).
1234 - Added ``attr_defaults`` dictionary for default attribute values.
1235 - Added empty list as default value for the following attributes:
1236 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1237 - Added ``document.decoration`` attribute,
1238 ``document.get_decoration`` method, and ``decoration.get_header``
1239 & ``.get_footer`` methods.
1240 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1243 * docutils/utils.py:
1245 - Removed ``docutils.utils.Reporter.categories``,
1246 ``docutils.utils.ConditionSet``, and all references to them, to
1247 simplify error reporting.
1249 * docutils/languages/nl.py: Added to project; Dutch mappings by
1252 * docutils/parsers/rst/__init__.py:
1254 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1256 * docutils/parsers/rst/states.py:
1258 - Added check for escaped at-mark to prevent email address recognition.
1259 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1261 - Allowed whitespace in paths and URLs.
1262 - Added auto-enumerated list items.
1263 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1265 - Added support for table stub columns.
1267 * docutils/parsers/rst/directives/__init__.py:
1269 - Allowed whitespace in paths (``path`` function).
1270 - Added ``uri`` directive option conversion function.
1272 * docutils/parsers/rst/directives/body.py:
1274 - Fixed illegal context bug with "topic" directive (allowed within
1275 sidebars; not within body elements).
1277 * docutils/parsers/rst/directives/images.py:
1279 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1280 - Added support for the ``file_insertion_enabled`` setting in the
1281 "figure" directive (disables "figwidth" option).
1282 - "image" directive: added checks for valid values of "align" option,
1283 depending on context. "figure" directive: added specialized
1284 "align" option and attribute on "figure" element.
1285 - Made ":figwidth: image" option of "figure" directive work again.
1286 - Fixed bug with reference names containing uppercase letters
1287 (e.g. ``Name_``) in "target" option of "image" directive.
1289 * docutils/parsers/rst/directives/misc.py:
1291 - Fixed "include" and "raw" directives to catch text decoding
1293 - Allowed whitespace in "include" & "raw" directive paths.
1294 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1295 settings in "include" & "raw" directives.
1297 * docutils/parsers/rst/directives/parts.py:
1299 - Added "header" & "footer" directives.
1300 - Fixed illegal context bug with "contents" directive (topics
1301 allowed within sidebars; not within body elements).
1303 * docutils/parsers/rst/directives/tables.py:
1305 - Added "list-table" directive.
1306 - Caught empty CSV table bug.
1307 - Added support for the ``file_insertion_enabled`` setting in the
1308 "csv-table" directive.
1309 - Added ``stub-columns`` option to "csv-table" and "list-table"
1312 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1313 mappings by Martijn Pieters.
1315 * docutils/readers/standalone.py:
1317 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1318 options to activate or deactivate the SectSubTitle transform.
1320 * docutils/transforms/frontmatter.py:
1322 - Added SectSubTitle transform to promote titles of lone
1323 subsections to subtitles.
1325 * docutils/transforms/references.py:
1327 - Fixed mislocated internal targets bug, by propagating internal
1328 targets to the next node, making use of the newly added support
1329 for multiple names and IDs.
1330 - Fixed duplicate footnote label bug.
1331 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1334 * docutils/writers/html4css1.py:
1336 - Fixed unencoded stylesheet reference bug (characters like "&" in
1337 stylesheet references).
1338 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1340 - Added support for multiple IDs per node by creating empty ``span``
1342 - Added the ``field_name_limit`` & ``option_limit`` settings &
1344 - Added support for table stub columns.
1345 - Added support for the ``align`` attribute on ``figure`` elements.
1346 - Added the ``cloak_email_addresses`` setting & support.
1347 - Added ``html_prolog``, ``html_head``, ``html_body``,
1348 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1349 ``docutils.core.publish_parts``.
1350 - Added support for section subtitles.
1352 * docutils/writers/latex2e.py:
1354 - Fixed tables starting with more than one multirow cell.
1355 - Improved --use-latex-docinfo so that organization/contact/address
1356 fields are lumped with the last author field and appear on the
1358 - Made sure the titlepage is always shown with --use-latex-docinfo,
1359 even if the document has no title.
1360 - Made sure that latex doesn't fill in today's date if no date field
1362 - Added support for section subtitles.
1364 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1365 (under development).
1367 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1369 * docs/api/publisher.txt:
1371 - Added "``publish_parts`` Details" section.
1373 * docutils/dev/repository.txt: Added to project; information about the
1374 Docutils Subversion repository.
1376 * docs/ref/docutils.dtd:
1378 - Added a ``stub`` attribute to the ``colspec`` element via the
1379 ``tbl.colspec.att`` parameter entity.
1380 - Allowed topic elements within sidebars
1381 - Added an ``align`` attribute to the ``figure`` element.
1383 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1387 Release 0.3.7 (2004-12-24)
1388 ==========================
1390 * docutils/frontend.py:
1392 - Added options: --input-encoding-error-handler,
1393 --record-dependencies, --leave-footnote-reference-space,
1395 - Added command-line and config file support for "overrides" setting
1400 - Added support for input encoding error handler.
1402 * docutils/nodes.py:
1404 - Added dispatch_visit and dispatch_departure methods to
1405 NodeVisitor; useful as a hook for Visitors.
1406 - Changed structure of ``line_block``; added ``line``.
1407 - Added ``compound`` node class.
1408 - Added a mechanism for Visitors to transitionally ignore new node
1411 * docutils/utils.py:
1413 - Moved ``escape2null`` and ``unescape`` functions from
1414 docutils/parsers/rst/states.py.
1416 * docutils/parsers/rst/roles.py:
1419 - Changed role function API: the "text" parameter now takes
1420 null-escaped interpreted text content.
1422 * docutils/parsers/rst/states.py:
1424 - Fixed bug where a "role" directive in a nested parse would crash
1425 the parser; the state machine's "language" attribute was not being
1427 - Added support for line block syntax.
1428 - Fixed directive parsing bug: argument-less directives didn't
1429 notice that arguments were present.
1430 - Removed error checking for transitions.
1431 - Added support for multiple classifiers in definition list items.
1432 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1433 - Changed role function API: the "text" parameter now takes
1434 null-escaped interpreted text content.
1435 - Empty sections and documents are allowed now.
1437 * docutils/parsers/rst/directives/__init__.py:
1439 - Added ``encoding`` directive option conversion function.
1440 - Allow multiple class names in class_option conversion function.
1442 * docutils/parsers/rst/directives/body.py:
1444 - Converted the line-block directive to use the new structure.
1445 - Extracted the old line-block functionality to the ``block``
1446 function (still used).
1447 - Added ``compound`` directive (thanks to Lea Wiemann).
1449 * docutils/parsers/rst/directives/misc.py:
1451 - Added "encoding" option to "include" and "raw" directives.
1452 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1453 - Allow multiple class names in the "class" directive.
1455 * docutils/parsers/rst/directives/parts.py:
1457 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1458 options. Thanks to Lele Gaifax.
1460 * docutils/parsers/rst/directives/tables.py:
1462 - Added "encoding" directive to "csv-table" directive.
1463 - Added workaround for lack of Unicode support in csv.py, for
1464 non-ASCII CSV input.
1466 * docutils/transforms/misc.py:
1468 - Fixed bug when multiple "class" directives are applied to a single
1470 - Enabled multiple format names for "raw" directive.
1472 * docutils/transforms/references.py:
1474 - Added support for trimming whitespace from beside substitution
1477 * docutils/transforms/universal.py:
1479 - FinalChecks now checks for illegal transitions and moves
1480 transitions between sections.
1482 * docutils/writers/html4css1.py:
1484 - HTMLTranslator.encode now converts U+00A0 to " ".
1485 - "stylesheet" and "stylesheet_path" settings are now mutually
1487 - Added support for the new line_block/line structure.
1488 - --footnote-references now overrides
1489 --trim-footnote-reference-space, if applicable.
1490 - Added support for ``compound`` elements.
1491 - Enabled multiple format names for "raw" directive.
1492 - ``<p>`` tags of a paragraph which is the only visible child of the
1493 document node are no longer stripped.
1494 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1495 new method ``should_be_compact_paragraph()``.
1496 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1498 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1499 the output if they have their ``class`` attribute set.
1500 - The whole document is now surrounded by a ``<div
1501 class="document">`` element.
1502 - Body-level images are now wrapped by their own ``<div>`` elements,
1503 with image classes copied to the wrapper, and for images which
1504 have the ``:align:`` option set, the surrounding ``<div>`` now
1505 receives a class attribute (like ``class="align-left"``).
1507 * docutils/writers/latex2e.py:
1509 - no newline after depart_term.
1510 - Added translations for some Unicode quotes.
1511 - Added option "font-encoding", made package AE the default.
1512 - "stylesheet" and "stylesheet_path" settings are now mutually
1514 - --footnote-references now overrides
1515 --trim-footnote-reference-space, if applicable.
1516 - The footnote label style now matches the footnote reference style
1517 ("brackets" or "superscript").
1518 - Added support for ``compound`` elements.
1519 - Enabled multiple format names for "raw" directive.
1521 * docs/ref/docutils.dtd:
1523 - Changed structure of the ``line_block`` element; added ``line``.
1524 - Added ``compound`` element.
1525 - Added "ltrim" and "rtrim" attributes to
1526 ``substitution_definition`` element.
1527 - Enabled multiple format names for ``raw`` element.
1528 - Enabled multiple classifiers in ``definition_list_item`` elements.
1530 * docs/ref/rst/directives.txt
1532 - Marked "line-block" as deprecated.
1533 - "Class" directive now allows multiple class names.
1534 - Added "Rationale for Class Attribute Value Conversion".
1535 - Added warning about "raw" overuse/abuse.
1537 * docs/ref/rst/restructuredtext.txt:
1539 - Added syntax for line blocks.
1540 - Definition list items may have multiple classifiers.
1542 * docs/ref/rst/roles.txt:
1546 * tools/stylesheets/default.css:
1548 - Added support for the new line_block structure.
1549 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1552 Release 0.3.5 (2004-07-29)
1553 ==========================
1557 * _`Documentation cleanup/reorganization`.
1559 - Created new subdirectories of docs/:
1561 * ``docs/user/``: introductory/tutorial material for end-users
1562 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1563 * ``docs/api/``: API reference material for client-developers
1564 * ``docs/ref/``: reference material for all groups
1565 * ``docs/howto/``: for component-developers and core-developers
1566 * ``docs/peps/``: Python Enhancement Proposals
1568 - Moved ``docs/*`` to ``docs/user/``.
1569 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1570 ``spec/`` to ``docs/dev``.
1571 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1572 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1573 - Moved ``alternatives.txt``, and ``problems.txt`` from
1574 ``spec/rst/`` to ``docs/dev/rst/``.
1575 - Moved ``reStructuredText.txt``, ``directives.txt``,
1576 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1577 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1578 ``roles.txt``, ``reStructuredText.txt`` to
1579 ``restructuredtext.txt``.
1580 - Moved ``spec/howto/`` to ``docs/howto``.
1582 In order to keep the CVS history of moved files, we supplied
1583 SourceForge with a `script for modifying the Docutils CVS
1586 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1588 After running the cleanup script:
1590 - Added ``docs/index.txt``.
1591 - Added a ``.htaccess`` file to the ``web`` module, containing
1592 redirects for all old paths to new paths. They'll preserve
1593 fragments (the "#name" part of a URL), and won't clutter up the
1594 file system, and will correct the URL in the user's browser.
1595 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1596 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1597 the "To Do" list itself in ``docs/dev/todo.txt``.
1598 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1599 section of ``docs/dev/todo.txt``.
1600 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1601 - Added "How To Report Bugs" to ``BUGS.txt``.
1602 - Went through all the sources and docs (including under web/) and
1603 updated links. Mostly done by Lea Wiemann; thanks Lea!
1604 (Still need to update links in the sandboxes.)
1608 * BUGS.txt: Added to project.
1610 * THANKS.txt: Added to project.
1612 * docutils/__init__.py:
1614 - 0.3.4: Post-release.
1618 - Added special error handling & advice for UnicodeEncodeError.
1619 - Refactored Publisher.publish (simplified exception handling &
1620 extracted debug dumps).
1621 - Renamed "enable_exit" parameter of convenience functions to
1622 "enable_exit_status".
1623 - Enabled traceback (exception propagation) by default in
1624 programmatic convenience functions.
1625 - Now publish_file and publish_cmdline convenience functions return
1626 the encoded string results in addition to their regular I/O.
1627 - Extracted common code from publish_file, publish_string, and
1628 publish_parts, into new publish_programmatically. Extracted
1629 settings code to ``Publisher.process_programmatic_settings``.
1630 - In Publisher.publish, disabled ``settings_overrides`` when
1631 ``settings`` is supplied; redundant.
1633 * docutils/frontend.py:
1635 - Added help text for "--output-encoding-error-handler" and
1636 "--error-encoding-error-handler".
1637 - Renamed "--exit" to "--exit-status".
1638 - Simplified default-setting code.
1640 * docutils/parsers/rst/__init__.py:
1642 - Added "--pep-base-url" and "--rfc-base-url" options.
1644 * docutils/parsers/rst/states.py:
1646 - Made URI recognition more aggressive and intelligent.
1648 * docutils/parsers/rst/directives/__init__.py:
1650 - Added several directive option conversion functions.
1652 * docutils/parsers/rst/directives/body.py:
1654 - Moved "table" directive to tables.py.
1656 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1659 * docutils/writers/latex2e.py:
1661 - Added "--table-style=(standard|booktabs|nolines)"
1662 - figures get "here" option (LaTeX per default puts them at bottom),
1663 and figure content is centered.
1664 - Rowspan support for tables.
1665 - Fix: admonition titles before first section.
1666 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1667 - Replave ``_`` in literal by an underlined blank, because it has the correct
1669 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1670 - A few unicode replacements, if output_encoding != utf
1671 - Add "--graphicx-option".
1672 - Indent literal-blocks.
1673 - Fix: omit ``\maketitle`` when there is no document title.
1675 * docs/index.txt: "Docutils Project Documentation Overview", added to
1678 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1679 Tool", added to project.
1681 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1683 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1685 * docs/dev/policies.txt: Added to project (extracted from
1686 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1688 * docs/dev/release.txt: Added to project (extracted from
1689 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1691 * docs/dev/testing.txt: Added to project.
1693 * docs/dev/website.txt: Added to project (extracted from
1694 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1696 * docs/ref/rst/directives.txt:
1698 - Added directives: "table", "csv-table".
1700 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1701 added to project. 1 page for syntax, and a 1 page reference for
1702 directives and roles. Source text to be used as-is; not meant to be
1705 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1706 with a change of title.
1708 * test/functional/, contents, and test/test_functional.py: Added to
1711 * tools/buildhtml.py: Fixed bug with config file handling.
1713 * tools/html.py: Removed from project (duplicate of rst2html.py).
1715 * tools/pep2html.py: Removed from project (duplicate of Python's
1716 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1717 Docutils-related PEPs in docs/peps/).
1719 * tools/rst2pseudoxml.py: Renamed from publish.py.
1721 * tools/rst2xml.py: Renamed from docutils-xml.py.
1723 * tools/test.txt: Removed from project; moved to
1724 docs/user/rst/demo.txt.
1726 * setup.py: Now also installs ``rst2latex.py``.
1729 Release 0.3.3 (2004-05-09)
1730 ==========================
1732 * docutils/__init__.py:
1734 - 0.3.1: Reorganized config file format (multiple sections); see
1736 - Added unknown_reference_resolvers attribute to TransformSpec.
1737 - 0.3.2: Interpreted text reorganization.
1742 - Catch system messages to stop tracebacks from parsing errors.
1743 - Catch exceptions during processing report & exit without
1744 tracebacks, except when "--traceback" used.
1745 - Reordered components for OptionParser; application comes last.
1746 - Added "config_section" parameter to several methods and functions,
1747 allowing front ends to easily specify their config file sections.
1748 - Added publish_parts convenience function to allow access to individual
1749 parts of a document.
1751 * docutils/examples.py: Added to project; practical examples of
1752 Docutils client code, to be used as-is or as models for variations.
1754 * docutils/frontend.py:
1756 - Added "--traceback" & "--no-traceback" options ("traceback"
1758 - Implemented support for config file reorganization:
1759 ``standard_config_files`` moved from ``ConfigParser`` to
1760 ``OptionParser``; added
1761 ``OptionParser.get_config_file_settings()`` and
1762 ``.get_standard_config_settings()``; support for old "[options]"
1763 section (with deprecation warning) and mapping from old to new
1765 - Reimplemented setting validation.
1766 - Enabled flexible boolean values: yes/no, true/false, on/off.
1767 - Added ``Values``, a subclass of ``optparse.Values``, with support
1768 for list setting attributes.
1769 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1770 thanks to Beni Cherniavsky.
1771 - Added "--no-section-numbering" option.
1775 - Catch IOErrors when opening source & destination files, report &
1776 exit without tracebacks. Added ``handle_io_errors`` parameter to
1777 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1779 * docutils/nodes.py:
1781 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1782 method definitions (via ``exec``) to dynamic assignments (via
1783 ``setattr``); thanks to Roman Suzi.
1784 - Encapsulated visitor dynamic assignments in a function; thanks to
1786 - Added indirect_reference_name attribute to the Targetable
1787 class. This attribute holds the whitespace_normalized_name
1788 (contains mixed case) of a target.
1790 * docutils/statemachine.py:
1792 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1793 - Added ``StringList.get_2D_block``.
1795 * docutils/utils.py:
1797 - Added "level" attribute to SystemMessage exceptions.
1799 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1802 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1805 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1806 Marcelo Huerta San Martin.
1808 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1809 mappings by Lalo Martins.
1811 * docutils/languages/ru.py: Added to project; Russian mappings by
1814 * docutils/parsers/rst/roles.py: Added to project. Contains
1815 interpreted text role functions, a registry for interpreted text
1816 roles, and an API for adding to and retrieving from the registry.
1817 Contributed by Edward Loper.
1819 * docutils/parsers/rst/states.py:
1821 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1822 - Allowed true em-dash character and "---" as block quote
1824 - Added support for <angle-bracketed> complex option arguments
1826 - Fixed handling of backslashes in substitution definitions.
1827 - Fixed off-by-1 error with extra whitespace after substitution
1828 definition directive.
1829 - Added inline markup parsing to field lists' field names.
1830 - Added support for quoted (and unindented) literal blocks.
1831 Driven in part by a bribe from Frank Siebenlist (thanks!).
1832 - Parser now handles escapes in URIs correctly.
1833 - Made embedded-URIs' reference text omittable. Idea from Beni
1835 - Refactored explicit target processing code.
1836 - Added name attribute to references containing the reference name only
1837 through whitespace_normalize_name (no case changes).
1838 - parse_target no longer returns the refname after going through
1839 normalize_name. This is now handled in make_target.
1840 - Fixed bug relating to role-less interpreted text in non-English
1842 - Reorganized interpreted text processing; moved code into the new
1843 roles.py module. Contributed by Edward Loper.
1844 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1845 ``parse_directive_block``.
1847 * docutils/parsers/rst/tableparser.py:
1849 - Reworked for ``StringList``, to support "include" directives in
1852 * docutils/parsers/rst/directives/__init__.py:
1854 - Renamed ``unchanged()`` directive option conversion function to
1855 ``unchanged_required``, and added a new ``unchanged``.
1856 - Catch unicode value too high error; fixes bug 781766.
1857 - Beefed up directive error reporting.
1859 * docutils/parsers/rst/directives/body.py:
1861 - Added basic "table" directive.
1863 * docutils/parsers/rst/directives/images.py:
1865 - Added "target" option to "image" directive.
1866 - Added name attribute to references containing the reference name only
1867 through whitespace_normalize_name (no case changes).
1869 * docutils/parsers/rst/directives/misc.py:
1871 - Isolated the import of the ``urllib2`` module; was causing
1872 problems on SourceForge (``libssl.so.2`` unavailable?).
1873 - Added the "role" directive for declaring custom interpreted text
1876 * docutils/parsers/rst/directives/parts.py:
1878 - The "contents" directive does more work up-front, creating the
1879 "topic" and "title", and leaving the "pending" node for the
1880 transform. Allows earlier reference resolution; fixes subtle bug.
1882 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1883 mappings by Jannie Hofmeyr.
1885 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1886 mappings by Marek Blaha.
1888 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1889 mappings by Marcelo Huerta San Martin.
1891 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1892 Portuguese mappings by Lalo Martins.
1894 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1895 mappings by Roman Suzi.
1897 * docutils/transforms/parts.py:
1899 - The "contents" directive does more work up-front, creating the
1900 "topic" and "title", and leaving the "pending" node for the
1901 transform. Allows earlier reference resolution; fixes subtle bug.
1902 - Added support for disabling of section numbering.
1904 * docutils/transforms/references.py:
1906 - Verifying that external targets are truly targets and not indirect
1907 references. This is because we are now adding a "name" attribute to
1908 references in addition to targets. Note sure if this is correct!
1909 - Added code to hook into the unknown_reference_resolvers list for a
1910 transformer in resolve_indirect_target. This allows the
1911 unknown_reference_resolvers to keep around indirect targets which
1912 docutils doesn't know about.
1913 - Added specific error message for duplicate targets.
1915 * docutils/transforms/universal.py:
1917 - Added FilterMessages transform (removes system messages below the
1918 verbosity threshold).
1919 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1920 to FinalCheckVisitor for application-specific handling of
1921 unresolvable references.
1922 - Added specific error message for duplicate targets.
1924 * docutils/writers/__init__.py:
1926 - Added assemble_parts method to the Writer class to allow for
1927 access to a documents individual parts.
1928 - Documented & set default for ``Writer.output`` attribute.
1930 * docutils/writers/html4css1.py:
1932 - Fixed unicode handling of attribute values (bug 760673).
1933 - Prevent duplication of "class" attribute values (bug report from
1935 - Improved table grid/border handling (prompted by report from Bob
1937 - Added support for table titles.
1938 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1940 - Added functionality to keep track of individual parts of a document
1941 and store them in a dictionary as the "parts" attribute of the writer.
1942 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1943 - Added proper support for the "scale" attribute of the "image"
1944 element. Contributed by Brent Cook.
1945 - Added ``--initial-header-level`` option.
1946 - Fixed bug: the body_pre_docinfo segment depended on there being a
1947 docinfo; if no docinfo, the document title was incorporated into
1948 the body segment. Adversely affected the publish_parts interface.
1950 * docutils/writers/latex2e.py:
1952 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1953 about a missing file.
1954 - Added options and support: ``--compound-enumerators``,
1955 ``--section-prefix-for-enumerators``, and
1956 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1958 - Added option ``--use-verbatim-when-possible``, to avoid
1959 problematic characters (eg, '~' in italian) in literal blocks.
1960 - It's now possible to use four section levels in the `book` and
1961 `report` LaTeX classes. The default `article` class still has
1964 * docs/config.txt: "Docutils Configuration Files", added to project.
1965 Moved config file entry descriptions from tools.txt.
1969 - Moved config file entry descriptions to config.txt.
1971 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1974 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1975 Text Roles", added to project.
1977 * spec/rst/reStructuredText.txt:
1979 - Added description of support for <angle-bracketed> complex option
1980 arguments to option lists.
1981 - Added subsections for indented and quoted literal blocks.
1983 * test: Continually adding & updating tests.
1985 - Added test/test_settings.py & test/data/config_*.txt support
1987 - Added test/test_writers/test_htmlfragment.py.
1989 * test/DocutilsTestSupport.py:
1991 - Refactored LaTeX publisher test suite/case class names to make
1992 testing other writers easier.
1993 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1994 to test the processing of HTML fragments which use the new
1995 publish_parts convenience function.
1997 * tools/buildhtml.py:
1999 - Added support for the "--prune" option.
2000 - Removed dependency on pep2html.py; plaintext PEPs no longer
2003 * tools/docutils.conf:
2005 - Updated for configuration file reorganization.
2007 * tools/rst2html.py:
2009 - copied from tools/html.py
2013 - added a 'scripts' section to configuration
2014 - added 'tools/rst2html.py' to the scripts section
2017 Release 0.3 (2003-06-24)
2018 ========================
2022 * Renamed "attribute" to "option" for directives/extensions.
2024 * Renamed transform method "transform" to "apply".
2026 * Renamed "options" to "settings" for runtime settings (as set by
2027 command-line options). Sometimes "option" (singular) became
2028 "settings" (plural). Some variations below:
2030 - document.options -> document.settings (stored in other objects as
2032 - option_spec -> settings_spec (not directives though)
2033 - OptionSpec -> SettingsSpec
2034 - cmdline_options -> settings_spec
2035 - relative_path_options -> relative_path_settings
2036 - option_default_overrides -> settings_default_overrides
2037 - Publisher.set_options -> Publisher.get_settings
2041 * COPYING.txt: Added "Public Domain Dedication".
2043 * FAQ.txt: Frequently asked questions, added to project.
2047 - Updated with PyPI Trove classifiers.
2048 - Conditional installation of third-party modules.
2050 * docutils/__init__.py:
2052 - Bumped version to 0.2.1 to reflect changes to I/O classes.
2053 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
2054 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
2055 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
2056 option and its effect on the PEP template & writer.
2057 - Bumped version to 0.2.4 due to changes to the PEP template &
2059 - Bumped version to 0.2.5 to reflect changes to Reporter output.
2060 - Added ``TransformSpec`` class for new transform system.
2061 - Bumped version to 0.2.6 for API changes (renaming).
2062 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
2063 convenience functions.
2064 - Added ``Component.component_type`` attribute.
2065 - Bumped version to 0.2.8 because of the internal parser switch from
2066 plain lists to the docutils.statemachine.StringList objects.
2067 - Bumped version to 0.2.9 because of the frontend.py API changes.
2068 - Bumped version to 0.2.10 due to changes to the project layout
2069 (third-party modules removed from the "docutils" package), and
2070 signature changes in ``io.Input``/``io.Output``.
2071 - Changed version to 0.3.0 for release.
2075 - Made ``publish()`` a bit more convenient.
2076 - Generalized ``Publisher.set_io``.
2077 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
2078 parameters; improved its docstring.
2079 - Added ``publish_file()`` and ``publish_string()``.
2080 - Factored ``Publisher.set_source()`` and ``.set_destination()``
2082 - Added support for "--dump-pseudo-xml", "--dump-settings", and
2083 "--dump-transforms" hidden options.
2084 - Added ``Publisher.apply_transforms()`` method.
2085 - Added ``Publisher.set_components()`` method; support for
2086 ``publish_*()`` conveninece functions.
2087 - Moved config file processing to docutils/frontend.py.
2088 - Added support for exit status ("exit_level" setting &
2089 ``enable_exit`` parameter for Publisher.publish() and convenience
2092 * docutils/frontend.py:
2094 - Check for & exit on identical source & destination paths.
2095 - Fixed bug with absolute paths & "--config".
2096 - Set non-command-line defaults in ``OptionParser.__init__()``:
2097 ``_source`` & ``_destination``.
2098 - Distributed ``relative_path_settings`` to components; updated
2099 ``OptionParser.populate_from_components()`` to combine it all.
2100 - Require list of keys in ``make_paths_absolute`` (was implicit in
2101 global ``relative_path_settings``).
2102 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
2103 "--dump-settings", and "--dump-transforms" hidden options.
2104 - Removed nasty internals-fiddling ``ConfigParser.get_section``
2105 code, replaced with correct code.
2106 - Added validation functionality for config files.
2107 - Added "--error-encoding" option/setting, "_disable_config"
2109 - Added encoding validation; updated "--input-encoding" and
2110 "--output-encoding"; added "--error-encoding-error-handler" and
2111 "--output-encoding-error-handler".
2112 - Moved config file processing from docutils/core.py.
2113 - Updated ``OptionParser.populate_from_components`` to handle new
2114 ``SettingsSpec.settings_defaults`` dict.
2115 - Added support for "-" => stdin/stdout.
2116 - Added "exit_level" setting ("--exit" option).
2120 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
2121 - Added automatic closing to ``FileInput`` and ``FileOutput``.
2122 - Delayed opening of ``FileOutput`` file until ``write()`` called.
2123 - ``FileOutput.write()`` now returns the encoded output string.
2124 - Try to get path/stream name automatically in ``FileInput`` &
2126 - Added defaults for source & destination paths.
2127 - Allow for Unicode I/O with an explicit "unicode" encoding.
2128 - Added ``Output.encode()``.
2129 - Removed dependency on runtime settings; pass encoding directly.
2130 - Recognize Unicode strings in ``Input.decode()``.
2131 - Added support for output encoding error handlers.
2133 * docutils/nodes.py:
2135 - Added "Invisible" element category class.
2136 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2137 modification during a traversal.
2138 - Added element classes: ``line_block``, ``generated``, ``address``,
2139 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2140 ``superscript``, ``subscript``, ``inline``
2141 - Added support for lists of nodes to ``Element.insert()``.
2142 - Fixed parent linking in ``Element.replace()``.
2143 - Added new abstract superclass ``FixedTextElement``; adds
2144 "xml:space" attribute.
2145 - Added support for "line" attribute of ``system_message`` nodes.
2146 - Added support for the observer pattern from ``utils.Reporter``.
2147 Added ``parse_messages`` and ``transform_messages`` attributes to
2148 ``document``, removed ``messages``. Added ``note_parse_message``
2149 and ``note_transform_message`` methods.
2150 - Added support for improved diagnostics:
2152 - Added "document", "source", and "line" internal attributes to
2153 ``Node``, set by ``Node.setup_child()``.
2154 - Converted variations on ``node.parent = self`` to
2155 ``self.setup_child(node)``.
2156 - Added ``document.current_source`` & ``.current_line``
2157 attributes, and ``.note_source`` observer method.
2158 - Changed "system_message" output to GNU-Tools format.
2160 - Added a "rawsource" attribute to the ``Text`` class, for text
2161 before backslash-escape resolution.
2162 - Support for new transform system.
2163 - Reworked ``pending`` element.
2164 - Fixed XML DOM bug (SF #660611).
2165 - Removed the ``interpeted`` element class and added
2166 ``title_reference``, ``abbreviation``, ``acronym``.
2167 - Made substitutions case-sensitive-but-forgiving; moved some code
2169 - Fixed Unicode bug on element attributes (report: William Dode).
2171 * docutils/optik.py: Removed from project; replaced with
2172 extras/optparse.py and extras/textwrap.py. These will be installed
2173 only if they're not already present in the Python installation.
2175 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2176 only if it's not already present in the Python installation.
2178 * docutils/statemachine.py:
2180 - Factored out ``State.add_initial_transitions()`` so it can be
2182 - Converted whitespace-specific "blank" and "indent" transitions
2183 from special-case code to ordinary transitions: removed
2184 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2185 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2186 ``ws_initial_transitions`` attributes.
2187 - Removed ``State.match_transition()`` after merging it into
2189 - Added ``StateCorrection`` exception.
2190 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2191 (moved ``TransitionCorrection`` support there too.)
2192 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2193 ``EOFError`` instead of ``IndexError``.
2194 - Added ``State.no_match`` method.
2195 - Added support for the Observer pattern, triggered by input line
2197 - Added ``strip_top`` parameter to
2198 ``StateMachineWS.get_first_known_indented``.
2199 - Made ``context`` a parameter to ``StateMachine.run()``.
2200 - Added ``ViewList`` & ``StringList`` classes;
2201 ``extract_indented()`` becomes ``StringList.get_indented()``.
2202 - Added ``StateMachine.insert_input()``.
2203 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2204 thanks to) Fred Drake.
2206 * docutils/utils.py:
2208 - Added a ``source`` attribute to Reporter instances and
2209 ``system_message`` elements.
2210 - Added an observer pattern to ``utils.Reporter`` to keep track of
2212 - Fixed bugs in ``relative_path()``.
2213 - Added support for improved diagnostics.
2214 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2215 - Added support for encoding Reporter stderr output, and encoding
2217 - Reporter keeps track of the highest level system message yet
2220 * docutils/languages: Fixed bibliographic field language lookups.
2222 * docutils/languages/es.py: Added to project; Spanish mappings by
2223 Marcelo Huerta San Martin.
2225 * docutils/languages/fr.py: Added to project; French mappings by
2228 * docutils/languages/it.py: Added to project; Italian mappings by
2231 * docutils/languages/sk.py: Added to project; Slovak mappings by
2234 * docutils/parser/__init__.py:
2236 - Added ``Parser.finish_parse()`` method.
2238 * docutils/parser/rst/__init__.py:
2240 - Added options: "--pep-references", "--rfc-references",
2241 "--tab-width", "--trim-footnote-reference-space".
2243 * docutils/parsers/rst/states.py:
2245 - Changed "title under/overline too short" system messages from INFO
2246 to WARNING, and fixed its insertion location.
2247 - Fixed enumerated list item parsing to allow paragraphs & section
2248 titles to begin with enumerators.
2249 - Converted system messages to use the new "line" attribute.
2250 - Fixed a substitution reference edge case.
2251 - Added support for "--pep-references" and "--rfc-references"
2252 options; reworked ``Inliner`` code to make customization easier.
2253 - Removed field argument parsing.
2254 - Added support for short section title over/underlines.
2255 - Fixed "simple reference name" regexp to ignore text like
2256 "object.__method__"; not an anonymous reference.
2257 - Added support for improved diagnostics.
2258 - Reworked directive API, based on Dethe Elza's contribution. Added
2259 ``Body.parse_directive()``, ``.parse_directive_options()``,
2260 ``.parse_directive_arguments()`` methods.
2261 - Added ``ExtensionOptions`` class, to parse directive options
2262 without parsing field bodies. Factored
2263 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2264 ``ExtensionOptions``.
2265 - Improved definition list term/classifier parsing.
2266 - Added warnings for unknown directives.
2267 - Renamed ``Stuff`` to ``Struct``.
2268 - Now flagged as errors: transitions at the beginning or end of
2269 sections, empty sections (except title), and empty documents.
2270 - Updated for ``statemachine.StringList``.
2271 - Enabled recognition of schemeless email addresses in targets.
2272 - Added support for embedded URIs in hyperlink references.
2273 - Added backslash-escapes to inline markup end-string suffix.
2274 - Added support for correct interpreted text processing.
2275 - Fixed nested title parsing (topic, sidebar directives).
2276 - Added special processing of backslash-escaped whitespace (idea
2277 from David Abrahams).
2278 - Made substitutions case-sensitive-but-forgiving; moved some code
2279 to ``docutils.nodes``.
2280 - Added support for block quote attributions.
2281 - Added a kludge to work-around a conflict between the bubble-up
2282 parser strategy and short titles (<= 3 char-long over- &
2283 underlines). Fixes SF bug #738803 "infinite loop with multiple
2284 titles" submitted by Jason Diamond.
2285 - Added explicit interpreted text roles for standard inline markup:
2286 "emphasis", "strong", "literal".
2287 - Implemented "superscript" and "subscript" interpreted text roles.
2288 - Added initial support for "abbreviation" and "acronym" roles;
2290 - Added support for "--trim-footnote-reference-space" option.
2291 - Optional space before colons in directives & hyperlink targets.
2293 * docutils/parsers/rst/tableparser.py:
2295 - Fixed a bug that was producing unwanted empty rows in "simple"
2297 - Detect bad column spans in "simple" tables.
2299 * docutils/parsers/rst/directives: Updated all directive functions to
2302 * docutils/parsers/rst/directives/__init__.py:
2304 - Added ``flag()``, ``unchanged()``, ``path()``,
2305 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2306 directive option helper functions.
2307 - Added warnings for unknown directives.
2308 - Return ``None`` for missing directives.
2309 - Added ``register_directive()``, thanks to William Dode and Paul
2312 * docutils/parsers/rst/directives/admonitions.py:
2314 - Added "admonition" directive.
2316 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2317 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2318 "parsed-literal", "rubric", "epigraph", "highlights" and
2319 "pull-quote" directives.
2321 * docutils/parsers/rst/directives/images.py:
2323 - Added an "align" attribute to the "image" & "figure" directives
2324 (by Adam Chodorowski).
2325 - Added "class" option to "image", and "figclass" to "figure".
2327 * docutils/parsers/rst/directives/misc.py:
2329 - Added "include", "raw", and "replace" directives, courtesy of
2331 - Added "unicode" and "class" directives.
2333 * docutils/parsers/rst/directives/parts.py:
2335 - Added the "sectnum" directive; by Dmitry Jemerov.
2336 - Added "class" option to "contents" directive.
2338 * docutils/parsers/rst/directives/references.py: Added to project.
2339 Contains the "target-notes" directive.
2341 * docutils/parsers/rst/languages/__init__.py:
2343 - Return ``None`` from get_language() for missing language modules.
2345 * docutils/parsers/rst/languages/de.py: Added to project; German
2346 mappings by Engelbert Gruber.
2348 * docutils/parsers/rst/languages/en.py:
2350 - Added interpreted text roles mapping.
2352 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2353 mappings by Marcelo Huerta San Martin.
2355 * docutils/parsers/rst/languages/fr.py: Added to project; French
2356 mappings by William Dode.
2358 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2359 mappings by Nicola Larosa.
2361 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2362 mappings by Miroslav Vasko.
2364 * docutils/readers/__init__.py:
2366 - Added support for the observer pattern from ``utils.Reporter``, in
2367 ``Reader.parse`` and ``Reader.transform``.
2368 - Removed ``Reader.transform()`` method.
2369 - Added default parameter values to ``Reader.__init__()`` to make
2370 instantiation easier.
2371 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2373 * docutils/readers/pep.py:
2375 - Added the ``peps.TargetNotes`` transform to the Reader.
2376 - Removed PEP & RFC reference detection code; moved to
2377 parsers/rst/states.py as options (enabled here by default).
2378 - Added support for pre-acceptance PEPs (no PEP number yet).
2379 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2382 * docutils/readers/python: Python Source Reader subpackage added to
2383 project, including preliminary versions of:
2386 - moduleparser.py: Parser for Python modules.
2388 * docutils/transforms/__init__.py:
2390 - Added ``Transformer`` class and completed transform reform.
2391 - Added unknown_reference_resolvers list for each transformer. This list holds
2392 the list of functions provided by each component of the transformer that
2393 help resolve references.
2395 * docutils/transforms/frontmatter.py:
2397 - Improved support for generic fields.
2398 - Fixed bibliographic field language lookups.
2400 * docutils/transforms/misc.py: Added to project. Miscellaneous
2403 * docutils/transforms/parts.py:
2405 - Moved the "id" attribute from TOC list items to the references
2406 (``Contents.build_contents()``).
2407 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2408 - Added "class" attribute support to ``Contents``.
2410 * docutils/transforms/peps.py:
2412 - Added ``mask_email()`` function, updating to pep2html.py's
2414 - Linked "Content-Type: text/x-rst" to PEP 12.
2415 - Added the ``TargetNotes`` PEP-specific transform.
2416 - Added ``TargetNotes.cleanup_callback``.
2417 - Added title check to ``Headers``.
2419 * docutils/transforms/references.py:
2421 - Added the ``TargetNotes`` generic transform.
2422 - Split ``Hyperlinks`` into multiple transforms.
2423 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2424 - Added check for circular indirect references.
2425 - Made substitutions case-sensitive-but-forgiving.
2427 * docutils/transforms/universal.py:
2429 - Added support for the "--expose-internal-attributes" option.
2430 - Removed ``Pending`` transform classes & data.
2432 * docutils/writers/__init__.py:
2434 - Removed ``Writer.transform()`` method.
2436 * docutils/writers/docutils-xml.py:
2438 - Added XML and doctype declarations.
2439 - Added "--no-doctype" and "--no-xml-declaration" options.
2441 * docutils/writers/html4css1.py:
2443 - "name" attributes only on these tags: a, applet, form, frame,
2445 - Added "name" attribute to <a> in section titles for Netscape 4
2446 support (bug report: Pearu Peterson).
2447 - Fixed targets (names) on footnote, citation, topic title,
2448 problematic, and system_message nodes (for Netscape 4).
2449 - Changed field names from "<td>" to "<th>".
2450 - Added "@" to "@" encoding to thwart address harvesters.
2451 - Improved the vertical whitespace optimization; ignore "invisible"
2452 nodes (targets, comments, etc.).
2453 - Improved inline literals with ``<span class="pre">`` around chunks
2454 of text and `` `` for runs of spaces.
2455 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2456 ``self.docinfo`` segments.
2457 - Added support for "line_block", "address" elements.
2458 - Improved backlinks (footnotes & system_messages).
2459 - Improved system_message output.
2460 - Redefined "--stylesheet" as containing an invariant URL, used
2461 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2463 - Added "--footnote-references" option (superscript or brackets).
2464 - Added "--compact-lists" and "--no-compact-lists" options.
2465 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2466 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2467 - Improved field list rendering.
2468 - Added Docutils version to "generator" meta tag.
2469 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2470 - Improved layout of <pre> HTML source.
2471 - Fixed attribute typo on <colspec>.
2472 - Refined XML prologue.
2473 - Support for no stylesheet.
2474 - Removed "interpreted" element support.
2475 - Added support for "title_reference", "sidebar", "attribution",
2476 "rubric", and generic "admonition" elements.
2477 - Added "--attribution" option.
2478 - Added support for "inline", "subscript", "superscript" elements.
2479 - Added initial support for "abbreviation" and "acronym";
2482 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2486 - Double quotes in literal blocks (special treatment for de/ngerman).
2487 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2488 - Added "--attribution" option.
2489 - Right align attributions.
2491 * docutils/writers/pep_html.py:
2493 - Parameterized output encoding in PEP template.
2494 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2495 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2496 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2498 - Added an override on the "--footnote-references" option.
2499 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2500 - Added Docutils version to "generator" meta tag.
2501 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2505 - Added a "silent" setting for ``buildhtml.py``.
2506 - Added a "Getting Help" section.
2507 - Rearranged the structure.
2508 - Kept up to date, with new settings, command-line options etc.
2509 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2510 - Converted settings table into a definition list.
2512 * docs/rst/quickstart.txt:
2514 - Added a table of contents.
2515 - Added feedback information.
2516 - Added mention of minimum section title underline lengths.
2517 - Removed the 4-character minimum for section title underlines.
2519 * docs/rst/quickref.html:
2521 - Added a "Getting Help" section.
2522 - Added a style to make section title backlinks more subtle.
2523 - Added mention of minimum section title underline lengths.
2524 - Removed the 4-character minimum for section title underlines.
2526 * extras: Directory added to project; contains third-party modules
2527 that Docutils depends on (optparse, textwrap, roman). These are
2528 only installed if they're not already present.
2530 * licenses: Directory added to project; contains copies of license
2531 files for non-public-domain files.
2535 - Changed the focus. It's about DTD elements: structural
2536 relationships, semantics, and external (public) attributes. Not
2537 about the element class library.
2538 - Moved some implementation-specific stuff into ``docutils.nodes``
2540 - Wrote descriptions of all common attributes and parameter
2541 entities. Filled in introductory material.
2542 - Working through the element descriptions: 55 down, 37 to go.
2543 - Removed "Representation of Horizontal Rules" to
2544 spec/rst/alternatives.txt.
2546 * spec/docutils.dtd:
2548 - Added "generated" inline element.
2549 - Added "line_block" body element.
2550 - Added "auto" attribute to "title".
2551 - Changed content models of "literal_block" and "doctest_block" to
2553 - Added ``%number;`` attribute type parameter entity.
2554 - Changed ``%structural.elements;`` to ``%section.elements``.
2555 - Updated attribute types; made more specific.
2556 - Added "address" bibliographic element.
2557 - Added "line" attribute to ``system_message`` element.
2558 - Removed "field_argument" element; "field_name" may contain
2559 multiple words and whitespace.
2560 - Changed public identifier to docutils.sf.net.
2561 - Removed "interpreted" element; added "title_reference",
2562 "abbreviation", "acronym".
2563 - Removed "refuri" attribute from "footnote_reference" and
2564 "citation_reference".
2565 - Added "sidebar", "rubric", "attribution", "admonition",
2566 "superscript", "subscript", and "inline" elements.
2568 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2570 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2572 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2574 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2577 * spec/transforms.txt: Added to project.
2579 * spec/howto: Added subdirectory, for developer how-to docs.
2581 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2582 Elza, edited & extended by David Goodger.
2584 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2587 * spec/rst/alternatives.txt:
2589 - Added "Doctree Representation of Transitions" from
2591 - Updated "Inline External Targets" & closed the debate.
2592 - Added ideas for interpreted text syntax extensions.
2593 - Added "Nested Inline Markup" section.
2595 * spec/rst/directives.txt:
2597 - Added directives: "topic", "sectnum", "target-notes",
2598 "line-block", "parsed-literal", "include", "replace", "sidebar",
2599 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2601 - Formalized descriptions of directive details.
2602 - Added an "align" attribute to the "image" & "figure" directives
2603 (by Adam Chodorowski).
2604 - Added "class" options to "topic", "sidebar", "line-block",
2605 "parsed-literal", "contents", and "image"; and "figclass" to
2608 * spec/rst/interpreted.txt: Added to project. Descriptions of
2609 interpreted text roles.
2611 * spec/rst/introduction.txt:
2613 - Added pointers to material for new users.
2615 * spec/rst/reStructuredText.txt:
2617 - Disambiguated comments (just add a newline after the "::").
2618 - Updated enumerated list description; added a discussion of the
2619 second-line validity checking.
2620 - Updated directive description.
2621 - Added a note redirecting newbies to the user docs.
2622 - Expanded description of inline markup start-strings in non-markup
2624 - Removed field arguments and made field lists a generic construct.
2625 - Removed the 4-character minimum for section title underlines.
2626 - Clarified term/classifier delimiter & inline markup ambiguity
2628 - Added "Embedded URIs".
2629 - Updated "Interpreted Text" section.
2630 - Added "Character-Level Inline Markup" section.
2632 * test: Continually adding & updating tests.
2634 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2635 - Moved test/test_pep/ to test/test_readers/test_pep/.
2636 - Added test/test_readers/test_python/.
2637 - Added test/test_writers/ (Engelbert Gruber).
2641 - Made the ``locale.setlocale()`` calls in front ends
2644 * tools/buildhtml.py:
2646 - Added "--silent" option.
2647 - Fixed bug with absolute paths & "--config".
2648 - Updated for new I/O classes.
2649 - Added some exception handling.
2650 - Separated publishers' setting defaults; prevents interference.
2651 - Updated for new ``publish_file()`` convenience function.
2653 * tools/pep-html-template:
2655 - Allow for "--embed-stylesheet".
2656 - Added Docutils version to "generator" meta tag.
2657 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2658 - Conform to XHTML spec.
2660 * tools/pep2html.py:
2662 - Made ``argv`` a parameter to ``main()``.
2663 - Added support for "Content-Type:" header & arbitrary PEP formats.
2664 - Linked "Content-Type: text/plain" to PEP 9.
2665 - Files skipped (due to an error) are not pushed onto the server.
2666 - Updated for new I/O classes.
2667 - Added ``check_requirements()`` & ``pep_type_error()``.
2668 - Added some exception handling.
2669 - Updated for new ``publish_string()`` convenience function.
2670 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2672 * tools/quicktest.py:
2674 - Added "-V"/"--version" option.
2676 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2678 * tools/unicode2rstsubs.py: Added to project. Produces character
2679 entity files (reSructuredText substitutions) from the MathML master
2682 * tools/editors: Support code for editors, added to project. Contains
2683 ``emacs/restructuredtext.el``.
2685 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2687 - Added style for chunks of inline literals.
2688 - Removed margin for first child of table cells.
2689 - Right-aligned field list names.
2690 - Support for auto-numbered section titles in TOCs.
2691 - Increased the size of inline literals (<tt>) in titles.
2692 - Restored the light gray background for inline literals.
2693 - Added support for "line_block" elements.
2694 - Added style for "address" elements.
2695 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2696 - Improved field list rendering.
2697 - Vertical whitespace improvements.
2698 - Removed "a.target" style.
2700 * tools/stylesheets/pep.css:
2702 - Fixed nested section margins.
2703 - Other changes parallel those of ``../default.css``.
2706 Release 0.2 (2002-07-31)
2707 ========================
2711 - The word "component" was being used ambiguously. From now on,
2712 "component" will be used to mean "Docutils component", as in Reader,
2713 Writer, Parser, or Transform. Portions of documents (Table of
2714 Contents, sections, etc.) will be called "document parts".
2715 - Did a grand renaming: a lot of ``verylongnames`` became
2716 ``very_long_names``.
2717 - Cleaned up imports: no more relative package imports or
2718 comma-separated lists of top-level modules.
2719 - Added support for an option values object which carries default
2720 settings and overrides (from command-line options and library use).
2721 - Added internal Unicode support, and support for both input and
2723 - Added support for the ``docutils.io.IO`` class & subclasses.
2727 * docutils/__init__.py:
2729 - Added ``ApplicationError`` and ``DataError``, for use throughout
2731 - Added ``Component`` base class for Docutils components; implements
2732 the ``supports`` method.
2733 - Added ``__version__`` (thus, ``docutils.__version__``).
2737 - Removed many keyword parameters to ``Publisher.__init__()`` and
2738 ``publish()``; bundled into an option values object. Added
2739 "argv", "usage", "description", and "option_spec" parameters for
2740 command-line support.
2741 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2743 - Reworked I/O model for ``docutils.io`` wrappers.
2744 - Updated ``Publisher.set_options()``; now returns option values
2746 - Added support for configuration files (/etc/docutils.conf,
2747 ./docutils.conf, ~/.docutils).
2748 - Added ``Publisher.setup_option_parser()``.
2749 - Added default usage message and description.
2751 * docutils/frontend.py: Added to project; support for front-end
2752 (command-line) scripts. Option specifications may be augmented by
2753 components. Requires Optik (http://optik.sf.net/) for option
2754 processing (installed locally as docutils/optik.py).
2756 * docutils/io.py: Added to project; uniform API for a variety of input
2759 * docutils/nodes.py:
2761 - Added ``TreeCopyVisitor`` class.
2762 - Added a ``copy`` method to ``Node`` and subclasses.
2763 - Added a ``SkipDeparture`` exception for visitors.
2764 - Renamed ``TreePruningException`` from ``VisitorException``.
2765 - Added docstrings to ``TreePruningException``, subclasses, and
2767 - Improved docstrings.
2768 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2769 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2771 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2772 ``PreDecorative`` mixin.
2773 - Reworked the name/id bookkeeping; to ``document``, removed
2774 ``explicit_targets`` and ``implicit_targets`` attributes, added
2775 ``nametypes`` attribute and ``set_name_id_map`` method.
2776 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2778 - Added ``document.has_name()`` method.
2779 - Fixed DOM generation for list-attributes.
2780 - Added category class ``Labeled`` (used by footnotes & citations).
2781 - Added ``Element.set_class()`` method (sets "class" attribute).
2783 * docutils/optik.py: Added to project. Combined from the Optik
2784 package, with added option groups and other modifications. The use
2785 of this module is probably only temporary.
2787 * docutils/statemachine.py:
2789 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2790 - Added underscores to improve many awkward names.
2791 - In ``string2lines()``, changed whitespace normalizing translation
2792 table to regexp; restores Python 2.0 compatibility with Unicode.
2794 * docutils/urischemes.py:
2796 - Filled in some descriptions.
2797 - Added "shttp" scheme.
2799 * docutils/utils.py:
2801 - Added ``clean_rcs_keywords`` function (moved from
2802 docutils/transforms/frontmatter.py
2803 ``DocInfo.filter_rcs_keywords``).
2804 - Added underscores to improve many awkward names.
2805 - Changed names of Reporter's thresholds:
2806 warning_level -> report_level; error_level -> halt_level.
2807 - Moved ``utils.id()`` to ``nodes.make_id()``.
2808 - Added ``relative_path(source, target)``.
2810 * docutils/languages/de.py: German mappings; added to project. Thanks
2811 to Gunnar Schwant for the translations.
2813 * docutils/languages/en.py: Added "Dedication" bibliographic field
2816 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2819 * docutils/parsers/rst/states.py:
2821 - Added underscores to improve many awkward names.
2822 - Added RFC-2822 header support.
2823 - Extracted the inline parsing code from ``RSTState`` to a separate
2824 class, ``Inliner``, which will allow easy subclassing.
2825 - Made local bindings for ``memo`` container & often-used contents
2826 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2827 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2828 - Added ``MarkupMismatch`` exception; for late corrections.
2829 - Added ``-/:`` characters to inline markup's start string prefix,
2830 ``/`` to end string suffix.
2831 - Fixed a footnote bug.
2832 - Fixed a bug with literal blocks.
2833 - Applied patch from Simon Budig: simplified regexps with symbolic
2834 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2835 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2836 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2837 - Allowed non-ASCII in "simple names" (directive names, field names,
2839 - Converted ``Inliner.patterns.initial`` to be dynamically built
2840 from parts with ``build_regexp()`` function.
2841 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2842 - Updated docstrings.
2843 - Changed "table" to "grid_table"; added "simple_table" support.
2845 * docutils/parsers/rst/tableparser.py:
2847 - Changed ``TableParser`` to ``GridTableParser``.
2848 - Added ``SimpleTableParser``.
2849 - Refactored naming.
2851 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2852 a fallback language for directive names.
2854 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2855 directive to use a ``pending`` element, used only by HTML writers.
2857 * docutils/parsers/rst/directives/parts.py: Renamed from
2860 - Added "backlinks" attribute to "contents" directive.
2862 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2863 project by Adam Chodorowski.
2865 * docutils/readers/__init__.py: Gave Readers more control over
2866 choosing and instantiating Parsers.
2868 * docutils/readers/pep.py: Added to project; for PEP processing.
2870 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2871 requires a ``component`` parameter.
2873 * docutils/transforms/components.py: Added to project; transforms
2874 related to Docutils components.
2876 * docutils/transforms/frontmatter.py:
2878 - In ``DocInfo.extract_authors``, check for a single "author" in an
2879 "authors" group, and convert it to a single "author" element.
2880 - Added support for "Dedication" and generic bibliographic fields.
2882 * docutils/transforms/peps.py: Added to project; PEP-specific.
2884 * docutils/transforms/parts.py: Renamed from old components.py.
2886 - Added filter for `Contents`, to use alt-text for inline images,
2887 and to remove inline markup that doesn't make sense in the ToC.
2888 - Added "name" attribute to TOC topic depending on its title.
2889 - Added support for optional TOC backlinks.
2891 * docutils/transforms/references.py: Fixed indirect target resolution
2892 in ``Hyperlinks`` transform.
2894 * docutils/transforms/universal.py:
2896 - Changed ``Messages`` transform to properly filter out system
2897 messages below the warning threshold.
2898 - Added ``Decorations`` transform (support for ``--generator``,
2899 ``--date``, ``--time``, ``--source-link`` options).
2901 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2902 Engelbert Gruber's PDF writer.
2904 * docutils/writers/html4css1.py:
2906 - Made XHTML-compatible (switched to lowercase element & attribute
2907 names; empty tag format).
2908 - Escape double-dashes in comment text.
2909 - Improved boilerplate & modularity of output.
2910 - Exposed modular output in Writer class.
2911 - Added a "generator" meta tag to <head>.
2912 - Added support for the ``--stylesheet`` option.
2913 - Added support for ``decoration``, ``header``, and ``footer``
2915 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2916 translation table to regexp; restores Python 2.0 compatibility
2918 - Added the translator class as instance variable to the Writer, to
2919 make it easily subclassable.
2920 - Improved option list spacing (thanks to Richard Jones).
2921 - Modified field list output.
2922 - Added backlinks to footnotes & citations.
2923 - Added percentage widths to "<col>" tags (from colspec).
2924 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2925 "<span>" changed to "<var>".
2926 - Inline literals: "<code>" changed to "<tt>".
2927 - Many changes to optimize vertical space: compact simple lists etc.
2928 - Add a command-line options & directive attributes to control TOC
2929 and footnote/citation backlinks.
2930 - Added support for optional footnote/citation backlinks.
2931 - Added support for generic bibliographic fields.
2932 - Identify backrefs.
2933 - Relative URLs for stylesheet links.
2935 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2936 PEPs (subclass of ``html4css1.Writer``).
2938 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2940 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2941 of the Docutils internal doctree in XML.
2943 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2947 - Changed the title to "The Docutils Document Tree".
2948 - Added "Hyperlink Bookkeeping" section.
2950 * spec/docutils.dtd:
2952 - Added ``decoration``, ``header``, and ``footer`` elements.
2953 - Brought ``interpreted`` element in line with the parser: changed
2954 attribute "type" to "role", added "position".
2955 - Added support for generic bibliographic fields.
2957 * spec/notes.txt: Continual updates. Added "Project Policies".
2959 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2962 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2964 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2965 mailing list discussions.
2967 * spec/pep-0287.txt:
2969 - Renamed to "reStructuredText Docstring Format".
2971 - Reworked Q&A as an enumerated list.
2972 - Converted to reStructuredText format.
2974 * spec/pysource.dtd:
2976 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2978 * spec/pysource.txt: Removed from project. Moved much of its contents
2981 * spec/rst/alternatives.txt:
2983 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2984 - Added "Inline External Targets" section.
2986 * spec/rst/directives.txt:
2988 - Added "backlinks" attribute to "contents" directive.
2990 * spec/rst/problems.txt:
2992 - Updated the Enumerated List Markup discussion.
2993 - Added new alternative table markup syntaxes.
2995 * spec/rst/reStructuredText.txt:
2997 - Clarified field list usage.
2998 - Updated enumerated list description.
2999 - Clarified purpose of directives.
3000 - Added ``-/:`` characters to inline markup's start string prefix,
3001 ``/`` to end string suffix.
3002 - Updated "Authors" bibliographic field behavior.
3003 - Changed "inline hyperlink targets" to "inline internal targets".
3004 - Added "simple table" syntax to supplement the existing but
3005 newly-renamed "grid tables".
3006 - Added cautions for anonymous hyperlink use.
3007 - Added "Dedication" and generic bibliographic fields.
3009 * test: Made test modules standalone (subdirectories became packages).
3011 * test/DocutilsTestSupport.py:
3013 - Added support for PEP extensions to reStructuredText.
3014 - Added support for simple tables.
3015 - Refactored naming.
3017 * test/package_unittest.py: Renamed from UnitTestFolder.py.
3019 - Now supports true packages containing test modules
3020 (``__init__.py`` files required); fixes duplicate module name bug.
3022 * test/test_pep/: Subpackage added to project; PEP testing.
3024 * test/test_rst/test_SimpleTableParser.py: Added to project.
3028 - Updated html.py and publish.py front-end tools to use the new
3029 command-line processing facilities of ``docutils.frontend``
3030 (exposed in ``docutils.core.Publisher``), reducing each to just a
3032 - Added ``locale.setlocale()`` calls to front-end tools.
3034 * tools/buildhtml.py: Added to project; batch-generates .html from all
3035 the .txt files in directories and subdirectories.
3037 * tools/default.css:
3039 - Added support for ``header`` and ``footer`` elements.
3040 - Added styles for "Dedication" topics (biblio fields).
3042 * tools/docutils.conf: A configuration file; added to project.
3044 * tools/docutils-xml.py: Added to project.
3046 * tools/pep.py: Added to project; PEP to HTML front-end tool.
3048 * tools/pep-html-template: Added to project.
3050 * tools/pep2html.py: Added to project from Python (nondist/peps).
3051 Added support for Docutils (reStructuredText PEPs).
3053 * tools/quicktest.py:
3055 - Added the ``--attributes`` option, hacked a bit.
3056 - Added a second command-line argument (output file); cleaned up.
3058 * tools/stylesheets/: Subdirectory added to project.
3060 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
3063 Release 0.1 (2002-04-20)
3064 ========================
3066 This is the first release of Docutils, merged from the now inactive
3067 reStructuredText__ and `Docstring Processing System`__ projects. For
3068 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
3069 `DPS HISTORY`__ files.
3071 __ http://structuredtext.sourceforge.net/
3072 __ http://docstring.sourceforge.net/
3073 __ http://structuredtext.sourceforge.net/HISTORY.html
3074 __ http://docstring.sourceforge.net/HISTORY.html
3076 General changes: renamed 'dps' package to 'docutils'; renamed
3077 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
3078 the test suites (reStructuredText's test/test_states renamed to
3079 test/test_rst); and all modifications required to make it all work.
3081 * docutils/parsers/rst/states.py:
3083 - Improved diagnostic system messages for missing blank lines.
3084 - Fixed substitution_reference bug.
3090 indent-tabs-mode: nil
3091 sentence-end-double-space: t