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.
57 * docutils/writers/latex2e/__init__.py
59 - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
60 admonitions and docinfo.
62 - Use absolute path for ``default_template_path``.
64 - Removed deprecated options ``--use-latex-footnotes`` and
65 ``--figure-footnotes``.
67 - Cleaner LaTeX code for enumerations and literal blocks.
69 * docutils/writers/odf_odt/__init__.py
71 - remove decode.encode of filename stored in zip.
73 * docutils/writers/xhtml11/
75 - New HTML writer generating `XHTML 1.1`_ styled with CSS2.1
76 Moved to the docutils core from sandbox/html4strict.
81 - New front-ends ``rst2xhtml.py`` and ``rst2html5.py`` for the
82 corresponding writers.
84 .. _polyglot markup: http://www.w3.org/TR/html-polyglot/
85 .. _HTML 5: http://www.w3.org/TR/html5/
86 .. _XHTML 1.0: http://www.w3.org/TR/xhtml1/
87 .. _XHTML 1.1: http://www.w3.org/TR/xhtml11/
90 Release 0.12 (2014-07-06)
91 =========================
93 * docs/ref/rst/directives.txt
95 - Update "math" and "csv-table" descriptions.
97 * docutils/parsers/rst/directives/images.py
99 - Fix [ 258 ] figwidth="image" generates unitless width value.
101 * docutils/parsers/rst/states.py
103 - Improve error report when a non-ASCII character is specified as
104 delimiter, quote or escape character under Python 2.
105 Fixes [ 249 ] and [ 250 ].
107 * docutils/writers/html4css1/__init__.py
109 - Don't add newline after inline math.
110 Thanks to Yury G. Kudryashov for the patch.
112 * docutils/writers/latex2e/__init__.py
114 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
115 - Apply [ 116 ] by Kirill Smelkov. Don't hardcode \large for subtitle.
117 * docutils/writers/odf_odt/__init__.py
119 - Apply patch by Jakub Wilk to fix bug [ 100 ].
121 * test/test_error_reporting.py
123 - Fix [ 223 ] by removing redundant tests we do not have control over.
127 - Apply [ 115 ] respect fixed 2to3 string literal conversion behavior.
129 Release 0.11 (2013-07-22)
130 =========================
134 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
135 - Support embedded aliases within hyperlink references.
136 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
137 language module) before global search.
141 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
143 * docutils/parsers/rst/directives/__init__.py
145 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
147 * docutils/parsers/rst/directives/images.py
149 - Apply [ 3599485 ] node source/line information for sphinx translation.
151 * docutils/parsers/rst/directives/tables.py
153 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
155 * docutils/parsers/rst/states.py
157 - Fix [ 157 ] Line block parsing doesn't like system message.
158 - Always import our local copy of roman.py (report Larry Hastings).
160 * docutils/transforms/references.py
162 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
164 * docutils/utils/__init__.py
166 - Fix [ 3596884 ] exception importing ``docutils.io``.
168 * docutils/writers/html4css1/__init__.py
170 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
171 - New setting `stylesheet_dirs`: Comma-separated list of directories
172 where stylesheets are found. Used by `stylesheet_path` when expanding
173 relative path arguments.
174 - New default for math-output_: ``HTML math.css``.
175 - Avoid repeated class declarations in html4css1 writer
176 (modified version of patch [ 104 ]).
178 .. _math-output: docs/user/config.html#math-output
180 * docutils/writers/latex2e/__init__.py
182 - Drop the simple algorithm replacing straight double quotes with
183 English typographic ones.
184 Activate the SmartQuotes_ transform if you want this feature.
185 - Fix literal use of babel shorthands (straight quote, tilde, ...).
186 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
187 - New setting `stylesheet_dirs`.
189 .. _SmartQuotes: docs/user/config.html#smart-quotes
191 * docutils/writers/manpage.py
193 - Fix [3607063] handle lines starting with a period.
194 - Fix option separating comma was bold (thanks to Bill Morris).
196 Release 0.10 (2012-12-16)
197 =========================
201 - Dropped support for Python 2.3.
202 - ``docutils/math``, ``docutils/error_reporting.py``, and
203 ``docutils/urischemes.py`` moved to the utils package.
204 - Fix [3541369] Relative __import__ also with Python 3.3.
205 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
206 and parsers for Python 2.7 up.
207 - Fix import of PIL.Image.
208 - Change default of "syntax highlight" option to "long",
209 basic syntax highlight styles for LaTeX and HTML.
213 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
214 option is ignored and will be removed in a future release.
215 - Fix Py3k error writing to stdout with encoding differing from default.
216 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
218 * docutils/parsers/rst/directives/misc.py
220 - Fix [ 3546533 ] Unicode error with `date` directive.
222 * docutils/transforms/universal.py
224 - SmartQuotes transform for typographic quotes and dashes.
226 * docutils/utils/__init__.py
228 - normalize_language_tag() now returns `BCP 47`_ conformant tags
229 with subtags separated by ``-``.
231 * docutils/writers/html4css1/__init__.py
233 - Use ``<code>`` tag for inline "code",
234 do not drop nested inline nodes (syntax highlight tokens).
235 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
236 - No line break after opening inline math tag.
238 * docutils/writers/manpage.py
240 - Apply [ 3527401 ] addmonition's don't preserve indentation
241 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
243 , docutils/writers/xetex/__init__.py
245 - Apply [ 3555160 ] ensure order of "otherlanguages".
246 - Fix section numbering by LaTeX.
248 * docutils/writers/s5_html/__init__.py
250 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
252 * docutils/writers/s5_html/docutils_xml.py
254 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
258 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
260 * tools/test/test_buildhtml.py
262 - Fix [ 3521167 ] allow running in any directory.
263 - Fix [ 3521168 ] allow running with Python 3.
266 Release 0.9.1 (2012-06-17)
267 ==========================
271 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
272 installed in the PYTHONPATH. Converted tests are now
273 stored in ``test3/``, tools no longer need conversion.
275 If you installed one of Docutils versions 0.7 ... 0.9 with
276 ``setup.py install`` under Python 3, remove the spurious
277 ``test/`` and ``tools/`` directories in the site library root.
281 - Make tests independent from the location of the ``test/`` directory.
282 - Use converted sources (from the ``build/`` directory) for tests under
287 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
291 - Fix writing binary data to sys.stdout under Python 3 (allows
292 ``rst2odt.py`` to be used with output redirection).
294 * docutils/parsers/rst/directives/misc.py
296 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
297 ``locale == C`` and 8-bit char in path argument of `include` directive.
301 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
304 Release 0.9 (2012-05-02)
305 ========================
309 - New reStructuredText "code" role and directive and "code" option
310 of the "include" directive with syntax highlighting by Pygments_.
311 - Fix parse_option_marker for option arguments containing ``=``.
312 - Fix [ 2993756 ]: import Python Imaging Library's Image module
313 via ``import PIL`` as starting with PIL 1.2,
314 "PIL lives in the PIL namespace only" (announcement__).
316 .. _Pygments: http://pygments.org/
317 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
321 - Fix [ 2971827 ] and [ 3442827 ]
322 extras/roman.py moved to docutils/utils/roman.py
324 * docutils/frontend.py
326 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
330 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
331 - `mode` argument for FileOutput avoids code replication in
333 - New exceptions InputError and OutputError for IO errors in
334 FileInput/FileOutput.
338 - No "hard" system exit on file IO errors: catch and report them in
339 `Publisher.reportException` instead. Allows handling by a calling
340 application if the configuration setting `traceback` is True.
342 * docutils/utils.py -> docutils/utils/__init__.py
344 - docutils.utils is now a package (providing a place for sub-modules)
346 .. note:: docutils/math, docutils/error_reporting.py, and
347 docutils/urischemes.py will move to the utils package in the next
348 release, too. See RELEASE-NOTES__
350 __ RELEASE-NOTES.html
352 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
353 errors recording non-ASCII filenames (fixes [ 3434355 ]).
355 - Fix relative_path() with source=None and `unicode` target.
357 * docutils/parsers/rst/states.py
359 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
360 characters and "international" quotes around inline markup.
361 - Use `field_marker` pattern to look for start of a
362 directive option block (fixes [ 3484857 ]).
364 * docutils/parsers/rst/tableparser.py
366 - Fix [ 2926161 ] for simple tables.
367 (Combining chars in grid tables still contribute to cell width.)
369 * docutils/writers/latex2e/__init__.py
371 - Support the `abbreviation` and `acronym` standard roles.
372 - Record only files required to generate the LaTeX source as dependencies.
373 - Fix handling of missing stylesheets.
374 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
375 when suppressing LaTeX section numbering.
376 - Use ``\DUtitle`` for unsupported section levels
377 - Apply [ 3512791 ] do not compare string literals with "is"
379 * docutils/writers/xetex/__init__.py
381 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
383 * docutils/writers/html4css1/__init__.py
385 - Change default for `math-output` setting to MathJax.
386 - Fix handling of missing stylesheets.
388 * docutils/writers/docutils_xml.py
390 - Use the visitor pattern with default_visit()/default_depart() methods
391 instead of minidom to facilitate special handling of selected nodes.
392 - Support raw XML (inserted as-is inside a <raw></raw> node).
394 * docutils/writers/manpage.py
396 - Do not emit comment line with trailing blank. Problematic for VCS.
398 Release 0.8.1 (2011-08-30)
399 ==========================
403 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
404 and [ 3395920 ] (correct copyright info for rst.el).
408 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
410 * docutils/writers/latex2e/__init__.py
412 - Clean up Babel language setting. Restores Sphinx compatibility.
414 Release 0.8 (2011-07-07)
415 ========================
419 - Handle language codes according to `BCP 47`_.
420 - If the specified language is not supported by Docutils,
421 warn and fall back to English.
422 - Math support: reStructuredText "math" role and directive,
423 ``math`` and ``math_block`` doctree elements.
424 - Decode command line arguments with the locale's preferred encoding
425 (to allow, e.g., ``--title=Dornröschen``).
426 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
427 - New sub-module `error_reporting`: handle encoding/decoding errors
428 when reporting exceptions.
429 - Some additions to the Docutils core are released under the 2-Clause BSD
430 license, see COPYING_ for details.
432 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
433 .. _COPYING: COPYING.html
437 - Most directives now support a "name" option that attaches a
440 - Directive content may start on the first line also when the directive
441 type accepts options.
443 * docs/dev/policies.txt:
445 - Recommend the 2-Clause BSD license
446 (http://www.spdx.org/licenses/BSD-2-Clause)
447 for code that is kept under the author's copyright.
449 * tools/buildhtml.py:
451 - Fix ``--local`` switch.
453 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
455 * docutils/writers/html4css1/__init__.py
457 - Set "lang" argument for objects with class argument
458 "language-<language tag>".
459 - New setting "math-output" with support for HTML, MathML, and LaTeX.
461 * docutils/writers/latex2e/__init__.py
463 - Fix [ 3043986 ] AttributeError using :local: with table of content.
464 - Place title data in the document preamble.
465 - Load `babel` package only if required.
466 - Update list of supported languages.
467 - New config setting "hyperref-options".
468 No hard-coded "unicode" hyperref option (clash with xetex).
469 - Set language for custom roles, paragraphs, block-quotes, and
470 line-quotes with class argument "language-<language tag>".
471 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
472 - Convert image URI to a local file path.
473 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
474 has more than one paragraph (Wolfgang Scherer).
475 - \leavevmode before longtable only when needed (prevents spurious vspace)
476 - do not advance table counter for tables without caption
478 * docutils/writers/xetex/__init__.py
480 - New writer generating LaTeX code for compiling with ``xelatex``.
482 A separate writer (inheriting from latex2e) instead of a ``--xetex``
483 option allows separate config options for XeTeX vs. LaTeX2e.
485 * docutils/writers/manpage.py
487 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
488 - Fix: vertical space cleaning for option group ``.``.
490 * tools/editors/emacs/rst.el:
492 - Fix [ 3001100 ] does not handle spaces in filenames
493 (thanks to Jakub Wilk)
497 - strip whitespace from stylesheet arguments
498 - exclude combining chars from column_width()
499 (partial fix for [ 2926161 ])
501 * docutils/parsers/rst/directives/misc.py:
503 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
508 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
509 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
511 Release 0.7 (2010-07-07)
512 ========================
516 - Fix [ 2881769 ] setup configuration.
517 - Fix [ 2788716 ] reporting problems in included files.
521 - FileInput opens files as text files with universal newline support
522 (mode "rU", configurable with the new optional argument "mode").
526 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
530 - Fix [ 2923723 ] let decode_path() tolerate path == None
532 * docutils/writers/html4css1/__init__.py
534 - Support SVG and SWF images (thanks to Stefan Rank).
535 - Generate valid XHTML for centered images with targets.
536 Use CSS classes instead of "align" tags for image alignment.
538 * docutils/writers/latex2e/__init__.py
540 - Use `transforms.writer_aux.Admonitions` to "normalize" special
542 - Use the ``\url`` command for URLs (breaks long URLs instead of
543 writing into the margin).
544 - Preserve runs of spaces in `inline literals`__.
545 - Deprecate ``figure_footnotes`` setting.
546 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
547 - New ``latex_preamble`` setting.
548 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
549 - Fix hyperlink targets (labels) for images, figures, and tables.
550 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
551 - Apply [ 2961991 ] Call hyperref with unicode option.
552 - Drop the special `output_encoding`__ default ("latin-1").
553 The Docutils wide default (usually "UTF-8") is used instead.
554 - Render inline markup in document title and subtitle.
555 - Fix numbering depth with LaTeX section numbering.
556 - Update Unicode -> LaTeX translations.
557 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
559 __ docs/ref/restructuredtext.html#inline-literals
560 __ docs/user/config.html#docutils-footnotes
561 __ docs/user/config.html#output_encoding
563 * docutils/writers/manpage.py
565 - Fix: supported attribute (thanks to peter2108).
566 - Remove trailing blanks in code (keep in sync with mercurial version).
567 - Titles level 1, that is ``.SH``, always uppercase.
568 - Apply patch from mg: literal text should be bold in man-pages.
572 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
577 - Python 3 support: copy test/ and tools/ to the build-dir
578 and convert Python sources with 2to3.
581 Release 0.6 (2009-10-11)
582 ========================
586 - Docutils is now compatible with Python versions from 2.3 up to 2.6
587 and convertible to 3.1 code.
589 + Node.__nonzero__ returns True instead of 1.
590 + use os.walk instead os.path.walk.
591 + minimize "types" module where possible.
592 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
593 + Text nodes now subclass unicode rather than UserString
594 (which is gone in python 3.0).
595 + 3.0 compatibility module docutils._compat
597 + Drop 2.2 compatibility workarounds.
598 + Drop extras/optparse.py and extras/textwrap.py
599 (stdlib modules since 2.3).
601 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
602 - Unix man page export: manpage writer moved from sandbox to Doctutils
605 - Apply [ 1719345 ] Galician translation
606 - Apply [ 1905741 ] Polish translation
607 - Apply [ 1878977 ] make_id(): deaccent characters.
608 - Apply [ 2029251 ] return nonzero when tests fail.
609 - Fix [ 1692788 ] allow UTF-8 in style sheets.
610 - Fix [ 2781629 ] support non-ASCII chars in file names.
611 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
612 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
613 - Fix [ 2821266 ] --strict option works now like --halt=info.
614 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
615 - Fix [ 1627229 ] hyperlink references in substitutions.
617 - The "newlatex" writer is orphaned.
621 - Documented Unicode characters allowed as inline markup openers,
622 closers, and delimiters.
623 - Allow units for all length specifications.
624 - Allow percent sign in "scale" argument of "figure" and "image" directives.
625 - Bugfix: The "figalign" argument of a figure now works as intended
626 (aligning the figure, not its contents).
627 - Align images with class "align-[right|center|left]"
628 (allows setting the alignment of an image in a figure).
632 - Added ``Element.__contains__`` method, for the in-operator.
634 * docutils/parsers/rst/states.py:
636 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
637 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
638 " " (non-breaking space), and "¡ ¿" openers.
640 * docutils/parsers/directives/misc.py:
642 - Added ``start-line`` and ``end-line`` options to "include"
643 directive to select a range of lines.
644 - Hard tabs in literal inclusions are replaced by spaces. This is
645 configurable via the new ``tab-width`` option of the "include" directive
646 (a negative tab-width prevents tab expansion).
650 - Add ``get_stylesheet_list`` function.
651 - Apply [ 2834836 ] print info at halt
653 * docutils/transforms/universal.py:
655 - Raise default priority of StripClasses to exclude stripped classes from
658 * docutils/writers/html4css1/__init__.py:
660 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
661 separated list of stylesheets.
662 - Address [ 1938891 ] Inline literal text creates "pre" span only when
663 needed to prevent inter-word line wraps.
664 - Use `translate` method instead of repeated `replace` calls.
665 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
666 classes to allow CSS styling that does not interfere with other
667 table-using constructs (field lists, citations, ...).
669 * docutils/writers/newlatex2e/__init__.py:
671 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
673 * docutils/writers/latex2e/__init__.py (see also
674 `<docs/user/docutils-05-compat.sty.html>`__) :
676 - Add ``--embed-stylesheet`` option.
677 - Apply [ 1474017 ] image vertical alignment is reversed.
678 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
679 - Change: has_key for dictionaries (not Nodes) to in-operator.
680 - Merge adjacent citations into one latex cite command.
681 - Failsave implementation of custom roles. LaTeX compilation now ignores
682 unknown classes instead of aborting with an error.
683 - Support custom roles based on standard roles.
684 - LaTeX packages can be used as ``--stylesheet`` arguments without
685 restriction. (A style sheet is now referenced with the ``\usepackage``
686 command, if it ends with ``.sty`` or has no extension.)
687 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
688 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
689 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
690 2005-02-04 as a configurable length unit).
691 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
692 if font-encoding is set to ''. LaTeX defaults to OT1 then.
693 - Set sub- and superscript role argument in text mode not as math.
694 Use a custom role based on sub-/superscript if you want italic shape.
695 - Shorter preamble and less dependencies: Load packages and define macros
696 only if required in the document.
697 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
698 - New custom environments and commands with optional "classes" argument.
699 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
700 - Better conformance to Docutils specifications with ``--use-latex-toc``.
701 Support for LaTeX generated ToC also with unnumbered sections.
702 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
703 section numbering by LaTeX.
704 - Use default font in admonitions and sidebar.
705 - Align of image in a figure defaults to 'center'.
706 - Bugfix: Newlines around targets and references prevent run-together
708 - Fix internal hyperlinks.
709 - Use class defaults for page margins ('typearea' now optional).
710 - Float placement made configurable, default changed to "here definitely".
711 - Typeset generic topic as "quote block with title".
712 - Use template (file and configuration option).
713 - In the default template, load cmap.sty (fix text extraction in PDF) and
714 fixltx2e.sty (LaTeX patches, \textsubscript).
715 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
716 - Use `translate` instead of repeated `replace` calls for text encoding.
717 - Hyperlinked footnotes and support for symbol footnotes and
718 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
719 - Complete pairs of binary options
720 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
721 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
723 - font-encoding: "T1" (formerly implicitely set by 'ae').
724 - use-latex-toc: true (ToC with page numbers).
725 - use-latex-footnotes: true (no mixup with figures).
727 * docutils/writers/manpage.py
729 - Do not print version at document end, this is done by the viewer.
730 - Do not print date at document end, this is done by the viewer.
731 - Fix storage of docinfo fields for none standard fields.
733 * docutils/tools/rst2man.py
735 Release 0.5 (2008-06-25)
736 ========================
738 * docutils/languages/he.py: Added to project: Hebrew mappings by
741 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
742 mappings by Meir Kriheli.
744 * docutils/frontend.py:
746 - Configuration files are now assumed and required to be
748 - Paths of applied configuration files are now recorded in the
749 runtime setting ``_config_files`` (accessible via
750 ``--dump-settings``).
751 - Added ``--strip-elements-with-class`` and ``--strip-class``
752 options (``strip_elements_with_classes`` and ``strip_classes``
757 - Added code to determine the input encoding from data: encoding
758 declarations or the presence of byte order marks (UTF-8 & UTF-16).
759 - Added support for IronPython 1.0.
763 - Added ``document.__getstate__`` method, for pickling.
765 * docutils/parsers/rst/states.py:
767 - Allow ``+`` and ``:`` in reference names.
768 - Unquoted targets beginning with an underscore (``.. __target:
769 URI``) are no longer accepted.
770 - Added support for multiple attributions in a physical block quote
771 (indented text block), dividing it into multiple logical block
773 - Added support for unicode bullets in bullet lists: "•", "‣", and
775 - Added support for new object-oriented directive interface,
776 retaining compatibility to the old functional interface.
777 - Added support for throwing ``DirectiveError``'s from within
780 * docutils/parsers/rst/__init__.py:
782 - Added ``Directive`` base class.
783 - Added ``DirectiveError`` base class.
784 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
787 * docutils/parsers/directives/:
789 - Refactored all reStructuredText directives to use the new
790 object-oriented directive interface. Errors are now (mostly)
791 thrown using the new ``DirectiveError`` class.
793 * docutils/parsers/directives/misc.py:
795 - Added ``start-after`` and ``end-before`` options to ``include``
796 directive; thanks to Stefan Rank.
798 * docutils/transforms/universal.py:
800 - Added ``StripClassesAndElements`` transform to remove from the
801 document tree all elements with classes in
802 ``settings.strip_elements_with_classes`` and all "classes"
803 attribute values in ``self.document.settings.strip_classes``.
805 * docutils/transforms/writer_aux.py:
807 - Added ``Admonitions`` transform to transform specific admonitions
808 (like ``note``, ``warning``, etc.) into generic admonitions with a
811 * docutils/writers/html4css1/__init__.py:
813 - Moved template functionality from the PEP/HTML writer here.
814 - Expanded the fragments available in the ``parts`` attribute.
815 - Moved ``id`` attributes from titles to surrounding ``div``
817 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
818 universally supported now).
819 - ``template.txt`` is now opened in text mode instead of binary mode
820 (to ensure Windows compatibility).
821 - ``a`` elements now have an "internal" or "external" class,
822 depending on reference type.
824 * docutils/writers/html4css1/template.txt: Added to project.
826 * docutils/writers/pep_html/:
828 - Moved template functionality to the HTML writer.
830 * docutils/writers/s5_html/__init__.py:
832 - Added ``view_mode`` & ``hidden_controls`` settings
833 (``--view-mode`` & ``--hidden-controls/--visible-controls``
836 * docutils/writers/latex2e/__init__.py:
838 - Add ``--literal-block-env``
839 - Fix: escaping ``%`` in href urls.
840 - Move usepackage hyperref after stylesheet inclusion.
841 - Fix: scrartcl does not have chapter but scrreprt.
842 - Add newline after ``\end{verbatim}``.
843 - Merge smaller differences from latex2e_adaptive_preamble.
844 - Add ``use-part-section``.
845 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
846 - Using leavemode option_list no longer needs to check if parent
847 is a definition list.
848 - Append ``\leavemode`` to definition list terms.
849 - No longer write visit\_/depart_definition_list_item comments to
851 - Table column width with 3 decimal places.
852 - Add table stubs support (boldfont).
853 - Add assemble_parts to writer.
854 - Add simply support for nested tables.
855 - Fix verbatim in tables if use-verbatim-when-possible.
856 - Use section commands down to subparagraph.
857 - Put ensuremath around some latin1 chars.
858 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
859 - New option ``--use-bibtex=style,db1,db2``.
860 - New option ``--reference-label`` to allow usage of LaTeX ref for
861 labels in section references.
862 - Add a label after every section to support sectionnumbers as reference
864 - Fix: bug# 1605376 rst2latex: bad options group list
865 - Remove inactive code for use_optionlist_for_option_list.
866 - Remove latex comments from option_list output.
867 - Fix: bug# 1612270 double qoutes in italian literal.
868 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
869 - Add option --use-latex-abstract.
870 - Image width unit ``px`` is translated to ``pt``.
871 - Add image height support.
872 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
874 - Fix: Do not escape underscores in citation reference labels if
875 use-latex-citations is set.
876 - Use centering instead of center for figure contents, to avoid vertical
878 - Recognize table class: borderless, nolines, booktabs, standard.
879 - Fix: Renaming contents section does not work with latex writer; SF
881 - Applied patch for custom roles with classes from Edward Loper.
882 - Fixed bug that caused crashes with more than 256 lists.
884 * docutils/writers/pep_html/__init__.py:
886 - Changed to support new python.org website structure and
889 * docs/howto/security.txt: "Deploying Docutils Securely", added to
892 * tools/buildhtml.py:
894 -- Added ``ignore`` setting to exclude a list of shell patterns
895 (default: ``.svn:CVS``).
897 * tools/editors/emacs/rst.el:
899 - Changed license to "GPL".
900 - Added ``rst-straighten-decorations`` function.
901 - The ``compile`` module is now always loaded.
902 - Added ``rst-toggle-line-block`` function.
903 - Headings consisting only of non-ASCII characters are now
904 recognized by ``rst-toc`` and ``rst-adjust``.
905 - Added font-lock support for multi-line comments where the first
906 comment line is empty.
907 - Added ``(require 'font-lock)``.
911 - Provide descriptive error message if distutils is missing.
914 Release 0.4 (2006-01-09)
915 ========================
919 - Updated the project policies for trunk/branch development &
922 * docutils/__init__.py:
924 - Added ``__version_details__`` attribute to describe code source
925 (repository/snapshot/release).
926 - Replaced ``default_transforms`` attribute of TransformSpec with
927 ``get_transforms()`` method.
931 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
932 functions, for document tree extraction and reprocessing.
936 - Added ``DocTreeInput`` class, for reprocessing existing documents.
937 - Added support for non-Unicode (e.g. binary) writer output.
941 - Re-introduced ``Targetable.indirect_reference_name``, for
942 MoinMoin/reST compatibility (removed in r3124/r3129).
943 - Added ``serial_escape`` function; escapes string values that are
944 elements of a list, for serialization. Modified Docutils-XML
945 writing (``Element._dom_node``) and pseudo-XML writing
946 (``Element.starttag``) to use ``serial_escape``.
947 - Added ``Node.deepcopy()`` method.
948 - Removed the internal lists ``document.substitution_refs``,
949 ``document.anonymous_refs``, and ``document.anonymous_targets``.
950 - Added a "container" element.
951 - Fixed bug where values of list-valued attributes of elements
952 originating from custom interpreted text roles (i.e., with custom
953 classes) were being shared between element instances. Reported by
956 * docutils/statemachine.py:
958 - Added trailing whitespace stripping to ``string2lines()``.
959 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
960 Asian double-width character support.
964 - Added ``east_asian_column_width()`` for double-width character
967 * docutils/languages/ja.py: Added to project: Japanese mappings by
970 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
971 mappings by Panjunyong.
973 * docutils/parsers/null.py: Added to project; a do-nothing parser.
975 * docutils/parsers/rst/__init__.py:
977 - Added validator to tab_width setting, with test. Closes SF bug
978 #1212515, report from Wu Wei.
980 * docutils/parsers/rst/states.py:
982 - Fixed bug with escaped colons indicating a literal block.
983 - Fixed bug with enumerated lists (SF#1254145).
984 - Backslash-escaped colons inside of field names are now allowed.
985 - Targets (implicit and explicit), anonymous hyperlink references
986 and auto-numbered footnote references inside of substitution
987 definitions are now disallowed.
988 - Fixed bug: list items with blank first lines.
989 - Fixed bug: block quote attributions with indented second lines.
990 - Added East Asian double-width character support (Python 2.4 only).
992 * docutils/parsers/rst/tableparser.py:
994 - Added East Asian double-width character support (Python 2.4 only).
996 * docutils/parsers/rst/directives/body.py:
998 - Added the "container" directive.
1000 * docutils/parsers/rst/directives/misc.py:
1002 - Added the "default-role", "title", and "date" directives.
1003 - Added standard data file syntax to the "include" directive.
1004 - Added support for "class" directive content.
1006 * docutils/parsers/rst/directives/images.py:
1008 - Added ``indirect_reference_name`` support for images with a target
1010 - Added support for image width and height units.
1011 - Fixed bug with image "target" options.
1013 * docutils/parsers/rst/directives/references.py:
1015 - Added "class" attribute to "target-notes" directive, for
1016 footnote_reference classes.
1018 * docutils/parsers/rst/include/: Directory added to project; contains
1019 standard data files for the "include" directive. Initial contents:
1020 character entity substitution definition sets, and a set of
1021 definitions for S5/HTML presentations.
1023 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
1024 mappings by David Goodger.
1026 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
1027 Simplified Chinese mappings by Panjunyong.
1029 * docutils/readers/__init__.py:
1031 - Added universal.Decorations and universal.ExposeInternals
1032 transforms as default transforms for all readers.
1033 - Added ``ReReader`` base class for readers that reread an existing
1036 * docutils/readers/doctree.py: Added to project; a reader for existing
1039 * docutils/transforms/frontmatter.py:
1041 - Fixed the DocInfo transform to handle SVN-style expansion of the
1043 - In ``DocInfo.extract_authors``, treat the contents of "authors"
1046 * docutils/transforms/misc.py:
1048 - Added misc.Transitions transform, extracted from
1049 universal.FinalChecks.
1051 * docutils/transforms/references.py:
1053 - Added references.DanglingReferences transform, extracted from
1054 universal.FinalChecks.
1055 - Fixed bug with doubly-indirect substitutions.
1056 - Added footnote_reference classes attribute to "TargetNotes".
1057 - Fixed bug with circular substitution definitions that put Docutils
1058 into an infinite loop.
1060 * docutils/transforms/universal.py:
1062 - Added universal.ExposeInternals transform, extracted from
1063 universal.FinalChecks.
1064 - Removed universal.FinalChecks transform (logic has been moved to
1065 several new transforms).
1066 - Fixed bug with the "expose_internals" setting and Text nodes
1067 (exposed by the "rawsource" internal attribute).
1068 - Added the universal.StripComments transform, implementation of the
1069 "strip_comments" setting.
1071 * docutils/transforms/writer_aux.py: Added to project; auxiliary
1072 transforms for writers.
1074 - Added ``Compound`` transform, which flattens compound paragraphs.
1076 * docutils/writers/: Several writer modules (html4css1.py) were
1077 converted into packages. Support modules and data files have been
1078 moved into the packages. The stylesheets for the HTML writers are
1079 now installed along with the code, the code knows where to find
1080 them, and the default is to use them (actually, to embed them).
1081 Some adjustments to configuration files may be necessary. The
1082 easiest way to obtain the new default behavior is to remove all
1083 settings whose name includes "stylesheet".
1085 * docutils/writers/__init__.py:
1087 - Added universal.Messages and universal.FilterMessages transforms
1088 as default transforms for all writers.
1089 - Added ``UnfilteredWriter`` base class for writers that pass the
1090 document tree on unchanged.
1092 * docutils/writers/docutils_xml.py:
1094 - Made ``xmlcharrefreplace`` the default output encoding error
1097 * docutils/writers/html4css1/:
1099 - Added support for image width and height units.
1100 - Made ``xmlcharrefreplace`` the default output encoding error
1102 - Made ``--embed-stylesheet`` the default rather than
1103 ``--link-stylesheet``.
1104 - Moved "id" attribute from container (section etc.) to title's <a>
1105 tag, to be on the same tag as "name".
1106 (!!! To be reverted in Docutils 0.5.)
1107 - Added vertical space between fields of field lists.
1108 - Added ``--compact-field-lists`` option to remove vertical space in
1110 - Made cloaking of email addresses with ``--cloak-email-addresses``
1112 - Fixed support for centered images.
1113 - Added support for class="compact" & class="open" lists.
1115 * docutils/writers/latex2e/:
1117 - Underscores in citekeys are no longer escaped.
1119 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1120 mapping of Unicode characters to LaTeX equivalents.
1122 * docutils/writers/s5_html/: Package added to project; writer for
1123 S5/HTML slide shows.
1125 * docs/dev/distributing.txt: Added to project; guide for distributors
1126 (package maintainers).
1128 * docs/dev/hacking.txt: Added to project; guide for developers.
1130 * docs/ref/doctree.txt:
1132 - Updated for plural attributes "classes", "ids", "names",
1134 - Added the "container" element.
1136 * docs/ref/docutils.dtd:
1138 - Updated for plural attributes "classes", "ids", "names",
1141 * docs/user/emacs.txt: Added to project; a document about Emacs
1142 support for reStructuredText and Docutils.
1144 * docs/user/links.txt: Added to project; lists of Docutils-related
1147 * docs/user/mailing-lists.txt: Added to project; information about
1148 Docutils-related mailing lists and how to access them.
1150 * docs/user/slide-shows.txt: Added to project; example of and docs for
1151 the S5/HTML writer (``rst2s5.py`` front end).
1153 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1154 Files", added to project.
1156 * test/coverage.sh: Added to project; test coverage script.
1158 * test/DocutilsTestSupport.py:
1160 - Added support for specifying runtime settings at the suite level.
1162 * test/test_functional.py:
1164 - Added the ``clear_output_directory`` function.
1165 - Added support for ``_test_more`` functions in functional test
1168 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1170 * tools/rstpep2html.py: Renamed from pep.py.
1172 * tools/dev/create_unimap.py: Added to project; script to create the
1173 docutils/writers/unimap_latex.py mapping file.
1175 * tools/dev/profile_docutils.py: Added to project; profiler script.
1177 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1179 * tools/editors/emacs/restructuredtext.el,
1180 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1181 Removed from project; the functionality is now contained in rst.el.
1183 * tools/editors/emacs/rst.el: Added to project. Added many features
1184 and fixed many bugs. See docs/user/emacs.txt for details.
1186 * tools/stylesheets: Removed from project. Stylesheets have been
1187 renamed and moved into writer packages.
1190 Release 0.3.9 (2005-05-26)
1191 ==========================
1195 - Eliminated and replaced all uses of the old string attributes
1196 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1197 new list attributes ``ids``, ``names``, ``dupnames`` and
1198 ``classes`` throughout the whole source tree.
1202 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1203 allowing for easier debugging.
1204 - In ``Publisher.publish()``, expanded the generic top-level
1207 * docutils/examples.py:
1209 - Added ``internals`` function for exploration.
1213 - Fixed ``Input.decode`` method to apply heuristics only if no
1214 encoding is explicitly given, and to provide better reporting of
1216 - The ``Input.decode`` method now removes byte order marks (BOMs)
1219 * docutils/nodes.py:
1221 - ``image`` element class changed to subclass of Element, not
1222 TextElement (it's an empty element, and cannot contain text).
1223 - Added ``attr_defaults`` dictionary for default attribute values.
1224 - Added empty list as default value for the following attributes:
1225 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1226 - Added ``document.decoration`` attribute,
1227 ``document.get_decoration`` method, and ``decoration.get_header``
1228 & ``.get_footer`` methods.
1229 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1232 * docutils/utils.py:
1234 - Removed ``docutils.utils.Reporter.categories``,
1235 ``docutils.utils.ConditionSet``, and all references to them, to
1236 simplify error reporting.
1238 * docutils/languages/nl.py: Added to project; Dutch mappings by
1241 * docutils/parsers/rst/__init__.py:
1243 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1245 * docutils/parsers/rst/states.py:
1247 - Added check for escaped at-mark to prevent email address recognition.
1248 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1250 - Allowed whitespace in paths and URLs.
1251 - Added auto-enumerated list items.
1252 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1254 - Added support for table stub columns.
1256 * docutils/parsers/rst/directives/__init__.py:
1258 - Allowed whitespace in paths (``path`` function).
1259 - Added ``uri`` directive option conversion function.
1261 * docutils/parsers/rst/directives/body.py:
1263 - Fixed illegal context bug with "topic" directive (allowed within
1264 sidebars; not within body elements).
1266 * docutils/parsers/rst/directives/images.py:
1268 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1269 - Added support for the ``file_insertion_enabled`` setting in the
1270 "figure" directive (disables "figwidth" option).
1271 - "image" directive: added checks for valid values of "align" option,
1272 depending on context. "figure" directive: added specialized
1273 "align" option and attribute on "figure" element.
1274 - Made ":figwidth: image" option of "figure" directive work again.
1275 - Fixed bug with reference names containing uppercase letters
1276 (e.g. ``Name_``) in "target" option of "image" directive.
1278 * docutils/parsers/rst/directives/misc.py:
1280 - Fixed "include" and "raw" directives to catch text decoding
1282 - Allowed whitespace in "include" & "raw" directive paths.
1283 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1284 settings in "include" & "raw" directives.
1286 * docutils/parsers/rst/directives/parts.py:
1288 - Added "header" & "footer" directives.
1289 - Fixed illegal context bug with "contents" directive (topics
1290 allowed within sidebars; not within body elements).
1292 * docutils/parsers/rst/directives/tables.py:
1294 - Added "list-table" directive.
1295 - Caught empty CSV table bug.
1296 - Added support for the ``file_insertion_enabled`` setting in the
1297 "csv-table" directive.
1298 - Added ``stub-columns`` option to "csv-table" and "list-table"
1301 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1302 mappings by Martijn Pieters.
1304 * docutils/readers/standalone.py:
1306 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1307 options to activate or deactivate the SectSubTitle transform.
1309 * docutils/transforms/frontmatter.py:
1311 - Added SectSubTitle transform to promote titles of lone
1312 subsections to subtitles.
1314 * docutils/transforms/references.py:
1316 - Fixed mislocated internal targets bug, by propagating internal
1317 targets to the next node, making use of the newly added support
1318 for multiple names and IDs.
1319 - Fixed duplicate footnote label bug.
1320 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1323 * docutils/writers/html4css1.py:
1325 - Fixed unencoded stylesheet reference bug (characters like "&" in
1326 stylesheet references).
1327 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1329 - Added support for multiple IDs per node by creating empty ``span``
1331 - Added the ``field_name_limit`` & ``option_limit`` settings &
1333 - Added support for table stub columns.
1334 - Added support for the ``align`` attribute on ``figure`` elements.
1335 - Added the ``cloak_email_addresses`` setting & support.
1336 - Added ``html_prolog``, ``html_head``, ``html_body``,
1337 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1338 ``docutils.core.publish_parts``.
1339 - Added support for section subtitles.
1341 * docutils/writers/latex2e.py:
1343 - Fixed tables starting with more than one multirow cell.
1344 - Improved --use-latex-docinfo so that organization/contact/address
1345 fields are lumped with the last author field and appear on the
1347 - Made sure the titlepage is always shown with --use-latex-docinfo,
1348 even if the document has no title.
1349 - Made sure that latex doesn't fill in today's date if no date field
1351 - Added support for section subtitles.
1353 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1354 (under development).
1356 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1358 * docs/api/publisher.txt:
1360 - Added "``publish_parts`` Details" section.
1362 * docutils/dev/repository.txt: Added to project; information about the
1363 Docutils Subversion repository.
1365 * docs/ref/docutils.dtd:
1367 - Added a ``stub`` attribute to the ``colspec`` element via the
1368 ``tbl.colspec.att`` parameter entity.
1369 - Allowed topic elements within sidebars
1370 - Added an ``align`` attribute to the ``figure`` element.
1372 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1376 Release 0.3.7 (2004-12-24)
1377 ==========================
1379 * docutils/frontend.py:
1381 - Added options: --input-encoding-error-handler,
1382 --record-dependencies, --leave-footnote-reference-space,
1384 - Added command-line and config file support for "overrides" setting
1389 - Added support for input encoding error handler.
1391 * docutils/nodes.py:
1393 - Added dispatch_visit and dispatch_departure methods to
1394 NodeVisitor; useful as a hook for Visitors.
1395 - Changed structure of ``line_block``; added ``line``.
1396 - Added ``compound`` node class.
1397 - Added a mechanism for Visitors to transitionally ignore new node
1400 * docutils/utils.py:
1402 - Moved ``escape2null`` and ``unescape`` functions from
1403 docutils/parsers/rst/states.py.
1405 * docutils/parsers/rst/roles.py:
1408 - Changed role function API: the "text" parameter now takes
1409 null-escaped interpreted text content.
1411 * docutils/parsers/rst/states.py:
1413 - Fixed bug where a "role" directive in a nested parse would crash
1414 the parser; the state machine's "language" attribute was not being
1416 - Added support for line block syntax.
1417 - Fixed directive parsing bug: argument-less directives didn't
1418 notice that arguments were present.
1419 - Removed error checking for transitions.
1420 - Added support for multiple classifiers in definition list items.
1421 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1422 - Changed role function API: the "text" parameter now takes
1423 null-escaped interpreted text content.
1424 - Empty sections and documents are allowed now.
1426 * docutils/parsers/rst/directives/__init__.py:
1428 - Added ``encoding`` directive option conversion function.
1429 - Allow multiple class names in class_option conversion function.
1431 * docutils/parsers/rst/directives/body.py:
1433 - Converted the line-block directive to use the new structure.
1434 - Extracted the old line-block functionality to the ``block``
1435 function (still used).
1436 - Added ``compound`` directive (thanks to Lea Wiemann).
1438 * docutils/parsers/rst/directives/misc.py:
1440 - Added "encoding" option to "include" and "raw" directives.
1441 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1442 - Allow multiple class names in the "class" directive.
1444 * docutils/parsers/rst/directives/parts.py:
1446 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1447 options. Thanks to Lele Gaifax.
1449 * docutils/parsers/rst/directives/tables.py:
1451 - Added "encoding" directive to "csv-table" directive.
1452 - Added workaround for lack of Unicode support in csv.py, for
1453 non-ASCII CSV input.
1455 * docutils/transforms/misc.py:
1457 - Fixed bug when multiple "class" directives are applied to a single
1459 - Enabled multiple format names for "raw" directive.
1461 * docutils/transforms/references.py:
1463 - Added support for trimming whitespace from beside substitution
1466 * docutils/transforms/universal.py:
1468 - FinalChecks now checks for illegal transitions and moves
1469 transitions between sections.
1471 * docutils/writers/html4css1.py:
1473 - HTMLTranslator.encode now converts U+00A0 to " ".
1474 - "stylesheet" and "stylesheet_path" settings are now mutually
1476 - Added support for the new line_block/line structure.
1477 - --footnote-references now overrides
1478 --trim-footnote-reference-space, if applicable.
1479 - Added support for ``compound`` elements.
1480 - Enabled multiple format names for "raw" directive.
1481 - ``<p>`` tags of a paragraph which is the only visible child of the
1482 document node are no longer stripped.
1483 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1484 new method ``should_be_compact_paragraph()``.
1485 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1487 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1488 the output if they have their ``class`` attribute set.
1489 - The whole document is now surrounded by a ``<div
1490 class="document">`` element.
1491 - Body-level images are now wrapped by their own ``<div>`` elements,
1492 with image classes copied to the wrapper, and for images which
1493 have the ``:align:`` option set, the surrounding ``<div>`` now
1494 receives a class attribute (like ``class="align-left"``).
1496 * docutils/writers/latex2e.py:
1498 - no newline after depart_term.
1499 - Added translations for some Unicode quotes.
1500 - Added option "font-encoding", made package AE the default.
1501 - "stylesheet" and "stylesheet_path" settings are now mutually
1503 - --footnote-references now overrides
1504 --trim-footnote-reference-space, if applicable.
1505 - The footnote label style now matches the footnote reference style
1506 ("brackets" or "superscript").
1507 - Added support for ``compound`` elements.
1508 - Enabled multiple format names for "raw" directive.
1510 * docs/ref/docutils.dtd:
1512 - Changed structure of the ``line_block`` element; added ``line``.
1513 - Added ``compound`` element.
1514 - Added "ltrim" and "rtrim" attributes to
1515 ``substitution_definition`` element.
1516 - Enabled multiple format names for ``raw`` element.
1517 - Enabled multiple classifiers in ``definition_list_item`` elements.
1519 * docs/ref/rst/directives.txt
1521 - Marked "line-block" as deprecated.
1522 - "Class" directive now allows multiple class names.
1523 - Added "Rationale for Class Attribute Value Conversion".
1524 - Added warning about "raw" overuse/abuse.
1526 * docs/ref/rst/restructuredtext.txt:
1528 - Added syntax for line blocks.
1529 - Definition list items may have multiple classifiers.
1531 * docs/ref/rst/roles.txt:
1535 * tools/stylesheets/default.css:
1537 - Added support for the new line_block structure.
1538 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1541 Release 0.3.5 (2004-07-29)
1542 ==========================
1546 * _`Documentation cleanup/reorganization`.
1548 - Created new subdirectories of docs/:
1550 * ``docs/user/``: introductory/tutorial material for end-users
1551 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1552 * ``docs/api/``: API reference material for client-developers
1553 * ``docs/ref/``: reference material for all groups
1554 * ``docs/howto/``: for component-developers and core-developers
1555 * ``docs/peps/``: Python Enhancement Proposals
1557 - Moved ``docs/*`` to ``docs/user/``.
1558 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1559 ``spec/`` to ``docs/dev``.
1560 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1561 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1562 - Moved ``alternatives.txt``, and ``problems.txt`` from
1563 ``spec/rst/`` to ``docs/dev/rst/``.
1564 - Moved ``reStructuredText.txt``, ``directives.txt``,
1565 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1566 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1567 ``roles.txt``, ``reStructuredText.txt`` to
1568 ``restructuredtext.txt``.
1569 - Moved ``spec/howto/`` to ``docs/howto``.
1571 In order to keep the CVS history of moved files, we supplied
1572 SourceForge with a `script for modifying the Docutils CVS
1575 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1577 After running the cleanup script:
1579 - Added ``docs/index.txt``.
1580 - Added a ``.htaccess`` file to the ``web`` module, containing
1581 redirects for all old paths to new paths. They'll preserve
1582 fragments (the "#name" part of a URL), and won't clutter up the
1583 file system, and will correct the URL in the user's browser.
1584 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1585 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1586 the "To Do" list itself in ``docs/dev/todo.txt``.
1587 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1588 section of ``docs/dev/todo.txt``.
1589 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1590 - Added "How To Report Bugs" to ``BUGS.txt``.
1591 - Went through all the sources and docs (including under web/) and
1592 updated links. Mostly done by Lea Wiemann; thanks Lea!
1593 (Still need to update links in the sandboxes.)
1597 * BUGS.txt: Added to project.
1599 * THANKS.txt: Added to project.
1601 * docutils/__init__.py:
1603 - 0.3.4: Post-release.
1607 - Added special error handling & advice for UnicodeEncodeError.
1608 - Refactored Publisher.publish (simplified exception handling &
1609 extracted debug dumps).
1610 - Renamed "enable_exit" parameter of convenience functions to
1611 "enable_exit_status".
1612 - Enabled traceback (exception propagation) by default in
1613 programmatic convenience functions.
1614 - Now publish_file and publish_cmdline convenience functions return
1615 the encoded string results in addition to their regular I/O.
1616 - Extracted common code from publish_file, publish_string, and
1617 publish_parts, into new publish_programmatically. Extracted
1618 settings code to ``Publisher.process_programmatic_settings``.
1619 - In Publisher.publish, disabled ``settings_overrides`` when
1620 ``settings`` is supplied; redundant.
1622 * docutils/frontend.py:
1624 - Added help text for "--output-encoding-error-handler" and
1625 "--error-encoding-error-handler".
1626 - Renamed "--exit" to "--exit-status".
1627 - Simplified default-setting code.
1629 * docutils/parsers/rst/__init__.py:
1631 - Added "--pep-base-url" and "--rfc-base-url" options.
1633 * docutils/parsers/rst/states.py:
1635 - Made URI recognition more aggressive and intelligent.
1637 * docutils/parsers/rst/directives/__init__.py:
1639 - Added several directive option conversion functions.
1641 * docutils/parsers/rst/directives/body.py:
1643 - Moved "table" directive to tables.py.
1645 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1648 * docutils/writers/latex2e.py:
1650 - Added "--table-style=(standard|booktabs|nolines)"
1651 - figures get "here" option (LaTeX per default puts them at bottom),
1652 and figure content is centered.
1653 - Rowspan support for tables.
1654 - Fix: admonition titles before first section.
1655 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1656 - Replave ``_`` in literal by an underlined blank, because it has the correct
1658 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1659 - A few unicode replacements, if output_encoding != utf
1660 - Add "--graphicx-option".
1661 - Indent literal-blocks.
1662 - Fix: omit ``\maketitle`` when there is no document title.
1664 * docs/index.txt: "Docutils Project Documentation Overview", added to
1667 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1668 Tool", added to project.
1670 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1672 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1674 * docs/dev/policies.txt: Added to project (extracted from
1675 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1677 * docs/dev/release.txt: Added to project (extracted from
1678 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1680 * docs/dev/testing.txt: Added to project.
1682 * docs/dev/website.txt: Added to project (extracted from
1683 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1685 * docs/ref/rst/directives.txt:
1687 - Added directives: "table", "csv-table".
1689 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1690 added to project. 1 page for syntax, and a 1 page reference for
1691 directives and roles. Source text to be used as-is; not meant to be
1694 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1695 with a change of title.
1697 * test/functional/, contents, and test/test_functional.py: Added to
1700 * tools/buildhtml.py: Fixed bug with config file handling.
1702 * tools/html.py: Removed from project (duplicate of rst2html.py).
1704 * tools/pep2html.py: Removed from project (duplicate of Python's
1705 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1706 Docutils-related PEPs in docs/peps/).
1708 * tools/rst2pseudoxml.py: Renamed from publish.py.
1710 * tools/rst2xml.py: Renamed from docutils-xml.py.
1712 * tools/test.txt: Removed from project; moved to
1713 docs/user/rst/demo.txt.
1715 * setup.py: Now also installs ``rst2latex.py``.
1718 Release 0.3.3 (2004-05-09)
1719 ==========================
1721 * docutils/__init__.py:
1723 - 0.3.1: Reorganized config file format (multiple sections); see
1725 - Added unknown_reference_resolvers attribute to TransformSpec.
1726 - 0.3.2: Interpreted text reorganization.
1731 - Catch system messages to stop tracebacks from parsing errors.
1732 - Catch exceptions during processing report & exit without
1733 tracebacks, except when "--traceback" used.
1734 - Reordered components for OptionParser; application comes last.
1735 - Added "config_section" parameter to several methods and functions,
1736 allowing front ends to easily specify their config file sections.
1737 - Added publish_parts convenience function to allow access to individual
1738 parts of a document.
1740 * docutils/examples.py: Added to project; practical examples of
1741 Docutils client code, to be used as-is or as models for variations.
1743 * docutils/frontend.py:
1745 - Added "--traceback" & "--no-traceback" options ("traceback"
1747 - Implemented support for config file reorganization:
1748 ``standard_config_files`` moved from ``ConfigParser`` to
1749 ``OptionParser``; added
1750 ``OptionParser.get_config_file_settings()`` and
1751 ``.get_standard_config_settings()``; support for old "[options]"
1752 section (with deprecation warning) and mapping from old to new
1754 - Reimplemented setting validation.
1755 - Enabled flexible boolean values: yes/no, true/false, on/off.
1756 - Added ``Values``, a subclass of ``optparse.Values``, with support
1757 for list setting attributes.
1758 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1759 thanks to Beni Cherniavsky.
1760 - Added "--no-section-numbering" option.
1764 - Catch IOErrors when opening source & destination files, report &
1765 exit without tracebacks. Added ``handle_io_errors`` parameter to
1766 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1768 * docutils/nodes.py:
1770 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1771 method definitions (via ``exec``) to dynamic assignments (via
1772 ``setattr``); thanks to Roman Suzi.
1773 - Encapsulated visitor dynamic assignments in a function; thanks to
1775 - Added indirect_reference_name attribute to the Targetable
1776 class. This attribute holds the whitespace_normalized_name
1777 (contains mixed case) of a target.
1779 * docutils/statemachine.py:
1781 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1782 - Added ``StringList.get_2D_block``.
1784 * docutils/utils.py:
1786 - Added "level" attribute to SystemMessage exceptions.
1788 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1791 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1794 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1795 Marcelo Huerta San Martin.
1797 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1798 mappings by Lalo Martins.
1800 * docutils/languages/ru.py: Added to project; Russian mappings by
1803 * docutils/parsers/rst/roles.py: Added to project. Contains
1804 interpreted text role functions, a registry for interpreted text
1805 roles, and an API for adding to and retrieving from the registry.
1806 Contributed by Edward Loper.
1808 * docutils/parsers/rst/states.py:
1810 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1811 - Allowed true em-dash character and "---" as block quote
1813 - Added support for <angle-bracketed> complex option arguments
1815 - Fixed handling of backslashes in substitution definitions.
1816 - Fixed off-by-1 error with extra whitespace after substitution
1817 definition directive.
1818 - Added inline markup parsing to field lists' field names.
1819 - Added support for quoted (and unindented) literal blocks.
1820 Driven in part by a bribe from Frank Siebenlist (thanks!).
1821 - Parser now handles escapes in URIs correctly.
1822 - Made embedded-URIs' reference text omittable. Idea from Beni
1824 - Refactored explicit target processing code.
1825 - Added name attribute to references containing the reference name only
1826 through whitespace_normalize_name (no case changes).
1827 - parse_target no longer returns the refname after going through
1828 normalize_name. This is now handled in make_target.
1829 - Fixed bug relating to role-less interpreted text in non-English
1831 - Reorganized interpreted text processing; moved code into the new
1832 roles.py module. Contributed by Edward Loper.
1833 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1834 ``parse_directive_block``.
1836 * docutils/parsers/rst/tableparser.py:
1838 - Reworked for ``StringList``, to support "include" directives in
1841 * docutils/parsers/rst/directives/__init__.py:
1843 - Renamed ``unchanged()`` directive option conversion function to
1844 ``unchanged_required``, and added a new ``unchanged``.
1845 - Catch unicode value too high error; fixes bug 781766.
1846 - Beefed up directive error reporting.
1848 * docutils/parsers/rst/directives/body.py:
1850 - Added basic "table" directive.
1852 * docutils/parsers/rst/directives/images.py:
1854 - Added "target" option to "image" directive.
1855 - Added name attribute to references containing the reference name only
1856 through whitespace_normalize_name (no case changes).
1858 * docutils/parsers/rst/directives/misc.py:
1860 - Isolated the import of the ``urllib2`` module; was causing
1861 problems on SourceForge (``libssl.so.2`` unavailable?).
1862 - Added the "role" directive for declaring custom interpreted text
1865 * docutils/parsers/rst/directives/parts.py:
1867 - The "contents" directive does more work up-front, creating the
1868 "topic" and "title", and leaving the "pending" node for the
1869 transform. Allows earlier reference resolution; fixes subtle bug.
1871 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1872 mappings by Jannie Hofmeyr.
1874 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1875 mappings by Marek Blaha.
1877 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1878 mappings by Marcelo Huerta San Martin.
1880 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1881 Portuguese mappings by Lalo Martins.
1883 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1884 mappings by Roman Suzi.
1886 * docutils/transforms/parts.py:
1888 - The "contents" directive does more work up-front, creating the
1889 "topic" and "title", and leaving the "pending" node for the
1890 transform. Allows earlier reference resolution; fixes subtle bug.
1891 - Added support for disabling of section numbering.
1893 * docutils/transforms/references.py:
1895 - Verifying that external targets are truly targets and not indirect
1896 references. This is because we are now adding a "name" attribute to
1897 references in addition to targets. Note sure if this is correct!
1898 - Added code to hook into the unknown_reference_resolvers list for a
1899 transformer in resolve_indirect_target. This allows the
1900 unknown_reference_resolvers to keep around indirect targets which
1901 docutils doesn't know about.
1902 - Added specific error message for duplicate targets.
1904 * docutils/transforms/universal.py:
1906 - Added FilterMessages transform (removes system messages below the
1907 verbosity threshold).
1908 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1909 to FinalCheckVisitor for application-specific handling of
1910 unresolvable references.
1911 - Added specific error message for duplicate targets.
1913 * docutils/writers/__init__.py:
1915 - Added assemble_parts method to the Writer class to allow for
1916 access to a documents individual parts.
1917 - Documented & set default for ``Writer.output`` attribute.
1919 * docutils/writers/html4css1.py:
1921 - Fixed unicode handling of attribute values (bug 760673).
1922 - Prevent duplication of "class" attribute values (bug report from
1924 - Improved table grid/border handling (prompted by report from Bob
1926 - Added support for table titles.
1927 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1929 - Added functionality to keep track of individual parts of a document
1930 and store them in a dictionary as the "parts" attribute of the writer.
1931 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1932 - Added proper support for the "scale" attribute of the "image"
1933 element. Contributed by Brent Cook.
1934 - Added ``--initial-header-level`` option.
1935 - Fixed bug: the body_pre_docinfo segment depended on there being a
1936 docinfo; if no docinfo, the document title was incorporated into
1937 the body segment. Adversely affected the publish_parts interface.
1939 * docutils/writers/latex2e.py:
1941 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1942 about a missing file.
1943 - Added options and support: ``--compound-enumerators``,
1944 ``--section-prefix-for-enumerators``, and
1945 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1947 - Added option ``--use-verbatim-when-possible``, to avoid
1948 problematic characters (eg, '~' in italian) in literal blocks.
1949 - It's now possible to use four section levels in the `book` and
1950 `report` LaTeX classes. The default `article` class still has
1953 * docs/config.txt: "Docutils Configuration Files", added to project.
1954 Moved config file entry descriptions from tools.txt.
1958 - Moved config file entry descriptions to config.txt.
1960 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1963 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1964 Text Roles", added to project.
1966 * spec/rst/reStructuredText.txt:
1968 - Added description of support for <angle-bracketed> complex option
1969 arguments to option lists.
1970 - Added subsections for indented and quoted literal blocks.
1972 * test: Continually adding & updating tests.
1974 - Added test/test_settings.py & test/data/config_*.txt support
1976 - Added test/test_writers/test_htmlfragment.py.
1978 * test/DocutilsTestSupport.py:
1980 - Refactored LaTeX publisher test suite/case class names to make
1981 testing other writers easier.
1982 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1983 to test the processing of HTML fragments which use the new
1984 publish_parts convenience function.
1986 * tools/buildhtml.py:
1988 - Added support for the "--prune" option.
1989 - Removed dependency on pep2html.py; plaintext PEPs no longer
1992 * tools/docutils.conf:
1994 - Updated for configuration file reorganization.
1996 * tools/rst2html.py:
1998 - copied from tools/html.py
2002 - added a 'scripts' section to configuration
2003 - added 'tools/rst2html.py' to the scripts section
2006 Release 0.3 (2003-06-24)
2007 ========================
2011 * Renamed "attribute" to "option" for directives/extensions.
2013 * Renamed transform method "transform" to "apply".
2015 * Renamed "options" to "settings" for runtime settings (as set by
2016 command-line options). Sometimes "option" (singular) became
2017 "settings" (plural). Some variations below:
2019 - document.options -> document.settings (stored in other objects as
2021 - option_spec -> settings_spec (not directives though)
2022 - OptionSpec -> SettingsSpec
2023 - cmdline_options -> settings_spec
2024 - relative_path_options -> relative_path_settings
2025 - option_default_overrides -> settings_default_overrides
2026 - Publisher.set_options -> Publisher.get_settings
2030 * COPYING.txt: Added "Public Domain Dedication".
2032 * FAQ.txt: Frequently asked questions, added to project.
2036 - Updated with PyPI Trove classifiers.
2037 - Conditional installation of third-party modules.
2039 * docutils/__init__.py:
2041 - Bumped version to 0.2.1 to reflect changes to I/O classes.
2042 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
2043 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
2044 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
2045 option and its effect on the PEP template & writer.
2046 - Bumped version to 0.2.4 due to changes to the PEP template &
2048 - Bumped version to 0.2.5 to reflect changes to Reporter output.
2049 - Added ``TransformSpec`` class for new transform system.
2050 - Bumped version to 0.2.6 for API changes (renaming).
2051 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
2052 convenience functions.
2053 - Added ``Component.component_type`` attribute.
2054 - Bumped version to 0.2.8 because of the internal parser switch from
2055 plain lists to the docutils.statemachine.StringList objects.
2056 - Bumped version to 0.2.9 because of the frontend.py API changes.
2057 - Bumped version to 0.2.10 due to changes to the project layout
2058 (third-party modules removed from the "docutils" package), and
2059 signature changes in ``io.Input``/``io.Output``.
2060 - Changed version to 0.3.0 for release.
2064 - Made ``publish()`` a bit more convenient.
2065 - Generalized ``Publisher.set_io``.
2066 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
2067 parameters; improved its docstring.
2068 - Added ``publish_file()`` and ``publish_string()``.
2069 - Factored ``Publisher.set_source()`` and ``.set_destination()``
2071 - Added support for "--dump-pseudo-xml", "--dump-settings", and
2072 "--dump-transforms" hidden options.
2073 - Added ``Publisher.apply_transforms()`` method.
2074 - Added ``Publisher.set_components()`` method; support for
2075 ``publish_*()`` conveninece functions.
2076 - Moved config file processing to docutils/frontend.py.
2077 - Added support for exit status ("exit_level" setting &
2078 ``enable_exit`` parameter for Publisher.publish() and convenience
2081 * docutils/frontend.py:
2083 - Check for & exit on identical source & destination paths.
2084 - Fixed bug with absolute paths & "--config".
2085 - Set non-command-line defaults in ``OptionParser.__init__()``:
2086 ``_source`` & ``_destination``.
2087 - Distributed ``relative_path_settings`` to components; updated
2088 ``OptionParser.populate_from_components()`` to combine it all.
2089 - Require list of keys in ``make_paths_absolute`` (was implicit in
2090 global ``relative_path_settings``).
2091 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
2092 "--dump-settings", and "--dump-transforms" hidden options.
2093 - Removed nasty internals-fiddling ``ConfigParser.get_section``
2094 code, replaced with correct code.
2095 - Added validation functionality for config files.
2096 - Added "--error-encoding" option/setting, "_disable_config"
2098 - Added encoding validation; updated "--input-encoding" and
2099 "--output-encoding"; added "--error-encoding-error-handler" and
2100 "--output-encoding-error-handler".
2101 - Moved config file processing from docutils/core.py.
2102 - Updated ``OptionParser.populate_from_components`` to handle new
2103 ``SettingsSpec.settings_defaults`` dict.
2104 - Added support for "-" => stdin/stdout.
2105 - Added "exit_level" setting ("--exit" option).
2109 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
2110 - Added automatic closing to ``FileInput`` and ``FileOutput``.
2111 - Delayed opening of ``FileOutput`` file until ``write()`` called.
2112 - ``FileOutput.write()`` now returns the encoded output string.
2113 - Try to get path/stream name automatically in ``FileInput`` &
2115 - Added defaults for source & destination paths.
2116 - Allow for Unicode I/O with an explicit "unicode" encoding.
2117 - Added ``Output.encode()``.
2118 - Removed dependency on runtime settings; pass encoding directly.
2119 - Recognize Unicode strings in ``Input.decode()``.
2120 - Added support for output encoding error handlers.
2122 * docutils/nodes.py:
2124 - Added "Invisible" element category class.
2125 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2126 modification during a traversal.
2127 - Added element classes: ``line_block``, ``generated``, ``address``,
2128 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2129 ``superscript``, ``subscript``, ``inline``
2130 - Added support for lists of nodes to ``Element.insert()``.
2131 - Fixed parent linking in ``Element.replace()``.
2132 - Added new abstract superclass ``FixedTextElement``; adds
2133 "xml:space" attribute.
2134 - Added support for "line" attribute of ``system_message`` nodes.
2135 - Added support for the observer pattern from ``utils.Reporter``.
2136 Added ``parse_messages`` and ``transform_messages`` attributes to
2137 ``document``, removed ``messages``. Added ``note_parse_message``
2138 and ``note_transform_message`` methods.
2139 - Added support for improved diagnostics:
2141 - Added "document", "source", and "line" internal attributes to
2142 ``Node``, set by ``Node.setup_child()``.
2143 - Converted variations on ``node.parent = self`` to
2144 ``self.setup_child(node)``.
2145 - Added ``document.current_source`` & ``.current_line``
2146 attributes, and ``.note_source`` observer method.
2147 - Changed "system_message" output to GNU-Tools format.
2149 - Added a "rawsource" attribute to the ``Text`` class, for text
2150 before backslash-escape resolution.
2151 - Support for new transform system.
2152 - Reworked ``pending`` element.
2153 - Fixed XML DOM bug (SF #660611).
2154 - Removed the ``interpeted`` element class and added
2155 ``title_reference``, ``abbreviation``, ``acronym``.
2156 - Made substitutions case-sensitive-but-forgiving; moved some code
2158 - Fixed Unicode bug on element attributes (report: William Dode).
2160 * docutils/optik.py: Removed from project; replaced with
2161 extras/optparse.py and extras/textwrap.py. These will be installed
2162 only if they're not already present in the Python installation.
2164 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2165 only if it's not already present in the Python installation.
2167 * docutils/statemachine.py:
2169 - Factored out ``State.add_initial_transitions()`` so it can be
2171 - Converted whitespace-specific "blank" and "indent" transitions
2172 from special-case code to ordinary transitions: removed
2173 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2174 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2175 ``ws_initial_transitions`` attributes.
2176 - Removed ``State.match_transition()`` after merging it into
2178 - Added ``StateCorrection`` exception.
2179 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2180 (moved ``TransitionCorrection`` support there too.)
2181 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2182 ``EOFError`` instead of ``IndexError``.
2183 - Added ``State.no_match`` method.
2184 - Added support for the Observer pattern, triggered by input line
2186 - Added ``strip_top`` parameter to
2187 ``StateMachineWS.get_first_known_indented``.
2188 - Made ``context`` a parameter to ``StateMachine.run()``.
2189 - Added ``ViewList`` & ``StringList`` classes;
2190 ``extract_indented()`` becomes ``StringList.get_indented()``.
2191 - Added ``StateMachine.insert_input()``.
2192 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2193 thanks to) Fred Drake.
2195 * docutils/utils.py:
2197 - Added a ``source`` attribute to Reporter instances and
2198 ``system_message`` elements.
2199 - Added an observer pattern to ``utils.Reporter`` to keep track of
2201 - Fixed bugs in ``relative_path()``.
2202 - Added support for improved diagnostics.
2203 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2204 - Added support for encoding Reporter stderr output, and encoding
2206 - Reporter keeps track of the highest level system message yet
2209 * docutils/languages: Fixed bibliographic field language lookups.
2211 * docutils/languages/es.py: Added to project; Spanish mappings by
2212 Marcelo Huerta San Martin.
2214 * docutils/languages/fr.py: Added to project; French mappings by
2217 * docutils/languages/it.py: Added to project; Italian mappings by
2220 * docutils/languages/sk.py: Added to project; Slovak mappings by
2223 * docutils/parser/__init__.py:
2225 - Added ``Parser.finish_parse()`` method.
2227 * docutils/parser/rst/__init__.py:
2229 - Added options: "--pep-references", "--rfc-references",
2230 "--tab-width", "--trim-footnote-reference-space".
2232 * docutils/parsers/rst/states.py:
2234 - Changed "title under/overline too short" system messages from INFO
2235 to WARNING, and fixed its insertion location.
2236 - Fixed enumerated list item parsing to allow paragraphs & section
2237 titles to begin with enumerators.
2238 - Converted system messages to use the new "line" attribute.
2239 - Fixed a substitution reference edge case.
2240 - Added support for "--pep-references" and "--rfc-references"
2241 options; reworked ``Inliner`` code to make customization easier.
2242 - Removed field argument parsing.
2243 - Added support for short section title over/underlines.
2244 - Fixed "simple reference name" regexp to ignore text like
2245 "object.__method__"; not an anonymous reference.
2246 - Added support for improved diagnostics.
2247 - Reworked directive API, based on Dethe Elza's contribution. Added
2248 ``Body.parse_directive()``, ``.parse_directive_options()``,
2249 ``.parse_directive_arguments()`` methods.
2250 - Added ``ExtensionOptions`` class, to parse directive options
2251 without parsing field bodies. Factored
2252 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2253 ``ExtensionOptions``.
2254 - Improved definition list term/classifier parsing.
2255 - Added warnings for unknown directives.
2256 - Renamed ``Stuff`` to ``Struct``.
2257 - Now flagged as errors: transitions at the beginning or end of
2258 sections, empty sections (except title), and empty documents.
2259 - Updated for ``statemachine.StringList``.
2260 - Enabled recognition of schemeless email addresses in targets.
2261 - Added support for embedded URIs in hyperlink references.
2262 - Added backslash-escapes to inline markup end-string suffix.
2263 - Added support for correct interpreted text processing.
2264 - Fixed nested title parsing (topic, sidebar directives).
2265 - Added special processing of backslash-escaped whitespace (idea
2266 from David Abrahams).
2267 - Made substitutions case-sensitive-but-forgiving; moved some code
2268 to ``docutils.nodes``.
2269 - Added support for block quote attributions.
2270 - Added a kludge to work-around a conflict between the bubble-up
2271 parser strategy and short titles (<= 3 char-long over- &
2272 underlines). Fixes SF bug #738803 "infinite loop with multiple
2273 titles" submitted by Jason Diamond.
2274 - Added explicit interpreted text roles for standard inline markup:
2275 "emphasis", "strong", "literal".
2276 - Implemented "superscript" and "subscript" interpreted text roles.
2277 - Added initial support for "abbreviation" and "acronym" roles;
2279 - Added support for "--trim-footnote-reference-space" option.
2280 - Optional space before colons in directives & hyperlink targets.
2282 * docutils/parsers/rst/tableparser.py:
2284 - Fixed a bug that was producing unwanted empty rows in "simple"
2286 - Detect bad column spans in "simple" tables.
2288 * docutils/parsers/rst/directives: Updated all directive functions to
2291 * docutils/parsers/rst/directives/__init__.py:
2293 - Added ``flag()``, ``unchanged()``, ``path()``,
2294 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2295 directive option helper functions.
2296 - Added warnings for unknown directives.
2297 - Return ``None`` for missing directives.
2298 - Added ``register_directive()``, thanks to William Dode and Paul
2301 * docutils/parsers/rst/directives/admonitions.py:
2303 - Added "admonition" directive.
2305 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2306 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2307 "parsed-literal", "rubric", "epigraph", "highlights" and
2308 "pull-quote" directives.
2310 * docutils/parsers/rst/directives/images.py:
2312 - Added an "align" attribute to the "image" & "figure" directives
2313 (by Adam Chodorowski).
2314 - Added "class" option to "image", and "figclass" to "figure".
2316 * docutils/parsers/rst/directives/misc.py:
2318 - Added "include", "raw", and "replace" directives, courtesy of
2320 - Added "unicode" and "class" directives.
2322 * docutils/parsers/rst/directives/parts.py:
2324 - Added the "sectnum" directive; by Dmitry Jemerov.
2325 - Added "class" option to "contents" directive.
2327 * docutils/parsers/rst/directives/references.py: Added to project.
2328 Contains the "target-notes" directive.
2330 * docutils/parsers/rst/languages/__init__.py:
2332 - Return ``None`` from get_language() for missing language modules.
2334 * docutils/parsers/rst/languages/de.py: Added to project; German
2335 mappings by Engelbert Gruber.
2337 * docutils/parsers/rst/languages/en.py:
2339 - Added interpreted text roles mapping.
2341 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2342 mappings by Marcelo Huerta San Martin.
2344 * docutils/parsers/rst/languages/fr.py: Added to project; French
2345 mappings by William Dode.
2347 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2348 mappings by Nicola Larosa.
2350 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2351 mappings by Miroslav Vasko.
2353 * docutils/readers/__init__.py:
2355 - Added support for the observer pattern from ``utils.Reporter``, in
2356 ``Reader.parse`` and ``Reader.transform``.
2357 - Removed ``Reader.transform()`` method.
2358 - Added default parameter values to ``Reader.__init__()`` to make
2359 instantiation easier.
2360 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2362 * docutils/readers/pep.py:
2364 - Added the ``peps.TargetNotes`` transform to the Reader.
2365 - Removed PEP & RFC reference detection code; moved to
2366 parsers/rst/states.py as options (enabled here by default).
2367 - Added support for pre-acceptance PEPs (no PEP number yet).
2368 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2371 * docutils/readers/python: Python Source Reader subpackage added to
2372 project, including preliminary versions of:
2375 - moduleparser.py: Parser for Python modules.
2377 * docutils/transforms/__init__.py:
2379 - Added ``Transformer`` class and completed transform reform.
2380 - Added unknown_reference_resolvers list for each transformer. This list holds
2381 the list of functions provided by each component of the transformer that
2382 help resolve references.
2384 * docutils/transforms/frontmatter.py:
2386 - Improved support for generic fields.
2387 - Fixed bibliographic field language lookups.
2389 * docutils/transforms/misc.py: Added to project. Miscellaneous
2392 * docutils/transforms/parts.py:
2394 - Moved the "id" attribute from TOC list items to the references
2395 (``Contents.build_contents()``).
2396 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2397 - Added "class" attribute support to ``Contents``.
2399 * docutils/transforms/peps.py:
2401 - Added ``mask_email()`` function, updating to pep2html.py's
2403 - Linked "Content-Type: text/x-rst" to PEP 12.
2404 - Added the ``TargetNotes`` PEP-specific transform.
2405 - Added ``TargetNotes.cleanup_callback``.
2406 - Added title check to ``Headers``.
2408 * docutils/transforms/references.py:
2410 - Added the ``TargetNotes`` generic transform.
2411 - Split ``Hyperlinks`` into multiple transforms.
2412 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2413 - Added check for circular indirect references.
2414 - Made substitutions case-sensitive-but-forgiving.
2416 * docutils/transforms/universal.py:
2418 - Added support for the "--expose-internal-attributes" option.
2419 - Removed ``Pending`` transform classes & data.
2421 * docutils/writers/__init__.py:
2423 - Removed ``Writer.transform()`` method.
2425 * docutils/writers/docutils-xml.py:
2427 - Added XML and doctype declarations.
2428 - Added "--no-doctype" and "--no-xml-declaration" options.
2430 * docutils/writers/html4css1.py:
2432 - "name" attributes only on these tags: a, applet, form, frame,
2434 - Added "name" attribute to <a> in section titles for Netscape 4
2435 support (bug report: Pearu Peterson).
2436 - Fixed targets (names) on footnote, citation, topic title,
2437 problematic, and system_message nodes (for Netscape 4).
2438 - Changed field names from "<td>" to "<th>".
2439 - Added "@" to "@" encoding to thwart address harvesters.
2440 - Improved the vertical whitespace optimization; ignore "invisible"
2441 nodes (targets, comments, etc.).
2442 - Improved inline literals with ``<span class="pre">`` around chunks
2443 of text and `` `` for runs of spaces.
2444 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2445 ``self.docinfo`` segments.
2446 - Added support for "line_block", "address" elements.
2447 - Improved backlinks (footnotes & system_messages).
2448 - Improved system_message output.
2449 - Redefined "--stylesheet" as containing an invariant URL, used
2450 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2452 - Added "--footnote-references" option (superscript or brackets).
2453 - Added "--compact-lists" and "--no-compact-lists" options.
2454 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2455 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2456 - Improved field list rendering.
2457 - Added Docutils version to "generator" meta tag.
2458 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2459 - Improved layout of <pre> HTML source.
2460 - Fixed attribute typo on <colspec>.
2461 - Refined XML prologue.
2462 - Support for no stylesheet.
2463 - Removed "interpreted" element support.
2464 - Added support for "title_reference", "sidebar", "attribution",
2465 "rubric", and generic "admonition" elements.
2466 - Added "--attribution" option.
2467 - Added support for "inline", "subscript", "superscript" elements.
2468 - Added initial support for "abbreviation" and "acronym";
2471 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2475 - Double quotes in literal blocks (special treatment for de/ngerman).
2476 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2477 - Added "--attribution" option.
2478 - Right align attributions.
2480 * docutils/writers/pep_html.py:
2482 - Parameterized output encoding in PEP template.
2483 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2484 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2485 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2487 - Added an override on the "--footnote-references" option.
2488 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2489 - Added Docutils version to "generator" meta tag.
2490 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2494 - Added a "silent" setting for ``buildhtml.py``.
2495 - Added a "Getting Help" section.
2496 - Rearranged the structure.
2497 - Kept up to date, with new settings, command-line options etc.
2498 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2499 - Converted settings table into a definition list.
2501 * docs/rst/quickstart.txt:
2503 - Added a table of contents.
2504 - Added feedback information.
2505 - Added mention of minimum section title underline lengths.
2506 - Removed the 4-character minimum for section title underlines.
2508 * docs/rst/quickref.html:
2510 - Added a "Getting Help" section.
2511 - Added a style to make section title backlinks more subtle.
2512 - Added mention of minimum section title underline lengths.
2513 - Removed the 4-character minimum for section title underlines.
2515 * extras: Directory added to project; contains third-party modules
2516 that Docutils depends on (optparse, textwrap, roman). These are
2517 only installed if they're not already present.
2519 * licenses: Directory added to project; contains copies of license
2520 files for non-public-domain files.
2524 - Changed the focus. It's about DTD elements: structural
2525 relationships, semantics, and external (public) attributes. Not
2526 about the element class library.
2527 - Moved some implementation-specific stuff into ``docutils.nodes``
2529 - Wrote descriptions of all common attributes and parameter
2530 entities. Filled in introductory material.
2531 - Working through the element descriptions: 55 down, 37 to go.
2532 - Removed "Representation of Horizontal Rules" to
2533 spec/rst/alternatives.txt.
2535 * spec/docutils.dtd:
2537 - Added "generated" inline element.
2538 - Added "line_block" body element.
2539 - Added "auto" attribute to "title".
2540 - Changed content models of "literal_block" and "doctest_block" to
2542 - Added ``%number;`` attribute type parameter entity.
2543 - Changed ``%structural.elements;`` to ``%section.elements``.
2544 - Updated attribute types; made more specific.
2545 - Added "address" bibliographic element.
2546 - Added "line" attribute to ``system_message`` element.
2547 - Removed "field_argument" element; "field_name" may contain
2548 multiple words and whitespace.
2549 - Changed public identifier to docutils.sf.net.
2550 - Removed "interpreted" element; added "title_reference",
2551 "abbreviation", "acronym".
2552 - Removed "refuri" attribute from "footnote_reference" and
2553 "citation_reference".
2554 - Added "sidebar", "rubric", "attribution", "admonition",
2555 "superscript", "subscript", and "inline" elements.
2557 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2559 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2561 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2563 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2566 * spec/transforms.txt: Added to project.
2568 * spec/howto: Added subdirectory, for developer how-to docs.
2570 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2571 Elza, edited & extended by David Goodger.
2573 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2576 * spec/rst/alternatives.txt:
2578 - Added "Doctree Representation of Transitions" from
2580 - Updated "Inline External Targets" & closed the debate.
2581 - Added ideas for interpreted text syntax extensions.
2582 - Added "Nested Inline Markup" section.
2584 * spec/rst/directives.txt:
2586 - Added directives: "topic", "sectnum", "target-notes",
2587 "line-block", "parsed-literal", "include", "replace", "sidebar",
2588 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2590 - Formalized descriptions of directive details.
2591 - Added an "align" attribute to the "image" & "figure" directives
2592 (by Adam Chodorowski).
2593 - Added "class" options to "topic", "sidebar", "line-block",
2594 "parsed-literal", "contents", and "image"; and "figclass" to
2597 * spec/rst/interpreted.txt: Added to project. Descriptions of
2598 interpreted text roles.
2600 * spec/rst/introduction.txt:
2602 - Added pointers to material for new users.
2604 * spec/rst/reStructuredText.txt:
2606 - Disambiguated comments (just add a newline after the "::").
2607 - Updated enumerated list description; added a discussion of the
2608 second-line validity checking.
2609 - Updated directive description.
2610 - Added a note redirecting newbies to the user docs.
2611 - Expanded description of inline markup start-strings in non-markup
2613 - Removed field arguments and made field lists a generic construct.
2614 - Removed the 4-character minimum for section title underlines.
2615 - Clarified term/classifier delimiter & inline markup ambiguity
2617 - Added "Embedded URIs".
2618 - Updated "Interpreted Text" section.
2619 - Added "Character-Level Inline Markup" section.
2621 * test: Continually adding & updating tests.
2623 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2624 - Moved test/test_pep/ to test/test_readers/test_pep/.
2625 - Added test/test_readers/test_python/.
2626 - Added test/test_writers/ (Engelbert Gruber).
2630 - Made the ``locale.setlocale()`` calls in front ends
2633 * tools/buildhtml.py:
2635 - Added "--silent" option.
2636 - Fixed bug with absolute paths & "--config".
2637 - Updated for new I/O classes.
2638 - Added some exception handling.
2639 - Separated publishers' setting defaults; prevents interference.
2640 - Updated for new ``publish_file()`` convenience function.
2642 * tools/pep-html-template:
2644 - Allow for "--embed-stylesheet".
2645 - Added Docutils version to "generator" meta tag.
2646 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2647 - Conform to XHTML spec.
2649 * tools/pep2html.py:
2651 - Made ``argv`` a parameter to ``main()``.
2652 - Added support for "Content-Type:" header & arbitrary PEP formats.
2653 - Linked "Content-Type: text/plain" to PEP 9.
2654 - Files skipped (due to an error) are not pushed onto the server.
2655 - Updated for new I/O classes.
2656 - Added ``check_requirements()`` & ``pep_type_error()``.
2657 - Added some exception handling.
2658 - Updated for new ``publish_string()`` convenience function.
2659 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2661 * tools/quicktest.py:
2663 - Added "-V"/"--version" option.
2665 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2667 * tools/unicode2rstsubs.py: Added to project. Produces character
2668 entity files (reSructuredText substitutions) from the MathML master
2671 * tools/editors: Support code for editors, added to project. Contains
2672 ``emacs/restructuredtext.el``.
2674 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2676 - Added style for chunks of inline literals.
2677 - Removed margin for first child of table cells.
2678 - Right-aligned field list names.
2679 - Support for auto-numbered section titles in TOCs.
2680 - Increased the size of inline literals (<tt>) in titles.
2681 - Restored the light gray background for inline literals.
2682 - Added support for "line_block" elements.
2683 - Added style for "address" elements.
2684 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2685 - Improved field list rendering.
2686 - Vertical whitespace improvements.
2687 - Removed "a.target" style.
2689 * tools/stylesheets/pep.css:
2691 - Fixed nested section margins.
2692 - Other changes parallel those of ``../default.css``.
2695 Release 0.2 (2002-07-31)
2696 ========================
2700 - The word "component" was being used ambiguously. From now on,
2701 "component" will be used to mean "Docutils component", as in Reader,
2702 Writer, Parser, or Transform. Portions of documents (Table of
2703 Contents, sections, etc.) will be called "document parts".
2704 - Did a grand renaming: a lot of ``verylongnames`` became
2705 ``very_long_names``.
2706 - Cleaned up imports: no more relative package imports or
2707 comma-separated lists of top-level modules.
2708 - Added support for an option values object which carries default
2709 settings and overrides (from command-line options and library use).
2710 - Added internal Unicode support, and support for both input and
2712 - Added support for the ``docutils.io.IO`` class & subclasses.
2716 * docutils/__init__.py:
2718 - Added ``ApplicationError`` and ``DataError``, for use throughout
2720 - Added ``Component`` base class for Docutils components; implements
2721 the ``supports`` method.
2722 - Added ``__version__`` (thus, ``docutils.__version__``).
2726 - Removed many keyword parameters to ``Publisher.__init__()`` and
2727 ``publish()``; bundled into an option values object. Added
2728 "argv", "usage", "description", and "option_spec" parameters for
2729 command-line support.
2730 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2732 - Reworked I/O model for ``docutils.io`` wrappers.
2733 - Updated ``Publisher.set_options()``; now returns option values
2735 - Added support for configuration files (/etc/docutils.conf,
2736 ./docutils.conf, ~/.docutils).
2737 - Added ``Publisher.setup_option_parser()``.
2738 - Added default usage message and description.
2740 * docutils/frontend.py: Added to project; support for front-end
2741 (command-line) scripts. Option specifications may be augmented by
2742 components. Requires Optik (http://optik.sf.net/) for option
2743 processing (installed locally as docutils/optik.py).
2745 * docutils/io.py: Added to project; uniform API for a variety of input
2748 * docutils/nodes.py:
2750 - Added ``TreeCopyVisitor`` class.
2751 - Added a ``copy`` method to ``Node`` and subclasses.
2752 - Added a ``SkipDeparture`` exception for visitors.
2753 - Renamed ``TreePruningException`` from ``VisitorException``.
2754 - Added docstrings to ``TreePruningException``, subclasses, and
2756 - Improved docstrings.
2757 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2758 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2760 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2761 ``PreDecorative`` mixin.
2762 - Reworked the name/id bookkeeping; to ``document``, removed
2763 ``explicit_targets`` and ``implicit_targets`` attributes, added
2764 ``nametypes`` attribute and ``set_name_id_map`` method.
2765 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2767 - Added ``document.has_name()`` method.
2768 - Fixed DOM generation for list-attributes.
2769 - Added category class ``Labeled`` (used by footnotes & citations).
2770 - Added ``Element.set_class()`` method (sets "class" attribute).
2772 * docutils/optik.py: Added to project. Combined from the Optik
2773 package, with added option groups and other modifications. The use
2774 of this module is probably only temporary.
2776 * docutils/statemachine.py:
2778 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2779 - Added underscores to improve many awkward names.
2780 - In ``string2lines()``, changed whitespace normalizing translation
2781 table to regexp; restores Python 2.0 compatibility with Unicode.
2783 * docutils/urischemes.py:
2785 - Filled in some descriptions.
2786 - Added "shttp" scheme.
2788 * docutils/utils.py:
2790 - Added ``clean_rcs_keywords`` function (moved from
2791 docutils/transforms/frontmatter.py
2792 ``DocInfo.filter_rcs_keywords``).
2793 - Added underscores to improve many awkward names.
2794 - Changed names of Reporter's thresholds:
2795 warning_level -> report_level; error_level -> halt_level.
2796 - Moved ``utils.id()`` to ``nodes.make_id()``.
2797 - Added ``relative_path(source, target)``.
2799 * docutils/languages/de.py: German mappings; added to project. Thanks
2800 to Gunnar Schwant for the translations.
2802 * docutils/languages/en.py: Added "Dedication" bibliographic field
2805 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2808 * docutils/parsers/rst/states.py:
2810 - Added underscores to improve many awkward names.
2811 - Added RFC-2822 header support.
2812 - Extracted the inline parsing code from ``RSTState`` to a separate
2813 class, ``Inliner``, which will allow easy subclassing.
2814 - Made local bindings for ``memo`` container & often-used contents
2815 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2816 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2817 - Added ``MarkupMismatch`` exception; for late corrections.
2818 - Added ``-/:`` characters to inline markup's start string prefix,
2819 ``/`` to end string suffix.
2820 - Fixed a footnote bug.
2821 - Fixed a bug with literal blocks.
2822 - Applied patch from Simon Budig: simplified regexps with symbolic
2823 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2824 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2825 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2826 - Allowed non-ASCII in "simple names" (directive names, field names,
2828 - Converted ``Inliner.patterns.initial`` to be dynamically built
2829 from parts with ``build_regexp()`` function.
2830 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2831 - Updated docstrings.
2832 - Changed "table" to "grid_table"; added "simple_table" support.
2834 * docutils/parsers/rst/tableparser.py:
2836 - Changed ``TableParser`` to ``GridTableParser``.
2837 - Added ``SimpleTableParser``.
2838 - Refactored naming.
2840 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2841 a fallback language for directive names.
2843 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2844 directive to use a ``pending`` element, used only by HTML writers.
2846 * docutils/parsers/rst/directives/parts.py: Renamed from
2849 - Added "backlinks" attribute to "contents" directive.
2851 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2852 project by Adam Chodorowski.
2854 * docutils/readers/__init__.py: Gave Readers more control over
2855 choosing and instantiating Parsers.
2857 * docutils/readers/pep.py: Added to project; for PEP processing.
2859 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2860 requires a ``component`` parameter.
2862 * docutils/transforms/components.py: Added to project; transforms
2863 related to Docutils components.
2865 * docutils/transforms/frontmatter.py:
2867 - In ``DocInfo.extract_authors``, check for a single "author" in an
2868 "authors" group, and convert it to a single "author" element.
2869 - Added support for "Dedication" and generic bibliographic fields.
2871 * docutils/transforms/peps.py: Added to project; PEP-specific.
2873 * docutils/transforms/parts.py: Renamed from old components.py.
2875 - Added filter for `Contents`, to use alt-text for inline images,
2876 and to remove inline markup that doesn't make sense in the ToC.
2877 - Added "name" attribute to TOC topic depending on its title.
2878 - Added support for optional TOC backlinks.
2880 * docutils/transforms/references.py: Fixed indirect target resolution
2881 in ``Hyperlinks`` transform.
2883 * docutils/transforms/universal.py:
2885 - Changed ``Messages`` transform to properly filter out system
2886 messages below the warning threshold.
2887 - Added ``Decorations`` transform (support for ``--generator``,
2888 ``--date``, ``--time``, ``--source-link`` options).
2890 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2891 Engelbert Gruber's PDF writer.
2893 * docutils/writers/html4css1.py:
2895 - Made XHTML-compatible (switched to lowercase element & attribute
2896 names; empty tag format).
2897 - Escape double-dashes in comment text.
2898 - Improved boilerplate & modularity of output.
2899 - Exposed modular output in Writer class.
2900 - Added a "generator" meta tag to <head>.
2901 - Added support for the ``--stylesheet`` option.
2902 - Added support for ``decoration``, ``header``, and ``footer``
2904 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2905 translation table to regexp; restores Python 2.0 compatibility
2907 - Added the translator class as instance variable to the Writer, to
2908 make it easily subclassable.
2909 - Improved option list spacing (thanks to Richard Jones).
2910 - Modified field list output.
2911 - Added backlinks to footnotes & citations.
2912 - Added percentage widths to "<col>" tags (from colspec).
2913 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2914 "<span>" changed to "<var>".
2915 - Inline literals: "<code>" changed to "<tt>".
2916 - Many changes to optimize vertical space: compact simple lists etc.
2917 - Add a command-line options & directive attributes to control TOC
2918 and footnote/citation backlinks.
2919 - Added support for optional footnote/citation backlinks.
2920 - Added support for generic bibliographic fields.
2921 - Identify backrefs.
2922 - Relative URLs for stylesheet links.
2924 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2925 PEPs (subclass of ``html4css1.Writer``).
2927 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2929 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2930 of the Docutils internal doctree in XML.
2932 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2936 - Changed the title to "The Docutils Document Tree".
2937 - Added "Hyperlink Bookkeeping" section.
2939 * spec/docutils.dtd:
2941 - Added ``decoration``, ``header``, and ``footer`` elements.
2942 - Brought ``interpreted`` element in line with the parser: changed
2943 attribute "type" to "role", added "position".
2944 - Added support for generic bibliographic fields.
2946 * spec/notes.txt: Continual updates. Added "Project Policies".
2948 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2951 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2953 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2954 mailing list discussions.
2956 * spec/pep-0287.txt:
2958 - Renamed to "reStructuredText Docstring Format".
2960 - Reworked Q&A as an enumerated list.
2961 - Converted to reStructuredText format.
2963 * spec/pysource.dtd:
2965 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2967 * spec/pysource.txt: Removed from project. Moved much of its contents
2970 * spec/rst/alternatives.txt:
2972 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2973 - Added "Inline External Targets" section.
2975 * spec/rst/directives.txt:
2977 - Added "backlinks" attribute to "contents" directive.
2979 * spec/rst/problems.txt:
2981 - Updated the Enumerated List Markup discussion.
2982 - Added new alternative table markup syntaxes.
2984 * spec/rst/reStructuredText.txt:
2986 - Clarified field list usage.
2987 - Updated enumerated list description.
2988 - Clarified purpose of directives.
2989 - Added ``-/:`` characters to inline markup's start string prefix,
2990 ``/`` to end string suffix.
2991 - Updated "Authors" bibliographic field behavior.
2992 - Changed "inline hyperlink targets" to "inline internal targets".
2993 - Added "simple table" syntax to supplement the existing but
2994 newly-renamed "grid tables".
2995 - Added cautions for anonymous hyperlink use.
2996 - Added "Dedication" and generic bibliographic fields.
2998 * test: Made test modules standalone (subdirectories became packages).
3000 * test/DocutilsTestSupport.py:
3002 - Added support for PEP extensions to reStructuredText.
3003 - Added support for simple tables.
3004 - Refactored naming.
3006 * test/package_unittest.py: Renamed from UnitTestFolder.py.
3008 - Now supports true packages containing test modules
3009 (``__init__.py`` files required); fixes duplicate module name bug.
3011 * test/test_pep/: Subpackage added to project; PEP testing.
3013 * test/test_rst/test_SimpleTableParser.py: Added to project.
3017 - Updated html.py and publish.py front-end tools to use the new
3018 command-line processing facilities of ``docutils.frontend``
3019 (exposed in ``docutils.core.Publisher``), reducing each to just a
3021 - Added ``locale.setlocale()`` calls to front-end tools.
3023 * tools/buildhtml.py: Added to project; batch-generates .html from all
3024 the .txt files in directories and subdirectories.
3026 * tools/default.css:
3028 - Added support for ``header`` and ``footer`` elements.
3029 - Added styles for "Dedication" topics (biblio fields).
3031 * tools/docutils.conf: A configuration file; added to project.
3033 * tools/docutils-xml.py: Added to project.
3035 * tools/pep.py: Added to project; PEP to HTML front-end tool.
3037 * tools/pep-html-template: Added to project.
3039 * tools/pep2html.py: Added to project from Python (nondist/peps).
3040 Added support for Docutils (reStructuredText PEPs).
3042 * tools/quicktest.py:
3044 - Added the ``--attributes`` option, hacked a bit.
3045 - Added a second command-line argument (output file); cleaned up.
3047 * tools/stylesheets/: Subdirectory added to project.
3049 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
3052 Release 0.1 (2002-04-20)
3053 ========================
3055 This is the first release of Docutils, merged from the now inactive
3056 reStructuredText__ and `Docstring Processing System`__ projects. For
3057 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
3058 `DPS HISTORY`__ files.
3060 __ http://structuredtext.sourceforge.net/
3061 __ http://docstring.sourceforge.net/
3062 __ http://structuredtext.sourceforge.net/HISTORY.html
3063 __ http://docstring.sourceforge.net/HISTORY.html
3065 General changes: renamed 'dps' package to 'docutils'; renamed
3066 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
3067 the test suites (reStructuredText's test/test_states renamed to
3068 test/test_rst); and all modifications required to make it all work.
3070 * docutils/parsers/rst/states.py:
3072 - Improved diagnostic system messages for missing blank lines.
3073 - Fixed substitution_reference bug.
3079 indent-tabs-mode: nil
3080 sentence-end-double-space: t