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.
20 * docs/ref/rst/restructuredtext.txt:
22 - Added documentation for escaped whitespace in URI contexts.
24 * docutils/parsers/rst/states.py:
26 - Added functionality: escaped whitespace in URI contexts.
28 * docutils/utils/__init__.py:
30 - Added ``split_escaped_whitespace`` function, support for escaped
31 whitespace in URI contexts.
35 - New front-end ``rst2html4.py``.
38 Release 0.13.1 (2016-12-09)
39 ===========================
41 * docutils/languages/fa.py
42 docutils/parsers/rst/languages/fa.py
43 docutils/languages/la.py
44 docutils/parsers/rst/languages/la.py:
46 - Apply [ 133 ] Persian mappings by Shahin Azad.
47 - Apply [ 135 ] Language modules for Latvian by Alexander Smishlajev
51 - Fix [ 253 ] Attribute key without value not allowed in XML.
55 - Apply [ 103 ] Recognize inline markups without word boundaries.
56 - Enable escaping in embedded URIs and aliases (fixes [ 284 ]).
58 * docutils/parsers/rst/__init__.py
60 - Fix [ 233 ] Change the base URL for the :rfc: role.
62 * docutils/parsers/rst/directives/tables.py
64 - Apply [ 120 ] tables accept option widths: list of relative widths, 'auto'
67 - Implement feature request [ 48 ]
68 Add :align: option to the table directives.
69 Thanks to Takeshi KOMIYA for the patch.
71 * docutils/parsers/rst/roles.py
73 - Fix [ 295 ] Class argument for custom role inheriting from math.
75 * docutils/parsers/rst/tableparser.py
77 - Really fix [ 159 ] Spurious table column alignment errors.
79 * docutils/transforms/frontmatter.py
81 - Add name of generic bibliographic fields as a "classes" attribute value
82 (after conversion to a valid identifier form).
84 * docutils/utils/error_reporting.py
86 - Fix [ 130 ] support streams expectiong byte-strings in ErrorOutput.
88 * docutils/utils/math/math2html.py
90 - Add ``\colon`` macro, fix spacing around colons. Fixes [ 246 ].
91 - New upstream version (additional macros, piecewise integrals and sums).
93 * docutils/writers/_html_base.py
95 - New auxiliary module for definitions common to all HTML writers.
97 * docutils/writers/html5_polyglot/
99 - New HTML writer generating clean, polyglot_ markup conforming to
102 The CSS stylesheets ``minimal.css`` and ``plain.css`` contain required
103 and recommended layout rules.
105 * docutils/writers/html4css1/__init__.py
107 - Add "docutils" to class values for "container" object to address [ 267 ].
108 - Apply patch [ 119 ] by Anatoly Techtonik: use absolute paths for
109 ``default_stylesheet_path`` and ``default_template_path``.
110 - Fix [ 266 ] creating labels/class values in description list items.
111 - Do not use <sup> and <sub> tags inside <pre> (parsed-literal blocks).
112 - Fix footnotes with content that does not start with a paragraph.
113 - Use https in default MathJax URL (report Alan G Isaac).
114 - Outsourcing of common code to _html_base.py.
116 * docutils/writers/latex2e/__init__.py
118 - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
119 admonitions and docinfo.
121 - Use absolute path for ``default_template_path``.
123 - Removed deprecated options ``--use-latex-footnotes`` and
124 ``--figure-footnotes``.
126 - Cleaner LaTeX code for enumerations and literal blocks.
128 - Use "hyperref" package together with "bookmark" (improved hyperlinking
131 - Fix [ 286 ] Empty column title cause invalid latex file.
133 - Fix [ 224 ] Fix rowspan support for tables.
135 - Let LaTeX determine the column widths in tables with "colwidths-auto".
136 Not suited for with multi-paragraph cells!
138 * docutils/writers/odf_odt/__init__.py
140 - remove decode.encode of filename stored in zip.
142 * docutils/writers/xetex/__init__.py
144 - LuaLaTex compatibility: do not load "xunicode".
148 - New front-end ``rst2html5.py``.
152 - Test py26, py27, py33 and py34.
154 To use, install the ``tox`` package via pip or easy_install and use
155 tox from the project root directory.
157 .. _polyglot: http://www.w3.org/TR/html-polyglot/
158 .. _HTML 5: http://www.w3.org/TR/html5/
159 .. _XHTML 1.0: http://www.w3.org/TR/xhtml1/
162 Release 0.12 (2014-07-06)
163 =========================
165 * docs/ref/rst/directives.txt
167 - Update "math" and "csv-table" descriptions.
169 * docutils/parsers/rst/directives/images.py
171 - Fix [ 258 ] figwidth="image" generates unitless width value.
173 * docutils/parsers/rst/states.py
175 - Improve error report when a non-ASCII character is specified as
176 delimiter, quote or escape character under Python 2.
177 Fixes [ 249 ] and [ 250 ].
179 * docutils/writers/html4css1/__init__.py
181 - Don't add newline after inline math.
182 Thanks to Yury G. Kudryashov for the patch.
184 * docutils/writers/latex2e/__init__.py
186 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
187 - Apply [ 116 ] by Kirill Smelkov. Don't hardcode \large for subtitle.
189 * docutils/writers/odf_odt/__init__.py
191 - Apply patch by Jakub Wilk to fix bug [ 100 ].
193 * test/test_error_reporting.py
195 - Fix [ 223 ] by removing redundant tests we do not have control over.
199 - Apply [ 115 ] respect fixed 2to3 string literal conversion behavior.
201 Release 0.11 (2013-07-22)
202 =========================
206 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
207 - Support embedded aliases within hyperlink references.
208 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
209 language module) before global search.
213 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
215 * docutils/parsers/rst/directives/__init__.py
217 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
219 * docutils/parsers/rst/directives/images.py
221 - Apply [ 3599485 ] node source/line information for sphinx translation.
223 * docutils/parsers/rst/directives/tables.py
225 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
227 * docutils/parsers/rst/states.py
229 - Fix [ 157 ] Line block parsing doesn't like system message.
230 - Always import our local copy of roman.py (report Larry Hastings).
232 * docutils/transforms/references.py
234 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
236 * docutils/utils/__init__.py
238 - Fix [ 3596884 ] exception importing ``docutils.io``.
240 * docutils/writers/html4css1/__init__.py
242 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
243 - New setting `stylesheet_dirs`: Comma-separated list of directories
244 where stylesheets are found. Used by `stylesheet_path` when expanding
245 relative path arguments.
246 - New default for math-output_: ``HTML math.css``.
247 - Avoid repeated class declarations in html4css1 writer
248 (modified version of patch [ 104 ]).
250 .. _math-output: docs/user/config.html#math-output
252 * docutils/writers/latex2e/__init__.py
254 - Drop the simple algorithm replacing straight double quotes with
255 English typographic ones.
256 Activate the SmartQuotes_ transform if you want this feature.
257 - Fix literal use of babel shorthands (straight quote, tilde, ...).
258 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
259 - New setting `stylesheet_dirs`.
261 .. _SmartQuotes: docs/user/config.html#smart-quotes
263 * docutils/writers/manpage.py
265 - Fix [3607063] handle lines starting with a period.
266 - Fix option separating comma was bold (thanks to Bill Morris).
268 Release 0.10 (2012-12-16)
269 =========================
273 - Dropped support for Python 2.3.
274 - ``docutils/math``, ``docutils/error_reporting.py``, and
275 ``docutils/urischemes.py`` moved to the utils package.
276 - Fix [3541369] Relative __import__ also with Python 3.3.
277 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
278 and parsers for Python 2.7 up.
279 - Fix import of PIL.Image.
280 - Change default of "syntax highlight" option to "long",
281 basic syntax highlight styles for LaTeX and HTML.
285 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
286 option is ignored and will be removed in a future release.
287 - Fix Py3k error writing to stdout with encoding differing from default.
288 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
290 * docutils/parsers/rst/directives/misc.py
292 - Fix [ 3546533 ] Unicode error with `date` directive.
294 * docutils/transforms/universal.py
296 - SmartQuotes transform for typographic quotes and dashes.
298 * docutils/utils/__init__.py
300 - normalize_language_tag() now returns `BCP 47`_ conformant tags
301 with subtags separated by ``-``.
303 * docutils/writers/html4css1/__init__.py
305 - Use ``<code>`` tag for inline "code",
306 do not drop nested inline nodes (syntax highlight tokens).
307 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
308 - No line break after opening inline math tag.
310 * docutils/writers/manpage.py
312 - Apply [ 3527401 ] addmonition's don't preserve indentation
313 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
315 * docutils/writers/xetex/__init__.py
317 - Apply [ 3555160 ] ensure order of "otherlanguages".
318 - Fix section numbering by LaTeX.
320 * docutils/writers/s5_html/__init__.py
322 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
324 * docutils/writers/s5_html/docutils_xml.py
326 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
327 - Fix/improve output with ``--indent`` option.
331 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
333 * tools/test/test_buildhtml.py
335 - Fix [ 3521167 ] allow running in any directory.
336 - Fix [ 3521168 ] allow running with Python 3.
339 Release 0.9.1 (2012-06-17)
340 ==========================
344 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
345 installed in the PYTHONPATH. Converted tests are now
346 stored in ``test3/``, tools no longer need conversion.
348 If you installed one of Docutils versions 0.7 ... 0.9 with
349 ``setup.py install`` under Python 3, remove the spurious
350 ``test/`` and ``tools/`` directories in the site library root.
354 - Make tests independent from the location of the ``test/`` directory.
355 - Use converted sources (from the ``build/`` directory) for tests under
360 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
364 - Fix writing binary data to sys.stdout under Python 3 (allows
365 ``rst2odt.py`` to be used with output redirection).
367 * docutils/parsers/rst/directives/misc.py
369 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
370 ``locale == C`` and 8-bit char in path argument of `include` directive.
374 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
377 Release 0.9 (2012-05-02)
378 ========================
382 - New reStructuredText "code" role and directive and "code" option
383 of the "include" directive with syntax highlighting by Pygments_.
384 - Fix parse_option_marker for option arguments containing ``=``.
385 - Fix [ 2993756 ]: import Python Imaging Library's Image module
386 via ``import PIL`` as starting with PIL 1.2,
387 "PIL lives in the PIL namespace only" (announcement__).
389 .. _Pygments: http://pygments.org/
390 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
394 - Fix [ 2971827 ] and [ 3442827 ]
395 extras/roman.py moved to docutils/utils/roman.py
397 * docutils/frontend.py
399 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
403 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
404 - `mode` argument for FileOutput avoids code replication in
406 - New exceptions InputError and OutputError for IO errors in
407 FileInput/FileOutput.
411 - No "hard" system exit on file IO errors: catch and report them in
412 `Publisher.reportException` instead. Allows handling by a calling
413 application if the configuration setting `traceback` is True.
415 * docutils/utils.py -> docutils/utils/__init__.py
417 - docutils.utils is now a package (providing a place for sub-modules)
419 .. note:: docutils/math, docutils/error_reporting.py, and
420 docutils/urischemes.py will move to the utils package in the next
421 release, too. See RELEASE-NOTES__
423 __ RELEASE-NOTES.html
425 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
426 errors recording non-ASCII filenames (fixes [ 3434355 ]).
428 - Fix relative_path() with source=None and `unicode` target.
430 * docutils/parsers/rst/states.py
432 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
433 characters and "international" quotes around inline markup.
434 - Use `field_marker` pattern to look for start of a
435 directive option block (fixes [ 3484857 ]).
437 * docutils/parsers/rst/tableparser.py
439 - Fix [ 2926161 ] for simple tables.
440 (Combining chars in grid tables still contribute to cell width.)
442 * docutils/writers/latex2e/__init__.py
444 - Support the `abbreviation` and `acronym` standard roles.
445 - Record only files required to generate the LaTeX source as dependencies.
446 - Fix handling of missing stylesheets.
447 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
448 when suppressing LaTeX section numbering.
449 - Use ``\DUtitle`` for unsupported section levels
450 - Apply [ 3512791 ] do not compare string literals with "is"
452 * docutils/writers/xetex/__init__.py
454 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
456 * docutils/writers/html4css1/__init__.py
458 - Change default for `math-output` setting to MathJax.
459 - Fix handling of missing stylesheets.
461 * docutils/writers/docutils_xml.py
463 - Use the visitor pattern with default_visit()/default_depart() methods
464 instead of minidom to facilitate special handling of selected nodes.
465 - Support raw XML (inserted as-is inside a <raw></raw> node).
467 * docutils/writers/manpage.py
469 - Do not emit comment line with trailing blank. Problematic for VCS.
471 Release 0.8.1 (2011-08-30)
472 ==========================
476 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
477 and [ 3395920 ] (correct copyright info for rst.el).
481 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
483 * docutils/writers/latex2e/__init__.py
485 - Clean up Babel language setting. Restores Sphinx compatibility.
487 Release 0.8 (2011-07-07)
488 ========================
492 - Handle language codes according to `BCP 47`_.
493 - If the specified language is not supported by Docutils,
494 warn and fall back to English.
495 - Math support: reStructuredText "math" role and directive,
496 ``math`` and ``math_block`` doctree elements.
497 - Decode command line arguments with the locale's preferred encoding
498 (to allow, e.g., ``--title=Dornröschen``).
499 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
500 - New sub-module `error_reporting`: handle encoding/decoding errors
501 when reporting exceptions.
502 - Some additions to the Docutils core are released under the 2-Clause BSD
503 license, see COPYING_ for details.
505 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
506 .. _COPYING: COPYING.html
510 - Most directives now support a "name" option that attaches a
513 - Directive content may start on the first line also when the directive
514 type accepts options.
516 * docs/dev/policies.txt:
518 - Recommend the 2-Clause BSD license
519 (http://www.spdx.org/licenses/BSD-2-Clause)
520 for code that is kept under the author's copyright.
522 * tools/buildhtml.py:
524 - Fix ``--local`` switch.
526 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
528 * docutils/writers/html4css1/__init__.py
530 - Set "lang" argument for objects with class argument
531 "language-<language tag>".
532 - New setting "math-output" with support for HTML, MathML, and LaTeX.
534 * docutils/writers/latex2e/__init__.py
536 - Fix [ 3043986 ] AttributeError using :local: with table of content.
537 - Place title data in the document preamble.
538 - Load `babel` package only if required.
539 - Update list of supported languages.
540 - New config setting "hyperref-options".
541 No hard-coded "unicode" hyperref option (clash with xetex).
542 - Set language for custom roles, paragraphs, block-quotes, and
543 line-quotes with class argument "language-<language tag>".
544 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
545 - Convert image URI to a local file path.
546 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
547 has more than one paragraph (Wolfgang Scherer).
548 - \leavevmode before longtable only when needed (prevents spurious vspace)
549 - do not advance table counter for tables without caption
551 * docutils/writers/xetex/__init__.py
553 - New writer generating LaTeX code for compiling with ``xelatex``.
555 A separate writer (inheriting from latex2e) instead of a ``--xetex``
556 option allows separate config options for XeTeX vs. LaTeX2e.
558 * docutils/writers/manpage.py
560 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
561 - Fix: vertical space cleaning for option group ``.``.
563 * tools/editors/emacs/rst.el:
565 - Fix [ 3001100 ] does not handle spaces in filenames
566 (thanks to Jakub Wilk)
570 - strip whitespace from stylesheet arguments
571 - exclude combining chars from column_width()
572 (partial fix for [ 2926161 ])
574 * docutils/parsers/rst/directives/misc.py:
576 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
581 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
582 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
584 Release 0.7 (2010-07-07)
585 ========================
589 - Fix [ 2881769 ] setup configuration.
590 - Fix [ 2788716 ] reporting problems in included files.
594 - FileInput opens files as text files with universal newline support
595 (mode "rU", configurable with the new optional argument "mode").
599 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
603 - Fix [ 2923723 ] let decode_path() tolerate path == None
605 * docutils/writers/html4css1/__init__.py
607 - Support SVG and SWF images (thanks to Stefan Rank).
608 - Generate valid XHTML for centered images with targets.
609 Use CSS classes instead of "align" tags for image alignment.
611 * docutils/writers/latex2e/__init__.py
613 - Use `transforms.writer_aux.Admonitions` to "normalize" special
615 - Use the ``\url`` command for URLs (breaks long URLs instead of
616 writing into the margin).
617 - Preserve runs of spaces in `inline literals`__.
618 - Deprecate ``figure_footnotes`` setting.
619 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
620 - New ``latex_preamble`` setting.
621 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
622 - Fix hyperlink targets (labels) for images, figures, and tables.
623 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
624 - Apply [ 2961991 ] Call hyperref with unicode option.
625 - Drop the special `output_encoding`__ default ("latin-1").
626 The Docutils wide default (usually "UTF-8") is used instead.
627 - Render inline markup in document title and subtitle.
628 - Fix numbering depth with LaTeX section numbering.
629 - Update Unicode -> LaTeX translations.
630 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
632 __ docs/ref/restructuredtext.html#inline-literals
633 __ docs/user/config.html#docutils-footnotes
634 __ docs/user/config.html#output_encoding
636 * docutils/writers/manpage.py
638 - Fix: supported attribute (thanks to peter2108).
639 - Remove trailing blanks in code (keep in sync with mercurial version).
640 - Titles level 1, that is ``.SH``, always uppercase.
641 - Apply patch from mg: literal text should be bold in man-pages.
645 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
650 - Python 3 support: copy test/ and tools/ to the build-dir
651 and convert Python sources with 2to3.
654 Release 0.6 (2009-10-11)
655 ========================
659 - Docutils is now compatible with Python versions from 2.3 up to 2.6
660 and convertible to 3.1 code.
662 + Node.__nonzero__ returns True instead of 1.
663 + use os.walk instead os.path.walk.
664 + minimize "types" module where possible.
665 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
666 + Text nodes now subclass unicode rather than UserString
667 (which is gone in python 3.0).
668 + 3.0 compatibility module docutils._compat
670 + Drop 2.2 compatibility workarounds.
671 + Drop extras/optparse.py and extras/textwrap.py
672 (stdlib modules since 2.3).
674 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
675 - Unix man page export: manpage writer moved from sandbox to Doctutils
678 - Apply [ 1719345 ] Galician translation
679 - Apply [ 1905741 ] Polish translation
680 - Apply [ 1878977 ] make_id(): deaccent characters.
681 - Apply [ 2029251 ] return nonzero when tests fail.
682 - Fix [ 1692788 ] allow UTF-8 in style sheets.
683 - Fix [ 2781629 ] support non-ASCII chars in file names.
684 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
685 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
686 - Fix [ 2821266 ] --strict option works now like --halt=info.
687 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
688 - Fix [ 1627229 ] hyperlink references in substitutions.
690 - The "newlatex" writer is orphaned.
694 - Documented Unicode characters allowed as inline markup openers,
695 closers, and delimiters.
696 - Allow units for all length specifications.
697 - Allow percent sign in "scale" argument of "figure" and "image" directives.
698 - Bugfix: The "figalign" argument of a figure now works as intended
699 (aligning the figure, not its contents).
700 - Align images with class "align-[right|center|left]"
701 (allows setting the alignment of an image in a figure).
705 - Added ``Element.__contains__`` method, for the in-operator.
707 * docutils/parsers/rst/states.py:
709 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
710 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
711 " " (non-breaking space), and "¡ ¿" openers.
713 * docutils/parsers/directives/misc.py:
715 - Added ``start-line`` and ``end-line`` options to "include"
716 directive to select a range of lines.
717 - Hard tabs in literal inclusions are replaced by spaces. This is
718 configurable via the new ``tab-width`` option of the "include" directive
719 (a negative tab-width prevents tab expansion).
723 - Add ``get_stylesheet_list`` function.
724 - Apply [ 2834836 ] print info at halt
726 * docutils/transforms/universal.py:
728 - Raise default priority of StripClasses to exclude stripped classes from
731 * docutils/writers/html4css1/__init__.py:
733 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
734 separated list of stylesheets.
735 - Address [ 1938891 ] Inline literal text creates "pre" span only when
736 needed to prevent inter-word line wraps.
737 - Use `translate` method instead of repeated `replace` calls.
738 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
739 classes to allow CSS styling that does not interfere with other
740 table-using constructs (field lists, citations, ...).
742 * docutils/writers/newlatex2e/__init__.py:
744 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
746 * docutils/writers/latex2e/__init__.py (see also
747 `<docs/user/docutils-05-compat.sty.html>`__) :
749 - Add ``--embed-stylesheet`` option.
750 - Apply [ 1474017 ] image vertical alignment is reversed.
751 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
752 - Change: has_key for dictionaries (not Nodes) to in-operator.
753 - Merge adjacent citations into one latex cite command.
754 - Failsave implementation of custom roles. LaTeX compilation now ignores
755 unknown classes instead of aborting with an error.
756 - Support custom roles based on standard roles.
757 - LaTeX packages can be used as ``--stylesheet`` arguments without
758 restriction. (A style sheet is now referenced with the ``\usepackage``
759 command, if it ends with ``.sty`` or has no extension.)
760 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
761 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
762 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
763 2005-02-04 as a configurable length unit).
764 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
765 if font-encoding is set to ''. LaTeX defaults to OT1 then.
766 - Set sub- and superscript role argument in text mode not as math.
767 Use a custom role based on sub-/superscript if you want italic shape.
768 - Shorter preamble and less dependencies: Load packages and define macros
769 only if required in the document.
770 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
771 - New custom environments and commands with optional "classes" argument.
772 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
773 - Better conformance to Docutils specifications with ``--use-latex-toc``.
774 Support for LaTeX generated ToC also with unnumbered sections.
775 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
776 section numbering by LaTeX.
777 - Use default font in admonitions and sidebar.
778 - Align of image in a figure defaults to 'center'.
779 - Bugfix: Newlines around targets and references prevent run-together
781 - Fix internal hyperlinks.
782 - Use class defaults for page margins ('typearea' now optional).
783 - Float placement made configurable, default changed to "here definitely".
784 - Typeset generic topic as "quote block with title".
785 - Use template (file and configuration option).
786 - In the default template, load cmap.sty (fix text extraction in PDF) and
787 fixltx2e.sty (LaTeX patches, \textsubscript).
788 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
789 - Use `translate` instead of repeated `replace` calls for text encoding.
790 - Hyperlinked footnotes and support for symbol footnotes and
791 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
792 - Complete pairs of binary options
793 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
794 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
796 - font-encoding: "T1" (formerly implicitely set by 'ae').
797 - use-latex-toc: true (ToC with page numbers).
798 - use-latex-footnotes: true (no mixup with figures).
800 * docutils/writers/manpage.py
802 - Do not print version at document end, this is done by the viewer.
803 - Do not print date at document end, this is done by the viewer.
804 - Fix storage of docinfo fields for none standard fields.
806 * docutils/tools/rst2man.py
808 Release 0.5 (2008-06-25)
809 ========================
811 * docutils/languages/he.py: Added to project: Hebrew mappings by
814 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
815 mappings by Meir Kriheli.
817 * docutils/frontend.py:
819 - Configuration files are now assumed and required to be
821 - Paths of applied configuration files are now recorded in the
822 runtime setting ``_config_files`` (accessible via
823 ``--dump-settings``).
824 - Added ``--strip-elements-with-class`` and ``--strip-class``
825 options (``strip_elements_with_classes`` and ``strip_classes``
830 - Added code to determine the input encoding from data: encoding
831 declarations or the presence of byte order marks (UTF-8 & UTF-16).
832 - Added support for IronPython 1.0.
836 - Added ``document.__getstate__`` method, for pickling.
838 * docutils/parsers/rst/states.py:
840 - Allow ``+`` and ``:`` in reference names.
841 - Unquoted targets beginning with an underscore (``.. __target:
842 URI``) are no longer accepted.
843 - Added support for multiple attributions in a physical block quote
844 (indented text block), dividing it into multiple logical block
846 - Added support for unicode bullets in bullet lists: "•", "‣", and
848 - Added support for new object-oriented directive interface,
849 retaining compatibility to the old functional interface.
850 - Added support for throwing ``DirectiveError``'s from within
853 * docutils/parsers/rst/__init__.py:
855 - Added ``Directive`` base class.
856 - Added ``DirectiveError`` base class.
857 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
860 * docutils/parsers/directives/:
862 - Refactored all reStructuredText directives to use the new
863 object-oriented directive interface. Errors are now (mostly)
864 thrown using the new ``DirectiveError`` class.
866 * docutils/parsers/directives/misc.py:
868 - Added ``start-after`` and ``end-before`` options to ``include``
869 directive; thanks to Stefan Rank.
871 * docutils/transforms/universal.py:
873 - Added ``StripClassesAndElements`` transform to remove from the
874 document tree all elements with classes in
875 ``settings.strip_elements_with_classes`` and all "classes"
876 attribute values in ``self.document.settings.strip_classes``.
878 * docutils/transforms/writer_aux.py:
880 - Added ``Admonitions`` transform to transform specific admonitions
881 (like ``note``, ``warning``, etc.) into generic admonitions with a
884 * docutils/writers/html4css1/__init__.py:
886 - Moved template functionality from the PEP/HTML writer here.
887 - Expanded the fragments available in the ``parts`` attribute.
888 - Moved ``id`` attributes from titles to surrounding ``div``
890 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
891 universally supported now).
892 - ``template.txt`` is now opened in text mode instead of binary mode
893 (to ensure Windows compatibility).
894 - ``a`` elements now have an "internal" or "external" class,
895 depending on reference type.
897 * docutils/writers/html4css1/template.txt: Added to project.
899 * docutils/writers/pep_html/:
901 - Moved template functionality to the HTML writer.
903 * docutils/writers/s5_html/__init__.py:
905 - Added ``view_mode`` & ``hidden_controls`` settings
906 (``--view-mode`` & ``--hidden-controls/--visible-controls``
909 * docutils/writers/latex2e/__init__.py:
911 - Add ``--literal-block-env``
912 - Fix: escaping ``%`` in href urls.
913 - Move usepackage hyperref after stylesheet inclusion.
914 - Fix: scrartcl does not have chapter but scrreprt.
915 - Add newline after ``\end{verbatim}``.
916 - Merge smaller differences from latex2e_adaptive_preamble.
917 - Add ``use-part-section``.
918 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
919 - Using leavemode option_list no longer needs to check if parent
920 is a definition list.
921 - Append ``\leavemode`` to definition list terms.
922 - No longer write visit\_/depart_definition_list_item comments to
924 - Table column width with 3 decimal places.
925 - Add table stubs support (boldfont).
926 - Add assemble_parts to writer.
927 - Add simply support for nested tables.
928 - Fix verbatim in tables if use-verbatim-when-possible.
929 - Use section commands down to subparagraph.
930 - Put ensuremath around some latin1 chars.
931 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
932 - New option ``--use-bibtex=style,db1,db2``.
933 - New option ``--reference-label`` to allow usage of LaTeX ref for
934 labels in section references.
935 - Add a label after every section to support sectionnumbers as reference
937 - Fix: bug# 1605376 rst2latex: bad options group list
938 - Remove inactive code for use_optionlist_for_option_list.
939 - Remove latex comments from option_list output.
940 - Fix: bug# 1612270 double qoutes in italian literal.
941 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
942 - Add option --use-latex-abstract.
943 - Image width unit ``px`` is translated to ``pt``.
944 - Add image height support.
945 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
947 - Fix: Do not escape underscores in citation reference labels if
948 use-latex-citations is set.
949 - Use centering instead of center for figure contents, to avoid vertical
951 - Recognize table class: borderless, nolines, booktabs, standard.
952 - Fix: Renaming contents section does not work with latex writer; SF
954 - Applied patch for custom roles with classes from Edward Loper.
955 - Fixed bug that caused crashes with more than 256 lists.
957 * docutils/writers/pep_html/__init__.py:
959 - Changed to support new python.org website structure and
962 * docs/howto/security.txt: "Deploying Docutils Securely", added to
965 * tools/buildhtml.py:
967 -- Added ``ignore`` setting to exclude a list of shell patterns
968 (default: ``.svn:CVS``).
970 * tools/editors/emacs/rst.el:
972 - Changed license to "GPL".
973 - Added ``rst-straighten-decorations`` function.
974 - The ``compile`` module is now always loaded.
975 - Added ``rst-toggle-line-block`` function.
976 - Headings consisting only of non-ASCII characters are now
977 recognized by ``rst-toc`` and ``rst-adjust``.
978 - Added font-lock support for multi-line comments where the first
979 comment line is empty.
980 - Added ``(require 'font-lock)``.
984 - Provide descriptive error message if distutils is missing.
987 Release 0.4 (2006-01-09)
988 ========================
992 - Updated the project policies for trunk/branch development &
995 * docutils/__init__.py:
997 - Added ``__version_details__`` attribute to describe code source
998 (repository/snapshot/release).
999 - Replaced ``default_transforms`` attribute of TransformSpec with
1000 ``get_transforms()`` method.
1004 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
1005 functions, for document tree extraction and reprocessing.
1009 - Added ``DocTreeInput`` class, for reprocessing existing documents.
1010 - Added support for non-Unicode (e.g. binary) writer output.
1012 * docutils/nodes.py:
1014 - Re-introduced ``Targetable.indirect_reference_name``, for
1015 MoinMoin/reST compatibility (removed in r3124/r3129).
1016 - Added ``serial_escape`` function; escapes string values that are
1017 elements of a list, for serialization. Modified Docutils-XML
1018 writing (``Element._dom_node``) and pseudo-XML writing
1019 (``Element.starttag``) to use ``serial_escape``.
1020 - Added ``Node.deepcopy()`` method.
1021 - Removed the internal lists ``document.substitution_refs``,
1022 ``document.anonymous_refs``, and ``document.anonymous_targets``.
1023 - Added a "container" element.
1024 - Fixed bug where values of list-valued attributes of elements
1025 originating from custom interpreted text roles (i.e., with custom
1026 classes) were being shared between element instances. Reported by
1029 * docutils/statemachine.py:
1031 - Added trailing whitespace stripping to ``string2lines()``.
1032 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
1033 Asian double-width character support.
1035 * docutils/utils.py:
1037 - Added ``east_asian_column_width()`` for double-width character
1040 * docutils/languages/ja.py: Added to project: Japanese mappings by
1043 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
1044 mappings by Panjunyong.
1046 * docutils/parsers/null.py: Added to project; a do-nothing parser.
1048 * docutils/parsers/rst/__init__.py:
1050 - Added validator to tab_width setting, with test. Closes SF bug
1051 #1212515, report from Wu Wei.
1053 * docutils/parsers/rst/states.py:
1055 - Fixed bug with escaped colons indicating a literal block.
1056 - Fixed bug with enumerated lists (SF#1254145).
1057 - Backslash-escaped colons inside of field names are now allowed.
1058 - Targets (implicit and explicit), anonymous hyperlink references
1059 and auto-numbered footnote references inside of substitution
1060 definitions are now disallowed.
1061 - Fixed bug: list items with blank first lines.
1062 - Fixed bug: block quote attributions with indented second lines.
1063 - Added East Asian double-width character support (Python 2.4 only).
1065 * docutils/parsers/rst/tableparser.py:
1067 - Added East Asian double-width character support (Python 2.4 only).
1069 * docutils/parsers/rst/directives/body.py:
1071 - Added the "container" directive.
1073 * docutils/parsers/rst/directives/misc.py:
1075 - Added the "default-role", "title", and "date" directives.
1076 - Added standard data file syntax to the "include" directive.
1077 - Added support for "class" directive content.
1079 * docutils/parsers/rst/directives/images.py:
1081 - Added ``indirect_reference_name`` support for images with a target
1083 - Added support for image width and height units.
1084 - Fixed bug with image "target" options.
1086 * docutils/parsers/rst/directives/references.py:
1088 - Added "class" attribute to "target-notes" directive, for
1089 footnote_reference classes.
1091 * docutils/parsers/rst/include/: Directory added to project; contains
1092 standard data files for the "include" directive. Initial contents:
1093 character entity substitution definition sets, and a set of
1094 definitions for S5/HTML presentations.
1096 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
1097 mappings by David Goodger.
1099 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
1100 Simplified Chinese mappings by Panjunyong.
1102 * docutils/readers/__init__.py:
1104 - Added universal.Decorations and universal.ExposeInternals
1105 transforms as default transforms for all readers.
1106 - Added ``ReReader`` base class for readers that reread an existing
1109 * docutils/readers/doctree.py: Added to project; a reader for existing
1112 * docutils/transforms/frontmatter.py:
1114 - Fixed the DocInfo transform to handle SVN-style expansion of the
1116 - In ``DocInfo.extract_authors``, treat the contents of "authors"
1119 * docutils/transforms/misc.py:
1121 - Added misc.Transitions transform, extracted from
1122 universal.FinalChecks.
1124 * docutils/transforms/references.py:
1126 - Added references.DanglingReferences transform, extracted from
1127 universal.FinalChecks.
1128 - Fixed bug with doubly-indirect substitutions.
1129 - Added footnote_reference classes attribute to "TargetNotes".
1130 - Fixed bug with circular substitution definitions that put Docutils
1131 into an infinite loop.
1133 * docutils/transforms/universal.py:
1135 - Added universal.ExposeInternals transform, extracted from
1136 universal.FinalChecks.
1137 - Removed universal.FinalChecks transform (logic has been moved to
1138 several new transforms).
1139 - Fixed bug with the "expose_internals" setting and Text nodes
1140 (exposed by the "rawsource" internal attribute).
1141 - Added the universal.StripComments transform, implementation of the
1142 "strip_comments" setting.
1144 * docutils/transforms/writer_aux.py: Added to project; auxiliary
1145 transforms for writers.
1147 - Added ``Compound`` transform, which flattens compound paragraphs.
1149 * docutils/writers/: Several writer modules (html4css1.py) were
1150 converted into packages. Support modules and data files have been
1151 moved into the packages. The stylesheets for the HTML writers are
1152 now installed along with the code, the code knows where to find
1153 them, and the default is to use them (actually, to embed them).
1154 Some adjustments to configuration files may be necessary. The
1155 easiest way to obtain the new default behavior is to remove all
1156 settings whose name includes "stylesheet".
1158 * docutils/writers/__init__.py:
1160 - Added universal.Messages and universal.FilterMessages transforms
1161 as default transforms for all writers.
1162 - Added ``UnfilteredWriter`` base class for writers that pass the
1163 document tree on unchanged.
1165 * docutils/writers/docutils_xml.py:
1167 - Made ``xmlcharrefreplace`` the default output encoding error
1170 * docutils/writers/html4css1/:
1172 - Added support for image width and height units.
1173 - Made ``xmlcharrefreplace`` the default output encoding error
1175 - Made ``--embed-stylesheet`` the default rather than
1176 ``--link-stylesheet``.
1177 - Moved "id" attribute from container (section etc.) to title's <a>
1178 tag, to be on the same tag as "name".
1179 (!!! To be reverted in Docutils 0.5.)
1180 - Added vertical space between fields of field lists.
1181 - Added ``--compact-field-lists`` option to remove vertical space in
1183 - Made cloaking of email addresses with ``--cloak-email-addresses``
1185 - Fixed support for centered images.
1186 - Added support for class="compact" & class="open" lists.
1188 * docutils/writers/latex2e/:
1190 - Underscores in citekeys are no longer escaped.
1192 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1193 mapping of Unicode characters to LaTeX equivalents.
1195 * docutils/writers/s5_html/: Package added to project; writer for
1196 S5/HTML slide shows.
1198 * docs/dev/distributing.txt: Added to project; guide for distributors
1199 (package maintainers).
1201 * docs/dev/hacking.txt: Added to project; guide for developers.
1203 * docs/ref/doctree.txt:
1205 - Updated for plural attributes "classes", "ids", "names",
1207 - Added the "container" element.
1209 * docs/ref/docutils.dtd:
1211 - Updated for plural attributes "classes", "ids", "names",
1214 * docs/user/emacs.txt: Added to project; a document about Emacs
1215 support for reStructuredText and Docutils.
1217 * docs/user/links.txt: Added to project; lists of Docutils-related
1220 * docs/user/mailing-lists.txt: Added to project; information about
1221 Docutils-related mailing lists and how to access them.
1223 * docs/user/slide-shows.txt: Added to project; example of and docs for
1224 the S5/HTML writer (``rst2s5.py`` front end).
1226 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1227 Files", added to project.
1229 * test/coverage.sh: Added to project; test coverage script.
1231 * test/DocutilsTestSupport.py:
1233 - Added support for specifying runtime settings at the suite level.
1235 * test/test_functional.py:
1237 - Added the ``clear_output_directory`` function.
1238 - Added support for ``_test_more`` functions in functional test
1241 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1243 * tools/rstpep2html.py: Renamed from pep.py.
1245 * tools/dev/create_unimap.py: Added to project; script to create the
1246 docutils/writers/unimap_latex.py mapping file.
1248 * tools/dev/profile_docutils.py: Added to project; profiler script.
1250 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1252 * tools/editors/emacs/restructuredtext.el,
1253 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1254 Removed from project; the functionality is now contained in rst.el.
1256 * tools/editors/emacs/rst.el: Added to project. Added many features
1257 and fixed many bugs. See docs/user/emacs.txt for details.
1259 * tools/stylesheets: Removed from project. Stylesheets have been
1260 renamed and moved into writer packages.
1263 Release 0.3.9 (2005-05-26)
1264 ==========================
1268 - Eliminated and replaced all uses of the old string attributes
1269 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1270 new list attributes ``ids``, ``names``, ``dupnames`` and
1271 ``classes`` throughout the whole source tree.
1275 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1276 allowing for easier debugging.
1277 - In ``Publisher.publish()``, expanded the generic top-level
1280 * docutils/examples.py:
1282 - Added ``internals`` function for exploration.
1286 - Fixed ``Input.decode`` method to apply heuristics only if no
1287 encoding is explicitly given, and to provide better reporting of
1289 - The ``Input.decode`` method now removes byte order marks (BOMs)
1292 * docutils/nodes.py:
1294 - ``image`` element class changed to subclass of Element, not
1295 TextElement (it's an empty element, and cannot contain text).
1296 - Added ``attr_defaults`` dictionary for default attribute values.
1297 - Added empty list as default value for the following attributes:
1298 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1299 - Added ``document.decoration`` attribute,
1300 ``document.get_decoration`` method, and ``decoration.get_header``
1301 & ``.get_footer`` methods.
1302 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1305 * docutils/utils.py:
1307 - Removed ``docutils.utils.Reporter.categories``,
1308 ``docutils.utils.ConditionSet``, and all references to them, to
1309 simplify error reporting.
1311 * docutils/languages/nl.py: Added to project; Dutch mappings by
1314 * docutils/parsers/rst/__init__.py:
1316 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1318 * docutils/parsers/rst/states.py:
1320 - Added check for escaped at-mark to prevent email address recognition.
1321 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1323 - Allowed whitespace in paths and URLs.
1324 - Added auto-enumerated list items.
1325 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1327 - Added support for table stub columns.
1329 * docutils/parsers/rst/directives/__init__.py:
1331 - Allowed whitespace in paths (``path`` function).
1332 - Added ``uri`` directive option conversion function.
1334 * docutils/parsers/rst/directives/body.py:
1336 - Fixed illegal context bug with "topic" directive (allowed within
1337 sidebars; not within body elements).
1339 * docutils/parsers/rst/directives/images.py:
1341 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1342 - Added support for the ``file_insertion_enabled`` setting in the
1343 "figure" directive (disables "figwidth" option).
1344 - "image" directive: added checks for valid values of "align" option,
1345 depending on context. "figure" directive: added specialized
1346 "align" option and attribute on "figure" element.
1347 - Made ":figwidth: image" option of "figure" directive work again.
1348 - Fixed bug with reference names containing uppercase letters
1349 (e.g. ``Name_``) in "target" option of "image" directive.
1351 * docutils/parsers/rst/directives/misc.py:
1353 - Fixed "include" and "raw" directives to catch text decoding
1355 - Allowed whitespace in "include" & "raw" directive paths.
1356 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1357 settings in "include" & "raw" directives.
1359 * docutils/parsers/rst/directives/parts.py:
1361 - Added "header" & "footer" directives.
1362 - Fixed illegal context bug with "contents" directive (topics
1363 allowed within sidebars; not within body elements).
1365 * docutils/parsers/rst/directives/tables.py:
1367 - Added "list-table" directive.
1368 - Caught empty CSV table bug.
1369 - Added support for the ``file_insertion_enabled`` setting in the
1370 "csv-table" directive.
1371 - Added ``stub-columns`` option to "csv-table" and "list-table"
1374 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1375 mappings by Martijn Pieters.
1377 * docutils/readers/standalone.py:
1379 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1380 options to activate or deactivate the SectSubTitle transform.
1382 * docutils/transforms/frontmatter.py:
1384 - Added SectSubTitle transform to promote titles of lone
1385 subsections to subtitles.
1387 * docutils/transforms/references.py:
1389 - Fixed mislocated internal targets bug, by propagating internal
1390 targets to the next node, making use of the newly added support
1391 for multiple names and IDs.
1392 - Fixed duplicate footnote label bug.
1393 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1396 * docutils/writers/html4css1.py:
1398 - Fixed unencoded stylesheet reference bug (characters like "&" in
1399 stylesheet references).
1400 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1402 - Added support for multiple IDs per node by creating empty ``span``
1404 - Added the ``field_name_limit`` & ``option_limit`` settings &
1406 - Added support for table stub columns.
1407 - Added support for the ``align`` attribute on ``figure`` elements.
1408 - Added the ``cloak_email_addresses`` setting & support.
1409 - Added ``html_prolog``, ``html_head``, ``html_body``,
1410 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1411 ``docutils.core.publish_parts``.
1412 - Added support for section subtitles.
1414 * docutils/writers/latex2e.py:
1416 - Fixed tables starting with more than one multirow cell.
1417 - Improved --use-latex-docinfo so that organization/contact/address
1418 fields are lumped with the last author field and appear on the
1420 - Made sure the titlepage is always shown with --use-latex-docinfo,
1421 even if the document has no title.
1422 - Made sure that latex doesn't fill in today's date if no date field
1424 - Added support for section subtitles.
1426 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1427 (under development).
1429 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1431 * docs/api/publisher.txt:
1433 - Added "``publish_parts`` Details" section.
1435 * docutils/dev/repository.txt: Added to project; information about the
1436 Docutils Subversion repository.
1438 * docs/ref/docutils.dtd:
1440 - Added a ``stub`` attribute to the ``colspec`` element via the
1441 ``tbl.colspec.att`` parameter entity.
1442 - Allowed topic elements within sidebars
1443 - Added an ``align`` attribute to the ``figure`` element.
1445 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1449 Release 0.3.7 (2004-12-24)
1450 ==========================
1452 * docutils/frontend.py:
1454 - Added options: --input-encoding-error-handler,
1455 --record-dependencies, --leave-footnote-reference-space,
1457 - Added command-line and config file support for "overrides" setting
1462 - Added support for input encoding error handler.
1464 * docutils/nodes.py:
1466 - Added dispatch_visit and dispatch_departure methods to
1467 NodeVisitor; useful as a hook for Visitors.
1468 - Changed structure of ``line_block``; added ``line``.
1469 - Added ``compound`` node class.
1470 - Added a mechanism for Visitors to transitionally ignore new node
1473 * docutils/utils.py:
1475 - Moved ``escape2null`` and ``unescape`` functions from
1476 docutils/parsers/rst/states.py.
1478 * docutils/parsers/rst/roles.py:
1481 - Changed role function API: the "text" parameter now takes
1482 null-escaped interpreted text content.
1484 * docutils/parsers/rst/states.py:
1486 - Fixed bug where a "role" directive in a nested parse would crash
1487 the parser; the state machine's "language" attribute was not being
1489 - Added support for line block syntax.
1490 - Fixed directive parsing bug: argument-less directives didn't
1491 notice that arguments were present.
1492 - Removed error checking for transitions.
1493 - Added support for multiple classifiers in definition list items.
1494 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1495 - Changed role function API: the "text" parameter now takes
1496 null-escaped interpreted text content.
1497 - Empty sections and documents are allowed now.
1499 * docutils/parsers/rst/directives/__init__.py:
1501 - Added ``encoding`` directive option conversion function.
1502 - Allow multiple class names in class_option conversion function.
1504 * docutils/parsers/rst/directives/body.py:
1506 - Converted the line-block directive to use the new structure.
1507 - Extracted the old line-block functionality to the ``block``
1508 function (still used).
1509 - Added ``compound`` directive (thanks to Lea Wiemann).
1511 * docutils/parsers/rst/directives/misc.py:
1513 - Added "encoding" option to "include" and "raw" directives.
1514 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1515 - Allow multiple class names in the "class" directive.
1517 * docutils/parsers/rst/directives/parts.py:
1519 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1520 options. Thanks to Lele Gaifax.
1522 * docutils/parsers/rst/directives/tables.py:
1524 - Added "encoding" directive to "csv-table" directive.
1525 - Added workaround for lack of Unicode support in csv.py, for
1526 non-ASCII CSV input.
1528 * docutils/transforms/misc.py:
1530 - Fixed bug when multiple "class" directives are applied to a single
1532 - Enabled multiple format names for "raw" directive.
1534 * docutils/transforms/references.py:
1536 - Added support for trimming whitespace from beside substitution
1539 * docutils/transforms/universal.py:
1541 - FinalChecks now checks for illegal transitions and moves
1542 transitions between sections.
1544 * docutils/writers/html4css1.py:
1546 - HTMLTranslator.encode now converts U+00A0 to " ".
1547 - "stylesheet" and "stylesheet_path" settings are now mutually
1549 - Added support for the new line_block/line structure.
1550 - --footnote-references now overrides
1551 --trim-footnote-reference-space, if applicable.
1552 - Added support for ``compound`` elements.
1553 - Enabled multiple format names for "raw" directive.
1554 - ``<p>`` tags of a paragraph which is the only visible child of the
1555 document node are no longer stripped.
1556 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1557 new method ``should_be_compact_paragraph()``.
1558 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1560 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1561 the output if they have their ``class`` attribute set.
1562 - The whole document is now surrounded by a ``<div
1563 class="document">`` element.
1564 - Body-level images are now wrapped by their own ``<div>`` elements,
1565 with image classes copied to the wrapper, and for images which
1566 have the ``:align:`` option set, the surrounding ``<div>`` now
1567 receives a class attribute (like ``class="align-left"``).
1569 * docutils/writers/latex2e.py:
1571 - no newline after depart_term.
1572 - Added translations for some Unicode quotes.
1573 - Added option "font-encoding", made package AE the default.
1574 - "stylesheet" and "stylesheet_path" settings are now mutually
1576 - --footnote-references now overrides
1577 --trim-footnote-reference-space, if applicable.
1578 - The footnote label style now matches the footnote reference style
1579 ("brackets" or "superscript").
1580 - Added support for ``compound`` elements.
1581 - Enabled multiple format names for "raw" directive.
1583 * docs/ref/docutils.dtd:
1585 - Changed structure of the ``line_block`` element; added ``line``.
1586 - Added ``compound`` element.
1587 - Added "ltrim" and "rtrim" attributes to
1588 ``substitution_definition`` element.
1589 - Enabled multiple format names for ``raw`` element.
1590 - Enabled multiple classifiers in ``definition_list_item`` elements.
1592 * docs/ref/rst/directives.txt
1594 - Marked "line-block" as deprecated.
1595 - "Class" directive now allows multiple class names.
1596 - Added "Rationale for Class Attribute Value Conversion".
1597 - Added warning about "raw" overuse/abuse.
1599 * docs/ref/rst/restructuredtext.txt:
1601 - Added syntax for line blocks.
1602 - Definition list items may have multiple classifiers.
1604 * docs/ref/rst/roles.txt:
1608 * tools/stylesheets/default.css:
1610 - Added support for the new line_block structure.
1611 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1614 Release 0.3.5 (2004-07-29)
1615 ==========================
1619 * _`Documentation cleanup/reorganization`.
1621 - Created new subdirectories of docs/:
1623 * ``docs/user/``: introductory/tutorial material for end-users
1624 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1625 * ``docs/api/``: API reference material for client-developers
1626 * ``docs/ref/``: reference material for all groups
1627 * ``docs/howto/``: for component-developers and core-developers
1628 * ``docs/peps/``: Python Enhancement Proposals
1630 - Moved ``docs/*`` to ``docs/user/``.
1631 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1632 ``spec/`` to ``docs/dev``.
1633 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1634 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1635 - Moved ``alternatives.txt``, and ``problems.txt`` from
1636 ``spec/rst/`` to ``docs/dev/rst/``.
1637 - Moved ``reStructuredText.txt``, ``directives.txt``,
1638 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1639 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1640 ``roles.txt``, ``reStructuredText.txt`` to
1641 ``restructuredtext.txt``.
1642 - Moved ``spec/howto/`` to ``docs/howto``.
1644 In order to keep the CVS history of moved files, we supplied
1645 SourceForge with a `script for modifying the Docutils CVS
1648 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1650 After running the cleanup script:
1652 - Added ``docs/index.txt``.
1653 - Added a ``.htaccess`` file to the ``web`` module, containing
1654 redirects for all old paths to new paths. They'll preserve
1655 fragments (the "#name" part of a URL), and won't clutter up the
1656 file system, and will correct the URL in the user's browser.
1657 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1658 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1659 the "To Do" list itself in ``docs/dev/todo.txt``.
1660 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1661 section of ``docs/dev/todo.txt``.
1662 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1663 - Added "How To Report Bugs" to ``BUGS.txt``.
1664 - Went through all the sources and docs (including under web/) and
1665 updated links. Mostly done by Lea Wiemann; thanks Lea!
1666 (Still need to update links in the sandboxes.)
1670 * BUGS.txt: Added to project.
1672 * THANKS.txt: Added to project.
1674 * docutils/__init__.py:
1676 - 0.3.4: Post-release.
1680 - Added special error handling & advice for UnicodeEncodeError.
1681 - Refactored Publisher.publish (simplified exception handling &
1682 extracted debug dumps).
1683 - Renamed "enable_exit" parameter of convenience functions to
1684 "enable_exit_status".
1685 - Enabled traceback (exception propagation) by default in
1686 programmatic convenience functions.
1687 - Now publish_file and publish_cmdline convenience functions return
1688 the encoded string results in addition to their regular I/O.
1689 - Extracted common code from publish_file, publish_string, and
1690 publish_parts, into new publish_programmatically. Extracted
1691 settings code to ``Publisher.process_programmatic_settings``.
1692 - In Publisher.publish, disabled ``settings_overrides`` when
1693 ``settings`` is supplied; redundant.
1695 * docutils/frontend.py:
1697 - Added help text for "--output-encoding-error-handler" and
1698 "--error-encoding-error-handler".
1699 - Renamed "--exit" to "--exit-status".
1700 - Simplified default-setting code.
1702 * docutils/parsers/rst/__init__.py:
1704 - Added "--pep-base-url" and "--rfc-base-url" options.
1706 * docutils/parsers/rst/states.py:
1708 - Made URI recognition more aggressive and intelligent.
1710 * docutils/parsers/rst/directives/__init__.py:
1712 - Added several directive option conversion functions.
1714 * docutils/parsers/rst/directives/body.py:
1716 - Moved "table" directive to tables.py.
1718 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1721 * docutils/writers/latex2e.py:
1723 - Added "--table-style=(standard|booktabs|nolines)"
1724 - figures get "here" option (LaTeX per default puts them at bottom),
1725 and figure content is centered.
1726 - Rowspan support for tables.
1727 - Fix: admonition titles before first section.
1728 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1729 - Replave ``_`` in literal by an underlined blank, because it has the correct
1731 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1732 - A few unicode replacements, if output_encoding != utf
1733 - Add "--graphicx-option".
1734 - Indent literal-blocks.
1735 - Fix: omit ``\maketitle`` when there is no document title.
1737 * docs/index.txt: "Docutils Project Documentation Overview", added to
1740 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1741 Tool", added to project.
1743 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1745 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1747 * docs/dev/policies.txt: Added to project (extracted from
1748 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1750 * docs/dev/release.txt: Added to project (extracted from
1751 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1753 * docs/dev/testing.txt: Added to project.
1755 * docs/dev/website.txt: Added to project (extracted from
1756 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1758 * docs/ref/rst/directives.txt:
1760 - Added directives: "table", "csv-table".
1762 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1763 added to project. 1 page for syntax, and a 1 page reference for
1764 directives and roles. Source text to be used as-is; not meant to be
1767 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1768 with a change of title.
1770 * test/functional/, contents, and test/test_functional.py: Added to
1773 * tools/buildhtml.py: Fixed bug with config file handling.
1775 * tools/html.py: Removed from project (duplicate of rst2html.py).
1777 * tools/pep2html.py: Removed from project (duplicate of Python's
1778 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1779 Docutils-related PEPs in docs/peps/).
1781 * tools/rst2pseudoxml.py: Renamed from publish.py.
1783 * tools/rst2xml.py: Renamed from docutils-xml.py.
1785 * tools/test.txt: Removed from project; moved to
1786 docs/user/rst/demo.txt.
1788 * setup.py: Now also installs ``rst2latex.py``.
1791 Release 0.3.3 (2004-05-09)
1792 ==========================
1794 * docutils/__init__.py:
1796 - 0.3.1: Reorganized config file format (multiple sections); see
1798 - Added unknown_reference_resolvers attribute to TransformSpec.
1799 - 0.3.2: Interpreted text reorganization.
1804 - Catch system messages to stop tracebacks from parsing errors.
1805 - Catch exceptions during processing report & exit without
1806 tracebacks, except when "--traceback" used.
1807 - Reordered components for OptionParser; application comes last.
1808 - Added "config_section" parameter to several methods and functions,
1809 allowing front ends to easily specify their config file sections.
1810 - Added publish_parts convenience function to allow access to individual
1811 parts of a document.
1813 * docutils/examples.py: Added to project; practical examples of
1814 Docutils client code, to be used as-is or as models for variations.
1816 * docutils/frontend.py:
1818 - Added "--traceback" & "--no-traceback" options ("traceback"
1820 - Implemented support for config file reorganization:
1821 ``standard_config_files`` moved from ``ConfigParser`` to
1822 ``OptionParser``; added
1823 ``OptionParser.get_config_file_settings()`` and
1824 ``.get_standard_config_settings()``; support for old "[options]"
1825 section (with deprecation warning) and mapping from old to new
1827 - Reimplemented setting validation.
1828 - Enabled flexible boolean values: yes/no, true/false, on/off.
1829 - Added ``Values``, a subclass of ``optparse.Values``, with support
1830 for list setting attributes.
1831 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1832 thanks to Beni Cherniavsky.
1833 - Added "--no-section-numbering" option.
1837 - Catch IOErrors when opening source & destination files, report &
1838 exit without tracebacks. Added ``handle_io_errors`` parameter to
1839 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1841 * docutils/nodes.py:
1843 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1844 method definitions (via ``exec``) to dynamic assignments (via
1845 ``setattr``); thanks to Roman Suzi.
1846 - Encapsulated visitor dynamic assignments in a function; thanks to
1848 - Added indirect_reference_name attribute to the Targetable
1849 class. This attribute holds the whitespace_normalized_name
1850 (contains mixed case) of a target.
1852 * docutils/statemachine.py:
1854 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1855 - Added ``StringList.get_2D_block``.
1857 * docutils/utils.py:
1859 - Added "level" attribute to SystemMessage exceptions.
1861 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1864 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1867 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1868 Marcelo Huerta San Martin.
1870 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1871 mappings by Lalo Martins.
1873 * docutils/languages/ru.py: Added to project; Russian mappings by
1876 * docutils/parsers/rst/roles.py: Added to project. Contains
1877 interpreted text role functions, a registry for interpreted text
1878 roles, and an API for adding to and retrieving from the registry.
1879 Contributed by Edward Loper.
1881 * docutils/parsers/rst/states.py:
1883 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1884 - Allowed true em-dash character and "---" as block quote
1886 - Added support for <angle-bracketed> complex option arguments
1888 - Fixed handling of backslashes in substitution definitions.
1889 - Fixed off-by-1 error with extra whitespace after substitution
1890 definition directive.
1891 - Added inline markup parsing to field lists' field names.
1892 - Added support for quoted (and unindented) literal blocks.
1893 Driven in part by a bribe from Frank Siebenlist (thanks!).
1894 - Parser now handles escapes in URIs correctly.
1895 - Made embedded-URIs' reference text omittable. Idea from Beni
1897 - Refactored explicit target processing code.
1898 - Added name attribute to references containing the reference name only
1899 through whitespace_normalize_name (no case changes).
1900 - parse_target no longer returns the refname after going through
1901 normalize_name. This is now handled in make_target.
1902 - Fixed bug relating to role-less interpreted text in non-English
1904 - Reorganized interpreted text processing; moved code into the new
1905 roles.py module. Contributed by Edward Loper.
1906 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1907 ``parse_directive_block``.
1909 * docutils/parsers/rst/tableparser.py:
1911 - Reworked for ``StringList``, to support "include" directives in
1914 * docutils/parsers/rst/directives/__init__.py:
1916 - Renamed ``unchanged()`` directive option conversion function to
1917 ``unchanged_required``, and added a new ``unchanged``.
1918 - Catch unicode value too high error; fixes bug 781766.
1919 - Beefed up directive error reporting.
1921 * docutils/parsers/rst/directives/body.py:
1923 - Added basic "table" directive.
1925 * docutils/parsers/rst/directives/images.py:
1927 - Added "target" option to "image" directive.
1928 - Added name attribute to references containing the reference name only
1929 through whitespace_normalize_name (no case changes).
1931 * docutils/parsers/rst/directives/misc.py:
1933 - Isolated the import of the ``urllib2`` module; was causing
1934 problems on SourceForge (``libssl.so.2`` unavailable?).
1935 - Added the "role" directive for declaring custom interpreted text
1938 * docutils/parsers/rst/directives/parts.py:
1940 - The "contents" directive does more work up-front, creating the
1941 "topic" and "title", and leaving the "pending" node for the
1942 transform. Allows earlier reference resolution; fixes subtle bug.
1944 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1945 mappings by Jannie Hofmeyr.
1947 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1948 mappings by Marek Blaha.
1950 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1951 mappings by Marcelo Huerta San Martin.
1953 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1954 Portuguese mappings by Lalo Martins.
1956 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1957 mappings by Roman Suzi.
1959 * docutils/transforms/parts.py:
1961 - The "contents" directive does more work up-front, creating the
1962 "topic" and "title", and leaving the "pending" node for the
1963 transform. Allows earlier reference resolution; fixes subtle bug.
1964 - Added support for disabling of section numbering.
1966 * docutils/transforms/references.py:
1968 - Verifying that external targets are truly targets and not indirect
1969 references. This is because we are now adding a "name" attribute to
1970 references in addition to targets. Note sure if this is correct!
1971 - Added code to hook into the unknown_reference_resolvers list for a
1972 transformer in resolve_indirect_target. This allows the
1973 unknown_reference_resolvers to keep around indirect targets which
1974 docutils doesn't know about.
1975 - Added specific error message for duplicate targets.
1977 * docutils/transforms/universal.py:
1979 - Added FilterMessages transform (removes system messages below the
1980 verbosity threshold).
1981 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1982 to FinalCheckVisitor for application-specific handling of
1983 unresolvable references.
1984 - Added specific error message for duplicate targets.
1986 * docutils/writers/__init__.py:
1988 - Added assemble_parts method to the Writer class to allow for
1989 access to a documents individual parts.
1990 - Documented & set default for ``Writer.output`` attribute.
1992 * docutils/writers/html4css1.py:
1994 - Fixed unicode handling of attribute values (bug 760673).
1995 - Prevent duplication of "class" attribute values (bug report from
1997 - Improved table grid/border handling (prompted by report from Bob
1999 - Added support for table titles.
2000 - Added "<title />" for untitled docs, for XHTML conformance; thanks
2002 - Added functionality to keep track of individual parts of a document
2003 and store them in a dictionary as the "parts" attribute of the writer.
2004 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
2005 - Added proper support for the "scale" attribute of the "image"
2006 element. Contributed by Brent Cook.
2007 - Added ``--initial-header-level`` option.
2008 - Fixed bug: the body_pre_docinfo segment depended on there being a
2009 docinfo; if no docinfo, the document title was incorporated into
2010 the body segment. Adversely affected the publish_parts interface.
2012 * docutils/writers/latex2e.py:
2014 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
2015 about a missing file.
2016 - Added options and support: ``--compound-enumerators``,
2017 ``--section-prefix-for-enumerators``, and
2018 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
2020 - Added option ``--use-verbatim-when-possible``, to avoid
2021 problematic characters (eg, '~' in italian) in literal blocks.
2022 - It's now possible to use four section levels in the `book` and
2023 `report` LaTeX classes. The default `article` class still has
2026 * docs/config.txt: "Docutils Configuration Files", added to project.
2027 Moved config file entry descriptions from tools.txt.
2031 - Moved config file entry descriptions to config.txt.
2033 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
2036 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
2037 Text Roles", added to project.
2039 * spec/rst/reStructuredText.txt:
2041 - Added description of support for <angle-bracketed> complex option
2042 arguments to option lists.
2043 - Added subsections for indented and quoted literal blocks.
2045 * test: Continually adding & updating tests.
2047 - Added test/test_settings.py & test/data/config_*.txt support
2049 - Added test/test_writers/test_htmlfragment.py.
2051 * test/DocutilsTestSupport.py:
2053 - Refactored LaTeX publisher test suite/case class names to make
2054 testing other writers easier.
2055 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
2056 to test the processing of HTML fragments which use the new
2057 publish_parts convenience function.
2059 * tools/buildhtml.py:
2061 - Added support for the "--prune" option.
2062 - Removed dependency on pep2html.py; plaintext PEPs no longer
2065 * tools/docutils.conf:
2067 - Updated for configuration file reorganization.
2069 * tools/rst2html.py:
2071 - copied from tools/html.py
2075 - added a 'scripts' section to configuration
2076 - added 'tools/rst2html.py' to the scripts section
2079 Release 0.3 (2003-06-24)
2080 ========================
2084 * Renamed "attribute" to "option" for directives/extensions.
2086 * Renamed transform method "transform" to "apply".
2088 * Renamed "options" to "settings" for runtime settings (as set by
2089 command-line options). Sometimes "option" (singular) became
2090 "settings" (plural). Some variations below:
2092 - document.options -> document.settings (stored in other objects as
2094 - option_spec -> settings_spec (not directives though)
2095 - OptionSpec -> SettingsSpec
2096 - cmdline_options -> settings_spec
2097 - relative_path_options -> relative_path_settings
2098 - option_default_overrides -> settings_default_overrides
2099 - Publisher.set_options -> Publisher.get_settings
2103 * COPYING.txt: Added "Public Domain Dedication".
2105 * FAQ.txt: Frequently asked questions, added to project.
2109 - Updated with PyPI Trove classifiers.
2110 - Conditional installation of third-party modules.
2112 * docutils/__init__.py:
2114 - Bumped version to 0.2.1 to reflect changes to I/O classes.
2115 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
2116 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
2117 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
2118 option and its effect on the PEP template & writer.
2119 - Bumped version to 0.2.4 due to changes to the PEP template &
2121 - Bumped version to 0.2.5 to reflect changes to Reporter output.
2122 - Added ``TransformSpec`` class for new transform system.
2123 - Bumped version to 0.2.6 for API changes (renaming).
2124 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
2125 convenience functions.
2126 - Added ``Component.component_type`` attribute.
2127 - Bumped version to 0.2.8 because of the internal parser switch from
2128 plain lists to the docutils.statemachine.StringList objects.
2129 - Bumped version to 0.2.9 because of the frontend.py API changes.
2130 - Bumped version to 0.2.10 due to changes to the project layout
2131 (third-party modules removed from the "docutils" package), and
2132 signature changes in ``io.Input``/``io.Output``.
2133 - Changed version to 0.3.0 for release.
2137 - Made ``publish()`` a bit more convenient.
2138 - Generalized ``Publisher.set_io``.
2139 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
2140 parameters; improved its docstring.
2141 - Added ``publish_file()`` and ``publish_string()``.
2142 - Factored ``Publisher.set_source()`` and ``.set_destination()``
2144 - Added support for "--dump-pseudo-xml", "--dump-settings", and
2145 "--dump-transforms" hidden options.
2146 - Added ``Publisher.apply_transforms()`` method.
2147 - Added ``Publisher.set_components()`` method; support for
2148 ``publish_*()`` conveninece functions.
2149 - Moved config file processing to docutils/frontend.py.
2150 - Added support for exit status ("exit_level" setting &
2151 ``enable_exit`` parameter for Publisher.publish() and convenience
2154 * docutils/frontend.py:
2156 - Check for & exit on identical source & destination paths.
2157 - Fixed bug with absolute paths & "--config".
2158 - Set non-command-line defaults in ``OptionParser.__init__()``:
2159 ``_source`` & ``_destination``.
2160 - Distributed ``relative_path_settings`` to components; updated
2161 ``OptionParser.populate_from_components()`` to combine it all.
2162 - Require list of keys in ``make_paths_absolute`` (was implicit in
2163 global ``relative_path_settings``).
2164 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
2165 "--dump-settings", and "--dump-transforms" hidden options.
2166 - Removed nasty internals-fiddling ``ConfigParser.get_section``
2167 code, replaced with correct code.
2168 - Added validation functionality for config files.
2169 - Added "--error-encoding" option/setting, "_disable_config"
2171 - Added encoding validation; updated "--input-encoding" and
2172 "--output-encoding"; added "--error-encoding-error-handler" and
2173 "--output-encoding-error-handler".
2174 - Moved config file processing from docutils/core.py.
2175 - Updated ``OptionParser.populate_from_components`` to handle new
2176 ``SettingsSpec.settings_defaults`` dict.
2177 - Added support for "-" => stdin/stdout.
2178 - Added "exit_level" setting ("--exit" option).
2182 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
2183 - Added automatic closing to ``FileInput`` and ``FileOutput``.
2184 - Delayed opening of ``FileOutput`` file until ``write()`` called.
2185 - ``FileOutput.write()`` now returns the encoded output string.
2186 - Try to get path/stream name automatically in ``FileInput`` &
2188 - Added defaults for source & destination paths.
2189 - Allow for Unicode I/O with an explicit "unicode" encoding.
2190 - Added ``Output.encode()``.
2191 - Removed dependency on runtime settings; pass encoding directly.
2192 - Recognize Unicode strings in ``Input.decode()``.
2193 - Added support for output encoding error handlers.
2195 * docutils/nodes.py:
2197 - Added "Invisible" element category class.
2198 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2199 modification during a traversal.
2200 - Added element classes: ``line_block``, ``generated``, ``address``,
2201 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2202 ``superscript``, ``subscript``, ``inline``
2203 - Added support for lists of nodes to ``Element.insert()``.
2204 - Fixed parent linking in ``Element.replace()``.
2205 - Added new abstract superclass ``FixedTextElement``; adds
2206 "xml:space" attribute.
2207 - Added support for "line" attribute of ``system_message`` nodes.
2208 - Added support for the observer pattern from ``utils.Reporter``.
2209 Added ``parse_messages`` and ``transform_messages`` attributes to
2210 ``document``, removed ``messages``. Added ``note_parse_message``
2211 and ``note_transform_message`` methods.
2212 - Added support for improved diagnostics:
2214 - Added "document", "source", and "line" internal attributes to
2215 ``Node``, set by ``Node.setup_child()``.
2216 - Converted variations on ``node.parent = self`` to
2217 ``self.setup_child(node)``.
2218 - Added ``document.current_source`` & ``.current_line``
2219 attributes, and ``.note_source`` observer method.
2220 - Changed "system_message" output to GNU-Tools format.
2222 - Added a "rawsource" attribute to the ``Text`` class, for text
2223 before backslash-escape resolution.
2224 - Support for new transform system.
2225 - Reworked ``pending`` element.
2226 - Fixed XML DOM bug (SF #660611).
2227 - Removed the ``interpeted`` element class and added
2228 ``title_reference``, ``abbreviation``, ``acronym``.
2229 - Made substitutions case-sensitive-but-forgiving; moved some code
2231 - Fixed Unicode bug on element attributes (report: William Dode).
2233 * docutils/optik.py: Removed from project; replaced with
2234 extras/optparse.py and extras/textwrap.py. These will be installed
2235 only if they're not already present in the Python installation.
2237 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2238 only if it's not already present in the Python installation.
2240 * docutils/statemachine.py:
2242 - Factored out ``State.add_initial_transitions()`` so it can be
2244 - Converted whitespace-specific "blank" and "indent" transitions
2245 from special-case code to ordinary transitions: removed
2246 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2247 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2248 ``ws_initial_transitions`` attributes.
2249 - Removed ``State.match_transition()`` after merging it into
2251 - Added ``StateCorrection`` exception.
2252 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2253 (moved ``TransitionCorrection`` support there too.)
2254 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2255 ``EOFError`` instead of ``IndexError``.
2256 - Added ``State.no_match`` method.
2257 - Added support for the Observer pattern, triggered by input line
2259 - Added ``strip_top`` parameter to
2260 ``StateMachineWS.get_first_known_indented``.
2261 - Made ``context`` a parameter to ``StateMachine.run()``.
2262 - Added ``ViewList`` & ``StringList`` classes;
2263 ``extract_indented()`` becomes ``StringList.get_indented()``.
2264 - Added ``StateMachine.insert_input()``.
2265 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2266 thanks to) Fred Drake.
2268 * docutils/utils.py:
2270 - Added a ``source`` attribute to Reporter instances and
2271 ``system_message`` elements.
2272 - Added an observer pattern to ``utils.Reporter`` to keep track of
2274 - Fixed bugs in ``relative_path()``.
2275 - Added support for improved diagnostics.
2276 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2277 - Added support for encoding Reporter stderr output, and encoding
2279 - Reporter keeps track of the highest level system message yet
2282 * docutils/languages: Fixed bibliographic field language lookups.
2284 * docutils/languages/es.py: Added to project; Spanish mappings by
2285 Marcelo Huerta San Martin.
2287 * docutils/languages/fr.py: Added to project; French mappings by
2290 * docutils/languages/it.py: Added to project; Italian mappings by
2293 * docutils/languages/sk.py: Added to project; Slovak mappings by
2296 * docutils/parser/__init__.py:
2298 - Added ``Parser.finish_parse()`` method.
2300 * docutils/parser/rst/__init__.py:
2302 - Added options: "--pep-references", "--rfc-references",
2303 "--tab-width", "--trim-footnote-reference-space".
2305 * docutils/parsers/rst/states.py:
2307 - Changed "title under/overline too short" system messages from INFO
2308 to WARNING, and fixed its insertion location.
2309 - Fixed enumerated list item parsing to allow paragraphs & section
2310 titles to begin with enumerators.
2311 - Converted system messages to use the new "line" attribute.
2312 - Fixed a substitution reference edge case.
2313 - Added support for "--pep-references" and "--rfc-references"
2314 options; reworked ``Inliner`` code to make customization easier.
2315 - Removed field argument parsing.
2316 - Added support for short section title over/underlines.
2317 - Fixed "simple reference name" regexp to ignore text like
2318 "object.__method__"; not an anonymous reference.
2319 - Added support for improved diagnostics.
2320 - Reworked directive API, based on Dethe Elza's contribution. Added
2321 ``Body.parse_directive()``, ``.parse_directive_options()``,
2322 ``.parse_directive_arguments()`` methods.
2323 - Added ``ExtensionOptions`` class, to parse directive options
2324 without parsing field bodies. Factored
2325 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2326 ``ExtensionOptions``.
2327 - Improved definition list term/classifier parsing.
2328 - Added warnings for unknown directives.
2329 - Renamed ``Stuff`` to ``Struct``.
2330 - Now flagged as errors: transitions at the beginning or end of
2331 sections, empty sections (except title), and empty documents.
2332 - Updated for ``statemachine.StringList``.
2333 - Enabled recognition of schemeless email addresses in targets.
2334 - Added support for embedded URIs in hyperlink references.
2335 - Added backslash-escapes to inline markup end-string suffix.
2336 - Added support for correct interpreted text processing.
2337 - Fixed nested title parsing (topic, sidebar directives).
2338 - Added special processing of backslash-escaped whitespace (idea
2339 from David Abrahams).
2340 - Made substitutions case-sensitive-but-forgiving; moved some code
2341 to ``docutils.nodes``.
2342 - Added support for block quote attributions.
2343 - Added a kludge to work-around a conflict between the bubble-up
2344 parser strategy and short titles (<= 3 char-long over- &
2345 underlines). Fixes SF bug #738803 "infinite loop with multiple
2346 titles" submitted by Jason Diamond.
2347 - Added explicit interpreted text roles for standard inline markup:
2348 "emphasis", "strong", "literal".
2349 - Implemented "superscript" and "subscript" interpreted text roles.
2350 - Added initial support for "abbreviation" and "acronym" roles;
2352 - Added support for "--trim-footnote-reference-space" option.
2353 - Optional space before colons in directives & hyperlink targets.
2355 * docutils/parsers/rst/tableparser.py:
2357 - Fixed a bug that was producing unwanted empty rows in "simple"
2359 - Detect bad column spans in "simple" tables.
2361 * docutils/parsers/rst/directives: Updated all directive functions to
2364 * docutils/parsers/rst/directives/__init__.py:
2366 - Added ``flag()``, ``unchanged()``, ``path()``,
2367 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2368 directive option helper functions.
2369 - Added warnings for unknown directives.
2370 - Return ``None`` for missing directives.
2371 - Added ``register_directive()``, thanks to William Dode and Paul
2374 * docutils/parsers/rst/directives/admonitions.py:
2376 - Added "admonition" directive.
2378 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2379 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2380 "parsed-literal", "rubric", "epigraph", "highlights" and
2381 "pull-quote" directives.
2383 * docutils/parsers/rst/directives/images.py:
2385 - Added an "align" attribute to the "image" & "figure" directives
2386 (by Adam Chodorowski).
2387 - Added "class" option to "image", and "figclass" to "figure".
2389 * docutils/parsers/rst/directives/misc.py:
2391 - Added "include", "raw", and "replace" directives, courtesy of
2393 - Added "unicode" and "class" directives.
2395 * docutils/parsers/rst/directives/parts.py:
2397 - Added the "sectnum" directive; by Dmitry Jemerov.
2398 - Added "class" option to "contents" directive.
2400 * docutils/parsers/rst/directives/references.py: Added to project.
2401 Contains the "target-notes" directive.
2403 * docutils/parsers/rst/languages/__init__.py:
2405 - Return ``None`` from get_language() for missing language modules.
2407 * docutils/parsers/rst/languages/de.py: Added to project; German
2408 mappings by Engelbert Gruber.
2410 * docutils/parsers/rst/languages/en.py:
2412 - Added interpreted text roles mapping.
2414 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2415 mappings by Marcelo Huerta San Martin.
2417 * docutils/parsers/rst/languages/fr.py: Added to project; French
2418 mappings by William Dode.
2420 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2421 mappings by Nicola Larosa.
2423 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2424 mappings by Miroslav Vasko.
2426 * docutils/readers/__init__.py:
2428 - Added support for the observer pattern from ``utils.Reporter``, in
2429 ``Reader.parse`` and ``Reader.transform``.
2430 - Removed ``Reader.transform()`` method.
2431 - Added default parameter values to ``Reader.__init__()`` to make
2432 instantiation easier.
2433 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2435 * docutils/readers/pep.py:
2437 - Added the ``peps.TargetNotes`` transform to the Reader.
2438 - Removed PEP & RFC reference detection code; moved to
2439 parsers/rst/states.py as options (enabled here by default).
2440 - Added support for pre-acceptance PEPs (no PEP number yet).
2441 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2444 * docutils/readers/python: Python Source Reader subpackage added to
2445 project, including preliminary versions of:
2448 - moduleparser.py: Parser for Python modules.
2450 * docutils/transforms/__init__.py:
2452 - Added ``Transformer`` class and completed transform reform.
2453 - Added unknown_reference_resolvers list for each transformer. This list holds
2454 the list of functions provided by each component of the transformer that
2455 help resolve references.
2457 * docutils/transforms/frontmatter.py:
2459 - Improved support for generic fields.
2460 - Fixed bibliographic field language lookups.
2462 * docutils/transforms/misc.py: Added to project. Miscellaneous
2465 * docutils/transforms/parts.py:
2467 - Moved the "id" attribute from TOC list items to the references
2468 (``Contents.build_contents()``).
2469 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2470 - Added "class" attribute support to ``Contents``.
2472 * docutils/transforms/peps.py:
2474 - Added ``mask_email()`` function, updating to pep2html.py's
2476 - Linked "Content-Type: text/x-rst" to PEP 12.
2477 - Added the ``TargetNotes`` PEP-specific transform.
2478 - Added ``TargetNotes.cleanup_callback``.
2479 - Added title check to ``Headers``.
2481 * docutils/transforms/references.py:
2483 - Added the ``TargetNotes`` generic transform.
2484 - Split ``Hyperlinks`` into multiple transforms.
2485 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2486 - Added check for circular indirect references.
2487 - Made substitutions case-sensitive-but-forgiving.
2489 * docutils/transforms/universal.py:
2491 - Added support for the "--expose-internal-attributes" option.
2492 - Removed ``Pending`` transform classes & data.
2494 * docutils/writers/__init__.py:
2496 - Removed ``Writer.transform()`` method.
2498 * docutils/writers/docutils-xml.py:
2500 - Added XML and doctype declarations.
2501 - Added "--no-doctype" and "--no-xml-declaration" options.
2503 * docutils/writers/html4css1.py:
2505 - "name" attributes only on these tags: a, applet, form, frame,
2507 - Added "name" attribute to <a> in section titles for Netscape 4
2508 support (bug report: Pearu Peterson).
2509 - Fixed targets (names) on footnote, citation, topic title,
2510 problematic, and system_message nodes (for Netscape 4).
2511 - Changed field names from "<td>" to "<th>".
2512 - Added "@" to "@" encoding to thwart address harvesters.
2513 - Improved the vertical whitespace optimization; ignore "invisible"
2514 nodes (targets, comments, etc.).
2515 - Improved inline literals with ``<span class="pre">`` around chunks
2516 of text and `` `` for runs of spaces.
2517 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2518 ``self.docinfo`` segments.
2519 - Added support for "line_block", "address" elements.
2520 - Improved backlinks (footnotes & system_messages).
2521 - Improved system_message output.
2522 - Redefined "--stylesheet" as containing an invariant URL, used
2523 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2525 - Added "--footnote-references" option (superscript or brackets).
2526 - Added "--compact-lists" and "--no-compact-lists" options.
2527 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2528 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2529 - Improved field list rendering.
2530 - Added Docutils version to "generator" meta tag.
2531 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2532 - Improved layout of <pre> HTML source.
2533 - Fixed attribute typo on <colspec>.
2534 - Refined XML prologue.
2535 - Support for no stylesheet.
2536 - Removed "interpreted" element support.
2537 - Added support for "title_reference", "sidebar", "attribution",
2538 "rubric", and generic "admonition" elements.
2539 - Added "--attribution" option.
2540 - Added support for "inline", "subscript", "superscript" elements.
2541 - Added initial support for "abbreviation" and "acronym";
2544 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2548 - Double quotes in literal blocks (special treatment for de/ngerman).
2549 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2550 - Added "--attribution" option.
2551 - Right align attributions.
2553 * docutils/writers/pep_html.py:
2555 - Parameterized output encoding in PEP template.
2556 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2557 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2558 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2560 - Added an override on the "--footnote-references" option.
2561 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2562 - Added Docutils version to "generator" meta tag.
2563 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2567 - Added a "silent" setting for ``buildhtml.py``.
2568 - Added a "Getting Help" section.
2569 - Rearranged the structure.
2570 - Kept up to date, with new settings, command-line options etc.
2571 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2572 - Converted settings table into a definition list.
2574 * docs/rst/quickstart.txt:
2576 - Added a table of contents.
2577 - Added feedback information.
2578 - Added mention of minimum section title underline lengths.
2579 - Removed the 4-character minimum for section title underlines.
2581 * docs/rst/quickref.html:
2583 - Added a "Getting Help" section.
2584 - Added a style to make section title backlinks more subtle.
2585 - Added mention of minimum section title underline lengths.
2586 - Removed the 4-character minimum for section title underlines.
2588 * extras: Directory added to project; contains third-party modules
2589 that Docutils depends on (optparse, textwrap, roman). These are
2590 only installed if they're not already present.
2592 * licenses: Directory added to project; contains copies of license
2593 files for non-public-domain files.
2597 - Changed the focus. It's about DTD elements: structural
2598 relationships, semantics, and external (public) attributes. Not
2599 about the element class library.
2600 - Moved some implementation-specific stuff into ``docutils.nodes``
2602 - Wrote descriptions of all common attributes and parameter
2603 entities. Filled in introductory material.
2604 - Working through the element descriptions: 55 down, 37 to go.
2605 - Removed "Representation of Horizontal Rules" to
2606 spec/rst/alternatives.txt.
2608 * spec/docutils.dtd:
2610 - Added "generated" inline element.
2611 - Added "line_block" body element.
2612 - Added "auto" attribute to "title".
2613 - Changed content models of "literal_block" and "doctest_block" to
2615 - Added ``%number;`` attribute type parameter entity.
2616 - Changed ``%structural.elements;`` to ``%section.elements``.
2617 - Updated attribute types; made more specific.
2618 - Added "address" bibliographic element.
2619 - Added "line" attribute to ``system_message`` element.
2620 - Removed "field_argument" element; "field_name" may contain
2621 multiple words and whitespace.
2622 - Changed public identifier to docutils.sf.net.
2623 - Removed "interpreted" element; added "title_reference",
2624 "abbreviation", "acronym".
2625 - Removed "refuri" attribute from "footnote_reference" and
2626 "citation_reference".
2627 - Added "sidebar", "rubric", "attribution", "admonition",
2628 "superscript", "subscript", and "inline" elements.
2630 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2632 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2634 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2636 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2639 * spec/transforms.txt: Added to project.
2641 * spec/howto: Added subdirectory, for developer how-to docs.
2643 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2644 Elza, edited & extended by David Goodger.
2646 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2649 * spec/rst/alternatives.txt:
2651 - Added "Doctree Representation of Transitions" from
2653 - Updated "Inline External Targets" & closed the debate.
2654 - Added ideas for interpreted text syntax extensions.
2655 - Added "Nested Inline Markup" section.
2657 * spec/rst/directives.txt:
2659 - Added directives: "topic", "sectnum", "target-notes",
2660 "line-block", "parsed-literal", "include", "replace", "sidebar",
2661 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2663 - Formalized descriptions of directive details.
2664 - Added an "align" attribute to the "image" & "figure" directives
2665 (by Adam Chodorowski).
2666 - Added "class" options to "topic", "sidebar", "line-block",
2667 "parsed-literal", "contents", and "image"; and "figclass" to
2670 * spec/rst/interpreted.txt: Added to project. Descriptions of
2671 interpreted text roles.
2673 * spec/rst/introduction.txt:
2675 - Added pointers to material for new users.
2677 * spec/rst/reStructuredText.txt:
2679 - Disambiguated comments (just add a newline after the "::").
2680 - Updated enumerated list description; added a discussion of the
2681 second-line validity checking.
2682 - Updated directive description.
2683 - Added a note redirecting newbies to the user docs.
2684 - Expanded description of inline markup start-strings in non-markup
2686 - Removed field arguments and made field lists a generic construct.
2687 - Removed the 4-character minimum for section title underlines.
2688 - Clarified term/classifier delimiter & inline markup ambiguity
2690 - Added "Embedded URIs".
2691 - Updated "Interpreted Text" section.
2692 - Added "Character-Level Inline Markup" section.
2694 * test: Continually adding & updating tests.
2696 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2697 - Moved test/test_pep/ to test/test_readers/test_pep/.
2698 - Added test/test_readers/test_python/.
2699 - Added test/test_writers/ (Engelbert Gruber).
2703 - Made the ``locale.setlocale()`` calls in front ends
2706 * tools/buildhtml.py:
2708 - Added "--silent" option.
2709 - Fixed bug with absolute paths & "--config".
2710 - Updated for new I/O classes.
2711 - Added some exception handling.
2712 - Separated publishers' setting defaults; prevents interference.
2713 - Updated for new ``publish_file()`` convenience function.
2715 * tools/pep-html-template:
2717 - Allow for "--embed-stylesheet".
2718 - Added Docutils version to "generator" meta tag.
2719 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2720 - Conform to XHTML spec.
2722 * tools/pep2html.py:
2724 - Made ``argv`` a parameter to ``main()``.
2725 - Added support for "Content-Type:" header & arbitrary PEP formats.
2726 - Linked "Content-Type: text/plain" to PEP 9.
2727 - Files skipped (due to an error) are not pushed onto the server.
2728 - Updated for new I/O classes.
2729 - Added ``check_requirements()`` & ``pep_type_error()``.
2730 - Added some exception handling.
2731 - Updated for new ``publish_string()`` convenience function.
2732 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2734 * tools/quicktest.py:
2736 - Added "-V"/"--version" option.
2738 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2740 * tools/unicode2rstsubs.py: Added to project. Produces character
2741 entity files (reSructuredText substitutions) from the MathML master
2744 * tools/editors: Support code for editors, added to project. Contains
2745 ``emacs/restructuredtext.el``.
2747 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2749 - Added style for chunks of inline literals.
2750 - Removed margin for first child of table cells.
2751 - Right-aligned field list names.
2752 - Support for auto-numbered section titles in TOCs.
2753 - Increased the size of inline literals (<tt>) in titles.
2754 - Restored the light gray background for inline literals.
2755 - Added support for "line_block" elements.
2756 - Added style for "address" elements.
2757 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2758 - Improved field list rendering.
2759 - Vertical whitespace improvements.
2760 - Removed "a.target" style.
2762 * tools/stylesheets/pep.css:
2764 - Fixed nested section margins.
2765 - Other changes parallel those of ``../default.css``.
2768 Release 0.2 (2002-07-31)
2769 ========================
2773 - The word "component" was being used ambiguously. From now on,
2774 "component" will be used to mean "Docutils component", as in Reader,
2775 Writer, Parser, or Transform. Portions of documents (Table of
2776 Contents, sections, etc.) will be called "document parts".
2777 - Did a grand renaming: a lot of ``verylongnames`` became
2778 ``very_long_names``.
2779 - Cleaned up imports: no more relative package imports or
2780 comma-separated lists of top-level modules.
2781 - Added support for an option values object which carries default
2782 settings and overrides (from command-line options and library use).
2783 - Added internal Unicode support, and support for both input and
2785 - Added support for the ``docutils.io.IO`` class & subclasses.
2789 * docutils/__init__.py:
2791 - Added ``ApplicationError`` and ``DataError``, for use throughout
2793 - Added ``Component`` base class for Docutils components; implements
2794 the ``supports`` method.
2795 - Added ``__version__`` (thus, ``docutils.__version__``).
2799 - Removed many keyword parameters to ``Publisher.__init__()`` and
2800 ``publish()``; bundled into an option values object. Added
2801 "argv", "usage", "description", and "option_spec" parameters for
2802 command-line support.
2803 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2805 - Reworked I/O model for ``docutils.io`` wrappers.
2806 - Updated ``Publisher.set_options()``; now returns option values
2808 - Added support for configuration files (/etc/docutils.conf,
2809 ./docutils.conf, ~/.docutils).
2810 - Added ``Publisher.setup_option_parser()``.
2811 - Added default usage message and description.
2813 * docutils/frontend.py: Added to project; support for front-end
2814 (command-line) scripts. Option specifications may be augmented by
2815 components. Requires Optik (http://optik.sf.net/) for option
2816 processing (installed locally as docutils/optik.py).
2818 * docutils/io.py: Added to project; uniform API for a variety of input
2821 * docutils/nodes.py:
2823 - Added ``TreeCopyVisitor`` class.
2824 - Added a ``copy`` method to ``Node`` and subclasses.
2825 - Added a ``SkipDeparture`` exception for visitors.
2826 - Renamed ``TreePruningException`` from ``VisitorException``.
2827 - Added docstrings to ``TreePruningException``, subclasses, and
2829 - Improved docstrings.
2830 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2831 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2833 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2834 ``PreDecorative`` mixin.
2835 - Reworked the name/id bookkeeping; to ``document``, removed
2836 ``explicit_targets`` and ``implicit_targets`` attributes, added
2837 ``nametypes`` attribute and ``set_name_id_map`` method.
2838 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2840 - Added ``document.has_name()`` method.
2841 - Fixed DOM generation for list-attributes.
2842 - Added category class ``Labeled`` (used by footnotes & citations).
2843 - Added ``Element.set_class()`` method (sets "class" attribute).
2845 * docutils/optik.py: Added to project. Combined from the Optik
2846 package, with added option groups and other modifications. The use
2847 of this module is probably only temporary.
2849 * docutils/statemachine.py:
2851 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2852 - Added underscores to improve many awkward names.
2853 - In ``string2lines()``, changed whitespace normalizing translation
2854 table to regexp; restores Python 2.0 compatibility with Unicode.
2856 * docutils/urischemes.py:
2858 - Filled in some descriptions.
2859 - Added "shttp" scheme.
2861 * docutils/utils.py:
2863 - Added ``clean_rcs_keywords`` function (moved from
2864 docutils/transforms/frontmatter.py
2865 ``DocInfo.filter_rcs_keywords``).
2866 - Added underscores to improve many awkward names.
2867 - Changed names of Reporter's thresholds:
2868 warning_level -> report_level; error_level -> halt_level.
2869 - Moved ``utils.id()`` to ``nodes.make_id()``.
2870 - Added ``relative_path(source, target)``.
2872 * docutils/languages/de.py: German mappings; added to project. Thanks
2873 to Gunnar Schwant for the translations.
2875 * docutils/languages/en.py: Added "Dedication" bibliographic field
2878 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2881 * docutils/parsers/rst/states.py:
2883 - Added underscores to improve many awkward names.
2884 - Added RFC-2822 header support.
2885 - Extracted the inline parsing code from ``RSTState`` to a separate
2886 class, ``Inliner``, which will allow easy subclassing.
2887 - Made local bindings for ``memo`` container & often-used contents
2888 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2889 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2890 - Added ``MarkupMismatch`` exception; for late corrections.
2891 - Added ``-/:`` characters to inline markup's start string prefix,
2892 ``/`` to end string suffix.
2893 - Fixed a footnote bug.
2894 - Fixed a bug with literal blocks.
2895 - Applied patch from Simon Budig: simplified regexps with symbolic
2896 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2897 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2898 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2899 - Allowed non-ASCII in "simple names" (directive names, field names,
2901 - Converted ``Inliner.patterns.initial`` to be dynamically built
2902 from parts with ``build_regexp()`` function.
2903 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2904 - Updated docstrings.
2905 - Changed "table" to "grid_table"; added "simple_table" support.
2907 * docutils/parsers/rst/tableparser.py:
2909 - Changed ``TableParser`` to ``GridTableParser``.
2910 - Added ``SimpleTableParser``.
2911 - Refactored naming.
2913 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2914 a fallback language for directive names.
2916 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2917 directive to use a ``pending`` element, used only by HTML writers.
2919 * docutils/parsers/rst/directives/parts.py: Renamed from
2922 - Added "backlinks" attribute to "contents" directive.
2924 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2925 project by Adam Chodorowski.
2927 * docutils/readers/__init__.py: Gave Readers more control over
2928 choosing and instantiating Parsers.
2930 * docutils/readers/pep.py: Added to project; for PEP processing.
2932 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2933 requires a ``component`` parameter.
2935 * docutils/transforms/components.py: Added to project; transforms
2936 related to Docutils components.
2938 * docutils/transforms/frontmatter.py:
2940 - In ``DocInfo.extract_authors``, check for a single "author" in an
2941 "authors" group, and convert it to a single "author" element.
2942 - Added support for "Dedication" and generic bibliographic fields.
2944 * docutils/transforms/peps.py: Added to project; PEP-specific.
2946 * docutils/transforms/parts.py: Renamed from old components.py.
2948 - Added filter for `Contents`, to use alt-text for inline images,
2949 and to remove inline markup that doesn't make sense in the ToC.
2950 - Added "name" attribute to TOC topic depending on its title.
2951 - Added support for optional TOC backlinks.
2953 * docutils/transforms/references.py: Fixed indirect target resolution
2954 in ``Hyperlinks`` transform.
2956 * docutils/transforms/universal.py:
2958 - Changed ``Messages`` transform to properly filter out system
2959 messages below the warning threshold.
2960 - Added ``Decorations`` transform (support for ``--generator``,
2961 ``--date``, ``--time``, ``--source-link`` options).
2963 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2964 Engelbert Gruber's PDF writer.
2966 * docutils/writers/html4css1.py:
2968 - Made XHTML-compatible (switched to lowercase element & attribute
2969 names; empty tag format).
2970 - Escape double-dashes in comment text.
2971 - Improved boilerplate & modularity of output.
2972 - Exposed modular output in Writer class.
2973 - Added a "generator" meta tag to <head>.
2974 - Added support for the ``--stylesheet`` option.
2975 - Added support for ``decoration``, ``header``, and ``footer``
2977 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2978 translation table to regexp; restores Python 2.0 compatibility
2980 - Added the translator class as instance variable to the Writer, to
2981 make it easily subclassable.
2982 - Improved option list spacing (thanks to Richard Jones).
2983 - Modified field list output.
2984 - Added backlinks to footnotes & citations.
2985 - Added percentage widths to "<col>" tags (from colspec).
2986 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2987 "<span>" changed to "<var>".
2988 - Inline literals: "<code>" changed to "<tt>".
2989 - Many changes to optimize vertical space: compact simple lists etc.
2990 - Add a command-line options & directive attributes to control TOC
2991 and footnote/citation backlinks.
2992 - Added support for optional footnote/citation backlinks.
2993 - Added support for generic bibliographic fields.
2994 - Identify backrefs.
2995 - Relative URLs for stylesheet links.
2997 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2998 PEPs (subclass of ``html4css1.Writer``).
3000 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
3002 * docutils/writers/docutils_xml.py: Added to project; trivial writer
3003 of the Docutils internal doctree in XML.
3005 * docs/tools.txt: "Docutils Front-End Tools", added to project.
3009 - Changed the title to "The Docutils Document Tree".
3010 - Added "Hyperlink Bookkeeping" section.
3012 * spec/docutils.dtd:
3014 - Added ``decoration``, ``header``, and ``footer`` elements.
3015 - Brought ``interpreted`` element in line with the parser: changed
3016 attribute "type" to "role", added "position".
3017 - Added support for generic bibliographic fields.
3019 * spec/notes.txt: Continual updates. Added "Project Policies".
3021 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
3024 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
3026 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
3027 mailing list discussions.
3029 * spec/pep-0287.txt:
3031 - Renamed to "reStructuredText Docstring Format".
3033 - Reworked Q&A as an enumerated list.
3034 - Converted to reStructuredText format.
3036 * spec/pysource.dtd:
3038 - Reworked structural elements, incorporating ideas from Tony Ibbs.
3040 * spec/pysource.txt: Removed from project. Moved much of its contents
3043 * spec/rst/alternatives.txt:
3045 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
3046 - Added "Inline External Targets" section.
3048 * spec/rst/directives.txt:
3050 - Added "backlinks" attribute to "contents" directive.
3052 * spec/rst/problems.txt:
3054 - Updated the Enumerated List Markup discussion.
3055 - Added new alternative table markup syntaxes.
3057 * spec/rst/reStructuredText.txt:
3059 - Clarified field list usage.
3060 - Updated enumerated list description.
3061 - Clarified purpose of directives.
3062 - Added ``-/:`` characters to inline markup's start string prefix,
3063 ``/`` to end string suffix.
3064 - Updated "Authors" bibliographic field behavior.
3065 - Changed "inline hyperlink targets" to "inline internal targets".
3066 - Added "simple table" syntax to supplement the existing but
3067 newly-renamed "grid tables".
3068 - Added cautions for anonymous hyperlink use.
3069 - Added "Dedication" and generic bibliographic fields.
3071 * test: Made test modules standalone (subdirectories became packages).
3073 * test/DocutilsTestSupport.py:
3075 - Added support for PEP extensions to reStructuredText.
3076 - Added support for simple tables.
3077 - Refactored naming.
3079 * test/package_unittest.py: Renamed from UnitTestFolder.py.
3081 - Now supports true packages containing test modules
3082 (``__init__.py`` files required); fixes duplicate module name bug.
3084 * test/test_pep/: Subpackage added to project; PEP testing.
3086 * test/test_rst/test_SimpleTableParser.py: Added to project.
3090 - Updated html.py and publish.py front-end tools to use the new
3091 command-line processing facilities of ``docutils.frontend``
3092 (exposed in ``docutils.core.Publisher``), reducing each to just a
3094 - Added ``locale.setlocale()`` calls to front-end tools.
3096 * tools/buildhtml.py: Added to project; batch-generates .html from all
3097 the .txt files in directories and subdirectories.
3099 * tools/default.css:
3101 - Added support for ``header`` and ``footer`` elements.
3102 - Added styles for "Dedication" topics (biblio fields).
3104 * tools/docutils.conf: A configuration file; added to project.
3106 * tools/docutils-xml.py: Added to project.
3108 * tools/pep.py: Added to project; PEP to HTML front-end tool.
3110 * tools/pep-html-template: Added to project.
3112 * tools/pep2html.py: Added to project from Python (nondist/peps).
3113 Added support for Docutils (reStructuredText PEPs).
3115 * tools/quicktest.py:
3117 - Added the ``--attributes`` option, hacked a bit.
3118 - Added a second command-line argument (output file); cleaned up.
3120 * tools/stylesheets/: Subdirectory added to project.
3122 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
3125 Release 0.1 (2002-04-20)
3126 ========================
3128 This is the first release of Docutils, merged from the now inactive
3129 reStructuredText__ and `Docstring Processing System`__ projects. For
3130 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
3131 `DPS HISTORY`__ files.
3133 __ http://structuredtext.sourceforge.net/
3134 __ http://docstring.sourceforge.net/
3135 __ http://structuredtext.sourceforge.net/HISTORY.html
3136 __ http://docstring.sourceforge.net/HISTORY.html
3138 General changes: renamed 'dps' package to 'docutils'; renamed
3139 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
3140 the test suites (reStructuredText's test/test_states renamed to
3141 test/test_rst); and all modifications required to make it all work.
3143 * docutils/parsers/rst/states.py:
3145 - Improved diagnostic system messages for missing blank lines.
3146 - Fixed substitution_reference bug.
3152 indent-tabs-mode: nil
3153 sentence-end-double-space: t