1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: docutils-develop@lists.sourceforge.net
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
21 - removed the `handle_io_errors` option from io.FileInput/Output.
25 - Fix [ 253 ] Attribute key without value not allowed in XML.
27 * docutils/parsers/rst/__init__.py
29 - Fix [ 233 ] Change the base URL for the :rfc: role.
31 * docutils/parsers/rst/directives/tables.py
33 - Patch [ 120 ] tables accept option widths: list of relative widths, 'auto'
36 * docutils/utils/math/math2html.py
38 - Add ``\colon`` macro, fix spacing around colons. Fixes [ 246 ].
39 - New upstream version (additional macros, piecewise integrals and sums).
41 * docutils/writers/html_base/
43 - New HTML writer generating basic HTML (`polyglot markup`_ conforming to
44 both, `HTML 5`_ and `XHTML 1.0`_ (transitional)).
46 New stylesheet ``html-base.css`` for default layout using CSS 2.1 rules.
48 Also base for the `xhtml11` writer.
50 * docutils/writers/html4css1/__init__.py
52 - Add "docutils" to class values for "container" object to address [ 267 ].
53 - Apply patch [ 119 ] by Anatoly Techtonik: use absolute paths for
54 ``default_stylesheet_path`` and ``default_template_path``.
55 - Fix [ 266 ] creating labels/class values in description list items.
56 - Do not use <sup> and <sub> tags inside <pre> (parsed-literal blocks).
58 * docutils/writers/latex2e/__init__.py
60 - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
61 admonitions and docinfo.
63 - Use absolute path for ``default_template_path``.
65 - Removed deprecated options ``--use-latex-footnotes`` and
66 ``--figure-footnotes``.
68 - Cleaner LaTeX code for enumerations and literal blocks.
70 - Use "hyperref" package together with "bookmark" (improved hyperlinking
73 * docutils/writers/odf_odt/__init__.py
75 - remove decode.encode of filename stored in zip.
77 * docutils/writers/xetex/__init__.py
79 - LuaLaTex compatibility: do not load "xunicode".
81 * docutils/writers/xhtml11/
83 - New HTML writer generating `XHTML 1.1`_ styled with CSS2.1
84 Moved to the docutils core from sandbox/html4strict.
89 - New front-ends ``rst2xhtml.py`` and ``rst2html5.py`` for the
90 corresponding writers.
92 .. _polyglot markup: http://www.w3.org/TR/html-polyglot/
93 .. _HTML 5: http://www.w3.org/TR/html5/
94 .. _XHTML 1.0: http://www.w3.org/TR/xhtml1/
95 .. _XHTML 1.1: http://www.w3.org/TR/xhtml11/
98 Release 0.12 (2014-07-06)
99 =========================
101 * docs/ref/rst/directives.txt
103 - Update "math" and "csv-table" descriptions.
105 * docutils/parsers/rst/directives/images.py
107 - Fix [ 258 ] figwidth="image" generates unitless width value.
109 * docutils/parsers/rst/states.py
111 - Improve error report when a non-ASCII character is specified as
112 delimiter, quote or escape character under Python 2.
113 Fixes [ 249 ] and [ 250 ].
115 * docutils/writers/html4css1/__init__.py
117 - Don't add newline after inline math.
118 Thanks to Yury G. Kudryashov for the patch.
120 * docutils/writers/latex2e/__init__.py
122 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
123 - Apply [ 116 ] by Kirill Smelkov. Don't hardcode \large for subtitle.
125 * docutils/writers/odf_odt/__init__.py
127 - Apply patch by Jakub Wilk to fix bug [ 100 ].
129 * test/test_error_reporting.py
131 - Fix [ 223 ] by removing redundant tests we do not have control over.
135 - Apply [ 115 ] respect fixed 2to3 string literal conversion behavior.
137 Release 0.11 (2013-07-22)
138 =========================
142 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
143 - Support embedded aliases within hyperlink references.
144 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
145 language module) before global search.
149 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
151 * docutils/parsers/rst/directives/__init__.py
153 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
155 * docutils/parsers/rst/directives/images.py
157 - Apply [ 3599485 ] node source/line information for sphinx translation.
159 * docutils/parsers/rst/directives/tables.py
161 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
163 * docutils/parsers/rst/states.py
165 - Fix [ 157 ] Line block parsing doesn't like system message.
166 - Always import our local copy of roman.py (report Larry Hastings).
168 * docutils/transforms/references.py
170 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
172 * docutils/utils/__init__.py
174 - Fix [ 3596884 ] exception importing ``docutils.io``.
176 * docutils/writers/html4css1/__init__.py
178 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
179 - New setting `stylesheet_dirs`: Comma-separated list of directories
180 where stylesheets are found. Used by `stylesheet_path` when expanding
181 relative path arguments.
182 - New default for math-output_: ``HTML math.css``.
183 - Avoid repeated class declarations in html4css1 writer
184 (modified version of patch [ 104 ]).
186 .. _math-output: docs/user/config.html#math-output
188 * docutils/writers/latex2e/__init__.py
190 - Drop the simple algorithm replacing straight double quotes with
191 English typographic ones.
192 Activate the SmartQuotes_ transform if you want this feature.
193 - Fix literal use of babel shorthands (straight quote, tilde, ...).
194 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
195 - New setting `stylesheet_dirs`.
197 .. _SmartQuotes: docs/user/config.html#smart-quotes
199 * docutils/writers/manpage.py
201 - Fix [3607063] handle lines starting with a period.
202 - Fix option separating comma was bold (thanks to Bill Morris).
204 Release 0.10 (2012-12-16)
205 =========================
209 - Dropped support for Python 2.3.
210 - ``docutils/math``, ``docutils/error_reporting.py``, and
211 ``docutils/urischemes.py`` moved to the utils package.
212 - Fix [3541369] Relative __import__ also with Python 3.3.
213 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
214 and parsers for Python 2.7 up.
215 - Fix import of PIL.Image.
216 - Change default of "syntax highlight" option to "long",
217 basic syntax highlight styles for LaTeX and HTML.
221 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
222 option is ignored and will be removed in a future release.
223 - Fix Py3k error writing to stdout with encoding differing from default.
224 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
226 * docutils/parsers/rst/directives/misc.py
228 - Fix [ 3546533 ] Unicode error with `date` directive.
230 * docutils/transforms/universal.py
232 - SmartQuotes transform for typographic quotes and dashes.
234 * docutils/utils/__init__.py
236 - normalize_language_tag() now returns `BCP 47`_ conformant tags
237 with subtags separated by ``-``.
239 * docutils/writers/html4css1/__init__.py
241 - Use ``<code>`` tag for inline "code",
242 do not drop nested inline nodes (syntax highlight tokens).
243 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
244 - No line break after opening inline math tag.
246 * docutils/writers/manpage.py
248 - Apply [ 3527401 ] addmonition's don't preserve indentation
249 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
251 * docutils/writers/xetex/__init__.py
253 - Apply [ 3555160 ] ensure order of "otherlanguages".
254 - Fix section numbering by LaTeX.
256 * docutils/writers/s5_html/__init__.py
258 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
260 * docutils/writers/s5_html/docutils_xml.py
262 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
266 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
268 * tools/test/test_buildhtml.py
270 - Fix [ 3521167 ] allow running in any directory.
271 - Fix [ 3521168 ] allow running with Python 3.
274 Release 0.9.1 (2012-06-17)
275 ==========================
279 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
280 installed in the PYTHONPATH. Converted tests are now
281 stored in ``test3/``, tools no longer need conversion.
283 If you installed one of Docutils versions 0.7 ... 0.9 with
284 ``setup.py install`` under Python 3, remove the spurious
285 ``test/`` and ``tools/`` directories in the site library root.
289 - Make tests independent from the location of the ``test/`` directory.
290 - Use converted sources (from the ``build/`` directory) for tests under
295 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
299 - Fix writing binary data to sys.stdout under Python 3 (allows
300 ``rst2odt.py`` to be used with output redirection).
302 * docutils/parsers/rst/directives/misc.py
304 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
305 ``locale == C`` and 8-bit char in path argument of `include` directive.
309 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
312 Release 0.9 (2012-05-02)
313 ========================
317 - New reStructuredText "code" role and directive and "code" option
318 of the "include" directive with syntax highlighting by Pygments_.
319 - Fix parse_option_marker for option arguments containing ``=``.
320 - Fix [ 2993756 ]: import Python Imaging Library's Image module
321 via ``import PIL`` as starting with PIL 1.2,
322 "PIL lives in the PIL namespace only" (announcement__).
324 .. _Pygments: http://pygments.org/
325 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
329 - Fix [ 2971827 ] and [ 3442827 ]
330 extras/roman.py moved to docutils/utils/roman.py
332 * docutils/frontend.py
334 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
338 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
339 - `mode` argument for FileOutput avoids code replication in
341 - New exceptions InputError and OutputError for IO errors in
342 FileInput/FileOutput.
346 - No "hard" system exit on file IO errors: catch and report them in
347 `Publisher.reportException` instead. Allows handling by a calling
348 application if the configuration setting `traceback` is True.
350 * docutils/utils.py -> docutils/utils/__init__.py
352 - docutils.utils is now a package (providing a place for sub-modules)
354 .. note:: docutils/math, docutils/error_reporting.py, and
355 docutils/urischemes.py will move to the utils package in the next
356 release, too. See RELEASE-NOTES__
358 __ RELEASE-NOTES.html
360 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
361 errors recording non-ASCII filenames (fixes [ 3434355 ]).
363 - Fix relative_path() with source=None and `unicode` target.
365 * docutils/parsers/rst/states.py
367 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
368 characters and "international" quotes around inline markup.
369 - Use `field_marker` pattern to look for start of a
370 directive option block (fixes [ 3484857 ]).
372 * docutils/parsers/rst/tableparser.py
374 - Fix [ 2926161 ] for simple tables.
375 (Combining chars in grid tables still contribute to cell width.)
377 * docutils/writers/latex2e/__init__.py
379 - Support the `abbreviation` and `acronym` standard roles.
380 - Record only files required to generate the LaTeX source as dependencies.
381 - Fix handling of missing stylesheets.
382 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
383 when suppressing LaTeX section numbering.
384 - Use ``\DUtitle`` for unsupported section levels
385 - Apply [ 3512791 ] do not compare string literals with "is"
387 * docutils/writers/xetex/__init__.py
389 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
391 * docutils/writers/html4css1/__init__.py
393 - Change default for `math-output` setting to MathJax.
394 - Fix handling of missing stylesheets.
396 * docutils/writers/docutils_xml.py
398 - Use the visitor pattern with default_visit()/default_depart() methods
399 instead of minidom to facilitate special handling of selected nodes.
400 - Support raw XML (inserted as-is inside a <raw></raw> node).
402 * docutils/writers/manpage.py
404 - Do not emit comment line with trailing blank. Problematic for VCS.
406 Release 0.8.1 (2011-08-30)
407 ==========================
411 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
412 and [ 3395920 ] (correct copyright info for rst.el).
416 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
418 * docutils/writers/latex2e/__init__.py
420 - Clean up Babel language setting. Restores Sphinx compatibility.
422 Release 0.8 (2011-07-07)
423 ========================
427 - Handle language codes according to `BCP 47`_.
428 - If the specified language is not supported by Docutils,
429 warn and fall back to English.
430 - Math support: reStructuredText "math" role and directive,
431 ``math`` and ``math_block`` doctree elements.
432 - Decode command line arguments with the locale's preferred encoding
433 (to allow, e.g., ``--title=Dornröschen``).
434 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
435 - New sub-module `error_reporting`: handle encoding/decoding errors
436 when reporting exceptions.
437 - Some additions to the Docutils core are released under the 2-Clause BSD
438 license, see COPYING_ for details.
440 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
441 .. _COPYING: COPYING.html
445 - Most directives now support a "name" option that attaches a
448 - Directive content may start on the first line also when the directive
449 type accepts options.
451 * docs/dev/policies.txt:
453 - Recommend the 2-Clause BSD license
454 (http://www.spdx.org/licenses/BSD-2-Clause)
455 for code that is kept under the author's copyright.
457 * tools/buildhtml.py:
459 - Fix ``--local`` switch.
461 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
463 * docutils/writers/html4css1/__init__.py
465 - Set "lang" argument for objects with class argument
466 "language-<language tag>".
467 - New setting "math-output" with support for HTML, MathML, and LaTeX.
469 * docutils/writers/latex2e/__init__.py
471 - Fix [ 3043986 ] AttributeError using :local: with table of content.
472 - Place title data in the document preamble.
473 - Load `babel` package only if required.
474 - Update list of supported languages.
475 - New config setting "hyperref-options".
476 No hard-coded "unicode" hyperref option (clash with xetex).
477 - Set language for custom roles, paragraphs, block-quotes, and
478 line-quotes with class argument "language-<language tag>".
479 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
480 - Convert image URI to a local file path.
481 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
482 has more than one paragraph (Wolfgang Scherer).
483 - \leavevmode before longtable only when needed (prevents spurious vspace)
484 - do not advance table counter for tables without caption
486 * docutils/writers/xetex/__init__.py
488 - New writer generating LaTeX code for compiling with ``xelatex``.
490 A separate writer (inheriting from latex2e) instead of a ``--xetex``
491 option allows separate config options for XeTeX vs. LaTeX2e.
493 * docutils/writers/manpage.py
495 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
496 - Fix: vertical space cleaning for option group ``.``.
498 * tools/editors/emacs/rst.el:
500 - Fix [ 3001100 ] does not handle spaces in filenames
501 (thanks to Jakub Wilk)
505 - strip whitespace from stylesheet arguments
506 - exclude combining chars from column_width()
507 (partial fix for [ 2926161 ])
509 * docutils/parsers/rst/directives/misc.py:
511 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
516 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
517 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
519 Release 0.7 (2010-07-07)
520 ========================
524 - Fix [ 2881769 ] setup configuration.
525 - Fix [ 2788716 ] reporting problems in included files.
529 - FileInput opens files as text files with universal newline support
530 (mode "rU", configurable with the new optional argument "mode").
534 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
538 - Fix [ 2923723 ] let decode_path() tolerate path == None
540 * docutils/writers/html4css1/__init__.py
542 - Support SVG and SWF images (thanks to Stefan Rank).
543 - Generate valid XHTML for centered images with targets.
544 Use CSS classes instead of "align" tags for image alignment.
546 * docutils/writers/latex2e/__init__.py
548 - Use `transforms.writer_aux.Admonitions` to "normalize" special
550 - Use the ``\url`` command for URLs (breaks long URLs instead of
551 writing into the margin).
552 - Preserve runs of spaces in `inline literals`__.
553 - Deprecate ``figure_footnotes`` setting.
554 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
555 - New ``latex_preamble`` setting.
556 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
557 - Fix hyperlink targets (labels) for images, figures, and tables.
558 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
559 - Apply [ 2961991 ] Call hyperref with unicode option.
560 - Drop the special `output_encoding`__ default ("latin-1").
561 The Docutils wide default (usually "UTF-8") is used instead.
562 - Render inline markup in document title and subtitle.
563 - Fix numbering depth with LaTeX section numbering.
564 - Update Unicode -> LaTeX translations.
565 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
567 __ docs/ref/restructuredtext.html#inline-literals
568 __ docs/user/config.html#docutils-footnotes
569 __ docs/user/config.html#output_encoding
571 * docutils/writers/manpage.py
573 - Fix: supported attribute (thanks to peter2108).
574 - Remove trailing blanks in code (keep in sync with mercurial version).
575 - Titles level 1, that is ``.SH``, always uppercase.
576 - Apply patch from mg: literal text should be bold in man-pages.
580 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
585 - Python 3 support: copy test/ and tools/ to the build-dir
586 and convert Python sources with 2to3.
589 Release 0.6 (2009-10-11)
590 ========================
594 - Docutils is now compatible with Python versions from 2.3 up to 2.6
595 and convertible to 3.1 code.
597 + Node.__nonzero__ returns True instead of 1.
598 + use os.walk instead os.path.walk.
599 + minimize "types" module where possible.
600 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
601 + Text nodes now subclass unicode rather than UserString
602 (which is gone in python 3.0).
603 + 3.0 compatibility module docutils._compat
605 + Drop 2.2 compatibility workarounds.
606 + Drop extras/optparse.py and extras/textwrap.py
607 (stdlib modules since 2.3).
609 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
610 - Unix man page export: manpage writer moved from sandbox to Doctutils
613 - Apply [ 1719345 ] Galician translation
614 - Apply [ 1905741 ] Polish translation
615 - Apply [ 1878977 ] make_id(): deaccent characters.
616 - Apply [ 2029251 ] return nonzero when tests fail.
617 - Fix [ 1692788 ] allow UTF-8 in style sheets.
618 - Fix [ 2781629 ] support non-ASCII chars in file names.
619 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
620 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
621 - Fix [ 2821266 ] --strict option works now like --halt=info.
622 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
623 - Fix [ 1627229 ] hyperlink references in substitutions.
625 - The "newlatex" writer is orphaned.
629 - Documented Unicode characters allowed as inline markup openers,
630 closers, and delimiters.
631 - Allow units for all length specifications.
632 - Allow percent sign in "scale" argument of "figure" and "image" directives.
633 - Bugfix: The "figalign" argument of a figure now works as intended
634 (aligning the figure, not its contents).
635 - Align images with class "align-[right|center|left]"
636 (allows setting the alignment of an image in a figure).
640 - Added ``Element.__contains__`` method, for the in-operator.
642 * docutils/parsers/rst/states.py:
644 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
645 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
646 " " (non-breaking space), and "¡ ¿" openers.
648 * docutils/parsers/directives/misc.py:
650 - Added ``start-line`` and ``end-line`` options to "include"
651 directive to select a range of lines.
652 - Hard tabs in literal inclusions are replaced by spaces. This is
653 configurable via the new ``tab-width`` option of the "include" directive
654 (a negative tab-width prevents tab expansion).
658 - Add ``get_stylesheet_list`` function.
659 - Apply [ 2834836 ] print info at halt
661 * docutils/transforms/universal.py:
663 - Raise default priority of StripClasses to exclude stripped classes from
666 * docutils/writers/html4css1/__init__.py:
668 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
669 separated list of stylesheets.
670 - Address [ 1938891 ] Inline literal text creates "pre" span only when
671 needed to prevent inter-word line wraps.
672 - Use `translate` method instead of repeated `replace` calls.
673 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
674 classes to allow CSS styling that does not interfere with other
675 table-using constructs (field lists, citations, ...).
677 * docutils/writers/newlatex2e/__init__.py:
679 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
681 * docutils/writers/latex2e/__init__.py (see also
682 `<docs/user/docutils-05-compat.sty.html>`__) :
684 - Add ``--embed-stylesheet`` option.
685 - Apply [ 1474017 ] image vertical alignment is reversed.
686 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
687 - Change: has_key for dictionaries (not Nodes) to in-operator.
688 - Merge adjacent citations into one latex cite command.
689 - Failsave implementation of custom roles. LaTeX compilation now ignores
690 unknown classes instead of aborting with an error.
691 - Support custom roles based on standard roles.
692 - LaTeX packages can be used as ``--stylesheet`` arguments without
693 restriction. (A style sheet is now referenced with the ``\usepackage``
694 command, if it ends with ``.sty`` or has no extension.)
695 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
696 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
697 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
698 2005-02-04 as a configurable length unit).
699 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
700 if font-encoding is set to ''. LaTeX defaults to OT1 then.
701 - Set sub- and superscript role argument in text mode not as math.
702 Use a custom role based on sub-/superscript if you want italic shape.
703 - Shorter preamble and less dependencies: Load packages and define macros
704 only if required in the document.
705 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
706 - New custom environments and commands with optional "classes" argument.
707 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
708 - Better conformance to Docutils specifications with ``--use-latex-toc``.
709 Support for LaTeX generated ToC also with unnumbered sections.
710 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
711 section numbering by LaTeX.
712 - Use default font in admonitions and sidebar.
713 - Align of image in a figure defaults to 'center'.
714 - Bugfix: Newlines around targets and references prevent run-together
716 - Fix internal hyperlinks.
717 - Use class defaults for page margins ('typearea' now optional).
718 - Float placement made configurable, default changed to "here definitely".
719 - Typeset generic topic as "quote block with title".
720 - Use template (file and configuration option).
721 - In the default template, load cmap.sty (fix text extraction in PDF) and
722 fixltx2e.sty (LaTeX patches, \textsubscript).
723 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
724 - Use `translate` instead of repeated `replace` calls for text encoding.
725 - Hyperlinked footnotes and support for symbol footnotes and
726 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
727 - Complete pairs of binary options
728 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
729 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
731 - font-encoding: "T1" (formerly implicitely set by 'ae').
732 - use-latex-toc: true (ToC with page numbers).
733 - use-latex-footnotes: true (no mixup with figures).
735 * docutils/writers/manpage.py
737 - Do not print version at document end, this is done by the viewer.
738 - Do not print date at document end, this is done by the viewer.
739 - Fix storage of docinfo fields for none standard fields.
741 * docutils/tools/rst2man.py
743 Release 0.5 (2008-06-25)
744 ========================
746 * docutils/languages/he.py: Added to project: Hebrew mappings by
749 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
750 mappings by Meir Kriheli.
752 * docutils/frontend.py:
754 - Configuration files are now assumed and required to be
756 - Paths of applied configuration files are now recorded in the
757 runtime setting ``_config_files`` (accessible via
758 ``--dump-settings``).
759 - Added ``--strip-elements-with-class`` and ``--strip-class``
760 options (``strip_elements_with_classes`` and ``strip_classes``
765 - Added code to determine the input encoding from data: encoding
766 declarations or the presence of byte order marks (UTF-8 & UTF-16).
767 - Added support for IronPython 1.0.
771 - Added ``document.__getstate__`` method, for pickling.
773 * docutils/parsers/rst/states.py:
775 - Allow ``+`` and ``:`` in reference names.
776 - Unquoted targets beginning with an underscore (``.. __target:
777 URI``) are no longer accepted.
778 - Added support for multiple attributions in a physical block quote
779 (indented text block), dividing it into multiple logical block
781 - Added support for unicode bullets in bullet lists: "•", "‣", and
783 - Added support for new object-oriented directive interface,
784 retaining compatibility to the old functional interface.
785 - Added support for throwing ``DirectiveError``'s from within
788 * docutils/parsers/rst/__init__.py:
790 - Added ``Directive`` base class.
791 - Added ``DirectiveError`` base class.
792 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
795 * docutils/parsers/directives/:
797 - Refactored all reStructuredText directives to use the new
798 object-oriented directive interface. Errors are now (mostly)
799 thrown using the new ``DirectiveError`` class.
801 * docutils/parsers/directives/misc.py:
803 - Added ``start-after`` and ``end-before`` options to ``include``
804 directive; thanks to Stefan Rank.
806 * docutils/transforms/universal.py:
808 - Added ``StripClassesAndElements`` transform to remove from the
809 document tree all elements with classes in
810 ``settings.strip_elements_with_classes`` and all "classes"
811 attribute values in ``self.document.settings.strip_classes``.
813 * docutils/transforms/writer_aux.py:
815 - Added ``Admonitions`` transform to transform specific admonitions
816 (like ``note``, ``warning``, etc.) into generic admonitions with a
819 * docutils/writers/html4css1/__init__.py:
821 - Moved template functionality from the PEP/HTML writer here.
822 - Expanded the fragments available in the ``parts`` attribute.
823 - Moved ``id`` attributes from titles to surrounding ``div``
825 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
826 universally supported now).
827 - ``template.txt`` is now opened in text mode instead of binary mode
828 (to ensure Windows compatibility).
829 - ``a`` elements now have an "internal" or "external" class,
830 depending on reference type.
832 * docutils/writers/html4css1/template.txt: Added to project.
834 * docutils/writers/pep_html/:
836 - Moved template functionality to the HTML writer.
838 * docutils/writers/s5_html/__init__.py:
840 - Added ``view_mode`` & ``hidden_controls`` settings
841 (``--view-mode`` & ``--hidden-controls/--visible-controls``
844 * docutils/writers/latex2e/__init__.py:
846 - Add ``--literal-block-env``
847 - Fix: escaping ``%`` in href urls.
848 - Move usepackage hyperref after stylesheet inclusion.
849 - Fix: scrartcl does not have chapter but scrreprt.
850 - Add newline after ``\end{verbatim}``.
851 - Merge smaller differences from latex2e_adaptive_preamble.
852 - Add ``use-part-section``.
853 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
854 - Using leavemode option_list no longer needs to check if parent
855 is a definition list.
856 - Append ``\leavemode`` to definition list terms.
857 - No longer write visit\_/depart_definition_list_item comments to
859 - Table column width with 3 decimal places.
860 - Add table stubs support (boldfont).
861 - Add assemble_parts to writer.
862 - Add simply support for nested tables.
863 - Fix verbatim in tables if use-verbatim-when-possible.
864 - Use section commands down to subparagraph.
865 - Put ensuremath around some latin1 chars.
866 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
867 - New option ``--use-bibtex=style,db1,db2``.
868 - New option ``--reference-label`` to allow usage of LaTeX ref for
869 labels in section references.
870 - Add a label after every section to support sectionnumbers as reference
872 - Fix: bug# 1605376 rst2latex: bad options group list
873 - Remove inactive code for use_optionlist_for_option_list.
874 - Remove latex comments from option_list output.
875 - Fix: bug# 1612270 double qoutes in italian literal.
876 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
877 - Add option --use-latex-abstract.
878 - Image width unit ``px`` is translated to ``pt``.
879 - Add image height support.
880 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
882 - Fix: Do not escape underscores in citation reference labels if
883 use-latex-citations is set.
884 - Use centering instead of center for figure contents, to avoid vertical
886 - Recognize table class: borderless, nolines, booktabs, standard.
887 - Fix: Renaming contents section does not work with latex writer; SF
889 - Applied patch for custom roles with classes from Edward Loper.
890 - Fixed bug that caused crashes with more than 256 lists.
892 * docutils/writers/pep_html/__init__.py:
894 - Changed to support new python.org website structure and
897 * docs/howto/security.txt: "Deploying Docutils Securely", added to
900 * tools/buildhtml.py:
902 -- Added ``ignore`` setting to exclude a list of shell patterns
903 (default: ``.svn:CVS``).
905 * tools/editors/emacs/rst.el:
907 - Changed license to "GPL".
908 - Added ``rst-straighten-decorations`` function.
909 - The ``compile`` module is now always loaded.
910 - Added ``rst-toggle-line-block`` function.
911 - Headings consisting only of non-ASCII characters are now
912 recognized by ``rst-toc`` and ``rst-adjust``.
913 - Added font-lock support for multi-line comments where the first
914 comment line is empty.
915 - Added ``(require 'font-lock)``.
919 - Provide descriptive error message if distutils is missing.
922 Release 0.4 (2006-01-09)
923 ========================
927 - Updated the project policies for trunk/branch development &
930 * docutils/__init__.py:
932 - Added ``__version_details__`` attribute to describe code source
933 (repository/snapshot/release).
934 - Replaced ``default_transforms`` attribute of TransformSpec with
935 ``get_transforms()`` method.
939 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
940 functions, for document tree extraction and reprocessing.
944 - Added ``DocTreeInput`` class, for reprocessing existing documents.
945 - Added support for non-Unicode (e.g. binary) writer output.
949 - Re-introduced ``Targetable.indirect_reference_name``, for
950 MoinMoin/reST compatibility (removed in r3124/r3129).
951 - Added ``serial_escape`` function; escapes string values that are
952 elements of a list, for serialization. Modified Docutils-XML
953 writing (``Element._dom_node``) and pseudo-XML writing
954 (``Element.starttag``) to use ``serial_escape``.
955 - Added ``Node.deepcopy()`` method.
956 - Removed the internal lists ``document.substitution_refs``,
957 ``document.anonymous_refs``, and ``document.anonymous_targets``.
958 - Added a "container" element.
959 - Fixed bug where values of list-valued attributes of elements
960 originating from custom interpreted text roles (i.e., with custom
961 classes) were being shared between element instances. Reported by
964 * docutils/statemachine.py:
966 - Added trailing whitespace stripping to ``string2lines()``.
967 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
968 Asian double-width character support.
972 - Added ``east_asian_column_width()`` for double-width character
975 * docutils/languages/ja.py: Added to project: Japanese mappings by
978 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
979 mappings by Panjunyong.
981 * docutils/parsers/null.py: Added to project; a do-nothing parser.
983 * docutils/parsers/rst/__init__.py:
985 - Added validator to tab_width setting, with test. Closes SF bug
986 #1212515, report from Wu Wei.
988 * docutils/parsers/rst/states.py:
990 - Fixed bug with escaped colons indicating a literal block.
991 - Fixed bug with enumerated lists (SF#1254145).
992 - Backslash-escaped colons inside of field names are now allowed.
993 - Targets (implicit and explicit), anonymous hyperlink references
994 and auto-numbered footnote references inside of substitution
995 definitions are now disallowed.
996 - Fixed bug: list items with blank first lines.
997 - Fixed bug: block quote attributions with indented second lines.
998 - Added East Asian double-width character support (Python 2.4 only).
1000 * docutils/parsers/rst/tableparser.py:
1002 - Added East Asian double-width character support (Python 2.4 only).
1004 * docutils/parsers/rst/directives/body.py:
1006 - Added the "container" directive.
1008 * docutils/parsers/rst/directives/misc.py:
1010 - Added the "default-role", "title", and "date" directives.
1011 - Added standard data file syntax to the "include" directive.
1012 - Added support for "class" directive content.
1014 * docutils/parsers/rst/directives/images.py:
1016 - Added ``indirect_reference_name`` support for images with a target
1018 - Added support for image width and height units.
1019 - Fixed bug with image "target" options.
1021 * docutils/parsers/rst/directives/references.py:
1023 - Added "class" attribute to "target-notes" directive, for
1024 footnote_reference classes.
1026 * docutils/parsers/rst/include/: Directory added to project; contains
1027 standard data files for the "include" directive. Initial contents:
1028 character entity substitution definition sets, and a set of
1029 definitions for S5/HTML presentations.
1031 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
1032 mappings by David Goodger.
1034 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
1035 Simplified Chinese mappings by Panjunyong.
1037 * docutils/readers/__init__.py:
1039 - Added universal.Decorations and universal.ExposeInternals
1040 transforms as default transforms for all readers.
1041 - Added ``ReReader`` base class for readers that reread an existing
1044 * docutils/readers/doctree.py: Added to project; a reader for existing
1047 * docutils/transforms/frontmatter.py:
1049 - Fixed the DocInfo transform to handle SVN-style expansion of the
1051 - In ``DocInfo.extract_authors``, treat the contents of "authors"
1054 * docutils/transforms/misc.py:
1056 - Added misc.Transitions transform, extracted from
1057 universal.FinalChecks.
1059 * docutils/transforms/references.py:
1061 - Added references.DanglingReferences transform, extracted from
1062 universal.FinalChecks.
1063 - Fixed bug with doubly-indirect substitutions.
1064 - Added footnote_reference classes attribute to "TargetNotes".
1065 - Fixed bug with circular substitution definitions that put Docutils
1066 into an infinite loop.
1068 * docutils/transforms/universal.py:
1070 - Added universal.ExposeInternals transform, extracted from
1071 universal.FinalChecks.
1072 - Removed universal.FinalChecks transform (logic has been moved to
1073 several new transforms).
1074 - Fixed bug with the "expose_internals" setting and Text nodes
1075 (exposed by the "rawsource" internal attribute).
1076 - Added the universal.StripComments transform, implementation of the
1077 "strip_comments" setting.
1079 * docutils/transforms/writer_aux.py: Added to project; auxiliary
1080 transforms for writers.
1082 - Added ``Compound`` transform, which flattens compound paragraphs.
1084 * docutils/writers/: Several writer modules (html4css1.py) were
1085 converted into packages. Support modules and data files have been
1086 moved into the packages. The stylesheets for the HTML writers are
1087 now installed along with the code, the code knows where to find
1088 them, and the default is to use them (actually, to embed them).
1089 Some adjustments to configuration files may be necessary. The
1090 easiest way to obtain the new default behavior is to remove all
1091 settings whose name includes "stylesheet".
1093 * docutils/writers/__init__.py:
1095 - Added universal.Messages and universal.FilterMessages transforms
1096 as default transforms for all writers.
1097 - Added ``UnfilteredWriter`` base class for writers that pass the
1098 document tree on unchanged.
1100 * docutils/writers/docutils_xml.py:
1102 - Made ``xmlcharrefreplace`` the default output encoding error
1105 * docutils/writers/html4css1/:
1107 - Added support for image width and height units.
1108 - Made ``xmlcharrefreplace`` the default output encoding error
1110 - Made ``--embed-stylesheet`` the default rather than
1111 ``--link-stylesheet``.
1112 - Moved "id" attribute from container (section etc.) to title's <a>
1113 tag, to be on the same tag as "name".
1114 (!!! To be reverted in Docutils 0.5.)
1115 - Added vertical space between fields of field lists.
1116 - Added ``--compact-field-lists`` option to remove vertical space in
1118 - Made cloaking of email addresses with ``--cloak-email-addresses``
1120 - Fixed support for centered images.
1121 - Added support for class="compact" & class="open" lists.
1123 * docutils/writers/latex2e/:
1125 - Underscores in citekeys are no longer escaped.
1127 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1128 mapping of Unicode characters to LaTeX equivalents.
1130 * docutils/writers/s5_html/: Package added to project; writer for
1131 S5/HTML slide shows.
1133 * docs/dev/distributing.txt: Added to project; guide for distributors
1134 (package maintainers).
1136 * docs/dev/hacking.txt: Added to project; guide for developers.
1138 * docs/ref/doctree.txt:
1140 - Updated for plural attributes "classes", "ids", "names",
1142 - Added the "container" element.
1144 * docs/ref/docutils.dtd:
1146 - Updated for plural attributes "classes", "ids", "names",
1149 * docs/user/emacs.txt: Added to project; a document about Emacs
1150 support for reStructuredText and Docutils.
1152 * docs/user/links.txt: Added to project; lists of Docutils-related
1155 * docs/user/mailing-lists.txt: Added to project; information about
1156 Docutils-related mailing lists and how to access them.
1158 * docs/user/slide-shows.txt: Added to project; example of and docs for
1159 the S5/HTML writer (``rst2s5.py`` front end).
1161 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1162 Files", added to project.
1164 * test/coverage.sh: Added to project; test coverage script.
1166 * test/DocutilsTestSupport.py:
1168 - Added support for specifying runtime settings at the suite level.
1170 * test/test_functional.py:
1172 - Added the ``clear_output_directory`` function.
1173 - Added support for ``_test_more`` functions in functional test
1176 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1178 * tools/rstpep2html.py: Renamed from pep.py.
1180 * tools/dev/create_unimap.py: Added to project; script to create the
1181 docutils/writers/unimap_latex.py mapping file.
1183 * tools/dev/profile_docutils.py: Added to project; profiler script.
1185 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1187 * tools/editors/emacs/restructuredtext.el,
1188 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1189 Removed from project; the functionality is now contained in rst.el.
1191 * tools/editors/emacs/rst.el: Added to project. Added many features
1192 and fixed many bugs. See docs/user/emacs.txt for details.
1194 * tools/stylesheets: Removed from project. Stylesheets have been
1195 renamed and moved into writer packages.
1198 Release 0.3.9 (2005-05-26)
1199 ==========================
1203 - Eliminated and replaced all uses of the old string attributes
1204 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1205 new list attributes ``ids``, ``names``, ``dupnames`` and
1206 ``classes`` throughout the whole source tree.
1210 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1211 allowing for easier debugging.
1212 - In ``Publisher.publish()``, expanded the generic top-level
1215 * docutils/examples.py:
1217 - Added ``internals`` function for exploration.
1221 - Fixed ``Input.decode`` method to apply heuristics only if no
1222 encoding is explicitly given, and to provide better reporting of
1224 - The ``Input.decode`` method now removes byte order marks (BOMs)
1227 * docutils/nodes.py:
1229 - ``image`` element class changed to subclass of Element, not
1230 TextElement (it's an empty element, and cannot contain text).
1231 - Added ``attr_defaults`` dictionary for default attribute values.
1232 - Added empty list as default value for the following attributes:
1233 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1234 - Added ``document.decoration`` attribute,
1235 ``document.get_decoration`` method, and ``decoration.get_header``
1236 & ``.get_footer`` methods.
1237 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1240 * docutils/utils.py:
1242 - Removed ``docutils.utils.Reporter.categories``,
1243 ``docutils.utils.ConditionSet``, and all references to them, to
1244 simplify error reporting.
1246 * docutils/languages/nl.py: Added to project; Dutch mappings by
1249 * docutils/parsers/rst/__init__.py:
1251 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1253 * docutils/parsers/rst/states.py:
1255 - Added check for escaped at-mark to prevent email address recognition.
1256 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1258 - Allowed whitespace in paths and URLs.
1259 - Added auto-enumerated list items.
1260 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1262 - Added support for table stub columns.
1264 * docutils/parsers/rst/directives/__init__.py:
1266 - Allowed whitespace in paths (``path`` function).
1267 - Added ``uri`` directive option conversion function.
1269 * docutils/parsers/rst/directives/body.py:
1271 - Fixed illegal context bug with "topic" directive (allowed within
1272 sidebars; not within body elements).
1274 * docutils/parsers/rst/directives/images.py:
1276 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1277 - Added support for the ``file_insertion_enabled`` setting in the
1278 "figure" directive (disables "figwidth" option).
1279 - "image" directive: added checks for valid values of "align" option,
1280 depending on context. "figure" directive: added specialized
1281 "align" option and attribute on "figure" element.
1282 - Made ":figwidth: image" option of "figure" directive work again.
1283 - Fixed bug with reference names containing uppercase letters
1284 (e.g. ``Name_``) in "target" option of "image" directive.
1286 * docutils/parsers/rst/directives/misc.py:
1288 - Fixed "include" and "raw" directives to catch text decoding
1290 - Allowed whitespace in "include" & "raw" directive paths.
1291 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1292 settings in "include" & "raw" directives.
1294 * docutils/parsers/rst/directives/parts.py:
1296 - Added "header" & "footer" directives.
1297 - Fixed illegal context bug with "contents" directive (topics
1298 allowed within sidebars; not within body elements).
1300 * docutils/parsers/rst/directives/tables.py:
1302 - Added "list-table" directive.
1303 - Caught empty CSV table bug.
1304 - Added support for the ``file_insertion_enabled`` setting in the
1305 "csv-table" directive.
1306 - Added ``stub-columns`` option to "csv-table" and "list-table"
1309 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1310 mappings by Martijn Pieters.
1312 * docutils/readers/standalone.py:
1314 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1315 options to activate or deactivate the SectSubTitle transform.
1317 * docutils/transforms/frontmatter.py:
1319 - Added SectSubTitle transform to promote titles of lone
1320 subsections to subtitles.
1322 * docutils/transforms/references.py:
1324 - Fixed mislocated internal targets bug, by propagating internal
1325 targets to the next node, making use of the newly added support
1326 for multiple names and IDs.
1327 - Fixed duplicate footnote label bug.
1328 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1331 * docutils/writers/html4css1.py:
1333 - Fixed unencoded stylesheet reference bug (characters like "&" in
1334 stylesheet references).
1335 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1337 - Added support for multiple IDs per node by creating empty ``span``
1339 - Added the ``field_name_limit`` & ``option_limit`` settings &
1341 - Added support for table stub columns.
1342 - Added support for the ``align`` attribute on ``figure`` elements.
1343 - Added the ``cloak_email_addresses`` setting & support.
1344 - Added ``html_prolog``, ``html_head``, ``html_body``,
1345 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1346 ``docutils.core.publish_parts``.
1347 - Added support for section subtitles.
1349 * docutils/writers/latex2e.py:
1351 - Fixed tables starting with more than one multirow cell.
1352 - Improved --use-latex-docinfo so that organization/contact/address
1353 fields are lumped with the last author field and appear on the
1355 - Made sure the titlepage is always shown with --use-latex-docinfo,
1356 even if the document has no title.
1357 - Made sure that latex doesn't fill in today's date if no date field
1359 - Added support for section subtitles.
1361 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1362 (under development).
1364 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1366 * docs/api/publisher.txt:
1368 - Added "``publish_parts`` Details" section.
1370 * docutils/dev/repository.txt: Added to project; information about the
1371 Docutils Subversion repository.
1373 * docs/ref/docutils.dtd:
1375 - Added a ``stub`` attribute to the ``colspec`` element via the
1376 ``tbl.colspec.att`` parameter entity.
1377 - Allowed topic elements within sidebars
1378 - Added an ``align`` attribute to the ``figure`` element.
1380 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1384 Release 0.3.7 (2004-12-24)
1385 ==========================
1387 * docutils/frontend.py:
1389 - Added options: --input-encoding-error-handler,
1390 --record-dependencies, --leave-footnote-reference-space,
1392 - Added command-line and config file support for "overrides" setting
1397 - Added support for input encoding error handler.
1399 * docutils/nodes.py:
1401 - Added dispatch_visit and dispatch_departure methods to
1402 NodeVisitor; useful as a hook for Visitors.
1403 - Changed structure of ``line_block``; added ``line``.
1404 - Added ``compound`` node class.
1405 - Added a mechanism for Visitors to transitionally ignore new node
1408 * docutils/utils.py:
1410 - Moved ``escape2null`` and ``unescape`` functions from
1411 docutils/parsers/rst/states.py.
1413 * docutils/parsers/rst/roles.py:
1416 - Changed role function API: the "text" parameter now takes
1417 null-escaped interpreted text content.
1419 * docutils/parsers/rst/states.py:
1421 - Fixed bug where a "role" directive in a nested parse would crash
1422 the parser; the state machine's "language" attribute was not being
1424 - Added support for line block syntax.
1425 - Fixed directive parsing bug: argument-less directives didn't
1426 notice that arguments were present.
1427 - Removed error checking for transitions.
1428 - Added support for multiple classifiers in definition list items.
1429 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1430 - Changed role function API: the "text" parameter now takes
1431 null-escaped interpreted text content.
1432 - Empty sections and documents are allowed now.
1434 * docutils/parsers/rst/directives/__init__.py:
1436 - Added ``encoding`` directive option conversion function.
1437 - Allow multiple class names in class_option conversion function.
1439 * docutils/parsers/rst/directives/body.py:
1441 - Converted the line-block directive to use the new structure.
1442 - Extracted the old line-block functionality to the ``block``
1443 function (still used).
1444 - Added ``compound`` directive (thanks to Lea Wiemann).
1446 * docutils/parsers/rst/directives/misc.py:
1448 - Added "encoding" option to "include" and "raw" directives.
1449 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1450 - Allow multiple class names in the "class" directive.
1452 * docutils/parsers/rst/directives/parts.py:
1454 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1455 options. Thanks to Lele Gaifax.
1457 * docutils/parsers/rst/directives/tables.py:
1459 - Added "encoding" directive to "csv-table" directive.
1460 - Added workaround for lack of Unicode support in csv.py, for
1461 non-ASCII CSV input.
1463 * docutils/transforms/misc.py:
1465 - Fixed bug when multiple "class" directives are applied to a single
1467 - Enabled multiple format names for "raw" directive.
1469 * docutils/transforms/references.py:
1471 - Added support for trimming whitespace from beside substitution
1474 * docutils/transforms/universal.py:
1476 - FinalChecks now checks for illegal transitions and moves
1477 transitions between sections.
1479 * docutils/writers/html4css1.py:
1481 - HTMLTranslator.encode now converts U+00A0 to " ".
1482 - "stylesheet" and "stylesheet_path" settings are now mutually
1484 - Added support for the new line_block/line structure.
1485 - --footnote-references now overrides
1486 --trim-footnote-reference-space, if applicable.
1487 - Added support for ``compound`` elements.
1488 - Enabled multiple format names for "raw" directive.
1489 - ``<p>`` tags of a paragraph which is the only visible child of the
1490 document node are no longer stripped.
1491 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1492 new method ``should_be_compact_paragraph()``.
1493 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1495 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1496 the output if they have their ``class`` attribute set.
1497 - The whole document is now surrounded by a ``<div
1498 class="document">`` element.
1499 - Body-level images are now wrapped by their own ``<div>`` elements,
1500 with image classes copied to the wrapper, and for images which
1501 have the ``:align:`` option set, the surrounding ``<div>`` now
1502 receives a class attribute (like ``class="align-left"``).
1504 * docutils/writers/latex2e.py:
1506 - no newline after depart_term.
1507 - Added translations for some Unicode quotes.
1508 - Added option "font-encoding", made package AE the default.
1509 - "stylesheet" and "stylesheet_path" settings are now mutually
1511 - --footnote-references now overrides
1512 --trim-footnote-reference-space, if applicable.
1513 - The footnote label style now matches the footnote reference style
1514 ("brackets" or "superscript").
1515 - Added support for ``compound`` elements.
1516 - Enabled multiple format names for "raw" directive.
1518 * docs/ref/docutils.dtd:
1520 - Changed structure of the ``line_block`` element; added ``line``.
1521 - Added ``compound`` element.
1522 - Added "ltrim" and "rtrim" attributes to
1523 ``substitution_definition`` element.
1524 - Enabled multiple format names for ``raw`` element.
1525 - Enabled multiple classifiers in ``definition_list_item`` elements.
1527 * docs/ref/rst/directives.txt
1529 - Marked "line-block" as deprecated.
1530 - "Class" directive now allows multiple class names.
1531 - Added "Rationale for Class Attribute Value Conversion".
1532 - Added warning about "raw" overuse/abuse.
1534 * docs/ref/rst/restructuredtext.txt:
1536 - Added syntax for line blocks.
1537 - Definition list items may have multiple classifiers.
1539 * docs/ref/rst/roles.txt:
1543 * tools/stylesheets/default.css:
1545 - Added support for the new line_block structure.
1546 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1549 Release 0.3.5 (2004-07-29)
1550 ==========================
1554 * _`Documentation cleanup/reorganization`.
1556 - Created new subdirectories of docs/:
1558 * ``docs/user/``: introductory/tutorial material for end-users
1559 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1560 * ``docs/api/``: API reference material for client-developers
1561 * ``docs/ref/``: reference material for all groups
1562 * ``docs/howto/``: for component-developers and core-developers
1563 * ``docs/peps/``: Python Enhancement Proposals
1565 - Moved ``docs/*`` to ``docs/user/``.
1566 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1567 ``spec/`` to ``docs/dev``.
1568 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1569 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1570 - Moved ``alternatives.txt``, and ``problems.txt`` from
1571 ``spec/rst/`` to ``docs/dev/rst/``.
1572 - Moved ``reStructuredText.txt``, ``directives.txt``,
1573 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1574 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1575 ``roles.txt``, ``reStructuredText.txt`` to
1576 ``restructuredtext.txt``.
1577 - Moved ``spec/howto/`` to ``docs/howto``.
1579 In order to keep the CVS history of moved files, we supplied
1580 SourceForge with a `script for modifying the Docutils CVS
1583 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1585 After running the cleanup script:
1587 - Added ``docs/index.txt``.
1588 - Added a ``.htaccess`` file to the ``web`` module, containing
1589 redirects for all old paths to new paths. They'll preserve
1590 fragments (the "#name" part of a URL), and won't clutter up the
1591 file system, and will correct the URL in the user's browser.
1592 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1593 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1594 the "To Do" list itself in ``docs/dev/todo.txt``.
1595 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1596 section of ``docs/dev/todo.txt``.
1597 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1598 - Added "How To Report Bugs" to ``BUGS.txt``.
1599 - Went through all the sources and docs (including under web/) and
1600 updated links. Mostly done by Lea Wiemann; thanks Lea!
1601 (Still need to update links in the sandboxes.)
1605 * BUGS.txt: Added to project.
1607 * THANKS.txt: Added to project.
1609 * docutils/__init__.py:
1611 - 0.3.4: Post-release.
1615 - Added special error handling & advice for UnicodeEncodeError.
1616 - Refactored Publisher.publish (simplified exception handling &
1617 extracted debug dumps).
1618 - Renamed "enable_exit" parameter of convenience functions to
1619 "enable_exit_status".
1620 - Enabled traceback (exception propagation) by default in
1621 programmatic convenience functions.
1622 - Now publish_file and publish_cmdline convenience functions return
1623 the encoded string results in addition to their regular I/O.
1624 - Extracted common code from publish_file, publish_string, and
1625 publish_parts, into new publish_programmatically. Extracted
1626 settings code to ``Publisher.process_programmatic_settings``.
1627 - In Publisher.publish, disabled ``settings_overrides`` when
1628 ``settings`` is supplied; redundant.
1630 * docutils/frontend.py:
1632 - Added help text for "--output-encoding-error-handler" and
1633 "--error-encoding-error-handler".
1634 - Renamed "--exit" to "--exit-status".
1635 - Simplified default-setting code.
1637 * docutils/parsers/rst/__init__.py:
1639 - Added "--pep-base-url" and "--rfc-base-url" options.
1641 * docutils/parsers/rst/states.py:
1643 - Made URI recognition more aggressive and intelligent.
1645 * docutils/parsers/rst/directives/__init__.py:
1647 - Added several directive option conversion functions.
1649 * docutils/parsers/rst/directives/body.py:
1651 - Moved "table" directive to tables.py.
1653 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1656 * docutils/writers/latex2e.py:
1658 - Added "--table-style=(standard|booktabs|nolines)"
1659 - figures get "here" option (LaTeX per default puts them at bottom),
1660 and figure content is centered.
1661 - Rowspan support for tables.
1662 - Fix: admonition titles before first section.
1663 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1664 - Replave ``_`` in literal by an underlined blank, because it has the correct
1666 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1667 - A few unicode replacements, if output_encoding != utf
1668 - Add "--graphicx-option".
1669 - Indent literal-blocks.
1670 - Fix: omit ``\maketitle`` when there is no document title.
1672 * docs/index.txt: "Docutils Project Documentation Overview", added to
1675 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1676 Tool", added to project.
1678 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1680 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1682 * docs/dev/policies.txt: Added to project (extracted from
1683 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1685 * docs/dev/release.txt: Added to project (extracted from
1686 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1688 * docs/dev/testing.txt: Added to project.
1690 * docs/dev/website.txt: Added to project (extracted from
1691 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1693 * docs/ref/rst/directives.txt:
1695 - Added directives: "table", "csv-table".
1697 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1698 added to project. 1 page for syntax, and a 1 page reference for
1699 directives and roles. Source text to be used as-is; not meant to be
1702 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1703 with a change of title.
1705 * test/functional/, contents, and test/test_functional.py: Added to
1708 * tools/buildhtml.py: Fixed bug with config file handling.
1710 * tools/html.py: Removed from project (duplicate of rst2html.py).
1712 * tools/pep2html.py: Removed from project (duplicate of Python's
1713 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1714 Docutils-related PEPs in docs/peps/).
1716 * tools/rst2pseudoxml.py: Renamed from publish.py.
1718 * tools/rst2xml.py: Renamed from docutils-xml.py.
1720 * tools/test.txt: Removed from project; moved to
1721 docs/user/rst/demo.txt.
1723 * setup.py: Now also installs ``rst2latex.py``.
1726 Release 0.3.3 (2004-05-09)
1727 ==========================
1729 * docutils/__init__.py:
1731 - 0.3.1: Reorganized config file format (multiple sections); see
1733 - Added unknown_reference_resolvers attribute to TransformSpec.
1734 - 0.3.2: Interpreted text reorganization.
1739 - Catch system messages to stop tracebacks from parsing errors.
1740 - Catch exceptions during processing report & exit without
1741 tracebacks, except when "--traceback" used.
1742 - Reordered components for OptionParser; application comes last.
1743 - Added "config_section" parameter to several methods and functions,
1744 allowing front ends to easily specify their config file sections.
1745 - Added publish_parts convenience function to allow access to individual
1746 parts of a document.
1748 * docutils/examples.py: Added to project; practical examples of
1749 Docutils client code, to be used as-is or as models for variations.
1751 * docutils/frontend.py:
1753 - Added "--traceback" & "--no-traceback" options ("traceback"
1755 - Implemented support for config file reorganization:
1756 ``standard_config_files`` moved from ``ConfigParser`` to
1757 ``OptionParser``; added
1758 ``OptionParser.get_config_file_settings()`` and
1759 ``.get_standard_config_settings()``; support for old "[options]"
1760 section (with deprecation warning) and mapping from old to new
1762 - Reimplemented setting validation.
1763 - Enabled flexible boolean values: yes/no, true/false, on/off.
1764 - Added ``Values``, a subclass of ``optparse.Values``, with support
1765 for list setting attributes.
1766 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1767 thanks to Beni Cherniavsky.
1768 - Added "--no-section-numbering" option.
1772 - Catch IOErrors when opening source & destination files, report &
1773 exit without tracebacks. Added ``handle_io_errors`` parameter to
1774 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1776 * docutils/nodes.py:
1778 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1779 method definitions (via ``exec``) to dynamic assignments (via
1780 ``setattr``); thanks to Roman Suzi.
1781 - Encapsulated visitor dynamic assignments in a function; thanks to
1783 - Added indirect_reference_name attribute to the Targetable
1784 class. This attribute holds the whitespace_normalized_name
1785 (contains mixed case) of a target.
1787 * docutils/statemachine.py:
1789 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1790 - Added ``StringList.get_2D_block``.
1792 * docutils/utils.py:
1794 - Added "level" attribute to SystemMessage exceptions.
1796 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1799 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1802 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1803 Marcelo Huerta San Martin.
1805 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1806 mappings by Lalo Martins.
1808 * docutils/languages/ru.py: Added to project; Russian mappings by
1811 * docutils/parsers/rst/roles.py: Added to project. Contains
1812 interpreted text role functions, a registry for interpreted text
1813 roles, and an API for adding to and retrieving from the registry.
1814 Contributed by Edward Loper.
1816 * docutils/parsers/rst/states.py:
1818 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1819 - Allowed true em-dash character and "---" as block quote
1821 - Added support for <angle-bracketed> complex option arguments
1823 - Fixed handling of backslashes in substitution definitions.
1824 - Fixed off-by-1 error with extra whitespace after substitution
1825 definition directive.
1826 - Added inline markup parsing to field lists' field names.
1827 - Added support for quoted (and unindented) literal blocks.
1828 Driven in part by a bribe from Frank Siebenlist (thanks!).
1829 - Parser now handles escapes in URIs correctly.
1830 - Made embedded-URIs' reference text omittable. Idea from Beni
1832 - Refactored explicit target processing code.
1833 - Added name attribute to references containing the reference name only
1834 through whitespace_normalize_name (no case changes).
1835 - parse_target no longer returns the refname after going through
1836 normalize_name. This is now handled in make_target.
1837 - Fixed bug relating to role-less interpreted text in non-English
1839 - Reorganized interpreted text processing; moved code into the new
1840 roles.py module. Contributed by Edward Loper.
1841 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1842 ``parse_directive_block``.
1844 * docutils/parsers/rst/tableparser.py:
1846 - Reworked for ``StringList``, to support "include" directives in
1849 * docutils/parsers/rst/directives/__init__.py:
1851 - Renamed ``unchanged()`` directive option conversion function to
1852 ``unchanged_required``, and added a new ``unchanged``.
1853 - Catch unicode value too high error; fixes bug 781766.
1854 - Beefed up directive error reporting.
1856 * docutils/parsers/rst/directives/body.py:
1858 - Added basic "table" directive.
1860 * docutils/parsers/rst/directives/images.py:
1862 - Added "target" option to "image" directive.
1863 - Added name attribute to references containing the reference name only
1864 through whitespace_normalize_name (no case changes).
1866 * docutils/parsers/rst/directives/misc.py:
1868 - Isolated the import of the ``urllib2`` module; was causing
1869 problems on SourceForge (``libssl.so.2`` unavailable?).
1870 - Added the "role" directive for declaring custom interpreted text
1873 * docutils/parsers/rst/directives/parts.py:
1875 - The "contents" directive does more work up-front, creating the
1876 "topic" and "title", and leaving the "pending" node for the
1877 transform. Allows earlier reference resolution; fixes subtle bug.
1879 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1880 mappings by Jannie Hofmeyr.
1882 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1883 mappings by Marek Blaha.
1885 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1886 mappings by Marcelo Huerta San Martin.
1888 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1889 Portuguese mappings by Lalo Martins.
1891 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1892 mappings by Roman Suzi.
1894 * docutils/transforms/parts.py:
1896 - The "contents" directive does more work up-front, creating the
1897 "topic" and "title", and leaving the "pending" node for the
1898 transform. Allows earlier reference resolution; fixes subtle bug.
1899 - Added support for disabling of section numbering.
1901 * docutils/transforms/references.py:
1903 - Verifying that external targets are truly targets and not indirect
1904 references. This is because we are now adding a "name" attribute to
1905 references in addition to targets. Note sure if this is correct!
1906 - Added code to hook into the unknown_reference_resolvers list for a
1907 transformer in resolve_indirect_target. This allows the
1908 unknown_reference_resolvers to keep around indirect targets which
1909 docutils doesn't know about.
1910 - Added specific error message for duplicate targets.
1912 * docutils/transforms/universal.py:
1914 - Added FilterMessages transform (removes system messages below the
1915 verbosity threshold).
1916 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1917 to FinalCheckVisitor for application-specific handling of
1918 unresolvable references.
1919 - Added specific error message for duplicate targets.
1921 * docutils/writers/__init__.py:
1923 - Added assemble_parts method to the Writer class to allow for
1924 access to a documents individual parts.
1925 - Documented & set default for ``Writer.output`` attribute.
1927 * docutils/writers/html4css1.py:
1929 - Fixed unicode handling of attribute values (bug 760673).
1930 - Prevent duplication of "class" attribute values (bug report from
1932 - Improved table grid/border handling (prompted by report from Bob
1934 - Added support for table titles.
1935 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1937 - Added functionality to keep track of individual parts of a document
1938 and store them in a dictionary as the "parts" attribute of the writer.
1939 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1940 - Added proper support for the "scale" attribute of the "image"
1941 element. Contributed by Brent Cook.
1942 - Added ``--initial-header-level`` option.
1943 - Fixed bug: the body_pre_docinfo segment depended on there being a
1944 docinfo; if no docinfo, the document title was incorporated into
1945 the body segment. Adversely affected the publish_parts interface.
1947 * docutils/writers/latex2e.py:
1949 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1950 about a missing file.
1951 - Added options and support: ``--compound-enumerators``,
1952 ``--section-prefix-for-enumerators``, and
1953 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1955 - Added option ``--use-verbatim-when-possible``, to avoid
1956 problematic characters (eg, '~' in italian) in literal blocks.
1957 - It's now possible to use four section levels in the `book` and
1958 `report` LaTeX classes. The default `article` class still has
1961 * docs/config.txt: "Docutils Configuration Files", added to project.
1962 Moved config file entry descriptions from tools.txt.
1966 - Moved config file entry descriptions to config.txt.
1968 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1971 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1972 Text Roles", added to project.
1974 * spec/rst/reStructuredText.txt:
1976 - Added description of support for <angle-bracketed> complex option
1977 arguments to option lists.
1978 - Added subsections for indented and quoted literal blocks.
1980 * test: Continually adding & updating tests.
1982 - Added test/test_settings.py & test/data/config_*.txt support
1984 - Added test/test_writers/test_htmlfragment.py.
1986 * test/DocutilsTestSupport.py:
1988 - Refactored LaTeX publisher test suite/case class names to make
1989 testing other writers easier.
1990 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1991 to test the processing of HTML fragments which use the new
1992 publish_parts convenience function.
1994 * tools/buildhtml.py:
1996 - Added support for the "--prune" option.
1997 - Removed dependency on pep2html.py; plaintext PEPs no longer
2000 * tools/docutils.conf:
2002 - Updated for configuration file reorganization.
2004 * tools/rst2html.py:
2006 - copied from tools/html.py
2010 - added a 'scripts' section to configuration
2011 - added 'tools/rst2html.py' to the scripts section
2014 Release 0.3 (2003-06-24)
2015 ========================
2019 * Renamed "attribute" to "option" for directives/extensions.
2021 * Renamed transform method "transform" to "apply".
2023 * Renamed "options" to "settings" for runtime settings (as set by
2024 command-line options). Sometimes "option" (singular) became
2025 "settings" (plural). Some variations below:
2027 - document.options -> document.settings (stored in other objects as
2029 - option_spec -> settings_spec (not directives though)
2030 - OptionSpec -> SettingsSpec
2031 - cmdline_options -> settings_spec
2032 - relative_path_options -> relative_path_settings
2033 - option_default_overrides -> settings_default_overrides
2034 - Publisher.set_options -> Publisher.get_settings
2038 * COPYING.txt: Added "Public Domain Dedication".
2040 * FAQ.txt: Frequently asked questions, added to project.
2044 - Updated with PyPI Trove classifiers.
2045 - Conditional installation of third-party modules.
2047 * docutils/__init__.py:
2049 - Bumped version to 0.2.1 to reflect changes to I/O classes.
2050 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
2051 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
2052 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
2053 option and its effect on the PEP template & writer.
2054 - Bumped version to 0.2.4 due to changes to the PEP template &
2056 - Bumped version to 0.2.5 to reflect changes to Reporter output.
2057 - Added ``TransformSpec`` class for new transform system.
2058 - Bumped version to 0.2.6 for API changes (renaming).
2059 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
2060 convenience functions.
2061 - Added ``Component.component_type`` attribute.
2062 - Bumped version to 0.2.8 because of the internal parser switch from
2063 plain lists to the docutils.statemachine.StringList objects.
2064 - Bumped version to 0.2.9 because of the frontend.py API changes.
2065 - Bumped version to 0.2.10 due to changes to the project layout
2066 (third-party modules removed from the "docutils" package), and
2067 signature changes in ``io.Input``/``io.Output``.
2068 - Changed version to 0.3.0 for release.
2072 - Made ``publish()`` a bit more convenient.
2073 - Generalized ``Publisher.set_io``.
2074 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
2075 parameters; improved its docstring.
2076 - Added ``publish_file()`` and ``publish_string()``.
2077 - Factored ``Publisher.set_source()`` and ``.set_destination()``
2079 - Added support for "--dump-pseudo-xml", "--dump-settings", and
2080 "--dump-transforms" hidden options.
2081 - Added ``Publisher.apply_transforms()`` method.
2082 - Added ``Publisher.set_components()`` method; support for
2083 ``publish_*()`` conveninece functions.
2084 - Moved config file processing to docutils/frontend.py.
2085 - Added support for exit status ("exit_level" setting &
2086 ``enable_exit`` parameter for Publisher.publish() and convenience
2089 * docutils/frontend.py:
2091 - Check for & exit on identical source & destination paths.
2092 - Fixed bug with absolute paths & "--config".
2093 - Set non-command-line defaults in ``OptionParser.__init__()``:
2094 ``_source`` & ``_destination``.
2095 - Distributed ``relative_path_settings`` to components; updated
2096 ``OptionParser.populate_from_components()`` to combine it all.
2097 - Require list of keys in ``make_paths_absolute`` (was implicit in
2098 global ``relative_path_settings``).
2099 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
2100 "--dump-settings", and "--dump-transforms" hidden options.
2101 - Removed nasty internals-fiddling ``ConfigParser.get_section``
2102 code, replaced with correct code.
2103 - Added validation functionality for config files.
2104 - Added "--error-encoding" option/setting, "_disable_config"
2106 - Added encoding validation; updated "--input-encoding" and
2107 "--output-encoding"; added "--error-encoding-error-handler" and
2108 "--output-encoding-error-handler".
2109 - Moved config file processing from docutils/core.py.
2110 - Updated ``OptionParser.populate_from_components`` to handle new
2111 ``SettingsSpec.settings_defaults`` dict.
2112 - Added support for "-" => stdin/stdout.
2113 - Added "exit_level" setting ("--exit" option).
2117 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
2118 - Added automatic closing to ``FileInput`` and ``FileOutput``.
2119 - Delayed opening of ``FileOutput`` file until ``write()`` called.
2120 - ``FileOutput.write()`` now returns the encoded output string.
2121 - Try to get path/stream name automatically in ``FileInput`` &
2123 - Added defaults for source & destination paths.
2124 - Allow for Unicode I/O with an explicit "unicode" encoding.
2125 - Added ``Output.encode()``.
2126 - Removed dependency on runtime settings; pass encoding directly.
2127 - Recognize Unicode strings in ``Input.decode()``.
2128 - Added support for output encoding error handlers.
2130 * docutils/nodes.py:
2132 - Added "Invisible" element category class.
2133 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2134 modification during a traversal.
2135 - Added element classes: ``line_block``, ``generated``, ``address``,
2136 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2137 ``superscript``, ``subscript``, ``inline``
2138 - Added support for lists of nodes to ``Element.insert()``.
2139 - Fixed parent linking in ``Element.replace()``.
2140 - Added new abstract superclass ``FixedTextElement``; adds
2141 "xml:space" attribute.
2142 - Added support for "line" attribute of ``system_message`` nodes.
2143 - Added support for the observer pattern from ``utils.Reporter``.
2144 Added ``parse_messages`` and ``transform_messages`` attributes to
2145 ``document``, removed ``messages``. Added ``note_parse_message``
2146 and ``note_transform_message`` methods.
2147 - Added support for improved diagnostics:
2149 - Added "document", "source", and "line" internal attributes to
2150 ``Node``, set by ``Node.setup_child()``.
2151 - Converted variations on ``node.parent = self`` to
2152 ``self.setup_child(node)``.
2153 - Added ``document.current_source`` & ``.current_line``
2154 attributes, and ``.note_source`` observer method.
2155 - Changed "system_message" output to GNU-Tools format.
2157 - Added a "rawsource" attribute to the ``Text`` class, for text
2158 before backslash-escape resolution.
2159 - Support for new transform system.
2160 - Reworked ``pending`` element.
2161 - Fixed XML DOM bug (SF #660611).
2162 - Removed the ``interpeted`` element class and added
2163 ``title_reference``, ``abbreviation``, ``acronym``.
2164 - Made substitutions case-sensitive-but-forgiving; moved some code
2166 - Fixed Unicode bug on element attributes (report: William Dode).
2168 * docutils/optik.py: Removed from project; replaced with
2169 extras/optparse.py and extras/textwrap.py. These will be installed
2170 only if they're not already present in the Python installation.
2172 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2173 only if it's not already present in the Python installation.
2175 * docutils/statemachine.py:
2177 - Factored out ``State.add_initial_transitions()`` so it can be
2179 - Converted whitespace-specific "blank" and "indent" transitions
2180 from special-case code to ordinary transitions: removed
2181 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2182 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2183 ``ws_initial_transitions`` attributes.
2184 - Removed ``State.match_transition()`` after merging it into
2186 - Added ``StateCorrection`` exception.
2187 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2188 (moved ``TransitionCorrection`` support there too.)
2189 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2190 ``EOFError`` instead of ``IndexError``.
2191 - Added ``State.no_match`` method.
2192 - Added support for the Observer pattern, triggered by input line
2194 - Added ``strip_top`` parameter to
2195 ``StateMachineWS.get_first_known_indented``.
2196 - Made ``context`` a parameter to ``StateMachine.run()``.
2197 - Added ``ViewList`` & ``StringList`` classes;
2198 ``extract_indented()`` becomes ``StringList.get_indented()``.
2199 - Added ``StateMachine.insert_input()``.
2200 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2201 thanks to) Fred Drake.
2203 * docutils/utils.py:
2205 - Added a ``source`` attribute to Reporter instances and
2206 ``system_message`` elements.
2207 - Added an observer pattern to ``utils.Reporter`` to keep track of
2209 - Fixed bugs in ``relative_path()``.
2210 - Added support for improved diagnostics.
2211 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2212 - Added support for encoding Reporter stderr output, and encoding
2214 - Reporter keeps track of the highest level system message yet
2217 * docutils/languages: Fixed bibliographic field language lookups.
2219 * docutils/languages/es.py: Added to project; Spanish mappings by
2220 Marcelo Huerta San Martin.
2222 * docutils/languages/fr.py: Added to project; French mappings by
2225 * docutils/languages/it.py: Added to project; Italian mappings by
2228 * docutils/languages/sk.py: Added to project; Slovak mappings by
2231 * docutils/parser/__init__.py:
2233 - Added ``Parser.finish_parse()`` method.
2235 * docutils/parser/rst/__init__.py:
2237 - Added options: "--pep-references", "--rfc-references",
2238 "--tab-width", "--trim-footnote-reference-space".
2240 * docutils/parsers/rst/states.py:
2242 - Changed "title under/overline too short" system messages from INFO
2243 to WARNING, and fixed its insertion location.
2244 - Fixed enumerated list item parsing to allow paragraphs & section
2245 titles to begin with enumerators.
2246 - Converted system messages to use the new "line" attribute.
2247 - Fixed a substitution reference edge case.
2248 - Added support for "--pep-references" and "--rfc-references"
2249 options; reworked ``Inliner`` code to make customization easier.
2250 - Removed field argument parsing.
2251 - Added support for short section title over/underlines.
2252 - Fixed "simple reference name" regexp to ignore text like
2253 "object.__method__"; not an anonymous reference.
2254 - Added support for improved diagnostics.
2255 - Reworked directive API, based on Dethe Elza's contribution. Added
2256 ``Body.parse_directive()``, ``.parse_directive_options()``,
2257 ``.parse_directive_arguments()`` methods.
2258 - Added ``ExtensionOptions`` class, to parse directive options
2259 without parsing field bodies. Factored
2260 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2261 ``ExtensionOptions``.
2262 - Improved definition list term/classifier parsing.
2263 - Added warnings for unknown directives.
2264 - Renamed ``Stuff`` to ``Struct``.
2265 - Now flagged as errors: transitions at the beginning or end of
2266 sections, empty sections (except title), and empty documents.
2267 - Updated for ``statemachine.StringList``.
2268 - Enabled recognition of schemeless email addresses in targets.
2269 - Added support for embedded URIs in hyperlink references.
2270 - Added backslash-escapes to inline markup end-string suffix.
2271 - Added support for correct interpreted text processing.
2272 - Fixed nested title parsing (topic, sidebar directives).
2273 - Added special processing of backslash-escaped whitespace (idea
2274 from David Abrahams).
2275 - Made substitutions case-sensitive-but-forgiving; moved some code
2276 to ``docutils.nodes``.
2277 - Added support for block quote attributions.
2278 - Added a kludge to work-around a conflict between the bubble-up
2279 parser strategy and short titles (<= 3 char-long over- &
2280 underlines). Fixes SF bug #738803 "infinite loop with multiple
2281 titles" submitted by Jason Diamond.
2282 - Added explicit interpreted text roles for standard inline markup:
2283 "emphasis", "strong", "literal".
2284 - Implemented "superscript" and "subscript" interpreted text roles.
2285 - Added initial support for "abbreviation" and "acronym" roles;
2287 - Added support for "--trim-footnote-reference-space" option.
2288 - Optional space before colons in directives & hyperlink targets.
2290 * docutils/parsers/rst/tableparser.py:
2292 - Fixed a bug that was producing unwanted empty rows in "simple"
2294 - Detect bad column spans in "simple" tables.
2296 * docutils/parsers/rst/directives: Updated all directive functions to
2299 * docutils/parsers/rst/directives/__init__.py:
2301 - Added ``flag()``, ``unchanged()``, ``path()``,
2302 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2303 directive option helper functions.
2304 - Added warnings for unknown directives.
2305 - Return ``None`` for missing directives.
2306 - Added ``register_directive()``, thanks to William Dode and Paul
2309 * docutils/parsers/rst/directives/admonitions.py:
2311 - Added "admonition" directive.
2313 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2314 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2315 "parsed-literal", "rubric", "epigraph", "highlights" and
2316 "pull-quote" directives.
2318 * docutils/parsers/rst/directives/images.py:
2320 - Added an "align" attribute to the "image" & "figure" directives
2321 (by Adam Chodorowski).
2322 - Added "class" option to "image", and "figclass" to "figure".
2324 * docutils/parsers/rst/directives/misc.py:
2326 - Added "include", "raw", and "replace" directives, courtesy of
2328 - Added "unicode" and "class" directives.
2330 * docutils/parsers/rst/directives/parts.py:
2332 - Added the "sectnum" directive; by Dmitry Jemerov.
2333 - Added "class" option to "contents" directive.
2335 * docutils/parsers/rst/directives/references.py: Added to project.
2336 Contains the "target-notes" directive.
2338 * docutils/parsers/rst/languages/__init__.py:
2340 - Return ``None`` from get_language() for missing language modules.
2342 * docutils/parsers/rst/languages/de.py: Added to project; German
2343 mappings by Engelbert Gruber.
2345 * docutils/parsers/rst/languages/en.py:
2347 - Added interpreted text roles mapping.
2349 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2350 mappings by Marcelo Huerta San Martin.
2352 * docutils/parsers/rst/languages/fr.py: Added to project; French
2353 mappings by William Dode.
2355 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2356 mappings by Nicola Larosa.
2358 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2359 mappings by Miroslav Vasko.
2361 * docutils/readers/__init__.py:
2363 - Added support for the observer pattern from ``utils.Reporter``, in
2364 ``Reader.parse`` and ``Reader.transform``.
2365 - Removed ``Reader.transform()`` method.
2366 - Added default parameter values to ``Reader.__init__()`` to make
2367 instantiation easier.
2368 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2370 * docutils/readers/pep.py:
2372 - Added the ``peps.TargetNotes`` transform to the Reader.
2373 - Removed PEP & RFC reference detection code; moved to
2374 parsers/rst/states.py as options (enabled here by default).
2375 - Added support for pre-acceptance PEPs (no PEP number yet).
2376 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2379 * docutils/readers/python: Python Source Reader subpackage added to
2380 project, including preliminary versions of:
2383 - moduleparser.py: Parser for Python modules.
2385 * docutils/transforms/__init__.py:
2387 - Added ``Transformer`` class and completed transform reform.
2388 - Added unknown_reference_resolvers list for each transformer. This list holds
2389 the list of functions provided by each component of the transformer that
2390 help resolve references.
2392 * docutils/transforms/frontmatter.py:
2394 - Improved support for generic fields.
2395 - Fixed bibliographic field language lookups.
2397 * docutils/transforms/misc.py: Added to project. Miscellaneous
2400 * docutils/transforms/parts.py:
2402 - Moved the "id" attribute from TOC list items to the references
2403 (``Contents.build_contents()``).
2404 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2405 - Added "class" attribute support to ``Contents``.
2407 * docutils/transforms/peps.py:
2409 - Added ``mask_email()`` function, updating to pep2html.py's
2411 - Linked "Content-Type: text/x-rst" to PEP 12.
2412 - Added the ``TargetNotes`` PEP-specific transform.
2413 - Added ``TargetNotes.cleanup_callback``.
2414 - Added title check to ``Headers``.
2416 * docutils/transforms/references.py:
2418 - Added the ``TargetNotes`` generic transform.
2419 - Split ``Hyperlinks`` into multiple transforms.
2420 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2421 - Added check for circular indirect references.
2422 - Made substitutions case-sensitive-but-forgiving.
2424 * docutils/transforms/universal.py:
2426 - Added support for the "--expose-internal-attributes" option.
2427 - Removed ``Pending`` transform classes & data.
2429 * docutils/writers/__init__.py:
2431 - Removed ``Writer.transform()`` method.
2433 * docutils/writers/docutils-xml.py:
2435 - Added XML and doctype declarations.
2436 - Added "--no-doctype" and "--no-xml-declaration" options.
2438 * docutils/writers/html4css1.py:
2440 - "name" attributes only on these tags: a, applet, form, frame,
2442 - Added "name" attribute to <a> in section titles for Netscape 4
2443 support (bug report: Pearu Peterson).
2444 - Fixed targets (names) on footnote, citation, topic title,
2445 problematic, and system_message nodes (for Netscape 4).
2446 - Changed field names from "<td>" to "<th>".
2447 - Added "@" to "@" encoding to thwart address harvesters.
2448 - Improved the vertical whitespace optimization; ignore "invisible"
2449 nodes (targets, comments, etc.).
2450 - Improved inline literals with ``<span class="pre">`` around chunks
2451 of text and `` `` for runs of spaces.
2452 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2453 ``self.docinfo`` segments.
2454 - Added support for "line_block", "address" elements.
2455 - Improved backlinks (footnotes & system_messages).
2456 - Improved system_message output.
2457 - Redefined "--stylesheet" as containing an invariant URL, used
2458 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2460 - Added "--footnote-references" option (superscript or brackets).
2461 - Added "--compact-lists" and "--no-compact-lists" options.
2462 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2463 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2464 - Improved field list rendering.
2465 - Added Docutils version to "generator" meta tag.
2466 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2467 - Improved layout of <pre> HTML source.
2468 - Fixed attribute typo on <colspec>.
2469 - Refined XML prologue.
2470 - Support for no stylesheet.
2471 - Removed "interpreted" element support.
2472 - Added support for "title_reference", "sidebar", "attribution",
2473 "rubric", and generic "admonition" elements.
2474 - Added "--attribution" option.
2475 - Added support for "inline", "subscript", "superscript" elements.
2476 - Added initial support for "abbreviation" and "acronym";
2479 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2483 - Double quotes in literal blocks (special treatment for de/ngerman).
2484 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2485 - Added "--attribution" option.
2486 - Right align attributions.
2488 * docutils/writers/pep_html.py:
2490 - Parameterized output encoding in PEP template.
2491 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2492 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2493 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2495 - Added an override on the "--footnote-references" option.
2496 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2497 - Added Docutils version to "generator" meta tag.
2498 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2502 - Added a "silent" setting for ``buildhtml.py``.
2503 - Added a "Getting Help" section.
2504 - Rearranged the structure.
2505 - Kept up to date, with new settings, command-line options etc.
2506 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2507 - Converted settings table into a definition list.
2509 * docs/rst/quickstart.txt:
2511 - Added a table of contents.
2512 - Added feedback information.
2513 - Added mention of minimum section title underline lengths.
2514 - Removed the 4-character minimum for section title underlines.
2516 * docs/rst/quickref.html:
2518 - Added a "Getting Help" section.
2519 - Added a style to make section title backlinks more subtle.
2520 - Added mention of minimum section title underline lengths.
2521 - Removed the 4-character minimum for section title underlines.
2523 * extras: Directory added to project; contains third-party modules
2524 that Docutils depends on (optparse, textwrap, roman). These are
2525 only installed if they're not already present.
2527 * licenses: Directory added to project; contains copies of license
2528 files for non-public-domain files.
2532 - Changed the focus. It's about DTD elements: structural
2533 relationships, semantics, and external (public) attributes. Not
2534 about the element class library.
2535 - Moved some implementation-specific stuff into ``docutils.nodes``
2537 - Wrote descriptions of all common attributes and parameter
2538 entities. Filled in introductory material.
2539 - Working through the element descriptions: 55 down, 37 to go.
2540 - Removed "Representation of Horizontal Rules" to
2541 spec/rst/alternatives.txt.
2543 * spec/docutils.dtd:
2545 - Added "generated" inline element.
2546 - Added "line_block" body element.
2547 - Added "auto" attribute to "title".
2548 - Changed content models of "literal_block" and "doctest_block" to
2550 - Added ``%number;`` attribute type parameter entity.
2551 - Changed ``%structural.elements;`` to ``%section.elements``.
2552 - Updated attribute types; made more specific.
2553 - Added "address" bibliographic element.
2554 - Added "line" attribute to ``system_message`` element.
2555 - Removed "field_argument" element; "field_name" may contain
2556 multiple words and whitespace.
2557 - Changed public identifier to docutils.sf.net.
2558 - Removed "interpreted" element; added "title_reference",
2559 "abbreviation", "acronym".
2560 - Removed "refuri" attribute from "footnote_reference" and
2561 "citation_reference".
2562 - Added "sidebar", "rubric", "attribution", "admonition",
2563 "superscript", "subscript", and "inline" elements.
2565 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2567 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2569 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2571 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2574 * spec/transforms.txt: Added to project.
2576 * spec/howto: Added subdirectory, for developer how-to docs.
2578 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2579 Elza, edited & extended by David Goodger.
2581 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2584 * spec/rst/alternatives.txt:
2586 - Added "Doctree Representation of Transitions" from
2588 - Updated "Inline External Targets" & closed the debate.
2589 - Added ideas for interpreted text syntax extensions.
2590 - Added "Nested Inline Markup" section.
2592 * spec/rst/directives.txt:
2594 - Added directives: "topic", "sectnum", "target-notes",
2595 "line-block", "parsed-literal", "include", "replace", "sidebar",
2596 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2598 - Formalized descriptions of directive details.
2599 - Added an "align" attribute to the "image" & "figure" directives
2600 (by Adam Chodorowski).
2601 - Added "class" options to "topic", "sidebar", "line-block",
2602 "parsed-literal", "contents", and "image"; and "figclass" to
2605 * spec/rst/interpreted.txt: Added to project. Descriptions of
2606 interpreted text roles.
2608 * spec/rst/introduction.txt:
2610 - Added pointers to material for new users.
2612 * spec/rst/reStructuredText.txt:
2614 - Disambiguated comments (just add a newline after the "::").
2615 - Updated enumerated list description; added a discussion of the
2616 second-line validity checking.
2617 - Updated directive description.
2618 - Added a note redirecting newbies to the user docs.
2619 - Expanded description of inline markup start-strings in non-markup
2621 - Removed field arguments and made field lists a generic construct.
2622 - Removed the 4-character minimum for section title underlines.
2623 - Clarified term/classifier delimiter & inline markup ambiguity
2625 - Added "Embedded URIs".
2626 - Updated "Interpreted Text" section.
2627 - Added "Character-Level Inline Markup" section.
2629 * test: Continually adding & updating tests.
2631 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2632 - Moved test/test_pep/ to test/test_readers/test_pep/.
2633 - Added test/test_readers/test_python/.
2634 - Added test/test_writers/ (Engelbert Gruber).
2638 - Made the ``locale.setlocale()`` calls in front ends
2641 * tools/buildhtml.py:
2643 - Added "--silent" option.
2644 - Fixed bug with absolute paths & "--config".
2645 - Updated for new I/O classes.
2646 - Added some exception handling.
2647 - Separated publishers' setting defaults; prevents interference.
2648 - Updated for new ``publish_file()`` convenience function.
2650 * tools/pep-html-template:
2652 - Allow for "--embed-stylesheet".
2653 - Added Docutils version to "generator" meta tag.
2654 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2655 - Conform to XHTML spec.
2657 * tools/pep2html.py:
2659 - Made ``argv`` a parameter to ``main()``.
2660 - Added support for "Content-Type:" header & arbitrary PEP formats.
2661 - Linked "Content-Type: text/plain" to PEP 9.
2662 - Files skipped (due to an error) are not pushed onto the server.
2663 - Updated for new I/O classes.
2664 - Added ``check_requirements()`` & ``pep_type_error()``.
2665 - Added some exception handling.
2666 - Updated for new ``publish_string()`` convenience function.
2667 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2669 * tools/quicktest.py:
2671 - Added "-V"/"--version" option.
2673 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2675 * tools/unicode2rstsubs.py: Added to project. Produces character
2676 entity files (reSructuredText substitutions) from the MathML master
2679 * tools/editors: Support code for editors, added to project. Contains
2680 ``emacs/restructuredtext.el``.
2682 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2684 - Added style for chunks of inline literals.
2685 - Removed margin for first child of table cells.
2686 - Right-aligned field list names.
2687 - Support for auto-numbered section titles in TOCs.
2688 - Increased the size of inline literals (<tt>) in titles.
2689 - Restored the light gray background for inline literals.
2690 - Added support for "line_block" elements.
2691 - Added style for "address" elements.
2692 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2693 - Improved field list rendering.
2694 - Vertical whitespace improvements.
2695 - Removed "a.target" style.
2697 * tools/stylesheets/pep.css:
2699 - Fixed nested section margins.
2700 - Other changes parallel those of ``../default.css``.
2703 Release 0.2 (2002-07-31)
2704 ========================
2708 - The word "component" was being used ambiguously. From now on,
2709 "component" will be used to mean "Docutils component", as in Reader,
2710 Writer, Parser, or Transform. Portions of documents (Table of
2711 Contents, sections, etc.) will be called "document parts".
2712 - Did a grand renaming: a lot of ``verylongnames`` became
2713 ``very_long_names``.
2714 - Cleaned up imports: no more relative package imports or
2715 comma-separated lists of top-level modules.
2716 - Added support for an option values object which carries default
2717 settings and overrides (from command-line options and library use).
2718 - Added internal Unicode support, and support for both input and
2720 - Added support for the ``docutils.io.IO`` class & subclasses.
2724 * docutils/__init__.py:
2726 - Added ``ApplicationError`` and ``DataError``, for use throughout
2728 - Added ``Component`` base class for Docutils components; implements
2729 the ``supports`` method.
2730 - Added ``__version__`` (thus, ``docutils.__version__``).
2734 - Removed many keyword parameters to ``Publisher.__init__()`` and
2735 ``publish()``; bundled into an option values object. Added
2736 "argv", "usage", "description", and "option_spec" parameters for
2737 command-line support.
2738 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2740 - Reworked I/O model for ``docutils.io`` wrappers.
2741 - Updated ``Publisher.set_options()``; now returns option values
2743 - Added support for configuration files (/etc/docutils.conf,
2744 ./docutils.conf, ~/.docutils).
2745 - Added ``Publisher.setup_option_parser()``.
2746 - Added default usage message and description.
2748 * docutils/frontend.py: Added to project; support for front-end
2749 (command-line) scripts. Option specifications may be augmented by
2750 components. Requires Optik (http://optik.sf.net/) for option
2751 processing (installed locally as docutils/optik.py).
2753 * docutils/io.py: Added to project; uniform API for a variety of input
2756 * docutils/nodes.py:
2758 - Added ``TreeCopyVisitor`` class.
2759 - Added a ``copy`` method to ``Node`` and subclasses.
2760 - Added a ``SkipDeparture`` exception for visitors.
2761 - Renamed ``TreePruningException`` from ``VisitorException``.
2762 - Added docstrings to ``TreePruningException``, subclasses, and
2764 - Improved docstrings.
2765 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2766 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2768 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2769 ``PreDecorative`` mixin.
2770 - Reworked the name/id bookkeeping; to ``document``, removed
2771 ``explicit_targets`` and ``implicit_targets`` attributes, added
2772 ``nametypes`` attribute and ``set_name_id_map`` method.
2773 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2775 - Added ``document.has_name()`` method.
2776 - Fixed DOM generation for list-attributes.
2777 - Added category class ``Labeled`` (used by footnotes & citations).
2778 - Added ``Element.set_class()`` method (sets "class" attribute).
2780 * docutils/optik.py: Added to project. Combined from the Optik
2781 package, with added option groups and other modifications. The use
2782 of this module is probably only temporary.
2784 * docutils/statemachine.py:
2786 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2787 - Added underscores to improve many awkward names.
2788 - In ``string2lines()``, changed whitespace normalizing translation
2789 table to regexp; restores Python 2.0 compatibility with Unicode.
2791 * docutils/urischemes.py:
2793 - Filled in some descriptions.
2794 - Added "shttp" scheme.
2796 * docutils/utils.py:
2798 - Added ``clean_rcs_keywords`` function (moved from
2799 docutils/transforms/frontmatter.py
2800 ``DocInfo.filter_rcs_keywords``).
2801 - Added underscores to improve many awkward names.
2802 - Changed names of Reporter's thresholds:
2803 warning_level -> report_level; error_level -> halt_level.
2804 - Moved ``utils.id()`` to ``nodes.make_id()``.
2805 - Added ``relative_path(source, target)``.
2807 * docutils/languages/de.py: German mappings; added to project. Thanks
2808 to Gunnar Schwant for the translations.
2810 * docutils/languages/en.py: Added "Dedication" bibliographic field
2813 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2816 * docutils/parsers/rst/states.py:
2818 - Added underscores to improve many awkward names.
2819 - Added RFC-2822 header support.
2820 - Extracted the inline parsing code from ``RSTState`` to a separate
2821 class, ``Inliner``, which will allow easy subclassing.
2822 - Made local bindings for ``memo`` container & often-used contents
2823 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2824 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2825 - Added ``MarkupMismatch`` exception; for late corrections.
2826 - Added ``-/:`` characters to inline markup's start string prefix,
2827 ``/`` to end string suffix.
2828 - Fixed a footnote bug.
2829 - Fixed a bug with literal blocks.
2830 - Applied patch from Simon Budig: simplified regexps with symbolic
2831 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2832 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2833 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2834 - Allowed non-ASCII in "simple names" (directive names, field names,
2836 - Converted ``Inliner.patterns.initial`` to be dynamically built
2837 from parts with ``build_regexp()`` function.
2838 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2839 - Updated docstrings.
2840 - Changed "table" to "grid_table"; added "simple_table" support.
2842 * docutils/parsers/rst/tableparser.py:
2844 - Changed ``TableParser`` to ``GridTableParser``.
2845 - Added ``SimpleTableParser``.
2846 - Refactored naming.
2848 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2849 a fallback language for directive names.
2851 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2852 directive to use a ``pending`` element, used only by HTML writers.
2854 * docutils/parsers/rst/directives/parts.py: Renamed from
2857 - Added "backlinks" attribute to "contents" directive.
2859 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2860 project by Adam Chodorowski.
2862 * docutils/readers/__init__.py: Gave Readers more control over
2863 choosing and instantiating Parsers.
2865 * docutils/readers/pep.py: Added to project; for PEP processing.
2867 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2868 requires a ``component`` parameter.
2870 * docutils/transforms/components.py: Added to project; transforms
2871 related to Docutils components.
2873 * docutils/transforms/frontmatter.py:
2875 - In ``DocInfo.extract_authors``, check for a single "author" in an
2876 "authors" group, and convert it to a single "author" element.
2877 - Added support for "Dedication" and generic bibliographic fields.
2879 * docutils/transforms/peps.py: Added to project; PEP-specific.
2881 * docutils/transforms/parts.py: Renamed from old components.py.
2883 - Added filter for `Contents`, to use alt-text for inline images,
2884 and to remove inline markup that doesn't make sense in the ToC.
2885 - Added "name" attribute to TOC topic depending on its title.
2886 - Added support for optional TOC backlinks.
2888 * docutils/transforms/references.py: Fixed indirect target resolution
2889 in ``Hyperlinks`` transform.
2891 * docutils/transforms/universal.py:
2893 - Changed ``Messages`` transform to properly filter out system
2894 messages below the warning threshold.
2895 - Added ``Decorations`` transform (support for ``--generator``,
2896 ``--date``, ``--time``, ``--source-link`` options).
2898 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2899 Engelbert Gruber's PDF writer.
2901 * docutils/writers/html4css1.py:
2903 - Made XHTML-compatible (switched to lowercase element & attribute
2904 names; empty tag format).
2905 - Escape double-dashes in comment text.
2906 - Improved boilerplate & modularity of output.
2907 - Exposed modular output in Writer class.
2908 - Added a "generator" meta tag to <head>.
2909 - Added support for the ``--stylesheet`` option.
2910 - Added support for ``decoration``, ``header``, and ``footer``
2912 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2913 translation table to regexp; restores Python 2.0 compatibility
2915 - Added the translator class as instance variable to the Writer, to
2916 make it easily subclassable.
2917 - Improved option list spacing (thanks to Richard Jones).
2918 - Modified field list output.
2919 - Added backlinks to footnotes & citations.
2920 - Added percentage widths to "<col>" tags (from colspec).
2921 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2922 "<span>" changed to "<var>".
2923 - Inline literals: "<code>" changed to "<tt>".
2924 - Many changes to optimize vertical space: compact simple lists etc.
2925 - Add a command-line options & directive attributes to control TOC
2926 and footnote/citation backlinks.
2927 - Added support for optional footnote/citation backlinks.
2928 - Added support for generic bibliographic fields.
2929 - Identify backrefs.
2930 - Relative URLs for stylesheet links.
2932 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2933 PEPs (subclass of ``html4css1.Writer``).
2935 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2937 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2938 of the Docutils internal doctree in XML.
2940 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2944 - Changed the title to "The Docutils Document Tree".
2945 - Added "Hyperlink Bookkeeping" section.
2947 * spec/docutils.dtd:
2949 - Added ``decoration``, ``header``, and ``footer`` elements.
2950 - Brought ``interpreted`` element in line with the parser: changed
2951 attribute "type" to "role", added "position".
2952 - Added support for generic bibliographic fields.
2954 * spec/notes.txt: Continual updates. Added "Project Policies".
2956 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2959 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2961 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2962 mailing list discussions.
2964 * spec/pep-0287.txt:
2966 - Renamed to "reStructuredText Docstring Format".
2968 - Reworked Q&A as an enumerated list.
2969 - Converted to reStructuredText format.
2971 * spec/pysource.dtd:
2973 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2975 * spec/pysource.txt: Removed from project. Moved much of its contents
2978 * spec/rst/alternatives.txt:
2980 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2981 - Added "Inline External Targets" section.
2983 * spec/rst/directives.txt:
2985 - Added "backlinks" attribute to "contents" directive.
2987 * spec/rst/problems.txt:
2989 - Updated the Enumerated List Markup discussion.
2990 - Added new alternative table markup syntaxes.
2992 * spec/rst/reStructuredText.txt:
2994 - Clarified field list usage.
2995 - Updated enumerated list description.
2996 - Clarified purpose of directives.
2997 - Added ``-/:`` characters to inline markup's start string prefix,
2998 ``/`` to end string suffix.
2999 - Updated "Authors" bibliographic field behavior.
3000 - Changed "inline hyperlink targets" to "inline internal targets".
3001 - Added "simple table" syntax to supplement the existing but
3002 newly-renamed "grid tables".
3003 - Added cautions for anonymous hyperlink use.
3004 - Added "Dedication" and generic bibliographic fields.
3006 * test: Made test modules standalone (subdirectories became packages).
3008 * test/DocutilsTestSupport.py:
3010 - Added support for PEP extensions to reStructuredText.
3011 - Added support for simple tables.
3012 - Refactored naming.
3014 * test/package_unittest.py: Renamed from UnitTestFolder.py.
3016 - Now supports true packages containing test modules
3017 (``__init__.py`` files required); fixes duplicate module name bug.
3019 * test/test_pep/: Subpackage added to project; PEP testing.
3021 * test/test_rst/test_SimpleTableParser.py: Added to project.
3025 - Updated html.py and publish.py front-end tools to use the new
3026 command-line processing facilities of ``docutils.frontend``
3027 (exposed in ``docutils.core.Publisher``), reducing each to just a
3029 - Added ``locale.setlocale()`` calls to front-end tools.
3031 * tools/buildhtml.py: Added to project; batch-generates .html from all
3032 the .txt files in directories and subdirectories.
3034 * tools/default.css:
3036 - Added support for ``header`` and ``footer`` elements.
3037 - Added styles for "Dedication" topics (biblio fields).
3039 * tools/docutils.conf: A configuration file; added to project.
3041 * tools/docutils-xml.py: Added to project.
3043 * tools/pep.py: Added to project; PEP to HTML front-end tool.
3045 * tools/pep-html-template: Added to project.
3047 * tools/pep2html.py: Added to project from Python (nondist/peps).
3048 Added support for Docutils (reStructuredText PEPs).
3050 * tools/quicktest.py:
3052 - Added the ``--attributes`` option, hacked a bit.
3053 - Added a second command-line argument (output file); cleaned up.
3055 * tools/stylesheets/: Subdirectory added to project.
3057 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
3060 Release 0.1 (2002-04-20)
3061 ========================
3063 This is the first release of Docutils, merged from the now inactive
3064 reStructuredText__ and `Docstring Processing System`__ projects. For
3065 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
3066 `DPS HISTORY`__ files.
3068 __ http://structuredtext.sourceforge.net/
3069 __ http://docstring.sourceforge.net/
3070 __ http://structuredtext.sourceforge.net/HISTORY.html
3071 __ http://docstring.sourceforge.net/HISTORY.html
3073 General changes: renamed 'dps' package to 'docutils'; renamed
3074 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
3075 the test suites (reStructuredText's test/test_states renamed to
3076 test/test_rst); and all modifications required to make it all work.
3078 * docutils/parsers/rst/states.py:
3080 - Improved diagnostic system messages for missing blank lines.
3081 - Fixed substitution_reference bug.
3087 indent-tabs-mode: nil
3088 sentence-end-double-space: t