1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: docutils-develop@lists.sourceforge.net
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
19 * docutils/writers/latex2e/__init__.py
21 - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
22 admonitions and docinfo.
24 Release 0.12 (2014-07-06)
25 =========================
27 * docs/ref/rst/directives.txt
29 - Update "math" and "csv-table" descriptions.
31 * docutils/parsers/rst/directives/images.py
33 - Fix [ 258 ] figwidth="image" generates unitless width value.
35 * docutils/parsers/rst/states.py
37 - Improve error report when a non-ASCII character is specified as
38 delimiter, quote or escape character under Python 2.
39 Fixes [ 249 ] and [ 250 ].
41 * docutils/writers/html4css1/__init__.py
43 - Don't add newline after inline math.
44 Thanks to Yury G. Kudryashov for the patch.
46 * docutils/writers/latex2e/__init__.py
48 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
49 - Apply [ 116 ] by Kirill Smelkov. Don't hardcode \large for subtitle.
51 * docutils/writers/odf_odt/__init__.py
53 - Apply patch by Jakub Wilk to fix bug [ 100 ].
55 * test/test_error_reporting.py
57 - Fix [ 223 ] by removing redundant tests we do not have control over.
61 - Apply [ 115 ] respect fixed 2to3 string literal conversion behavior.
63 Release 0.11 (2013-07-22)
64 =========================
68 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
69 - Support embedded aliases within hyperlink references.
70 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
71 language module) before global search.
75 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
77 * docutils/parsers/rst/directives/__init__.py
79 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
81 * docutils/parsers/rst/directives/images.py
83 - Apply [ 3599485 ] node source/line information for sphinx translation.
85 * docutils/parsers/rst/directives/tables.py
87 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
89 * docutils/parsers/rst/states.py
91 - Fix [ 157 ] Line block parsing doesn't like system message.
92 - Always import our local copy of roman.py (report Larry Hastings).
94 * docutils/transforms/references.py
96 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
98 * docutils/utils/__init__.py
100 - Fix [ 3596884 ] exception importing ``docutils.io``.
102 * docutils/writers/html4css1/__init__.py
104 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
105 - New setting `stylesheet_dirs`: Comma-separated list of directories
106 where stylesheets are found. Used by `stylesheet_path` when expanding
107 relative path arguments.
108 - New default for math-output_: ``HTML math.css``.
109 - Avoid repeated class declarations in html4css1 writer
110 (modified version of patch [ 104 ]).
112 .. _math-output: docs/user/config.html#math-output
114 * docutils/writers/latex2e/__init__.py
116 - Drop the simple algorithm replacing straight double quotes with
117 English typographic ones.
118 Activate the SmartQuotes_ transform if you want this feature.
119 - Fix literal use of babel shorthands (straight quote, tilde, ...).
120 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
121 - New setting `stylesheet_dirs`.
123 .. _SmartQuotes: docs/user/config.html#smart-quotes
125 * docutils/writers/manpage.py
127 - Fix [3607063] handle lines starting with a period.
128 - Fix option separating comma was bold (thanks to Bill Morris).
130 Release 0.10 (2012-12-16)
131 =========================
135 - Dropped support for Python 2.3.
136 - ``docutils/math``, ``docutils/error_reporting.py``, and
137 ``docutils/urischemes.py`` moved to the utils package.
138 - Fix [3541369] Relative __import__ also with Python 3.3.
139 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
140 and parsers for Python 2.7 up.
141 - Fix import of PIL.Image.
142 - Change default of "syntax highlight" option to "long",
143 basic syntax highlight styles for LaTeX and HTML.
147 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
148 option is ignored and will be removed in a future release.
149 - Fix Py3k error writing to stdout with encoding differing from default.
150 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
152 * docutils/parsers/rst/directives/misc.py
154 - Fix [ 3546533 ] Unicode error with `date` directive.
156 * docutils/transforms/universal.py
158 - SmartQuotes transform for typographic quotes and dashes.
160 * docutils/utils/__init__.py
162 - normalize_language_tag() now returns `BCP 47`_ conformant tags
163 with subtags separated by ``-``.
165 * docutils/writers/html4css1/__init__.py
167 - Use ``<code>`` tag for inline "code",
168 do not drop nested inline nodes (syntax highlight tokens).
169 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
170 - No line break after opening inline math tag.
172 * docutils/writers/manpage.py
174 - Apply [ 3527401 ] addmonition's don't preserve indentation
175 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
177 , docutils/writers/xetex/__init__.py
179 - Apply [ 3555160 ] ensure order of "otherlanguages".
180 - Fix section numbering by LaTeX.
182 * docutils/writers/s5_html/__init__.py
184 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
186 * docutils/writers/s5_html/docutils_xml.py
188 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
192 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
194 * tools/test/test_buildhtml.py
196 - Fix [ 3521167 ] allow running in any directory.
197 - Fix [ 3521168 ] allow running with Python 3.
200 Release 0.9.1 (2012-06-17)
201 ==========================
205 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
206 installed in the PYTHONPATH. Converted tests are now
207 stored in ``test3/``, tools no longer need conversion.
209 If you installed one of Docutils versions 0.7 ... 0.9 with
210 ``setup.py install`` under Python 3, remove the spurious
211 ``test/`` and ``tools/`` directories in the site library root.
215 - Make tests independent from the location of the ``test/`` directory.
216 - Use converted sources (from the ``build/`` directory) for tests under
221 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
225 - Fix writing binary data to sys.stdout under Python 3 (allows
226 ``rst2odt.py`` to be used with output redirection).
228 * docutils/parsers/rst/directives/misc.py
230 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
231 ``locale == C`` and 8-bit char in path argument of `include` directive.
235 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
238 Release 0.9 (2012-05-02)
239 ========================
243 - New reStructuredText "code" role and directive and "code" option
244 of the "include" directive with syntax highlighting by Pygments_.
245 - Fix parse_option_marker for option arguments containing ``=``.
246 - Fix [ 2993756 ]: import Python Imaging Library's Image module
247 via ``import PIL`` as starting with PIL 1.2,
248 "PIL lives in the PIL namespace only" (announcement__).
250 .. _Pygments: http://pygments.org/
251 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
255 - Fix [ 2971827 ] and [ 3442827 ]
256 extras/roman.py moved to docutils/utils/roman.py
258 * docutils/frontend.py
260 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
264 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
265 - `mode` argument for FileOutput avoids code replication in
267 - New exceptions InputError and OutputError for IO errors in
268 FileInput/FileOutput.
272 - No "hard" system exit on file IO errors: catch and report them in
273 `Publisher.reportException` instead. Allows handling by a calling
274 application if the configuration setting `traceback` is True.
276 * docutils/utils.py -> docutils/utils/__init__.py
278 - docutils.utils is now a package (providing a place for sub-modules)
280 .. note:: docutils/math, docutils/error_reporting.py, and
281 docutils/urischemes.py will move to the utils package in the next
282 release, too. See RELEASE-NOTES__
284 __ RELEASE-NOTES.html
286 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
287 errors recording non-ASCII filenames (fixes [ 3434355 ]).
289 - Fix relative_path() with source=None and `unicode` target.
291 * docutils/parsers/rst/states.py
293 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
294 characters and "international" quotes around inline markup.
295 - Use `field_marker` pattern to look for start of a
296 directive option block (fixes [ 3484857 ]).
298 * docutils/parsers/rst/tableparser.py
300 - Fix [ 2926161 ] for simple tables.
301 (Combining chars in grid tables still contribute to cell width.)
303 * docutils/writers/latex2e/__init__.py
305 - Support the `abbreviation` and `acronym` standard roles.
306 - Record only files required to generate the LaTeX source as dependencies.
307 - Fix handling of missing stylesheets.
308 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
309 when suppressing LaTeX section numbering.
310 - Use ``\DUtitle`` for unsupported section levels
311 - Apply [ 3512791 ] do not compare string literals with "is"
313 * docutils/writers/xetex/__init__.py
315 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
317 * docutils/writers/html4css1/__init__.py
319 - Change default for `math-output` setting to MathJax.
320 - Fix handling of missing stylesheets.
322 * docutils/writers/docutils_xml.py
324 - Use the visitor pattern with default_visit()/default_depart() methods
325 instead of minidom to facilitate special handling of selected nodes.
326 - Support raw XML (inserted as-is inside a <raw></raw> node).
328 * docutils/writers/manpage.py
330 - Do not emit comment line with trailing blank. Problematic for VCS.
332 Release 0.8.1 (2011-08-30)
333 ==========================
337 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
338 and [ 3395920 ] (correct copyright info for rst.el).
342 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
344 * docutils/writers/latex2e/__init__.py
346 - Clean up Babel language setting. Restores Sphinx compatibility.
348 Release 0.8 (2011-07-07)
349 ========================
353 - Handle language codes according to `BCP 47`_.
354 - If the specified language is not supported by Docutils,
355 warn and fall back to English.
356 - Math support: reStructuredText "math" role and directive,
357 ``math`` and ``math_block`` doctree elements.
358 - Decode command line arguments with the locale's preferred encoding
359 (to allow, e.g., ``--title=Dornröschen``).
360 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
361 - New sub-module `error_reporting`: handle encoding/decoding errors
362 when reporting exceptions.
363 - Some additions to the Docutils core are released under the 2-Clause BSD
364 license, see COPYING_ for details.
366 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
367 .. _COPYING: COPYING.html
371 - Most directives now support a "name" option that attaches a
374 - Directive content may start on the first line also when the directive
375 type accepts options.
377 * docs/dev/policies.txt:
379 - Recommend the 2-Clause BSD license
380 (http://www.spdx.org/licenses/BSD-2-Clause)
381 for code that is kept under the author's copyright.
383 * tools/buildhtml.py:
385 - Fix ``--local`` switch.
387 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
389 * docutils/writers/html4css1/__init__.py
391 - Set "lang" argument for objects with class argument
392 "language-<language tag>".
393 - New setting "math-output" with support for HTML, MathML, and LaTeX.
395 * docutils/writers/latex2e/__init__.py
397 - Fix [ 3043986 ] AttributeError using :local: with table of content.
398 - Place title data in the document preamble.
399 - Load `babel` package only if required.
400 - Update list of supported languages.
401 - New config setting "hyperref-options".
402 No hard-coded "unicode" hyperref option (clash with xetex).
403 - Set language for custom roles, paragraphs, block-quotes, and
404 line-quotes with class argument "language-<language tag>".
405 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
406 - Convert image URI to a local file path.
407 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
408 has more than one paragraph (Wolfgang Scherer).
409 - \leavevmode before longtable only when needed (prevents spurious vspace)
410 - do not advance table counter for tables without caption
412 * docutils/writers/xetex/__init__.py
414 - New writer generating LaTeX code for compiling with ``xelatex``.
416 A separate writer (inheriting from latex2e) instead of a ``--xetex``
417 option allows separate config options for XeTeX vs. LaTeX2e.
419 * docutils/writers/manpage.py
421 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
422 - Fix: vertical space cleaning for option group ``.``.
424 * tools/editors/emacs/rst.el:
426 - Fix [ 3001100 ] does not handle spaces in filenames
427 (thanks to Jakub Wilk)
431 - strip whitespace from stylesheet arguments
432 - exclude combining chars from column_width()
433 (partial fix for [ 2926161 ])
435 * docutils/parsers/rst/directives/misc.py:
437 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
442 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
443 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
445 Release 0.7 (2010-07-07)
446 ========================
450 - Fix [ 2881769 ] setup configuration.
451 - Fix [ 2788716 ] reporting problems in included files.
455 - FileInput opens files as text files with universal newline support
456 (mode "rU", configurable with the new optional argument "mode").
460 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
464 - Fix [ 2923723 ] let decode_path() tolerate path == None
466 * docutils/writers/html4css1/__init__.py
468 - Support SVG and SWF images (thanks to Stefan Rank).
469 - Generate valid XHTML for centered images with targets.
470 Use CSS classes instead of "align" tags for image alignment.
472 * docutils/writers/latex2e/__init__.py
474 - Use `transforms.writer_aux.Admonitions` to "normalize" special
476 - Use the ``\url`` command for URLs (breaks long URLs instead of
477 writing into the margin).
478 - Preserve runs of spaces in `inline literals`__.
479 - Deprecate ``figure_footnotes`` setting.
480 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
481 - New ``latex_preamble`` setting.
482 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
483 - Fix hyperlink targets (labels) for images, figures, and tables.
484 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
485 - Apply [ 2961991 ] Call hyperref with unicode option.
486 - Drop the special `output_encoding`__ default ("latin-1").
487 The Docutils wide default (usually "UTF-8") is used instead.
488 - Render inline markup in document title and subtitle.
489 - Fix numbering depth with LaTeX section numbering.
490 - Update Unicode -> LaTeX translations.
491 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
493 __ docs/ref/restructuredtext.html#inline-literals
494 __ docs/user/config.html#docutils-footnotes
495 __ docs/user/config.html#output_encoding
497 * docutils/writers/manpage.py
499 - Fix: supported attribute (thanks to peter2108).
500 - Remove trailing blanks in code (keep in sync with mercurial version).
501 - Titles level 1, that is ``.SH``, always uppercase.
502 - Apply patch from mg: literal text should be bold in man-pages.
506 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
511 - Python 3 support: copy test/ and tools/ to the build-dir
512 and convert Python sources with 2to3.
515 Release 0.6 (2009-10-11)
516 ========================
520 - Docutils is now compatible with Python versions from 2.3 up to 2.6
521 and convertible to 3.1 code.
523 + Node.__nonzero__ returns True instead of 1.
524 + use os.walk instead os.path.walk.
525 + minimize "types" module where possible.
526 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
527 + Text nodes now subclass unicode rather than UserString
528 (which is gone in python 3.0).
529 + 3.0 compatibility module docutils._compat
531 + Drop 2.2 compatibility workarounds.
532 + Drop extras/optparse.py and extras/textwrap.py
533 (stdlib modules since 2.3).
535 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
536 - Unix man page export: manpage writer moved from sandbox to Doctutils
539 - Apply [ 1719345 ] Galician translation
540 - Apply [ 1905741 ] Polish translation
541 - Apply [ 1878977 ] make_id(): deaccent characters.
542 - Apply [ 2029251 ] return nonzero when tests fail.
543 - Fix [ 1692788 ] allow UTF-8 in style sheets.
544 - Fix [ 2781629 ] support non-ASCII chars in file names.
545 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
546 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
547 - Fix [ 2821266 ] --strict option works now like --halt=info.
548 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
549 - Fix [ 1627229 ] hyperlink references in substitutions.
551 - The "newlatex" writer is orphaned.
555 - Documented Unicode characters allowed as inline markup openers,
556 closers, and delimiters.
557 - Allow units for all length specifications.
558 - Allow percent sign in "scale" argument of "figure" and "image" directives.
559 - Bugfix: The "figalign" argument of a figure now works as intended
560 (aligning the figure, not its contents).
561 - Align images with class "align-[right|center|left]"
562 (allows setting the alignment of an image in a figure).
566 - Added ``Element.__contains__`` method, for the in-operator.
568 * docutils/parsers/rst/states.py:
570 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
571 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
572 " " (non-breaking space), and "¡ ¿" openers.
574 * docutils/parsers/directives/misc.py:
576 - Added ``start-line`` and ``end-line`` options to "include"
577 directive to select a range of lines.
578 - Hard tabs in literal inclusions are replaced by spaces. This is
579 configurable via the new ``tab-width`` option of the "include" directive
580 (a negative tab-width prevents tab expansion).
584 - Add ``get_stylesheet_list`` function.
585 - Apply [ 2834836 ] print info at halt
587 * docutils/transforms/universal.py:
589 - Raise default priority of StripClasses to exclude stripped classes from
592 * docutils/writers/html4css1/__init__.py:
594 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
595 separated list of stylesheets.
596 - Address [ 1938891 ] Inline literal text creates "pre" span only when
597 needed to prevent inter-word line wraps.
598 - Use `translate` method instead of repeated `replace` calls.
599 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
600 classes to allow CSS styling that does not interfere with other
601 table-using constructs (field lists, citations, ...).
603 * docutils/writers/newlatex2e/__init__.py:
605 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
607 * docutils/writers/latex2e/__init__.py (see also
608 `<docs/user/docutils-05-compat.sty.html>`__) :
610 - Add ``--embed-stylesheet`` option.
611 - Apply [ 1474017 ] image vertical alignment is reversed.
612 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
613 - Change: has_key for dictionaries (not Nodes) to in-operator.
614 - Merge adjacent citations into one latex cite command.
615 - Failsave implementation of custom roles. LaTeX compilation now ignores
616 unknown classes instead of aborting with an error.
617 - Support custom roles based on standard roles.
618 - LaTeX packages can be used as ``--stylesheet`` arguments without
619 restriction. (A style sheet is now referenced with the ``\usepackage``
620 command, if it ends with ``.sty`` or has no extension.)
621 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
622 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
623 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
624 2005-02-04 as a configurable length unit).
625 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
626 if font-encoding is set to ''. LaTeX defaults to OT1 then.
627 - Set sub- and superscript role argument in text mode not as math.
628 Use a custom role based on sub-/superscript if you want italic shape.
629 - Shorter preamble and less dependencies: Load packages and define macros
630 only if required in the document.
631 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
632 - New custom environments and commands with optional "classes" argument.
633 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
634 - Better conformance to Docutils specifications with ``--use-latex-toc``.
635 Support for LaTeX generated ToC also with unnumbered sections.
636 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
637 section numbering by LaTeX.
638 - Use default font in admonitions and sidebar.
639 - Align of image in a figure defaults to 'center'.
640 - Bugfix: Newlines around targets and references prevent run-together
642 - Fix internal hyperlinks.
643 - Use class defaults for page margins ('typearea' now optional).
644 - Float placement made configurable, default changed to "here definitely".
645 - Typeset generic topic as "quote block with title".
646 - Use template (file and configuration option).
647 - In the default template, load cmap.sty (fix text extraction in PDF) and
648 fixltx2e.sty (LaTeX patches, \textsubscript).
649 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
650 - Use `translate` instead of repeated `replace` calls for text encoding.
651 - Hyperlinked footnotes and support for symbol footnotes and
652 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
653 - Complete pairs of binary options
654 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
655 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
657 - font-encoding: "T1" (formerly implicitely set by 'ae').
658 - use-latex-toc: true (ToC with page numbers).
659 - use-latex-footnotes: true (no mixup with figures).
661 * docutils/writers/manpage.py
663 - Do not print version at document end, this is done by the viewer.
664 - Do not print date at document end, this is done by the viewer.
665 - Fix storage of docinfo fields for none standard fields.
667 * docutils/tools/rst2man.py
669 Release 0.5 (2008-06-25)
670 ========================
672 * docutils/languages/he.py: Added to project: Hebrew mappings by
675 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
676 mappings by Meir Kriheli.
678 * docutils/frontend.py:
680 - Configuration files are now assumed and required to be
682 - Paths of applied configuration files are now recorded in the
683 runtime setting ``_config_files`` (accessible via
684 ``--dump-settings``).
685 - Added ``--strip-elements-with-class`` and ``--strip-class``
686 options (``strip_elements_with_classes`` and ``strip_classes``
691 - Added code to determine the input encoding from data: encoding
692 declarations or the presence of byte order marks (UTF-8 & UTF-16).
693 - Added support for IronPython 1.0.
697 - Added ``document.__getstate__`` method, for pickling.
699 * docutils/parsers/rst/states.py:
701 - Allow ``+`` and ``:`` in reference names.
702 - Unquoted targets beginning with an underscore (``.. __target:
703 URI``) are no longer accepted.
704 - Added support for multiple attributions in a physical block quote
705 (indented text block), dividing it into multiple logical block
707 - Added support for unicode bullets in bullet lists: "•", "‣", and
709 - Added support for new object-oriented directive interface,
710 retaining compatibility to the old functional interface.
711 - Added support for throwing ``DirectiveError``'s from within
714 * docutils/parsers/rst/__init__.py:
716 - Added ``Directive`` base class.
717 - Added ``DirectiveError`` base class.
718 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
721 * docutils/parsers/directives/:
723 - Refactored all reStructuredText directives to use the new
724 object-oriented directive interface. Errors are now (mostly)
725 thrown using the new ``DirectiveError`` class.
727 * docutils/parsers/directives/misc.py:
729 - Added ``start-after`` and ``end-before`` options to ``include``
730 directive; thanks to Stefan Rank.
732 * docutils/transforms/universal.py:
734 - Added ``StripClassesAndElements`` transform to remove from the
735 document tree all elements with classes in
736 ``settings.strip_elements_with_classes`` and all "classes"
737 attribute values in ``self.document.settings.strip_classes``.
739 * docutils/transforms/writer_aux.py:
741 - Added ``Admonitions`` transform to transform specific admonitions
742 (like ``note``, ``warning``, etc.) into generic admonitions with a
745 * docutils/writers/html4css1/__init__.py:
747 - Moved template functionality from the PEP/HTML writer here.
748 - Expanded the fragments available in the ``parts`` attribute.
749 - Moved ``id`` attributes from titles to surrounding ``div``
751 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
752 universally supported now).
753 - ``template.txt`` is now opened in text mode instead of binary mode
754 (to ensure Windows compatibility).
755 - ``a`` elements now have an "internal" or "external" class,
756 depending on reference type.
758 * docutils/writers/html4css1/template.txt: Added to project.
760 * docutils/writers/pep_html/:
762 - Moved template functionality to the HTML writer.
764 * docutils/writers/s5_html/__init__.py:
766 - Added ``view_mode`` & ``hidden_controls`` settings
767 (``--view-mode`` & ``--hidden-controls/--visible-controls``
770 * docutils/writers/latex2e/__init__.py:
772 - Add ``--literal-block-env``
773 - Fix: escaping ``%`` in href urls.
774 - Move usepackage hyperref after stylesheet inclusion.
775 - Fix: scrartcl does not have chapter but scrreprt.
776 - Add newline after ``\end{verbatim}``.
777 - Merge smaller differences from latex2e_adaptive_preamble.
778 - Add ``use-part-section``.
779 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
780 - Using leavemode option_list no longer needs to check if parent
781 is a definition list.
782 - Append ``\leavemode`` to definition list terms.
783 - No longer write visit\_/depart_definition_list_item comments to
785 - Table column width with 3 decimal places.
786 - Add table stubs support (boldfont).
787 - Add assemble_parts to writer.
788 - Add simply support for nested tables.
789 - Fix verbatim in tables if use-verbatim-when-possible.
790 - Use section commands down to subparagraph.
791 - Put ensuremath around some latin1 chars.
792 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
793 - New option ``--use-bibtex=style,db1,db2``.
794 - New option ``--reference-label`` to allow usage of LaTeX ref for
795 labels in section references.
796 - Add a label after every section to support sectionnumbers as reference
798 - Fix: bug# 1605376 rst2latex: bad options group list
799 - Remove inactive code for use_optionlist_for_option_list.
800 - Remove latex comments from option_list output.
801 - Fix: bug# 1612270 double qoutes in italian literal.
802 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
803 - Add option --use-latex-abstract.
804 - Image width unit ``px`` is translated to ``pt``.
805 - Add image height support.
806 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
808 - Fix: Do not escape underscores in citation reference labels if
809 use-latex-citations is set.
810 - Use centering instead of center for figure contents, to avoid vertical
812 - Recognize table class: borderless, nolines, booktabs, standard.
813 - Fix: Renaming contents section does not work with latex writer; SF
815 - Applied patch for custom roles with classes from Edward Loper.
816 - Fixed bug that caused crashes with more than 256 lists.
818 * docutils/writers/pep_html/__init__.py:
820 - Changed to support new python.org website structure and
823 * docs/howto/security.txt: "Deploying Docutils Securely", added to
826 * tools/buildhtml.py:
828 -- Added ``ignore`` setting to exclude a list of shell patterns
829 (default: ``.svn:CVS``).
831 * tools/editors/emacs/rst.el:
833 - Changed license to "GPL".
834 - Added ``rst-straighten-decorations`` function.
835 - The ``compile`` module is now always loaded.
836 - Added ``rst-toggle-line-block`` function.
837 - Headings consisting only of non-ASCII characters are now
838 recognized by ``rst-toc`` and ``rst-adjust``.
839 - Added font-lock support for multi-line comments where the first
840 comment line is empty.
841 - Added ``(require 'font-lock)``.
845 - Provide descriptive error message if distutils is missing.
848 Release 0.4 (2006-01-09)
849 ========================
853 - Updated the project policies for trunk/branch development &
856 * docutils/__init__.py:
858 - Added ``__version_details__`` attribute to describe code source
859 (repository/snapshot/release).
860 - Replaced ``default_transforms`` attribute of TransformSpec with
861 ``get_transforms()`` method.
865 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
866 functions, for document tree extraction and reprocessing.
870 - Added ``DocTreeInput`` class, for reprocessing existing documents.
871 - Added support for non-Unicode (e.g. binary) writer output.
875 - Re-introduced ``Targetable.indirect_reference_name``, for
876 MoinMoin/reST compatibility (removed in r3124/r3129).
877 - Added ``serial_escape`` function; escapes string values that are
878 elements of a list, for serialization. Modified Docutils-XML
879 writing (``Element._dom_node``) and pseudo-XML writing
880 (``Element.starttag``) to use ``serial_escape``.
881 - Added ``Node.deepcopy()`` method.
882 - Removed the internal lists ``document.substitution_refs``,
883 ``document.anonymous_refs``, and ``document.anonymous_targets``.
884 - Added a "container" element.
885 - Fixed bug where values of list-valued attributes of elements
886 originating from custom interpreted text roles (i.e., with custom
887 classes) were being shared between element instances. Reported by
890 * docutils/statemachine.py:
892 - Added trailing whitespace stripping to ``string2lines()``.
893 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
894 Asian double-width character support.
898 - Added ``east_asian_column_width()`` for double-width character
901 * docutils/languages/ja.py: Added to project: Japanese mappings by
904 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
905 mappings by Panjunyong.
907 * docutils/parsers/null.py: Added to project; a do-nothing parser.
909 * docutils/parsers/rst/__init__.py:
911 - Added validator to tab_width setting, with test. Closes SF bug
912 #1212515, report from Wu Wei.
914 * docutils/parsers/rst/states.py:
916 - Fixed bug with escaped colons indicating a literal block.
917 - Fixed bug with enumerated lists (SF#1254145).
918 - Backslash-escaped colons inside of field names are now allowed.
919 - Targets (implicit and explicit), anonymous hyperlink references
920 and auto-numbered footnote references inside of substitution
921 definitions are now disallowed.
922 - Fixed bug: list items with blank first lines.
923 - Fixed bug: block quote attributions with indented second lines.
924 - Added East Asian double-width character support (Python 2.4 only).
926 * docutils/parsers/rst/tableparser.py:
928 - Added East Asian double-width character support (Python 2.4 only).
930 * docutils/parsers/rst/directives/body.py:
932 - Added the "container" directive.
934 * docutils/parsers/rst/directives/misc.py:
936 - Added the "default-role", "title", and "date" directives.
937 - Added standard data file syntax to the "include" directive.
938 - Added support for "class" directive content.
940 * docutils/parsers/rst/directives/images.py:
942 - Added ``indirect_reference_name`` support for images with a target
944 - Added support for image width and height units.
945 - Fixed bug with image "target" options.
947 * docutils/parsers/rst/directives/references.py:
949 - Added "class" attribute to "target-notes" directive, for
950 footnote_reference classes.
952 * docutils/parsers/rst/include/: Directory added to project; contains
953 standard data files for the "include" directive. Initial contents:
954 character entity substitution definition sets, and a set of
955 definitions for S5/HTML presentations.
957 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
958 mappings by David Goodger.
960 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
961 Simplified Chinese mappings by Panjunyong.
963 * docutils/readers/__init__.py:
965 - Added universal.Decorations and universal.ExposeInternals
966 transforms as default transforms for all readers.
967 - Added ``ReReader`` base class for readers that reread an existing
970 * docutils/readers/doctree.py: Added to project; a reader for existing
973 * docutils/transforms/frontmatter.py:
975 - Fixed the DocInfo transform to handle SVN-style expansion of the
977 - In ``DocInfo.extract_authors``, treat the contents of "authors"
980 * docutils/transforms/misc.py:
982 - Added misc.Transitions transform, extracted from
983 universal.FinalChecks.
985 * docutils/transforms/references.py:
987 - Added references.DanglingReferences transform, extracted from
988 universal.FinalChecks.
989 - Fixed bug with doubly-indirect substitutions.
990 - Added footnote_reference classes attribute to "TargetNotes".
991 - Fixed bug with circular substitution definitions that put Docutils
992 into an infinite loop.
994 * docutils/transforms/universal.py:
996 - Added universal.ExposeInternals transform, extracted from
997 universal.FinalChecks.
998 - Removed universal.FinalChecks transform (logic has been moved to
999 several new transforms).
1000 - Fixed bug with the "expose_internals" setting and Text nodes
1001 (exposed by the "rawsource" internal attribute).
1002 - Added the universal.StripComments transform, implementation of the
1003 "strip_comments" setting.
1005 * docutils/transforms/writer_aux.py: Added to project; auxiliary
1006 transforms for writers.
1008 - Added ``Compound`` transform, which flattens compound paragraphs.
1010 * docutils/writers/: Several writer modules (html4css1.py) were
1011 converted into packages. Support modules and data files have been
1012 moved into the packages. The stylesheets for the HTML writers are
1013 now installed along with the code, the code knows where to find
1014 them, and the default is to use them (actually, to embed them).
1015 Some adjustments to configuration files may be necessary. The
1016 easiest way to obtain the new default behavior is to remove all
1017 settings whose name includes "stylesheet".
1019 * docutils/writers/__init__.py:
1021 - Added universal.Messages and universal.FilterMessages transforms
1022 as default transforms for all writers.
1023 - Added ``UnfilteredWriter`` base class for writers that pass the
1024 document tree on unchanged.
1026 * docutils/writers/docutils_xml.py:
1028 - Made ``xmlcharrefreplace`` the default output encoding error
1031 * docutils/writers/html4css1/:
1033 - Added support for image width and height units.
1034 - Made ``xmlcharrefreplace`` the default output encoding error
1036 - Made ``--embed-stylesheet`` the default rather than
1037 ``--link-stylesheet``.
1038 - Moved "id" attribute from container (section etc.) to title's <a>
1039 tag, to be on the same tag as "name".
1040 (!!! To be reverted in Docutils 0.5.)
1041 - Added vertical space between fields of field lists.
1042 - Added ``--compact-field-lists`` option to remove vertical space in
1044 - Made cloaking of email addresses with ``--cloak-email-addresses``
1046 - Fixed support for centered images.
1047 - Added support for class="compact" & class="open" lists.
1049 * docutils/writers/latex2e/:
1051 - Underscores in citekeys are no longer escaped.
1053 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1054 mapping of Unicode characters to LaTeX equivalents.
1056 * docutils/writers/s5_html/: Package added to project; writer for
1057 S5/HTML slide shows.
1059 * docs/dev/distributing.txt: Added to project; guide for distributors
1060 (package maintainers).
1062 * docs/dev/hacking.txt: Added to project; guide for developers.
1064 * docs/ref/doctree.txt:
1066 - Updated for plural attributes "classes", "ids", "names",
1068 - Added the "container" element.
1070 * docs/ref/docutils.dtd:
1072 - Updated for plural attributes "classes", "ids", "names",
1075 * docs/user/emacs.txt: Added to project; a document about Emacs
1076 support for reStructuredText and Docutils.
1078 * docs/user/links.txt: Added to project; lists of Docutils-related
1081 * docs/user/mailing-lists.txt: Added to project; information about
1082 Docutils-related mailing lists and how to access them.
1084 * docs/user/slide-shows.txt: Added to project; example of and docs for
1085 the S5/HTML writer (``rst2s5.py`` front end).
1087 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1088 Files", added to project.
1090 * test/coverage.sh: Added to project; test coverage script.
1092 * test/DocutilsTestSupport.py:
1094 - Added support for specifying runtime settings at the suite level.
1096 * test/test_functional.py:
1098 - Added the ``clear_output_directory`` function.
1099 - Added support for ``_test_more`` functions in functional test
1102 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1104 * tools/rstpep2html.py: Renamed from pep.py.
1106 * tools/dev/create_unimap.py: Added to project; script to create the
1107 docutils/writers/unimap_latex.py mapping file.
1109 * tools/dev/profile_docutils.py: Added to project; profiler script.
1111 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1113 * tools/editors/emacs/restructuredtext.el,
1114 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1115 Removed from project; the functionality is now contained in rst.el.
1117 * tools/editors/emacs/rst.el: Added to project. Added many features
1118 and fixed many bugs. See docs/user/emacs.txt for details.
1120 * tools/stylesheets: Removed from project. Stylesheets have been
1121 renamed and moved into writer packages.
1124 Release 0.3.9 (2005-05-26)
1125 ==========================
1129 - Eliminated and replaced all uses of the old string attributes
1130 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1131 new list attributes ``ids``, ``names``, ``dupnames`` and
1132 ``classes`` throughout the whole source tree.
1136 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1137 allowing for easier debugging.
1138 - In ``Publisher.publish()``, expanded the generic top-level
1141 * docutils/examples.py:
1143 - Added ``internals`` function for exploration.
1147 - Fixed ``Input.decode`` method to apply heuristics only if no
1148 encoding is explicitly given, and to provide better reporting of
1150 - The ``Input.decode`` method now removes byte order marks (BOMs)
1153 * docutils/nodes.py:
1155 - ``image`` element class changed to subclass of Element, not
1156 TextElement (it's an empty element, and cannot contain text).
1157 - Added ``attr_defaults`` dictionary for default attribute values.
1158 - Added empty list as default value for the following attributes:
1159 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1160 - Added ``document.decoration`` attribute,
1161 ``document.get_decoration`` method, and ``decoration.get_header``
1162 & ``.get_footer`` methods.
1163 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1166 * docutils/utils.py:
1168 - Removed ``docutils.utils.Reporter.categories``,
1169 ``docutils.utils.ConditionSet``, and all references to them, to
1170 simplify error reporting.
1172 * docutils/languages/nl.py: Added to project; Dutch mappings by
1175 * docutils/parsers/rst/__init__.py:
1177 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1179 * docutils/parsers/rst/states.py:
1181 - Added check for escaped at-mark to prevent email address recognition.
1182 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1184 - Allowed whitespace in paths and URLs.
1185 - Added auto-enumerated list items.
1186 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1188 - Added support for table stub columns.
1190 * docutils/parsers/rst/directives/__init__.py:
1192 - Allowed whitespace in paths (``path`` function).
1193 - Added ``uri`` directive option conversion function.
1195 * docutils/parsers/rst/directives/body.py:
1197 - Fixed illegal context bug with "topic" directive (allowed within
1198 sidebars; not within body elements).
1200 * docutils/parsers/rst/directives/images.py:
1202 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1203 - Added support for the ``file_insertion_enabled`` setting in the
1204 "figure" directive (disables "figwidth" option).
1205 - "image" directive: added checks for valid values of "align" option,
1206 depending on context. "figure" directive: added specialized
1207 "align" option and attribute on "figure" element.
1208 - Made ":figwidth: image" option of "figure" directive work again.
1209 - Fixed bug with reference names containing uppercase letters
1210 (e.g. ``Name_``) in "target" option of "image" directive.
1212 * docutils/parsers/rst/directives/misc.py:
1214 - Fixed "include" and "raw" directives to catch text decoding
1216 - Allowed whitespace in "include" & "raw" directive paths.
1217 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1218 settings in "include" & "raw" directives.
1220 * docutils/parsers/rst/directives/parts.py:
1222 - Added "header" & "footer" directives.
1223 - Fixed illegal context bug with "contents" directive (topics
1224 allowed within sidebars; not within body elements).
1226 * docutils/parsers/rst/directives/tables.py:
1228 - Added "list-table" directive.
1229 - Caught empty CSV table bug.
1230 - Added support for the ``file_insertion_enabled`` setting in the
1231 "csv-table" directive.
1232 - Added ``stub-columns`` option to "csv-table" and "list-table"
1235 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1236 mappings by Martijn Pieters.
1238 * docutils/readers/standalone.py:
1240 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1241 options to activate or deactivate the SectSubTitle transform.
1243 * docutils/transforms/frontmatter.py:
1245 - Added SectSubTitle transform to promote titles of lone
1246 subsections to subtitles.
1248 * docutils/transforms/references.py:
1250 - Fixed mislocated internal targets bug, by propagating internal
1251 targets to the next node, making use of the newly added support
1252 for multiple names and IDs.
1253 - Fixed duplicate footnote label bug.
1254 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1257 * docutils/writers/html4css1.py:
1259 - Fixed unencoded stylesheet reference bug (characters like "&" in
1260 stylesheet references).
1261 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1263 - Added support for multiple IDs per node by creating empty ``span``
1265 - Added the ``field_name_limit`` & ``option_limit`` settings &
1267 - Added support for table stub columns.
1268 - Added support for the ``align`` attribute on ``figure`` elements.
1269 - Added the ``cloak_email_addresses`` setting & support.
1270 - Added ``html_prolog``, ``html_head``, ``html_body``,
1271 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1272 ``docutils.core.publish_parts``.
1273 - Added support for section subtitles.
1275 * docutils/writers/latex2e.py:
1277 - Fixed tables starting with more than one multirow cell.
1278 - Improved --use-latex-docinfo so that organization/contact/address
1279 fields are lumped with the last author field and appear on the
1281 - Made sure the titlepage is always shown with --use-latex-docinfo,
1282 even if the document has no title.
1283 - Made sure that latex doesn't fill in today's date if no date field
1285 - Added support for section subtitles.
1287 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1288 (under development).
1290 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1292 * docs/api/publisher.txt:
1294 - Added "``publish_parts`` Details" section.
1296 * docutils/dev/repository.txt: Added to project; information about the
1297 Docutils Subversion repository.
1299 * docs/ref/docutils.dtd:
1301 - Added a ``stub`` attribute to the ``colspec`` element via the
1302 ``tbl.colspec.att`` parameter entity.
1303 - Allowed topic elements within sidebars
1304 - Added an ``align`` attribute to the ``figure`` element.
1306 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1310 Release 0.3.7 (2004-12-24)
1311 ==========================
1313 * docutils/frontend.py:
1315 - Added options: --input-encoding-error-handler,
1316 --record-dependencies, --leave-footnote-reference-space,
1318 - Added command-line and config file support for "overrides" setting
1323 - Added support for input encoding error handler.
1325 * docutils/nodes.py:
1327 - Added dispatch_visit and dispatch_departure methods to
1328 NodeVisitor; useful as a hook for Visitors.
1329 - Changed structure of ``line_block``; added ``line``.
1330 - Added ``compound`` node class.
1331 - Added a mechanism for Visitors to transitionally ignore new node
1334 * docutils/utils.py:
1336 - Moved ``escape2null`` and ``unescape`` functions from
1337 docutils/parsers/rst/states.py.
1339 * docutils/parsers/rst/roles.py:
1342 - Changed role function API: the "text" parameter now takes
1343 null-escaped interpreted text content.
1345 * docutils/parsers/rst/states.py:
1347 - Fixed bug where a "role" directive in a nested parse would crash
1348 the parser; the state machine's "language" attribute was not being
1350 - Added support for line block syntax.
1351 - Fixed directive parsing bug: argument-less directives didn't
1352 notice that arguments were present.
1353 - Removed error checking for transitions.
1354 - Added support for multiple classifiers in definition list items.
1355 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1356 - Changed role function API: the "text" parameter now takes
1357 null-escaped interpreted text content.
1358 - Empty sections and documents are allowed now.
1360 * docutils/parsers/rst/directives/__init__.py:
1362 - Added ``encoding`` directive option conversion function.
1363 - Allow multiple class names in class_option conversion function.
1365 * docutils/parsers/rst/directives/body.py:
1367 - Converted the line-block directive to use the new structure.
1368 - Extracted the old line-block functionality to the ``block``
1369 function (still used).
1370 - Added ``compound`` directive (thanks to Lea Wiemann).
1372 * docutils/parsers/rst/directives/misc.py:
1374 - Added "encoding" option to "include" and "raw" directives.
1375 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1376 - Allow multiple class names in the "class" directive.
1378 * docutils/parsers/rst/directives/parts.py:
1380 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1381 options. Thanks to Lele Gaifax.
1383 * docutils/parsers/rst/directives/tables.py:
1385 - Added "encoding" directive to "csv-table" directive.
1386 - Added workaround for lack of Unicode support in csv.py, for
1387 non-ASCII CSV input.
1389 * docutils/transforms/misc.py:
1391 - Fixed bug when multiple "class" directives are applied to a single
1393 - Enabled multiple format names for "raw" directive.
1395 * docutils/transforms/references.py:
1397 - Added support for trimming whitespace from beside substitution
1400 * docutils/transforms/universal.py:
1402 - FinalChecks now checks for illegal transitions and moves
1403 transitions between sections.
1405 * docutils/writers/html4css1.py:
1407 - HTMLTranslator.encode now converts U+00A0 to " ".
1408 - "stylesheet" and "stylesheet_path" settings are now mutually
1410 - Added support for the new line_block/line structure.
1411 - --footnote-references now overrides
1412 --trim-footnote-reference-space, if applicable.
1413 - Added support for ``compound`` elements.
1414 - Enabled multiple format names for "raw" directive.
1415 - ``<p>`` tags of a paragraph which is the only visible child of the
1416 document node are no longer stripped.
1417 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1418 new method ``should_be_compact_paragraph()``.
1419 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1421 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1422 the output if they have their ``class`` attribute set.
1423 - The whole document is now surrounded by a ``<div
1424 class="document">`` element.
1425 - Body-level images are now wrapped by their own ``<div>`` elements,
1426 with image classes copied to the wrapper, and for images which
1427 have the ``:align:`` option set, the surrounding ``<div>`` now
1428 receives a class attribute (like ``class="align-left"``).
1430 * docutils/writers/latex2e.py:
1432 - no newline after depart_term.
1433 - Added translations for some Unicode quotes.
1434 - Added option "font-encoding", made package AE the default.
1435 - "stylesheet" and "stylesheet_path" settings are now mutually
1437 - --footnote-references now overrides
1438 --trim-footnote-reference-space, if applicable.
1439 - The footnote label style now matches the footnote reference style
1440 ("brackets" or "superscript").
1441 - Added support for ``compound`` elements.
1442 - Enabled multiple format names for "raw" directive.
1444 * docs/ref/docutils.dtd:
1446 - Changed structure of the ``line_block`` element; added ``line``.
1447 - Added ``compound`` element.
1448 - Added "ltrim" and "rtrim" attributes to
1449 ``substitution_definition`` element.
1450 - Enabled multiple format names for ``raw`` element.
1451 - Enabled multiple classifiers in ``definition_list_item`` elements.
1453 * docs/ref/rst/directives.txt
1455 - Marked "line-block" as deprecated.
1456 - "Class" directive now allows multiple class names.
1457 - Added "Rationale for Class Attribute Value Conversion".
1458 - Added warning about "raw" overuse/abuse.
1460 * docs/ref/rst/restructuredtext.txt:
1462 - Added syntax for line blocks.
1463 - Definition list items may have multiple classifiers.
1465 * docs/ref/rst/roles.txt:
1469 * tools/stylesheets/default.css:
1471 - Added support for the new line_block structure.
1472 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1475 Release 0.3.5 (2004-07-29)
1476 ==========================
1480 * _`Documentation cleanup/reorganization`.
1482 - Created new subdirectories of docs/:
1484 * ``docs/user/``: introductory/tutorial material for end-users
1485 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1486 * ``docs/api/``: API reference material for client-developers
1487 * ``docs/ref/``: reference material for all groups
1488 * ``docs/howto/``: for component-developers and core-developers
1489 * ``docs/peps/``: Python Enhancement Proposals
1491 - Moved ``docs/*`` to ``docs/user/``.
1492 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1493 ``spec/`` to ``docs/dev``.
1494 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1495 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1496 - Moved ``alternatives.txt``, and ``problems.txt`` from
1497 ``spec/rst/`` to ``docs/dev/rst/``.
1498 - Moved ``reStructuredText.txt``, ``directives.txt``,
1499 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1500 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1501 ``roles.txt``, ``reStructuredText.txt`` to
1502 ``restructuredtext.txt``.
1503 - Moved ``spec/howto/`` to ``docs/howto``.
1505 In order to keep the CVS history of moved files, we supplied
1506 SourceForge with a `script for modifying the Docutils CVS
1509 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1511 After running the cleanup script:
1513 - Added ``docs/index.txt``.
1514 - Added a ``.htaccess`` file to the ``web`` module, containing
1515 redirects for all old paths to new paths. They'll preserve
1516 fragments (the "#name" part of a URL), and won't clutter up the
1517 file system, and will correct the URL in the user's browser.
1518 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1519 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1520 the "To Do" list itself in ``docs/dev/todo.txt``.
1521 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1522 section of ``docs/dev/todo.txt``.
1523 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1524 - Added "How To Report Bugs" to ``BUGS.txt``.
1525 - Went through all the sources and docs (including under web/) and
1526 updated links. Mostly done by Lea Wiemann; thanks Lea!
1527 (Still need to update links in the sandboxes.)
1531 * BUGS.txt: Added to project.
1533 * THANKS.txt: Added to project.
1535 * docutils/__init__.py:
1537 - 0.3.4: Post-release.
1541 - Added special error handling & advice for UnicodeEncodeError.
1542 - Refactored Publisher.publish (simplified exception handling &
1543 extracted debug dumps).
1544 - Renamed "enable_exit" parameter of convenience functions to
1545 "enable_exit_status".
1546 - Enabled traceback (exception propagation) by default in
1547 programmatic convenience functions.
1548 - Now publish_file and publish_cmdline convenience functions return
1549 the encoded string results in addition to their regular I/O.
1550 - Extracted common code from publish_file, publish_string, and
1551 publish_parts, into new publish_programmatically. Extracted
1552 settings code to ``Publisher.process_programmatic_settings``.
1553 - In Publisher.publish, disabled ``settings_overrides`` when
1554 ``settings`` is supplied; redundant.
1556 * docutils/frontend.py:
1558 - Added help text for "--output-encoding-error-handler" and
1559 "--error-encoding-error-handler".
1560 - Renamed "--exit" to "--exit-status".
1561 - Simplified default-setting code.
1563 * docutils/parsers/rst/__init__.py:
1565 - Added "--pep-base-url" and "--rfc-base-url" options.
1567 * docutils/parsers/rst/states.py:
1569 - Made URI recognition more aggressive and intelligent.
1571 * docutils/parsers/rst/directives/__init__.py:
1573 - Added several directive option conversion functions.
1575 * docutils/parsers/rst/directives/body.py:
1577 - Moved "table" directive to tables.py.
1579 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1582 * docutils/writers/latex2e.py:
1584 - Added "--table-style=(standard|booktabs|nolines)"
1585 - figures get "here" option (LaTeX per default puts them at bottom),
1586 and figure content is centered.
1587 - Rowspan support for tables.
1588 - Fix: admonition titles before first section.
1589 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1590 - Replave ``_`` in literal by an underlined blank, because it has the correct
1592 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1593 - A few unicode replacements, if output_encoding != utf
1594 - Add "--graphicx-option".
1595 - Indent literal-blocks.
1596 - Fix: omit ``\maketitle`` when there is no document title.
1598 * docs/index.txt: "Docutils Project Documentation Overview", added to
1601 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1602 Tool", added to project.
1604 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1606 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1608 * docs/dev/policies.txt: Added to project (extracted from
1609 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1611 * docs/dev/release.txt: Added to project (extracted from
1612 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1614 * docs/dev/testing.txt: Added to project.
1616 * docs/dev/website.txt: Added to project (extracted from
1617 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1619 * docs/ref/rst/directives.txt:
1621 - Added directives: "table", "csv-table".
1623 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1624 added to project. 1 page for syntax, and a 1 page reference for
1625 directives and roles. Source text to be used as-is; not meant to be
1628 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1629 with a change of title.
1631 * test/functional/, contents, and test/test_functional.py: Added to
1634 * tools/buildhtml.py: Fixed bug with config file handling.
1636 * tools/html.py: Removed from project (duplicate of rst2html.py).
1638 * tools/pep2html.py: Removed from project (duplicate of Python's
1639 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1640 Docutils-related PEPs in docs/peps/).
1642 * tools/rst2pseudoxml.py: Renamed from publish.py.
1644 * tools/rst2xml.py: Renamed from docutils-xml.py.
1646 * tools/test.txt: Removed from project; moved to
1647 docs/user/rst/demo.txt.
1649 * setup.py: Now also installs ``rst2latex.py``.
1652 Release 0.3.3 (2004-05-09)
1653 ==========================
1655 * docutils/__init__.py:
1657 - 0.3.1: Reorganized config file format (multiple sections); see
1659 - Added unknown_reference_resolvers attribute to TransformSpec.
1660 - 0.3.2: Interpreted text reorganization.
1665 - Catch system messages to stop tracebacks from parsing errors.
1666 - Catch exceptions during processing report & exit without
1667 tracebacks, except when "--traceback" used.
1668 - Reordered components for OptionParser; application comes last.
1669 - Added "config_section" parameter to several methods and functions,
1670 allowing front ends to easily specify their config file sections.
1671 - Added publish_parts convenience function to allow access to individual
1672 parts of a document.
1674 * docutils/examples.py: Added to project; practical examples of
1675 Docutils client code, to be used as-is or as models for variations.
1677 * docutils/frontend.py:
1679 - Added "--traceback" & "--no-traceback" options ("traceback"
1681 - Implemented support for config file reorganization:
1682 ``standard_config_files`` moved from ``ConfigParser`` to
1683 ``OptionParser``; added
1684 ``OptionParser.get_config_file_settings()`` and
1685 ``.get_standard_config_settings()``; support for old "[options]"
1686 section (with deprecation warning) and mapping from old to new
1688 - Reimplemented setting validation.
1689 - Enabled flexible boolean values: yes/no, true/false, on/off.
1690 - Added ``Values``, a subclass of ``optparse.Values``, with support
1691 for list setting attributes.
1692 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1693 thanks to Beni Cherniavsky.
1694 - Added "--no-section-numbering" option.
1698 - Catch IOErrors when opening source & destination files, report &
1699 exit without tracebacks. Added ``handle_io_errors`` parameter to
1700 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1702 * docutils/nodes.py:
1704 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1705 method definitions (via ``exec``) to dynamic assignments (via
1706 ``setattr``); thanks to Roman Suzi.
1707 - Encapsulated visitor dynamic assignments in a function; thanks to
1709 - Added indirect_reference_name attribute to the Targetable
1710 class. This attribute holds the whitespace_normalized_name
1711 (contains mixed case) of a target.
1713 * docutils/statemachine.py:
1715 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1716 - Added ``StringList.get_2D_block``.
1718 * docutils/utils.py:
1720 - Added "level" attribute to SystemMessage exceptions.
1722 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1725 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1728 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1729 Marcelo Huerta San Martin.
1731 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1732 mappings by Lalo Martins.
1734 * docutils/languages/ru.py: Added to project; Russian mappings by
1737 * docutils/parsers/rst/roles.py: Added to project. Contains
1738 interpreted text role functions, a registry for interpreted text
1739 roles, and an API for adding to and retrieving from the registry.
1740 Contributed by Edward Loper.
1742 * docutils/parsers/rst/states.py:
1744 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1745 - Allowed true em-dash character and "---" as block quote
1747 - Added support for <angle-bracketed> complex option arguments
1749 - Fixed handling of backslashes in substitution definitions.
1750 - Fixed off-by-1 error with extra whitespace after substitution
1751 definition directive.
1752 - Added inline markup parsing to field lists' field names.
1753 - Added support for quoted (and unindented) literal blocks.
1754 Driven in part by a bribe from Frank Siebenlist (thanks!).
1755 - Parser now handles escapes in URIs correctly.
1756 - Made embedded-URIs' reference text omittable. Idea from Beni
1758 - Refactored explicit target processing code.
1759 - Added name attribute to references containing the reference name only
1760 through whitespace_normalize_name (no case changes).
1761 - parse_target no longer returns the refname after going through
1762 normalize_name. This is now handled in make_target.
1763 - Fixed bug relating to role-less interpreted text in non-English
1765 - Reorganized interpreted text processing; moved code into the new
1766 roles.py module. Contributed by Edward Loper.
1767 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1768 ``parse_directive_block``.
1770 * docutils/parsers/rst/tableparser.py:
1772 - Reworked for ``StringList``, to support "include" directives in
1775 * docutils/parsers/rst/directives/__init__.py:
1777 - Renamed ``unchanged()`` directive option conversion function to
1778 ``unchanged_required``, and added a new ``unchanged``.
1779 - Catch unicode value too high error; fixes bug 781766.
1780 - Beefed up directive error reporting.
1782 * docutils/parsers/rst/directives/body.py:
1784 - Added basic "table" directive.
1786 * docutils/parsers/rst/directives/images.py:
1788 - Added "target" option to "image" directive.
1789 - Added name attribute to references containing the reference name only
1790 through whitespace_normalize_name (no case changes).
1792 * docutils/parsers/rst/directives/misc.py:
1794 - Isolated the import of the ``urllib2`` module; was causing
1795 problems on SourceForge (``libssl.so.2`` unavailable?).
1796 - Added the "role" directive for declaring custom interpreted text
1799 * docutils/parsers/rst/directives/parts.py:
1801 - The "contents" directive does more work up-front, creating the
1802 "topic" and "title", and leaving the "pending" node for the
1803 transform. Allows earlier reference resolution; fixes subtle bug.
1805 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1806 mappings by Jannie Hofmeyr.
1808 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1809 mappings by Marek Blaha.
1811 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1812 mappings by Marcelo Huerta San Martin.
1814 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1815 Portuguese mappings by Lalo Martins.
1817 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1818 mappings by Roman Suzi.
1820 * docutils/transforms/parts.py:
1822 - The "contents" directive does more work up-front, creating the
1823 "topic" and "title", and leaving the "pending" node for the
1824 transform. Allows earlier reference resolution; fixes subtle bug.
1825 - Added support for disabling of section numbering.
1827 * docutils/transforms/references.py:
1829 - Verifying that external targets are truly targets and not indirect
1830 references. This is because we are now adding a "name" attribute to
1831 references in addition to targets. Note sure if this is correct!
1832 - Added code to hook into the unknown_reference_resolvers list for a
1833 transformer in resolve_indirect_target. This allows the
1834 unknown_reference_resolvers to keep around indirect targets which
1835 docutils doesn't know about.
1836 - Added specific error message for duplicate targets.
1838 * docutils/transforms/universal.py:
1840 - Added FilterMessages transform (removes system messages below the
1841 verbosity threshold).
1842 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1843 to FinalCheckVisitor for application-specific handling of
1844 unresolvable references.
1845 - Added specific error message for duplicate targets.
1847 * docutils/writers/__init__.py:
1849 - Added assemble_parts method to the Writer class to allow for
1850 access to a documents individual parts.
1851 - Documented & set default for ``Writer.output`` attribute.
1853 * docutils/writers/html4css1.py:
1855 - Fixed unicode handling of attribute values (bug 760673).
1856 - Prevent duplication of "class" attribute values (bug report from
1858 - Improved table grid/border handling (prompted by report from Bob
1860 - Added support for table titles.
1861 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1863 - Added functionality to keep track of individual parts of a document
1864 and store them in a dictionary as the "parts" attribute of the writer.
1865 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1866 - Added proper support for the "scale" attribute of the "image"
1867 element. Contributed by Brent Cook.
1868 - Added ``--initial-header-level`` option.
1869 - Fixed bug: the body_pre_docinfo segment depended on there being a
1870 docinfo; if no docinfo, the document title was incorporated into
1871 the body segment. Adversely affected the publish_parts interface.
1873 * docutils/writers/latex2e.py:
1875 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1876 about a missing file.
1877 - Added options and support: ``--compound-enumerators``,
1878 ``--section-prefix-for-enumerators``, and
1879 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1881 - Added option ``--use-verbatim-when-possible``, to avoid
1882 problematic characters (eg, '~' in italian) in literal blocks.
1883 - It's now possible to use four section levels in the `book` and
1884 `report` LaTeX classes. The default `article` class still has
1887 * docs/config.txt: "Docutils Configuration Files", added to project.
1888 Moved config file entry descriptions from tools.txt.
1892 - Moved config file entry descriptions to config.txt.
1894 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1897 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1898 Text Roles", added to project.
1900 * spec/rst/reStructuredText.txt:
1902 - Added description of support for <angle-bracketed> complex option
1903 arguments to option lists.
1904 - Added subsections for indented and quoted literal blocks.
1906 * test: Continually adding & updating tests.
1908 - Added test/test_settings.py & test/data/config_*.txt support
1910 - Added test/test_writers/test_htmlfragment.py.
1912 * test/DocutilsTestSupport.py:
1914 - Refactored LaTeX publisher test suite/case class names to make
1915 testing other writers easier.
1916 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1917 to test the processing of HTML fragments which use the new
1918 publish_parts convenience function.
1920 * tools/buildhtml.py:
1922 - Added support for the "--prune" option.
1923 - Removed dependency on pep2html.py; plaintext PEPs no longer
1926 * tools/docutils.conf:
1928 - Updated for configuration file reorganization.
1930 * tools/rst2html.py:
1932 - copied from tools/html.py
1936 - added a 'scripts' section to configuration
1937 - added 'tools/rst2html.py' to the scripts section
1940 Release 0.3 (2003-06-24)
1941 ========================
1945 * Renamed "attribute" to "option" for directives/extensions.
1947 * Renamed transform method "transform" to "apply".
1949 * Renamed "options" to "settings" for runtime settings (as set by
1950 command-line options). Sometimes "option" (singular) became
1951 "settings" (plural). Some variations below:
1953 - document.options -> document.settings (stored in other objects as
1955 - option_spec -> settings_spec (not directives though)
1956 - OptionSpec -> SettingsSpec
1957 - cmdline_options -> settings_spec
1958 - relative_path_options -> relative_path_settings
1959 - option_default_overrides -> settings_default_overrides
1960 - Publisher.set_options -> Publisher.get_settings
1964 * COPYING.txt: Added "Public Domain Dedication".
1966 * FAQ.txt: Frequently asked questions, added to project.
1970 - Updated with PyPI Trove classifiers.
1971 - Conditional installation of third-party modules.
1973 * docutils/__init__.py:
1975 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1976 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1977 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1978 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1979 option and its effect on the PEP template & writer.
1980 - Bumped version to 0.2.4 due to changes to the PEP template &
1982 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1983 - Added ``TransformSpec`` class for new transform system.
1984 - Bumped version to 0.2.6 for API changes (renaming).
1985 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1986 convenience functions.
1987 - Added ``Component.component_type`` attribute.
1988 - Bumped version to 0.2.8 because of the internal parser switch from
1989 plain lists to the docutils.statemachine.StringList objects.
1990 - Bumped version to 0.2.9 because of the frontend.py API changes.
1991 - Bumped version to 0.2.10 due to changes to the project layout
1992 (third-party modules removed from the "docutils" package), and
1993 signature changes in ``io.Input``/``io.Output``.
1994 - Changed version to 0.3.0 for release.
1998 - Made ``publish()`` a bit more convenient.
1999 - Generalized ``Publisher.set_io``.
2000 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
2001 parameters; improved its docstring.
2002 - Added ``publish_file()`` and ``publish_string()``.
2003 - Factored ``Publisher.set_source()`` and ``.set_destination()``
2005 - Added support for "--dump-pseudo-xml", "--dump-settings", and
2006 "--dump-transforms" hidden options.
2007 - Added ``Publisher.apply_transforms()`` method.
2008 - Added ``Publisher.set_components()`` method; support for
2009 ``publish_*()`` conveninece functions.
2010 - Moved config file processing to docutils/frontend.py.
2011 - Added support for exit status ("exit_level" setting &
2012 ``enable_exit`` parameter for Publisher.publish() and convenience
2015 * docutils/frontend.py:
2017 - Check for & exit on identical source & destination paths.
2018 - Fixed bug with absolute paths & "--config".
2019 - Set non-command-line defaults in ``OptionParser.__init__()``:
2020 ``_source`` & ``_destination``.
2021 - Distributed ``relative_path_settings`` to components; updated
2022 ``OptionParser.populate_from_components()`` to combine it all.
2023 - Require list of keys in ``make_paths_absolute`` (was implicit in
2024 global ``relative_path_settings``).
2025 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
2026 "--dump-settings", and "--dump-transforms" hidden options.
2027 - Removed nasty internals-fiddling ``ConfigParser.get_section``
2028 code, replaced with correct code.
2029 - Added validation functionality for config files.
2030 - Added "--error-encoding" option/setting, "_disable_config"
2032 - Added encoding validation; updated "--input-encoding" and
2033 "--output-encoding"; added "--error-encoding-error-handler" and
2034 "--output-encoding-error-handler".
2035 - Moved config file processing from docutils/core.py.
2036 - Updated ``OptionParser.populate_from_components`` to handle new
2037 ``SettingsSpec.settings_defaults`` dict.
2038 - Added support for "-" => stdin/stdout.
2039 - Added "exit_level" setting ("--exit" option).
2043 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
2044 - Added automatic closing to ``FileInput`` and ``FileOutput``.
2045 - Delayed opening of ``FileOutput`` file until ``write()`` called.
2046 - ``FileOutput.write()`` now returns the encoded output string.
2047 - Try to get path/stream name automatically in ``FileInput`` &
2049 - Added defaults for source & destination paths.
2050 - Allow for Unicode I/O with an explicit "unicode" encoding.
2051 - Added ``Output.encode()``.
2052 - Removed dependency on runtime settings; pass encoding directly.
2053 - Recognize Unicode strings in ``Input.decode()``.
2054 - Added support for output encoding error handlers.
2056 * docutils/nodes.py:
2058 - Added "Invisible" element category class.
2059 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2060 modification during a traversal.
2061 - Added element classes: ``line_block``, ``generated``, ``address``,
2062 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2063 ``superscript``, ``subscript``, ``inline``
2064 - Added support for lists of nodes to ``Element.insert()``.
2065 - Fixed parent linking in ``Element.replace()``.
2066 - Added new abstract superclass ``FixedTextElement``; adds
2067 "xml:space" attribute.
2068 - Added support for "line" attribute of ``system_message`` nodes.
2069 - Added support for the observer pattern from ``utils.Reporter``.
2070 Added ``parse_messages`` and ``transform_messages`` attributes to
2071 ``document``, removed ``messages``. Added ``note_parse_message``
2072 and ``note_transform_message`` methods.
2073 - Added support for improved diagnostics:
2075 - Added "document", "source", and "line" internal attributes to
2076 ``Node``, set by ``Node.setup_child()``.
2077 - Converted variations on ``node.parent = self`` to
2078 ``self.setup_child(node)``.
2079 - Added ``document.current_source`` & ``.current_line``
2080 attributes, and ``.note_source`` observer method.
2081 - Changed "system_message" output to GNU-Tools format.
2083 - Added a "rawsource" attribute to the ``Text`` class, for text
2084 before backslash-escape resolution.
2085 - Support for new transform system.
2086 - Reworked ``pending`` element.
2087 - Fixed XML DOM bug (SF #660611).
2088 - Removed the ``interpeted`` element class and added
2089 ``title_reference``, ``abbreviation``, ``acronym``.
2090 - Made substitutions case-sensitive-but-forgiving; moved some code
2092 - Fixed Unicode bug on element attributes (report: William Dode).
2094 * docutils/optik.py: Removed from project; replaced with
2095 extras/optparse.py and extras/textwrap.py. These will be installed
2096 only if they're not already present in the Python installation.
2098 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2099 only if it's not already present in the Python installation.
2101 * docutils/statemachine.py:
2103 - Factored out ``State.add_initial_transitions()`` so it can be
2105 - Converted whitespace-specific "blank" and "indent" transitions
2106 from special-case code to ordinary transitions: removed
2107 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2108 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2109 ``ws_initial_transitions`` attributes.
2110 - Removed ``State.match_transition()`` after merging it into
2112 - Added ``StateCorrection`` exception.
2113 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2114 (moved ``TransitionCorrection`` support there too.)
2115 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2116 ``EOFError`` instead of ``IndexError``.
2117 - Added ``State.no_match`` method.
2118 - Added support for the Observer pattern, triggered by input line
2120 - Added ``strip_top`` parameter to
2121 ``StateMachineWS.get_first_known_indented``.
2122 - Made ``context`` a parameter to ``StateMachine.run()``.
2123 - Added ``ViewList`` & ``StringList`` classes;
2124 ``extract_indented()`` becomes ``StringList.get_indented()``.
2125 - Added ``StateMachine.insert_input()``.
2126 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2127 thanks to) Fred Drake.
2129 * docutils/utils.py:
2131 - Added a ``source`` attribute to Reporter instances and
2132 ``system_message`` elements.
2133 - Added an observer pattern to ``utils.Reporter`` to keep track of
2135 - Fixed bugs in ``relative_path()``.
2136 - Added support for improved diagnostics.
2137 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2138 - Added support for encoding Reporter stderr output, and encoding
2140 - Reporter keeps track of the highest level system message yet
2143 * docutils/languages: Fixed bibliographic field language lookups.
2145 * docutils/languages/es.py: Added to project; Spanish mappings by
2146 Marcelo Huerta San Martin.
2148 * docutils/languages/fr.py: Added to project; French mappings by
2151 * docutils/languages/it.py: Added to project; Italian mappings by
2154 * docutils/languages/sk.py: Added to project; Slovak mappings by
2157 * docutils/parser/__init__.py:
2159 - Added ``Parser.finish_parse()`` method.
2161 * docutils/parser/rst/__init__.py:
2163 - Added options: "--pep-references", "--rfc-references",
2164 "--tab-width", "--trim-footnote-reference-space".
2166 * docutils/parsers/rst/states.py:
2168 - Changed "title under/overline too short" system messages from INFO
2169 to WARNING, and fixed its insertion location.
2170 - Fixed enumerated list item parsing to allow paragraphs & section
2171 titles to begin with enumerators.
2172 - Converted system messages to use the new "line" attribute.
2173 - Fixed a substitution reference edge case.
2174 - Added support for "--pep-references" and "--rfc-references"
2175 options; reworked ``Inliner`` code to make customization easier.
2176 - Removed field argument parsing.
2177 - Added support for short section title over/underlines.
2178 - Fixed "simple reference name" regexp to ignore text like
2179 "object.__method__"; not an anonymous reference.
2180 - Added support for improved diagnostics.
2181 - Reworked directive API, based on Dethe Elza's contribution. Added
2182 ``Body.parse_directive()``, ``.parse_directive_options()``,
2183 ``.parse_directive_arguments()`` methods.
2184 - Added ``ExtensionOptions`` class, to parse directive options
2185 without parsing field bodies. Factored
2186 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2187 ``ExtensionOptions``.
2188 - Improved definition list term/classifier parsing.
2189 - Added warnings for unknown directives.
2190 - Renamed ``Stuff`` to ``Struct``.
2191 - Now flagged as errors: transitions at the beginning or end of
2192 sections, empty sections (except title), and empty documents.
2193 - Updated for ``statemachine.StringList``.
2194 - Enabled recognition of schemeless email addresses in targets.
2195 - Added support for embedded URIs in hyperlink references.
2196 - Added backslash-escapes to inline markup end-string suffix.
2197 - Added support for correct interpreted text processing.
2198 - Fixed nested title parsing (topic, sidebar directives).
2199 - Added special processing of backslash-escaped whitespace (idea
2200 from David Abrahams).
2201 - Made substitutions case-sensitive-but-forgiving; moved some code
2202 to ``docutils.nodes``.
2203 - Added support for block quote attributions.
2204 - Added a kludge to work-around a conflict between the bubble-up
2205 parser strategy and short titles (<= 3 char-long over- &
2206 underlines). Fixes SF bug #738803 "infinite loop with multiple
2207 titles" submitted by Jason Diamond.
2208 - Added explicit interpreted text roles for standard inline markup:
2209 "emphasis", "strong", "literal".
2210 - Implemented "superscript" and "subscript" interpreted text roles.
2211 - Added initial support for "abbreviation" and "acronym" roles;
2213 - Added support for "--trim-footnote-reference-space" option.
2214 - Optional space before colons in directives & hyperlink targets.
2216 * docutils/parsers/rst/tableparser.py:
2218 - Fixed a bug that was producing unwanted empty rows in "simple"
2220 - Detect bad column spans in "simple" tables.
2222 * docutils/parsers/rst/directives: Updated all directive functions to
2225 * docutils/parsers/rst/directives/__init__.py:
2227 - Added ``flag()``, ``unchanged()``, ``path()``,
2228 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2229 directive option helper functions.
2230 - Added warnings for unknown directives.
2231 - Return ``None`` for missing directives.
2232 - Added ``register_directive()``, thanks to William Dode and Paul
2235 * docutils/parsers/rst/directives/admonitions.py:
2237 - Added "admonition" directive.
2239 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2240 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2241 "parsed-literal", "rubric", "epigraph", "highlights" and
2242 "pull-quote" directives.
2244 * docutils/parsers/rst/directives/images.py:
2246 - Added an "align" attribute to the "image" & "figure" directives
2247 (by Adam Chodorowski).
2248 - Added "class" option to "image", and "figclass" to "figure".
2250 * docutils/parsers/rst/directives/misc.py:
2252 - Added "include", "raw", and "replace" directives, courtesy of
2254 - Added "unicode" and "class" directives.
2256 * docutils/parsers/rst/directives/parts.py:
2258 - Added the "sectnum" directive; by Dmitry Jemerov.
2259 - Added "class" option to "contents" directive.
2261 * docutils/parsers/rst/directives/references.py: Added to project.
2262 Contains the "target-notes" directive.
2264 * docutils/parsers/rst/languages/__init__.py:
2266 - Return ``None`` from get_language() for missing language modules.
2268 * docutils/parsers/rst/languages/de.py: Added to project; German
2269 mappings by Engelbert Gruber.
2271 * docutils/parsers/rst/languages/en.py:
2273 - Added interpreted text roles mapping.
2275 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2276 mappings by Marcelo Huerta San Martin.
2278 * docutils/parsers/rst/languages/fr.py: Added to project; French
2279 mappings by William Dode.
2281 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2282 mappings by Nicola Larosa.
2284 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2285 mappings by Miroslav Vasko.
2287 * docutils/readers/__init__.py:
2289 - Added support for the observer pattern from ``utils.Reporter``, in
2290 ``Reader.parse`` and ``Reader.transform``.
2291 - Removed ``Reader.transform()`` method.
2292 - Added default parameter values to ``Reader.__init__()`` to make
2293 instantiation easier.
2294 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2296 * docutils/readers/pep.py:
2298 - Added the ``peps.TargetNotes`` transform to the Reader.
2299 - Removed PEP & RFC reference detection code; moved to
2300 parsers/rst/states.py as options (enabled here by default).
2301 - Added support for pre-acceptance PEPs (no PEP number yet).
2302 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2305 * docutils/readers/python: Python Source Reader subpackage added to
2306 project, including preliminary versions of:
2309 - moduleparser.py: Parser for Python modules.
2311 * docutils/transforms/__init__.py:
2313 - Added ``Transformer`` class and completed transform reform.
2314 - Added unknown_reference_resolvers list for each transformer. This list holds
2315 the list of functions provided by each component of the transformer that
2316 help resolve references.
2318 * docutils/transforms/frontmatter.py:
2320 - Improved support for generic fields.
2321 - Fixed bibliographic field language lookups.
2323 * docutils/transforms/misc.py: Added to project. Miscellaneous
2326 * docutils/transforms/parts.py:
2328 - Moved the "id" attribute from TOC list items to the references
2329 (``Contents.build_contents()``).
2330 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2331 - Added "class" attribute support to ``Contents``.
2333 * docutils/transforms/peps.py:
2335 - Added ``mask_email()`` function, updating to pep2html.py's
2337 - Linked "Content-Type: text/x-rst" to PEP 12.
2338 - Added the ``TargetNotes`` PEP-specific transform.
2339 - Added ``TargetNotes.cleanup_callback``.
2340 - Added title check to ``Headers``.
2342 * docutils/transforms/references.py:
2344 - Added the ``TargetNotes`` generic transform.
2345 - Split ``Hyperlinks`` into multiple transforms.
2346 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2347 - Added check for circular indirect references.
2348 - Made substitutions case-sensitive-but-forgiving.
2350 * docutils/transforms/universal.py:
2352 - Added support for the "--expose-internal-attributes" option.
2353 - Removed ``Pending`` transform classes & data.
2355 * docutils/writers/__init__.py:
2357 - Removed ``Writer.transform()`` method.
2359 * docutils/writers/docutils-xml.py:
2361 - Added XML and doctype declarations.
2362 - Added "--no-doctype" and "--no-xml-declaration" options.
2364 * docutils/writers/html4css1.py:
2366 - "name" attributes only on these tags: a, applet, form, frame,
2368 - Added "name" attribute to <a> in section titles for Netscape 4
2369 support (bug report: Pearu Peterson).
2370 - Fixed targets (names) on footnote, citation, topic title,
2371 problematic, and system_message nodes (for Netscape 4).
2372 - Changed field names from "<td>" to "<th>".
2373 - Added "@" to "@" encoding to thwart address harvesters.
2374 - Improved the vertical whitespace optimization; ignore "invisible"
2375 nodes (targets, comments, etc.).
2376 - Improved inline literals with ``<span class="pre">`` around chunks
2377 of text and `` `` for runs of spaces.
2378 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2379 ``self.docinfo`` segments.
2380 - Added support for "line_block", "address" elements.
2381 - Improved backlinks (footnotes & system_messages).
2382 - Improved system_message output.
2383 - Redefined "--stylesheet" as containing an invariant URL, used
2384 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2386 - Added "--footnote-references" option (superscript or brackets).
2387 - Added "--compact-lists" and "--no-compact-lists" options.
2388 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2389 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2390 - Improved field list rendering.
2391 - Added Docutils version to "generator" meta tag.
2392 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2393 - Improved layout of <pre> HTML source.
2394 - Fixed attribute typo on <colspec>.
2395 - Refined XML prologue.
2396 - Support for no stylesheet.
2397 - Removed "interpreted" element support.
2398 - Added support for "title_reference", "sidebar", "attribution",
2399 "rubric", and generic "admonition" elements.
2400 - Added "--attribution" option.
2401 - Added support for "inline", "subscript", "superscript" elements.
2402 - Added initial support for "abbreviation" and "acronym";
2405 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2409 - Double quotes in literal blocks (special treatment for de/ngerman).
2410 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2411 - Added "--attribution" option.
2412 - Right align attributions.
2414 * docutils/writers/pep_html.py:
2416 - Parameterized output encoding in PEP template.
2417 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2418 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2419 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2421 - Added an override on the "--footnote-references" option.
2422 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2423 - Added Docutils version to "generator" meta tag.
2424 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2428 - Added a "silent" setting for ``buildhtml.py``.
2429 - Added a "Getting Help" section.
2430 - Rearranged the structure.
2431 - Kept up to date, with new settings, command-line options etc.
2432 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2433 - Converted settings table into a definition list.
2435 * docs/rst/quickstart.txt:
2437 - Added a table of contents.
2438 - Added feedback information.
2439 - Added mention of minimum section title underline lengths.
2440 - Removed the 4-character minimum for section title underlines.
2442 * docs/rst/quickref.html:
2444 - Added a "Getting Help" section.
2445 - Added a style to make section title backlinks more subtle.
2446 - Added mention of minimum section title underline lengths.
2447 - Removed the 4-character minimum for section title underlines.
2449 * extras: Directory added to project; contains third-party modules
2450 that Docutils depends on (optparse, textwrap, roman). These are
2451 only installed if they're not already present.
2453 * licenses: Directory added to project; contains copies of license
2454 files for non-public-domain files.
2458 - Changed the focus. It's about DTD elements: structural
2459 relationships, semantics, and external (public) attributes. Not
2460 about the element class library.
2461 - Moved some implementation-specific stuff into ``docutils.nodes``
2463 - Wrote descriptions of all common attributes and parameter
2464 entities. Filled in introductory material.
2465 - Working through the element descriptions: 55 down, 37 to go.
2466 - Removed "Representation of Horizontal Rules" to
2467 spec/rst/alternatives.txt.
2469 * spec/docutils.dtd:
2471 - Added "generated" inline element.
2472 - Added "line_block" body element.
2473 - Added "auto" attribute to "title".
2474 - Changed content models of "literal_block" and "doctest_block" to
2476 - Added ``%number;`` attribute type parameter entity.
2477 - Changed ``%structural.elements;`` to ``%section.elements``.
2478 - Updated attribute types; made more specific.
2479 - Added "address" bibliographic element.
2480 - Added "line" attribute to ``system_message`` element.
2481 - Removed "field_argument" element; "field_name" may contain
2482 multiple words and whitespace.
2483 - Changed public identifier to docutils.sf.net.
2484 - Removed "interpreted" element; added "title_reference",
2485 "abbreviation", "acronym".
2486 - Removed "refuri" attribute from "footnote_reference" and
2487 "citation_reference".
2488 - Added "sidebar", "rubric", "attribution", "admonition",
2489 "superscript", "subscript", and "inline" elements.
2491 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2493 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2495 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2497 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2500 * spec/transforms.txt: Added to project.
2502 * spec/howto: Added subdirectory, for developer how-to docs.
2504 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2505 Elza, edited & extended by David Goodger.
2507 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2510 * spec/rst/alternatives.txt:
2512 - Added "Doctree Representation of Transitions" from
2514 - Updated "Inline External Targets" & closed the debate.
2515 - Added ideas for interpreted text syntax extensions.
2516 - Added "Nested Inline Markup" section.
2518 * spec/rst/directives.txt:
2520 - Added directives: "topic", "sectnum", "target-notes",
2521 "line-block", "parsed-literal", "include", "replace", "sidebar",
2522 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2524 - Formalized descriptions of directive details.
2525 - Added an "align" attribute to the "image" & "figure" directives
2526 (by Adam Chodorowski).
2527 - Added "class" options to "topic", "sidebar", "line-block",
2528 "parsed-literal", "contents", and "image"; and "figclass" to
2531 * spec/rst/interpreted.txt: Added to project. Descriptions of
2532 interpreted text roles.
2534 * spec/rst/introduction.txt:
2536 - Added pointers to material for new users.
2538 * spec/rst/reStructuredText.txt:
2540 - Disambiguated comments (just add a newline after the "::").
2541 - Updated enumerated list description; added a discussion of the
2542 second-line validity checking.
2543 - Updated directive description.
2544 - Added a note redirecting newbies to the user docs.
2545 - Expanded description of inline markup start-strings in non-markup
2547 - Removed field arguments and made field lists a generic construct.
2548 - Removed the 4-character minimum for section title underlines.
2549 - Clarified term/classifier delimiter & inline markup ambiguity
2551 - Added "Embedded URIs".
2552 - Updated "Interpreted Text" section.
2553 - Added "Character-Level Inline Markup" section.
2555 * test: Continually adding & updating tests.
2557 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2558 - Moved test/test_pep/ to test/test_readers/test_pep/.
2559 - Added test/test_readers/test_python/.
2560 - Added test/test_writers/ (Engelbert Gruber).
2564 - Made the ``locale.setlocale()`` calls in front ends
2567 * tools/buildhtml.py:
2569 - Added "--silent" option.
2570 - Fixed bug with absolute paths & "--config".
2571 - Updated for new I/O classes.
2572 - Added some exception handling.
2573 - Separated publishers' setting defaults; prevents interference.
2574 - Updated for new ``publish_file()`` convenience function.
2576 * tools/pep-html-template:
2578 - Allow for "--embed-stylesheet".
2579 - Added Docutils version to "generator" meta tag.
2580 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2581 - Conform to XHTML spec.
2583 * tools/pep2html.py:
2585 - Made ``argv`` a parameter to ``main()``.
2586 - Added support for "Content-Type:" header & arbitrary PEP formats.
2587 - Linked "Content-Type: text/plain" to PEP 9.
2588 - Files skipped (due to an error) are not pushed onto the server.
2589 - Updated for new I/O classes.
2590 - Added ``check_requirements()`` & ``pep_type_error()``.
2591 - Added some exception handling.
2592 - Updated for new ``publish_string()`` convenience function.
2593 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2595 * tools/quicktest.py:
2597 - Added "-V"/"--version" option.
2599 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2601 * tools/unicode2rstsubs.py: Added to project. Produces character
2602 entity files (reSructuredText substitutions) from the MathML master
2605 * tools/editors: Support code for editors, added to project. Contains
2606 ``emacs/restructuredtext.el``.
2608 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2610 - Added style for chunks of inline literals.
2611 - Removed margin for first child of table cells.
2612 - Right-aligned field list names.
2613 - Support for auto-numbered section titles in TOCs.
2614 - Increased the size of inline literals (<tt>) in titles.
2615 - Restored the light gray background for inline literals.
2616 - Added support for "line_block" elements.
2617 - Added style for "address" elements.
2618 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2619 - Improved field list rendering.
2620 - Vertical whitespace improvements.
2621 - Removed "a.target" style.
2623 * tools/stylesheets/pep.css:
2625 - Fixed nested section margins.
2626 - Other changes parallel those of ``../default.css``.
2629 Release 0.2 (2002-07-31)
2630 ========================
2634 - The word "component" was being used ambiguously. From now on,
2635 "component" will be used to mean "Docutils component", as in Reader,
2636 Writer, Parser, or Transform. Portions of documents (Table of
2637 Contents, sections, etc.) will be called "document parts".
2638 - Did a grand renaming: a lot of ``verylongnames`` became
2639 ``very_long_names``.
2640 - Cleaned up imports: no more relative package imports or
2641 comma-separated lists of top-level modules.
2642 - Added support for an option values object which carries default
2643 settings and overrides (from command-line options and library use).
2644 - Added internal Unicode support, and support for both input and
2646 - Added support for the ``docutils.io.IO`` class & subclasses.
2650 * docutils/__init__.py:
2652 - Added ``ApplicationError`` and ``DataError``, for use throughout
2654 - Added ``Component`` base class for Docutils components; implements
2655 the ``supports`` method.
2656 - Added ``__version__`` (thus, ``docutils.__version__``).
2660 - Removed many keyword parameters to ``Publisher.__init__()`` and
2661 ``publish()``; bundled into an option values object. Added
2662 "argv", "usage", "description", and "option_spec" parameters for
2663 command-line support.
2664 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2666 - Reworked I/O model for ``docutils.io`` wrappers.
2667 - Updated ``Publisher.set_options()``; now returns option values
2669 - Added support for configuration files (/etc/docutils.conf,
2670 ./docutils.conf, ~/.docutils).
2671 - Added ``Publisher.setup_option_parser()``.
2672 - Added default usage message and description.
2674 * docutils/frontend.py: Added to project; support for front-end
2675 (command-line) scripts. Option specifications may be augmented by
2676 components. Requires Optik (http://optik.sf.net/) for option
2677 processing (installed locally as docutils/optik.py).
2679 * docutils/io.py: Added to project; uniform API for a variety of input
2682 * docutils/nodes.py:
2684 - Added ``TreeCopyVisitor`` class.
2685 - Added a ``copy`` method to ``Node`` and subclasses.
2686 - Added a ``SkipDeparture`` exception for visitors.
2687 - Renamed ``TreePruningException`` from ``VisitorException``.
2688 - Added docstrings to ``TreePruningException``, subclasses, and
2690 - Improved docstrings.
2691 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2692 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2694 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2695 ``PreDecorative`` mixin.
2696 - Reworked the name/id bookkeeping; to ``document``, removed
2697 ``explicit_targets`` and ``implicit_targets`` attributes, added
2698 ``nametypes`` attribute and ``set_name_id_map`` method.
2699 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2701 - Added ``document.has_name()`` method.
2702 - Fixed DOM generation for list-attributes.
2703 - Added category class ``Labeled`` (used by footnotes & citations).
2704 - Added ``Element.set_class()`` method (sets "class" attribute).
2706 * docutils/optik.py: Added to project. Combined from the Optik
2707 package, with added option groups and other modifications. The use
2708 of this module is probably only temporary.
2710 * docutils/statemachine.py:
2712 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2713 - Added underscores to improve many awkward names.
2714 - In ``string2lines()``, changed whitespace normalizing translation
2715 table to regexp; restores Python 2.0 compatibility with Unicode.
2717 * docutils/urischemes.py:
2719 - Filled in some descriptions.
2720 - Added "shttp" scheme.
2722 * docutils/utils.py:
2724 - Added ``clean_rcs_keywords`` function (moved from
2725 docutils/transforms/frontmatter.py
2726 ``DocInfo.filter_rcs_keywords``).
2727 - Added underscores to improve many awkward names.
2728 - Changed names of Reporter's thresholds:
2729 warning_level -> report_level; error_level -> halt_level.
2730 - Moved ``utils.id()`` to ``nodes.make_id()``.
2731 - Added ``relative_path(source, target)``.
2733 * docutils/languages/de.py: German mappings; added to project. Thanks
2734 to Gunnar Schwant for the translations.
2736 * docutils/languages/en.py: Added "Dedication" bibliographic field
2739 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2742 * docutils/parsers/rst/states.py:
2744 - Added underscores to improve many awkward names.
2745 - Added RFC-2822 header support.
2746 - Extracted the inline parsing code from ``RSTState`` to a separate
2747 class, ``Inliner``, which will allow easy subclassing.
2748 - Made local bindings for ``memo`` container & often-used contents
2749 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2750 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2751 - Added ``MarkupMismatch`` exception; for late corrections.
2752 - Added ``-/:`` characters to inline markup's start string prefix,
2753 ``/`` to end string suffix.
2754 - Fixed a footnote bug.
2755 - Fixed a bug with literal blocks.
2756 - Applied patch from Simon Budig: simplified regexps with symbolic
2757 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2758 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2759 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2760 - Allowed non-ASCII in "simple names" (directive names, field names,
2762 - Converted ``Inliner.patterns.initial`` to be dynamically built
2763 from parts with ``build_regexp()`` function.
2764 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2765 - Updated docstrings.
2766 - Changed "table" to "grid_table"; added "simple_table" support.
2768 * docutils/parsers/rst/tableparser.py:
2770 - Changed ``TableParser`` to ``GridTableParser``.
2771 - Added ``SimpleTableParser``.
2772 - Refactored naming.
2774 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2775 a fallback language for directive names.
2777 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2778 directive to use a ``pending`` element, used only by HTML writers.
2780 * docutils/parsers/rst/directives/parts.py: Renamed from
2783 - Added "backlinks" attribute to "contents" directive.
2785 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2786 project by Adam Chodorowski.
2788 * docutils/readers/__init__.py: Gave Readers more control over
2789 choosing and instantiating Parsers.
2791 * docutils/readers/pep.py: Added to project; for PEP processing.
2793 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2794 requires a ``component`` parameter.
2796 * docutils/transforms/components.py: Added to project; transforms
2797 related to Docutils components.
2799 * docutils/transforms/frontmatter.py:
2801 - In ``DocInfo.extract_authors``, check for a single "author" in an
2802 "authors" group, and convert it to a single "author" element.
2803 - Added support for "Dedication" and generic bibliographic fields.
2805 * docutils/transforms/peps.py: Added to project; PEP-specific.
2807 * docutils/transforms/parts.py: Renamed from old components.py.
2809 - Added filter for `Contents`, to use alt-text for inline images,
2810 and to remove inline markup that doesn't make sense in the ToC.
2811 - Added "name" attribute to TOC topic depending on its title.
2812 - Added support for optional TOC backlinks.
2814 * docutils/transforms/references.py: Fixed indirect target resolution
2815 in ``Hyperlinks`` transform.
2817 * docutils/transforms/universal.py:
2819 - Changed ``Messages`` transform to properly filter out system
2820 messages below the warning threshold.
2821 - Added ``Decorations`` transform (support for ``--generator``,
2822 ``--date``, ``--time``, ``--source-link`` options).
2824 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2825 Engelbert Gruber's PDF writer.
2827 * docutils/writers/html4css1.py:
2829 - Made XHTML-compatible (switched to lowercase element & attribute
2830 names; empty tag format).
2831 - Escape double-dashes in comment text.
2832 - Improved boilerplate & modularity of output.
2833 - Exposed modular output in Writer class.
2834 - Added a "generator" meta tag to <head>.
2835 - Added support for the ``--stylesheet`` option.
2836 - Added support for ``decoration``, ``header``, and ``footer``
2838 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2839 translation table to regexp; restores Python 2.0 compatibility
2841 - Added the translator class as instance variable to the Writer, to
2842 make it easily subclassable.
2843 - Improved option list spacing (thanks to Richard Jones).
2844 - Modified field list output.
2845 - Added backlinks to footnotes & citations.
2846 - Added percentage widths to "<col>" tags (from colspec).
2847 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2848 "<span>" changed to "<var>".
2849 - Inline literals: "<code>" changed to "<tt>".
2850 - Many changes to optimize vertical space: compact simple lists etc.
2851 - Add a command-line options & directive attributes to control TOC
2852 and footnote/citation backlinks.
2853 - Added support for optional footnote/citation backlinks.
2854 - Added support for generic bibliographic fields.
2855 - Identify backrefs.
2856 - Relative URLs for stylesheet links.
2858 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2859 PEPs (subclass of ``html4css1.Writer``).
2861 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2863 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2864 of the Docutils internal doctree in XML.
2866 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2870 - Changed the title to "The Docutils Document Tree".
2871 - Added "Hyperlink Bookkeeping" section.
2873 * spec/docutils.dtd:
2875 - Added ``decoration``, ``header``, and ``footer`` elements.
2876 - Brought ``interpreted`` element in line with the parser: changed
2877 attribute "type" to "role", added "position".
2878 - Added support for generic bibliographic fields.
2880 * spec/notes.txt: Continual updates. Added "Project Policies".
2882 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2885 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2887 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2888 mailing list discussions.
2890 * spec/pep-0287.txt:
2892 - Renamed to "reStructuredText Docstring Format".
2894 - Reworked Q&A as an enumerated list.
2895 - Converted to reStructuredText format.
2897 * spec/pysource.dtd:
2899 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2901 * spec/pysource.txt: Removed from project. Moved much of its contents
2904 * spec/rst/alternatives.txt:
2906 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2907 - Added "Inline External Targets" section.
2909 * spec/rst/directives.txt:
2911 - Added "backlinks" attribute to "contents" directive.
2913 * spec/rst/problems.txt:
2915 - Updated the Enumerated List Markup discussion.
2916 - Added new alternative table markup syntaxes.
2918 * spec/rst/reStructuredText.txt:
2920 - Clarified field list usage.
2921 - Updated enumerated list description.
2922 - Clarified purpose of directives.
2923 - Added ``-/:`` characters to inline markup's start string prefix,
2924 ``/`` to end string suffix.
2925 - Updated "Authors" bibliographic field behavior.
2926 - Changed "inline hyperlink targets" to "inline internal targets".
2927 - Added "simple table" syntax to supplement the existing but
2928 newly-renamed "grid tables".
2929 - Added cautions for anonymous hyperlink use.
2930 - Added "Dedication" and generic bibliographic fields.
2932 * test: Made test modules standalone (subdirectories became packages).
2934 * test/DocutilsTestSupport.py:
2936 - Added support for PEP extensions to reStructuredText.
2937 - Added support for simple tables.
2938 - Refactored naming.
2940 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2942 - Now supports true packages containing test modules
2943 (``__init__.py`` files required); fixes duplicate module name bug.
2945 * test/test_pep/: Subpackage added to project; PEP testing.
2947 * test/test_rst/test_SimpleTableParser.py: Added to project.
2951 - Updated html.py and publish.py front-end tools to use the new
2952 command-line processing facilities of ``docutils.frontend``
2953 (exposed in ``docutils.core.Publisher``), reducing each to just a
2955 - Added ``locale.setlocale()`` calls to front-end tools.
2957 * tools/buildhtml.py: Added to project; batch-generates .html from all
2958 the .txt files in directories and subdirectories.
2960 * tools/default.css:
2962 - Added support for ``header`` and ``footer`` elements.
2963 - Added styles for "Dedication" topics (biblio fields).
2965 * tools/docutils.conf: A configuration file; added to project.
2967 * tools/docutils-xml.py: Added to project.
2969 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2971 * tools/pep-html-template: Added to project.
2973 * tools/pep2html.py: Added to project from Python (nondist/peps).
2974 Added support for Docutils (reStructuredText PEPs).
2976 * tools/quicktest.py:
2978 - Added the ``--attributes`` option, hacked a bit.
2979 - Added a second command-line argument (output file); cleaned up.
2981 * tools/stylesheets/: Subdirectory added to project.
2983 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2986 Release 0.1 (2002-04-20)
2987 ========================
2989 This is the first release of Docutils, merged from the now inactive
2990 reStructuredText__ and `Docstring Processing System`__ projects. For
2991 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2992 `DPS HISTORY`__ files.
2994 __ http://structuredtext.sourceforge.net/
2995 __ http://docstring.sourceforge.net/
2996 __ http://structuredtext.sourceforge.net/HISTORY.html
2997 __ http://docstring.sourceforge.net/HISTORY.html
2999 General changes: renamed 'dps' package to 'docutils'; renamed
3000 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
3001 the test suites (reStructuredText's test/test_states renamed to
3002 test/test_rst); and all modifications required to make it all work.
3004 * docutils/parsers/rst/states.py:
3006 - Improved diagnostic system messages for missing blank lines.
3007 - Fixed substitution_reference bug.
3013 indent-tabs-mode: nil
3014 sentence-end-double-space: t