1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: docutils-develop@lists.sourceforge.net
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
20 Release 0.12 (2014-07-06)
21 =========================
23 * docs/ref/rst/directives.txt
25 - Update "math" and "csv-table" descriptions.
27 * docutils/parsers/rst/directives/images.py
29 - Fix [258] figwidth="image" generates unitless width value.
31 * docutils/parsers/rst/states.py
33 - Improve error report when a non-ASCII character is specified as
34 delimiter, quote or escape character under Python 2.
35 Fixes [ 249 ] and [ 250 ].
37 * docutils/writers/html4css1/__init__.py
39 - Don't add newline after inline math.
40 Thanks to Yury G. Kudryashov for the patch.
42 * docutils/writers/latex2e/__init__.py
44 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
45 - Apply [ 116 ] by Kirill Smelkov. Don't hardcode \large for subtitle.
47 * docutils/writers/odf_odt/__init__.py
49 - Apply patch by Jakub Wilk to fix bug [ 100 ].
51 * test/test_error_reporting.py
53 - Fix [ 223 ] by removing redundant tests we do not have control over.
57 - Apply [ 115 ] respect fixed 2to3 string literal conversion behavior.
59 Release 0.11 (2013-07-22)
60 =========================
64 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
65 - Support embedded aliases within hyperlink references.
66 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
67 language module) before global search.
71 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
73 * docutils/parsers/rst/directives/__init__.py
75 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
77 * docutils/parsers/rst/directives/images.py
79 - Apply [ 3599485 ] node source/line information for sphinx translation.
81 * docutils/parsers/rst/directives/tables.py
83 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
85 * docutils/parsers/rst/states.py
87 - Fix [ 157 ] Line block parsing doesn't like system message.
88 - Always import our local copy of roman.py (report Larry Hastings).
90 * docutils/transforms/references.py
92 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
94 * docutils/utils/__init__.py
96 - Fix [ 3596884 ] exception importing ``docutils.io``.
98 * docutils/writers/html4css1/__init__.py
100 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
101 - New setting `stylesheet_dirs`: Comma-separated list of directories
102 where stylesheets are found. Used by `stylesheet_path` when expanding
103 relative path arguments.
104 - New default for math-output_: ``HTML math.css``.
105 - Avoid repeated class declarations in html4css1 writer
106 (modified version of patch [ 104 ]).
108 .. _math-output: docs/user/config.html#math-output
110 * docutils/writers/latex2e/__init__.py
112 - Drop the simple algorithm replacing straight double quotes with
113 English typographic ones.
114 Activate the SmartQuotes_ transform if you want this feature.
115 - Fix literal use of babel shorthands (straight quote, tilde, ...).
116 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
117 - New setting `stylesheet_dirs`.
119 .. _SmartQuotes: docs/user/config.html#smart-quotes
121 * docutils/writers/manpage.py
123 - Fix [3607063] handle lines starting with a period.
124 - Fix option separating comma was bold (thanks to Bill Morris).
126 Release 0.10 (2012-12-16)
127 =========================
131 - Dropped support for Python 2.3.
132 - ``docutils/math``, ``docutils/error_reporting.py``, and
133 ``docutils/urischemes.py`` moved to the utils package.
134 - Fix [3541369] Relative __import__ also with Python 3.3.
135 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
136 and parsers for Python 2.7 up.
137 - Fix import of PIL.Image.
138 - Change default of "syntax highlight" option to "long",
139 basic syntax highlight styles for LaTeX and HTML.
143 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
144 option is ignored and will be removed in a future release.
145 - Fix Py3k error writing to stdout with encoding differing from default.
146 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
148 * docutils/parsers/rst/directives/misc.py
150 - Fix [ 3546533 ] Unicode error with `date` directive.
152 * docutils/transforms/universal.py
154 - SmartQuotes transform for typographic quotes and dashes.
156 * docutils/utils/__init__.py
158 - normalize_language_tag() now returns `BCP 47`_ conformant tags
159 with subtags separated by ``-``.
161 * docutils/writers/html4css1/__init__.py
163 - Use ``<code>`` tag for inline "code",
164 do not drop nested inline nodes (syntax highlight tokens).
165 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
166 - No line break after opening inline math tag.
168 * docutils/writers/manpage.py
170 - Apply [ 3527401 ] addmonition's don't preserve indentation
171 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
173 , docutils/writers/xetex/__init__.py
175 - Apply [ 3555160 ] ensure order of "otherlanguages".
176 - Fix section numbering by LaTeX.
178 * docutils/writers/s5_html/__init__.py
180 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
182 * docutils/writers/s5_html/docutils_xml.py
184 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
188 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
190 * tools/test/test_buildhtml.py
192 - Fix [ 3521167 ] allow running in any directory.
193 - Fix [ 3521168 ] allow running with Python 3.
196 Release 0.9.1 (2012-06-17)
197 ==========================
201 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
202 installed in the PYTHONPATH. Converted tests are now
203 stored in ``test3/``, tools no longer need conversion.
205 If you installed one of Docutils versions 0.7 ... 0.9 with
206 ``setup.py install`` under Python 3, remove the spurious
207 ``test/`` and ``tools/`` directories in the site library root.
211 - Make tests independent from the location of the ``test/`` directory.
212 - Use converted sources (from the ``build/`` directory) for tests under
217 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
221 - Fix writing binary data to sys.stdout under Python 3 (allows
222 ``rst2odt.py`` to be used with output redirection).
224 * docutils/parsers/rst/directives/misc.py
226 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
227 ``locale == C`` and 8-bit char in path argument of `include` directive.
231 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
234 Release 0.9 (2012-05-02)
235 ========================
239 - New reStructuredText "code" role and directive and "code" option
240 of the "include" directive with syntax highlighting by Pygments_.
241 - Fix parse_option_marker for option arguments containing ``=``.
242 - Fix [ 2993756 ]: import Python Imaging Library's Image module
243 via ``import PIL`` as starting with PIL 1.2,
244 "PIL lives in the PIL namespace only" (announcement__).
246 .. _Pygments: http://pygments.org/
247 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
251 - Fix [ 2971827 ] and [ 3442827 ]
252 extras/roman.py moved to docutils/utils/roman.py
254 * docutils/frontend.py
256 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
260 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
261 - `mode` argument for FileOutput avoids code replication in
263 - New exceptions InputError and OutputError for IO errors in
264 FileInput/FileOutput.
268 - No "hard" system exit on file IO errors: catch and report them in
269 `Publisher.reportException` instead. Allows handling by a calling
270 application if the configuration setting `traceback` is True.
272 * docutils/utils.py -> docutils/utils/__init__.py
274 - docutils.utils is now a package (providing a place for sub-modules)
276 .. note:: docutils/math, docutils/error_reporting.py, and
277 docutils/urischemes.py will move to the utils package in the next
278 release, too. See RELEASE-NOTES__
280 __ RELEASE-NOTES.html
282 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
283 errors recording non-ASCII filenames (fixes [ 3434355 ]).
285 - Fix relative_path() with source=None and `unicode` target.
287 * docutils/parsers/rst/states.py
289 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
290 characters and "international" quotes around inline markup.
291 - Use `field_marker` pattern to look for start of a
292 directive option block (fixes [ 3484857 ]).
294 * docutils/parsers/rst/tableparser.py
296 - Fix [ 2926161 ] for simple tables.
297 (Combining chars in grid tables still contribute to cell width.)
299 * docutils/writers/latex2e/__init__.py
301 - Support the `abbreviation` and `acronym` standard roles.
302 - Record only files required to generate the LaTeX source as dependencies.
303 - Fix handling of missing stylesheets.
304 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
305 when suppressing LaTeX section numbering.
306 - Use ``\DUtitle`` for unsupported section levels
307 - Apply [ 3512791 ] do not compare string literals with "is"
309 * docutils/writers/xetex/__init__.py
311 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
313 * docutils/writers/html4css1/__init__.py
315 - Change default for `math-output` setting to MathJax.
316 - Fix handling of missing stylesheets.
318 * docutils/writers/docutils_xml.py
320 - Use the visitor pattern with default_visit()/default_depart() methods
321 instead of minidom to facilitate special handling of selected nodes.
322 - Support raw XML (inserted as-is inside a <raw></raw> node).
324 * docutils/writers/manpage.py
326 - Do not emit comment line with trailing blank. Problematic for VCS.
328 Release 0.8.1 (2011-08-30)
329 ==========================
333 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
334 and [ 3395920 ] (correct copyright info for rst.el).
338 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
340 * docutils/writers/latex2e/__init__.py
342 - Clean up Babel language setting. Restores Sphinx compatibility.
344 Release 0.8 (2011-07-07)
345 ========================
349 - Handle language codes according to `BCP 47`_.
350 - If the specified language is not supported by Docutils,
351 warn and fall back to English.
352 - Math support: reStructuredText "math" role and directive,
353 ``math`` and ``math_block`` doctree elements.
354 - Decode command line arguments with the locale's preferred encoding
355 (to allow, e.g., ``--title=Dornröschen``).
356 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
357 - New sub-module `error_reporting`: handle encoding/decoding errors
358 when reporting exceptions.
359 - Some additions to the Docutils core are released under the 2-Clause BSD
360 license, see COPYING_ for details.
362 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
363 .. _COPYING: COPYING.html
367 - Most directives now support a "name" option that attaches a
370 - Directive content may start on the first line also when the directive
371 type accepts options.
373 * docs/dev/policies.txt:
375 - Recommend the 2-Clause BSD license
376 (http://www.spdx.org/licenses/BSD-2-Clause)
377 for code that is kept under the author's copyright.
379 * tools/buildhtml.py:
381 - Fix ``--local`` switch.
383 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
385 * docutils/writers/html4css1/__init__.py
387 - Set "lang" argument for objects with class argument
388 "language-<language tag>".
389 - New setting "math-output" with support for HTML, MathML, and LaTeX.
391 * docutils/writers/latex2e/__init__.py
393 - Fix [ 3043986 ] AttributeError using :local: with table of content.
394 - Place title data in the document preamble.
395 - Load `babel` package only if required.
396 - Update list of supported languages.
397 - New config setting "hyperref-options".
398 No hard-coded "unicode" hyperref option (clash with xetex).
399 - Set language for custom roles, paragraphs, block-quotes, and
400 line-quotes with class argument "language-<language tag>".
401 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
402 - Convert image URI to a local file path.
403 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
404 has more than one paragraph (Wolfgang Scherer).
405 - \leavevmode before longtable only when needed (prevents spurious vspace)
406 - do not advance table counter for tables without caption
408 * docutils/writers/xetex/__init__.py
410 - New writer generating LaTeX code for compiling with ``xelatex``.
412 A separate writer (inheriting from latex2e) instead of a ``--xetex``
413 option allows separate config options for XeTeX vs. LaTeX2e.
415 * docutils/writers/manpage.py
417 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
418 - Fix: vertical space cleaning for option group ``.``.
420 * tools/editors/emacs/rst.el:
422 - Fix [ 3001100 ] does not handle spaces in filenames
423 (thanks to Jakub Wilk)
427 - strip whitespace from stylesheet arguments
428 - exclude combining chars from column_width()
429 (partial fix for [ 2926161 ])
431 * docutils/parsers/rst/directives/misc.py:
433 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
438 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
439 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
441 Release 0.7 (2010-07-07)
442 ========================
446 - Fix [ 2881769 ] setup configuration.
447 - Fix [ 2788716 ] reporting problems in included files.
451 - FileInput opens files as text files with universal newline support
452 (mode "rU", configurable with the new optional argument "mode").
456 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
460 - Fix [ 2923723 ] let decode_path() tolerate path == None
462 * docutils/writers/html4css1/__init__.py
464 - Support SVG and SWF images (thanks to Stefan Rank).
465 - Generate valid XHTML for centered images with targets.
466 Use CSS classes instead of "align" tags for image alignment.
468 * docutils/writers/latex2e/__init__.py
470 - Use `transforms.writer_aux.Admonitions` to "normalize" special
472 - Use the ``\url`` command for URLs (breaks long URLs instead of
473 writing into the margin).
474 - Preserve runs of spaces in `inline literals`__.
475 - Deprecate ``figure_footnotes`` setting.
476 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
477 - New ``latex_preamble`` setting.
478 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
479 - Fix hyperlink targets (labels) for images, figures, and tables.
480 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
481 - Apply [ 2961991 ] Call hyperref with unicode option.
482 - Drop the special `output_encoding`__ default ("latin-1").
483 The Docutils wide default (usually "UTF-8") is used instead.
484 - Render inline markup in document title and subtitle.
485 - Fix numbering depth with LaTeX section numbering.
486 - Update Unicode -> LaTeX translations.
487 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
489 __ docs/ref/restructuredtext.html#inline-literals
490 __ docs/user/config.html#docutils-footnotes
491 __ docs/user/config.html#output_encoding
493 * docutils/writers/manpage.py
495 - Fix: supported attribute (thanks to peter2108).
496 - Remove trailing blanks in code (keep in sync with mercurial version).
497 - Titles level 1, that is ``.SH``, always uppercase.
498 - Apply patch from mg: literal text should be bold in man-pages.
502 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
507 - Python 3 support: copy test/ and tools/ to the build-dir
508 and convert Python sources with 2to3.
511 Release 0.6 (2009-10-11)
512 ========================
516 - Docutils is now compatible with Python versions from 2.3 up to 2.6
517 and convertible to 3.1 code.
519 + Node.__nonzero__ returns True instead of 1.
520 + use os.walk instead os.path.walk.
521 + minimize "types" module where possible.
522 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
523 + Text nodes now subclass unicode rather than UserString
524 (which is gone in python 3.0).
525 + 3.0 compatibility module docutils._compat
527 + Drop 2.2 compatibility workarounds.
528 + Drop extras/optparse.py and extras/textwrap.py
529 (stdlib modules since 2.3).
531 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
532 - Unix man page export: manpage writer moved from sandbox to Doctutils
535 - Apply [ 1719345 ] Galician translation
536 - Apply [ 1905741 ] Polish translation
537 - Apply [ 1878977 ] make_id(): deaccent characters.
538 - Apply [ 2029251 ] return nonzero when tests fail.
539 - Fix [ 1692788 ] allow UTF-8 in style sheets.
540 - Fix [ 2781629 ] support non-ASCII chars in file names.
541 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
542 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
543 - Fix [ 2821266 ] --strict option works now like --halt=info.
544 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
545 - Fix [ 1627229 ] hyperlink references in substitutions.
547 - The "newlatex" writer is orphaned.
551 - Documented Unicode characters allowed as inline markup openers,
552 closers, and delimiters.
553 - Allow units for all length specifications.
554 - Allow percent sign in "scale" argument of "figure" and "image" directives.
555 - Bugfix: The "figalign" argument of a figure now works as intended
556 (aligning the figure, not its contents).
557 - Align images with class "align-[right|center|left]"
558 (allows setting the alignment of an image in a figure).
562 - Added ``Element.__contains__`` method, for the in-operator.
564 * docutils/parsers/rst/states.py:
566 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
567 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
568 " " (non-breaking space), and "¡ ¿" openers.
570 * docutils/parsers/directives/misc.py:
572 - Added ``start-line`` and ``end-line`` options to "include"
573 directive to select a range of lines.
574 - Hard tabs in literal inclusions are replaced by spaces. This is
575 configurable via the new ``tab-width`` option of the "include" directive
576 (a negative tab-width prevents tab expansion).
580 - Add ``get_stylesheet_list`` function.
581 - Apply [ 2834836 ] print info at halt
583 * docutils/transforms/universal.py:
585 - Raise default priority of StripClasses to exclude stripped classes from
588 * docutils/writers/html4css1/__init__.py:
590 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
591 separated list of stylesheets.
592 - Address [ 1938891 ] Inline literal text creates "pre" span only when
593 needed to prevent inter-word line wraps.
594 - Use `translate` method instead of repeated `replace` calls.
595 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
596 classes to allow CSS styling that does not interfere with other
597 table-using constructs (field lists, citations, ...).
599 * docutils/writers/newlatex2e/__init__.py:
601 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
603 * docutils/writers/latex2e/__init__.py (see also
604 `<docs/user/docutils-05-compat.sty.html>`__) :
606 - Add ``--embed-stylesheet`` option.
607 - Apply [ 1474017 ] image vertical alignment is reversed.
608 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
609 - Change: has_key for dictionaries (not Nodes) to in-operator.
610 - Merge adjacent citations into one latex cite command.
611 - Failsave implementation of custom roles. LaTeX compilation now ignores
612 unknown classes instead of aborting with an error.
613 - Support custom roles based on standard roles.
614 - LaTeX packages can be used as ``--stylesheet`` arguments without
615 restriction. (A style sheet is now referenced with the ``\usepackage``
616 command, if it ends with ``.sty`` or has no extension.)
617 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
618 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
619 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
620 2005-02-04 as a configurable length unit).
621 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
622 if font-encoding is set to ''. LaTeX defaults to OT1 then.
623 - Set sub- and superscript role argument in text mode not as math.
624 Use a custom role based on sub-/superscript if you want italic shape.
625 - Shorter preamble and less dependencies: Load packages and define macros
626 only if required in the document.
627 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
628 - New custom environments and commands with optional "classes" argument.
629 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
630 - Better conformance to Docutils specifications with ``--use-latex-toc``.
631 Support for LaTeX generated ToC also with unnumbered sections.
632 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
633 section numbering by LaTeX.
634 - Use default font in admonitions and sidebar.
635 - Align of image in a figure defaults to 'center'.
636 - Bugfix: Newlines around targets and references prevent run-together
638 - Fix internal hyperlinks.
639 - Use class defaults for page margins ('typearea' now optional).
640 - Float placement made configurable, default changed to "here definitely".
641 - Typeset generic topic as "quote block with title".
642 - Use template (file and configuration option).
643 - In the default template, load cmap.sty (fix text extraction in PDF) and
644 fixltx2e.sty (LaTeX patches, \textsubscript).
645 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
646 - Use `translate` instead of repeated `replace` calls for text encoding.
647 - Hyperlinked footnotes and support for symbol footnotes and
648 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
649 - Complete pairs of binary options
650 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
651 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
653 - font-encoding: "T1" (formerly implicitely set by 'ae').
654 - use-latex-toc: true (ToC with page numbers).
655 - use-latex-footnotes: true (no mixup with figures).
657 * docutils/writers/manpage.py
659 - Do not print version at document end, this is done by the viewer.
660 - Do not print date at document end, this is done by the viewer.
661 - Fix storage of docinfo fields for none standard fields.
663 * docutils/tools/rst2man.py
665 Release 0.5 (2008-06-25)
666 ========================
668 * docutils/languages/he.py: Added to project: Hebrew mappings by
671 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
672 mappings by Meir Kriheli.
674 * docutils/frontend.py:
676 - Configuration files are now assumed and required to be
678 - Paths of applied configuration files are now recorded in the
679 runtime setting ``_config_files`` (accessible via
680 ``--dump-settings``).
681 - Added ``--strip-elements-with-class`` and ``--strip-class``
682 options (``strip_elements_with_classes`` and ``strip_classes``
687 - Added code to determine the input encoding from data: encoding
688 declarations or the presence of byte order marks (UTF-8 & UTF-16).
689 - Added support for IronPython 1.0.
693 - Added ``document.__getstate__`` method, for pickling.
695 * docutils/parsers/rst/states.py:
697 - Allow ``+`` and ``:`` in reference names.
698 - Unquoted targets beginning with an underscore (``.. __target:
699 URI``) are no longer accepted.
700 - Added support for multiple attributions in a physical block quote
701 (indented text block), dividing it into multiple logical block
703 - Added support for unicode bullets in bullet lists: "•", "‣", and
705 - Added support for new object-oriented directive interface,
706 retaining compatibility to the old functional interface.
707 - Added support for throwing ``DirectiveError``'s from within
710 * docutils/parsers/rst/__init__.py:
712 - Added ``Directive`` base class.
713 - Added ``DirectiveError`` base class.
714 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
717 * docutils/parsers/directives/:
719 - Refactored all reStructuredText directives to use the new
720 object-oriented directive interface. Errors are now (mostly)
721 thrown using the new ``DirectiveError`` class.
723 * docutils/parsers/directives/misc.py:
725 - Added ``start-after`` and ``end-before`` options to ``include``
726 directive; thanks to Stefan Rank.
728 * docutils/transforms/universal.py:
730 - Added ``StripClassesAndElements`` transform to remove from the
731 document tree all elements with classes in
732 ``settings.strip_elements_with_classes`` and all "classes"
733 attribute values in ``self.document.settings.strip_classes``.
735 * docutils/transforms/writer_aux.py:
737 - Added ``Admonitions`` transform to transform specific admonitions
738 (like ``note``, ``warning``, etc.) into generic admonitions with a
741 * docutils/writers/html4css1/__init__.py:
743 - Moved template functionality from the PEP/HTML writer here.
744 - Expanded the fragments available in the ``parts`` attribute.
745 - Moved ``id`` attributes from titles to surrounding ``div``
747 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
748 universally supported now).
749 - ``template.txt`` is now opened in text mode instead of binary mode
750 (to ensure Windows compatibility).
751 - ``a`` elements now have an "internal" or "external" class,
752 depending on reference type.
754 * docutils/writers/html4css1/template.txt: Added to project.
756 * docutils/writers/pep_html/:
758 - Moved template functionality to the HTML writer.
760 * docutils/writers/s5_html/__init__.py:
762 - Added ``view_mode`` & ``hidden_controls`` settings
763 (``--view-mode`` & ``--hidden-controls/--visible-controls``
766 * docutils/writers/latex2e/__init__.py:
768 - Add ``--literal-block-env``
769 - Fix: escaping ``%`` in href urls.
770 - Move usepackage hyperref after stylesheet inclusion.
771 - Fix: scrartcl does not have chapter but scrreprt.
772 - Add newline after ``\end{verbatim}``.
773 - Merge smaller differences from latex2e_adaptive_preamble.
774 - Add ``use-part-section``.
775 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
776 - Using leavemode option_list no longer needs to check if parent
777 is a definition list.
778 - Append ``\leavemode`` to definition list terms.
779 - No longer write visit\_/depart_definition_list_item comments to
781 - Table column width with 3 decimal places.
782 - Add table stubs support (boldfont).
783 - Add assemble_parts to writer.
784 - Add simply support for nested tables.
785 - Fix verbatim in tables if use-verbatim-when-possible.
786 - Use section commands down to subparagraph.
787 - Put ensuremath around some latin1 chars.
788 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
789 - New option ``--use-bibtex=style,db1,db2``.
790 - New option ``--reference-label`` to allow usage of LaTeX ref for
791 labels in section references.
792 - Add a label after every section to support sectionnumbers as reference
794 - Fix: bug# 1605376 rst2latex: bad options group list
795 - Remove inactive code for use_optionlist_for_option_list.
796 - Remove latex comments from option_list output.
797 - Fix: bug# 1612270 double qoutes in italian literal.
798 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
799 - Add option --use-latex-abstract.
800 - Image width unit ``px`` is translated to ``pt``.
801 - Add image height support.
802 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
804 - Fix: Do not escape underscores in citation reference labels if
805 use-latex-citations is set.
806 - Use centering instead of center for figure contents, to avoid vertical
808 - Recognize table class: borderless, nolines, booktabs, standard.
809 - Fix: Renaming contents section does not work with latex writer; SF
811 - Applied patch for custom roles with classes from Edward Loper.
812 - Fixed bug that caused crashes with more than 256 lists.
814 * docutils/writers/pep_html/__init__.py:
816 - Changed to support new python.org website structure and
819 * docs/howto/security.txt: "Deploying Docutils Securely", added to
822 * tools/buildhtml.py:
824 -- Added ``ignore`` setting to exclude a list of shell patterns
825 (default: ``.svn:CVS``).
827 * tools/editors/emacs/rst.el:
829 - Changed license to "GPL".
830 - Added ``rst-straighten-decorations`` function.
831 - The ``compile`` module is now always loaded.
832 - Added ``rst-toggle-line-block`` function.
833 - Headings consisting only of non-ASCII characters are now
834 recognized by ``rst-toc`` and ``rst-adjust``.
835 - Added font-lock support for multi-line comments where the first
836 comment line is empty.
837 - Added ``(require 'font-lock)``.
841 - Provide descriptive error message if distutils is missing.
844 Release 0.4 (2006-01-09)
845 ========================
849 - Updated the project policies for trunk/branch development &
852 * docutils/__init__.py:
854 - Added ``__version_details__`` attribute to describe code source
855 (repository/snapshot/release).
856 - Replaced ``default_transforms`` attribute of TransformSpec with
857 ``get_transforms()`` method.
861 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
862 functions, for document tree extraction and reprocessing.
866 - Added ``DocTreeInput`` class, for reprocessing existing documents.
867 - Added support for non-Unicode (e.g. binary) writer output.
871 - Re-introduced ``Targetable.indirect_reference_name``, for
872 MoinMoin/reST compatibility (removed in r3124/r3129).
873 - Added ``serial_escape`` function; escapes string values that are
874 elements of a list, for serialization. Modified Docutils-XML
875 writing (``Element._dom_node``) and pseudo-XML writing
876 (``Element.starttag``) to use ``serial_escape``.
877 - Added ``Node.deepcopy()`` method.
878 - Removed the internal lists ``document.substitution_refs``,
879 ``document.anonymous_refs``, and ``document.anonymous_targets``.
880 - Added a "container" element.
881 - Fixed bug where values of list-valued attributes of elements
882 originating from custom interpreted text roles (i.e., with custom
883 classes) were being shared between element instances. Reported by
886 * docutils/statemachine.py:
888 - Added trailing whitespace stripping to ``string2lines()``.
889 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
890 Asian double-width character support.
894 - Added ``east_asian_column_width()`` for double-width character
897 * docutils/languages/ja.py: Added to project: Japanese mappings by
900 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
901 mappings by Panjunyong.
903 * docutils/parsers/null.py: Added to project; a do-nothing parser.
905 * docutils/parsers/rst/__init__.py:
907 - Added validator to tab_width setting, with test. Closes SF bug
908 #1212515, report from Wu Wei.
910 * docutils/parsers/rst/states.py:
912 - Fixed bug with escaped colons indicating a literal block.
913 - Fixed bug with enumerated lists (SF#1254145).
914 - Backslash-escaped colons inside of field names are now allowed.
915 - Targets (implicit and explicit), anonymous hyperlink references
916 and auto-numbered footnote references inside of substitution
917 definitions are now disallowed.
918 - Fixed bug: list items with blank first lines.
919 - Fixed bug: block quote attributions with indented second lines.
920 - Added East Asian double-width character support (Python 2.4 only).
922 * docutils/parsers/rst/tableparser.py:
924 - Added East Asian double-width character support (Python 2.4 only).
926 * docutils/parsers/rst/directives/body.py:
928 - Added the "container" directive.
930 * docutils/parsers/rst/directives/misc.py:
932 - Added the "default-role", "title", and "date" directives.
933 - Added standard data file syntax to the "include" directive.
934 - Added support for "class" directive content.
936 * docutils/parsers/rst/directives/images.py:
938 - Added ``indirect_reference_name`` support for images with a target
940 - Added support for image width and height units.
941 - Fixed bug with image "target" options.
943 * docutils/parsers/rst/directives/references.py:
945 - Added "class" attribute to "target-notes" directive, for
946 footnote_reference classes.
948 * docutils/parsers/rst/include/: Directory added to project; contains
949 standard data files for the "include" directive. Initial contents:
950 character entity substitution definition sets, and a set of
951 definitions for S5/HTML presentations.
953 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
954 mappings by David Goodger.
956 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
957 Simplified Chinese mappings by Panjunyong.
959 * docutils/readers/__init__.py:
961 - Added universal.Decorations and universal.ExposeInternals
962 transforms as default transforms for all readers.
963 - Added ``ReReader`` base class for readers that reread an existing
966 * docutils/readers/doctree.py: Added to project; a reader for existing
969 * docutils/transforms/frontmatter.py:
971 - Fixed the DocInfo transform to handle SVN-style expansion of the
973 - In ``DocInfo.extract_authors``, treat the contents of "authors"
976 * docutils/transforms/misc.py:
978 - Added misc.Transitions transform, extracted from
979 universal.FinalChecks.
981 * docutils/transforms/references.py:
983 - Added references.DanglingReferences transform, extracted from
984 universal.FinalChecks.
985 - Fixed bug with doubly-indirect substitutions.
986 - Added footnote_reference classes attribute to "TargetNotes".
987 - Fixed bug with circular substitution definitions that put Docutils
988 into an infinite loop.
990 * docutils/transforms/universal.py:
992 - Added universal.ExposeInternals transform, extracted from
993 universal.FinalChecks.
994 - Removed universal.FinalChecks transform (logic has been moved to
995 several new transforms).
996 - Fixed bug with the "expose_internals" setting and Text nodes
997 (exposed by the "rawsource" internal attribute).
998 - Added the universal.StripComments transform, implementation of the
999 "strip_comments" setting.
1001 * docutils/transforms/writer_aux.py: Added to project; auxiliary
1002 transforms for writers.
1004 - Added ``Compound`` transform, which flattens compound paragraphs.
1006 * docutils/writers/: Several writer modules (html4css1.py) were
1007 converted into packages. Support modules and data files have been
1008 moved into the packages. The stylesheets for the HTML writers are
1009 now installed along with the code, the code knows where to find
1010 them, and the default is to use them (actually, to embed them).
1011 Some adjustments to configuration files may be necessary. The
1012 easiest way to obtain the new default behavior is to remove all
1013 settings whose name includes "stylesheet".
1015 * docutils/writers/__init__.py:
1017 - Added universal.Messages and universal.FilterMessages transforms
1018 as default transforms for all writers.
1019 - Added ``UnfilteredWriter`` base class for writers that pass the
1020 document tree on unchanged.
1022 * docutils/writers/docutils_xml.py:
1024 - Made ``xmlcharrefreplace`` the default output encoding error
1027 * docutils/writers/html4css1/:
1029 - Added support for image width and height units.
1030 - Made ``xmlcharrefreplace`` the default output encoding error
1032 - Made ``--embed-stylesheet`` the default rather than
1033 ``--link-stylesheet``.
1034 - Moved "id" attribute from container (section etc.) to title's <a>
1035 tag, to be on the same tag as "name".
1036 (!!! To be reverted in Docutils 0.5.)
1037 - Added vertical space between fields of field lists.
1038 - Added ``--compact-field-lists`` option to remove vertical space in
1040 - Made cloaking of email addresses with ``--cloak-email-addresses``
1042 - Fixed support for centered images.
1043 - Added support for class="compact" & class="open" lists.
1045 * docutils/writers/latex2e/:
1047 - Underscores in citekeys are no longer escaped.
1049 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1050 mapping of Unicode characters to LaTeX equivalents.
1052 * docutils/writers/s5_html/: Package added to project; writer for
1053 S5/HTML slide shows.
1055 * docs/dev/distributing.txt: Added to project; guide for distributors
1056 (package maintainers).
1058 * docs/dev/hacking.txt: Added to project; guide for developers.
1060 * docs/ref/doctree.txt:
1062 - Updated for plural attributes "classes", "ids", "names",
1064 - Added the "container" element.
1066 * docs/ref/docutils.dtd:
1068 - Updated for plural attributes "classes", "ids", "names",
1071 * docs/user/emacs.txt: Added to project; a document about Emacs
1072 support for reStructuredText and Docutils.
1074 * docs/user/links.txt: Added to project; lists of Docutils-related
1077 * docs/user/mailing-lists.txt: Added to project; information about
1078 Docutils-related mailing lists and how to access them.
1080 * docs/user/slide-shows.txt: Added to project; example of and docs for
1081 the S5/HTML writer (``rst2s5.py`` front end).
1083 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1084 Files", added to project.
1086 * test/coverage.sh: Added to project; test coverage script.
1088 * test/DocutilsTestSupport.py:
1090 - Added support for specifying runtime settings at the suite level.
1092 * test/test_functional.py:
1094 - Added the ``clear_output_directory`` function.
1095 - Added support for ``_test_more`` functions in functional test
1098 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1100 * tools/rstpep2html.py: Renamed from pep.py.
1102 * tools/dev/create_unimap.py: Added to project; script to create the
1103 docutils/writers/unimap_latex.py mapping file.
1105 * tools/dev/profile_docutils.py: Added to project; profiler script.
1107 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1109 * tools/editors/emacs/restructuredtext.el,
1110 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1111 Removed from project; the functionality is now contained in rst.el.
1113 * tools/editors/emacs/rst.el: Added to project. Added many features
1114 and fixed many bugs. See docs/user/emacs.txt for details.
1116 * tools/stylesheets: Removed from project. Stylesheets have been
1117 renamed and moved into writer packages.
1120 Release 0.3.9 (2005-05-26)
1121 ==========================
1125 - Eliminated and replaced all uses of the old string attributes
1126 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1127 new list attributes ``ids``, ``names``, ``dupnames`` and
1128 ``classes`` throughout the whole source tree.
1132 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1133 allowing for easier debugging.
1134 - In ``Publisher.publish()``, expanded the generic top-level
1137 * docutils/examples.py:
1139 - Added ``internals`` function for exploration.
1143 - Fixed ``Input.decode`` method to apply heuristics only if no
1144 encoding is explicitly given, and to provide better reporting of
1146 - The ``Input.decode`` method now removes byte order marks (BOMs)
1149 * docutils/nodes.py:
1151 - ``image`` element class changed to subclass of Element, not
1152 TextElement (it's an empty element, and cannot contain text).
1153 - Added ``attr_defaults`` dictionary for default attribute values.
1154 - Added empty list as default value for the following attributes:
1155 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1156 - Added ``document.decoration`` attribute,
1157 ``document.get_decoration`` method, and ``decoration.get_header``
1158 & ``.get_footer`` methods.
1159 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1162 * docutils/utils.py:
1164 - Removed ``docutils.utils.Reporter.categories``,
1165 ``docutils.utils.ConditionSet``, and all references to them, to
1166 simplify error reporting.
1168 * docutils/languages/nl.py: Added to project; Dutch mappings by
1171 * docutils/parsers/rst/__init__.py:
1173 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1175 * docutils/parsers/rst/states.py:
1177 - Added check for escaped at-mark to prevent email address recognition.
1178 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1180 - Allowed whitespace in paths and URLs.
1181 - Added auto-enumerated list items.
1182 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1184 - Added support for table stub columns.
1186 * docutils/parsers/rst/directives/__init__.py:
1188 - Allowed whitespace in paths (``path`` function).
1189 - Added ``uri`` directive option conversion function.
1191 * docutils/parsers/rst/directives/body.py:
1193 - Fixed illegal context bug with "topic" directive (allowed within
1194 sidebars; not within body elements).
1196 * docutils/parsers/rst/directives/images.py:
1198 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1199 - Added support for the ``file_insertion_enabled`` setting in the
1200 "figure" directive (disables "figwidth" option).
1201 - "image" directive: added checks for valid values of "align" option,
1202 depending on context. "figure" directive: added specialized
1203 "align" option and attribute on "figure" element.
1204 - Made ":figwidth: image" option of "figure" directive work again.
1205 - Fixed bug with reference names containing uppercase letters
1206 (e.g. ``Name_``) in "target" option of "image" directive.
1208 * docutils/parsers/rst/directives/misc.py:
1210 - Fixed "include" and "raw" directives to catch text decoding
1212 - Allowed whitespace in "include" & "raw" directive paths.
1213 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1214 settings in "include" & "raw" directives.
1216 * docutils/parsers/rst/directives/parts.py:
1218 - Added "header" & "footer" directives.
1219 - Fixed illegal context bug with "contents" directive (topics
1220 allowed within sidebars; not within body elements).
1222 * docutils/parsers/rst/directives/tables.py:
1224 - Added "list-table" directive.
1225 - Caught empty CSV table bug.
1226 - Added support for the ``file_insertion_enabled`` setting in the
1227 "csv-table" directive.
1228 - Added ``stub-columns`` option to "csv-table" and "list-table"
1231 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1232 mappings by Martijn Pieters.
1234 * docutils/readers/standalone.py:
1236 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1237 options to activate or deactivate the SectSubTitle transform.
1239 * docutils/transforms/frontmatter.py:
1241 - Added SectSubTitle transform to promote titles of lone
1242 subsections to subtitles.
1244 * docutils/transforms/references.py:
1246 - Fixed mislocated internal targets bug, by propagating internal
1247 targets to the next node, making use of the newly added support
1248 for multiple names and IDs.
1249 - Fixed duplicate footnote label bug.
1250 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1253 * docutils/writers/html4css1.py:
1255 - Fixed unencoded stylesheet reference bug (characters like "&" in
1256 stylesheet references).
1257 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1259 - Added support for multiple IDs per node by creating empty ``span``
1261 - Added the ``field_name_limit`` & ``option_limit`` settings &
1263 - Added support for table stub columns.
1264 - Added support for the ``align`` attribute on ``figure`` elements.
1265 - Added the ``cloak_email_addresses`` setting & support.
1266 - Added ``html_prolog``, ``html_head``, ``html_body``,
1267 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1268 ``docutils.core.publish_parts``.
1269 - Added support for section subtitles.
1271 * docutils/writers/latex2e.py:
1273 - Fixed tables starting with more than one multirow cell.
1274 - Improved --use-latex-docinfo so that organization/contact/address
1275 fields are lumped with the last author field and appear on the
1277 - Made sure the titlepage is always shown with --use-latex-docinfo,
1278 even if the document has no title.
1279 - Made sure that latex doesn't fill in today's date if no date field
1281 - Added support for section subtitles.
1283 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1284 (under development).
1286 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1288 * docs/api/publisher.txt:
1290 - Added "``publish_parts`` Details" section.
1292 * docutils/dev/repository.txt: Added to project; information about the
1293 Docutils Subversion repository.
1295 * docs/ref/docutils.dtd:
1297 - Added a ``stub`` attribute to the ``colspec`` element via the
1298 ``tbl.colspec.att`` parameter entity.
1299 - Allowed topic elements within sidebars
1300 - Added an ``align`` attribute to the ``figure`` element.
1302 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1306 Release 0.3.7 (2004-12-24)
1307 ==========================
1309 * docutils/frontend.py:
1311 - Added options: --input-encoding-error-handler,
1312 --record-dependencies, --leave-footnote-reference-space,
1314 - Added command-line and config file support for "overrides" setting
1319 - Added support for input encoding error handler.
1321 * docutils/nodes.py:
1323 - Added dispatch_visit and dispatch_departure methods to
1324 NodeVisitor; useful as a hook for Visitors.
1325 - Changed structure of ``line_block``; added ``line``.
1326 - Added ``compound`` node class.
1327 - Added a mechanism for Visitors to transitionally ignore new node
1330 * docutils/utils.py:
1332 - Moved ``escape2null`` and ``unescape`` functions from
1333 docutils/parsers/rst/states.py.
1335 * docutils/parsers/rst/roles.py:
1338 - Changed role function API: the "text" parameter now takes
1339 null-escaped interpreted text content.
1341 * docutils/parsers/rst/states.py:
1343 - Fixed bug where a "role" directive in a nested parse would crash
1344 the parser; the state machine's "language" attribute was not being
1346 - Added support for line block syntax.
1347 - Fixed directive parsing bug: argument-less directives didn't
1348 notice that arguments were present.
1349 - Removed error checking for transitions.
1350 - Added support for multiple classifiers in definition list items.
1351 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1352 - Changed role function API: the "text" parameter now takes
1353 null-escaped interpreted text content.
1354 - Empty sections and documents are allowed now.
1356 * docutils/parsers/rst/directives/__init__.py:
1358 - Added ``encoding`` directive option conversion function.
1359 - Allow multiple class names in class_option conversion function.
1361 * docutils/parsers/rst/directives/body.py:
1363 - Converted the line-block directive to use the new structure.
1364 - Extracted the old line-block functionality to the ``block``
1365 function (still used).
1366 - Added ``compound`` directive (thanks to Lea Wiemann).
1368 * docutils/parsers/rst/directives/misc.py:
1370 - Added "encoding" option to "include" and "raw" directives.
1371 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1372 - Allow multiple class names in the "class" directive.
1374 * docutils/parsers/rst/directives/parts.py:
1376 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1377 options. Thanks to Lele Gaifax.
1379 * docutils/parsers/rst/directives/tables.py:
1381 - Added "encoding" directive to "csv-table" directive.
1382 - Added workaround for lack of Unicode support in csv.py, for
1383 non-ASCII CSV input.
1385 * docutils/transforms/misc.py:
1387 - Fixed bug when multiple "class" directives are applied to a single
1389 - Enabled multiple format names for "raw" directive.
1391 * docutils/transforms/references.py:
1393 - Added support for trimming whitespace from beside substitution
1396 * docutils/transforms/universal.py:
1398 - FinalChecks now checks for illegal transitions and moves
1399 transitions between sections.
1401 * docutils/writers/html4css1.py:
1403 - HTMLTranslator.encode now converts U+00A0 to " ".
1404 - "stylesheet" and "stylesheet_path" settings are now mutually
1406 - Added support for the new line_block/line structure.
1407 - --footnote-references now overrides
1408 --trim-footnote-reference-space, if applicable.
1409 - Added support for ``compound`` elements.
1410 - Enabled multiple format names for "raw" directive.
1411 - ``<p>`` tags of a paragraph which is the only visible child of the
1412 document node are no longer stripped.
1413 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1414 new method ``should_be_compact_paragraph()``.
1415 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1417 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1418 the output if they have their ``class`` attribute set.
1419 - The whole document is now surrounded by a ``<div
1420 class="document">`` element.
1421 - Body-level images are now wrapped by their own ``<div>`` elements,
1422 with image classes copied to the wrapper, and for images which
1423 have the ``:align:`` option set, the surrounding ``<div>`` now
1424 receives a class attribute (like ``class="align-left"``).
1426 * docutils/writers/latex2e.py:
1428 - no newline after depart_term.
1429 - Added translations for some Unicode quotes.
1430 - Added option "font-encoding", made package AE the default.
1431 - "stylesheet" and "stylesheet_path" settings are now mutually
1433 - --footnote-references now overrides
1434 --trim-footnote-reference-space, if applicable.
1435 - The footnote label style now matches the footnote reference style
1436 ("brackets" or "superscript").
1437 - Added support for ``compound`` elements.
1438 - Enabled multiple format names for "raw" directive.
1440 * docs/ref/docutils.dtd:
1442 - Changed structure of the ``line_block`` element; added ``line``.
1443 - Added ``compound`` element.
1444 - Added "ltrim" and "rtrim" attributes to
1445 ``substitution_definition`` element.
1446 - Enabled multiple format names for ``raw`` element.
1447 - Enabled multiple classifiers in ``definition_list_item`` elements.
1449 * docs/ref/rst/directives.txt
1451 - Marked "line-block" as deprecated.
1452 - "Class" directive now allows multiple class names.
1453 - Added "Rationale for Class Attribute Value Conversion".
1454 - Added warning about "raw" overuse/abuse.
1456 * docs/ref/rst/restructuredtext.txt:
1458 - Added syntax for line blocks.
1459 - Definition list items may have multiple classifiers.
1461 * docs/ref/rst/roles.txt:
1465 * tools/stylesheets/default.css:
1467 - Added support for the new line_block structure.
1468 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1471 Release 0.3.5 (2004-07-29)
1472 ==========================
1476 * _`Documentation cleanup/reorganization`.
1478 - Created new subdirectories of docs/:
1480 * ``docs/user/``: introductory/tutorial material for end-users
1481 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1482 * ``docs/api/``: API reference material for client-developers
1483 * ``docs/ref/``: reference material for all groups
1484 * ``docs/howto/``: for component-developers and core-developers
1485 * ``docs/peps/``: Python Enhancement Proposals
1487 - Moved ``docs/*`` to ``docs/user/``.
1488 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1489 ``spec/`` to ``docs/dev``.
1490 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1491 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1492 - Moved ``alternatives.txt``, and ``problems.txt`` from
1493 ``spec/rst/`` to ``docs/dev/rst/``.
1494 - Moved ``reStructuredText.txt``, ``directives.txt``,
1495 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1496 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1497 ``roles.txt``, ``reStructuredText.txt`` to
1498 ``restructuredtext.txt``.
1499 - Moved ``spec/howto/`` to ``docs/howto``.
1501 In order to keep the CVS history of moved files, we supplied
1502 SourceForge with a `script for modifying the Docutils CVS
1505 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1507 After running the cleanup script:
1509 - Added ``docs/index.txt``.
1510 - Added a ``.htaccess`` file to the ``web`` module, containing
1511 redirects for all old paths to new paths. They'll preserve
1512 fragments (the "#name" part of a URL), and won't clutter up the
1513 file system, and will correct the URL in the user's browser.
1514 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1515 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1516 the "To Do" list itself in ``docs/dev/todo.txt``.
1517 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1518 section of ``docs/dev/todo.txt``.
1519 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1520 - Added "How To Report Bugs" to ``BUGS.txt``.
1521 - Went through all the sources and docs (including under web/) and
1522 updated links. Mostly done by Lea Wiemann; thanks Lea!
1523 (Still need to update links in the sandboxes.)
1527 * BUGS.txt: Added to project.
1529 * THANKS.txt: Added to project.
1531 * docutils/__init__.py:
1533 - 0.3.4: Post-release.
1537 - Added special error handling & advice for UnicodeEncodeError.
1538 - Refactored Publisher.publish (simplified exception handling &
1539 extracted debug dumps).
1540 - Renamed "enable_exit" parameter of convenience functions to
1541 "enable_exit_status".
1542 - Enabled traceback (exception propagation) by default in
1543 programmatic convenience functions.
1544 - Now publish_file and publish_cmdline convenience functions return
1545 the encoded string results in addition to their regular I/O.
1546 - Extracted common code from publish_file, publish_string, and
1547 publish_parts, into new publish_programmatically. Extracted
1548 settings code to ``Publisher.process_programmatic_settings``.
1549 - In Publisher.publish, disabled ``settings_overrides`` when
1550 ``settings`` is supplied; redundant.
1552 * docutils/frontend.py:
1554 - Added help text for "--output-encoding-error-handler" and
1555 "--error-encoding-error-handler".
1556 - Renamed "--exit" to "--exit-status".
1557 - Simplified default-setting code.
1559 * docutils/parsers/rst/__init__.py:
1561 - Added "--pep-base-url" and "--rfc-base-url" options.
1563 * docutils/parsers/rst/states.py:
1565 - Made URI recognition more aggressive and intelligent.
1567 * docutils/parsers/rst/directives/__init__.py:
1569 - Added several directive option conversion functions.
1571 * docutils/parsers/rst/directives/body.py:
1573 - Moved "table" directive to tables.py.
1575 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1578 * docutils/writers/latex2e.py:
1580 - Added "--table-style=(standard|booktabs|nolines)"
1581 - figures get "here" option (LaTeX per default puts them at bottom),
1582 and figure content is centered.
1583 - Rowspan support for tables.
1584 - Fix: admonition titles before first section.
1585 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1586 - Replave ``_`` in literal by an underlined blank, because it has the correct
1588 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1589 - A few unicode replacements, if output_encoding != utf
1590 - Add "--graphicx-option".
1591 - Indent literal-blocks.
1592 - Fix: omit ``\maketitle`` when there is no document title.
1594 * docs/index.txt: "Docutils Project Documentation Overview", added to
1597 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1598 Tool", added to project.
1600 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1602 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1604 * docs/dev/policies.txt: Added to project (extracted from
1605 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1607 * docs/dev/release.txt: Added to project (extracted from
1608 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1610 * docs/dev/testing.txt: Added to project.
1612 * docs/dev/website.txt: Added to project (extracted from
1613 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1615 * docs/ref/rst/directives.txt:
1617 - Added directives: "table", "csv-table".
1619 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1620 added to project. 1 page for syntax, and a 1 page reference for
1621 directives and roles. Source text to be used as-is; not meant to be
1624 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1625 with a change of title.
1627 * test/functional/, contents, and test/test_functional.py: Added to
1630 * tools/buildhtml.py: Fixed bug with config file handling.
1632 * tools/html.py: Removed from project (duplicate of rst2html.py).
1634 * tools/pep2html.py: Removed from project (duplicate of Python's
1635 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1636 Docutils-related PEPs in docs/peps/).
1638 * tools/rst2pseudoxml.py: Renamed from publish.py.
1640 * tools/rst2xml.py: Renamed from docutils-xml.py.
1642 * tools/test.txt: Removed from project; moved to
1643 docs/user/rst/demo.txt.
1645 * setup.py: Now also installs ``rst2latex.py``.
1648 Release 0.3.3 (2004-05-09)
1649 ==========================
1651 * docutils/__init__.py:
1653 - 0.3.1: Reorganized config file format (multiple sections); see
1655 - Added unknown_reference_resolvers attribute to TransformSpec.
1656 - 0.3.2: Interpreted text reorganization.
1661 - Catch system messages to stop tracebacks from parsing errors.
1662 - Catch exceptions during processing report & exit without
1663 tracebacks, except when "--traceback" used.
1664 - Reordered components for OptionParser; application comes last.
1665 - Added "config_section" parameter to several methods and functions,
1666 allowing front ends to easily specify their config file sections.
1667 - Added publish_parts convenience function to allow access to individual
1668 parts of a document.
1670 * docutils/examples.py: Added to project; practical examples of
1671 Docutils client code, to be used as-is or as models for variations.
1673 * docutils/frontend.py:
1675 - Added "--traceback" & "--no-traceback" options ("traceback"
1677 - Implemented support for config file reorganization:
1678 ``standard_config_files`` moved from ``ConfigParser`` to
1679 ``OptionParser``; added
1680 ``OptionParser.get_config_file_settings()`` and
1681 ``.get_standard_config_settings()``; support for old "[options]"
1682 section (with deprecation warning) and mapping from old to new
1684 - Reimplemented setting validation.
1685 - Enabled flexible boolean values: yes/no, true/false, on/off.
1686 - Added ``Values``, a subclass of ``optparse.Values``, with support
1687 for list setting attributes.
1688 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1689 thanks to Beni Cherniavsky.
1690 - Added "--no-section-numbering" option.
1694 - Catch IOErrors when opening source & destination files, report &
1695 exit without tracebacks. Added ``handle_io_errors`` parameter to
1696 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1698 * docutils/nodes.py:
1700 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1701 method definitions (via ``exec``) to dynamic assignments (via
1702 ``setattr``); thanks to Roman Suzi.
1703 - Encapsulated visitor dynamic assignments in a function; thanks to
1705 - Added indirect_reference_name attribute to the Targetable
1706 class. This attribute holds the whitespace_normalized_name
1707 (contains mixed case) of a target.
1709 * docutils/statemachine.py:
1711 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1712 - Added ``StringList.get_2D_block``.
1714 * docutils/utils.py:
1716 - Added "level" attribute to SystemMessage exceptions.
1718 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1721 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1724 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1725 Marcelo Huerta San Martin.
1727 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1728 mappings by Lalo Martins.
1730 * docutils/languages/ru.py: Added to project; Russian mappings by
1733 * docutils/parsers/rst/roles.py: Added to project. Contains
1734 interpreted text role functions, a registry for interpreted text
1735 roles, and an API for adding to and retrieving from the registry.
1736 Contributed by Edward Loper.
1738 * docutils/parsers/rst/states.py:
1740 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1741 - Allowed true em-dash character and "---" as block quote
1743 - Added support for <angle-bracketed> complex option arguments
1745 - Fixed handling of backslashes in substitution definitions.
1746 - Fixed off-by-1 error with extra whitespace after substitution
1747 definition directive.
1748 - Added inline markup parsing to field lists' field names.
1749 - Added support for quoted (and unindented) literal blocks.
1750 Driven in part by a bribe from Frank Siebenlist (thanks!).
1751 - Parser now handles escapes in URIs correctly.
1752 - Made embedded-URIs' reference text omittable. Idea from Beni
1754 - Refactored explicit target processing code.
1755 - Added name attribute to references containing the reference name only
1756 through whitespace_normalize_name (no case changes).
1757 - parse_target no longer returns the refname after going through
1758 normalize_name. This is now handled in make_target.
1759 - Fixed bug relating to role-less interpreted text in non-English
1761 - Reorganized interpreted text processing; moved code into the new
1762 roles.py module. Contributed by Edward Loper.
1763 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1764 ``parse_directive_block``.
1766 * docutils/parsers/rst/tableparser.py:
1768 - Reworked for ``StringList``, to support "include" directives in
1771 * docutils/parsers/rst/directives/__init__.py:
1773 - Renamed ``unchanged()`` directive option conversion function to
1774 ``unchanged_required``, and added a new ``unchanged``.
1775 - Catch unicode value too high error; fixes bug 781766.
1776 - Beefed up directive error reporting.
1778 * docutils/parsers/rst/directives/body.py:
1780 - Added basic "table" directive.
1782 * docutils/parsers/rst/directives/images.py:
1784 - Added "target" option to "image" directive.
1785 - Added name attribute to references containing the reference name only
1786 through whitespace_normalize_name (no case changes).
1788 * docutils/parsers/rst/directives/misc.py:
1790 - Isolated the import of the ``urllib2`` module; was causing
1791 problems on SourceForge (``libssl.so.2`` unavailable?).
1792 - Added the "role" directive for declaring custom interpreted text
1795 * docutils/parsers/rst/directives/parts.py:
1797 - The "contents" directive does more work up-front, creating the
1798 "topic" and "title", and leaving the "pending" node for the
1799 transform. Allows earlier reference resolution; fixes subtle bug.
1801 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1802 mappings by Jannie Hofmeyr.
1804 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1805 mappings by Marek Blaha.
1807 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1808 mappings by Marcelo Huerta San Martin.
1810 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1811 Portuguese mappings by Lalo Martins.
1813 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1814 mappings by Roman Suzi.
1816 * docutils/transforms/parts.py:
1818 - The "contents" directive does more work up-front, creating the
1819 "topic" and "title", and leaving the "pending" node for the
1820 transform. Allows earlier reference resolution; fixes subtle bug.
1821 - Added support for disabling of section numbering.
1823 * docutils/transforms/references.py:
1825 - Verifying that external targets are truly targets and not indirect
1826 references. This is because we are now adding a "name" attribute to
1827 references in addition to targets. Note sure if this is correct!
1828 - Added code to hook into the unknown_reference_resolvers list for a
1829 transformer in resolve_indirect_target. This allows the
1830 unknown_reference_resolvers to keep around indirect targets which
1831 docutils doesn't know about.
1832 - Added specific error message for duplicate targets.
1834 * docutils/transforms/universal.py:
1836 - Added FilterMessages transform (removes system messages below the
1837 verbosity threshold).
1838 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1839 to FinalCheckVisitor for application-specific handling of
1840 unresolvable references.
1841 - Added specific error message for duplicate targets.
1843 * docutils/writers/__init__.py:
1845 - Added assemble_parts method to the Writer class to allow for
1846 access to a documents individual parts.
1847 - Documented & set default for ``Writer.output`` attribute.
1849 * docutils/writers/html4css1.py:
1851 - Fixed unicode handling of attribute values (bug 760673).
1852 - Prevent duplication of "class" attribute values (bug report from
1854 - Improved table grid/border handling (prompted by report from Bob
1856 - Added support for table titles.
1857 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1859 - Added functionality to keep track of individual parts of a document
1860 and store them in a dictionary as the "parts" attribute of the writer.
1861 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1862 - Added proper support for the "scale" attribute of the "image"
1863 element. Contributed by Brent Cook.
1864 - Added ``--initial-header-level`` option.
1865 - Fixed bug: the body_pre_docinfo segment depended on there being a
1866 docinfo; if no docinfo, the document title was incorporated into
1867 the body segment. Adversely affected the publish_parts interface.
1869 * docutils/writers/latex2e.py:
1871 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1872 about a missing file.
1873 - Added options and support: ``--compound-enumerators``,
1874 ``--section-prefix-for-enumerators``, and
1875 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1877 - Added option ``--use-verbatim-when-possible``, to avoid
1878 problematic characters (eg, '~' in italian) in literal blocks.
1879 - It's now possible to use four section levels in the `book` and
1880 `report` LaTeX classes. The default `article` class still has
1883 * docs/config.txt: "Docutils Configuration Files", added to project.
1884 Moved config file entry descriptions from tools.txt.
1888 - Moved config file entry descriptions to config.txt.
1890 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1893 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1894 Text Roles", added to project.
1896 * spec/rst/reStructuredText.txt:
1898 - Added description of support for <angle-bracketed> complex option
1899 arguments to option lists.
1900 - Added subsections for indented and quoted literal blocks.
1902 * test: Continually adding & updating tests.
1904 - Added test/test_settings.py & test/data/config_*.txt support
1906 - Added test/test_writers/test_htmlfragment.py.
1908 * test/DocutilsTestSupport.py:
1910 - Refactored LaTeX publisher test suite/case class names to make
1911 testing other writers easier.
1912 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1913 to test the processing of HTML fragments which use the new
1914 publish_parts convenience function.
1916 * tools/buildhtml.py:
1918 - Added support for the "--prune" option.
1919 - Removed dependency on pep2html.py; plaintext PEPs no longer
1922 * tools/docutils.conf:
1924 - Updated for configuration file reorganization.
1926 * tools/rst2html.py:
1928 - copied from tools/html.py
1932 - added a 'scripts' section to configuration
1933 - added 'tools/rst2html.py' to the scripts section
1936 Release 0.3 (2003-06-24)
1937 ========================
1941 * Renamed "attribute" to "option" for directives/extensions.
1943 * Renamed transform method "transform" to "apply".
1945 * Renamed "options" to "settings" for runtime settings (as set by
1946 command-line options). Sometimes "option" (singular) became
1947 "settings" (plural). Some variations below:
1949 - document.options -> document.settings (stored in other objects as
1951 - option_spec -> settings_spec (not directives though)
1952 - OptionSpec -> SettingsSpec
1953 - cmdline_options -> settings_spec
1954 - relative_path_options -> relative_path_settings
1955 - option_default_overrides -> settings_default_overrides
1956 - Publisher.set_options -> Publisher.get_settings
1960 * COPYING.txt: Added "Public Domain Dedication".
1962 * FAQ.txt: Frequently asked questions, added to project.
1966 - Updated with PyPI Trove classifiers.
1967 - Conditional installation of third-party modules.
1969 * docutils/__init__.py:
1971 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1972 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1973 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1974 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1975 option and its effect on the PEP template & writer.
1976 - Bumped version to 0.2.4 due to changes to the PEP template &
1978 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1979 - Added ``TransformSpec`` class for new transform system.
1980 - Bumped version to 0.2.6 for API changes (renaming).
1981 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1982 convenience functions.
1983 - Added ``Component.component_type`` attribute.
1984 - Bumped version to 0.2.8 because of the internal parser switch from
1985 plain lists to the docutils.statemachine.StringList objects.
1986 - Bumped version to 0.2.9 because of the frontend.py API changes.
1987 - Bumped version to 0.2.10 due to changes to the project layout
1988 (third-party modules removed from the "docutils" package), and
1989 signature changes in ``io.Input``/``io.Output``.
1990 - Changed version to 0.3.0 for release.
1994 - Made ``publish()`` a bit more convenient.
1995 - Generalized ``Publisher.set_io``.
1996 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1997 parameters; improved its docstring.
1998 - Added ``publish_file()`` and ``publish_string()``.
1999 - Factored ``Publisher.set_source()`` and ``.set_destination()``
2001 - Added support for "--dump-pseudo-xml", "--dump-settings", and
2002 "--dump-transforms" hidden options.
2003 - Added ``Publisher.apply_transforms()`` method.
2004 - Added ``Publisher.set_components()`` method; support for
2005 ``publish_*()`` conveninece functions.
2006 - Moved config file processing to docutils/frontend.py.
2007 - Added support for exit status ("exit_level" setting &
2008 ``enable_exit`` parameter for Publisher.publish() and convenience
2011 * docutils/frontend.py:
2013 - Check for & exit on identical source & destination paths.
2014 - Fixed bug with absolute paths & "--config".
2015 - Set non-command-line defaults in ``OptionParser.__init__()``:
2016 ``_source`` & ``_destination``.
2017 - Distributed ``relative_path_settings`` to components; updated
2018 ``OptionParser.populate_from_components()`` to combine it all.
2019 - Require list of keys in ``make_paths_absolute`` (was implicit in
2020 global ``relative_path_settings``).
2021 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
2022 "--dump-settings", and "--dump-transforms" hidden options.
2023 - Removed nasty internals-fiddling ``ConfigParser.get_section``
2024 code, replaced with correct code.
2025 - Added validation functionality for config files.
2026 - Added "--error-encoding" option/setting, "_disable_config"
2028 - Added encoding validation; updated "--input-encoding" and
2029 "--output-encoding"; added "--error-encoding-error-handler" and
2030 "--output-encoding-error-handler".
2031 - Moved config file processing from docutils/core.py.
2032 - Updated ``OptionParser.populate_from_components`` to handle new
2033 ``SettingsSpec.settings_defaults`` dict.
2034 - Added support for "-" => stdin/stdout.
2035 - Added "exit_level" setting ("--exit" option).
2039 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
2040 - Added automatic closing to ``FileInput`` and ``FileOutput``.
2041 - Delayed opening of ``FileOutput`` file until ``write()`` called.
2042 - ``FileOutput.write()`` now returns the encoded output string.
2043 - Try to get path/stream name automatically in ``FileInput`` &
2045 - Added defaults for source & destination paths.
2046 - Allow for Unicode I/O with an explicit "unicode" encoding.
2047 - Added ``Output.encode()``.
2048 - Removed dependency on runtime settings; pass encoding directly.
2049 - Recognize Unicode strings in ``Input.decode()``.
2050 - Added support for output encoding error handlers.
2052 * docutils/nodes.py:
2054 - Added "Invisible" element category class.
2055 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2056 modification during a traversal.
2057 - Added element classes: ``line_block``, ``generated``, ``address``,
2058 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2059 ``superscript``, ``subscript``, ``inline``
2060 - Added support for lists of nodes to ``Element.insert()``.
2061 - Fixed parent linking in ``Element.replace()``.
2062 - Added new abstract superclass ``FixedTextElement``; adds
2063 "xml:space" attribute.
2064 - Added support for "line" attribute of ``system_message`` nodes.
2065 - Added support for the observer pattern from ``utils.Reporter``.
2066 Added ``parse_messages`` and ``transform_messages`` attributes to
2067 ``document``, removed ``messages``. Added ``note_parse_message``
2068 and ``note_transform_message`` methods.
2069 - Added support for improved diagnostics:
2071 - Added "document", "source", and "line" internal attributes to
2072 ``Node``, set by ``Node.setup_child()``.
2073 - Converted variations on ``node.parent = self`` to
2074 ``self.setup_child(node)``.
2075 - Added ``document.current_source`` & ``.current_line``
2076 attributes, and ``.note_source`` observer method.
2077 - Changed "system_message" output to GNU-Tools format.
2079 - Added a "rawsource" attribute to the ``Text`` class, for text
2080 before backslash-escape resolution.
2081 - Support for new transform system.
2082 - Reworked ``pending`` element.
2083 - Fixed XML DOM bug (SF #660611).
2084 - Removed the ``interpeted`` element class and added
2085 ``title_reference``, ``abbreviation``, ``acronym``.
2086 - Made substitutions case-sensitive-but-forgiving; moved some code
2088 - Fixed Unicode bug on element attributes (report: William Dode).
2090 * docutils/optik.py: Removed from project; replaced with
2091 extras/optparse.py and extras/textwrap.py. These will be installed
2092 only if they're not already present in the Python installation.
2094 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2095 only if it's not already present in the Python installation.
2097 * docutils/statemachine.py:
2099 - Factored out ``State.add_initial_transitions()`` so it can be
2101 - Converted whitespace-specific "blank" and "indent" transitions
2102 from special-case code to ordinary transitions: removed
2103 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2104 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2105 ``ws_initial_transitions`` attributes.
2106 - Removed ``State.match_transition()`` after merging it into
2108 - Added ``StateCorrection`` exception.
2109 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2110 (moved ``TransitionCorrection`` support there too.)
2111 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2112 ``EOFError`` instead of ``IndexError``.
2113 - Added ``State.no_match`` method.
2114 - Added support for the Observer pattern, triggered by input line
2116 - Added ``strip_top`` parameter to
2117 ``StateMachineWS.get_first_known_indented``.
2118 - Made ``context`` a parameter to ``StateMachine.run()``.
2119 - Added ``ViewList`` & ``StringList`` classes;
2120 ``extract_indented()`` becomes ``StringList.get_indented()``.
2121 - Added ``StateMachine.insert_input()``.
2122 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2123 thanks to) Fred Drake.
2125 * docutils/utils.py:
2127 - Added a ``source`` attribute to Reporter instances and
2128 ``system_message`` elements.
2129 - Added an observer pattern to ``utils.Reporter`` to keep track of
2131 - Fixed bugs in ``relative_path()``.
2132 - Added support for improved diagnostics.
2133 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2134 - Added support for encoding Reporter stderr output, and encoding
2136 - Reporter keeps track of the highest level system message yet
2139 * docutils/languages: Fixed bibliographic field language lookups.
2141 * docutils/languages/es.py: Added to project; Spanish mappings by
2142 Marcelo Huerta San Martin.
2144 * docutils/languages/fr.py: Added to project; French mappings by
2147 * docutils/languages/it.py: Added to project; Italian mappings by
2150 * docutils/languages/sk.py: Added to project; Slovak mappings by
2153 * docutils/parser/__init__.py:
2155 - Added ``Parser.finish_parse()`` method.
2157 * docutils/parser/rst/__init__.py:
2159 - Added options: "--pep-references", "--rfc-references",
2160 "--tab-width", "--trim-footnote-reference-space".
2162 * docutils/parsers/rst/states.py:
2164 - Changed "title under/overline too short" system messages from INFO
2165 to WARNING, and fixed its insertion location.
2166 - Fixed enumerated list item parsing to allow paragraphs & section
2167 titles to begin with enumerators.
2168 - Converted system messages to use the new "line" attribute.
2169 - Fixed a substitution reference edge case.
2170 - Added support for "--pep-references" and "--rfc-references"
2171 options; reworked ``Inliner`` code to make customization easier.
2172 - Removed field argument parsing.
2173 - Added support for short section title over/underlines.
2174 - Fixed "simple reference name" regexp to ignore text like
2175 "object.__method__"; not an anonymous reference.
2176 - Added support for improved diagnostics.
2177 - Reworked directive API, based on Dethe Elza's contribution. Added
2178 ``Body.parse_directive()``, ``.parse_directive_options()``,
2179 ``.parse_directive_arguments()`` methods.
2180 - Added ``ExtensionOptions`` class, to parse directive options
2181 without parsing field bodies. Factored
2182 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2183 ``ExtensionOptions``.
2184 - Improved definition list term/classifier parsing.
2185 - Added warnings for unknown directives.
2186 - Renamed ``Stuff`` to ``Struct``.
2187 - Now flagged as errors: transitions at the beginning or end of
2188 sections, empty sections (except title), and empty documents.
2189 - Updated for ``statemachine.StringList``.
2190 - Enabled recognition of schemeless email addresses in targets.
2191 - Added support for embedded URIs in hyperlink references.
2192 - Added backslash-escapes to inline markup end-string suffix.
2193 - Added support for correct interpreted text processing.
2194 - Fixed nested title parsing (topic, sidebar directives).
2195 - Added special processing of backslash-escaped whitespace (idea
2196 from David Abrahams).
2197 - Made substitutions case-sensitive-but-forgiving; moved some code
2198 to ``docutils.nodes``.
2199 - Added support for block quote attributions.
2200 - Added a kludge to work-around a conflict between the bubble-up
2201 parser strategy and short titles (<= 3 char-long over- &
2202 underlines). Fixes SF bug #738803 "infinite loop with multiple
2203 titles" submitted by Jason Diamond.
2204 - Added explicit interpreted text roles for standard inline markup:
2205 "emphasis", "strong", "literal".
2206 - Implemented "superscript" and "subscript" interpreted text roles.
2207 - Added initial support for "abbreviation" and "acronym" roles;
2209 - Added support for "--trim-footnote-reference-space" option.
2210 - Optional space before colons in directives & hyperlink targets.
2212 * docutils/parsers/rst/tableparser.py:
2214 - Fixed a bug that was producing unwanted empty rows in "simple"
2216 - Detect bad column spans in "simple" tables.
2218 * docutils/parsers/rst/directives: Updated all directive functions to
2221 * docutils/parsers/rst/directives/__init__.py:
2223 - Added ``flag()``, ``unchanged()``, ``path()``,
2224 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2225 directive option helper functions.
2226 - Added warnings for unknown directives.
2227 - Return ``None`` for missing directives.
2228 - Added ``register_directive()``, thanks to William Dode and Paul
2231 * docutils/parsers/rst/directives/admonitions.py:
2233 - Added "admonition" directive.
2235 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2236 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2237 "parsed-literal", "rubric", "epigraph", "highlights" and
2238 "pull-quote" directives.
2240 * docutils/parsers/rst/directives/images.py:
2242 - Added an "align" attribute to the "image" & "figure" directives
2243 (by Adam Chodorowski).
2244 - Added "class" option to "image", and "figclass" to "figure".
2246 * docutils/parsers/rst/directives/misc.py:
2248 - Added "include", "raw", and "replace" directives, courtesy of
2250 - Added "unicode" and "class" directives.
2252 * docutils/parsers/rst/directives/parts.py:
2254 - Added the "sectnum" directive; by Dmitry Jemerov.
2255 - Added "class" option to "contents" directive.
2257 * docutils/parsers/rst/directives/references.py: Added to project.
2258 Contains the "target-notes" directive.
2260 * docutils/parsers/rst/languages/__init__.py:
2262 - Return ``None`` from get_language() for missing language modules.
2264 * docutils/parsers/rst/languages/de.py: Added to project; German
2265 mappings by Engelbert Gruber.
2267 * docutils/parsers/rst/languages/en.py:
2269 - Added interpreted text roles mapping.
2271 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2272 mappings by Marcelo Huerta San Martin.
2274 * docutils/parsers/rst/languages/fr.py: Added to project; French
2275 mappings by William Dode.
2277 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2278 mappings by Nicola Larosa.
2280 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2281 mappings by Miroslav Vasko.
2283 * docutils/readers/__init__.py:
2285 - Added support for the observer pattern from ``utils.Reporter``, in
2286 ``Reader.parse`` and ``Reader.transform``.
2287 - Removed ``Reader.transform()`` method.
2288 - Added default parameter values to ``Reader.__init__()`` to make
2289 instantiation easier.
2290 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2292 * docutils/readers/pep.py:
2294 - Added the ``peps.TargetNotes`` transform to the Reader.
2295 - Removed PEP & RFC reference detection code; moved to
2296 parsers/rst/states.py as options (enabled here by default).
2297 - Added support for pre-acceptance PEPs (no PEP number yet).
2298 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2301 * docutils/readers/python: Python Source Reader subpackage added to
2302 project, including preliminary versions of:
2305 - moduleparser.py: Parser for Python modules.
2307 * docutils/transforms/__init__.py:
2309 - Added ``Transformer`` class and completed transform reform.
2310 - Added unknown_reference_resolvers list for each transformer. This list holds
2311 the list of functions provided by each component of the transformer that
2312 help resolve references.
2314 * docutils/transforms/frontmatter.py:
2316 - Improved support for generic fields.
2317 - Fixed bibliographic field language lookups.
2319 * docutils/transforms/misc.py: Added to project. Miscellaneous
2322 * docutils/transforms/parts.py:
2324 - Moved the "id" attribute from TOC list items to the references
2325 (``Contents.build_contents()``).
2326 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2327 - Added "class" attribute support to ``Contents``.
2329 * docutils/transforms/peps.py:
2331 - Added ``mask_email()`` function, updating to pep2html.py's
2333 - Linked "Content-Type: text/x-rst" to PEP 12.
2334 - Added the ``TargetNotes`` PEP-specific transform.
2335 - Added ``TargetNotes.cleanup_callback``.
2336 - Added title check to ``Headers``.
2338 * docutils/transforms/references.py:
2340 - Added the ``TargetNotes`` generic transform.
2341 - Split ``Hyperlinks`` into multiple transforms.
2342 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2343 - Added check for circular indirect references.
2344 - Made substitutions case-sensitive-but-forgiving.
2346 * docutils/transforms/universal.py:
2348 - Added support for the "--expose-internal-attributes" option.
2349 - Removed ``Pending`` transform classes & data.
2351 * docutils/writers/__init__.py:
2353 - Removed ``Writer.transform()`` method.
2355 * docutils/writers/docutils-xml.py:
2357 - Added XML and doctype declarations.
2358 - Added "--no-doctype" and "--no-xml-declaration" options.
2360 * docutils/writers/html4css1.py:
2362 - "name" attributes only on these tags: a, applet, form, frame,
2364 - Added "name" attribute to <a> in section titles for Netscape 4
2365 support (bug report: Pearu Peterson).
2366 - Fixed targets (names) on footnote, citation, topic title,
2367 problematic, and system_message nodes (for Netscape 4).
2368 - Changed field names from "<td>" to "<th>".
2369 - Added "@" to "@" encoding to thwart address harvesters.
2370 - Improved the vertical whitespace optimization; ignore "invisible"
2371 nodes (targets, comments, etc.).
2372 - Improved inline literals with ``<span class="pre">`` around chunks
2373 of text and `` `` for runs of spaces.
2374 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2375 ``self.docinfo`` segments.
2376 - Added support for "line_block", "address" elements.
2377 - Improved backlinks (footnotes & system_messages).
2378 - Improved system_message output.
2379 - Redefined "--stylesheet" as containing an invariant URL, used
2380 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2382 - Added "--footnote-references" option (superscript or brackets).
2383 - Added "--compact-lists" and "--no-compact-lists" options.
2384 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2385 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2386 - Improved field list rendering.
2387 - Added Docutils version to "generator" meta tag.
2388 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2389 - Improved layout of <pre> HTML source.
2390 - Fixed attribute typo on <colspec>.
2391 - Refined XML prologue.
2392 - Support for no stylesheet.
2393 - Removed "interpreted" element support.
2394 - Added support for "title_reference", "sidebar", "attribution",
2395 "rubric", and generic "admonition" elements.
2396 - Added "--attribution" option.
2397 - Added support for "inline", "subscript", "superscript" elements.
2398 - Added initial support for "abbreviation" and "acronym";
2401 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2405 - Double quotes in literal blocks (special treatment for de/ngerman).
2406 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2407 - Added "--attribution" option.
2408 - Right align attributions.
2410 * docutils/writers/pep_html.py:
2412 - Parameterized output encoding in PEP template.
2413 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2414 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2415 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2417 - Added an override on the "--footnote-references" option.
2418 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2419 - Added Docutils version to "generator" meta tag.
2420 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2424 - Added a "silent" setting for ``buildhtml.py``.
2425 - Added a "Getting Help" section.
2426 - Rearranged the structure.
2427 - Kept up to date, with new settings, command-line options etc.
2428 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2429 - Converted settings table into a definition list.
2431 * docs/rst/quickstart.txt:
2433 - Added a table of contents.
2434 - Added feedback information.
2435 - Added mention of minimum section title underline lengths.
2436 - Removed the 4-character minimum for section title underlines.
2438 * docs/rst/quickref.html:
2440 - Added a "Getting Help" section.
2441 - Added a style to make section title backlinks more subtle.
2442 - Added mention of minimum section title underline lengths.
2443 - Removed the 4-character minimum for section title underlines.
2445 * extras: Directory added to project; contains third-party modules
2446 that Docutils depends on (optparse, textwrap, roman). These are
2447 only installed if they're not already present.
2449 * licenses: Directory added to project; contains copies of license
2450 files for non-public-domain files.
2454 - Changed the focus. It's about DTD elements: structural
2455 relationships, semantics, and external (public) attributes. Not
2456 about the element class library.
2457 - Moved some implementation-specific stuff into ``docutils.nodes``
2459 - Wrote descriptions of all common attributes and parameter
2460 entities. Filled in introductory material.
2461 - Working through the element descriptions: 55 down, 37 to go.
2462 - Removed "Representation of Horizontal Rules" to
2463 spec/rst/alternatives.txt.
2465 * spec/docutils.dtd:
2467 - Added "generated" inline element.
2468 - Added "line_block" body element.
2469 - Added "auto" attribute to "title".
2470 - Changed content models of "literal_block" and "doctest_block" to
2472 - Added ``%number;`` attribute type parameter entity.
2473 - Changed ``%structural.elements;`` to ``%section.elements``.
2474 - Updated attribute types; made more specific.
2475 - Added "address" bibliographic element.
2476 - Added "line" attribute to ``system_message`` element.
2477 - Removed "field_argument" element; "field_name" may contain
2478 multiple words and whitespace.
2479 - Changed public identifier to docutils.sf.net.
2480 - Removed "interpreted" element; added "title_reference",
2481 "abbreviation", "acronym".
2482 - Removed "refuri" attribute from "footnote_reference" and
2483 "citation_reference".
2484 - Added "sidebar", "rubric", "attribution", "admonition",
2485 "superscript", "subscript", and "inline" elements.
2487 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2489 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2491 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2493 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2496 * spec/transforms.txt: Added to project.
2498 * spec/howto: Added subdirectory, for developer how-to docs.
2500 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2501 Elza, edited & extended by David Goodger.
2503 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2506 * spec/rst/alternatives.txt:
2508 - Added "Doctree Representation of Transitions" from
2510 - Updated "Inline External Targets" & closed the debate.
2511 - Added ideas for interpreted text syntax extensions.
2512 - Added "Nested Inline Markup" section.
2514 * spec/rst/directives.txt:
2516 - Added directives: "topic", "sectnum", "target-notes",
2517 "line-block", "parsed-literal", "include", "replace", "sidebar",
2518 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2520 - Formalized descriptions of directive details.
2521 - Added an "align" attribute to the "image" & "figure" directives
2522 (by Adam Chodorowski).
2523 - Added "class" options to "topic", "sidebar", "line-block",
2524 "parsed-literal", "contents", and "image"; and "figclass" to
2527 * spec/rst/interpreted.txt: Added to project. Descriptions of
2528 interpreted text roles.
2530 * spec/rst/introduction.txt:
2532 - Added pointers to material for new users.
2534 * spec/rst/reStructuredText.txt:
2536 - Disambiguated comments (just add a newline after the "::").
2537 - Updated enumerated list description; added a discussion of the
2538 second-line validity checking.
2539 - Updated directive description.
2540 - Added a note redirecting newbies to the user docs.
2541 - Expanded description of inline markup start-strings in non-markup
2543 - Removed field arguments and made field lists a generic construct.
2544 - Removed the 4-character minimum for section title underlines.
2545 - Clarified term/classifier delimiter & inline markup ambiguity
2547 - Added "Embedded URIs".
2548 - Updated "Interpreted Text" section.
2549 - Added "Character-Level Inline Markup" section.
2551 * test: Continually adding & updating tests.
2553 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2554 - Moved test/test_pep/ to test/test_readers/test_pep/.
2555 - Added test/test_readers/test_python/.
2556 - Added test/test_writers/ (Engelbert Gruber).
2560 - Made the ``locale.setlocale()`` calls in front ends
2563 * tools/buildhtml.py:
2565 - Added "--silent" option.
2566 - Fixed bug with absolute paths & "--config".
2567 - Updated for new I/O classes.
2568 - Added some exception handling.
2569 - Separated publishers' setting defaults; prevents interference.
2570 - Updated for new ``publish_file()`` convenience function.
2572 * tools/pep-html-template:
2574 - Allow for "--embed-stylesheet".
2575 - Added Docutils version to "generator" meta tag.
2576 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2577 - Conform to XHTML spec.
2579 * tools/pep2html.py:
2581 - Made ``argv`` a parameter to ``main()``.
2582 - Added support for "Content-Type:" header & arbitrary PEP formats.
2583 - Linked "Content-Type: text/plain" to PEP 9.
2584 - Files skipped (due to an error) are not pushed onto the server.
2585 - Updated for new I/O classes.
2586 - Added ``check_requirements()`` & ``pep_type_error()``.
2587 - Added some exception handling.
2588 - Updated for new ``publish_string()`` convenience function.
2589 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2591 * tools/quicktest.py:
2593 - Added "-V"/"--version" option.
2595 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2597 * tools/unicode2rstsubs.py: Added to project. Produces character
2598 entity files (reSructuredText substitutions) from the MathML master
2601 * tools/editors: Support code for editors, added to project. Contains
2602 ``emacs/restructuredtext.el``.
2604 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2606 - Added style for chunks of inline literals.
2607 - Removed margin for first child of table cells.
2608 - Right-aligned field list names.
2609 - Support for auto-numbered section titles in TOCs.
2610 - Increased the size of inline literals (<tt>) in titles.
2611 - Restored the light gray background for inline literals.
2612 - Added support for "line_block" elements.
2613 - Added style for "address" elements.
2614 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2615 - Improved field list rendering.
2616 - Vertical whitespace improvements.
2617 - Removed "a.target" style.
2619 * tools/stylesheets/pep.css:
2621 - Fixed nested section margins.
2622 - Other changes parallel those of ``../default.css``.
2625 Release 0.2 (2002-07-31)
2626 ========================
2630 - The word "component" was being used ambiguously. From now on,
2631 "component" will be used to mean "Docutils component", as in Reader,
2632 Writer, Parser, or Transform. Portions of documents (Table of
2633 Contents, sections, etc.) will be called "document parts".
2634 - Did a grand renaming: a lot of ``verylongnames`` became
2635 ``very_long_names``.
2636 - Cleaned up imports: no more relative package imports or
2637 comma-separated lists of top-level modules.
2638 - Added support for an option values object which carries default
2639 settings and overrides (from command-line options and library use).
2640 - Added internal Unicode support, and support for both input and
2642 - Added support for the ``docutils.io.IO`` class & subclasses.
2646 * docutils/__init__.py:
2648 - Added ``ApplicationError`` and ``DataError``, for use throughout
2650 - Added ``Component`` base class for Docutils components; implements
2651 the ``supports`` method.
2652 - Added ``__version__`` (thus, ``docutils.__version__``).
2656 - Removed many keyword parameters to ``Publisher.__init__()`` and
2657 ``publish()``; bundled into an option values object. Added
2658 "argv", "usage", "description", and "option_spec" parameters for
2659 command-line support.
2660 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2662 - Reworked I/O model for ``docutils.io`` wrappers.
2663 - Updated ``Publisher.set_options()``; now returns option values
2665 - Added support for configuration files (/etc/docutils.conf,
2666 ./docutils.conf, ~/.docutils).
2667 - Added ``Publisher.setup_option_parser()``.
2668 - Added default usage message and description.
2670 * docutils/frontend.py: Added to project; support for front-end
2671 (command-line) scripts. Option specifications may be augmented by
2672 components. Requires Optik (http://optik.sf.net/) for option
2673 processing (installed locally as docutils/optik.py).
2675 * docutils/io.py: Added to project; uniform API for a variety of input
2678 * docutils/nodes.py:
2680 - Added ``TreeCopyVisitor`` class.
2681 - Added a ``copy`` method to ``Node`` and subclasses.
2682 - Added a ``SkipDeparture`` exception for visitors.
2683 - Renamed ``TreePruningException`` from ``VisitorException``.
2684 - Added docstrings to ``TreePruningException``, subclasses, and
2686 - Improved docstrings.
2687 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2688 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2690 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2691 ``PreDecorative`` mixin.
2692 - Reworked the name/id bookkeeping; to ``document``, removed
2693 ``explicit_targets`` and ``implicit_targets`` attributes, added
2694 ``nametypes`` attribute and ``set_name_id_map`` method.
2695 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2697 - Added ``document.has_name()`` method.
2698 - Fixed DOM generation for list-attributes.
2699 - Added category class ``Labeled`` (used by footnotes & citations).
2700 - Added ``Element.set_class()`` method (sets "class" attribute).
2702 * docutils/optik.py: Added to project. Combined from the Optik
2703 package, with added option groups and other modifications. The use
2704 of this module is probably only temporary.
2706 * docutils/statemachine.py:
2708 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2709 - Added underscores to improve many awkward names.
2710 - In ``string2lines()``, changed whitespace normalizing translation
2711 table to regexp; restores Python 2.0 compatibility with Unicode.
2713 * docutils/urischemes.py:
2715 - Filled in some descriptions.
2716 - Added "shttp" scheme.
2718 * docutils/utils.py:
2720 - Added ``clean_rcs_keywords`` function (moved from
2721 docutils/transforms/frontmatter.py
2722 ``DocInfo.filter_rcs_keywords``).
2723 - Added underscores to improve many awkward names.
2724 - Changed names of Reporter's thresholds:
2725 warning_level -> report_level; error_level -> halt_level.
2726 - Moved ``utils.id()`` to ``nodes.make_id()``.
2727 - Added ``relative_path(source, target)``.
2729 * docutils/languages/de.py: German mappings; added to project. Thanks
2730 to Gunnar Schwant for the translations.
2732 * docutils/languages/en.py: Added "Dedication" bibliographic field
2735 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2738 * docutils/parsers/rst/states.py:
2740 - Added underscores to improve many awkward names.
2741 - Added RFC-2822 header support.
2742 - Extracted the inline parsing code from ``RSTState`` to a separate
2743 class, ``Inliner``, which will allow easy subclassing.
2744 - Made local bindings for ``memo`` container & often-used contents
2745 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2746 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2747 - Added ``MarkupMismatch`` exception; for late corrections.
2748 - Added ``-/:`` characters to inline markup's start string prefix,
2749 ``/`` to end string suffix.
2750 - Fixed a footnote bug.
2751 - Fixed a bug with literal blocks.
2752 - Applied patch from Simon Budig: simplified regexps with symbolic
2753 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2754 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2755 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2756 - Allowed non-ASCII in "simple names" (directive names, field names,
2758 - Converted ``Inliner.patterns.initial`` to be dynamically built
2759 from parts with ``build_regexp()`` function.
2760 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2761 - Updated docstrings.
2762 - Changed "table" to "grid_table"; added "simple_table" support.
2764 * docutils/parsers/rst/tableparser.py:
2766 - Changed ``TableParser`` to ``GridTableParser``.
2767 - Added ``SimpleTableParser``.
2768 - Refactored naming.
2770 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2771 a fallback language for directive names.
2773 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2774 directive to use a ``pending`` element, used only by HTML writers.
2776 * docutils/parsers/rst/directives/parts.py: Renamed from
2779 - Added "backlinks" attribute to "contents" directive.
2781 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2782 project by Adam Chodorowski.
2784 * docutils/readers/__init__.py: Gave Readers more control over
2785 choosing and instantiating Parsers.
2787 * docutils/readers/pep.py: Added to project; for PEP processing.
2789 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2790 requires a ``component`` parameter.
2792 * docutils/transforms/components.py: Added to project; transforms
2793 related to Docutils components.
2795 * docutils/transforms/frontmatter.py:
2797 - In ``DocInfo.extract_authors``, check for a single "author" in an
2798 "authors" group, and convert it to a single "author" element.
2799 - Added support for "Dedication" and generic bibliographic fields.
2801 * docutils/transforms/peps.py: Added to project; PEP-specific.
2803 * docutils/transforms/parts.py: Renamed from old components.py.
2805 - Added filter for `Contents`, to use alt-text for inline images,
2806 and to remove inline markup that doesn't make sense in the ToC.
2807 - Added "name" attribute to TOC topic depending on its title.
2808 - Added support for optional TOC backlinks.
2810 * docutils/transforms/references.py: Fixed indirect target resolution
2811 in ``Hyperlinks`` transform.
2813 * docutils/transforms/universal.py:
2815 - Changed ``Messages`` transform to properly filter out system
2816 messages below the warning threshold.
2817 - Added ``Decorations`` transform (support for ``--generator``,
2818 ``--date``, ``--time``, ``--source-link`` options).
2820 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2821 Engelbert Gruber's PDF writer.
2823 * docutils/writers/html4css1.py:
2825 - Made XHTML-compatible (switched to lowercase element & attribute
2826 names; empty tag format).
2827 - Escape double-dashes in comment text.
2828 - Improved boilerplate & modularity of output.
2829 - Exposed modular output in Writer class.
2830 - Added a "generator" meta tag to <head>.
2831 - Added support for the ``--stylesheet`` option.
2832 - Added support for ``decoration``, ``header``, and ``footer``
2834 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2835 translation table to regexp; restores Python 2.0 compatibility
2837 - Added the translator class as instance variable to the Writer, to
2838 make it easily subclassable.
2839 - Improved option list spacing (thanks to Richard Jones).
2840 - Modified field list output.
2841 - Added backlinks to footnotes & citations.
2842 - Added percentage widths to "<col>" tags (from colspec).
2843 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2844 "<span>" changed to "<var>".
2845 - Inline literals: "<code>" changed to "<tt>".
2846 - Many changes to optimize vertical space: compact simple lists etc.
2847 - Add a command-line options & directive attributes to control TOC
2848 and footnote/citation backlinks.
2849 - Added support for optional footnote/citation backlinks.
2850 - Added support for generic bibliographic fields.
2851 - Identify backrefs.
2852 - Relative URLs for stylesheet links.
2854 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2855 PEPs (subclass of ``html4css1.Writer``).
2857 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2859 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2860 of the Docutils internal doctree in XML.
2862 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2866 - Changed the title to "The Docutils Document Tree".
2867 - Added "Hyperlink Bookkeeping" section.
2869 * spec/docutils.dtd:
2871 - Added ``decoration``, ``header``, and ``footer`` elements.
2872 - Brought ``interpreted`` element in line with the parser: changed
2873 attribute "type" to "role", added "position".
2874 - Added support for generic bibliographic fields.
2876 * spec/notes.txt: Continual updates. Added "Project Policies".
2878 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2881 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2883 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2884 mailing list discussions.
2886 * spec/pep-0287.txt:
2888 - Renamed to "reStructuredText Docstring Format".
2890 - Reworked Q&A as an enumerated list.
2891 - Converted to reStructuredText format.
2893 * spec/pysource.dtd:
2895 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2897 * spec/pysource.txt: Removed from project. Moved much of its contents
2900 * spec/rst/alternatives.txt:
2902 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2903 - Added "Inline External Targets" section.
2905 * spec/rst/directives.txt:
2907 - Added "backlinks" attribute to "contents" directive.
2909 * spec/rst/problems.txt:
2911 - Updated the Enumerated List Markup discussion.
2912 - Added new alternative table markup syntaxes.
2914 * spec/rst/reStructuredText.txt:
2916 - Clarified field list usage.
2917 - Updated enumerated list description.
2918 - Clarified purpose of directives.
2919 - Added ``-/:`` characters to inline markup's start string prefix,
2920 ``/`` to end string suffix.
2921 - Updated "Authors" bibliographic field behavior.
2922 - Changed "inline hyperlink targets" to "inline internal targets".
2923 - Added "simple table" syntax to supplement the existing but
2924 newly-renamed "grid tables".
2925 - Added cautions for anonymous hyperlink use.
2926 - Added "Dedication" and generic bibliographic fields.
2928 * test: Made test modules standalone (subdirectories became packages).
2930 * test/DocutilsTestSupport.py:
2932 - Added support for PEP extensions to reStructuredText.
2933 - Added support for simple tables.
2934 - Refactored naming.
2936 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2938 - Now supports true packages containing test modules
2939 (``__init__.py`` files required); fixes duplicate module name bug.
2941 * test/test_pep/: Subpackage added to project; PEP testing.
2943 * test/test_rst/test_SimpleTableParser.py: Added to project.
2947 - Updated html.py and publish.py front-end tools to use the new
2948 command-line processing facilities of ``docutils.frontend``
2949 (exposed in ``docutils.core.Publisher``), reducing each to just a
2951 - Added ``locale.setlocale()`` calls to front-end tools.
2953 * tools/buildhtml.py: Added to project; batch-generates .html from all
2954 the .txt files in directories and subdirectories.
2956 * tools/default.css:
2958 - Added support for ``header`` and ``footer`` elements.
2959 - Added styles for "Dedication" topics (biblio fields).
2961 * tools/docutils.conf: A configuration file; added to project.
2963 * tools/docutils-xml.py: Added to project.
2965 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2967 * tools/pep-html-template: Added to project.
2969 * tools/pep2html.py: Added to project from Python (nondist/peps).
2970 Added support for Docutils (reStructuredText PEPs).
2972 * tools/quicktest.py:
2974 - Added the ``--attributes`` option, hacked a bit.
2975 - Added a second command-line argument (output file); cleaned up.
2977 * tools/stylesheets/: Subdirectory added to project.
2979 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2982 Release 0.1 (2002-04-20)
2983 ========================
2985 This is the first release of Docutils, merged from the now inactive
2986 reStructuredText__ and `Docstring Processing System`__ projects. For
2987 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2988 `DPS HISTORY`__ files.
2990 __ http://structuredtext.sourceforge.net/
2991 __ http://docstring.sourceforge.net/
2992 __ http://structuredtext.sourceforge.net/HISTORY.html
2993 __ http://docstring.sourceforge.net/HISTORY.html
2995 General changes: renamed 'dps' package to 'docutils'; renamed
2996 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2997 the test suites (reStructuredText's test/test_states renamed to
2998 test/test_rst); and all modifications required to make it all work.
3000 * docutils/parsers/rst/states.py:
3002 - Improved diagnostic system messages for missing blank lines.
3003 - Fixed substitution_reference bug.
3009 indent-tabs-mode: nil
3010 sentence-end-double-space: t