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.
19 * docutils/writers/latex2e/__init__.py
21 - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
22 admonitions and docinfo.
24 * docutils/parsers/rst/directives/tables.py
26 - patch [120] tables accept option widths: list of relative widths, 'auto'
29 * docutils/writers/odf_odt/__init__.py remove decode.encode of filename
32 Release 0.12 (2014-07-06)
33 =========================
35 * docs/ref/rst/directives.txt
37 - Update "math" and "csv-table" descriptions.
39 * docutils/parsers/rst/directives/images.py
41 - Fix [ 258 ] figwidth="image" generates unitless width value.
43 * docutils/parsers/rst/states.py
45 - Improve error report when a non-ASCII character is specified as
46 delimiter, quote or escape character under Python 2.
47 Fixes [ 249 ] and [ 250 ].
49 * docutils/writers/html4css1/__init__.py
51 - Don't add newline after inline math.
52 Thanks to Yury G. Kudryashov for the patch.
54 * docutils/writers/latex2e/__init__.py
56 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
57 - Apply [ 116 ] by Kirill Smelkov. Don't hardcode \large for subtitle.
59 * docutils/writers/odf_odt/__init__.py
61 - Apply patch by Jakub Wilk to fix bug [ 100 ].
63 * test/test_error_reporting.py
65 - Fix [ 223 ] by removing redundant tests we do not have control over.
69 - Apply [ 115 ] respect fixed 2to3 string literal conversion behavior.
71 Release 0.11 (2013-07-22)
72 =========================
76 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
77 - Support embedded aliases within hyperlink references.
78 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
79 language module) before global search.
83 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
85 * docutils/parsers/rst/directives/__init__.py
87 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
89 * docutils/parsers/rst/directives/images.py
91 - Apply [ 3599485 ] node source/line information for sphinx translation.
93 * docutils/parsers/rst/directives/tables.py
95 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
97 * docutils/parsers/rst/states.py
99 - Fix [ 157 ] Line block parsing doesn't like system message.
100 - Always import our local copy of roman.py (report Larry Hastings).
102 * docutils/transforms/references.py
104 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
106 * docutils/utils/__init__.py
108 - Fix [ 3596884 ] exception importing ``docutils.io``.
110 * docutils/writers/html4css1/__init__.py
112 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
113 - New setting `stylesheet_dirs`: Comma-separated list of directories
114 where stylesheets are found. Used by `stylesheet_path` when expanding
115 relative path arguments.
116 - New default for math-output_: ``HTML math.css``.
117 - Avoid repeated class declarations in html4css1 writer
118 (modified version of patch [ 104 ]).
120 .. _math-output: docs/user/config.html#math-output
122 * docutils/writers/latex2e/__init__.py
124 - Drop the simple algorithm replacing straight double quotes with
125 English typographic ones.
126 Activate the SmartQuotes_ transform if you want this feature.
127 - Fix literal use of babel shorthands (straight quote, tilde, ...).
128 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
129 - New setting `stylesheet_dirs`.
131 .. _SmartQuotes: docs/user/config.html#smart-quotes
133 * docutils/writers/manpage.py
135 - Fix [3607063] handle lines starting with a period.
136 - Fix option separating comma was bold (thanks to Bill Morris).
138 Release 0.10 (2012-12-16)
139 =========================
143 - Dropped support for Python 2.3.
144 - ``docutils/math``, ``docutils/error_reporting.py``, and
145 ``docutils/urischemes.py`` moved to the utils package.
146 - Fix [3541369] Relative __import__ also with Python 3.3.
147 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
148 and parsers for Python 2.7 up.
149 - Fix import of PIL.Image.
150 - Change default of "syntax highlight" option to "long",
151 basic syntax highlight styles for LaTeX and HTML.
155 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
156 option is ignored and will be removed in a future release.
157 - Fix Py3k error writing to stdout with encoding differing from default.
158 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
160 * docutils/parsers/rst/directives/misc.py
162 - Fix [ 3546533 ] Unicode error with `date` directive.
164 * docutils/transforms/universal.py
166 - SmartQuotes transform for typographic quotes and dashes.
168 * docutils/utils/__init__.py
170 - normalize_language_tag() now returns `BCP 47`_ conformant tags
171 with subtags separated by ``-``.
173 * docutils/writers/html4css1/__init__.py
175 - Use ``<code>`` tag for inline "code",
176 do not drop nested inline nodes (syntax highlight tokens).
177 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
178 - No line break after opening inline math tag.
180 * docutils/writers/manpage.py
182 - Apply [ 3527401 ] addmonition's don't preserve indentation
183 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
185 , docutils/writers/xetex/__init__.py
187 - Apply [ 3555160 ] ensure order of "otherlanguages".
188 - Fix section numbering by LaTeX.
190 * docutils/writers/s5_html/__init__.py
192 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
194 * docutils/writers/s5_html/docutils_xml.py
196 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
200 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
202 * tools/test/test_buildhtml.py
204 - Fix [ 3521167 ] allow running in any directory.
205 - Fix [ 3521168 ] allow running with Python 3.
208 Release 0.9.1 (2012-06-17)
209 ==========================
213 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
214 installed in the PYTHONPATH. Converted tests are now
215 stored in ``test3/``, tools no longer need conversion.
217 If you installed one of Docutils versions 0.7 ... 0.9 with
218 ``setup.py install`` under Python 3, remove the spurious
219 ``test/`` and ``tools/`` directories in the site library root.
223 - Make tests independent from the location of the ``test/`` directory.
224 - Use converted sources (from the ``build/`` directory) for tests under
229 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
233 - Fix writing binary data to sys.stdout under Python 3 (allows
234 ``rst2odt.py`` to be used with output redirection).
236 * docutils/parsers/rst/directives/misc.py
238 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
239 ``locale == C`` and 8-bit char in path argument of `include` directive.
243 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
246 Release 0.9 (2012-05-02)
247 ========================
251 - New reStructuredText "code" role and directive and "code" option
252 of the "include" directive with syntax highlighting by Pygments_.
253 - Fix parse_option_marker for option arguments containing ``=``.
254 - Fix [ 2993756 ]: import Python Imaging Library's Image module
255 via ``import PIL`` as starting with PIL 1.2,
256 "PIL lives in the PIL namespace only" (announcement__).
258 .. _Pygments: http://pygments.org/
259 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
263 - Fix [ 2971827 ] and [ 3442827 ]
264 extras/roman.py moved to docutils/utils/roman.py
266 * docutils/frontend.py
268 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
272 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
273 - `mode` argument for FileOutput avoids code replication in
275 - New exceptions InputError and OutputError for IO errors in
276 FileInput/FileOutput.
280 - No "hard" system exit on file IO errors: catch and report them in
281 `Publisher.reportException` instead. Allows handling by a calling
282 application if the configuration setting `traceback` is True.
284 * docutils/utils.py -> docutils/utils/__init__.py
286 - docutils.utils is now a package (providing a place for sub-modules)
288 .. note:: docutils/math, docutils/error_reporting.py, and
289 docutils/urischemes.py will move to the utils package in the next
290 release, too. See RELEASE-NOTES__
292 __ RELEASE-NOTES.html
294 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
295 errors recording non-ASCII filenames (fixes [ 3434355 ]).
297 - Fix relative_path() with source=None and `unicode` target.
299 * docutils/parsers/rst/states.py
301 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
302 characters and "international" quotes around inline markup.
303 - Use `field_marker` pattern to look for start of a
304 directive option block (fixes [ 3484857 ]).
306 * docutils/parsers/rst/tableparser.py
308 - Fix [ 2926161 ] for simple tables.
309 (Combining chars in grid tables still contribute to cell width.)
311 * docutils/writers/latex2e/__init__.py
313 - Support the `abbreviation` and `acronym` standard roles.
314 - Record only files required to generate the LaTeX source as dependencies.
315 - Fix handling of missing stylesheets.
316 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
317 when suppressing LaTeX section numbering.
318 - Use ``\DUtitle`` for unsupported section levels
319 - Apply [ 3512791 ] do not compare string literals with "is"
321 * docutils/writers/xetex/__init__.py
323 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
325 * docutils/writers/html4css1/__init__.py
327 - Change default for `math-output` setting to MathJax.
328 - Fix handling of missing stylesheets.
330 * docutils/writers/docutils_xml.py
332 - Use the visitor pattern with default_visit()/default_depart() methods
333 instead of minidom to facilitate special handling of selected nodes.
334 - Support raw XML (inserted as-is inside a <raw></raw> node).
336 * docutils/writers/manpage.py
338 - Do not emit comment line with trailing blank. Problematic for VCS.
340 Release 0.8.1 (2011-08-30)
341 ==========================
345 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
346 and [ 3395920 ] (correct copyright info for rst.el).
350 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
352 * docutils/writers/latex2e/__init__.py
354 - Clean up Babel language setting. Restores Sphinx compatibility.
356 Release 0.8 (2011-07-07)
357 ========================
361 - Handle language codes according to `BCP 47`_.
362 - If the specified language is not supported by Docutils,
363 warn and fall back to English.
364 - Math support: reStructuredText "math" role and directive,
365 ``math`` and ``math_block`` doctree elements.
366 - Decode command line arguments with the locale's preferred encoding
367 (to allow, e.g., ``--title=Dornröschen``).
368 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
369 - New sub-module `error_reporting`: handle encoding/decoding errors
370 when reporting exceptions.
371 - Some additions to the Docutils core are released under the 2-Clause BSD
372 license, see COPYING_ for details.
374 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
375 .. _COPYING: COPYING.html
379 - Most directives now support a "name" option that attaches a
382 - Directive content may start on the first line also when the directive
383 type accepts options.
385 * docs/dev/policies.txt:
387 - Recommend the 2-Clause BSD license
388 (http://www.spdx.org/licenses/BSD-2-Clause)
389 for code that is kept under the author's copyright.
391 * tools/buildhtml.py:
393 - Fix ``--local`` switch.
395 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
397 * docutils/writers/html4css1/__init__.py
399 - Set "lang" argument for objects with class argument
400 "language-<language tag>".
401 - New setting "math-output" with support for HTML, MathML, and LaTeX.
403 * docutils/writers/latex2e/__init__.py
405 - Fix [ 3043986 ] AttributeError using :local: with table of content.
406 - Place title data in the document preamble.
407 - Load `babel` package only if required.
408 - Update list of supported languages.
409 - New config setting "hyperref-options".
410 No hard-coded "unicode" hyperref option (clash with xetex).
411 - Set language for custom roles, paragraphs, block-quotes, and
412 line-quotes with class argument "language-<language tag>".
413 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
414 - Convert image URI to a local file path.
415 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
416 has more than one paragraph (Wolfgang Scherer).
417 - \leavevmode before longtable only when needed (prevents spurious vspace)
418 - do not advance table counter for tables without caption
420 * docutils/writers/xetex/__init__.py
422 - New writer generating LaTeX code for compiling with ``xelatex``.
424 A separate writer (inheriting from latex2e) instead of a ``--xetex``
425 option allows separate config options for XeTeX vs. LaTeX2e.
427 * docutils/writers/manpage.py
429 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
430 - Fix: vertical space cleaning for option group ``.``.
432 * tools/editors/emacs/rst.el:
434 - Fix [ 3001100 ] does not handle spaces in filenames
435 (thanks to Jakub Wilk)
439 - strip whitespace from stylesheet arguments
440 - exclude combining chars from column_width()
441 (partial fix for [ 2926161 ])
443 * docutils/parsers/rst/directives/misc.py:
445 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
450 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
451 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
453 Release 0.7 (2010-07-07)
454 ========================
458 - Fix [ 2881769 ] setup configuration.
459 - Fix [ 2788716 ] reporting problems in included files.
463 - FileInput opens files as text files with universal newline support
464 (mode "rU", configurable with the new optional argument "mode").
468 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
472 - Fix [ 2923723 ] let decode_path() tolerate path == None
474 * docutils/writers/html4css1/__init__.py
476 - Support SVG and SWF images (thanks to Stefan Rank).
477 - Generate valid XHTML for centered images with targets.
478 Use CSS classes instead of "align" tags for image alignment.
480 * docutils/writers/latex2e/__init__.py
482 - Use `transforms.writer_aux.Admonitions` to "normalize" special
484 - Use the ``\url`` command for URLs (breaks long URLs instead of
485 writing into the margin).
486 - Preserve runs of spaces in `inline literals`__.
487 - Deprecate ``figure_footnotes`` setting.
488 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
489 - New ``latex_preamble`` setting.
490 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
491 - Fix hyperlink targets (labels) for images, figures, and tables.
492 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
493 - Apply [ 2961991 ] Call hyperref with unicode option.
494 - Drop the special `output_encoding`__ default ("latin-1").
495 The Docutils wide default (usually "UTF-8") is used instead.
496 - Render inline markup in document title and subtitle.
497 - Fix numbering depth with LaTeX section numbering.
498 - Update Unicode -> LaTeX translations.
499 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
501 __ docs/ref/restructuredtext.html#inline-literals
502 __ docs/user/config.html#docutils-footnotes
503 __ docs/user/config.html#output_encoding
505 * docutils/writers/manpage.py
507 - Fix: supported attribute (thanks to peter2108).
508 - Remove trailing blanks in code (keep in sync with mercurial version).
509 - Titles level 1, that is ``.SH``, always uppercase.
510 - Apply patch from mg: literal text should be bold in man-pages.
514 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
519 - Python 3 support: copy test/ and tools/ to the build-dir
520 and convert Python sources with 2to3.
523 Release 0.6 (2009-10-11)
524 ========================
528 - Docutils is now compatible with Python versions from 2.3 up to 2.6
529 and convertible to 3.1 code.
531 + Node.__nonzero__ returns True instead of 1.
532 + use os.walk instead os.path.walk.
533 + minimize "types" module where possible.
534 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
535 + Text nodes now subclass unicode rather than UserString
536 (which is gone in python 3.0).
537 + 3.0 compatibility module docutils._compat
539 + Drop 2.2 compatibility workarounds.
540 + Drop extras/optparse.py and extras/textwrap.py
541 (stdlib modules since 2.3).
543 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
544 - Unix man page export: manpage writer moved from sandbox to Doctutils
547 - Apply [ 1719345 ] Galician translation
548 - Apply [ 1905741 ] Polish translation
549 - Apply [ 1878977 ] make_id(): deaccent characters.
550 - Apply [ 2029251 ] return nonzero when tests fail.
551 - Fix [ 1692788 ] allow UTF-8 in style sheets.
552 - Fix [ 2781629 ] support non-ASCII chars in file names.
553 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
554 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
555 - Fix [ 2821266 ] --strict option works now like --halt=info.
556 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
557 - Fix [ 1627229 ] hyperlink references in substitutions.
559 - The "newlatex" writer is orphaned.
563 - Documented Unicode characters allowed as inline markup openers,
564 closers, and delimiters.
565 - Allow units for all length specifications.
566 - Allow percent sign in "scale" argument of "figure" and "image" directives.
567 - Bugfix: The "figalign" argument of a figure now works as intended
568 (aligning the figure, not its contents).
569 - Align images with class "align-[right|center|left]"
570 (allows setting the alignment of an image in a figure).
574 - Added ``Element.__contains__`` method, for the in-operator.
576 * docutils/parsers/rst/states.py:
578 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
579 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
580 " " (non-breaking space), and "¡ ¿" openers.
582 * docutils/parsers/directives/misc.py:
584 - Added ``start-line`` and ``end-line`` options to "include"
585 directive to select a range of lines.
586 - Hard tabs in literal inclusions are replaced by spaces. This is
587 configurable via the new ``tab-width`` option of the "include" directive
588 (a negative tab-width prevents tab expansion).
592 - Add ``get_stylesheet_list`` function.
593 - Apply [ 2834836 ] print info at halt
595 * docutils/transforms/universal.py:
597 - Raise default priority of StripClasses to exclude stripped classes from
600 * docutils/writers/html4css1/__init__.py:
602 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
603 separated list of stylesheets.
604 - Address [ 1938891 ] Inline literal text creates "pre" span only when
605 needed to prevent inter-word line wraps.
606 - Use `translate` method instead of repeated `replace` calls.
607 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
608 classes to allow CSS styling that does not interfere with other
609 table-using constructs (field lists, citations, ...).
611 * docutils/writers/newlatex2e/__init__.py:
613 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
615 * docutils/writers/latex2e/__init__.py (see also
616 `<docs/user/docutils-05-compat.sty.html>`__) :
618 - Add ``--embed-stylesheet`` option.
619 - Apply [ 1474017 ] image vertical alignment is reversed.
620 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
621 - Change: has_key for dictionaries (not Nodes) to in-operator.
622 - Merge adjacent citations into one latex cite command.
623 - Failsave implementation of custom roles. LaTeX compilation now ignores
624 unknown classes instead of aborting with an error.
625 - Support custom roles based on standard roles.
626 - LaTeX packages can be used as ``--stylesheet`` arguments without
627 restriction. (A style sheet is now referenced with the ``\usepackage``
628 command, if it ends with ``.sty`` or has no extension.)
629 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
630 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
631 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
632 2005-02-04 as a configurable length unit).
633 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
634 if font-encoding is set to ''. LaTeX defaults to OT1 then.
635 - Set sub- and superscript role argument in text mode not as math.
636 Use a custom role based on sub-/superscript if you want italic shape.
637 - Shorter preamble and less dependencies: Load packages and define macros
638 only if required in the document.
639 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
640 - New custom environments and commands with optional "classes" argument.
641 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
642 - Better conformance to Docutils specifications with ``--use-latex-toc``.
643 Support for LaTeX generated ToC also with unnumbered sections.
644 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
645 section numbering by LaTeX.
646 - Use default font in admonitions and sidebar.
647 - Align of image in a figure defaults to 'center'.
648 - Bugfix: Newlines around targets and references prevent run-together
650 - Fix internal hyperlinks.
651 - Use class defaults for page margins ('typearea' now optional).
652 - Float placement made configurable, default changed to "here definitely".
653 - Typeset generic topic as "quote block with title".
654 - Use template (file and configuration option).
655 - In the default template, load cmap.sty (fix text extraction in PDF) and
656 fixltx2e.sty (LaTeX patches, \textsubscript).
657 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
658 - Use `translate` instead of repeated `replace` calls for text encoding.
659 - Hyperlinked footnotes and support for symbol footnotes and
660 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
661 - Complete pairs of binary options
662 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
663 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
665 - font-encoding: "T1" (formerly implicitely set by 'ae').
666 - use-latex-toc: true (ToC with page numbers).
667 - use-latex-footnotes: true (no mixup with figures).
669 * docutils/writers/manpage.py
671 - Do not print version at document end, this is done by the viewer.
672 - Do not print date at document end, this is done by the viewer.
673 - Fix storage of docinfo fields for none standard fields.
675 * docutils/tools/rst2man.py
677 Release 0.5 (2008-06-25)
678 ========================
680 * docutils/languages/he.py: Added to project: Hebrew mappings by
683 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
684 mappings by Meir Kriheli.
686 * docutils/frontend.py:
688 - Configuration files are now assumed and required to be
690 - Paths of applied configuration files are now recorded in the
691 runtime setting ``_config_files`` (accessible via
692 ``--dump-settings``).
693 - Added ``--strip-elements-with-class`` and ``--strip-class``
694 options (``strip_elements_with_classes`` and ``strip_classes``
699 - Added code to determine the input encoding from data: encoding
700 declarations or the presence of byte order marks (UTF-8 & UTF-16).
701 - Added support for IronPython 1.0.
705 - Added ``document.__getstate__`` method, for pickling.
707 * docutils/parsers/rst/states.py:
709 - Allow ``+`` and ``:`` in reference names.
710 - Unquoted targets beginning with an underscore (``.. __target:
711 URI``) are no longer accepted.
712 - Added support for multiple attributions in a physical block quote
713 (indented text block), dividing it into multiple logical block
715 - Added support for unicode bullets in bullet lists: "•", "‣", and
717 - Added support for new object-oriented directive interface,
718 retaining compatibility to the old functional interface.
719 - Added support for throwing ``DirectiveError``'s from within
722 * docutils/parsers/rst/__init__.py:
724 - Added ``Directive`` base class.
725 - Added ``DirectiveError`` base class.
726 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
729 * docutils/parsers/directives/:
731 - Refactored all reStructuredText directives to use the new
732 object-oriented directive interface. Errors are now (mostly)
733 thrown using the new ``DirectiveError`` class.
735 * docutils/parsers/directives/misc.py:
737 - Added ``start-after`` and ``end-before`` options to ``include``
738 directive; thanks to Stefan Rank.
740 * docutils/transforms/universal.py:
742 - Added ``StripClassesAndElements`` transform to remove from the
743 document tree all elements with classes in
744 ``settings.strip_elements_with_classes`` and all "classes"
745 attribute values in ``self.document.settings.strip_classes``.
747 * docutils/transforms/writer_aux.py:
749 - Added ``Admonitions`` transform to transform specific admonitions
750 (like ``note``, ``warning``, etc.) into generic admonitions with a
753 * docutils/writers/html4css1/__init__.py:
755 - Moved template functionality from the PEP/HTML writer here.
756 - Expanded the fragments available in the ``parts`` attribute.
757 - Moved ``id`` attributes from titles to surrounding ``div``
759 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
760 universally supported now).
761 - ``template.txt`` is now opened in text mode instead of binary mode
762 (to ensure Windows compatibility).
763 - ``a`` elements now have an "internal" or "external" class,
764 depending on reference type.
766 * docutils/writers/html4css1/template.txt: Added to project.
768 * docutils/writers/pep_html/:
770 - Moved template functionality to the HTML writer.
772 * docutils/writers/s5_html/__init__.py:
774 - Added ``view_mode`` & ``hidden_controls`` settings
775 (``--view-mode`` & ``--hidden-controls/--visible-controls``
778 * docutils/writers/latex2e/__init__.py:
780 - Add ``--literal-block-env``
781 - Fix: escaping ``%`` in href urls.
782 - Move usepackage hyperref after stylesheet inclusion.
783 - Fix: scrartcl does not have chapter but scrreprt.
784 - Add newline after ``\end{verbatim}``.
785 - Merge smaller differences from latex2e_adaptive_preamble.
786 - Add ``use-part-section``.
787 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
788 - Using leavemode option_list no longer needs to check if parent
789 is a definition list.
790 - Append ``\leavemode`` to definition list terms.
791 - No longer write visit\_/depart_definition_list_item comments to
793 - Table column width with 3 decimal places.
794 - Add table stubs support (boldfont).
795 - Add assemble_parts to writer.
796 - Add simply support for nested tables.
797 - Fix verbatim in tables if use-verbatim-when-possible.
798 - Use section commands down to subparagraph.
799 - Put ensuremath around some latin1 chars.
800 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
801 - New option ``--use-bibtex=style,db1,db2``.
802 - New option ``--reference-label`` to allow usage of LaTeX ref for
803 labels in section references.
804 - Add a label after every section to support sectionnumbers as reference
806 - Fix: bug# 1605376 rst2latex: bad options group list
807 - Remove inactive code for use_optionlist_for_option_list.
808 - Remove latex comments from option_list output.
809 - Fix: bug# 1612270 double qoutes in italian literal.
810 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
811 - Add option --use-latex-abstract.
812 - Image width unit ``px`` is translated to ``pt``.
813 - Add image height support.
814 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
816 - Fix: Do not escape underscores in citation reference labels if
817 use-latex-citations is set.
818 - Use centering instead of center for figure contents, to avoid vertical
820 - Recognize table class: borderless, nolines, booktabs, standard.
821 - Fix: Renaming contents section does not work with latex writer; SF
823 - Applied patch for custom roles with classes from Edward Loper.
824 - Fixed bug that caused crashes with more than 256 lists.
826 * docutils/writers/pep_html/__init__.py:
828 - Changed to support new python.org website structure and
831 * docs/howto/security.txt: "Deploying Docutils Securely", added to
834 * tools/buildhtml.py:
836 -- Added ``ignore`` setting to exclude a list of shell patterns
837 (default: ``.svn:CVS``).
839 * tools/editors/emacs/rst.el:
841 - Changed license to "GPL".
842 - Added ``rst-straighten-decorations`` function.
843 - The ``compile`` module is now always loaded.
844 - Added ``rst-toggle-line-block`` function.
845 - Headings consisting only of non-ASCII characters are now
846 recognized by ``rst-toc`` and ``rst-adjust``.
847 - Added font-lock support for multi-line comments where the first
848 comment line is empty.
849 - Added ``(require 'font-lock)``.
853 - Provide descriptive error message if distutils is missing.
856 Release 0.4 (2006-01-09)
857 ========================
861 - Updated the project policies for trunk/branch development &
864 * docutils/__init__.py:
866 - Added ``__version_details__`` attribute to describe code source
867 (repository/snapshot/release).
868 - Replaced ``default_transforms`` attribute of TransformSpec with
869 ``get_transforms()`` method.
873 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
874 functions, for document tree extraction and reprocessing.
878 - Added ``DocTreeInput`` class, for reprocessing existing documents.
879 - Added support for non-Unicode (e.g. binary) writer output.
883 - Re-introduced ``Targetable.indirect_reference_name``, for
884 MoinMoin/reST compatibility (removed in r3124/r3129).
885 - Added ``serial_escape`` function; escapes string values that are
886 elements of a list, for serialization. Modified Docutils-XML
887 writing (``Element._dom_node``) and pseudo-XML writing
888 (``Element.starttag``) to use ``serial_escape``.
889 - Added ``Node.deepcopy()`` method.
890 - Removed the internal lists ``document.substitution_refs``,
891 ``document.anonymous_refs``, and ``document.anonymous_targets``.
892 - Added a "container" element.
893 - Fixed bug where values of list-valued attributes of elements
894 originating from custom interpreted text roles (i.e., with custom
895 classes) were being shared between element instances. Reported by
898 * docutils/statemachine.py:
900 - Added trailing whitespace stripping to ``string2lines()``.
901 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
902 Asian double-width character support.
906 - Added ``east_asian_column_width()`` for double-width character
909 * docutils/languages/ja.py: Added to project: Japanese mappings by
912 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
913 mappings by Panjunyong.
915 * docutils/parsers/null.py: Added to project; a do-nothing parser.
917 * docutils/parsers/rst/__init__.py:
919 - Added validator to tab_width setting, with test. Closes SF bug
920 #1212515, report from Wu Wei.
922 * docutils/parsers/rst/states.py:
924 - Fixed bug with escaped colons indicating a literal block.
925 - Fixed bug with enumerated lists (SF#1254145).
926 - Backslash-escaped colons inside of field names are now allowed.
927 - Targets (implicit and explicit), anonymous hyperlink references
928 and auto-numbered footnote references inside of substitution
929 definitions are now disallowed.
930 - Fixed bug: list items with blank first lines.
931 - Fixed bug: block quote attributions with indented second lines.
932 - Added East Asian double-width character support (Python 2.4 only).
934 * docutils/parsers/rst/tableparser.py:
936 - Added East Asian double-width character support (Python 2.4 only).
938 * docutils/parsers/rst/directives/body.py:
940 - Added the "container" directive.
942 * docutils/parsers/rst/directives/misc.py:
944 - Added the "default-role", "title", and "date" directives.
945 - Added standard data file syntax to the "include" directive.
946 - Added support for "class" directive content.
948 * docutils/parsers/rst/directives/images.py:
950 - Added ``indirect_reference_name`` support for images with a target
952 - Added support for image width and height units.
953 - Fixed bug with image "target" options.
955 * docutils/parsers/rst/directives/references.py:
957 - Added "class" attribute to "target-notes" directive, for
958 footnote_reference classes.
960 * docutils/parsers/rst/include/: Directory added to project; contains
961 standard data files for the "include" directive. Initial contents:
962 character entity substitution definition sets, and a set of
963 definitions for S5/HTML presentations.
965 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
966 mappings by David Goodger.
968 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
969 Simplified Chinese mappings by Panjunyong.
971 * docutils/readers/__init__.py:
973 - Added universal.Decorations and universal.ExposeInternals
974 transforms as default transforms for all readers.
975 - Added ``ReReader`` base class for readers that reread an existing
978 * docutils/readers/doctree.py: Added to project; a reader for existing
981 * docutils/transforms/frontmatter.py:
983 - Fixed the DocInfo transform to handle SVN-style expansion of the
985 - In ``DocInfo.extract_authors``, treat the contents of "authors"
988 * docutils/transforms/misc.py:
990 - Added misc.Transitions transform, extracted from
991 universal.FinalChecks.
993 * docutils/transforms/references.py:
995 - Added references.DanglingReferences transform, extracted from
996 universal.FinalChecks.
997 - Fixed bug with doubly-indirect substitutions.
998 - Added footnote_reference classes attribute to "TargetNotes".
999 - Fixed bug with circular substitution definitions that put Docutils
1000 into an infinite loop.
1002 * docutils/transforms/universal.py:
1004 - Added universal.ExposeInternals transform, extracted from
1005 universal.FinalChecks.
1006 - Removed universal.FinalChecks transform (logic has been moved to
1007 several new transforms).
1008 - Fixed bug with the "expose_internals" setting and Text nodes
1009 (exposed by the "rawsource" internal attribute).
1010 - Added the universal.StripComments transform, implementation of the
1011 "strip_comments" setting.
1013 * docutils/transforms/writer_aux.py: Added to project; auxiliary
1014 transforms for writers.
1016 - Added ``Compound`` transform, which flattens compound paragraphs.
1018 * docutils/writers/: Several writer modules (html4css1.py) were
1019 converted into packages. Support modules and data files have been
1020 moved into the packages. The stylesheets for the HTML writers are
1021 now installed along with the code, the code knows where to find
1022 them, and the default is to use them (actually, to embed them).
1023 Some adjustments to configuration files may be necessary. The
1024 easiest way to obtain the new default behavior is to remove all
1025 settings whose name includes "stylesheet".
1027 * docutils/writers/__init__.py:
1029 - Added universal.Messages and universal.FilterMessages transforms
1030 as default transforms for all writers.
1031 - Added ``UnfilteredWriter`` base class for writers that pass the
1032 document tree on unchanged.
1034 * docutils/writers/docutils_xml.py:
1036 - Made ``xmlcharrefreplace`` the default output encoding error
1039 * docutils/writers/html4css1/:
1041 - Added support for image width and height units.
1042 - Made ``xmlcharrefreplace`` the default output encoding error
1044 - Made ``--embed-stylesheet`` the default rather than
1045 ``--link-stylesheet``.
1046 - Moved "id" attribute from container (section etc.) to title's <a>
1047 tag, to be on the same tag as "name".
1048 (!!! To be reverted in Docutils 0.5.)
1049 - Added vertical space between fields of field lists.
1050 - Added ``--compact-field-lists`` option to remove vertical space in
1052 - Made cloaking of email addresses with ``--cloak-email-addresses``
1054 - Fixed support for centered images.
1055 - Added support for class="compact" & class="open" lists.
1057 * docutils/writers/latex2e/:
1059 - Underscores in citekeys are no longer escaped.
1061 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1062 mapping of Unicode characters to LaTeX equivalents.
1064 * docutils/writers/s5_html/: Package added to project; writer for
1065 S5/HTML slide shows.
1067 * docs/dev/distributing.txt: Added to project; guide for distributors
1068 (package maintainers).
1070 * docs/dev/hacking.txt: Added to project; guide for developers.
1072 * docs/ref/doctree.txt:
1074 - Updated for plural attributes "classes", "ids", "names",
1076 - Added the "container" element.
1078 * docs/ref/docutils.dtd:
1080 - Updated for plural attributes "classes", "ids", "names",
1083 * docs/user/emacs.txt: Added to project; a document about Emacs
1084 support for reStructuredText and Docutils.
1086 * docs/user/links.txt: Added to project; lists of Docutils-related
1089 * docs/user/mailing-lists.txt: Added to project; information about
1090 Docutils-related mailing lists and how to access them.
1092 * docs/user/slide-shows.txt: Added to project; example of and docs for
1093 the S5/HTML writer (``rst2s5.py`` front end).
1095 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1096 Files", added to project.
1098 * test/coverage.sh: Added to project; test coverage script.
1100 * test/DocutilsTestSupport.py:
1102 - Added support for specifying runtime settings at the suite level.
1104 * test/test_functional.py:
1106 - Added the ``clear_output_directory`` function.
1107 - Added support for ``_test_more`` functions in functional test
1110 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1112 * tools/rstpep2html.py: Renamed from pep.py.
1114 * tools/dev/create_unimap.py: Added to project; script to create the
1115 docutils/writers/unimap_latex.py mapping file.
1117 * tools/dev/profile_docutils.py: Added to project; profiler script.
1119 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1121 * tools/editors/emacs/restructuredtext.el,
1122 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1123 Removed from project; the functionality is now contained in rst.el.
1125 * tools/editors/emacs/rst.el: Added to project. Added many features
1126 and fixed many bugs. See docs/user/emacs.txt for details.
1128 * tools/stylesheets: Removed from project. Stylesheets have been
1129 renamed and moved into writer packages.
1132 Release 0.3.9 (2005-05-26)
1133 ==========================
1137 - Eliminated and replaced all uses of the old string attributes
1138 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1139 new list attributes ``ids``, ``names``, ``dupnames`` and
1140 ``classes`` throughout the whole source tree.
1144 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1145 allowing for easier debugging.
1146 - In ``Publisher.publish()``, expanded the generic top-level
1149 * docutils/examples.py:
1151 - Added ``internals`` function for exploration.
1155 - Fixed ``Input.decode`` method to apply heuristics only if no
1156 encoding is explicitly given, and to provide better reporting of
1158 - The ``Input.decode`` method now removes byte order marks (BOMs)
1161 * docutils/nodes.py:
1163 - ``image`` element class changed to subclass of Element, not
1164 TextElement (it's an empty element, and cannot contain text).
1165 - Added ``attr_defaults`` dictionary for default attribute values.
1166 - Added empty list as default value for the following attributes:
1167 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1168 - Added ``document.decoration`` attribute,
1169 ``document.get_decoration`` method, and ``decoration.get_header``
1170 & ``.get_footer`` methods.
1171 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1174 * docutils/utils.py:
1176 - Removed ``docutils.utils.Reporter.categories``,
1177 ``docutils.utils.ConditionSet``, and all references to them, to
1178 simplify error reporting.
1180 * docutils/languages/nl.py: Added to project; Dutch mappings by
1183 * docutils/parsers/rst/__init__.py:
1185 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1187 * docutils/parsers/rst/states.py:
1189 - Added check for escaped at-mark to prevent email address recognition.
1190 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1192 - Allowed whitespace in paths and URLs.
1193 - Added auto-enumerated list items.
1194 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1196 - Added support for table stub columns.
1198 * docutils/parsers/rst/directives/__init__.py:
1200 - Allowed whitespace in paths (``path`` function).
1201 - Added ``uri`` directive option conversion function.
1203 * docutils/parsers/rst/directives/body.py:
1205 - Fixed illegal context bug with "topic" directive (allowed within
1206 sidebars; not within body elements).
1208 * docutils/parsers/rst/directives/images.py:
1210 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1211 - Added support for the ``file_insertion_enabled`` setting in the
1212 "figure" directive (disables "figwidth" option).
1213 - "image" directive: added checks for valid values of "align" option,
1214 depending on context. "figure" directive: added specialized
1215 "align" option and attribute on "figure" element.
1216 - Made ":figwidth: image" option of "figure" directive work again.
1217 - Fixed bug with reference names containing uppercase letters
1218 (e.g. ``Name_``) in "target" option of "image" directive.
1220 * docutils/parsers/rst/directives/misc.py:
1222 - Fixed "include" and "raw" directives to catch text decoding
1224 - Allowed whitespace in "include" & "raw" directive paths.
1225 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1226 settings in "include" & "raw" directives.
1228 * docutils/parsers/rst/directives/parts.py:
1230 - Added "header" & "footer" directives.
1231 - Fixed illegal context bug with "contents" directive (topics
1232 allowed within sidebars; not within body elements).
1234 * docutils/parsers/rst/directives/tables.py:
1236 - Added "list-table" directive.
1237 - Caught empty CSV table bug.
1238 - Added support for the ``file_insertion_enabled`` setting in the
1239 "csv-table" directive.
1240 - Added ``stub-columns`` option to "csv-table" and "list-table"
1243 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1244 mappings by Martijn Pieters.
1246 * docutils/readers/standalone.py:
1248 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1249 options to activate or deactivate the SectSubTitle transform.
1251 * docutils/transforms/frontmatter.py:
1253 - Added SectSubTitle transform to promote titles of lone
1254 subsections to subtitles.
1256 * docutils/transforms/references.py:
1258 - Fixed mislocated internal targets bug, by propagating internal
1259 targets to the next node, making use of the newly added support
1260 for multiple names and IDs.
1261 - Fixed duplicate footnote label bug.
1262 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1265 * docutils/writers/html4css1.py:
1267 - Fixed unencoded stylesheet reference bug (characters like "&" in
1268 stylesheet references).
1269 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1271 - Added support for multiple IDs per node by creating empty ``span``
1273 - Added the ``field_name_limit`` & ``option_limit`` settings &
1275 - Added support for table stub columns.
1276 - Added support for the ``align`` attribute on ``figure`` elements.
1277 - Added the ``cloak_email_addresses`` setting & support.
1278 - Added ``html_prolog``, ``html_head``, ``html_body``,
1279 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1280 ``docutils.core.publish_parts``.
1281 - Added support for section subtitles.
1283 * docutils/writers/latex2e.py:
1285 - Fixed tables starting with more than one multirow cell.
1286 - Improved --use-latex-docinfo so that organization/contact/address
1287 fields are lumped with the last author field and appear on the
1289 - Made sure the titlepage is always shown with --use-latex-docinfo,
1290 even if the document has no title.
1291 - Made sure that latex doesn't fill in today's date if no date field
1293 - Added support for section subtitles.
1295 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1296 (under development).
1298 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1300 * docs/api/publisher.txt:
1302 - Added "``publish_parts`` Details" section.
1304 * docutils/dev/repository.txt: Added to project; information about the
1305 Docutils Subversion repository.
1307 * docs/ref/docutils.dtd:
1309 - Added a ``stub`` attribute to the ``colspec`` element via the
1310 ``tbl.colspec.att`` parameter entity.
1311 - Allowed topic elements within sidebars
1312 - Added an ``align`` attribute to the ``figure`` element.
1314 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1318 Release 0.3.7 (2004-12-24)
1319 ==========================
1321 * docutils/frontend.py:
1323 - Added options: --input-encoding-error-handler,
1324 --record-dependencies, --leave-footnote-reference-space,
1326 - Added command-line and config file support for "overrides" setting
1331 - Added support for input encoding error handler.
1333 * docutils/nodes.py:
1335 - Added dispatch_visit and dispatch_departure methods to
1336 NodeVisitor; useful as a hook for Visitors.
1337 - Changed structure of ``line_block``; added ``line``.
1338 - Added ``compound`` node class.
1339 - Added a mechanism for Visitors to transitionally ignore new node
1342 * docutils/utils.py:
1344 - Moved ``escape2null`` and ``unescape`` functions from
1345 docutils/parsers/rst/states.py.
1347 * docutils/parsers/rst/roles.py:
1350 - Changed role function API: the "text" parameter now takes
1351 null-escaped interpreted text content.
1353 * docutils/parsers/rst/states.py:
1355 - Fixed bug where a "role" directive in a nested parse would crash
1356 the parser; the state machine's "language" attribute was not being
1358 - Added support for line block syntax.
1359 - Fixed directive parsing bug: argument-less directives didn't
1360 notice that arguments were present.
1361 - Removed error checking for transitions.
1362 - Added support for multiple classifiers in definition list items.
1363 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1364 - Changed role function API: the "text" parameter now takes
1365 null-escaped interpreted text content.
1366 - Empty sections and documents are allowed now.
1368 * docutils/parsers/rst/directives/__init__.py:
1370 - Added ``encoding`` directive option conversion function.
1371 - Allow multiple class names in class_option conversion function.
1373 * docutils/parsers/rst/directives/body.py:
1375 - Converted the line-block directive to use the new structure.
1376 - Extracted the old line-block functionality to the ``block``
1377 function (still used).
1378 - Added ``compound`` directive (thanks to Lea Wiemann).
1380 * docutils/parsers/rst/directives/misc.py:
1382 - Added "encoding" option to "include" and "raw" directives.
1383 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1384 - Allow multiple class names in the "class" directive.
1386 * docutils/parsers/rst/directives/parts.py:
1388 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1389 options. Thanks to Lele Gaifax.
1391 * docutils/parsers/rst/directives/tables.py:
1393 - Added "encoding" directive to "csv-table" directive.
1394 - Added workaround for lack of Unicode support in csv.py, for
1395 non-ASCII CSV input.
1397 * docutils/transforms/misc.py:
1399 - Fixed bug when multiple "class" directives are applied to a single
1401 - Enabled multiple format names for "raw" directive.
1403 * docutils/transforms/references.py:
1405 - Added support for trimming whitespace from beside substitution
1408 * docutils/transforms/universal.py:
1410 - FinalChecks now checks for illegal transitions and moves
1411 transitions between sections.
1413 * docutils/writers/html4css1.py:
1415 - HTMLTranslator.encode now converts U+00A0 to " ".
1416 - "stylesheet" and "stylesheet_path" settings are now mutually
1418 - Added support for the new line_block/line structure.
1419 - --footnote-references now overrides
1420 --trim-footnote-reference-space, if applicable.
1421 - Added support for ``compound`` elements.
1422 - Enabled multiple format names for "raw" directive.
1423 - ``<p>`` tags of a paragraph which is the only visible child of the
1424 document node are no longer stripped.
1425 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1426 new method ``should_be_compact_paragraph()``.
1427 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1429 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1430 the output if they have their ``class`` attribute set.
1431 - The whole document is now surrounded by a ``<div
1432 class="document">`` element.
1433 - Body-level images are now wrapped by their own ``<div>`` elements,
1434 with image classes copied to the wrapper, and for images which
1435 have the ``:align:`` option set, the surrounding ``<div>`` now
1436 receives a class attribute (like ``class="align-left"``).
1438 * docutils/writers/latex2e.py:
1440 - no newline after depart_term.
1441 - Added translations for some Unicode quotes.
1442 - Added option "font-encoding", made package AE the default.
1443 - "stylesheet" and "stylesheet_path" settings are now mutually
1445 - --footnote-references now overrides
1446 --trim-footnote-reference-space, if applicable.
1447 - The footnote label style now matches the footnote reference style
1448 ("brackets" or "superscript").
1449 - Added support for ``compound`` elements.
1450 - Enabled multiple format names for "raw" directive.
1452 * docs/ref/docutils.dtd:
1454 - Changed structure of the ``line_block`` element; added ``line``.
1455 - Added ``compound`` element.
1456 - Added "ltrim" and "rtrim" attributes to
1457 ``substitution_definition`` element.
1458 - Enabled multiple format names for ``raw`` element.
1459 - Enabled multiple classifiers in ``definition_list_item`` elements.
1461 * docs/ref/rst/directives.txt
1463 - Marked "line-block" as deprecated.
1464 - "Class" directive now allows multiple class names.
1465 - Added "Rationale for Class Attribute Value Conversion".
1466 - Added warning about "raw" overuse/abuse.
1468 * docs/ref/rst/restructuredtext.txt:
1470 - Added syntax for line blocks.
1471 - Definition list items may have multiple classifiers.
1473 * docs/ref/rst/roles.txt:
1477 * tools/stylesheets/default.css:
1479 - Added support for the new line_block structure.
1480 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1483 Release 0.3.5 (2004-07-29)
1484 ==========================
1488 * _`Documentation cleanup/reorganization`.
1490 - Created new subdirectories of docs/:
1492 * ``docs/user/``: introductory/tutorial material for end-users
1493 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1494 * ``docs/api/``: API reference material for client-developers
1495 * ``docs/ref/``: reference material for all groups
1496 * ``docs/howto/``: for component-developers and core-developers
1497 * ``docs/peps/``: Python Enhancement Proposals
1499 - Moved ``docs/*`` to ``docs/user/``.
1500 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1501 ``spec/`` to ``docs/dev``.
1502 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1503 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1504 - Moved ``alternatives.txt``, and ``problems.txt`` from
1505 ``spec/rst/`` to ``docs/dev/rst/``.
1506 - Moved ``reStructuredText.txt``, ``directives.txt``,
1507 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1508 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1509 ``roles.txt``, ``reStructuredText.txt`` to
1510 ``restructuredtext.txt``.
1511 - Moved ``spec/howto/`` to ``docs/howto``.
1513 In order to keep the CVS history of moved files, we supplied
1514 SourceForge with a `script for modifying the Docutils CVS
1517 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1519 After running the cleanup script:
1521 - Added ``docs/index.txt``.
1522 - Added a ``.htaccess`` file to the ``web`` module, containing
1523 redirects for all old paths to new paths. They'll preserve
1524 fragments (the "#name" part of a URL), and won't clutter up the
1525 file system, and will correct the URL in the user's browser.
1526 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1527 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1528 the "To Do" list itself in ``docs/dev/todo.txt``.
1529 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1530 section of ``docs/dev/todo.txt``.
1531 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1532 - Added "How To Report Bugs" to ``BUGS.txt``.
1533 - Went through all the sources and docs (including under web/) and
1534 updated links. Mostly done by Lea Wiemann; thanks Lea!
1535 (Still need to update links in the sandboxes.)
1539 * BUGS.txt: Added to project.
1541 * THANKS.txt: Added to project.
1543 * docutils/__init__.py:
1545 - 0.3.4: Post-release.
1549 - Added special error handling & advice for UnicodeEncodeError.
1550 - Refactored Publisher.publish (simplified exception handling &
1551 extracted debug dumps).
1552 - Renamed "enable_exit" parameter of convenience functions to
1553 "enable_exit_status".
1554 - Enabled traceback (exception propagation) by default in
1555 programmatic convenience functions.
1556 - Now publish_file and publish_cmdline convenience functions return
1557 the encoded string results in addition to their regular I/O.
1558 - Extracted common code from publish_file, publish_string, and
1559 publish_parts, into new publish_programmatically. Extracted
1560 settings code to ``Publisher.process_programmatic_settings``.
1561 - In Publisher.publish, disabled ``settings_overrides`` when
1562 ``settings`` is supplied; redundant.
1564 * docutils/frontend.py:
1566 - Added help text for "--output-encoding-error-handler" and
1567 "--error-encoding-error-handler".
1568 - Renamed "--exit" to "--exit-status".
1569 - Simplified default-setting code.
1571 * docutils/parsers/rst/__init__.py:
1573 - Added "--pep-base-url" and "--rfc-base-url" options.
1575 * docutils/parsers/rst/states.py:
1577 - Made URI recognition more aggressive and intelligent.
1579 * docutils/parsers/rst/directives/__init__.py:
1581 - Added several directive option conversion functions.
1583 * docutils/parsers/rst/directives/body.py:
1585 - Moved "table" directive to tables.py.
1587 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1590 * docutils/writers/latex2e.py:
1592 - Added "--table-style=(standard|booktabs|nolines)"
1593 - figures get "here" option (LaTeX per default puts them at bottom),
1594 and figure content is centered.
1595 - Rowspan support for tables.
1596 - Fix: admonition titles before first section.
1597 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1598 - Replave ``_`` in literal by an underlined blank, because it has the correct
1600 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1601 - A few unicode replacements, if output_encoding != utf
1602 - Add "--graphicx-option".
1603 - Indent literal-blocks.
1604 - Fix: omit ``\maketitle`` when there is no document title.
1606 * docs/index.txt: "Docutils Project Documentation Overview", added to
1609 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1610 Tool", added to project.
1612 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1614 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1616 * docs/dev/policies.txt: Added to project (extracted from
1617 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1619 * docs/dev/release.txt: Added to project (extracted from
1620 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1622 * docs/dev/testing.txt: Added to project.
1624 * docs/dev/website.txt: Added to project (extracted from
1625 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1627 * docs/ref/rst/directives.txt:
1629 - Added directives: "table", "csv-table".
1631 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1632 added to project. 1 page for syntax, and a 1 page reference for
1633 directives and roles. Source text to be used as-is; not meant to be
1636 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1637 with a change of title.
1639 * test/functional/, contents, and test/test_functional.py: Added to
1642 * tools/buildhtml.py: Fixed bug with config file handling.
1644 * tools/html.py: Removed from project (duplicate of rst2html.py).
1646 * tools/pep2html.py: Removed from project (duplicate of Python's
1647 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1648 Docutils-related PEPs in docs/peps/).
1650 * tools/rst2pseudoxml.py: Renamed from publish.py.
1652 * tools/rst2xml.py: Renamed from docutils-xml.py.
1654 * tools/test.txt: Removed from project; moved to
1655 docs/user/rst/demo.txt.
1657 * setup.py: Now also installs ``rst2latex.py``.
1660 Release 0.3.3 (2004-05-09)
1661 ==========================
1663 * docutils/__init__.py:
1665 - 0.3.1: Reorganized config file format (multiple sections); see
1667 - Added unknown_reference_resolvers attribute to TransformSpec.
1668 - 0.3.2: Interpreted text reorganization.
1673 - Catch system messages to stop tracebacks from parsing errors.
1674 - Catch exceptions during processing report & exit without
1675 tracebacks, except when "--traceback" used.
1676 - Reordered components for OptionParser; application comes last.
1677 - Added "config_section" parameter to several methods and functions,
1678 allowing front ends to easily specify their config file sections.
1679 - Added publish_parts convenience function to allow access to individual
1680 parts of a document.
1682 * docutils/examples.py: Added to project; practical examples of
1683 Docutils client code, to be used as-is or as models for variations.
1685 * docutils/frontend.py:
1687 - Added "--traceback" & "--no-traceback" options ("traceback"
1689 - Implemented support for config file reorganization:
1690 ``standard_config_files`` moved from ``ConfigParser`` to
1691 ``OptionParser``; added
1692 ``OptionParser.get_config_file_settings()`` and
1693 ``.get_standard_config_settings()``; support for old "[options]"
1694 section (with deprecation warning) and mapping from old to new
1696 - Reimplemented setting validation.
1697 - Enabled flexible boolean values: yes/no, true/false, on/off.
1698 - Added ``Values``, a subclass of ``optparse.Values``, with support
1699 for list setting attributes.
1700 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1701 thanks to Beni Cherniavsky.
1702 - Added "--no-section-numbering" option.
1706 - Catch IOErrors when opening source & destination files, report &
1707 exit without tracebacks. Added ``handle_io_errors`` parameter to
1708 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1710 * docutils/nodes.py:
1712 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1713 method definitions (via ``exec``) to dynamic assignments (via
1714 ``setattr``); thanks to Roman Suzi.
1715 - Encapsulated visitor dynamic assignments in a function; thanks to
1717 - Added indirect_reference_name attribute to the Targetable
1718 class. This attribute holds the whitespace_normalized_name
1719 (contains mixed case) of a target.
1721 * docutils/statemachine.py:
1723 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1724 - Added ``StringList.get_2D_block``.
1726 * docutils/utils.py:
1728 - Added "level" attribute to SystemMessage exceptions.
1730 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1733 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1736 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1737 Marcelo Huerta San Martin.
1739 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1740 mappings by Lalo Martins.
1742 * docutils/languages/ru.py: Added to project; Russian mappings by
1745 * docutils/parsers/rst/roles.py: Added to project. Contains
1746 interpreted text role functions, a registry for interpreted text
1747 roles, and an API for adding to and retrieving from the registry.
1748 Contributed by Edward Loper.
1750 * docutils/parsers/rst/states.py:
1752 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1753 - Allowed true em-dash character and "---" as block quote
1755 - Added support for <angle-bracketed> complex option arguments
1757 - Fixed handling of backslashes in substitution definitions.
1758 - Fixed off-by-1 error with extra whitespace after substitution
1759 definition directive.
1760 - Added inline markup parsing to field lists' field names.
1761 - Added support for quoted (and unindented) literal blocks.
1762 Driven in part by a bribe from Frank Siebenlist (thanks!).
1763 - Parser now handles escapes in URIs correctly.
1764 - Made embedded-URIs' reference text omittable. Idea from Beni
1766 - Refactored explicit target processing code.
1767 - Added name attribute to references containing the reference name only
1768 through whitespace_normalize_name (no case changes).
1769 - parse_target no longer returns the refname after going through
1770 normalize_name. This is now handled in make_target.
1771 - Fixed bug relating to role-less interpreted text in non-English
1773 - Reorganized interpreted text processing; moved code into the new
1774 roles.py module. Contributed by Edward Loper.
1775 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1776 ``parse_directive_block``.
1778 * docutils/parsers/rst/tableparser.py:
1780 - Reworked for ``StringList``, to support "include" directives in
1783 * docutils/parsers/rst/directives/__init__.py:
1785 - Renamed ``unchanged()`` directive option conversion function to
1786 ``unchanged_required``, and added a new ``unchanged``.
1787 - Catch unicode value too high error; fixes bug 781766.
1788 - Beefed up directive error reporting.
1790 * docutils/parsers/rst/directives/body.py:
1792 - Added basic "table" directive.
1794 * docutils/parsers/rst/directives/images.py:
1796 - Added "target" option to "image" directive.
1797 - Added name attribute to references containing the reference name only
1798 through whitespace_normalize_name (no case changes).
1800 * docutils/parsers/rst/directives/misc.py:
1802 - Isolated the import of the ``urllib2`` module; was causing
1803 problems on SourceForge (``libssl.so.2`` unavailable?).
1804 - Added the "role" directive for declaring custom interpreted text
1807 * docutils/parsers/rst/directives/parts.py:
1809 - The "contents" directive does more work up-front, creating the
1810 "topic" and "title", and leaving the "pending" node for the
1811 transform. Allows earlier reference resolution; fixes subtle bug.
1813 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1814 mappings by Jannie Hofmeyr.
1816 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1817 mappings by Marek Blaha.
1819 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1820 mappings by Marcelo Huerta San Martin.
1822 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1823 Portuguese mappings by Lalo Martins.
1825 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1826 mappings by Roman Suzi.
1828 * docutils/transforms/parts.py:
1830 - The "contents" directive does more work up-front, creating the
1831 "topic" and "title", and leaving the "pending" node for the
1832 transform. Allows earlier reference resolution; fixes subtle bug.
1833 - Added support for disabling of section numbering.
1835 * docutils/transforms/references.py:
1837 - Verifying that external targets are truly targets and not indirect
1838 references. This is because we are now adding a "name" attribute to
1839 references in addition to targets. Note sure if this is correct!
1840 - Added code to hook into the unknown_reference_resolvers list for a
1841 transformer in resolve_indirect_target. This allows the
1842 unknown_reference_resolvers to keep around indirect targets which
1843 docutils doesn't know about.
1844 - Added specific error message for duplicate targets.
1846 * docutils/transforms/universal.py:
1848 - Added FilterMessages transform (removes system messages below the
1849 verbosity threshold).
1850 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1851 to FinalCheckVisitor for application-specific handling of
1852 unresolvable references.
1853 - Added specific error message for duplicate targets.
1855 * docutils/writers/__init__.py:
1857 - Added assemble_parts method to the Writer class to allow for
1858 access to a documents individual parts.
1859 - Documented & set default for ``Writer.output`` attribute.
1861 * docutils/writers/html4css1.py:
1863 - Fixed unicode handling of attribute values (bug 760673).
1864 - Prevent duplication of "class" attribute values (bug report from
1866 - Improved table grid/border handling (prompted by report from Bob
1868 - Added support for table titles.
1869 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1871 - Added functionality to keep track of individual parts of a document
1872 and store them in a dictionary as the "parts" attribute of the writer.
1873 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1874 - Added proper support for the "scale" attribute of the "image"
1875 element. Contributed by Brent Cook.
1876 - Added ``--initial-header-level`` option.
1877 - Fixed bug: the body_pre_docinfo segment depended on there being a
1878 docinfo; if no docinfo, the document title was incorporated into
1879 the body segment. Adversely affected the publish_parts interface.
1881 * docutils/writers/latex2e.py:
1883 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1884 about a missing file.
1885 - Added options and support: ``--compound-enumerators``,
1886 ``--section-prefix-for-enumerators``, and
1887 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1889 - Added option ``--use-verbatim-when-possible``, to avoid
1890 problematic characters (eg, '~' in italian) in literal blocks.
1891 - It's now possible to use four section levels in the `book` and
1892 `report` LaTeX classes. The default `article` class still has
1895 * docs/config.txt: "Docutils Configuration Files", added to project.
1896 Moved config file entry descriptions from tools.txt.
1900 - Moved config file entry descriptions to config.txt.
1902 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1905 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1906 Text Roles", added to project.
1908 * spec/rst/reStructuredText.txt:
1910 - Added description of support for <angle-bracketed> complex option
1911 arguments to option lists.
1912 - Added subsections for indented and quoted literal blocks.
1914 * test: Continually adding & updating tests.
1916 - Added test/test_settings.py & test/data/config_*.txt support
1918 - Added test/test_writers/test_htmlfragment.py.
1920 * test/DocutilsTestSupport.py:
1922 - Refactored LaTeX publisher test suite/case class names to make
1923 testing other writers easier.
1924 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1925 to test the processing of HTML fragments which use the new
1926 publish_parts convenience function.
1928 * tools/buildhtml.py:
1930 - Added support for the "--prune" option.
1931 - Removed dependency on pep2html.py; plaintext PEPs no longer
1934 * tools/docutils.conf:
1936 - Updated for configuration file reorganization.
1938 * tools/rst2html.py:
1940 - copied from tools/html.py
1944 - added a 'scripts' section to configuration
1945 - added 'tools/rst2html.py' to the scripts section
1948 Release 0.3 (2003-06-24)
1949 ========================
1953 * Renamed "attribute" to "option" for directives/extensions.
1955 * Renamed transform method "transform" to "apply".
1957 * Renamed "options" to "settings" for runtime settings (as set by
1958 command-line options). Sometimes "option" (singular) became
1959 "settings" (plural). Some variations below:
1961 - document.options -> document.settings (stored in other objects as
1963 - option_spec -> settings_spec (not directives though)
1964 - OptionSpec -> SettingsSpec
1965 - cmdline_options -> settings_spec
1966 - relative_path_options -> relative_path_settings
1967 - option_default_overrides -> settings_default_overrides
1968 - Publisher.set_options -> Publisher.get_settings
1972 * COPYING.txt: Added "Public Domain Dedication".
1974 * FAQ.txt: Frequently asked questions, added to project.
1978 - Updated with PyPI Trove classifiers.
1979 - Conditional installation of third-party modules.
1981 * docutils/__init__.py:
1983 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1984 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1985 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1986 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1987 option and its effect on the PEP template & writer.
1988 - Bumped version to 0.2.4 due to changes to the PEP template &
1990 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1991 - Added ``TransformSpec`` class for new transform system.
1992 - Bumped version to 0.2.6 for API changes (renaming).
1993 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1994 convenience functions.
1995 - Added ``Component.component_type`` attribute.
1996 - Bumped version to 0.2.8 because of the internal parser switch from
1997 plain lists to the docutils.statemachine.StringList objects.
1998 - Bumped version to 0.2.9 because of the frontend.py API changes.
1999 - Bumped version to 0.2.10 due to changes to the project layout
2000 (third-party modules removed from the "docutils" package), and
2001 signature changes in ``io.Input``/``io.Output``.
2002 - Changed version to 0.3.0 for release.
2006 - Made ``publish()`` a bit more convenient.
2007 - Generalized ``Publisher.set_io``.
2008 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
2009 parameters; improved its docstring.
2010 - Added ``publish_file()`` and ``publish_string()``.
2011 - Factored ``Publisher.set_source()`` and ``.set_destination()``
2013 - Added support for "--dump-pseudo-xml", "--dump-settings", and
2014 "--dump-transforms" hidden options.
2015 - Added ``Publisher.apply_transforms()`` method.
2016 - Added ``Publisher.set_components()`` method; support for
2017 ``publish_*()`` conveninece functions.
2018 - Moved config file processing to docutils/frontend.py.
2019 - Added support for exit status ("exit_level" setting &
2020 ``enable_exit`` parameter for Publisher.publish() and convenience
2023 * docutils/frontend.py:
2025 - Check for & exit on identical source & destination paths.
2026 - Fixed bug with absolute paths & "--config".
2027 - Set non-command-line defaults in ``OptionParser.__init__()``:
2028 ``_source`` & ``_destination``.
2029 - Distributed ``relative_path_settings`` to components; updated
2030 ``OptionParser.populate_from_components()`` to combine it all.
2031 - Require list of keys in ``make_paths_absolute`` (was implicit in
2032 global ``relative_path_settings``).
2033 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
2034 "--dump-settings", and "--dump-transforms" hidden options.
2035 - Removed nasty internals-fiddling ``ConfigParser.get_section``
2036 code, replaced with correct code.
2037 - Added validation functionality for config files.
2038 - Added "--error-encoding" option/setting, "_disable_config"
2040 - Added encoding validation; updated "--input-encoding" and
2041 "--output-encoding"; added "--error-encoding-error-handler" and
2042 "--output-encoding-error-handler".
2043 - Moved config file processing from docutils/core.py.
2044 - Updated ``OptionParser.populate_from_components`` to handle new
2045 ``SettingsSpec.settings_defaults`` dict.
2046 - Added support for "-" => stdin/stdout.
2047 - Added "exit_level" setting ("--exit" option).
2051 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
2052 - Added automatic closing to ``FileInput`` and ``FileOutput``.
2053 - Delayed opening of ``FileOutput`` file until ``write()`` called.
2054 - ``FileOutput.write()`` now returns the encoded output string.
2055 - Try to get path/stream name automatically in ``FileInput`` &
2057 - Added defaults for source & destination paths.
2058 - Allow for Unicode I/O with an explicit "unicode" encoding.
2059 - Added ``Output.encode()``.
2060 - Removed dependency on runtime settings; pass encoding directly.
2061 - Recognize Unicode strings in ``Input.decode()``.
2062 - Added support for output encoding error handlers.
2064 * docutils/nodes.py:
2066 - Added "Invisible" element category class.
2067 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2068 modification during a traversal.
2069 - Added element classes: ``line_block``, ``generated``, ``address``,
2070 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2071 ``superscript``, ``subscript``, ``inline``
2072 - Added support for lists of nodes to ``Element.insert()``.
2073 - Fixed parent linking in ``Element.replace()``.
2074 - Added new abstract superclass ``FixedTextElement``; adds
2075 "xml:space" attribute.
2076 - Added support for "line" attribute of ``system_message`` nodes.
2077 - Added support for the observer pattern from ``utils.Reporter``.
2078 Added ``parse_messages`` and ``transform_messages`` attributes to
2079 ``document``, removed ``messages``. Added ``note_parse_message``
2080 and ``note_transform_message`` methods.
2081 - Added support for improved diagnostics:
2083 - Added "document", "source", and "line" internal attributes to
2084 ``Node``, set by ``Node.setup_child()``.
2085 - Converted variations on ``node.parent = self`` to
2086 ``self.setup_child(node)``.
2087 - Added ``document.current_source`` & ``.current_line``
2088 attributes, and ``.note_source`` observer method.
2089 - Changed "system_message" output to GNU-Tools format.
2091 - Added a "rawsource" attribute to the ``Text`` class, for text
2092 before backslash-escape resolution.
2093 - Support for new transform system.
2094 - Reworked ``pending`` element.
2095 - Fixed XML DOM bug (SF #660611).
2096 - Removed the ``interpeted`` element class and added
2097 ``title_reference``, ``abbreviation``, ``acronym``.
2098 - Made substitutions case-sensitive-but-forgiving; moved some code
2100 - Fixed Unicode bug on element attributes (report: William Dode).
2102 * docutils/optik.py: Removed from project; replaced with
2103 extras/optparse.py and extras/textwrap.py. These will be installed
2104 only if they're not already present in the Python installation.
2106 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2107 only if it's not already present in the Python installation.
2109 * docutils/statemachine.py:
2111 - Factored out ``State.add_initial_transitions()`` so it can be
2113 - Converted whitespace-specific "blank" and "indent" transitions
2114 from special-case code to ordinary transitions: removed
2115 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2116 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2117 ``ws_initial_transitions`` attributes.
2118 - Removed ``State.match_transition()`` after merging it into
2120 - Added ``StateCorrection`` exception.
2121 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2122 (moved ``TransitionCorrection`` support there too.)
2123 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2124 ``EOFError`` instead of ``IndexError``.
2125 - Added ``State.no_match`` method.
2126 - Added support for the Observer pattern, triggered by input line
2128 - Added ``strip_top`` parameter to
2129 ``StateMachineWS.get_first_known_indented``.
2130 - Made ``context`` a parameter to ``StateMachine.run()``.
2131 - Added ``ViewList`` & ``StringList`` classes;
2132 ``extract_indented()`` becomes ``StringList.get_indented()``.
2133 - Added ``StateMachine.insert_input()``.
2134 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2135 thanks to) Fred Drake.
2137 * docutils/utils.py:
2139 - Added a ``source`` attribute to Reporter instances and
2140 ``system_message`` elements.
2141 - Added an observer pattern to ``utils.Reporter`` to keep track of
2143 - Fixed bugs in ``relative_path()``.
2144 - Added support for improved diagnostics.
2145 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2146 - Added support for encoding Reporter stderr output, and encoding
2148 - Reporter keeps track of the highest level system message yet
2151 * docutils/languages: Fixed bibliographic field language lookups.
2153 * docutils/languages/es.py: Added to project; Spanish mappings by
2154 Marcelo Huerta San Martin.
2156 * docutils/languages/fr.py: Added to project; French mappings by
2159 * docutils/languages/it.py: Added to project; Italian mappings by
2162 * docutils/languages/sk.py: Added to project; Slovak mappings by
2165 * docutils/parser/__init__.py:
2167 - Added ``Parser.finish_parse()`` method.
2169 * docutils/parser/rst/__init__.py:
2171 - Added options: "--pep-references", "--rfc-references",
2172 "--tab-width", "--trim-footnote-reference-space".
2174 * docutils/parsers/rst/states.py:
2176 - Changed "title under/overline too short" system messages from INFO
2177 to WARNING, and fixed its insertion location.
2178 - Fixed enumerated list item parsing to allow paragraphs & section
2179 titles to begin with enumerators.
2180 - Converted system messages to use the new "line" attribute.
2181 - Fixed a substitution reference edge case.
2182 - Added support for "--pep-references" and "--rfc-references"
2183 options; reworked ``Inliner`` code to make customization easier.
2184 - Removed field argument parsing.
2185 - Added support for short section title over/underlines.
2186 - Fixed "simple reference name" regexp to ignore text like
2187 "object.__method__"; not an anonymous reference.
2188 - Added support for improved diagnostics.
2189 - Reworked directive API, based on Dethe Elza's contribution. Added
2190 ``Body.parse_directive()``, ``.parse_directive_options()``,
2191 ``.parse_directive_arguments()`` methods.
2192 - Added ``ExtensionOptions`` class, to parse directive options
2193 without parsing field bodies. Factored
2194 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2195 ``ExtensionOptions``.
2196 - Improved definition list term/classifier parsing.
2197 - Added warnings for unknown directives.
2198 - Renamed ``Stuff`` to ``Struct``.
2199 - Now flagged as errors: transitions at the beginning or end of
2200 sections, empty sections (except title), and empty documents.
2201 - Updated for ``statemachine.StringList``.
2202 - Enabled recognition of schemeless email addresses in targets.
2203 - Added support for embedded URIs in hyperlink references.
2204 - Added backslash-escapes to inline markup end-string suffix.
2205 - Added support for correct interpreted text processing.
2206 - Fixed nested title parsing (topic, sidebar directives).
2207 - Added special processing of backslash-escaped whitespace (idea
2208 from David Abrahams).
2209 - Made substitutions case-sensitive-but-forgiving; moved some code
2210 to ``docutils.nodes``.
2211 - Added support for block quote attributions.
2212 - Added a kludge to work-around a conflict between the bubble-up
2213 parser strategy and short titles (<= 3 char-long over- &
2214 underlines). Fixes SF bug #738803 "infinite loop with multiple
2215 titles" submitted by Jason Diamond.
2216 - Added explicit interpreted text roles for standard inline markup:
2217 "emphasis", "strong", "literal".
2218 - Implemented "superscript" and "subscript" interpreted text roles.
2219 - Added initial support for "abbreviation" and "acronym" roles;
2221 - Added support for "--trim-footnote-reference-space" option.
2222 - Optional space before colons in directives & hyperlink targets.
2224 * docutils/parsers/rst/tableparser.py:
2226 - Fixed a bug that was producing unwanted empty rows in "simple"
2228 - Detect bad column spans in "simple" tables.
2230 * docutils/parsers/rst/directives: Updated all directive functions to
2233 * docutils/parsers/rst/directives/__init__.py:
2235 - Added ``flag()``, ``unchanged()``, ``path()``,
2236 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2237 directive option helper functions.
2238 - Added warnings for unknown directives.
2239 - Return ``None`` for missing directives.
2240 - Added ``register_directive()``, thanks to William Dode and Paul
2243 * docutils/parsers/rst/directives/admonitions.py:
2245 - Added "admonition" directive.
2247 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2248 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2249 "parsed-literal", "rubric", "epigraph", "highlights" and
2250 "pull-quote" directives.
2252 * docutils/parsers/rst/directives/images.py:
2254 - Added an "align" attribute to the "image" & "figure" directives
2255 (by Adam Chodorowski).
2256 - Added "class" option to "image", and "figclass" to "figure".
2258 * docutils/parsers/rst/directives/misc.py:
2260 - Added "include", "raw", and "replace" directives, courtesy of
2262 - Added "unicode" and "class" directives.
2264 * docutils/parsers/rst/directives/parts.py:
2266 - Added the "sectnum" directive; by Dmitry Jemerov.
2267 - Added "class" option to "contents" directive.
2269 * docutils/parsers/rst/directives/references.py: Added to project.
2270 Contains the "target-notes" directive.
2272 * docutils/parsers/rst/languages/__init__.py:
2274 - Return ``None`` from get_language() for missing language modules.
2276 * docutils/parsers/rst/languages/de.py: Added to project; German
2277 mappings by Engelbert Gruber.
2279 * docutils/parsers/rst/languages/en.py:
2281 - Added interpreted text roles mapping.
2283 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2284 mappings by Marcelo Huerta San Martin.
2286 * docutils/parsers/rst/languages/fr.py: Added to project; French
2287 mappings by William Dode.
2289 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2290 mappings by Nicola Larosa.
2292 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2293 mappings by Miroslav Vasko.
2295 * docutils/readers/__init__.py:
2297 - Added support for the observer pattern from ``utils.Reporter``, in
2298 ``Reader.parse`` and ``Reader.transform``.
2299 - Removed ``Reader.transform()`` method.
2300 - Added default parameter values to ``Reader.__init__()`` to make
2301 instantiation easier.
2302 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2304 * docutils/readers/pep.py:
2306 - Added the ``peps.TargetNotes`` transform to the Reader.
2307 - Removed PEP & RFC reference detection code; moved to
2308 parsers/rst/states.py as options (enabled here by default).
2309 - Added support for pre-acceptance PEPs (no PEP number yet).
2310 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2313 * docutils/readers/python: Python Source Reader subpackage added to
2314 project, including preliminary versions of:
2317 - moduleparser.py: Parser for Python modules.
2319 * docutils/transforms/__init__.py:
2321 - Added ``Transformer`` class and completed transform reform.
2322 - Added unknown_reference_resolvers list for each transformer. This list holds
2323 the list of functions provided by each component of the transformer that
2324 help resolve references.
2326 * docutils/transforms/frontmatter.py:
2328 - Improved support for generic fields.
2329 - Fixed bibliographic field language lookups.
2331 * docutils/transforms/misc.py: Added to project. Miscellaneous
2334 * docutils/transforms/parts.py:
2336 - Moved the "id" attribute from TOC list items to the references
2337 (``Contents.build_contents()``).
2338 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2339 - Added "class" attribute support to ``Contents``.
2341 * docutils/transforms/peps.py:
2343 - Added ``mask_email()`` function, updating to pep2html.py's
2345 - Linked "Content-Type: text/x-rst" to PEP 12.
2346 - Added the ``TargetNotes`` PEP-specific transform.
2347 - Added ``TargetNotes.cleanup_callback``.
2348 - Added title check to ``Headers``.
2350 * docutils/transforms/references.py:
2352 - Added the ``TargetNotes`` generic transform.
2353 - Split ``Hyperlinks`` into multiple transforms.
2354 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2355 - Added check for circular indirect references.
2356 - Made substitutions case-sensitive-but-forgiving.
2358 * docutils/transforms/universal.py:
2360 - Added support for the "--expose-internal-attributes" option.
2361 - Removed ``Pending`` transform classes & data.
2363 * docutils/writers/__init__.py:
2365 - Removed ``Writer.transform()`` method.
2367 * docutils/writers/docutils-xml.py:
2369 - Added XML and doctype declarations.
2370 - Added "--no-doctype" and "--no-xml-declaration" options.
2372 * docutils/writers/html4css1.py:
2374 - "name" attributes only on these tags: a, applet, form, frame,
2376 - Added "name" attribute to <a> in section titles for Netscape 4
2377 support (bug report: Pearu Peterson).
2378 - Fixed targets (names) on footnote, citation, topic title,
2379 problematic, and system_message nodes (for Netscape 4).
2380 - Changed field names from "<td>" to "<th>".
2381 - Added "@" to "@" encoding to thwart address harvesters.
2382 - Improved the vertical whitespace optimization; ignore "invisible"
2383 nodes (targets, comments, etc.).
2384 - Improved inline literals with ``<span class="pre">`` around chunks
2385 of text and `` `` for runs of spaces.
2386 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2387 ``self.docinfo`` segments.
2388 - Added support for "line_block", "address" elements.
2389 - Improved backlinks (footnotes & system_messages).
2390 - Improved system_message output.
2391 - Redefined "--stylesheet" as containing an invariant URL, used
2392 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2394 - Added "--footnote-references" option (superscript or brackets).
2395 - Added "--compact-lists" and "--no-compact-lists" options.
2396 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2397 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2398 - Improved field list rendering.
2399 - Added Docutils version to "generator" meta tag.
2400 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2401 - Improved layout of <pre> HTML source.
2402 - Fixed attribute typo on <colspec>.
2403 - Refined XML prologue.
2404 - Support for no stylesheet.
2405 - Removed "interpreted" element support.
2406 - Added support for "title_reference", "sidebar", "attribution",
2407 "rubric", and generic "admonition" elements.
2408 - Added "--attribution" option.
2409 - Added support for "inline", "subscript", "superscript" elements.
2410 - Added initial support for "abbreviation" and "acronym";
2413 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2417 - Double quotes in literal blocks (special treatment for de/ngerman).
2418 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2419 - Added "--attribution" option.
2420 - Right align attributions.
2422 * docutils/writers/pep_html.py:
2424 - Parameterized output encoding in PEP template.
2425 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2426 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2427 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2429 - Added an override on the "--footnote-references" option.
2430 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2431 - Added Docutils version to "generator" meta tag.
2432 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2436 - Added a "silent" setting for ``buildhtml.py``.
2437 - Added a "Getting Help" section.
2438 - Rearranged the structure.
2439 - Kept up to date, with new settings, command-line options etc.
2440 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2441 - Converted settings table into a definition list.
2443 * docs/rst/quickstart.txt:
2445 - Added a table of contents.
2446 - Added feedback information.
2447 - Added mention of minimum section title underline lengths.
2448 - Removed the 4-character minimum for section title underlines.
2450 * docs/rst/quickref.html:
2452 - Added a "Getting Help" section.
2453 - Added a style to make section title backlinks more subtle.
2454 - Added mention of minimum section title underline lengths.
2455 - Removed the 4-character minimum for section title underlines.
2457 * extras: Directory added to project; contains third-party modules
2458 that Docutils depends on (optparse, textwrap, roman). These are
2459 only installed if they're not already present.
2461 * licenses: Directory added to project; contains copies of license
2462 files for non-public-domain files.
2466 - Changed the focus. It's about DTD elements: structural
2467 relationships, semantics, and external (public) attributes. Not
2468 about the element class library.
2469 - Moved some implementation-specific stuff into ``docutils.nodes``
2471 - Wrote descriptions of all common attributes and parameter
2472 entities. Filled in introductory material.
2473 - Working through the element descriptions: 55 down, 37 to go.
2474 - Removed "Representation of Horizontal Rules" to
2475 spec/rst/alternatives.txt.
2477 * spec/docutils.dtd:
2479 - Added "generated" inline element.
2480 - Added "line_block" body element.
2481 - Added "auto" attribute to "title".
2482 - Changed content models of "literal_block" and "doctest_block" to
2484 - Added ``%number;`` attribute type parameter entity.
2485 - Changed ``%structural.elements;`` to ``%section.elements``.
2486 - Updated attribute types; made more specific.
2487 - Added "address" bibliographic element.
2488 - Added "line" attribute to ``system_message`` element.
2489 - Removed "field_argument" element; "field_name" may contain
2490 multiple words and whitespace.
2491 - Changed public identifier to docutils.sf.net.
2492 - Removed "interpreted" element; added "title_reference",
2493 "abbreviation", "acronym".
2494 - Removed "refuri" attribute from "footnote_reference" and
2495 "citation_reference".
2496 - Added "sidebar", "rubric", "attribution", "admonition",
2497 "superscript", "subscript", and "inline" elements.
2499 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2501 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2503 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2505 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2508 * spec/transforms.txt: Added to project.
2510 * spec/howto: Added subdirectory, for developer how-to docs.
2512 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2513 Elza, edited & extended by David Goodger.
2515 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2518 * spec/rst/alternatives.txt:
2520 - Added "Doctree Representation of Transitions" from
2522 - Updated "Inline External Targets" & closed the debate.
2523 - Added ideas for interpreted text syntax extensions.
2524 - Added "Nested Inline Markup" section.
2526 * spec/rst/directives.txt:
2528 - Added directives: "topic", "sectnum", "target-notes",
2529 "line-block", "parsed-literal", "include", "replace", "sidebar",
2530 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2532 - Formalized descriptions of directive details.
2533 - Added an "align" attribute to the "image" & "figure" directives
2534 (by Adam Chodorowski).
2535 - Added "class" options to "topic", "sidebar", "line-block",
2536 "parsed-literal", "contents", and "image"; and "figclass" to
2539 * spec/rst/interpreted.txt: Added to project. Descriptions of
2540 interpreted text roles.
2542 * spec/rst/introduction.txt:
2544 - Added pointers to material for new users.
2546 * spec/rst/reStructuredText.txt:
2548 - Disambiguated comments (just add a newline after the "::").
2549 - Updated enumerated list description; added a discussion of the
2550 second-line validity checking.
2551 - Updated directive description.
2552 - Added a note redirecting newbies to the user docs.
2553 - Expanded description of inline markup start-strings in non-markup
2555 - Removed field arguments and made field lists a generic construct.
2556 - Removed the 4-character minimum for section title underlines.
2557 - Clarified term/classifier delimiter & inline markup ambiguity
2559 - Added "Embedded URIs".
2560 - Updated "Interpreted Text" section.
2561 - Added "Character-Level Inline Markup" section.
2563 * test: Continually adding & updating tests.
2565 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2566 - Moved test/test_pep/ to test/test_readers/test_pep/.
2567 - Added test/test_readers/test_python/.
2568 - Added test/test_writers/ (Engelbert Gruber).
2572 - Made the ``locale.setlocale()`` calls in front ends
2575 * tools/buildhtml.py:
2577 - Added "--silent" option.
2578 - Fixed bug with absolute paths & "--config".
2579 - Updated for new I/O classes.
2580 - Added some exception handling.
2581 - Separated publishers' setting defaults; prevents interference.
2582 - Updated for new ``publish_file()`` convenience function.
2584 * tools/pep-html-template:
2586 - Allow for "--embed-stylesheet".
2587 - Added Docutils version to "generator" meta tag.
2588 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2589 - Conform to XHTML spec.
2591 * tools/pep2html.py:
2593 - Made ``argv`` a parameter to ``main()``.
2594 - Added support for "Content-Type:" header & arbitrary PEP formats.
2595 - Linked "Content-Type: text/plain" to PEP 9.
2596 - Files skipped (due to an error) are not pushed onto the server.
2597 - Updated for new I/O classes.
2598 - Added ``check_requirements()`` & ``pep_type_error()``.
2599 - Added some exception handling.
2600 - Updated for new ``publish_string()`` convenience function.
2601 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2603 * tools/quicktest.py:
2605 - Added "-V"/"--version" option.
2607 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2609 * tools/unicode2rstsubs.py: Added to project. Produces character
2610 entity files (reSructuredText substitutions) from the MathML master
2613 * tools/editors: Support code for editors, added to project. Contains
2614 ``emacs/restructuredtext.el``.
2616 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2618 - Added style for chunks of inline literals.
2619 - Removed margin for first child of table cells.
2620 - Right-aligned field list names.
2621 - Support for auto-numbered section titles in TOCs.
2622 - Increased the size of inline literals (<tt>) in titles.
2623 - Restored the light gray background for inline literals.
2624 - Added support for "line_block" elements.
2625 - Added style for "address" elements.
2626 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2627 - Improved field list rendering.
2628 - Vertical whitespace improvements.
2629 - Removed "a.target" style.
2631 * tools/stylesheets/pep.css:
2633 - Fixed nested section margins.
2634 - Other changes parallel those of ``../default.css``.
2637 Release 0.2 (2002-07-31)
2638 ========================
2642 - The word "component" was being used ambiguously. From now on,
2643 "component" will be used to mean "Docutils component", as in Reader,
2644 Writer, Parser, or Transform. Portions of documents (Table of
2645 Contents, sections, etc.) will be called "document parts".
2646 - Did a grand renaming: a lot of ``verylongnames`` became
2647 ``very_long_names``.
2648 - Cleaned up imports: no more relative package imports or
2649 comma-separated lists of top-level modules.
2650 - Added support for an option values object which carries default
2651 settings and overrides (from command-line options and library use).
2652 - Added internal Unicode support, and support for both input and
2654 - Added support for the ``docutils.io.IO`` class & subclasses.
2658 * docutils/__init__.py:
2660 - Added ``ApplicationError`` and ``DataError``, for use throughout
2662 - Added ``Component`` base class for Docutils components; implements
2663 the ``supports`` method.
2664 - Added ``__version__`` (thus, ``docutils.__version__``).
2668 - Removed many keyword parameters to ``Publisher.__init__()`` and
2669 ``publish()``; bundled into an option values object. Added
2670 "argv", "usage", "description", and "option_spec" parameters for
2671 command-line support.
2672 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2674 - Reworked I/O model for ``docutils.io`` wrappers.
2675 - Updated ``Publisher.set_options()``; now returns option values
2677 - Added support for configuration files (/etc/docutils.conf,
2678 ./docutils.conf, ~/.docutils).
2679 - Added ``Publisher.setup_option_parser()``.
2680 - Added default usage message and description.
2682 * docutils/frontend.py: Added to project; support for front-end
2683 (command-line) scripts. Option specifications may be augmented by
2684 components. Requires Optik (http://optik.sf.net/) for option
2685 processing (installed locally as docutils/optik.py).
2687 * docutils/io.py: Added to project; uniform API for a variety of input
2690 * docutils/nodes.py:
2692 - Added ``TreeCopyVisitor`` class.
2693 - Added a ``copy`` method to ``Node`` and subclasses.
2694 - Added a ``SkipDeparture`` exception for visitors.
2695 - Renamed ``TreePruningException`` from ``VisitorException``.
2696 - Added docstrings to ``TreePruningException``, subclasses, and
2698 - Improved docstrings.
2699 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2700 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2702 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2703 ``PreDecorative`` mixin.
2704 - Reworked the name/id bookkeeping; to ``document``, removed
2705 ``explicit_targets`` and ``implicit_targets`` attributes, added
2706 ``nametypes`` attribute and ``set_name_id_map`` method.
2707 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2709 - Added ``document.has_name()`` method.
2710 - Fixed DOM generation for list-attributes.
2711 - Added category class ``Labeled`` (used by footnotes & citations).
2712 - Added ``Element.set_class()`` method (sets "class" attribute).
2714 * docutils/optik.py: Added to project. Combined from the Optik
2715 package, with added option groups and other modifications. The use
2716 of this module is probably only temporary.
2718 * docutils/statemachine.py:
2720 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2721 - Added underscores to improve many awkward names.
2722 - In ``string2lines()``, changed whitespace normalizing translation
2723 table to regexp; restores Python 2.0 compatibility with Unicode.
2725 * docutils/urischemes.py:
2727 - Filled in some descriptions.
2728 - Added "shttp" scheme.
2730 * docutils/utils.py:
2732 - Added ``clean_rcs_keywords`` function (moved from
2733 docutils/transforms/frontmatter.py
2734 ``DocInfo.filter_rcs_keywords``).
2735 - Added underscores to improve many awkward names.
2736 - Changed names of Reporter's thresholds:
2737 warning_level -> report_level; error_level -> halt_level.
2738 - Moved ``utils.id()`` to ``nodes.make_id()``.
2739 - Added ``relative_path(source, target)``.
2741 * docutils/languages/de.py: German mappings; added to project. Thanks
2742 to Gunnar Schwant for the translations.
2744 * docutils/languages/en.py: Added "Dedication" bibliographic field
2747 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2750 * docutils/parsers/rst/states.py:
2752 - Added underscores to improve many awkward names.
2753 - Added RFC-2822 header support.
2754 - Extracted the inline parsing code from ``RSTState`` to a separate
2755 class, ``Inliner``, which will allow easy subclassing.
2756 - Made local bindings for ``memo`` container & often-used contents
2757 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2758 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2759 - Added ``MarkupMismatch`` exception; for late corrections.
2760 - Added ``-/:`` characters to inline markup's start string prefix,
2761 ``/`` to end string suffix.
2762 - Fixed a footnote bug.
2763 - Fixed a bug with literal blocks.
2764 - Applied patch from Simon Budig: simplified regexps with symbolic
2765 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2766 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2767 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2768 - Allowed non-ASCII in "simple names" (directive names, field names,
2770 - Converted ``Inliner.patterns.initial`` to be dynamically built
2771 from parts with ``build_regexp()`` function.
2772 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2773 - Updated docstrings.
2774 - Changed "table" to "grid_table"; added "simple_table" support.
2776 * docutils/parsers/rst/tableparser.py:
2778 - Changed ``TableParser`` to ``GridTableParser``.
2779 - Added ``SimpleTableParser``.
2780 - Refactored naming.
2782 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2783 a fallback language for directive names.
2785 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2786 directive to use a ``pending`` element, used only by HTML writers.
2788 * docutils/parsers/rst/directives/parts.py: Renamed from
2791 - Added "backlinks" attribute to "contents" directive.
2793 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2794 project by Adam Chodorowski.
2796 * docutils/readers/__init__.py: Gave Readers more control over
2797 choosing and instantiating Parsers.
2799 * docutils/readers/pep.py: Added to project; for PEP processing.
2801 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2802 requires a ``component`` parameter.
2804 * docutils/transforms/components.py: Added to project; transforms
2805 related to Docutils components.
2807 * docutils/transforms/frontmatter.py:
2809 - In ``DocInfo.extract_authors``, check for a single "author" in an
2810 "authors" group, and convert it to a single "author" element.
2811 - Added support for "Dedication" and generic bibliographic fields.
2813 * docutils/transforms/peps.py: Added to project; PEP-specific.
2815 * docutils/transforms/parts.py: Renamed from old components.py.
2817 - Added filter for `Contents`, to use alt-text for inline images,
2818 and to remove inline markup that doesn't make sense in the ToC.
2819 - Added "name" attribute to TOC topic depending on its title.
2820 - Added support for optional TOC backlinks.
2822 * docutils/transforms/references.py: Fixed indirect target resolution
2823 in ``Hyperlinks`` transform.
2825 * docutils/transforms/universal.py:
2827 - Changed ``Messages`` transform to properly filter out system
2828 messages below the warning threshold.
2829 - Added ``Decorations`` transform (support for ``--generator``,
2830 ``--date``, ``--time``, ``--source-link`` options).
2832 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2833 Engelbert Gruber's PDF writer.
2835 * docutils/writers/html4css1.py:
2837 - Made XHTML-compatible (switched to lowercase element & attribute
2838 names; empty tag format).
2839 - Escape double-dashes in comment text.
2840 - Improved boilerplate & modularity of output.
2841 - Exposed modular output in Writer class.
2842 - Added a "generator" meta tag to <head>.
2843 - Added support for the ``--stylesheet`` option.
2844 - Added support for ``decoration``, ``header``, and ``footer``
2846 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2847 translation table to regexp; restores Python 2.0 compatibility
2849 - Added the translator class as instance variable to the Writer, to
2850 make it easily subclassable.
2851 - Improved option list spacing (thanks to Richard Jones).
2852 - Modified field list output.
2853 - Added backlinks to footnotes & citations.
2854 - Added percentage widths to "<col>" tags (from colspec).
2855 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2856 "<span>" changed to "<var>".
2857 - Inline literals: "<code>" changed to "<tt>".
2858 - Many changes to optimize vertical space: compact simple lists etc.
2859 - Add a command-line options & directive attributes to control TOC
2860 and footnote/citation backlinks.
2861 - Added support for optional footnote/citation backlinks.
2862 - Added support for generic bibliographic fields.
2863 - Identify backrefs.
2864 - Relative URLs for stylesheet links.
2866 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2867 PEPs (subclass of ``html4css1.Writer``).
2869 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2871 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2872 of the Docutils internal doctree in XML.
2874 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2878 - Changed the title to "The Docutils Document Tree".
2879 - Added "Hyperlink Bookkeeping" section.
2881 * spec/docutils.dtd:
2883 - Added ``decoration``, ``header``, and ``footer`` elements.
2884 - Brought ``interpreted`` element in line with the parser: changed
2885 attribute "type" to "role", added "position".
2886 - Added support for generic bibliographic fields.
2888 * spec/notes.txt: Continual updates. Added "Project Policies".
2890 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2893 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2895 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2896 mailing list discussions.
2898 * spec/pep-0287.txt:
2900 - Renamed to "reStructuredText Docstring Format".
2902 - Reworked Q&A as an enumerated list.
2903 - Converted to reStructuredText format.
2905 * spec/pysource.dtd:
2907 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2909 * spec/pysource.txt: Removed from project. Moved much of its contents
2912 * spec/rst/alternatives.txt:
2914 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2915 - Added "Inline External Targets" section.
2917 * spec/rst/directives.txt:
2919 - Added "backlinks" attribute to "contents" directive.
2921 * spec/rst/problems.txt:
2923 - Updated the Enumerated List Markup discussion.
2924 - Added new alternative table markup syntaxes.
2926 * spec/rst/reStructuredText.txt:
2928 - Clarified field list usage.
2929 - Updated enumerated list description.
2930 - Clarified purpose of directives.
2931 - Added ``-/:`` characters to inline markup's start string prefix,
2932 ``/`` to end string suffix.
2933 - Updated "Authors" bibliographic field behavior.
2934 - Changed "inline hyperlink targets" to "inline internal targets".
2935 - Added "simple table" syntax to supplement the existing but
2936 newly-renamed "grid tables".
2937 - Added cautions for anonymous hyperlink use.
2938 - Added "Dedication" and generic bibliographic fields.
2940 * test: Made test modules standalone (subdirectories became packages).
2942 * test/DocutilsTestSupport.py:
2944 - Added support for PEP extensions to reStructuredText.
2945 - Added support for simple tables.
2946 - Refactored naming.
2948 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2950 - Now supports true packages containing test modules
2951 (``__init__.py`` files required); fixes duplicate module name bug.
2953 * test/test_pep/: Subpackage added to project; PEP testing.
2955 * test/test_rst/test_SimpleTableParser.py: Added to project.
2959 - Updated html.py and publish.py front-end tools to use the new
2960 command-line processing facilities of ``docutils.frontend``
2961 (exposed in ``docutils.core.Publisher``), reducing each to just a
2963 - Added ``locale.setlocale()`` calls to front-end tools.
2965 * tools/buildhtml.py: Added to project; batch-generates .html from all
2966 the .txt files in directories and subdirectories.
2968 * tools/default.css:
2970 - Added support for ``header`` and ``footer`` elements.
2971 - Added styles for "Dedication" topics (biblio fields).
2973 * tools/docutils.conf: A configuration file; added to project.
2975 * tools/docutils-xml.py: Added to project.
2977 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2979 * tools/pep-html-template: Added to project.
2981 * tools/pep2html.py: Added to project from Python (nondist/peps).
2982 Added support for Docutils (reStructuredText PEPs).
2984 * tools/quicktest.py:
2986 - Added the ``--attributes`` option, hacked a bit.
2987 - Added a second command-line argument (output file); cleaned up.
2989 * tools/stylesheets/: Subdirectory added to project.
2991 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2994 Release 0.1 (2002-04-20)
2995 ========================
2997 This is the first release of Docutils, merged from the now inactive
2998 reStructuredText__ and `Docstring Processing System`__ projects. For
2999 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
3000 `DPS HISTORY`__ files.
3002 __ http://structuredtext.sourceforge.net/
3003 __ http://docstring.sourceforge.net/
3004 __ http://structuredtext.sourceforge.net/HISTORY.html
3005 __ http://docstring.sourceforge.net/HISTORY.html
3007 General changes: renamed 'dps' package to 'docutils'; renamed
3008 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
3009 the test suites (reStructuredText's test/test_states renamed to
3010 test/test_rst); and all modifications required to make it all work.
3012 * docutils/parsers/rst/states.py:
3014 - Improved diagnostic system messages for missing blank lines.
3015 - Fixed substitution_reference bug.
3021 indent-tabs-mode: nil
3022 sentence-end-double-space: t