1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: docutils-develop@lists.sourceforge.net
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
21 - Fix [ 253 ] Attribute key without value not allowed in XML.
23 * docutils/parsers/rst/__init__.py
25 - Fix [ 233 ] Change the base URL for the :rfc: role.
27 * docutils/parsers/rst/directives/tables.py
29 - patch [ 120 ] tables accept option widths: list of relative widths, 'auto'
32 * docutils/writers/html4css1/__init__.py
34 - Add "docutils" to class values for "container" object to address [ 267 ].
36 * docutils/writers/odf_odt/__init__.py
38 - remove decode.encode of filename stored in zip.
40 * docutils/writers/latex2e/__init__.py
42 - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
43 admonitions and docinfo.
45 Release 0.12 (2014-07-06)
46 =========================
48 * docs/ref/rst/directives.txt
50 - Update "math" and "csv-table" descriptions.
52 * docutils/parsers/rst/directives/images.py
54 - Fix [ 258 ] figwidth="image" generates unitless width value.
56 * docutils/parsers/rst/states.py
58 - Improve error report when a non-ASCII character is specified as
59 delimiter, quote or escape character under Python 2.
60 Fixes [ 249 ] and [ 250 ].
62 * docutils/writers/html4css1/__init__.py
64 - Don't add newline after inline math.
65 Thanks to Yury G. Kudryashov for the patch.
67 * docutils/writers/latex2e/__init__.py
69 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
70 - Apply [ 116 ] by Kirill Smelkov. Don't hardcode \large for subtitle.
72 * docutils/writers/odf_odt/__init__.py
74 - Apply patch by Jakub Wilk to fix bug [ 100 ].
76 * test/test_error_reporting.py
78 - Fix [ 223 ] by removing redundant tests we do not have control over.
82 - Apply [ 115 ] respect fixed 2to3 string literal conversion behavior.
84 Release 0.11 (2013-07-22)
85 =========================
89 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
90 - Support embedded aliases within hyperlink references.
91 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
92 language module) before global search.
96 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
98 * docutils/parsers/rst/directives/__init__.py
100 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
102 * docutils/parsers/rst/directives/images.py
104 - Apply [ 3599485 ] node source/line information for sphinx translation.
106 * docutils/parsers/rst/directives/tables.py
108 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
110 * docutils/parsers/rst/states.py
112 - Fix [ 157 ] Line block parsing doesn't like system message.
113 - Always import our local copy of roman.py (report Larry Hastings).
115 * docutils/transforms/references.py
117 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
119 * docutils/utils/__init__.py
121 - Fix [ 3596884 ] exception importing ``docutils.io``.
123 * docutils/writers/html4css1/__init__.py
125 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
126 - New setting `stylesheet_dirs`: Comma-separated list of directories
127 where stylesheets are found. Used by `stylesheet_path` when expanding
128 relative path arguments.
129 - New default for math-output_: ``HTML math.css``.
130 - Avoid repeated class declarations in html4css1 writer
131 (modified version of patch [ 104 ]).
133 .. _math-output: docs/user/config.html#math-output
135 * docutils/writers/latex2e/__init__.py
137 - Drop the simple algorithm replacing straight double quotes with
138 English typographic ones.
139 Activate the SmartQuotes_ transform if you want this feature.
140 - Fix literal use of babel shorthands (straight quote, tilde, ...).
141 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
142 - New setting `stylesheet_dirs`.
144 .. _SmartQuotes: docs/user/config.html#smart-quotes
146 * docutils/writers/manpage.py
148 - Fix [3607063] handle lines starting with a period.
149 - Fix option separating comma was bold (thanks to Bill Morris).
151 Release 0.10 (2012-12-16)
152 =========================
156 - Dropped support for Python 2.3.
157 - ``docutils/math``, ``docutils/error_reporting.py``, and
158 ``docutils/urischemes.py`` moved to the utils package.
159 - Fix [3541369] Relative __import__ also with Python 3.3.
160 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
161 and parsers for Python 2.7 up.
162 - Fix import of PIL.Image.
163 - Change default of "syntax highlight" option to "long",
164 basic syntax highlight styles for LaTeX and HTML.
168 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
169 option is ignored and will be removed in a future release.
170 - Fix Py3k error writing to stdout with encoding differing from default.
171 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
173 * docutils/parsers/rst/directives/misc.py
175 - Fix [ 3546533 ] Unicode error with `date` directive.
177 * docutils/transforms/universal.py
179 - SmartQuotes transform for typographic quotes and dashes.
181 * docutils/utils/__init__.py
183 - normalize_language_tag() now returns `BCP 47`_ conformant tags
184 with subtags separated by ``-``.
186 * docutils/writers/html4css1/__init__.py
188 - Use ``<code>`` tag for inline "code",
189 do not drop nested inline nodes (syntax highlight tokens).
190 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
191 - No line break after opening inline math tag.
193 * docutils/writers/manpage.py
195 - Apply [ 3527401 ] addmonition's don't preserve indentation
196 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
198 , docutils/writers/xetex/__init__.py
200 - Apply [ 3555160 ] ensure order of "otherlanguages".
201 - Fix section numbering by LaTeX.
203 * docutils/writers/s5_html/__init__.py
205 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
207 * docutils/writers/s5_html/docutils_xml.py
209 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
213 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
215 * tools/test/test_buildhtml.py
217 - Fix [ 3521167 ] allow running in any directory.
218 - Fix [ 3521168 ] allow running with Python 3.
221 Release 0.9.1 (2012-06-17)
222 ==========================
226 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
227 installed in the PYTHONPATH. Converted tests are now
228 stored in ``test3/``, tools no longer need conversion.
230 If you installed one of Docutils versions 0.7 ... 0.9 with
231 ``setup.py install`` under Python 3, remove the spurious
232 ``test/`` and ``tools/`` directories in the site library root.
236 - Make tests independent from the location of the ``test/`` directory.
237 - Use converted sources (from the ``build/`` directory) for tests under
242 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
246 - Fix writing binary data to sys.stdout under Python 3 (allows
247 ``rst2odt.py`` to be used with output redirection).
249 * docutils/parsers/rst/directives/misc.py
251 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
252 ``locale == C`` and 8-bit char in path argument of `include` directive.
256 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
259 Release 0.9 (2012-05-02)
260 ========================
264 - New reStructuredText "code" role and directive and "code" option
265 of the "include" directive with syntax highlighting by Pygments_.
266 - Fix parse_option_marker for option arguments containing ``=``.
267 - Fix [ 2993756 ]: import Python Imaging Library's Image module
268 via ``import PIL`` as starting with PIL 1.2,
269 "PIL lives in the PIL namespace only" (announcement__).
271 .. _Pygments: http://pygments.org/
272 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
276 - Fix [ 2971827 ] and [ 3442827 ]
277 extras/roman.py moved to docutils/utils/roman.py
279 * docutils/frontend.py
281 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
285 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
286 - `mode` argument for FileOutput avoids code replication in
288 - New exceptions InputError and OutputError for IO errors in
289 FileInput/FileOutput.
293 - No "hard" system exit on file IO errors: catch and report them in
294 `Publisher.reportException` instead. Allows handling by a calling
295 application if the configuration setting `traceback` is True.
297 * docutils/utils.py -> docutils/utils/__init__.py
299 - docutils.utils is now a package (providing a place for sub-modules)
301 .. note:: docutils/math, docutils/error_reporting.py, and
302 docutils/urischemes.py will move to the utils package in the next
303 release, too. See RELEASE-NOTES__
305 __ RELEASE-NOTES.html
307 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
308 errors recording non-ASCII filenames (fixes [ 3434355 ]).
310 - Fix relative_path() with source=None and `unicode` target.
312 * docutils/parsers/rst/states.py
314 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
315 characters and "international" quotes around inline markup.
316 - Use `field_marker` pattern to look for start of a
317 directive option block (fixes [ 3484857 ]).
319 * docutils/parsers/rst/tableparser.py
321 - Fix [ 2926161 ] for simple tables.
322 (Combining chars in grid tables still contribute to cell width.)
324 * docutils/writers/latex2e/__init__.py
326 - Support the `abbreviation` and `acronym` standard roles.
327 - Record only files required to generate the LaTeX source as dependencies.
328 - Fix handling of missing stylesheets.
329 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
330 when suppressing LaTeX section numbering.
331 - Use ``\DUtitle`` for unsupported section levels
332 - Apply [ 3512791 ] do not compare string literals with "is"
334 * docutils/writers/xetex/__init__.py
336 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
338 * docutils/writers/html4css1/__init__.py
340 - Change default for `math-output` setting to MathJax.
341 - Fix handling of missing stylesheets.
343 * docutils/writers/docutils_xml.py
345 - Use the visitor pattern with default_visit()/default_depart() methods
346 instead of minidom to facilitate special handling of selected nodes.
347 - Support raw XML (inserted as-is inside a <raw></raw> node).
349 * docutils/writers/manpage.py
351 - Do not emit comment line with trailing blank. Problematic for VCS.
353 Release 0.8.1 (2011-08-30)
354 ==========================
358 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
359 and [ 3395920 ] (correct copyright info for rst.el).
363 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
365 * docutils/writers/latex2e/__init__.py
367 - Clean up Babel language setting. Restores Sphinx compatibility.
369 Release 0.8 (2011-07-07)
370 ========================
374 - Handle language codes according to `BCP 47`_.
375 - If the specified language is not supported by Docutils,
376 warn and fall back to English.
377 - Math support: reStructuredText "math" role and directive,
378 ``math`` and ``math_block`` doctree elements.
379 - Decode command line arguments with the locale's preferred encoding
380 (to allow, e.g., ``--title=Dornröschen``).
381 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
382 - New sub-module `error_reporting`: handle encoding/decoding errors
383 when reporting exceptions.
384 - Some additions to the Docutils core are released under the 2-Clause BSD
385 license, see COPYING_ for details.
387 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
388 .. _COPYING: COPYING.html
392 - Most directives now support a "name" option that attaches a
395 - Directive content may start on the first line also when the directive
396 type accepts options.
398 * docs/dev/policies.txt:
400 - Recommend the 2-Clause BSD license
401 (http://www.spdx.org/licenses/BSD-2-Clause)
402 for code that is kept under the author's copyright.
404 * tools/buildhtml.py:
406 - Fix ``--local`` switch.
408 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
410 * docutils/writers/html4css1/__init__.py
412 - Set "lang" argument for objects with class argument
413 "language-<language tag>".
414 - New setting "math-output" with support for HTML, MathML, and LaTeX.
416 * docutils/writers/latex2e/__init__.py
418 - Fix [ 3043986 ] AttributeError using :local: with table of content.
419 - Place title data in the document preamble.
420 - Load `babel` package only if required.
421 - Update list of supported languages.
422 - New config setting "hyperref-options".
423 No hard-coded "unicode" hyperref option (clash with xetex).
424 - Set language for custom roles, paragraphs, block-quotes, and
425 line-quotes with class argument "language-<language tag>".
426 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
427 - Convert image URI to a local file path.
428 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
429 has more than one paragraph (Wolfgang Scherer).
430 - \leavevmode before longtable only when needed (prevents spurious vspace)
431 - do not advance table counter for tables without caption
433 * docutils/writers/xetex/__init__.py
435 - New writer generating LaTeX code for compiling with ``xelatex``.
437 A separate writer (inheriting from latex2e) instead of a ``--xetex``
438 option allows separate config options for XeTeX vs. LaTeX2e.
440 * docutils/writers/manpage.py
442 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
443 - Fix: vertical space cleaning for option group ``.``.
445 * tools/editors/emacs/rst.el:
447 - Fix [ 3001100 ] does not handle spaces in filenames
448 (thanks to Jakub Wilk)
452 - strip whitespace from stylesheet arguments
453 - exclude combining chars from column_width()
454 (partial fix for [ 2926161 ])
456 * docutils/parsers/rst/directives/misc.py:
458 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
463 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
464 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
466 Release 0.7 (2010-07-07)
467 ========================
471 - Fix [ 2881769 ] setup configuration.
472 - Fix [ 2788716 ] reporting problems in included files.
476 - FileInput opens files as text files with universal newline support
477 (mode "rU", configurable with the new optional argument "mode").
481 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
485 - Fix [ 2923723 ] let decode_path() tolerate path == None
487 * docutils/writers/html4css1/__init__.py
489 - Support SVG and SWF images (thanks to Stefan Rank).
490 - Generate valid XHTML for centered images with targets.
491 Use CSS classes instead of "align" tags for image alignment.
493 * docutils/writers/latex2e/__init__.py
495 - Use `transforms.writer_aux.Admonitions` to "normalize" special
497 - Use the ``\url`` command for URLs (breaks long URLs instead of
498 writing into the margin).
499 - Preserve runs of spaces in `inline literals`__.
500 - Deprecate ``figure_footnotes`` setting.
501 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
502 - New ``latex_preamble`` setting.
503 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
504 - Fix hyperlink targets (labels) for images, figures, and tables.
505 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
506 - Apply [ 2961991 ] Call hyperref with unicode option.
507 - Drop the special `output_encoding`__ default ("latin-1").
508 The Docutils wide default (usually "UTF-8") is used instead.
509 - Render inline markup in document title and subtitle.
510 - Fix numbering depth with LaTeX section numbering.
511 - Update Unicode -> LaTeX translations.
512 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
514 __ docs/ref/restructuredtext.html#inline-literals
515 __ docs/user/config.html#docutils-footnotes
516 __ docs/user/config.html#output_encoding
518 * docutils/writers/manpage.py
520 - Fix: supported attribute (thanks to peter2108).
521 - Remove trailing blanks in code (keep in sync with mercurial version).
522 - Titles level 1, that is ``.SH``, always uppercase.
523 - Apply patch from mg: literal text should be bold in man-pages.
527 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
532 - Python 3 support: copy test/ and tools/ to the build-dir
533 and convert Python sources with 2to3.
536 Release 0.6 (2009-10-11)
537 ========================
541 - Docutils is now compatible with Python versions from 2.3 up to 2.6
542 and convertible to 3.1 code.
544 + Node.__nonzero__ returns True instead of 1.
545 + use os.walk instead os.path.walk.
546 + minimize "types" module where possible.
547 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
548 + Text nodes now subclass unicode rather than UserString
549 (which is gone in python 3.0).
550 + 3.0 compatibility module docutils._compat
552 + Drop 2.2 compatibility workarounds.
553 + Drop extras/optparse.py and extras/textwrap.py
554 (stdlib modules since 2.3).
556 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
557 - Unix man page export: manpage writer moved from sandbox to Doctutils
560 - Apply [ 1719345 ] Galician translation
561 - Apply [ 1905741 ] Polish translation
562 - Apply [ 1878977 ] make_id(): deaccent characters.
563 - Apply [ 2029251 ] return nonzero when tests fail.
564 - Fix [ 1692788 ] allow UTF-8 in style sheets.
565 - Fix [ 2781629 ] support non-ASCII chars in file names.
566 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
567 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
568 - Fix [ 2821266 ] --strict option works now like --halt=info.
569 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
570 - Fix [ 1627229 ] hyperlink references in substitutions.
572 - The "newlatex" writer is orphaned.
576 - Documented Unicode characters allowed as inline markup openers,
577 closers, and delimiters.
578 - Allow units for all length specifications.
579 - Allow percent sign in "scale" argument of "figure" and "image" directives.
580 - Bugfix: The "figalign" argument of a figure now works as intended
581 (aligning the figure, not its contents).
582 - Align images with class "align-[right|center|left]"
583 (allows setting the alignment of an image in a figure).
587 - Added ``Element.__contains__`` method, for the in-operator.
589 * docutils/parsers/rst/states.py:
591 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
592 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
593 " " (non-breaking space), and "¡ ¿" openers.
595 * docutils/parsers/directives/misc.py:
597 - Added ``start-line`` and ``end-line`` options to "include"
598 directive to select a range of lines.
599 - Hard tabs in literal inclusions are replaced by spaces. This is
600 configurable via the new ``tab-width`` option of the "include" directive
601 (a negative tab-width prevents tab expansion).
605 - Add ``get_stylesheet_list`` function.
606 - Apply [ 2834836 ] print info at halt
608 * docutils/transforms/universal.py:
610 - Raise default priority of StripClasses to exclude stripped classes from
613 * docutils/writers/html4css1/__init__.py:
615 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
616 separated list of stylesheets.
617 - Address [ 1938891 ] Inline literal text creates "pre" span only when
618 needed to prevent inter-word line wraps.
619 - Use `translate` method instead of repeated `replace` calls.
620 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
621 classes to allow CSS styling that does not interfere with other
622 table-using constructs (field lists, citations, ...).
624 * docutils/writers/newlatex2e/__init__.py:
626 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
628 * docutils/writers/latex2e/__init__.py (see also
629 `<docs/user/docutils-05-compat.sty.html>`__) :
631 - Add ``--embed-stylesheet`` option.
632 - Apply [ 1474017 ] image vertical alignment is reversed.
633 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
634 - Change: has_key for dictionaries (not Nodes) to in-operator.
635 - Merge adjacent citations into one latex cite command.
636 - Failsave implementation of custom roles. LaTeX compilation now ignores
637 unknown classes instead of aborting with an error.
638 - Support custom roles based on standard roles.
639 - LaTeX packages can be used as ``--stylesheet`` arguments without
640 restriction. (A style sheet is now referenced with the ``\usepackage``
641 command, if it ends with ``.sty`` or has no extension.)
642 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
643 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
644 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
645 2005-02-04 as a configurable length unit).
646 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
647 if font-encoding is set to ''. LaTeX defaults to OT1 then.
648 - Set sub- and superscript role argument in text mode not as math.
649 Use a custom role based on sub-/superscript if you want italic shape.
650 - Shorter preamble and less dependencies: Load packages and define macros
651 only if required in the document.
652 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
653 - New custom environments and commands with optional "classes" argument.
654 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
655 - Better conformance to Docutils specifications with ``--use-latex-toc``.
656 Support for LaTeX generated ToC also with unnumbered sections.
657 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
658 section numbering by LaTeX.
659 - Use default font in admonitions and sidebar.
660 - Align of image in a figure defaults to 'center'.
661 - Bugfix: Newlines around targets and references prevent run-together
663 - Fix internal hyperlinks.
664 - Use class defaults for page margins ('typearea' now optional).
665 - Float placement made configurable, default changed to "here definitely".
666 - Typeset generic topic as "quote block with title".
667 - Use template (file and configuration option).
668 - In the default template, load cmap.sty (fix text extraction in PDF) and
669 fixltx2e.sty (LaTeX patches, \textsubscript).
670 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
671 - Use `translate` instead of repeated `replace` calls for text encoding.
672 - Hyperlinked footnotes and support for symbol footnotes and
673 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
674 - Complete pairs of binary options
675 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
676 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
678 - font-encoding: "T1" (formerly implicitely set by 'ae').
679 - use-latex-toc: true (ToC with page numbers).
680 - use-latex-footnotes: true (no mixup with figures).
682 * docutils/writers/manpage.py
684 - Do not print version at document end, this is done by the viewer.
685 - Do not print date at document end, this is done by the viewer.
686 - Fix storage of docinfo fields for none standard fields.
688 * docutils/tools/rst2man.py
690 Release 0.5 (2008-06-25)
691 ========================
693 * docutils/languages/he.py: Added to project: Hebrew mappings by
696 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
697 mappings by Meir Kriheli.
699 * docutils/frontend.py:
701 - Configuration files are now assumed and required to be
703 - Paths of applied configuration files are now recorded in the
704 runtime setting ``_config_files`` (accessible via
705 ``--dump-settings``).
706 - Added ``--strip-elements-with-class`` and ``--strip-class``
707 options (``strip_elements_with_classes`` and ``strip_classes``
712 - Added code to determine the input encoding from data: encoding
713 declarations or the presence of byte order marks (UTF-8 & UTF-16).
714 - Added support for IronPython 1.0.
718 - Added ``document.__getstate__`` method, for pickling.
720 * docutils/parsers/rst/states.py:
722 - Allow ``+`` and ``:`` in reference names.
723 - Unquoted targets beginning with an underscore (``.. __target:
724 URI``) are no longer accepted.
725 - Added support for multiple attributions in a physical block quote
726 (indented text block), dividing it into multiple logical block
728 - Added support for unicode bullets in bullet lists: "•", "‣", and
730 - Added support for new object-oriented directive interface,
731 retaining compatibility to the old functional interface.
732 - Added support for throwing ``DirectiveError``'s from within
735 * docutils/parsers/rst/__init__.py:
737 - Added ``Directive`` base class.
738 - Added ``DirectiveError`` base class.
739 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
742 * docutils/parsers/directives/:
744 - Refactored all reStructuredText directives to use the new
745 object-oriented directive interface. Errors are now (mostly)
746 thrown using the new ``DirectiveError`` class.
748 * docutils/parsers/directives/misc.py:
750 - Added ``start-after`` and ``end-before`` options to ``include``
751 directive; thanks to Stefan Rank.
753 * docutils/transforms/universal.py:
755 - Added ``StripClassesAndElements`` transform to remove from the
756 document tree all elements with classes in
757 ``settings.strip_elements_with_classes`` and all "classes"
758 attribute values in ``self.document.settings.strip_classes``.
760 * docutils/transforms/writer_aux.py:
762 - Added ``Admonitions`` transform to transform specific admonitions
763 (like ``note``, ``warning``, etc.) into generic admonitions with a
766 * docutils/writers/html4css1/__init__.py:
768 - Moved template functionality from the PEP/HTML writer here.
769 - Expanded the fragments available in the ``parts`` attribute.
770 - Moved ``id`` attributes from titles to surrounding ``div``
772 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
773 universally supported now).
774 - ``template.txt`` is now opened in text mode instead of binary mode
775 (to ensure Windows compatibility).
776 - ``a`` elements now have an "internal" or "external" class,
777 depending on reference type.
779 * docutils/writers/html4css1/template.txt: Added to project.
781 * docutils/writers/pep_html/:
783 - Moved template functionality to the HTML writer.
785 * docutils/writers/s5_html/__init__.py:
787 - Added ``view_mode`` & ``hidden_controls`` settings
788 (``--view-mode`` & ``--hidden-controls/--visible-controls``
791 * docutils/writers/latex2e/__init__.py:
793 - Add ``--literal-block-env``
794 - Fix: escaping ``%`` in href urls.
795 - Move usepackage hyperref after stylesheet inclusion.
796 - Fix: scrartcl does not have chapter but scrreprt.
797 - Add newline after ``\end{verbatim}``.
798 - Merge smaller differences from latex2e_adaptive_preamble.
799 - Add ``use-part-section``.
800 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
801 - Using leavemode option_list no longer needs to check if parent
802 is a definition list.
803 - Append ``\leavemode`` to definition list terms.
804 - No longer write visit\_/depart_definition_list_item comments to
806 - Table column width with 3 decimal places.
807 - Add table stubs support (boldfont).
808 - Add assemble_parts to writer.
809 - Add simply support for nested tables.
810 - Fix verbatim in tables if use-verbatim-when-possible.
811 - Use section commands down to subparagraph.
812 - Put ensuremath around some latin1 chars.
813 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
814 - New option ``--use-bibtex=style,db1,db2``.
815 - New option ``--reference-label`` to allow usage of LaTeX ref for
816 labels in section references.
817 - Add a label after every section to support sectionnumbers as reference
819 - Fix: bug# 1605376 rst2latex: bad options group list
820 - Remove inactive code for use_optionlist_for_option_list.
821 - Remove latex comments from option_list output.
822 - Fix: bug# 1612270 double qoutes in italian literal.
823 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
824 - Add option --use-latex-abstract.
825 - Image width unit ``px`` is translated to ``pt``.
826 - Add image height support.
827 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
829 - Fix: Do not escape underscores in citation reference labels if
830 use-latex-citations is set.
831 - Use centering instead of center for figure contents, to avoid vertical
833 - Recognize table class: borderless, nolines, booktabs, standard.
834 - Fix: Renaming contents section does not work with latex writer; SF
836 - Applied patch for custom roles with classes from Edward Loper.
837 - Fixed bug that caused crashes with more than 256 lists.
839 * docutils/writers/pep_html/__init__.py:
841 - Changed to support new python.org website structure and
844 * docs/howto/security.txt: "Deploying Docutils Securely", added to
847 * tools/buildhtml.py:
849 -- Added ``ignore`` setting to exclude a list of shell patterns
850 (default: ``.svn:CVS``).
852 * tools/editors/emacs/rst.el:
854 - Changed license to "GPL".
855 - Added ``rst-straighten-decorations`` function.
856 - The ``compile`` module is now always loaded.
857 - Added ``rst-toggle-line-block`` function.
858 - Headings consisting only of non-ASCII characters are now
859 recognized by ``rst-toc`` and ``rst-adjust``.
860 - Added font-lock support for multi-line comments where the first
861 comment line is empty.
862 - Added ``(require 'font-lock)``.
866 - Provide descriptive error message if distutils is missing.
869 Release 0.4 (2006-01-09)
870 ========================
874 - Updated the project policies for trunk/branch development &
877 * docutils/__init__.py:
879 - Added ``__version_details__`` attribute to describe code source
880 (repository/snapshot/release).
881 - Replaced ``default_transforms`` attribute of TransformSpec with
882 ``get_transforms()`` method.
886 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
887 functions, for document tree extraction and reprocessing.
891 - Added ``DocTreeInput`` class, for reprocessing existing documents.
892 - Added support for non-Unicode (e.g. binary) writer output.
896 - Re-introduced ``Targetable.indirect_reference_name``, for
897 MoinMoin/reST compatibility (removed in r3124/r3129).
898 - Added ``serial_escape`` function; escapes string values that are
899 elements of a list, for serialization. Modified Docutils-XML
900 writing (``Element._dom_node``) and pseudo-XML writing
901 (``Element.starttag``) to use ``serial_escape``.
902 - Added ``Node.deepcopy()`` method.
903 - Removed the internal lists ``document.substitution_refs``,
904 ``document.anonymous_refs``, and ``document.anonymous_targets``.
905 - Added a "container" element.
906 - Fixed bug where values of list-valued attributes of elements
907 originating from custom interpreted text roles (i.e., with custom
908 classes) were being shared between element instances. Reported by
911 * docutils/statemachine.py:
913 - Added trailing whitespace stripping to ``string2lines()``.
914 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
915 Asian double-width character support.
919 - Added ``east_asian_column_width()`` for double-width character
922 * docutils/languages/ja.py: Added to project: Japanese mappings by
925 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
926 mappings by Panjunyong.
928 * docutils/parsers/null.py: Added to project; a do-nothing parser.
930 * docutils/parsers/rst/__init__.py:
932 - Added validator to tab_width setting, with test. Closes SF bug
933 #1212515, report from Wu Wei.
935 * docutils/parsers/rst/states.py:
937 - Fixed bug with escaped colons indicating a literal block.
938 - Fixed bug with enumerated lists (SF#1254145).
939 - Backslash-escaped colons inside of field names are now allowed.
940 - Targets (implicit and explicit), anonymous hyperlink references
941 and auto-numbered footnote references inside of substitution
942 definitions are now disallowed.
943 - Fixed bug: list items with blank first lines.
944 - Fixed bug: block quote attributions with indented second lines.
945 - Added East Asian double-width character support (Python 2.4 only).
947 * docutils/parsers/rst/tableparser.py:
949 - Added East Asian double-width character support (Python 2.4 only).
951 * docutils/parsers/rst/directives/body.py:
953 - Added the "container" directive.
955 * docutils/parsers/rst/directives/misc.py:
957 - Added the "default-role", "title", and "date" directives.
958 - Added standard data file syntax to the "include" directive.
959 - Added support for "class" directive content.
961 * docutils/parsers/rst/directives/images.py:
963 - Added ``indirect_reference_name`` support for images with a target
965 - Added support for image width and height units.
966 - Fixed bug with image "target" options.
968 * docutils/parsers/rst/directives/references.py:
970 - Added "class" attribute to "target-notes" directive, for
971 footnote_reference classes.
973 * docutils/parsers/rst/include/: Directory added to project; contains
974 standard data files for the "include" directive. Initial contents:
975 character entity substitution definition sets, and a set of
976 definitions for S5/HTML presentations.
978 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
979 mappings by David Goodger.
981 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
982 Simplified Chinese mappings by Panjunyong.
984 * docutils/readers/__init__.py:
986 - Added universal.Decorations and universal.ExposeInternals
987 transforms as default transforms for all readers.
988 - Added ``ReReader`` base class for readers that reread an existing
991 * docutils/readers/doctree.py: Added to project; a reader for existing
994 * docutils/transforms/frontmatter.py:
996 - Fixed the DocInfo transform to handle SVN-style expansion of the
998 - In ``DocInfo.extract_authors``, treat the contents of "authors"
1001 * docutils/transforms/misc.py:
1003 - Added misc.Transitions transform, extracted from
1004 universal.FinalChecks.
1006 * docutils/transforms/references.py:
1008 - Added references.DanglingReferences transform, extracted from
1009 universal.FinalChecks.
1010 - Fixed bug with doubly-indirect substitutions.
1011 - Added footnote_reference classes attribute to "TargetNotes".
1012 - Fixed bug with circular substitution definitions that put Docutils
1013 into an infinite loop.
1015 * docutils/transforms/universal.py:
1017 - Added universal.ExposeInternals transform, extracted from
1018 universal.FinalChecks.
1019 - Removed universal.FinalChecks transform (logic has been moved to
1020 several new transforms).
1021 - Fixed bug with the "expose_internals" setting and Text nodes
1022 (exposed by the "rawsource" internal attribute).
1023 - Added the universal.StripComments transform, implementation of the
1024 "strip_comments" setting.
1026 * docutils/transforms/writer_aux.py: Added to project; auxiliary
1027 transforms for writers.
1029 - Added ``Compound`` transform, which flattens compound paragraphs.
1031 * docutils/writers/: Several writer modules (html4css1.py) were
1032 converted into packages. Support modules and data files have been
1033 moved into the packages. The stylesheets for the HTML writers are
1034 now installed along with the code, the code knows where to find
1035 them, and the default is to use them (actually, to embed them).
1036 Some adjustments to configuration files may be necessary. The
1037 easiest way to obtain the new default behavior is to remove all
1038 settings whose name includes "stylesheet".
1040 * docutils/writers/__init__.py:
1042 - Added universal.Messages and universal.FilterMessages transforms
1043 as default transforms for all writers.
1044 - Added ``UnfilteredWriter`` base class for writers that pass the
1045 document tree on unchanged.
1047 * docutils/writers/docutils_xml.py:
1049 - Made ``xmlcharrefreplace`` the default output encoding error
1052 * docutils/writers/html4css1/:
1054 - Added support for image width and height units.
1055 - Made ``xmlcharrefreplace`` the default output encoding error
1057 - Made ``--embed-stylesheet`` the default rather than
1058 ``--link-stylesheet``.
1059 - Moved "id" attribute from container (section etc.) to title's <a>
1060 tag, to be on the same tag as "name".
1061 (!!! To be reverted in Docutils 0.5.)
1062 - Added vertical space between fields of field lists.
1063 - Added ``--compact-field-lists`` option to remove vertical space in
1065 - Made cloaking of email addresses with ``--cloak-email-addresses``
1067 - Fixed support for centered images.
1068 - Added support for class="compact" & class="open" lists.
1070 * docutils/writers/latex2e/:
1072 - Underscores in citekeys are no longer escaped.
1074 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1075 mapping of Unicode characters to LaTeX equivalents.
1077 * docutils/writers/s5_html/: Package added to project; writer for
1078 S5/HTML slide shows.
1080 * docs/dev/distributing.txt: Added to project; guide for distributors
1081 (package maintainers).
1083 * docs/dev/hacking.txt: Added to project; guide for developers.
1085 * docs/ref/doctree.txt:
1087 - Updated for plural attributes "classes", "ids", "names",
1089 - Added the "container" element.
1091 * docs/ref/docutils.dtd:
1093 - Updated for plural attributes "classes", "ids", "names",
1096 * docs/user/emacs.txt: Added to project; a document about Emacs
1097 support for reStructuredText and Docutils.
1099 * docs/user/links.txt: Added to project; lists of Docutils-related
1102 * docs/user/mailing-lists.txt: Added to project; information about
1103 Docutils-related mailing lists and how to access them.
1105 * docs/user/slide-shows.txt: Added to project; example of and docs for
1106 the S5/HTML writer (``rst2s5.py`` front end).
1108 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1109 Files", added to project.
1111 * test/coverage.sh: Added to project; test coverage script.
1113 * test/DocutilsTestSupport.py:
1115 - Added support for specifying runtime settings at the suite level.
1117 * test/test_functional.py:
1119 - Added the ``clear_output_directory`` function.
1120 - Added support for ``_test_more`` functions in functional test
1123 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1125 * tools/rstpep2html.py: Renamed from pep.py.
1127 * tools/dev/create_unimap.py: Added to project; script to create the
1128 docutils/writers/unimap_latex.py mapping file.
1130 * tools/dev/profile_docutils.py: Added to project; profiler script.
1132 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1134 * tools/editors/emacs/restructuredtext.el,
1135 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1136 Removed from project; the functionality is now contained in rst.el.
1138 * tools/editors/emacs/rst.el: Added to project. Added many features
1139 and fixed many bugs. See docs/user/emacs.txt for details.
1141 * tools/stylesheets: Removed from project. Stylesheets have been
1142 renamed and moved into writer packages.
1145 Release 0.3.9 (2005-05-26)
1146 ==========================
1150 - Eliminated and replaced all uses of the old string attributes
1151 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1152 new list attributes ``ids``, ``names``, ``dupnames`` and
1153 ``classes`` throughout the whole source tree.
1157 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1158 allowing for easier debugging.
1159 - In ``Publisher.publish()``, expanded the generic top-level
1162 * docutils/examples.py:
1164 - Added ``internals`` function for exploration.
1168 - Fixed ``Input.decode`` method to apply heuristics only if no
1169 encoding is explicitly given, and to provide better reporting of
1171 - The ``Input.decode`` method now removes byte order marks (BOMs)
1174 * docutils/nodes.py:
1176 - ``image`` element class changed to subclass of Element, not
1177 TextElement (it's an empty element, and cannot contain text).
1178 - Added ``attr_defaults`` dictionary for default attribute values.
1179 - Added empty list as default value for the following attributes:
1180 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1181 - Added ``document.decoration`` attribute,
1182 ``document.get_decoration`` method, and ``decoration.get_header``
1183 & ``.get_footer`` methods.
1184 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1187 * docutils/utils.py:
1189 - Removed ``docutils.utils.Reporter.categories``,
1190 ``docutils.utils.ConditionSet``, and all references to them, to
1191 simplify error reporting.
1193 * docutils/languages/nl.py: Added to project; Dutch mappings by
1196 * docutils/parsers/rst/__init__.py:
1198 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1200 * docutils/parsers/rst/states.py:
1202 - Added check for escaped at-mark to prevent email address recognition.
1203 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1205 - Allowed whitespace in paths and URLs.
1206 - Added auto-enumerated list items.
1207 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1209 - Added support for table stub columns.
1211 * docutils/parsers/rst/directives/__init__.py:
1213 - Allowed whitespace in paths (``path`` function).
1214 - Added ``uri`` directive option conversion function.
1216 * docutils/parsers/rst/directives/body.py:
1218 - Fixed illegal context bug with "topic" directive (allowed within
1219 sidebars; not within body elements).
1221 * docutils/parsers/rst/directives/images.py:
1223 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1224 - Added support for the ``file_insertion_enabled`` setting in the
1225 "figure" directive (disables "figwidth" option).
1226 - "image" directive: added checks for valid values of "align" option,
1227 depending on context. "figure" directive: added specialized
1228 "align" option and attribute on "figure" element.
1229 - Made ":figwidth: image" option of "figure" directive work again.
1230 - Fixed bug with reference names containing uppercase letters
1231 (e.g. ``Name_``) in "target" option of "image" directive.
1233 * docutils/parsers/rst/directives/misc.py:
1235 - Fixed "include" and "raw" directives to catch text decoding
1237 - Allowed whitespace in "include" & "raw" directive paths.
1238 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1239 settings in "include" & "raw" directives.
1241 * docutils/parsers/rst/directives/parts.py:
1243 - Added "header" & "footer" directives.
1244 - Fixed illegal context bug with "contents" directive (topics
1245 allowed within sidebars; not within body elements).
1247 * docutils/parsers/rst/directives/tables.py:
1249 - Added "list-table" directive.
1250 - Caught empty CSV table bug.
1251 - Added support for the ``file_insertion_enabled`` setting in the
1252 "csv-table" directive.
1253 - Added ``stub-columns`` option to "csv-table" and "list-table"
1256 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1257 mappings by Martijn Pieters.
1259 * docutils/readers/standalone.py:
1261 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1262 options to activate or deactivate the SectSubTitle transform.
1264 * docutils/transforms/frontmatter.py:
1266 - Added SectSubTitle transform to promote titles of lone
1267 subsections to subtitles.
1269 * docutils/transforms/references.py:
1271 - Fixed mislocated internal targets bug, by propagating internal
1272 targets to the next node, making use of the newly added support
1273 for multiple names and IDs.
1274 - Fixed duplicate footnote label bug.
1275 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1278 * docutils/writers/html4css1.py:
1280 - Fixed unencoded stylesheet reference bug (characters like "&" in
1281 stylesheet references).
1282 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1284 - Added support for multiple IDs per node by creating empty ``span``
1286 - Added the ``field_name_limit`` & ``option_limit`` settings &
1288 - Added support for table stub columns.
1289 - Added support for the ``align`` attribute on ``figure`` elements.
1290 - Added the ``cloak_email_addresses`` setting & support.
1291 - Added ``html_prolog``, ``html_head``, ``html_body``,
1292 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1293 ``docutils.core.publish_parts``.
1294 - Added support for section subtitles.
1296 * docutils/writers/latex2e.py:
1298 - Fixed tables starting with more than one multirow cell.
1299 - Improved --use-latex-docinfo so that organization/contact/address
1300 fields are lumped with the last author field and appear on the
1302 - Made sure the titlepage is always shown with --use-latex-docinfo,
1303 even if the document has no title.
1304 - Made sure that latex doesn't fill in today's date if no date field
1306 - Added support for section subtitles.
1308 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1309 (under development).
1311 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1313 * docs/api/publisher.txt:
1315 - Added "``publish_parts`` Details" section.
1317 * docutils/dev/repository.txt: Added to project; information about the
1318 Docutils Subversion repository.
1320 * docs/ref/docutils.dtd:
1322 - Added a ``stub`` attribute to the ``colspec`` element via the
1323 ``tbl.colspec.att`` parameter entity.
1324 - Allowed topic elements within sidebars
1325 - Added an ``align`` attribute to the ``figure`` element.
1327 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1331 Release 0.3.7 (2004-12-24)
1332 ==========================
1334 * docutils/frontend.py:
1336 - Added options: --input-encoding-error-handler,
1337 --record-dependencies, --leave-footnote-reference-space,
1339 - Added command-line and config file support for "overrides" setting
1344 - Added support for input encoding error handler.
1346 * docutils/nodes.py:
1348 - Added dispatch_visit and dispatch_departure methods to
1349 NodeVisitor; useful as a hook for Visitors.
1350 - Changed structure of ``line_block``; added ``line``.
1351 - Added ``compound`` node class.
1352 - Added a mechanism for Visitors to transitionally ignore new node
1355 * docutils/utils.py:
1357 - Moved ``escape2null`` and ``unescape`` functions from
1358 docutils/parsers/rst/states.py.
1360 * docutils/parsers/rst/roles.py:
1363 - Changed role function API: the "text" parameter now takes
1364 null-escaped interpreted text content.
1366 * docutils/parsers/rst/states.py:
1368 - Fixed bug where a "role" directive in a nested parse would crash
1369 the parser; the state machine's "language" attribute was not being
1371 - Added support for line block syntax.
1372 - Fixed directive parsing bug: argument-less directives didn't
1373 notice that arguments were present.
1374 - Removed error checking for transitions.
1375 - Added support for multiple classifiers in definition list items.
1376 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1377 - Changed role function API: the "text" parameter now takes
1378 null-escaped interpreted text content.
1379 - Empty sections and documents are allowed now.
1381 * docutils/parsers/rst/directives/__init__.py:
1383 - Added ``encoding`` directive option conversion function.
1384 - Allow multiple class names in class_option conversion function.
1386 * docutils/parsers/rst/directives/body.py:
1388 - Converted the line-block directive to use the new structure.
1389 - Extracted the old line-block functionality to the ``block``
1390 function (still used).
1391 - Added ``compound`` directive (thanks to Lea Wiemann).
1393 * docutils/parsers/rst/directives/misc.py:
1395 - Added "encoding" option to "include" and "raw" directives.
1396 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1397 - Allow multiple class names in the "class" directive.
1399 * docutils/parsers/rst/directives/parts.py:
1401 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1402 options. Thanks to Lele Gaifax.
1404 * docutils/parsers/rst/directives/tables.py:
1406 - Added "encoding" directive to "csv-table" directive.
1407 - Added workaround for lack of Unicode support in csv.py, for
1408 non-ASCII CSV input.
1410 * docutils/transforms/misc.py:
1412 - Fixed bug when multiple "class" directives are applied to a single
1414 - Enabled multiple format names for "raw" directive.
1416 * docutils/transforms/references.py:
1418 - Added support for trimming whitespace from beside substitution
1421 * docutils/transforms/universal.py:
1423 - FinalChecks now checks for illegal transitions and moves
1424 transitions between sections.
1426 * docutils/writers/html4css1.py:
1428 - HTMLTranslator.encode now converts U+00A0 to " ".
1429 - "stylesheet" and "stylesheet_path" settings are now mutually
1431 - Added support for the new line_block/line structure.
1432 - --footnote-references now overrides
1433 --trim-footnote-reference-space, if applicable.
1434 - Added support for ``compound`` elements.
1435 - Enabled multiple format names for "raw" directive.
1436 - ``<p>`` tags of a paragraph which is the only visible child of the
1437 document node are no longer stripped.
1438 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1439 new method ``should_be_compact_paragraph()``.
1440 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1442 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1443 the output if they have their ``class`` attribute set.
1444 - The whole document is now surrounded by a ``<div
1445 class="document">`` element.
1446 - Body-level images are now wrapped by their own ``<div>`` elements,
1447 with image classes copied to the wrapper, and for images which
1448 have the ``:align:`` option set, the surrounding ``<div>`` now
1449 receives a class attribute (like ``class="align-left"``).
1451 * docutils/writers/latex2e.py:
1453 - no newline after depart_term.
1454 - Added translations for some Unicode quotes.
1455 - Added option "font-encoding", made package AE the default.
1456 - "stylesheet" and "stylesheet_path" settings are now mutually
1458 - --footnote-references now overrides
1459 --trim-footnote-reference-space, if applicable.
1460 - The footnote label style now matches the footnote reference style
1461 ("brackets" or "superscript").
1462 - Added support for ``compound`` elements.
1463 - Enabled multiple format names for "raw" directive.
1465 * docs/ref/docutils.dtd:
1467 - Changed structure of the ``line_block`` element; added ``line``.
1468 - Added ``compound`` element.
1469 - Added "ltrim" and "rtrim" attributes to
1470 ``substitution_definition`` element.
1471 - Enabled multiple format names for ``raw`` element.
1472 - Enabled multiple classifiers in ``definition_list_item`` elements.
1474 * docs/ref/rst/directives.txt
1476 - Marked "line-block" as deprecated.
1477 - "Class" directive now allows multiple class names.
1478 - Added "Rationale for Class Attribute Value Conversion".
1479 - Added warning about "raw" overuse/abuse.
1481 * docs/ref/rst/restructuredtext.txt:
1483 - Added syntax for line blocks.
1484 - Definition list items may have multiple classifiers.
1486 * docs/ref/rst/roles.txt:
1490 * tools/stylesheets/default.css:
1492 - Added support for the new line_block structure.
1493 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1496 Release 0.3.5 (2004-07-29)
1497 ==========================
1501 * _`Documentation cleanup/reorganization`.
1503 - Created new subdirectories of docs/:
1505 * ``docs/user/``: introductory/tutorial material for end-users
1506 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1507 * ``docs/api/``: API reference material for client-developers
1508 * ``docs/ref/``: reference material for all groups
1509 * ``docs/howto/``: for component-developers and core-developers
1510 * ``docs/peps/``: Python Enhancement Proposals
1512 - Moved ``docs/*`` to ``docs/user/``.
1513 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1514 ``spec/`` to ``docs/dev``.
1515 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1516 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1517 - Moved ``alternatives.txt``, and ``problems.txt`` from
1518 ``spec/rst/`` to ``docs/dev/rst/``.
1519 - Moved ``reStructuredText.txt``, ``directives.txt``,
1520 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1521 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1522 ``roles.txt``, ``reStructuredText.txt`` to
1523 ``restructuredtext.txt``.
1524 - Moved ``spec/howto/`` to ``docs/howto``.
1526 In order to keep the CVS history of moved files, we supplied
1527 SourceForge with a `script for modifying the Docutils CVS
1530 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1532 After running the cleanup script:
1534 - Added ``docs/index.txt``.
1535 - Added a ``.htaccess`` file to the ``web`` module, containing
1536 redirects for all old paths to new paths. They'll preserve
1537 fragments (the "#name" part of a URL), and won't clutter up the
1538 file system, and will correct the URL in the user's browser.
1539 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1540 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1541 the "To Do" list itself in ``docs/dev/todo.txt``.
1542 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1543 section of ``docs/dev/todo.txt``.
1544 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1545 - Added "How To Report Bugs" to ``BUGS.txt``.
1546 - Went through all the sources and docs (including under web/) and
1547 updated links. Mostly done by Lea Wiemann; thanks Lea!
1548 (Still need to update links in the sandboxes.)
1552 * BUGS.txt: Added to project.
1554 * THANKS.txt: Added to project.
1556 * docutils/__init__.py:
1558 - 0.3.4: Post-release.
1562 - Added special error handling & advice for UnicodeEncodeError.
1563 - Refactored Publisher.publish (simplified exception handling &
1564 extracted debug dumps).
1565 - Renamed "enable_exit" parameter of convenience functions to
1566 "enable_exit_status".
1567 - Enabled traceback (exception propagation) by default in
1568 programmatic convenience functions.
1569 - Now publish_file and publish_cmdline convenience functions return
1570 the encoded string results in addition to their regular I/O.
1571 - Extracted common code from publish_file, publish_string, and
1572 publish_parts, into new publish_programmatically. Extracted
1573 settings code to ``Publisher.process_programmatic_settings``.
1574 - In Publisher.publish, disabled ``settings_overrides`` when
1575 ``settings`` is supplied; redundant.
1577 * docutils/frontend.py:
1579 - Added help text for "--output-encoding-error-handler" and
1580 "--error-encoding-error-handler".
1581 - Renamed "--exit" to "--exit-status".
1582 - Simplified default-setting code.
1584 * docutils/parsers/rst/__init__.py:
1586 - Added "--pep-base-url" and "--rfc-base-url" options.
1588 * docutils/parsers/rst/states.py:
1590 - Made URI recognition more aggressive and intelligent.
1592 * docutils/parsers/rst/directives/__init__.py:
1594 - Added several directive option conversion functions.
1596 * docutils/parsers/rst/directives/body.py:
1598 - Moved "table" directive to tables.py.
1600 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1603 * docutils/writers/latex2e.py:
1605 - Added "--table-style=(standard|booktabs|nolines)"
1606 - figures get "here" option (LaTeX per default puts them at bottom),
1607 and figure content is centered.
1608 - Rowspan support for tables.
1609 - Fix: admonition titles before first section.
1610 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1611 - Replave ``_`` in literal by an underlined blank, because it has the correct
1613 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1614 - A few unicode replacements, if output_encoding != utf
1615 - Add "--graphicx-option".
1616 - Indent literal-blocks.
1617 - Fix: omit ``\maketitle`` when there is no document title.
1619 * docs/index.txt: "Docutils Project Documentation Overview", added to
1622 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1623 Tool", added to project.
1625 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1627 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1629 * docs/dev/policies.txt: Added to project (extracted from
1630 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1632 * docs/dev/release.txt: Added to project (extracted from
1633 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1635 * docs/dev/testing.txt: Added to project.
1637 * docs/dev/website.txt: Added to project (extracted from
1638 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1640 * docs/ref/rst/directives.txt:
1642 - Added directives: "table", "csv-table".
1644 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1645 added to project. 1 page for syntax, and a 1 page reference for
1646 directives and roles. Source text to be used as-is; not meant to be
1649 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1650 with a change of title.
1652 * test/functional/, contents, and test/test_functional.py: Added to
1655 * tools/buildhtml.py: Fixed bug with config file handling.
1657 * tools/html.py: Removed from project (duplicate of rst2html.py).
1659 * tools/pep2html.py: Removed from project (duplicate of Python's
1660 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1661 Docutils-related PEPs in docs/peps/).
1663 * tools/rst2pseudoxml.py: Renamed from publish.py.
1665 * tools/rst2xml.py: Renamed from docutils-xml.py.
1667 * tools/test.txt: Removed from project; moved to
1668 docs/user/rst/demo.txt.
1670 * setup.py: Now also installs ``rst2latex.py``.
1673 Release 0.3.3 (2004-05-09)
1674 ==========================
1676 * docutils/__init__.py:
1678 - 0.3.1: Reorganized config file format (multiple sections); see
1680 - Added unknown_reference_resolvers attribute to TransformSpec.
1681 - 0.3.2: Interpreted text reorganization.
1686 - Catch system messages to stop tracebacks from parsing errors.
1687 - Catch exceptions during processing report & exit without
1688 tracebacks, except when "--traceback" used.
1689 - Reordered components for OptionParser; application comes last.
1690 - Added "config_section" parameter to several methods and functions,
1691 allowing front ends to easily specify their config file sections.
1692 - Added publish_parts convenience function to allow access to individual
1693 parts of a document.
1695 * docutils/examples.py: Added to project; practical examples of
1696 Docutils client code, to be used as-is or as models for variations.
1698 * docutils/frontend.py:
1700 - Added "--traceback" & "--no-traceback" options ("traceback"
1702 - Implemented support for config file reorganization:
1703 ``standard_config_files`` moved from ``ConfigParser`` to
1704 ``OptionParser``; added
1705 ``OptionParser.get_config_file_settings()`` and
1706 ``.get_standard_config_settings()``; support for old "[options]"
1707 section (with deprecation warning) and mapping from old to new
1709 - Reimplemented setting validation.
1710 - Enabled flexible boolean values: yes/no, true/false, on/off.
1711 - Added ``Values``, a subclass of ``optparse.Values``, with support
1712 for list setting attributes.
1713 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1714 thanks to Beni Cherniavsky.
1715 - Added "--no-section-numbering" option.
1719 - Catch IOErrors when opening source & destination files, report &
1720 exit without tracebacks. Added ``handle_io_errors`` parameter to
1721 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1723 * docutils/nodes.py:
1725 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1726 method definitions (via ``exec``) to dynamic assignments (via
1727 ``setattr``); thanks to Roman Suzi.
1728 - Encapsulated visitor dynamic assignments in a function; thanks to
1730 - Added indirect_reference_name attribute to the Targetable
1731 class. This attribute holds the whitespace_normalized_name
1732 (contains mixed case) of a target.
1734 * docutils/statemachine.py:
1736 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1737 - Added ``StringList.get_2D_block``.
1739 * docutils/utils.py:
1741 - Added "level" attribute to SystemMessage exceptions.
1743 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1746 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1749 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1750 Marcelo Huerta San Martin.
1752 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1753 mappings by Lalo Martins.
1755 * docutils/languages/ru.py: Added to project; Russian mappings by
1758 * docutils/parsers/rst/roles.py: Added to project. Contains
1759 interpreted text role functions, a registry for interpreted text
1760 roles, and an API for adding to and retrieving from the registry.
1761 Contributed by Edward Loper.
1763 * docutils/parsers/rst/states.py:
1765 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1766 - Allowed true em-dash character and "---" as block quote
1768 - Added support for <angle-bracketed> complex option arguments
1770 - Fixed handling of backslashes in substitution definitions.
1771 - Fixed off-by-1 error with extra whitespace after substitution
1772 definition directive.
1773 - Added inline markup parsing to field lists' field names.
1774 - Added support for quoted (and unindented) literal blocks.
1775 Driven in part by a bribe from Frank Siebenlist (thanks!).
1776 - Parser now handles escapes in URIs correctly.
1777 - Made embedded-URIs' reference text omittable. Idea from Beni
1779 - Refactored explicit target processing code.
1780 - Added name attribute to references containing the reference name only
1781 through whitespace_normalize_name (no case changes).
1782 - parse_target no longer returns the refname after going through
1783 normalize_name. This is now handled in make_target.
1784 - Fixed bug relating to role-less interpreted text in non-English
1786 - Reorganized interpreted text processing; moved code into the new
1787 roles.py module. Contributed by Edward Loper.
1788 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1789 ``parse_directive_block``.
1791 * docutils/parsers/rst/tableparser.py:
1793 - Reworked for ``StringList``, to support "include" directives in
1796 * docutils/parsers/rst/directives/__init__.py:
1798 - Renamed ``unchanged()`` directive option conversion function to
1799 ``unchanged_required``, and added a new ``unchanged``.
1800 - Catch unicode value too high error; fixes bug 781766.
1801 - Beefed up directive error reporting.
1803 * docutils/parsers/rst/directives/body.py:
1805 - Added basic "table" directive.
1807 * docutils/parsers/rst/directives/images.py:
1809 - Added "target" option to "image" directive.
1810 - Added name attribute to references containing the reference name only
1811 through whitespace_normalize_name (no case changes).
1813 * docutils/parsers/rst/directives/misc.py:
1815 - Isolated the import of the ``urllib2`` module; was causing
1816 problems on SourceForge (``libssl.so.2`` unavailable?).
1817 - Added the "role" directive for declaring custom interpreted text
1820 * docutils/parsers/rst/directives/parts.py:
1822 - The "contents" directive does more work up-front, creating the
1823 "topic" and "title", and leaving the "pending" node for the
1824 transform. Allows earlier reference resolution; fixes subtle bug.
1826 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1827 mappings by Jannie Hofmeyr.
1829 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1830 mappings by Marek Blaha.
1832 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1833 mappings by Marcelo Huerta San Martin.
1835 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1836 Portuguese mappings by Lalo Martins.
1838 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1839 mappings by Roman Suzi.
1841 * docutils/transforms/parts.py:
1843 - The "contents" directive does more work up-front, creating the
1844 "topic" and "title", and leaving the "pending" node for the
1845 transform. Allows earlier reference resolution; fixes subtle bug.
1846 - Added support for disabling of section numbering.
1848 * docutils/transforms/references.py:
1850 - Verifying that external targets are truly targets and not indirect
1851 references. This is because we are now adding a "name" attribute to
1852 references in addition to targets. Note sure if this is correct!
1853 - Added code to hook into the unknown_reference_resolvers list for a
1854 transformer in resolve_indirect_target. This allows the
1855 unknown_reference_resolvers to keep around indirect targets which
1856 docutils doesn't know about.
1857 - Added specific error message for duplicate targets.
1859 * docutils/transforms/universal.py:
1861 - Added FilterMessages transform (removes system messages below the
1862 verbosity threshold).
1863 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1864 to FinalCheckVisitor for application-specific handling of
1865 unresolvable references.
1866 - Added specific error message for duplicate targets.
1868 * docutils/writers/__init__.py:
1870 - Added assemble_parts method to the Writer class to allow for
1871 access to a documents individual parts.
1872 - Documented & set default for ``Writer.output`` attribute.
1874 * docutils/writers/html4css1.py:
1876 - Fixed unicode handling of attribute values (bug 760673).
1877 - Prevent duplication of "class" attribute values (bug report from
1879 - Improved table grid/border handling (prompted by report from Bob
1881 - Added support for table titles.
1882 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1884 - Added functionality to keep track of individual parts of a document
1885 and store them in a dictionary as the "parts" attribute of the writer.
1886 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1887 - Added proper support for the "scale" attribute of the "image"
1888 element. Contributed by Brent Cook.
1889 - Added ``--initial-header-level`` option.
1890 - Fixed bug: the body_pre_docinfo segment depended on there being a
1891 docinfo; if no docinfo, the document title was incorporated into
1892 the body segment. Adversely affected the publish_parts interface.
1894 * docutils/writers/latex2e.py:
1896 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1897 about a missing file.
1898 - Added options and support: ``--compound-enumerators``,
1899 ``--section-prefix-for-enumerators``, and
1900 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1902 - Added option ``--use-verbatim-when-possible``, to avoid
1903 problematic characters (eg, '~' in italian) in literal blocks.
1904 - It's now possible to use four section levels in the `book` and
1905 `report` LaTeX classes. The default `article` class still has
1908 * docs/config.txt: "Docutils Configuration Files", added to project.
1909 Moved config file entry descriptions from tools.txt.
1913 - Moved config file entry descriptions to config.txt.
1915 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1918 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1919 Text Roles", added to project.
1921 * spec/rst/reStructuredText.txt:
1923 - Added description of support for <angle-bracketed> complex option
1924 arguments to option lists.
1925 - Added subsections for indented and quoted literal blocks.
1927 * test: Continually adding & updating tests.
1929 - Added test/test_settings.py & test/data/config_*.txt support
1931 - Added test/test_writers/test_htmlfragment.py.
1933 * test/DocutilsTestSupport.py:
1935 - Refactored LaTeX publisher test suite/case class names to make
1936 testing other writers easier.
1937 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1938 to test the processing of HTML fragments which use the new
1939 publish_parts convenience function.
1941 * tools/buildhtml.py:
1943 - Added support for the "--prune" option.
1944 - Removed dependency on pep2html.py; plaintext PEPs no longer
1947 * tools/docutils.conf:
1949 - Updated for configuration file reorganization.
1951 * tools/rst2html.py:
1953 - copied from tools/html.py
1957 - added a 'scripts' section to configuration
1958 - added 'tools/rst2html.py' to the scripts section
1961 Release 0.3 (2003-06-24)
1962 ========================
1966 * Renamed "attribute" to "option" for directives/extensions.
1968 * Renamed transform method "transform" to "apply".
1970 * Renamed "options" to "settings" for runtime settings (as set by
1971 command-line options). Sometimes "option" (singular) became
1972 "settings" (plural). Some variations below:
1974 - document.options -> document.settings (stored in other objects as
1976 - option_spec -> settings_spec (not directives though)
1977 - OptionSpec -> SettingsSpec
1978 - cmdline_options -> settings_spec
1979 - relative_path_options -> relative_path_settings
1980 - option_default_overrides -> settings_default_overrides
1981 - Publisher.set_options -> Publisher.get_settings
1985 * COPYING.txt: Added "Public Domain Dedication".
1987 * FAQ.txt: Frequently asked questions, added to project.
1991 - Updated with PyPI Trove classifiers.
1992 - Conditional installation of third-party modules.
1994 * docutils/__init__.py:
1996 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1997 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1998 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1999 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
2000 option and its effect on the PEP template & writer.
2001 - Bumped version to 0.2.4 due to changes to the PEP template &
2003 - Bumped version to 0.2.5 to reflect changes to Reporter output.
2004 - Added ``TransformSpec`` class for new transform system.
2005 - Bumped version to 0.2.6 for API changes (renaming).
2006 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
2007 convenience functions.
2008 - Added ``Component.component_type`` attribute.
2009 - Bumped version to 0.2.8 because of the internal parser switch from
2010 plain lists to the docutils.statemachine.StringList objects.
2011 - Bumped version to 0.2.9 because of the frontend.py API changes.
2012 - Bumped version to 0.2.10 due to changes to the project layout
2013 (third-party modules removed from the "docutils" package), and
2014 signature changes in ``io.Input``/``io.Output``.
2015 - Changed version to 0.3.0 for release.
2019 - Made ``publish()`` a bit more convenient.
2020 - Generalized ``Publisher.set_io``.
2021 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
2022 parameters; improved its docstring.
2023 - Added ``publish_file()`` and ``publish_string()``.
2024 - Factored ``Publisher.set_source()`` and ``.set_destination()``
2026 - Added support for "--dump-pseudo-xml", "--dump-settings", and
2027 "--dump-transforms" hidden options.
2028 - Added ``Publisher.apply_transforms()`` method.
2029 - Added ``Publisher.set_components()`` method; support for
2030 ``publish_*()`` conveninece functions.
2031 - Moved config file processing to docutils/frontend.py.
2032 - Added support for exit status ("exit_level" setting &
2033 ``enable_exit`` parameter for Publisher.publish() and convenience
2036 * docutils/frontend.py:
2038 - Check for & exit on identical source & destination paths.
2039 - Fixed bug with absolute paths & "--config".
2040 - Set non-command-line defaults in ``OptionParser.__init__()``:
2041 ``_source`` & ``_destination``.
2042 - Distributed ``relative_path_settings`` to components; updated
2043 ``OptionParser.populate_from_components()`` to combine it all.
2044 - Require list of keys in ``make_paths_absolute`` (was implicit in
2045 global ``relative_path_settings``).
2046 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
2047 "--dump-settings", and "--dump-transforms" hidden options.
2048 - Removed nasty internals-fiddling ``ConfigParser.get_section``
2049 code, replaced with correct code.
2050 - Added validation functionality for config files.
2051 - Added "--error-encoding" option/setting, "_disable_config"
2053 - Added encoding validation; updated "--input-encoding" and
2054 "--output-encoding"; added "--error-encoding-error-handler" and
2055 "--output-encoding-error-handler".
2056 - Moved config file processing from docutils/core.py.
2057 - Updated ``OptionParser.populate_from_components`` to handle new
2058 ``SettingsSpec.settings_defaults`` dict.
2059 - Added support for "-" => stdin/stdout.
2060 - Added "exit_level" setting ("--exit" option).
2064 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
2065 - Added automatic closing to ``FileInput`` and ``FileOutput``.
2066 - Delayed opening of ``FileOutput`` file until ``write()`` called.
2067 - ``FileOutput.write()`` now returns the encoded output string.
2068 - Try to get path/stream name automatically in ``FileInput`` &
2070 - Added defaults for source & destination paths.
2071 - Allow for Unicode I/O with an explicit "unicode" encoding.
2072 - Added ``Output.encode()``.
2073 - Removed dependency on runtime settings; pass encoding directly.
2074 - Recognize Unicode strings in ``Input.decode()``.
2075 - Added support for output encoding error handlers.
2077 * docutils/nodes.py:
2079 - Added "Invisible" element category class.
2080 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2081 modification during a traversal.
2082 - Added element classes: ``line_block``, ``generated``, ``address``,
2083 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2084 ``superscript``, ``subscript``, ``inline``
2085 - Added support for lists of nodes to ``Element.insert()``.
2086 - Fixed parent linking in ``Element.replace()``.
2087 - Added new abstract superclass ``FixedTextElement``; adds
2088 "xml:space" attribute.
2089 - Added support for "line" attribute of ``system_message`` nodes.
2090 - Added support for the observer pattern from ``utils.Reporter``.
2091 Added ``parse_messages`` and ``transform_messages`` attributes to
2092 ``document``, removed ``messages``. Added ``note_parse_message``
2093 and ``note_transform_message`` methods.
2094 - Added support for improved diagnostics:
2096 - Added "document", "source", and "line" internal attributes to
2097 ``Node``, set by ``Node.setup_child()``.
2098 - Converted variations on ``node.parent = self`` to
2099 ``self.setup_child(node)``.
2100 - Added ``document.current_source`` & ``.current_line``
2101 attributes, and ``.note_source`` observer method.
2102 - Changed "system_message" output to GNU-Tools format.
2104 - Added a "rawsource" attribute to the ``Text`` class, for text
2105 before backslash-escape resolution.
2106 - Support for new transform system.
2107 - Reworked ``pending`` element.
2108 - Fixed XML DOM bug (SF #660611).
2109 - Removed the ``interpeted`` element class and added
2110 ``title_reference``, ``abbreviation``, ``acronym``.
2111 - Made substitutions case-sensitive-but-forgiving; moved some code
2113 - Fixed Unicode bug on element attributes (report: William Dode).
2115 * docutils/optik.py: Removed from project; replaced with
2116 extras/optparse.py and extras/textwrap.py. These will be installed
2117 only if they're not already present in the Python installation.
2119 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2120 only if it's not already present in the Python installation.
2122 * docutils/statemachine.py:
2124 - Factored out ``State.add_initial_transitions()`` so it can be
2126 - Converted whitespace-specific "blank" and "indent" transitions
2127 from special-case code to ordinary transitions: removed
2128 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2129 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2130 ``ws_initial_transitions`` attributes.
2131 - Removed ``State.match_transition()`` after merging it into
2133 - Added ``StateCorrection`` exception.
2134 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2135 (moved ``TransitionCorrection`` support there too.)
2136 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2137 ``EOFError`` instead of ``IndexError``.
2138 - Added ``State.no_match`` method.
2139 - Added support for the Observer pattern, triggered by input line
2141 - Added ``strip_top`` parameter to
2142 ``StateMachineWS.get_first_known_indented``.
2143 - Made ``context`` a parameter to ``StateMachine.run()``.
2144 - Added ``ViewList`` & ``StringList`` classes;
2145 ``extract_indented()`` becomes ``StringList.get_indented()``.
2146 - Added ``StateMachine.insert_input()``.
2147 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2148 thanks to) Fred Drake.
2150 * docutils/utils.py:
2152 - Added a ``source`` attribute to Reporter instances and
2153 ``system_message`` elements.
2154 - Added an observer pattern to ``utils.Reporter`` to keep track of
2156 - Fixed bugs in ``relative_path()``.
2157 - Added support for improved diagnostics.
2158 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2159 - Added support for encoding Reporter stderr output, and encoding
2161 - Reporter keeps track of the highest level system message yet
2164 * docutils/languages: Fixed bibliographic field language lookups.
2166 * docutils/languages/es.py: Added to project; Spanish mappings by
2167 Marcelo Huerta San Martin.
2169 * docutils/languages/fr.py: Added to project; French mappings by
2172 * docutils/languages/it.py: Added to project; Italian mappings by
2175 * docutils/languages/sk.py: Added to project; Slovak mappings by
2178 * docutils/parser/__init__.py:
2180 - Added ``Parser.finish_parse()`` method.
2182 * docutils/parser/rst/__init__.py:
2184 - Added options: "--pep-references", "--rfc-references",
2185 "--tab-width", "--trim-footnote-reference-space".
2187 * docutils/parsers/rst/states.py:
2189 - Changed "title under/overline too short" system messages from INFO
2190 to WARNING, and fixed its insertion location.
2191 - Fixed enumerated list item parsing to allow paragraphs & section
2192 titles to begin with enumerators.
2193 - Converted system messages to use the new "line" attribute.
2194 - Fixed a substitution reference edge case.
2195 - Added support for "--pep-references" and "--rfc-references"
2196 options; reworked ``Inliner`` code to make customization easier.
2197 - Removed field argument parsing.
2198 - Added support for short section title over/underlines.
2199 - Fixed "simple reference name" regexp to ignore text like
2200 "object.__method__"; not an anonymous reference.
2201 - Added support for improved diagnostics.
2202 - Reworked directive API, based on Dethe Elza's contribution. Added
2203 ``Body.parse_directive()``, ``.parse_directive_options()``,
2204 ``.parse_directive_arguments()`` methods.
2205 - Added ``ExtensionOptions`` class, to parse directive options
2206 without parsing field bodies. Factored
2207 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2208 ``ExtensionOptions``.
2209 - Improved definition list term/classifier parsing.
2210 - Added warnings for unknown directives.
2211 - Renamed ``Stuff`` to ``Struct``.
2212 - Now flagged as errors: transitions at the beginning or end of
2213 sections, empty sections (except title), and empty documents.
2214 - Updated for ``statemachine.StringList``.
2215 - Enabled recognition of schemeless email addresses in targets.
2216 - Added support for embedded URIs in hyperlink references.
2217 - Added backslash-escapes to inline markup end-string suffix.
2218 - Added support for correct interpreted text processing.
2219 - Fixed nested title parsing (topic, sidebar directives).
2220 - Added special processing of backslash-escaped whitespace (idea
2221 from David Abrahams).
2222 - Made substitutions case-sensitive-but-forgiving; moved some code
2223 to ``docutils.nodes``.
2224 - Added support for block quote attributions.
2225 - Added a kludge to work-around a conflict between the bubble-up
2226 parser strategy and short titles (<= 3 char-long over- &
2227 underlines). Fixes SF bug #738803 "infinite loop with multiple
2228 titles" submitted by Jason Diamond.
2229 - Added explicit interpreted text roles for standard inline markup:
2230 "emphasis", "strong", "literal".
2231 - Implemented "superscript" and "subscript" interpreted text roles.
2232 - Added initial support for "abbreviation" and "acronym" roles;
2234 - Added support for "--trim-footnote-reference-space" option.
2235 - Optional space before colons in directives & hyperlink targets.
2237 * docutils/parsers/rst/tableparser.py:
2239 - Fixed a bug that was producing unwanted empty rows in "simple"
2241 - Detect bad column spans in "simple" tables.
2243 * docutils/parsers/rst/directives: Updated all directive functions to
2246 * docutils/parsers/rst/directives/__init__.py:
2248 - Added ``flag()``, ``unchanged()``, ``path()``,
2249 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2250 directive option helper functions.
2251 - Added warnings for unknown directives.
2252 - Return ``None`` for missing directives.
2253 - Added ``register_directive()``, thanks to William Dode and Paul
2256 * docutils/parsers/rst/directives/admonitions.py:
2258 - Added "admonition" directive.
2260 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2261 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2262 "parsed-literal", "rubric", "epigraph", "highlights" and
2263 "pull-quote" directives.
2265 * docutils/parsers/rst/directives/images.py:
2267 - Added an "align" attribute to the "image" & "figure" directives
2268 (by Adam Chodorowski).
2269 - Added "class" option to "image", and "figclass" to "figure".
2271 * docutils/parsers/rst/directives/misc.py:
2273 - Added "include", "raw", and "replace" directives, courtesy of
2275 - Added "unicode" and "class" directives.
2277 * docutils/parsers/rst/directives/parts.py:
2279 - Added the "sectnum" directive; by Dmitry Jemerov.
2280 - Added "class" option to "contents" directive.
2282 * docutils/parsers/rst/directives/references.py: Added to project.
2283 Contains the "target-notes" directive.
2285 * docutils/parsers/rst/languages/__init__.py:
2287 - Return ``None`` from get_language() for missing language modules.
2289 * docutils/parsers/rst/languages/de.py: Added to project; German
2290 mappings by Engelbert Gruber.
2292 * docutils/parsers/rst/languages/en.py:
2294 - Added interpreted text roles mapping.
2296 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2297 mappings by Marcelo Huerta San Martin.
2299 * docutils/parsers/rst/languages/fr.py: Added to project; French
2300 mappings by William Dode.
2302 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2303 mappings by Nicola Larosa.
2305 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2306 mappings by Miroslav Vasko.
2308 * docutils/readers/__init__.py:
2310 - Added support for the observer pattern from ``utils.Reporter``, in
2311 ``Reader.parse`` and ``Reader.transform``.
2312 - Removed ``Reader.transform()`` method.
2313 - Added default parameter values to ``Reader.__init__()`` to make
2314 instantiation easier.
2315 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2317 * docutils/readers/pep.py:
2319 - Added the ``peps.TargetNotes`` transform to the Reader.
2320 - Removed PEP & RFC reference detection code; moved to
2321 parsers/rst/states.py as options (enabled here by default).
2322 - Added support for pre-acceptance PEPs (no PEP number yet).
2323 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2326 * docutils/readers/python: Python Source Reader subpackage added to
2327 project, including preliminary versions of:
2330 - moduleparser.py: Parser for Python modules.
2332 * docutils/transforms/__init__.py:
2334 - Added ``Transformer`` class and completed transform reform.
2335 - Added unknown_reference_resolvers list for each transformer. This list holds
2336 the list of functions provided by each component of the transformer that
2337 help resolve references.
2339 * docutils/transforms/frontmatter.py:
2341 - Improved support for generic fields.
2342 - Fixed bibliographic field language lookups.
2344 * docutils/transforms/misc.py: Added to project. Miscellaneous
2347 * docutils/transforms/parts.py:
2349 - Moved the "id" attribute from TOC list items to the references
2350 (``Contents.build_contents()``).
2351 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2352 - Added "class" attribute support to ``Contents``.
2354 * docutils/transforms/peps.py:
2356 - Added ``mask_email()`` function, updating to pep2html.py's
2358 - Linked "Content-Type: text/x-rst" to PEP 12.
2359 - Added the ``TargetNotes`` PEP-specific transform.
2360 - Added ``TargetNotes.cleanup_callback``.
2361 - Added title check to ``Headers``.
2363 * docutils/transforms/references.py:
2365 - Added the ``TargetNotes`` generic transform.
2366 - Split ``Hyperlinks`` into multiple transforms.
2367 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2368 - Added check for circular indirect references.
2369 - Made substitutions case-sensitive-but-forgiving.
2371 * docutils/transforms/universal.py:
2373 - Added support for the "--expose-internal-attributes" option.
2374 - Removed ``Pending`` transform classes & data.
2376 * docutils/writers/__init__.py:
2378 - Removed ``Writer.transform()`` method.
2380 * docutils/writers/docutils-xml.py:
2382 - Added XML and doctype declarations.
2383 - Added "--no-doctype" and "--no-xml-declaration" options.
2385 * docutils/writers/html4css1.py:
2387 - "name" attributes only on these tags: a, applet, form, frame,
2389 - Added "name" attribute to <a> in section titles for Netscape 4
2390 support (bug report: Pearu Peterson).
2391 - Fixed targets (names) on footnote, citation, topic title,
2392 problematic, and system_message nodes (for Netscape 4).
2393 - Changed field names from "<td>" to "<th>".
2394 - Added "@" to "@" encoding to thwart address harvesters.
2395 - Improved the vertical whitespace optimization; ignore "invisible"
2396 nodes (targets, comments, etc.).
2397 - Improved inline literals with ``<span class="pre">`` around chunks
2398 of text and `` `` for runs of spaces.
2399 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2400 ``self.docinfo`` segments.
2401 - Added support for "line_block", "address" elements.
2402 - Improved backlinks (footnotes & system_messages).
2403 - Improved system_message output.
2404 - Redefined "--stylesheet" as containing an invariant URL, used
2405 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2407 - Added "--footnote-references" option (superscript or brackets).
2408 - Added "--compact-lists" and "--no-compact-lists" options.
2409 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2410 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2411 - Improved field list rendering.
2412 - Added Docutils version to "generator" meta tag.
2413 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2414 - Improved layout of <pre> HTML source.
2415 - Fixed attribute typo on <colspec>.
2416 - Refined XML prologue.
2417 - Support for no stylesheet.
2418 - Removed "interpreted" element support.
2419 - Added support for "title_reference", "sidebar", "attribution",
2420 "rubric", and generic "admonition" elements.
2421 - Added "--attribution" option.
2422 - Added support for "inline", "subscript", "superscript" elements.
2423 - Added initial support for "abbreviation" and "acronym";
2426 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2430 - Double quotes in literal blocks (special treatment for de/ngerman).
2431 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2432 - Added "--attribution" option.
2433 - Right align attributions.
2435 * docutils/writers/pep_html.py:
2437 - Parameterized output encoding in PEP template.
2438 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2439 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2440 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2442 - Added an override on the "--footnote-references" option.
2443 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2444 - Added Docutils version to "generator" meta tag.
2445 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2449 - Added a "silent" setting for ``buildhtml.py``.
2450 - Added a "Getting Help" section.
2451 - Rearranged the structure.
2452 - Kept up to date, with new settings, command-line options etc.
2453 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2454 - Converted settings table into a definition list.
2456 * docs/rst/quickstart.txt:
2458 - Added a table of contents.
2459 - Added feedback information.
2460 - Added mention of minimum section title underline lengths.
2461 - Removed the 4-character minimum for section title underlines.
2463 * docs/rst/quickref.html:
2465 - Added a "Getting Help" section.
2466 - Added a style to make section title backlinks more subtle.
2467 - Added mention of minimum section title underline lengths.
2468 - Removed the 4-character minimum for section title underlines.
2470 * extras: Directory added to project; contains third-party modules
2471 that Docutils depends on (optparse, textwrap, roman). These are
2472 only installed if they're not already present.
2474 * licenses: Directory added to project; contains copies of license
2475 files for non-public-domain files.
2479 - Changed the focus. It's about DTD elements: structural
2480 relationships, semantics, and external (public) attributes. Not
2481 about the element class library.
2482 - Moved some implementation-specific stuff into ``docutils.nodes``
2484 - Wrote descriptions of all common attributes and parameter
2485 entities. Filled in introductory material.
2486 - Working through the element descriptions: 55 down, 37 to go.
2487 - Removed "Representation of Horizontal Rules" to
2488 spec/rst/alternatives.txt.
2490 * spec/docutils.dtd:
2492 - Added "generated" inline element.
2493 - Added "line_block" body element.
2494 - Added "auto" attribute to "title".
2495 - Changed content models of "literal_block" and "doctest_block" to
2497 - Added ``%number;`` attribute type parameter entity.
2498 - Changed ``%structural.elements;`` to ``%section.elements``.
2499 - Updated attribute types; made more specific.
2500 - Added "address" bibliographic element.
2501 - Added "line" attribute to ``system_message`` element.
2502 - Removed "field_argument" element; "field_name" may contain
2503 multiple words and whitespace.
2504 - Changed public identifier to docutils.sf.net.
2505 - Removed "interpreted" element; added "title_reference",
2506 "abbreviation", "acronym".
2507 - Removed "refuri" attribute from "footnote_reference" and
2508 "citation_reference".
2509 - Added "sidebar", "rubric", "attribution", "admonition",
2510 "superscript", "subscript", and "inline" elements.
2512 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2514 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2516 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2518 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2521 * spec/transforms.txt: Added to project.
2523 * spec/howto: Added subdirectory, for developer how-to docs.
2525 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2526 Elza, edited & extended by David Goodger.
2528 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2531 * spec/rst/alternatives.txt:
2533 - Added "Doctree Representation of Transitions" from
2535 - Updated "Inline External Targets" & closed the debate.
2536 - Added ideas for interpreted text syntax extensions.
2537 - Added "Nested Inline Markup" section.
2539 * spec/rst/directives.txt:
2541 - Added directives: "topic", "sectnum", "target-notes",
2542 "line-block", "parsed-literal", "include", "replace", "sidebar",
2543 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2545 - Formalized descriptions of directive details.
2546 - Added an "align" attribute to the "image" & "figure" directives
2547 (by Adam Chodorowski).
2548 - Added "class" options to "topic", "sidebar", "line-block",
2549 "parsed-literal", "contents", and "image"; and "figclass" to
2552 * spec/rst/interpreted.txt: Added to project. Descriptions of
2553 interpreted text roles.
2555 * spec/rst/introduction.txt:
2557 - Added pointers to material for new users.
2559 * spec/rst/reStructuredText.txt:
2561 - Disambiguated comments (just add a newline after the "::").
2562 - Updated enumerated list description; added a discussion of the
2563 second-line validity checking.
2564 - Updated directive description.
2565 - Added a note redirecting newbies to the user docs.
2566 - Expanded description of inline markup start-strings in non-markup
2568 - Removed field arguments and made field lists a generic construct.
2569 - Removed the 4-character minimum for section title underlines.
2570 - Clarified term/classifier delimiter & inline markup ambiguity
2572 - Added "Embedded URIs".
2573 - Updated "Interpreted Text" section.
2574 - Added "Character-Level Inline Markup" section.
2576 * test: Continually adding & updating tests.
2578 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2579 - Moved test/test_pep/ to test/test_readers/test_pep/.
2580 - Added test/test_readers/test_python/.
2581 - Added test/test_writers/ (Engelbert Gruber).
2585 - Made the ``locale.setlocale()`` calls in front ends
2588 * tools/buildhtml.py:
2590 - Added "--silent" option.
2591 - Fixed bug with absolute paths & "--config".
2592 - Updated for new I/O classes.
2593 - Added some exception handling.
2594 - Separated publishers' setting defaults; prevents interference.
2595 - Updated for new ``publish_file()`` convenience function.
2597 * tools/pep-html-template:
2599 - Allow for "--embed-stylesheet".
2600 - Added Docutils version to "generator" meta tag.
2601 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2602 - Conform to XHTML spec.
2604 * tools/pep2html.py:
2606 - Made ``argv`` a parameter to ``main()``.
2607 - Added support for "Content-Type:" header & arbitrary PEP formats.
2608 - Linked "Content-Type: text/plain" to PEP 9.
2609 - Files skipped (due to an error) are not pushed onto the server.
2610 - Updated for new I/O classes.
2611 - Added ``check_requirements()`` & ``pep_type_error()``.
2612 - Added some exception handling.
2613 - Updated for new ``publish_string()`` convenience function.
2614 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2616 * tools/quicktest.py:
2618 - Added "-V"/"--version" option.
2620 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2622 * tools/unicode2rstsubs.py: Added to project. Produces character
2623 entity files (reSructuredText substitutions) from the MathML master
2626 * tools/editors: Support code for editors, added to project. Contains
2627 ``emacs/restructuredtext.el``.
2629 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2631 - Added style for chunks of inline literals.
2632 - Removed margin for first child of table cells.
2633 - Right-aligned field list names.
2634 - Support for auto-numbered section titles in TOCs.
2635 - Increased the size of inline literals (<tt>) in titles.
2636 - Restored the light gray background for inline literals.
2637 - Added support for "line_block" elements.
2638 - Added style for "address" elements.
2639 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2640 - Improved field list rendering.
2641 - Vertical whitespace improvements.
2642 - Removed "a.target" style.
2644 * tools/stylesheets/pep.css:
2646 - Fixed nested section margins.
2647 - Other changes parallel those of ``../default.css``.
2650 Release 0.2 (2002-07-31)
2651 ========================
2655 - The word "component" was being used ambiguously. From now on,
2656 "component" will be used to mean "Docutils component", as in Reader,
2657 Writer, Parser, or Transform. Portions of documents (Table of
2658 Contents, sections, etc.) will be called "document parts".
2659 - Did a grand renaming: a lot of ``verylongnames`` became
2660 ``very_long_names``.
2661 - Cleaned up imports: no more relative package imports or
2662 comma-separated lists of top-level modules.
2663 - Added support for an option values object which carries default
2664 settings and overrides (from command-line options and library use).
2665 - Added internal Unicode support, and support for both input and
2667 - Added support for the ``docutils.io.IO`` class & subclasses.
2671 * docutils/__init__.py:
2673 - Added ``ApplicationError`` and ``DataError``, for use throughout
2675 - Added ``Component`` base class for Docutils components; implements
2676 the ``supports`` method.
2677 - Added ``__version__`` (thus, ``docutils.__version__``).
2681 - Removed many keyword parameters to ``Publisher.__init__()`` and
2682 ``publish()``; bundled into an option values object. Added
2683 "argv", "usage", "description", and "option_spec" parameters for
2684 command-line support.
2685 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2687 - Reworked I/O model for ``docutils.io`` wrappers.
2688 - Updated ``Publisher.set_options()``; now returns option values
2690 - Added support for configuration files (/etc/docutils.conf,
2691 ./docutils.conf, ~/.docutils).
2692 - Added ``Publisher.setup_option_parser()``.
2693 - Added default usage message and description.
2695 * docutils/frontend.py: Added to project; support for front-end
2696 (command-line) scripts. Option specifications may be augmented by
2697 components. Requires Optik (http://optik.sf.net/) for option
2698 processing (installed locally as docutils/optik.py).
2700 * docutils/io.py: Added to project; uniform API for a variety of input
2703 * docutils/nodes.py:
2705 - Added ``TreeCopyVisitor`` class.
2706 - Added a ``copy`` method to ``Node`` and subclasses.
2707 - Added a ``SkipDeparture`` exception for visitors.
2708 - Renamed ``TreePruningException`` from ``VisitorException``.
2709 - Added docstrings to ``TreePruningException``, subclasses, and
2711 - Improved docstrings.
2712 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2713 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2715 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2716 ``PreDecorative`` mixin.
2717 - Reworked the name/id bookkeeping; to ``document``, removed
2718 ``explicit_targets`` and ``implicit_targets`` attributes, added
2719 ``nametypes`` attribute and ``set_name_id_map`` method.
2720 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2722 - Added ``document.has_name()`` method.
2723 - Fixed DOM generation for list-attributes.
2724 - Added category class ``Labeled`` (used by footnotes & citations).
2725 - Added ``Element.set_class()`` method (sets "class" attribute).
2727 * docutils/optik.py: Added to project. Combined from the Optik
2728 package, with added option groups and other modifications. The use
2729 of this module is probably only temporary.
2731 * docutils/statemachine.py:
2733 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2734 - Added underscores to improve many awkward names.
2735 - In ``string2lines()``, changed whitespace normalizing translation
2736 table to regexp; restores Python 2.0 compatibility with Unicode.
2738 * docutils/urischemes.py:
2740 - Filled in some descriptions.
2741 - Added "shttp" scheme.
2743 * docutils/utils.py:
2745 - Added ``clean_rcs_keywords`` function (moved from
2746 docutils/transforms/frontmatter.py
2747 ``DocInfo.filter_rcs_keywords``).
2748 - Added underscores to improve many awkward names.
2749 - Changed names of Reporter's thresholds:
2750 warning_level -> report_level; error_level -> halt_level.
2751 - Moved ``utils.id()`` to ``nodes.make_id()``.
2752 - Added ``relative_path(source, target)``.
2754 * docutils/languages/de.py: German mappings; added to project. Thanks
2755 to Gunnar Schwant for the translations.
2757 * docutils/languages/en.py: Added "Dedication" bibliographic field
2760 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2763 * docutils/parsers/rst/states.py:
2765 - Added underscores to improve many awkward names.
2766 - Added RFC-2822 header support.
2767 - Extracted the inline parsing code from ``RSTState`` to a separate
2768 class, ``Inliner``, which will allow easy subclassing.
2769 - Made local bindings for ``memo`` container & often-used contents
2770 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2771 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2772 - Added ``MarkupMismatch`` exception; for late corrections.
2773 - Added ``-/:`` characters to inline markup's start string prefix,
2774 ``/`` to end string suffix.
2775 - Fixed a footnote bug.
2776 - Fixed a bug with literal blocks.
2777 - Applied patch from Simon Budig: simplified regexps with symbolic
2778 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2779 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2780 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2781 - Allowed non-ASCII in "simple names" (directive names, field names,
2783 - Converted ``Inliner.patterns.initial`` to be dynamically built
2784 from parts with ``build_regexp()`` function.
2785 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2786 - Updated docstrings.
2787 - Changed "table" to "grid_table"; added "simple_table" support.
2789 * docutils/parsers/rst/tableparser.py:
2791 - Changed ``TableParser`` to ``GridTableParser``.
2792 - Added ``SimpleTableParser``.
2793 - Refactored naming.
2795 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2796 a fallback language for directive names.
2798 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2799 directive to use a ``pending`` element, used only by HTML writers.
2801 * docutils/parsers/rst/directives/parts.py: Renamed from
2804 - Added "backlinks" attribute to "contents" directive.
2806 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2807 project by Adam Chodorowski.
2809 * docutils/readers/__init__.py: Gave Readers more control over
2810 choosing and instantiating Parsers.
2812 * docutils/readers/pep.py: Added to project; for PEP processing.
2814 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2815 requires a ``component`` parameter.
2817 * docutils/transforms/components.py: Added to project; transforms
2818 related to Docutils components.
2820 * docutils/transforms/frontmatter.py:
2822 - In ``DocInfo.extract_authors``, check for a single "author" in an
2823 "authors" group, and convert it to a single "author" element.
2824 - Added support for "Dedication" and generic bibliographic fields.
2826 * docutils/transforms/peps.py: Added to project; PEP-specific.
2828 * docutils/transforms/parts.py: Renamed from old components.py.
2830 - Added filter for `Contents`, to use alt-text for inline images,
2831 and to remove inline markup that doesn't make sense in the ToC.
2832 - Added "name" attribute to TOC topic depending on its title.
2833 - Added support for optional TOC backlinks.
2835 * docutils/transforms/references.py: Fixed indirect target resolution
2836 in ``Hyperlinks`` transform.
2838 * docutils/transforms/universal.py:
2840 - Changed ``Messages`` transform to properly filter out system
2841 messages below the warning threshold.
2842 - Added ``Decorations`` transform (support for ``--generator``,
2843 ``--date``, ``--time``, ``--source-link`` options).
2845 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2846 Engelbert Gruber's PDF writer.
2848 * docutils/writers/html4css1.py:
2850 - Made XHTML-compatible (switched to lowercase element & attribute
2851 names; empty tag format).
2852 - Escape double-dashes in comment text.
2853 - Improved boilerplate & modularity of output.
2854 - Exposed modular output in Writer class.
2855 - Added a "generator" meta tag to <head>.
2856 - Added support for the ``--stylesheet`` option.
2857 - Added support for ``decoration``, ``header``, and ``footer``
2859 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2860 translation table to regexp; restores Python 2.0 compatibility
2862 - Added the translator class as instance variable to the Writer, to
2863 make it easily subclassable.
2864 - Improved option list spacing (thanks to Richard Jones).
2865 - Modified field list output.
2866 - Added backlinks to footnotes & citations.
2867 - Added percentage widths to "<col>" tags (from colspec).
2868 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2869 "<span>" changed to "<var>".
2870 - Inline literals: "<code>" changed to "<tt>".
2871 - Many changes to optimize vertical space: compact simple lists etc.
2872 - Add a command-line options & directive attributes to control TOC
2873 and footnote/citation backlinks.
2874 - Added support for optional footnote/citation backlinks.
2875 - Added support for generic bibliographic fields.
2876 - Identify backrefs.
2877 - Relative URLs for stylesheet links.
2879 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2880 PEPs (subclass of ``html4css1.Writer``).
2882 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2884 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2885 of the Docutils internal doctree in XML.
2887 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2891 - Changed the title to "The Docutils Document Tree".
2892 - Added "Hyperlink Bookkeeping" section.
2894 * spec/docutils.dtd:
2896 - Added ``decoration``, ``header``, and ``footer`` elements.
2897 - Brought ``interpreted`` element in line with the parser: changed
2898 attribute "type" to "role", added "position".
2899 - Added support for generic bibliographic fields.
2901 * spec/notes.txt: Continual updates. Added "Project Policies".
2903 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2906 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2908 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2909 mailing list discussions.
2911 * spec/pep-0287.txt:
2913 - Renamed to "reStructuredText Docstring Format".
2915 - Reworked Q&A as an enumerated list.
2916 - Converted to reStructuredText format.
2918 * spec/pysource.dtd:
2920 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2922 * spec/pysource.txt: Removed from project. Moved much of its contents
2925 * spec/rst/alternatives.txt:
2927 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2928 - Added "Inline External Targets" section.
2930 * spec/rst/directives.txt:
2932 - Added "backlinks" attribute to "contents" directive.
2934 * spec/rst/problems.txt:
2936 - Updated the Enumerated List Markup discussion.
2937 - Added new alternative table markup syntaxes.
2939 * spec/rst/reStructuredText.txt:
2941 - Clarified field list usage.
2942 - Updated enumerated list description.
2943 - Clarified purpose of directives.
2944 - Added ``-/:`` characters to inline markup's start string prefix,
2945 ``/`` to end string suffix.
2946 - Updated "Authors" bibliographic field behavior.
2947 - Changed "inline hyperlink targets" to "inline internal targets".
2948 - Added "simple table" syntax to supplement the existing but
2949 newly-renamed "grid tables".
2950 - Added cautions for anonymous hyperlink use.
2951 - Added "Dedication" and generic bibliographic fields.
2953 * test: Made test modules standalone (subdirectories became packages).
2955 * test/DocutilsTestSupport.py:
2957 - Added support for PEP extensions to reStructuredText.
2958 - Added support for simple tables.
2959 - Refactored naming.
2961 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2963 - Now supports true packages containing test modules
2964 (``__init__.py`` files required); fixes duplicate module name bug.
2966 * test/test_pep/: Subpackage added to project; PEP testing.
2968 * test/test_rst/test_SimpleTableParser.py: Added to project.
2972 - Updated html.py and publish.py front-end tools to use the new
2973 command-line processing facilities of ``docutils.frontend``
2974 (exposed in ``docutils.core.Publisher``), reducing each to just a
2976 - Added ``locale.setlocale()`` calls to front-end tools.
2978 * tools/buildhtml.py: Added to project; batch-generates .html from all
2979 the .txt files in directories and subdirectories.
2981 * tools/default.css:
2983 - Added support for ``header`` and ``footer`` elements.
2984 - Added styles for "Dedication" topics (biblio fields).
2986 * tools/docutils.conf: A configuration file; added to project.
2988 * tools/docutils-xml.py: Added to project.
2990 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2992 * tools/pep-html-template: Added to project.
2994 * tools/pep2html.py: Added to project from Python (nondist/peps).
2995 Added support for Docutils (reStructuredText PEPs).
2997 * tools/quicktest.py:
2999 - Added the ``--attributes`` option, hacked a bit.
3000 - Added a second command-line argument (output file); cleaned up.
3002 * tools/stylesheets/: Subdirectory added to project.
3004 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
3007 Release 0.1 (2002-04-20)
3008 ========================
3010 This is the first release of Docutils, merged from the now inactive
3011 reStructuredText__ and `Docstring Processing System`__ projects. For
3012 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
3013 `DPS HISTORY`__ files.
3015 __ http://structuredtext.sourceforge.net/
3016 __ http://docstring.sourceforge.net/
3017 __ http://structuredtext.sourceforge.net/HISTORY.html
3018 __ http://docstring.sourceforge.net/HISTORY.html
3020 General changes: renamed 'dps' package to 'docutils'; renamed
3021 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
3022 the test suites (reStructuredText's test/test_states renamed to
3023 test/test_rst); and all modifications required to make it all work.
3025 * docutils/parsers/rst/states.py:
3027 - Improved diagnostic system messages for missing blank lines.
3028 - Fixed substitution_reference bug.
3034 indent-tabs-mode: nil
3035 sentence-end-double-space: t