1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: docutils-develop@lists.sourceforge.net
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
21 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
22 - Support embedded aliases within hyperlink references.
26 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
28 * docutils/parsers/rst/directives/images.py
30 - Apply [ 3599485 ] node source/line information for sphinx translation.
32 * docutils/utils/__init__.py
34 - Fix [ 3596884 ] exception importing ``docutils.io``.
36 * docutils/writers/html4css1/__init__.py
38 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
40 * docutils/writers/latex2e/__init__.py
42 - Drop the simple algorithm replacing straight double quotes with
43 English typographic ones.
44 Activate the SmartQuotes_ transform if you want this feature.
45 - Fix literal use of babel shorthands (straight quote, tilde, ...).
46 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
48 .. _SmartQuotes: docs/user/config.html#smart-quotes
50 * docutils/writers/manpage.py
52 - Fix option separating comma was bold (thanks to Bill Morris).
54 Release 0.10 (2012-12-16)
55 =========================
59 - Dropped support for Python 2.3.
60 - ``docutils/math``, ``docutils/error_reporting.py``, and
61 ``docutils/urischemes.py`` moved to the utils package.
62 - Fix [3541369] Relative __import__ also with Python 3.3.
63 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
64 and parsers for Python 2.7 up.
65 - Fix import of PIL.Image.
66 - Change default of "syntax highlight" option to "long",
67 basic syntax highlight styles for LaTeX and HTML.
71 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
72 option is ignored and will be removed in a future release.
73 - Fix Py3k error writing to stdout with encoding differing from default.
74 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
76 * docutils/parsers/rst/directives/misc.py
78 - Fix [ 3546533 ] Unicode error with `date` directive.
80 * docutils/transforms/universal.py
82 - SmartQuotes transform for typographic quotes and dashes.
84 * docutils/utils/__init__.py
86 - normalize_language_tag() now returns `BCP 47`_ conformant tags
87 with subtags separated by ``-``.
89 * docutils/writers/html4css1/__init__.py
91 - Use ``<code>`` tag for inline "code",
92 do not drop nested inline nodes (syntax highlight tokens).
93 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
94 - No line break after opening inline math tag.
96 * docutils/writers/manpage.py
98 - Apply [ 3527401 ] addmonition's don't preserve indentation
99 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
101 , docutils/writers/xetex/__init__.py
103 - Apply [ 3555160 ] ensure order of "otherlanguages".
104 - Fix section numbering by LaTeX.
106 * docutils/writers/s5_html/__init__.py
108 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
110 * docutils/writers/s5_html/docutils_xml.py
112 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
116 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
118 * tools/test/test_buildhtml.py
120 - Fix [ 3521167 ] allow running in any directory.
121 - Fix [ 3521168 ] allow running with Python 3.
124 Release 0.9.1 (2012-06-17)
125 ==========================
129 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
130 installed in the PYTHONPATH. Converted tests are now
131 stored in ``test3/``, tools no longer need conversion.
133 If you installed one of Docutils versions 0.7 ... 0.9 with
134 ``setup.py install`` under Python 3, remove the spurious
135 ``test/`` and ``tools/`` directories in the site library root.
139 - Make tests independent from the location of the ``test/`` directory.
140 - Use converted sources (from the ``build/`` directory) for tests under
145 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
149 - Fix writing binary data to sys.stdout under Python 3 (allows
150 ``rst2odt.py`` to be used with output redirection).
152 * docutils/parsers/rst/directives/misc.py
154 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
155 ``locale == C`` and 8-bit char in path argument of `include` directive.
159 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
162 Release 0.9 (2012-05-02)
163 ========================
167 - New reStructuredText "code" role and directive and "code" option
168 of the "include" directive with syntax highlighting by Pygments_.
169 - Fix parse_option_marker for option arguments containing ``=``.
170 - Fix [ 2993756 ]: import Python Imaging Library's Image module
171 via ``import PIL`` as starting with PIL 1.2,
172 "PIL lives in the PIL namespace only" (announcement__).
174 .. _Pygments: http://pygments.org/
175 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
179 - Fix [ 2971827 ] and [ 3442827 ]
180 extras/roman.py moved to docutils/utils/roman.py
182 * docutils/frontend.py
184 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
188 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
189 - `mode` argument for FileOutput avoids code replication in
191 - New exceptions InputError and OutputError for IO errors in
192 FileInput/FileOutput.
196 - No "hard" system exit on file IO errors: catch and report them in
197 `Publisher.reportException` instead. Allows handling by a calling
198 application if the configuration setting `traceback` is True.
200 * docutils/utils.py -> docutils/utils/__init__.py
202 - docutils.utils is now a package (providing a place for sub-modules)
204 .. note:: docutils/math, docutils/error_reporting.py, and
205 docutils/urischemes.py will move to the utils package in the next
206 release, too. See RELEASE-NOTES__
208 __ RELEASE-NOTES.html
210 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
211 errors recording non-ASCII filenames (fixes [ 3434355 ]).
213 - Fix relative_path() with source=None and `unicode` target.
215 * docutils/parsers/rst/states.py
217 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
218 characters and "international" quotes around inline markup.
219 - Use `field_marker` pattern to look for start of a
220 directive option block (fixes [ 3484857 ]).
222 * docutils/parsers/rst/tableparser.py
224 - Fix [ 2926161 ] for simple tables.
225 (Combining chars in grid tables still contribute to cell width.)
227 * docutils/writers/latex2e/__init__.py
229 - Support the `abbreviation` and `acronym` standard roles.
230 - Record only files required to generate the LaTeX source as dependencies.
231 - Fix handling of missing stylesheets.
232 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
233 when suppressing LaTeX section numbering.
234 - Use ``\DUtitle`` for unsupported section levels
235 - Apply [ 3512791 ] do not compare string literals with "is"
237 * docutils/writers/xetex/__init__.py
239 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
241 * docutils/writers/html4css1/__init__.py
243 - Change default for `math-output` setting to MathJax.
244 - Fix handling of missing stylesheets.
246 * docutils/writers/docutils_xml.py
248 - Use the visitor pattern with default_visit()/default_depart() methods
249 instead of minidom to facilitate special handling of selected nodes.
250 - Support raw XML (inserted as-is inside a <raw></raw> node).
252 * docutils/writers/manpage.py
254 - Do not emit comment line with trailing blank. Problematic for VCS.
256 Release 0.8.1 (2011-08-30)
257 ==========================
261 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
262 and [ 3395920 ] (correct copyright info for rst.el).
266 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
268 * docutils/writers/latex2e/__init__.py
270 - Clean up Babel language setting. Restores Sphinx compatibility.
272 Release 0.8 (2011-07-07)
273 ========================
277 - Handle language codes according to `BCP 47`_.
278 - If the specified language is not supported by Docutils,
279 warn and fall back to English.
280 - Math support: reStructuredText "math" role and directive,
281 ``math`` and ``math_block`` doctree elements.
282 - Decode command line arguments with the locale's preferred encoding
283 (to allow, e.g., ``--title=Dornröschen``).
284 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
285 - New sub-module `error_reporting`: handle encoding/decoding errors
286 when reporting exceptions.
287 - Some additions to the Docutils core are released under the 2-Clause BSD
288 license, see COPYING_ for details.
290 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
291 .. _COPYING: COPYING.html
295 - Most directives now support a "name" option that attaches a
298 - Directive content may start on the first line also when the directive
299 type accepts options.
301 * docs/dev/policies.txt:
303 - Recommend the 2-Clause BSD license
304 (http://www.spdx.org/licenses/BSD-2-Clause)
305 for code that is kept under the author's copyright.
307 * tools/buildhtml.py:
309 - Fix ``--local`` switch.
311 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
313 * docutils/writers/html4css1/__init__.py
315 - Set "lang" argument for objects with class argument
316 "language-<language tag>".
317 - New setting "math-output" with support for HTML, MathML, and LaTeX.
319 * docutils/writers/latex2e/__init__.py
321 - Fix [ 3043986 ] AttributeError using :local: with table of content.
322 - Place title data in the document preamble.
323 - Load `babel` package only if required.
324 - Update list of supported languages.
325 - New config setting "hyperref-options".
326 No hard-coded "unicode" hyperref option (clash with xetex).
327 - Set language for custom roles, paragraphs, block-quotes, and
328 line-quotes with class argument "language-<language tag>".
329 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
330 - Convert image URI to a local file path.
331 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
332 has more than one paragraph (Wolfgang Scherer).
333 - \leavevmode before longtable only when needed (prevents spurious vspace)
334 - do not advance table counter for tables without caption
336 * docutils/writers/xetex/__init__.py
338 - New writer generating LaTeX code for compiling with ``xelatex``.
340 A separate writer (inheriting from latex2e) instead of a ``--xetex``
341 option allows separate config options for XeTeX vs. LaTeX2e.
343 * docutils/writers/manpage.py
345 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
346 - Fix: vertical space cleaning for option group ``.``.
348 * tools/editors/emacs/rst.el:
350 - Fix [ 3001100 ] does not handle spaces in filenames
351 (thanks to Jakub Wilk)
355 - strip whitespace from stylesheet arguments
356 - exclude combining chars from column_width()
357 (partial fix for [ 2926161 ])
359 * docutils/parsers/rst/directives/misc.py:
361 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
366 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
367 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
369 Release 0.7 (2010-07-07)
370 ========================
374 - Fix [ 2881769 ] setup configuration.
375 - Fix [ 2788716 ] reporting problems in included files.
379 - FileInput opens files as text files with universal newline support
380 (mode "rU", configurable with the new optional argument "mode").
384 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
388 - Fix [ 2923723 ] let decode_path() tolerate path == None
390 * docutils/writers/html4css1/__init__.py
392 - Support SVG and SWF images (thanks to Stefan Rank).
393 - Generate valid XHTML for centered images with targets.
394 Use CSS classes instead of "align" tags for image alignment.
396 * docutils/writers/latex2e/__init__.py
398 - Use `transforms.writer_aux.Admonitions` to "normalize" special
400 - Use the ``\url`` command for URLs (breaks long URLs instead of
401 writing into the margin).
402 - Preserve runs of spaces in `inline literals`__.
403 - Deprecate ``figure_footnotes`` setting.
404 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
405 - New ``latex_preamble`` setting.
406 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
407 - Fix hyperlink targets (labels) for images, figures, and tables.
408 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
409 - Apply [ 2961991 ] Call hyperref with unicode option.
410 - Drop the special `output_encoding`__ default ("latin-1").
411 The Docutils wide default (usually "UTF-8") is used instead.
412 - Render inline markup in document title and subtitle.
413 - Fix numbering depth with LaTeX section numbering.
414 - Update Unicode -> LaTeX translations.
415 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
417 __ docs/ref/restructuredtext.html#inline-literals
418 __ docs/user/config.html#docutils-footnotes
419 __ docs/user/config.html#output_encoding
421 * docutils/writers/manpage.py
423 - Fix: supported attribute (thanks to peter2108).
424 - Remove trailing blanks in code (keep in sync with mercurial version).
425 - Titles level 1, that is ``.SH``, always uppercase.
426 - Apply patch from mg: literal text should be bold in man-pages.
430 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
435 - Python 3 support: copy test/ and tools/ to the build-dir
436 and convert Python sources with 2to3.
439 Release 0.6 (2009-10-11)
440 ========================
444 - Docutils is now compatible with Python versions from 2.3 up to 2.6
445 and convertible to 3.1 code.
447 + Node.__nonzero__ returns True instead of 1.
448 + use os.walk instead os.path.walk.
449 + minimize "types" module where possible.
450 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
451 + Text nodes now subclass unicode rather than UserString
452 (which is gone in python 3.0).
453 + 3.0 compatibility module docutils._compat
455 + Drop 2.2 compatibility workarounds.
456 + Drop extras/optparse.py and extras/textwrap.py
457 (stdlib modules since 2.3).
459 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
460 - Unix man page export: manpage writer moved from sandbox to Doctutils
463 - Apply [ 1719345 ] Galician translation
464 - Apply [ 1905741 ] Polish translation
465 - Apply [ 1878977 ] make_id(): deaccent characters.
466 - Apply [ 2029251 ] return nonzero when tests fail.
467 - Fix [ 1692788 ] allow UTF-8 in style sheets.
468 - Fix [ 2781629 ] support non-ASCII chars in file names.
469 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
470 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
471 - Fix [ 2821266 ] --strict option works now like --halt=info.
472 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
473 - Fix [ 1627229 ] hyperlink references in substitutions.
475 - The "newlatex" writer is orphaned.
479 - Documented Unicode characters allowed as inline markup openers,
480 closers, and delimiters.
481 - Allow units for all length specifications.
482 - Allow percent sign in "scale" argument of "figure" and "image" directives.
483 - Bugfix: The "figalign" argument of a figure now works as intended
484 (aligning the figure, not its contents).
485 - Align images with class "align-[right|center|left]"
486 (allows setting the alignment of an image in a figure).
490 - Added ``Element.__contains__`` method, for the in-operator.
492 * docutils/parsers/rst/states.py:
494 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
495 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
496 " " (non-breaking space), and "¡ ¿" openers.
498 * docutils/parsers/directives/misc.py:
500 - Added ``start-line`` and ``end-line`` options to "include"
501 directive to select a range of lines.
502 - Hard tabs in literal inclusions are replaced by spaces. This is
503 configurable via the new ``tab-width`` option of the "include" directive
504 (a negative tab-width prevents tab expansion).
508 - Add ``get_stylesheet_list`` function.
509 - Apply [ 2834836 ] print info at halt
511 * docutils/transforms/universal.py:
513 - Raise default priority of StripClasses to exclude stripped classes from
516 * docutils/writers/html4css1/__init__.py:
518 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
519 separated list of stylesheets.
520 - Address [ 1938891 ] Inline literal text creates "pre" span only when
521 needed to prevent inter-word line wraps.
522 - Use `translate` method instead of repeated `replace` calls.
523 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
524 classes to allow CSS styling that does not interfere with other
525 table-using constructs (field lists, citations, ...).
527 * docutils/writers/newlatex2e/__init__.py:
529 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
531 * docutils/writers/latex2e/__init__.py (see also
532 `<docs/user/docutils-05-compat.sty.html>`__) :
534 - Add ``--embed-stylesheet`` option.
535 - Apply [ 1474017 ] image vertical alignment is reversed.
536 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
537 - Change: has_key for dictionaries (not Nodes) to in-operator.
538 - Merge adjacent citations into one latex cite command.
539 - Failsave implementation of custom roles. LaTeX compilation now ignores
540 unknown classes instead of aborting with an error.
541 - Support custom roles based on standard roles.
542 - LaTeX packages can be used as ``--stylesheet`` arguments without
543 restriction. (A style sheet is now referenced with the ``\usepackage``
544 command, if it ends with ``.sty`` or has no extension.)
545 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
546 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
547 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
548 2005-02-04 as a configurable length unit).
549 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
550 if font-encoding is set to ''. LaTeX defaults to OT1 then.
551 - Set sub- and superscript role argument in text mode not as math.
552 Use a custom role based on sub-/superscript if you want italic shape.
553 - Shorter preamble and less dependencies: Load packages and define macros
554 only if required in the document.
555 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
556 - New custom environments and commands with optional "classes" argument.
557 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
558 - Better conformance to Docutils specifications with ``--use-latex-toc``.
559 Support for LaTeX generated ToC also with unnumbered sections.
560 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
561 section numbering by LaTeX.
562 - Use default font in admonitions and sidebar.
563 - Align of image in a figure defaults to 'center'.
564 - Bugfix: Newlines around targets and references prevent run-together
566 - Fix internal hyperlinks.
567 - Use class defaults for page margins ('typearea' now optional).
568 - Float placement made configurable, default changed to "here definitely".
569 - Typeset generic topic as "quote block with title".
570 - Use template (file and configuration option).
571 - In the default template, load cmap.sty (fix text extraction in PDF) and
572 fixltx2e.sty (LaTeX patches, \textsubscript).
573 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
574 - Use `translate` instead of repeated `replace` calls for text encoding.
575 - Hyperlinked footnotes and support for symbol footnotes and
576 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
577 - Complete pairs of binary options
578 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
579 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
581 - font-encoding: "T1" (formerly implicitely set by 'ae').
582 - use-latex-toc: true (ToC with page numbers).
583 - use-latex-footnotes: true (no mixup with figures).
585 * docutils/writers/manpage.py
587 - Do not print version at document end, this is done by the viewer.
588 - Do not print date at document end, this is done by the viewer.
589 - Fix storage of docinfo fields for none standard fields.
591 * docutils/tools/rst2man.py
593 Release 0.5 (2008-06-25)
594 ========================
596 * docutils/languages/he.py: Added to project: Hebrew mappings by
599 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
600 mappings by Meir Kriheli.
602 * docutils/frontend.py:
604 - Configuration files are now assumed and required to be
606 - Paths of applied configuration files are now recorded in the
607 runtime setting ``_config_files`` (accessible via
608 ``--dump-settings``).
609 - Added ``--strip-elements-with-class`` and ``--strip-class``
610 options (``strip_elements_with_classes`` and ``strip_classes``
615 - Added code to determine the input encoding from data: encoding
616 declarations or the presence of byte order marks (UTF-8 & UTF-16).
617 - Added support for IronPython 1.0.
621 - Added ``document.__getstate__`` method, for pickling.
623 * docutils/parsers/rst/states.py:
625 - Allow ``+`` and ``:`` in reference names.
626 - Unquoted targets beginning with an underscore (``.. __target:
627 URI``) are no longer accepted.
628 - Added support for multiple attributions in a physical block quote
629 (indented text block), dividing it into multiple logical block
631 - Added support for unicode bullets in bullet lists: "•", "‣", and
633 - Added support for new object-oriented directive interface,
634 retaining compatibility to the old functional interface.
635 - Added support for throwing ``DirectiveError``'s from within
638 * docutils/parsers/rst/__init__.py:
640 - Added ``Directive`` base class.
641 - Added ``DirectiveError`` base class.
642 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
645 * docutils/parsers/directives/:
647 - Refactored all reStructuredText directives to use the new
648 object-oriented directive interface. Errors are now (mostly)
649 thrown using the new ``DirectiveError`` class.
651 * docutils/parsers/directives/misc.py:
653 - Added ``start-after`` and ``end-before`` options to ``include``
654 directive; thanks to Stefan Rank.
656 * docutils/transforms/universal.py:
658 - Added ``StripClassesAndElements`` transform to remove from the
659 document tree all elements with classes in
660 ``settings.strip_elements_with_classes`` and all "classes"
661 attribute values in ``self.document.settings.strip_classes``.
663 * docutils/transforms/writer_aux.py:
665 - Added ``Admonitions`` transform to transform specific admonitions
666 (like ``note``, ``warning``, etc.) into generic admonitions with a
669 * docutils/writers/html4css1/__init__.py:
671 - Moved template functionality from the PEP/HTML writer here.
672 - Expanded the fragments available in the ``parts`` attribute.
673 - Moved ``id`` attributes from titles to surrounding ``div``
675 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
676 universally supported now).
677 - ``template.txt`` is now opened in text mode instead of binary mode
678 (to ensure Windows compatibility).
679 - ``a`` elements now have an "internal" or "external" class,
680 depending on reference type.
682 * docutils/writers/html4css1/template.txt: Added to project.
684 * docutils/writers/pep_html/:
686 - Moved template functionality to the HTML writer.
688 * docutils/writers/s5_html/__init__.py:
690 - Added ``view_mode`` & ``hidden_controls`` settings
691 (``--view-mode`` & ``--hidden-controls/--visible-controls``
694 * docutils/writers/latex2e/__init__.py:
696 - Add ``--literal-block-env``
697 - Fix: escaping ``%`` in href urls.
698 - Move usepackage hyperref after stylesheet inclusion.
699 - Fix: scrartcl does not have chapter but scrreprt.
700 - Add newline after ``\end{verbatim}``.
701 - Merge smaller differences from latex2e_adaptive_preamble.
702 - Add ``use-part-section``.
703 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
704 - Using leavemode option_list no longer needs to check if parent
705 is a definition list.
706 - Append ``\leavemode`` to definition list terms.
707 - No longer write visit\_/depart_definition_list_item comments to
709 - Table column width with 3 decimal places.
710 - Add table stubs support (boldfont).
711 - Add assemble_parts to writer.
712 - Add simply support for nested tables.
713 - Fix verbatim in tables if use-verbatim-when-possible.
714 - Use section commands down to subparagraph.
715 - Put ensuremath around some latin1 chars.
716 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
717 - New option ``--use-bibtex=style,db1,db2``.
718 - New option ``--reference-label`` to allow usage of LaTeX ref for
719 labels in section references.
720 - Add a label after every section to support sectionnumbers as reference
722 - Fix: bug# 1605376 rst2latex: bad options group list
723 - Remove inactive code for use_optionlist_for_option_list.
724 - Remove latex comments from option_list output.
725 - Fix: bug# 1612270 double qoutes in italian literal.
726 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
727 - Add option --use-latex-abstract.
728 - Image width unit ``px`` is translated to ``pt``.
729 - Add image height support.
730 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
732 - Fix: Do not escape underscores in citation reference labels if
733 use-latex-citations is set.
734 - Use centering instead of center for figure contents, to avoid vertical
736 - Recognize table class: borderless, nolines, booktabs, standard.
737 - Fix: Renaming contents section does not work with latex writer; SF
739 - Applied patch for custom roles with classes from Edward Loper.
740 - Fixed bug that caused crashes with more than 256 lists.
742 * docutils/writers/pep_html/__init__.py:
744 - Changed to support new python.org website structure and
747 * docs/howto/security.txt: "Deploying Docutils Securely", added to
750 * tools/buildhtml.py:
752 -- Added ``ignore`` setting to exclude a list of shell patterns
753 (default: ``.svn:CVS``).
755 * tools/editors/emacs/rst.el:
757 - Changed license to "GPL".
758 - Added ``rst-straighten-decorations`` function.
759 - The ``compile`` module is now always loaded.
760 - Added ``rst-toggle-line-block`` function.
761 - Headings consisting only of non-ASCII characters are now
762 recognized by ``rst-toc`` and ``rst-adjust``.
763 - Added font-lock support for multi-line comments where the first
764 comment line is empty.
765 - Added ``(require 'font-lock)``.
769 - Provide descriptive error message if distutils is missing.
772 Release 0.4 (2006-01-09)
773 ========================
777 - Updated the project policies for trunk/branch development &
780 * docutils/__init__.py:
782 - Added ``__version_details__`` attribute to describe code source
783 (repository/snapshot/release).
784 - Replaced ``default_transforms`` attribute of TransformSpec with
785 ``get_transforms()`` method.
789 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
790 functions, for document tree extraction and reprocessing.
794 - Added ``DocTreeInput`` class, for reprocessing existing documents.
795 - Added support for non-Unicode (e.g. binary) writer output.
799 - Re-introduced ``Targetable.indirect_reference_name``, for
800 MoinMoin/reST compatibility (removed in r3124/r3129).
801 - Added ``serial_escape`` function; escapes string values that are
802 elements of a list, for serialization. Modified Docutils-XML
803 writing (``Element._dom_node``) and pseudo-XML writing
804 (``Element.starttag``) to use ``serial_escape``.
805 - Added ``Node.deepcopy()`` method.
806 - Removed the internal lists ``document.substitution_refs``,
807 ``document.anonymous_refs``, and ``document.anonymous_targets``.
808 - Added a "container" element.
809 - Fixed bug where values of list-valued attributes of elements
810 originating from custom interpreted text roles (i.e., with custom
811 classes) were being shared between element instances. Reported by
814 * docutils/statemachine.py:
816 - Added trailing whitespace stripping to ``string2lines()``.
817 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
818 Asian double-width character support.
822 - Added ``east_asian_column_width()`` for double-width character
825 * docutils/languages/ja.py: Added to project: Japanese mappings by
828 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
829 mappings by Panjunyong.
831 * docutils/parsers/null.py: Added to project; a do-nothing parser.
833 * docutils/parsers/rst/__init__.py:
835 - Added validator to tab_width setting, with test. Closes SF bug
836 #1212515, report from Wu Wei.
838 * docutils/parsers/rst/states.py:
840 - Fixed bug with escaped colons indicating a literal block.
841 - Fixed bug with enumerated lists (SF#1254145).
842 - Backslash-escaped colons inside of field names are now allowed.
843 - Targets (implicit and explicit), anonymous hyperlink references
844 and auto-numbered footnote references inside of substitution
845 definitions are now disallowed.
846 - Fixed bug: list items with blank first lines.
847 - Fixed bug: block quote attributions with indented second lines.
848 - Added East Asian double-width character support (Python 2.4 only).
850 * docutils/parsers/rst/tableparser.py:
852 - Added East Asian double-width character support (Python 2.4 only).
854 * docutils/parsers/rst/directives/body.py:
856 - Added the "container" directive.
858 * docutils/parsers/rst/directives/misc.py:
860 - Added the "default-role", "title", and "date" directives.
861 - Added standard data file syntax to the "include" directive.
862 - Added support for "class" directive content.
864 * docutils/parsers/rst/directives/images.py:
866 - Added ``indirect_reference_name`` support for images with a target
868 - Added support for image width and height units.
869 - Fixed bug with image "target" options.
871 * docutils/parsers/rst/directives/references.py:
873 - Added "class" attribute to "target-notes" directive, for
874 footnote_reference classes.
876 * docutils/parsers/rst/include/: Directory added to project; contains
877 standard data files for the "include" directive. Initial contents:
878 character entity substitution definition sets, and a set of
879 definitions for S5/HTML presentations.
881 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
882 mappings by David Goodger.
884 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
885 Simplified Chinese mappings by Panjunyong.
887 * docutils/readers/__init__.py:
889 - Added universal.Decorations and universal.ExposeInternals
890 transforms as default transforms for all readers.
891 - Added ``ReReader`` base class for readers that reread an existing
894 * docutils/readers/doctree.py: Added to project; a reader for existing
897 * docutils/transforms/frontmatter.py:
899 - Fixed the DocInfo transform to handle SVN-style expansion of the
901 - In ``DocInfo.extract_authors``, treat the contents of "authors"
904 * docutils/transforms/misc.py:
906 - Added misc.Transitions transform, extracted from
907 universal.FinalChecks.
909 * docutils/transforms/references.py:
911 - Added references.DanglingReferences transform, extracted from
912 universal.FinalChecks.
913 - Fixed bug with doubly-indirect substitutions.
914 - Added footnote_reference classes attribute to "TargetNotes".
915 - Fixed bug with circular substitution definitions that put Docutils
916 into an infinite loop.
918 * docutils/transforms/universal.py:
920 - Added universal.ExposeInternals transform, extracted from
921 universal.FinalChecks.
922 - Removed universal.FinalChecks transform (logic has been moved to
923 several new transforms).
924 - Fixed bug with the "expose_internals" setting and Text nodes
925 (exposed by the "rawsource" internal attribute).
926 - Added the universal.StripComments transform, implementation of the
927 "strip_comments" setting.
929 * docutils/transforms/writer_aux.py: Added to project; auxiliary
930 transforms for writers.
932 - Added ``Compound`` transform, which flattens compound paragraphs.
934 * docutils/writers/: Several writer modules (html4css1.py) were
935 converted into packages. Support modules and data files have been
936 moved into the packages. The stylesheets for the HTML writers are
937 now installed along with the code, the code knows where to find
938 them, and the default is to use them (actually, to embed them).
939 Some adjustments to configuration files may be necessary. The
940 easiest way to obtain the new default behavior is to remove all
941 settings whose name includes "stylesheet".
943 * docutils/writers/__init__.py:
945 - Added universal.Messages and universal.FilterMessages transforms
946 as default transforms for all writers.
947 - Added ``UnfilteredWriter`` base class for writers that pass the
948 document tree on unchanged.
950 * docutils/writers/docutils_xml.py:
952 - Made ``xmlcharrefreplace`` the default output encoding error
955 * docutils/writers/html4css1/:
957 - Added support for image width and height units.
958 - Made ``xmlcharrefreplace`` the default output encoding error
960 - Made ``--embed-stylesheet`` the default rather than
961 ``--link-stylesheet``.
962 - Moved "id" attribute from container (section etc.) to title's <a>
963 tag, to be on the same tag as "name".
964 (!!! To be reverted in Docutils 0.5.)
965 - Added vertical space between fields of field lists.
966 - Added ``--compact-field-lists`` option to remove vertical space in
968 - Made cloaking of email addresses with ``--cloak-email-addresses``
970 - Fixed support for centered images.
971 - Added support for class="compact" & class="open" lists.
973 * docutils/writers/latex2e/:
975 - Underscores in citekeys are no longer escaped.
977 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
978 mapping of Unicode characters to LaTeX equivalents.
980 * docutils/writers/s5_html/: Package added to project; writer for
983 * docs/dev/distributing.txt: Added to project; guide for distributors
984 (package maintainers).
986 * docs/dev/hacking.txt: Added to project; guide for developers.
988 * docs/ref/doctree.txt:
990 - Updated for plural attributes "classes", "ids", "names",
992 - Added the "container" element.
994 * docs/ref/docutils.dtd:
996 - Updated for plural attributes "classes", "ids", "names",
999 * docs/user/emacs.txt: Added to project; a document about Emacs
1000 support for reStructuredText and Docutils.
1002 * docs/user/links.txt: Added to project; lists of Docutils-related
1005 * docs/user/mailing-lists.txt: Added to project; information about
1006 Docutils-related mailing lists and how to access them.
1008 * docs/user/slide-shows.txt: Added to project; example of and docs for
1009 the S5/HTML writer (``rst2s5.py`` front end).
1011 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1012 Files", added to project.
1014 * test/coverage.sh: Added to project; test coverage script.
1016 * test/DocutilsTestSupport.py:
1018 - Added support for specifying runtime settings at the suite level.
1020 * test/test_functional.py:
1022 - Added the ``clear_output_directory`` function.
1023 - Added support for ``_test_more`` functions in functional test
1026 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1028 * tools/rstpep2html.py: Renamed from pep.py.
1030 * tools/dev/create_unimap.py: Added to project; script to create the
1031 docutils/writers/unimap_latex.py mapping file.
1033 * tools/dev/profile_docutils.py: Added to project; profiler script.
1035 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1037 * tools/editors/emacs/restructuredtext.el,
1038 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1039 Removed from project; the functionality is now contained in rst.el.
1041 * tools/editors/emacs/rst.el: Added to project. Added many features
1042 and fixed many bugs. See docs/user/emacs.txt for details.
1044 * tools/stylesheets: Removed from project. Stylesheets have been
1045 renamed and moved into writer packages.
1048 Release 0.3.9 (2005-05-26)
1049 ==========================
1053 - Eliminated and replaced all uses of the old string attributes
1054 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1055 new list attributes ``ids``, ``names``, ``dupnames`` and
1056 ``classes`` throughout the whole source tree.
1060 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1061 allowing for easier debugging.
1062 - In ``Publisher.publish()``, expanded the generic top-level
1065 * docutils/examples.py:
1067 - Added ``internals`` function for exploration.
1071 - Fixed ``Input.decode`` method to apply heuristics only if no
1072 encoding is explicitly given, and to provide better reporting of
1074 - The ``Input.decode`` method now removes byte order marks (BOMs)
1077 * docutils/nodes.py:
1079 - ``image`` element class changed to subclass of Element, not
1080 TextElement (it's an empty element, and cannot contain text).
1081 - Added ``attr_defaults`` dictionary for default attribute values.
1082 - Added empty list as default value for the following attributes:
1083 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1084 - Added ``document.decoration`` attribute,
1085 ``document.get_decoration`` method, and ``decoration.get_header``
1086 & ``.get_footer`` methods.
1087 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1090 * docutils/utils.py:
1092 - Removed ``docutils.utils.Reporter.categories``,
1093 ``docutils.utils.ConditionSet``, and all references to them, to
1094 simplify error reporting.
1096 * docutils/languages/nl.py: Added to project; Dutch mappings by
1099 * docutils/parsers/rst/__init__.py:
1101 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1103 * docutils/parsers/rst/states.py:
1105 - Added check for escaped at-mark to prevent email address recognition.
1106 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1108 - Allowed whitespace in paths and URLs.
1109 - Added auto-enumerated list items.
1110 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1112 - Added support for table stub columns.
1114 * docutils/parsers/rst/directives/__init__.py:
1116 - Allowed whitespace in paths (``path`` function).
1117 - Added ``uri`` directive option conversion function.
1119 * docutils/parsers/rst/directives/body.py:
1121 - Fixed illegal context bug with "topic" directive (allowed within
1122 sidebars; not within body elements).
1124 * docutils/parsers/rst/directives/images.py:
1126 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1127 - Added support for the ``file_insertion_enabled`` setting in the
1128 "figure" directive (disables "figwidth" option).
1129 - "image" directive: added checks for valid values of "align" option,
1130 depending on context. "figure" directive: added specialized
1131 "align" option and attribute on "figure" element.
1132 - Made ":figwidth: image" option of "figure" directive work again.
1133 - Fixed bug with reference names containing uppercase letters
1134 (e.g. ``Name_``) in "target" option of "image" directive.
1136 * docutils/parsers/rst/directives/misc.py:
1138 - Fixed "include" and "raw" directives to catch text decoding
1140 - Allowed whitespace in "include" & "raw" directive paths.
1141 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1142 settings in "include" & "raw" directives.
1144 * docutils/parsers/rst/directives/parts.py:
1146 - Added "header" & "footer" directives.
1147 - Fixed illegal context bug with "contents" directive (topics
1148 allowed within sidebars; not within body elements).
1150 * docutils/parsers/rst/directives/tables.py:
1152 - Added "list-table" directive.
1153 - Caught empty CSV table bug.
1154 - Added support for the ``file_insertion_enabled`` setting in the
1155 "csv-table" directive.
1156 - Added ``stub-columns`` option to "csv-table" and "list-table"
1159 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1160 mappings by Martijn Pieters.
1162 * docutils/readers/standalone.py:
1164 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1165 options to activate or deactivate the SectSubTitle transform.
1167 * docutils/transforms/frontmatter.py:
1169 - Added SectSubTitle transform to promote titles of lone
1170 subsections to subtitles.
1172 * docutils/transforms/references.py:
1174 - Fixed mislocated internal targets bug, by propagating internal
1175 targets to the next node, making use of the newly added support
1176 for multiple names and IDs.
1177 - Fixed duplicate footnote label bug.
1178 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1181 * docutils/writers/html4css1.py:
1183 - Fixed unencoded stylesheet reference bug (characters like "&" in
1184 stylesheet references).
1185 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1187 - Added support for multiple IDs per node by creating empty ``span``
1189 - Added the ``field_name_limit`` & ``option_limit`` settings &
1191 - Added support for table stub columns.
1192 - Added support for the ``align`` attribute on ``figure`` elements.
1193 - Added the ``cloak_email_addresses`` setting & support.
1194 - Added ``html_prolog``, ``html_head``, ``html_body``,
1195 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1196 ``docutils.core.publish_parts``.
1197 - Added support for section subtitles.
1199 * docutils/writers/latex2e.py:
1201 - Fixed tables starting with more than one multirow cell.
1202 - Improved --use-latex-docinfo so that organization/contact/address
1203 fields are lumped with the last author field and appear on the
1205 - Made sure the titlepage is always shown with --use-latex-docinfo,
1206 even if the document has no title.
1207 - Made sure that latex doesn't fill in today's date if no date field
1209 - Added support for section subtitles.
1211 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1212 (under development).
1214 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1216 * docs/api/publisher.txt:
1218 - Added "``publish_parts`` Details" section.
1220 * docutils/dev/repository.txt: Added to project; information about the
1221 Docutils Subversion repository.
1223 * docs/ref/docutils.dtd:
1225 - Added a ``stub`` attribute to the ``colspec`` element via the
1226 ``tbl.colspec.att`` parameter entity.
1227 - Allowed topic elements within sidebars
1228 - Added an ``align`` attribute to the ``figure`` element.
1230 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1234 Release 0.3.7 (2004-12-24)
1235 ==========================
1237 * docutils/frontend.py:
1239 - Added options: --input-encoding-error-handler,
1240 --record-dependencies, --leave-footnote-reference-space,
1242 - Added command-line and config file support for "overrides" setting
1247 - Added support for input encoding error handler.
1249 * docutils/nodes.py:
1251 - Added dispatch_visit and dispatch_departure methods to
1252 NodeVisitor; useful as a hook for Visitors.
1253 - Changed structure of ``line_block``; added ``line``.
1254 - Added ``compound`` node class.
1255 - Added a mechanism for Visitors to transitionally ignore new node
1258 * docutils/utils.py:
1260 - Moved ``escape2null`` and ``unescape`` functions from
1261 docutils/parsers/rst/states.py.
1263 * docutils/parsers/rst/roles.py:
1266 - Changed role function API: the "text" parameter now takes
1267 null-escaped interpreted text content.
1269 * docutils/parsers/rst/states.py:
1271 - Fixed bug where a "role" directive in a nested parse would crash
1272 the parser; the state machine's "language" attribute was not being
1274 - Added support for line block syntax.
1275 - Fixed directive parsing bug: argument-less directives didn't
1276 notice that arguments were present.
1277 - Removed error checking for transitions.
1278 - Added support for multiple classifiers in definition list items.
1279 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1280 - Changed role function API: the "text" parameter now takes
1281 null-escaped interpreted text content.
1282 - Empty sections and documents are allowed now.
1284 * docutils/parsers/rst/directives/__init__.py:
1286 - Added ``encoding`` directive option conversion function.
1287 - Allow multiple class names in class_option conversion function.
1289 * docutils/parsers/rst/directives/body.py:
1291 - Converted the line-block directive to use the new structure.
1292 - Extracted the old line-block functionality to the ``block``
1293 function (still used).
1294 - Added ``compound`` directive (thanks to Lea Wiemann).
1296 * docutils/parsers/rst/directives/misc.py:
1298 - Added "encoding" option to "include" and "raw" directives.
1299 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1300 - Allow multiple class names in the "class" directive.
1302 * docutils/parsers/rst/directives/parts.py:
1304 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1305 options. Thanks to Lele Gaifax.
1307 * docutils/parsers/rst/directives/tables.py:
1309 - Added "encoding" directive to "csv-table" directive.
1310 - Added workaround for lack of Unicode support in csv.py, for
1311 non-ASCII CSV input.
1313 * docutils/transforms/misc.py:
1315 - Fixed bug when multiple "class" directives are applied to a single
1317 - Enabled multiple format names for "raw" directive.
1319 * docutils/transforms/references.py:
1321 - Added support for trimming whitespace from beside substitution
1324 * docutils/transforms/universal.py:
1326 - FinalChecks now checks for illegal transitions and moves
1327 transitions between sections.
1329 * docutils/writers/html4css1.py:
1331 - HTMLTranslator.encode now converts U+00A0 to " ".
1332 - "stylesheet" and "stylesheet_path" settings are now mutually
1334 - Added support for the new line_block/line structure.
1335 - --footnote-references now overrides
1336 --trim-footnote-reference-space, if applicable.
1337 - Added support for ``compound`` elements.
1338 - Enabled multiple format names for "raw" directive.
1339 - ``<p>`` tags of a paragraph which is the only visible child of the
1340 document node are no longer stripped.
1341 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1342 new method ``should_be_compact_paragraph()``.
1343 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1345 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1346 the output if they have their ``class`` attribute set.
1347 - The whole document is now surrounded by a ``<div
1348 class="document">`` element.
1349 - Body-level images are now wrapped by their own ``<div>`` elements,
1350 with image classes copied to the wrapper, and for images which
1351 have the ``:align:`` option set, the surrounding ``<div>`` now
1352 receives a class attribute (like ``class="align-left"``).
1354 * docutils/writers/latex2e.py:
1356 - no newline after depart_term.
1357 - Added translations for some Unicode quotes.
1358 - Added option "font-encoding", made package AE the default.
1359 - "stylesheet" and "stylesheet_path" settings are now mutually
1361 - --footnote-references now overrides
1362 --trim-footnote-reference-space, if applicable.
1363 - The footnote label style now matches the footnote reference style
1364 ("brackets" or "superscript").
1365 - Added support for ``compound`` elements.
1366 - Enabled multiple format names for "raw" directive.
1368 * docs/ref/docutils.dtd:
1370 - Changed structure of the ``line_block`` element; added ``line``.
1371 - Added ``compound`` element.
1372 - Added "ltrim" and "rtrim" attributes to
1373 ``substitution_definition`` element.
1374 - Enabled multiple format names for ``raw`` element.
1375 - Enabled multiple classifiers in ``definition_list_item`` elements.
1377 * docs/ref/rst/directives.txt
1379 - Marked "line-block" as deprecated.
1380 - "Class" directive now allows multiple class names.
1381 - Added "Rationale for Class Attribute Value Conversion".
1382 - Added warning about "raw" overuse/abuse.
1384 * docs/ref/rst/restructuredtext.txt:
1386 - Added syntax for line blocks.
1387 - Definition list items may have multiple classifiers.
1389 * docs/ref/rst/roles.txt:
1393 * tools/stylesheets/default.css:
1395 - Added support for the new line_block structure.
1396 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1399 Release 0.3.5 (2004-07-29)
1400 ==========================
1404 * _`Documentation cleanup/reorganization`.
1406 - Created new subdirectories of docs/:
1408 * ``docs/user/``: introductory/tutorial material for end-users
1409 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1410 * ``docs/api/``: API reference material for client-developers
1411 * ``docs/ref/``: reference material for all groups
1412 * ``docs/howto/``: for component-developers and core-developers
1413 * ``docs/peps/``: Python Enhancement Proposals
1415 - Moved ``docs/*`` to ``docs/user/``.
1416 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1417 ``spec/`` to ``docs/dev``.
1418 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1419 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1420 - Moved ``alternatives.txt``, and ``problems.txt`` from
1421 ``spec/rst/`` to ``docs/dev/rst/``.
1422 - Moved ``reStructuredText.txt``, ``directives.txt``,
1423 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1424 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1425 ``roles.txt``, ``reStructuredText.txt`` to
1426 ``restructuredtext.txt``.
1427 - Moved ``spec/howto/`` to ``docs/howto``.
1429 In order to keep the CVS history of moved files, we supplied
1430 SourceForge with a `script for modifying the Docutils CVS
1433 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1435 After running the cleanup script:
1437 - Added ``docs/index.txt``.
1438 - Added a ``.htaccess`` file to the ``web`` module, containing
1439 redirects for all old paths to new paths. They'll preserve
1440 fragments (the "#name" part of a URL), and won't clutter up the
1441 file system, and will correct the URL in the user's browser.
1442 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1443 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1444 the "To Do" list itself in ``docs/dev/todo.txt``.
1445 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1446 section of ``docs/dev/todo.txt``.
1447 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1448 - Added "How To Report Bugs" to ``BUGS.txt``.
1449 - Went through all the sources and docs (including under web/) and
1450 updated links. Mostly done by Lea Wiemann; thanks Lea!
1451 (Still need to update links in the sandboxes.)
1455 * BUGS.txt: Added to project.
1457 * THANKS.txt: Added to project.
1459 * docutils/__init__.py:
1461 - 0.3.4: Post-release.
1465 - Added special error handling & advice for UnicodeEncodeError.
1466 - Refactored Publisher.publish (simplified exception handling &
1467 extracted debug dumps).
1468 - Renamed "enable_exit" parameter of convenience functions to
1469 "enable_exit_status".
1470 - Enabled traceback (exception propagation) by default in
1471 programmatic convenience functions.
1472 - Now publish_file and publish_cmdline convenience functions return
1473 the encoded string results in addition to their regular I/O.
1474 - Extracted common code from publish_file, publish_string, and
1475 publish_parts, into new publish_programmatically. Extracted
1476 settings code to ``Publisher.process_programmatic_settings``.
1477 - In Publisher.publish, disabled ``settings_overrides`` when
1478 ``settings`` is supplied; redundant.
1480 * docutils/frontend.py:
1482 - Added help text for "--output-encoding-error-handler" and
1483 "--error-encoding-error-handler".
1484 - Renamed "--exit" to "--exit-status".
1485 - Simplified default-setting code.
1487 * docutils/parsers/rst/__init__.py:
1489 - Added "--pep-base-url" and "--rfc-base-url" options.
1491 * docutils/parsers/rst/states.py:
1493 - Made URI recognition more aggressive and intelligent.
1495 * docutils/parsers/rst/directives/__init__.py:
1497 - Added several directive option conversion functions.
1499 * docutils/parsers/rst/directives/body.py:
1501 - Moved "table" directive to tables.py.
1503 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1506 * docutils/writers/latex2e.py:
1508 - Added "--table-style=(standard|booktabs|nolines)"
1509 - figures get "here" option (LaTeX per default puts them at bottom),
1510 and figure content is centered.
1511 - Rowspan support for tables.
1512 - Fix: admonition titles before first section.
1513 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1514 - Replave ``_`` in literal by an underlined blank, because it has the correct
1516 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1517 - A few unicode replacements, if output_encoding != utf
1518 - Add "--graphicx-option".
1519 - Indent literal-blocks.
1520 - Fix: omit ``\maketitle`` when there is no document title.
1522 * docs/index.txt: "Docutils Project Documentation Overview", added to
1525 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1526 Tool", added to project.
1528 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1530 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1532 * docs/dev/policies.txt: Added to project (extracted from
1533 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1535 * docs/dev/release.txt: Added to project (extracted from
1536 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1538 * docs/dev/testing.txt: Added to project.
1540 * docs/dev/website.txt: Added to project (extracted from
1541 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1543 * docs/ref/rst/directives.txt:
1545 - Added directives: "table", "csv-table".
1547 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1548 added to project. 1 page for syntax, and a 1 page reference for
1549 directives and roles. Source text to be used as-is; not meant to be
1552 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1553 with a change of title.
1555 * test/functional/, contents, and test/test_functional.py: Added to
1558 * tools/buildhtml.py: Fixed bug with config file handling.
1560 * tools/html.py: Removed from project (duplicate of rst2html.py).
1562 * tools/pep2html.py: Removed from project (duplicate of Python's
1563 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1564 Docutils-related PEPs in docs/peps/).
1566 * tools/rst2pseudoxml.py: Renamed from publish.py.
1568 * tools/rst2xml.py: Renamed from docutils-xml.py.
1570 * tools/test.txt: Removed from project; moved to
1571 docs/user/rst/demo.txt.
1573 * setup.py: Now also installs ``rst2latex.py``.
1576 Release 0.3.3 (2004-05-09)
1577 ==========================
1579 * docutils/__init__.py:
1581 - 0.3.1: Reorganized config file format (multiple sections); see
1583 - Added unknown_reference_resolvers attribute to TransformSpec.
1584 - 0.3.2: Interpreted text reorganization.
1589 - Catch system messages to stop tracebacks from parsing errors.
1590 - Catch exceptions during processing report & exit without
1591 tracebacks, except when "--traceback" used.
1592 - Reordered components for OptionParser; application comes last.
1593 - Added "config_section" parameter to several methods and functions,
1594 allowing front ends to easily specify their config file sections.
1595 - Added publish_parts convenience function to allow access to individual
1596 parts of a document.
1598 * docutils/examples.py: Added to project; practical examples of
1599 Docutils client code, to be used as-is or as models for variations.
1601 * docutils/frontend.py:
1603 - Added "--traceback" & "--no-traceback" options ("traceback"
1605 - Implemented support for config file reorganization:
1606 ``standard_config_files`` moved from ``ConfigParser`` to
1607 ``OptionParser``; added
1608 ``OptionParser.get_config_file_settings()`` and
1609 ``.get_standard_config_settings()``; support for old "[options]"
1610 section (with deprecation warning) and mapping from old to new
1612 - Reimplemented setting validation.
1613 - Enabled flexible boolean values: yes/no, true/false, on/off.
1614 - Added ``Values``, a subclass of ``optparse.Values``, with support
1615 for list setting attributes.
1616 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1617 thanks to Beni Cherniavsky.
1618 - Added "--no-section-numbering" option.
1622 - Catch IOErrors when opening source & destination files, report &
1623 exit without tracebacks. Added ``handle_io_errors`` parameter to
1624 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1626 * docutils/nodes.py:
1628 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1629 method definitions (via ``exec``) to dynamic assignments (via
1630 ``setattr``); thanks to Roman Suzi.
1631 - Encapsulated visitor dynamic assignments in a function; thanks to
1633 - Added indirect_reference_name attribute to the Targetable
1634 class. This attribute holds the whitespace_normalized_name
1635 (contains mixed case) of a target.
1637 * docutils/statemachine.py:
1639 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1640 - Added ``StringList.get_2D_block``.
1642 * docutils/utils.py:
1644 - Added "level" attribute to SystemMessage exceptions.
1646 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1649 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1652 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1653 Marcelo Huerta San Martin.
1655 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1656 mappings by Lalo Martins.
1658 * docutils/languages/ru.py: Added to project; Russian mappings by
1661 * docutils/parsers/rst/roles.py: Added to project. Contains
1662 interpreted text role functions, a registry for interpreted text
1663 roles, and an API for adding to and retrieving from the registry.
1664 Contributed by Edward Loper.
1666 * docutils/parsers/rst/states.py:
1668 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1669 - Allowed true em-dash character and "---" as block quote
1671 - Added support for <angle-bracketed> complex option arguments
1673 - Fixed handling of backslashes in substitution definitions.
1674 - Fixed off-by-1 error with extra whitespace after substitution
1675 definition directive.
1676 - Added inline markup parsing to field lists' field names.
1677 - Added support for quoted (and unindented) literal blocks.
1678 Driven in part by a bribe from Frank Siebenlist (thanks!).
1679 - Parser now handles escapes in URIs correctly.
1680 - Made embedded-URIs' reference text omittable. Idea from Beni
1682 - Refactored explicit target processing code.
1683 - Added name attribute to references containing the reference name only
1684 through whitespace_normalize_name (no case changes).
1685 - parse_target no longer returns the refname after going through
1686 normalize_name. This is now handled in make_target.
1687 - Fixed bug relating to role-less interpreted text in non-English
1689 - Reorganized interpreted text processing; moved code into the new
1690 roles.py module. Contributed by Edward Loper.
1691 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1692 ``parse_directive_block``.
1694 * docutils/parsers/rst/tableparser.py:
1696 - Reworked for ``StringList``, to support "include" directives in
1699 * docutils/parsers/rst/directives/__init__.py:
1701 - Renamed ``unchanged()`` directive option conversion function to
1702 ``unchanged_required``, and added a new ``unchanged``.
1703 - Catch unicode value too high error; fixes bug 781766.
1704 - Beefed up directive error reporting.
1706 * docutils/parsers/rst/directives/body.py:
1708 - Added basic "table" directive.
1710 * docutils/parsers/rst/directives/images.py:
1712 - Added "target" option to "image" directive.
1713 - Added name attribute to references containing the reference name only
1714 through whitespace_normalize_name (no case changes).
1716 * docutils/parsers/rst/directives/misc.py:
1718 - Isolated the import of the ``urllib2`` module; was causing
1719 problems on SourceForge (``libssl.so.2`` unavailable?).
1720 - Added the "role" directive for declaring custom interpreted text
1723 * docutils/parsers/rst/directives/parts.py:
1725 - The "contents" directive does more work up-front, creating the
1726 "topic" and "title", and leaving the "pending" node for the
1727 transform. Allows earlier reference resolution; fixes subtle bug.
1729 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1730 mappings by Jannie Hofmeyr.
1732 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1733 mappings by Marek Blaha.
1735 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1736 mappings by Marcelo Huerta San Martin.
1738 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1739 Portuguese mappings by Lalo Martins.
1741 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1742 mappings by Roman Suzi.
1744 * docutils/transforms/parts.py:
1746 - The "contents" directive does more work up-front, creating the
1747 "topic" and "title", and leaving the "pending" node for the
1748 transform. Allows earlier reference resolution; fixes subtle bug.
1749 - Added support for disabling of section numbering.
1751 * docutils/transforms/references.py:
1753 - Verifying that external targets are truly targets and not indirect
1754 references. This is because we are now adding a "name" attribute to
1755 references in addition to targets. Note sure if this is correct!
1756 - Added code to hook into the unknown_reference_resolvers list for a
1757 transformer in resolve_indirect_target. This allows the
1758 unknown_reference_resolvers to keep around indirect targets which
1759 docutils doesn't know about.
1760 - Added specific error message for duplicate targets.
1762 * docutils/transforms/universal.py:
1764 - Added FilterMessages transform (removes system messages below the
1765 verbosity threshold).
1766 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1767 to FinalCheckVisitor for application-specific handling of
1768 unresolvable references.
1769 - Added specific error message for duplicate targets.
1771 * docutils/writers/__init__.py:
1773 - Added assemble_parts method to the Writer class to allow for
1774 access to a documents individual parts.
1775 - Documented & set default for ``Writer.output`` attribute.
1777 * docutils/writers/html4css1.py:
1779 - Fixed unicode handling of attribute values (bug 760673).
1780 - Prevent duplication of "class" attribute values (bug report from
1782 - Improved table grid/border handling (prompted by report from Bob
1784 - Added support for table titles.
1785 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1787 - Added functionality to keep track of individual parts of a document
1788 and store them in a dictionary as the "parts" attribute of the writer.
1789 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1790 - Added proper support for the "scale" attribute of the "image"
1791 element. Contributed by Brent Cook.
1792 - Added ``--initial-header-level`` option.
1793 - Fixed bug: the body_pre_docinfo segment depended on there being a
1794 docinfo; if no docinfo, the document title was incorporated into
1795 the body segment. Adversely affected the publish_parts interface.
1797 * docutils/writers/latex2e.py:
1799 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1800 about a missing file.
1801 - Added options and support: ``--compound-enumerators``,
1802 ``--section-prefix-for-enumerators``, and
1803 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1805 - Added option ``--use-verbatim-when-possible``, to avoid
1806 problematic characters (eg, '~' in italian) in literal blocks.
1807 - It's now possible to use four section levels in the `book` and
1808 `report` LaTeX classes. The default `article` class still has
1811 * docs/config.txt: "Docutils Configuration Files", added to project.
1812 Moved config file entry descriptions from tools.txt.
1816 - Moved config file entry descriptions to config.txt.
1818 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1821 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1822 Text Roles", added to project.
1824 * spec/rst/reStructuredText.txt:
1826 - Added description of support for <angle-bracketed> complex option
1827 arguments to option lists.
1828 - Added subsections for indented and quoted literal blocks.
1830 * test: Continually adding & updating tests.
1832 - Added test/test_settings.py & test/data/config_*.txt support
1834 - Added test/test_writers/test_htmlfragment.py.
1836 * test/DocutilsTestSupport.py:
1838 - Refactored LaTeX publisher test suite/case class names to make
1839 testing other writers easier.
1840 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1841 to test the processing of HTML fragments which use the new
1842 publish_parts convenience function.
1844 * tools/buildhtml.py:
1846 - Added support for the "--prune" option.
1847 - Removed dependency on pep2html.py; plaintext PEPs no longer
1850 * tools/docutils.conf:
1852 - Updated for configuration file reorganization.
1854 * tools/rst2html.py:
1856 - copied from tools/html.py
1860 - added a 'scripts' section to configuration
1861 - added 'tools/rst2html.py' to the scripts section
1864 Release 0.3 (2003-06-24)
1865 ========================
1869 * Renamed "attribute" to "option" for directives/extensions.
1871 * Renamed transform method "transform" to "apply".
1873 * Renamed "options" to "settings" for runtime settings (as set by
1874 command-line options). Sometimes "option" (singular) became
1875 "settings" (plural). Some variations below:
1877 - document.options -> document.settings (stored in other objects as
1879 - option_spec -> settings_spec (not directives though)
1880 - OptionSpec -> SettingsSpec
1881 - cmdline_options -> settings_spec
1882 - relative_path_options -> relative_path_settings
1883 - option_default_overrides -> settings_default_overrides
1884 - Publisher.set_options -> Publisher.get_settings
1888 * COPYING.txt: Added "Public Domain Dedication".
1890 * FAQ.txt: Frequently asked questions, added to project.
1894 - Updated with PyPI Trove classifiers.
1895 - Conditional installation of third-party modules.
1897 * docutils/__init__.py:
1899 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1900 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1901 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1902 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1903 option and its effect on the PEP template & writer.
1904 - Bumped version to 0.2.4 due to changes to the PEP template &
1906 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1907 - Added ``TransformSpec`` class for new transform system.
1908 - Bumped version to 0.2.6 for API changes (renaming).
1909 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1910 convenience functions.
1911 - Added ``Component.component_type`` attribute.
1912 - Bumped version to 0.2.8 because of the internal parser switch from
1913 plain lists to the docutils.statemachine.StringList objects.
1914 - Bumped version to 0.2.9 because of the frontend.py API changes.
1915 - Bumped version to 0.2.10 due to changes to the project layout
1916 (third-party modules removed from the "docutils" package), and
1917 signature changes in ``io.Input``/``io.Output``.
1918 - Changed version to 0.3.0 for release.
1922 - Made ``publish()`` a bit more convenient.
1923 - Generalized ``Publisher.set_io``.
1924 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1925 parameters; improved its docstring.
1926 - Added ``publish_file()`` and ``publish_string()``.
1927 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1929 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1930 "--dump-transforms" hidden options.
1931 - Added ``Publisher.apply_transforms()`` method.
1932 - Added ``Publisher.set_components()`` method; support for
1933 ``publish_*()`` conveninece functions.
1934 - Moved config file processing to docutils/frontend.py.
1935 - Added support for exit status ("exit_level" setting &
1936 ``enable_exit`` parameter for Publisher.publish() and convenience
1939 * docutils/frontend.py:
1941 - Check for & exit on identical source & destination paths.
1942 - Fixed bug with absolute paths & "--config".
1943 - Set non-command-line defaults in ``OptionParser.__init__()``:
1944 ``_source`` & ``_destination``.
1945 - Distributed ``relative_path_settings`` to components; updated
1946 ``OptionParser.populate_from_components()`` to combine it all.
1947 - Require list of keys in ``make_paths_absolute`` (was implicit in
1948 global ``relative_path_settings``).
1949 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1950 "--dump-settings", and "--dump-transforms" hidden options.
1951 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1952 code, replaced with correct code.
1953 - Added validation functionality for config files.
1954 - Added "--error-encoding" option/setting, "_disable_config"
1956 - Added encoding validation; updated "--input-encoding" and
1957 "--output-encoding"; added "--error-encoding-error-handler" and
1958 "--output-encoding-error-handler".
1959 - Moved config file processing from docutils/core.py.
1960 - Updated ``OptionParser.populate_from_components`` to handle new
1961 ``SettingsSpec.settings_defaults`` dict.
1962 - Added support for "-" => stdin/stdout.
1963 - Added "exit_level" setting ("--exit" option).
1967 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1968 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1969 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1970 - ``FileOutput.write()`` now returns the encoded output string.
1971 - Try to get path/stream name automatically in ``FileInput`` &
1973 - Added defaults for source & destination paths.
1974 - Allow for Unicode I/O with an explicit "unicode" encoding.
1975 - Added ``Output.encode()``.
1976 - Removed dependency on runtime settings; pass encoding directly.
1977 - Recognize Unicode strings in ``Input.decode()``.
1978 - Added support for output encoding error handlers.
1980 * docutils/nodes.py:
1982 - Added "Invisible" element category class.
1983 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1984 modification during a traversal.
1985 - Added element classes: ``line_block``, ``generated``, ``address``,
1986 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1987 ``superscript``, ``subscript``, ``inline``
1988 - Added support for lists of nodes to ``Element.insert()``.
1989 - Fixed parent linking in ``Element.replace()``.
1990 - Added new abstract superclass ``FixedTextElement``; adds
1991 "xml:space" attribute.
1992 - Added support for "line" attribute of ``system_message`` nodes.
1993 - Added support for the observer pattern from ``utils.Reporter``.
1994 Added ``parse_messages`` and ``transform_messages`` attributes to
1995 ``document``, removed ``messages``. Added ``note_parse_message``
1996 and ``note_transform_message`` methods.
1997 - Added support for improved diagnostics:
1999 - Added "document", "source", and "line" internal attributes to
2000 ``Node``, set by ``Node.setup_child()``.
2001 - Converted variations on ``node.parent = self`` to
2002 ``self.setup_child(node)``.
2003 - Added ``document.current_source`` & ``.current_line``
2004 attributes, and ``.note_source`` observer method.
2005 - Changed "system_message" output to GNU-Tools format.
2007 - Added a "rawsource" attribute to the ``Text`` class, for text
2008 before backslash-escape resolution.
2009 - Support for new transform system.
2010 - Reworked ``pending`` element.
2011 - Fixed XML DOM bug (SF #660611).
2012 - Removed the ``interpeted`` element class and added
2013 ``title_reference``, ``abbreviation``, ``acronym``.
2014 - Made substitutions case-sensitive-but-forgiving; moved some code
2016 - Fixed Unicode bug on element attributes (report: William Dode).
2018 * docutils/optik.py: Removed from project; replaced with
2019 extras/optparse.py and extras/textwrap.py. These will be installed
2020 only if they're not already present in the Python installation.
2022 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2023 only if it's not already present in the Python installation.
2025 * docutils/statemachine.py:
2027 - Factored out ``State.add_initial_transitions()`` so it can be
2029 - Converted whitespace-specific "blank" and "indent" transitions
2030 from special-case code to ordinary transitions: removed
2031 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2032 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2033 ``ws_initial_transitions`` attributes.
2034 - Removed ``State.match_transition()`` after merging it into
2036 - Added ``StateCorrection`` exception.
2037 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2038 (moved ``TransitionCorrection`` support there too.)
2039 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2040 ``EOFError`` instead of ``IndexError``.
2041 - Added ``State.no_match`` method.
2042 - Added support for the Observer pattern, triggered by input line
2044 - Added ``strip_top`` parameter to
2045 ``StateMachineWS.get_first_known_indented``.
2046 - Made ``context`` a parameter to ``StateMachine.run()``.
2047 - Added ``ViewList`` & ``StringList`` classes;
2048 ``extract_indented()`` becomes ``StringList.get_indented()``.
2049 - Added ``StateMachine.insert_input()``.
2050 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2051 thanks to) Fred Drake.
2053 * docutils/utils.py:
2055 - Added a ``source`` attribute to Reporter instances and
2056 ``system_message`` elements.
2057 - Added an observer pattern to ``utils.Reporter`` to keep track of
2059 - Fixed bugs in ``relative_path()``.
2060 - Added support for improved diagnostics.
2061 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2062 - Added support for encoding Reporter stderr output, and encoding
2064 - Reporter keeps track of the highest level system message yet
2067 * docutils/languages: Fixed bibliographic field language lookups.
2069 * docutils/languages/es.py: Added to project; Spanish mappings by
2070 Marcelo Huerta San Martin.
2072 * docutils/languages/fr.py: Added to project; French mappings by
2075 * docutils/languages/it.py: Added to project; Italian mappings by
2078 * docutils/languages/sk.py: Added to project; Slovak mappings by
2081 * docutils/parser/__init__.py:
2083 - Added ``Parser.finish_parse()`` method.
2085 * docutils/parser/rst/__init__.py:
2087 - Added options: "--pep-references", "--rfc-references",
2088 "--tab-width", "--trim-footnote-reference-space".
2090 * docutils/parsers/rst/states.py:
2092 - Changed "title under/overline too short" system messages from INFO
2093 to WARNING, and fixed its insertion location.
2094 - Fixed enumerated list item parsing to allow paragraphs & section
2095 titles to begin with enumerators.
2096 - Converted system messages to use the new "line" attribute.
2097 - Fixed a substitution reference edge case.
2098 - Added support for "--pep-references" and "--rfc-references"
2099 options; reworked ``Inliner`` code to make customization easier.
2100 - Removed field argument parsing.
2101 - Added support for short section title over/underlines.
2102 - Fixed "simple reference name" regexp to ignore text like
2103 "object.__method__"; not an anonymous reference.
2104 - Added support for improved diagnostics.
2105 - Reworked directive API, based on Dethe Elza's contribution. Added
2106 ``Body.parse_directive()``, ``.parse_directive_options()``,
2107 ``.parse_directive_arguments()`` methods.
2108 - Added ``ExtensionOptions`` class, to parse directive options
2109 without parsing field bodies. Factored
2110 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2111 ``ExtensionOptions``.
2112 - Improved definition list term/classifier parsing.
2113 - Added warnings for unknown directives.
2114 - Renamed ``Stuff`` to ``Struct``.
2115 - Now flagged as errors: transitions at the beginning or end of
2116 sections, empty sections (except title), and empty documents.
2117 - Updated for ``statemachine.StringList``.
2118 - Enabled recognition of schemeless email addresses in targets.
2119 - Added support for embedded URIs in hyperlink references.
2120 - Added backslash-escapes to inline markup end-string suffix.
2121 - Added support for correct interpreted text processing.
2122 - Fixed nested title parsing (topic, sidebar directives).
2123 - Added special processing of backslash-escaped whitespace (idea
2124 from David Abrahams).
2125 - Made substitutions case-sensitive-but-forgiving; moved some code
2126 to ``docutils.nodes``.
2127 - Added support for block quote attributions.
2128 - Added a kludge to work-around a conflict between the bubble-up
2129 parser strategy and short titles (<= 3 char-long over- &
2130 underlines). Fixes SF bug #738803 "infinite loop with multiple
2131 titles" submitted by Jason Diamond.
2132 - Added explicit interpreted text roles for standard inline markup:
2133 "emphasis", "strong", "literal".
2134 - Implemented "superscript" and "subscript" interpreted text roles.
2135 - Added initial support for "abbreviation" and "acronym" roles;
2137 - Added support for "--trim-footnote-reference-space" option.
2138 - Optional space before colons in directives & hyperlink targets.
2140 * docutils/parsers/rst/tableparser.py:
2142 - Fixed a bug that was producing unwanted empty rows in "simple"
2144 - Detect bad column spans in "simple" tables.
2146 * docutils/parsers/rst/directives: Updated all directive functions to
2149 * docutils/parsers/rst/directives/__init__.py:
2151 - Added ``flag()``, ``unchanged()``, ``path()``,
2152 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2153 directive option helper functions.
2154 - Added warnings for unknown directives.
2155 - Return ``None`` for missing directives.
2156 - Added ``register_directive()``, thanks to William Dode and Paul
2159 * docutils/parsers/rst/directives/admonitions.py:
2161 - Added "admonition" directive.
2163 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2164 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2165 "parsed-literal", "rubric", "epigraph", "highlights" and
2166 "pull-quote" directives.
2168 * docutils/parsers/rst/directives/images.py:
2170 - Added an "align" attribute to the "image" & "figure" directives
2171 (by Adam Chodorowski).
2172 - Added "class" option to "image", and "figclass" to "figure".
2174 * docutils/parsers/rst/directives/misc.py:
2176 - Added "include", "raw", and "replace" directives, courtesy of
2178 - Added "unicode" and "class" directives.
2180 * docutils/parsers/rst/directives/parts.py:
2182 - Added the "sectnum" directive; by Dmitry Jemerov.
2183 - Added "class" option to "contents" directive.
2185 * docutils/parsers/rst/directives/references.py: Added to project.
2186 Contains the "target-notes" directive.
2188 * docutils/parsers/rst/languages/__init__.py:
2190 - Return ``None`` from get_language() for missing language modules.
2192 * docutils/parsers/rst/languages/de.py: Added to project; German
2193 mappings by Engelbert Gruber.
2195 * docutils/parsers/rst/languages/en.py:
2197 - Added interpreted text roles mapping.
2199 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2200 mappings by Marcelo Huerta San Martin.
2202 * docutils/parsers/rst/languages/fr.py: Added to project; French
2203 mappings by William Dode.
2205 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2206 mappings by Nicola Larosa.
2208 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2209 mappings by Miroslav Vasko.
2211 * docutils/readers/__init__.py:
2213 - Added support for the observer pattern from ``utils.Reporter``, in
2214 ``Reader.parse`` and ``Reader.transform``.
2215 - Removed ``Reader.transform()`` method.
2216 - Added default parameter values to ``Reader.__init__()`` to make
2217 instantiation easier.
2218 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2220 * docutils/readers/pep.py:
2222 - Added the ``peps.TargetNotes`` transform to the Reader.
2223 - Removed PEP & RFC reference detection code; moved to
2224 parsers/rst/states.py as options (enabled here by default).
2225 - Added support for pre-acceptance PEPs (no PEP number yet).
2226 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2229 * docutils/readers/python: Python Source Reader subpackage added to
2230 project, including preliminary versions of:
2233 - moduleparser.py: Parser for Python modules.
2235 * docutils/transforms/__init__.py:
2237 - Added ``Transformer`` class and completed transform reform.
2238 - Added unknown_reference_resolvers list for each transformer. This list holds
2239 the list of functions provided by each component of the transformer that
2240 help resolve references.
2242 * docutils/transforms/frontmatter.py:
2244 - Improved support for generic fields.
2245 - Fixed bibliographic field language lookups.
2247 * docutils/transforms/misc.py: Added to project. Miscellaneous
2250 * docutils/transforms/parts.py:
2252 - Moved the "id" attribute from TOC list items to the references
2253 (``Contents.build_contents()``).
2254 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2255 - Added "class" attribute support to ``Contents``.
2257 * docutils/transforms/peps.py:
2259 - Added ``mask_email()`` function, updating to pep2html.py's
2261 - Linked "Content-Type: text/x-rst" to PEP 12.
2262 - Added the ``TargetNotes`` PEP-specific transform.
2263 - Added ``TargetNotes.cleanup_callback``.
2264 - Added title check to ``Headers``.
2266 * docutils/transforms/references.py:
2268 - Added the ``TargetNotes`` generic transform.
2269 - Split ``Hyperlinks`` into multiple transforms.
2270 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2271 - Added check for circular indirect references.
2272 - Made substitutions case-sensitive-but-forgiving.
2274 * docutils/transforms/universal.py:
2276 - Added support for the "--expose-internal-attributes" option.
2277 - Removed ``Pending`` transform classes & data.
2279 * docutils/writers/__init__.py:
2281 - Removed ``Writer.transform()`` method.
2283 * docutils/writers/docutils-xml.py:
2285 - Added XML and doctype declarations.
2286 - Added "--no-doctype" and "--no-xml-declaration" options.
2288 * docutils/writers/html4css1.py:
2290 - "name" attributes only on these tags: a, applet, form, frame,
2292 - Added "name" attribute to <a> in section titles for Netscape 4
2293 support (bug report: Pearu Peterson).
2294 - Fixed targets (names) on footnote, citation, topic title,
2295 problematic, and system_message nodes (for Netscape 4).
2296 - Changed field names from "<td>" to "<th>".
2297 - Added "@" to "@" encoding to thwart address harvesters.
2298 - Improved the vertical whitespace optimization; ignore "invisible"
2299 nodes (targets, comments, etc.).
2300 - Improved inline literals with ``<span class="pre">`` around chunks
2301 of text and `` `` for runs of spaces.
2302 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2303 ``self.docinfo`` segments.
2304 - Added support for "line_block", "address" elements.
2305 - Improved backlinks (footnotes & system_messages).
2306 - Improved system_message output.
2307 - Redefined "--stylesheet" as containing an invariant URL, used
2308 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2310 - Added "--footnote-references" option (superscript or brackets).
2311 - Added "--compact-lists" and "--no-compact-lists" options.
2312 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2313 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2314 - Improved field list rendering.
2315 - Added Docutils version to "generator" meta tag.
2316 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2317 - Improved layout of <pre> HTML source.
2318 - Fixed attribute typo on <colspec>.
2319 - Refined XML prologue.
2320 - Support for no stylesheet.
2321 - Removed "interpreted" element support.
2322 - Added support for "title_reference", "sidebar", "attribution",
2323 "rubric", and generic "admonition" elements.
2324 - Added "--attribution" option.
2325 - Added support for "inline", "subscript", "superscript" elements.
2326 - Added initial support for "abbreviation" and "acronym";
2329 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2333 - Double quotes in literal blocks (special treatment for de/ngerman).
2334 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2335 - Added "--attribution" option.
2336 - Right align attributions.
2338 * docutils/writers/pep_html.py:
2340 - Parameterized output encoding in PEP template.
2341 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2342 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2343 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2345 - Added an override on the "--footnote-references" option.
2346 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2347 - Added Docutils version to "generator" meta tag.
2348 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2352 - Added a "silent" setting for ``buildhtml.py``.
2353 - Added a "Getting Help" section.
2354 - Rearranged the structure.
2355 - Kept up to date, with new settings, command-line options etc.
2356 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2357 - Converted settings table into a definition list.
2359 * docs/rst/quickstart.txt:
2361 - Added a table of contents.
2362 - Added feedback information.
2363 - Added mention of minimum section title underline lengths.
2364 - Removed the 4-character minimum for section title underlines.
2366 * docs/rst/quickref.html:
2368 - Added a "Getting Help" section.
2369 - Added a style to make section title backlinks more subtle.
2370 - Added mention of minimum section title underline lengths.
2371 - Removed the 4-character minimum for section title underlines.
2373 * extras: Directory added to project; contains third-party modules
2374 that Docutils depends on (optparse, textwrap, roman). These are
2375 only installed if they're not already present.
2377 * licenses: Directory added to project; contains copies of license
2378 files for non-public-domain files.
2382 - Changed the focus. It's about DTD elements: structural
2383 relationships, semantics, and external (public) attributes. Not
2384 about the element class library.
2385 - Moved some implementation-specific stuff into ``docutils.nodes``
2387 - Wrote descriptions of all common attributes and parameter
2388 entities. Filled in introductory material.
2389 - Working through the element descriptions: 55 down, 37 to go.
2390 - Removed "Representation of Horizontal Rules" to
2391 spec/rst/alternatives.txt.
2393 * spec/docutils.dtd:
2395 - Added "generated" inline element.
2396 - Added "line_block" body element.
2397 - Added "auto" attribute to "title".
2398 - Changed content models of "literal_block" and "doctest_block" to
2400 - Added ``%number;`` attribute type parameter entity.
2401 - Changed ``%structural.elements;`` to ``%section.elements``.
2402 - Updated attribute types; made more specific.
2403 - Added "address" bibliographic element.
2404 - Added "line" attribute to ``system_message`` element.
2405 - Removed "field_argument" element; "field_name" may contain
2406 multiple words and whitespace.
2407 - Changed public identifier to docutils.sf.net.
2408 - Removed "interpreted" element; added "title_reference",
2409 "abbreviation", "acronym".
2410 - Removed "refuri" attribute from "footnote_reference" and
2411 "citation_reference".
2412 - Added "sidebar", "rubric", "attribution", "admonition",
2413 "superscript", "subscript", and "inline" elements.
2415 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2417 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2419 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2421 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2424 * spec/transforms.txt: Added to project.
2426 * spec/howto: Added subdirectory, for developer how-to docs.
2428 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2429 Elza, edited & extended by David Goodger.
2431 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2434 * spec/rst/alternatives.txt:
2436 - Added "Doctree Representation of Transitions" from
2438 - Updated "Inline External Targets" & closed the debate.
2439 - Added ideas for interpreted text syntax extensions.
2440 - Added "Nested Inline Markup" section.
2442 * spec/rst/directives.txt:
2444 - Added directives: "topic", "sectnum", "target-notes",
2445 "line-block", "parsed-literal", "include", "replace", "sidebar",
2446 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2448 - Formalized descriptions of directive details.
2449 - Added an "align" attribute to the "image" & "figure" directives
2450 (by Adam Chodorowski).
2451 - Added "class" options to "topic", "sidebar", "line-block",
2452 "parsed-literal", "contents", and "image"; and "figclass" to
2455 * spec/rst/interpreted.txt: Added to project. Descriptions of
2456 interpreted text roles.
2458 * spec/rst/introduction.txt:
2460 - Added pointers to material for new users.
2462 * spec/rst/reStructuredText.txt:
2464 - Disambiguated comments (just add a newline after the "::").
2465 - Updated enumerated list description; added a discussion of the
2466 second-line validity checking.
2467 - Updated directive description.
2468 - Added a note redirecting newbies to the user docs.
2469 - Expanded description of inline markup start-strings in non-markup
2471 - Removed field arguments and made field lists a generic construct.
2472 - Removed the 4-character minimum for section title underlines.
2473 - Clarified term/classifier delimiter & inline markup ambiguity
2475 - Added "Embedded URIs".
2476 - Updated "Interpreted Text" section.
2477 - Added "Character-Level Inline Markup" section.
2479 * test: Continually adding & updating tests.
2481 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2482 - Moved test/test_pep/ to test/test_readers/test_pep/.
2483 - Added test/test_readers/test_python/.
2484 - Added test/test_writers/ (Engelbert Gruber).
2488 - Made the ``locale.setlocale()`` calls in front ends
2491 * tools/buildhtml.py:
2493 - Added "--silent" option.
2494 - Fixed bug with absolute paths & "--config".
2495 - Updated for new I/O classes.
2496 - Added some exception handling.
2497 - Separated publishers' setting defaults; prevents interference.
2498 - Updated for new ``publish_file()`` convenience function.
2500 * tools/pep-html-template:
2502 - Allow for "--embed-stylesheet".
2503 - Added Docutils version to "generator" meta tag.
2504 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2505 - Conform to XHTML spec.
2507 * tools/pep2html.py:
2509 - Made ``argv`` a parameter to ``main()``.
2510 - Added support for "Content-Type:" header & arbitrary PEP formats.
2511 - Linked "Content-Type: text/plain" to PEP 9.
2512 - Files skipped (due to an error) are not pushed onto the server.
2513 - Updated for new I/O classes.
2514 - Added ``check_requirements()`` & ``pep_type_error()``.
2515 - Added some exception handling.
2516 - Updated for new ``publish_string()`` convenience function.
2517 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2519 * tools/quicktest.py:
2521 - Added "-V"/"--version" option.
2523 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2525 * tools/unicode2rstsubs.py: Added to project. Produces character
2526 entity files (reSructuredText substitutions) from the MathML master
2529 * tools/editors: Support code for editors, added to project. Contains
2530 ``emacs/restructuredtext.el``.
2532 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2534 - Added style for chunks of inline literals.
2535 - Removed margin for first child of table cells.
2536 - Right-aligned field list names.
2537 - Support for auto-numbered section titles in TOCs.
2538 - Increased the size of inline literals (<tt>) in titles.
2539 - Restored the light gray background for inline literals.
2540 - Added support for "line_block" elements.
2541 - Added style for "address" elements.
2542 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2543 - Improved field list rendering.
2544 - Vertical whitespace improvements.
2545 - Removed "a.target" style.
2547 * tools/stylesheets/pep.css:
2549 - Fixed nested section margins.
2550 - Other changes parallel those of ``../default.css``.
2553 Release 0.2 (2002-07-31)
2554 ========================
2558 - The word "component" was being used ambiguously. From now on,
2559 "component" will be used to mean "Docutils component", as in Reader,
2560 Writer, Parser, or Transform. Portions of documents (Table of
2561 Contents, sections, etc.) will be called "document parts".
2562 - Did a grand renaming: a lot of ``verylongnames`` became
2563 ``very_long_names``.
2564 - Cleaned up imports: no more relative package imports or
2565 comma-separated lists of top-level modules.
2566 - Added support for an option values object which carries default
2567 settings and overrides (from command-line options and library use).
2568 - Added internal Unicode support, and support for both input and
2570 - Added support for the ``docutils.io.IO`` class & subclasses.
2574 * docutils/__init__.py:
2576 - Added ``ApplicationError`` and ``DataError``, for use throughout
2578 - Added ``Component`` base class for Docutils components; implements
2579 the ``supports`` method.
2580 - Added ``__version__`` (thus, ``docutils.__version__``).
2584 - Removed many keyword parameters to ``Publisher.__init__()`` and
2585 ``publish()``; bundled into an option values object. Added
2586 "argv", "usage", "description", and "option_spec" parameters for
2587 command-line support.
2588 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2590 - Reworked I/O model for ``docutils.io`` wrappers.
2591 - Updated ``Publisher.set_options()``; now returns option values
2593 - Added support for configuration files (/etc/docutils.conf,
2594 ./docutils.conf, ~/.docutils).
2595 - Added ``Publisher.setup_option_parser()``.
2596 - Added default usage message and description.
2598 * docutils/frontend.py: Added to project; support for front-end
2599 (command-line) scripts. Option specifications may be augmented by
2600 components. Requires Optik (http://optik.sf.net/) for option
2601 processing (installed locally as docutils/optik.py).
2603 * docutils/io.py: Added to project; uniform API for a variety of input
2606 * docutils/nodes.py:
2608 - Added ``TreeCopyVisitor`` class.
2609 - Added a ``copy`` method to ``Node`` and subclasses.
2610 - Added a ``SkipDeparture`` exception for visitors.
2611 - Renamed ``TreePruningException`` from ``VisitorException``.
2612 - Added docstrings to ``TreePruningException``, subclasses, and
2614 - Improved docstrings.
2615 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2616 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2618 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2619 ``PreDecorative`` mixin.
2620 - Reworked the name/id bookkeeping; to ``document``, removed
2621 ``explicit_targets`` and ``implicit_targets`` attributes, added
2622 ``nametypes`` attribute and ``set_name_id_map`` method.
2623 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2625 - Added ``document.has_name()`` method.
2626 - Fixed DOM generation for list-attributes.
2627 - Added category class ``Labeled`` (used by footnotes & citations).
2628 - Added ``Element.set_class()`` method (sets "class" attribute).
2630 * docutils/optik.py: Added to project. Combined from the Optik
2631 package, with added option groups and other modifications. The use
2632 of this module is probably only temporary.
2634 * docutils/statemachine.py:
2636 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2637 - Added underscores to improve many awkward names.
2638 - In ``string2lines()``, changed whitespace normalizing translation
2639 table to regexp; restores Python 2.0 compatibility with Unicode.
2641 * docutils/urischemes.py:
2643 - Filled in some descriptions.
2644 - Added "shttp" scheme.
2646 * docutils/utils.py:
2648 - Added ``clean_rcs_keywords`` function (moved from
2649 docutils/transforms/frontmatter.py
2650 ``DocInfo.filter_rcs_keywords``).
2651 - Added underscores to improve many awkward names.
2652 - Changed names of Reporter's thresholds:
2653 warning_level -> report_level; error_level -> halt_level.
2654 - Moved ``utils.id()`` to ``nodes.make_id()``.
2655 - Added ``relative_path(source, target)``.
2657 * docutils/languages/de.py: German mappings; added to project. Thanks
2658 to Gunnar Schwant for the translations.
2660 * docutils/languages/en.py: Added "Dedication" bibliographic field
2663 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2666 * docutils/parsers/rst/states.py:
2668 - Added underscores to improve many awkward names.
2669 - Added RFC-2822 header support.
2670 - Extracted the inline parsing code from ``RSTState`` to a separate
2671 class, ``Inliner``, which will allow easy subclassing.
2672 - Made local bindings for ``memo`` container & often-used contents
2673 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2674 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2675 - Added ``MarkupMismatch`` exception; for late corrections.
2676 - Added ``-/:`` characters to inline markup's start string prefix,
2677 ``/`` to end string suffix.
2678 - Fixed a footnote bug.
2679 - Fixed a bug with literal blocks.
2680 - Applied patch from Simon Budig: simplified regexps with symbolic
2681 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2682 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2683 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2684 - Allowed non-ASCII in "simple names" (directive names, field names,
2686 - Converted ``Inliner.patterns.initial`` to be dynamically built
2687 from parts with ``build_regexp()`` function.
2688 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2689 - Updated docstrings.
2690 - Changed "table" to "grid_table"; added "simple_table" support.
2692 * docutils/parsers/rst/tableparser.py:
2694 - Changed ``TableParser`` to ``GridTableParser``.
2695 - Added ``SimpleTableParser``.
2696 - Refactored naming.
2698 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2699 a fallback language for directive names.
2701 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2702 directive to use a ``pending`` element, used only by HTML writers.
2704 * docutils/parsers/rst/directives/parts.py: Renamed from
2707 - Added "backlinks" attribute to "contents" directive.
2709 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2710 project by Adam Chodorowski.
2712 * docutils/readers/__init__.py: Gave Readers more control over
2713 choosing and instantiating Parsers.
2715 * docutils/readers/pep.py: Added to project; for PEP processing.
2717 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2718 requires a ``component`` parameter.
2720 * docutils/transforms/components.py: Added to project; transforms
2721 related to Docutils components.
2723 * docutils/transforms/frontmatter.py:
2725 - In ``DocInfo.extract_authors``, check for a single "author" in an
2726 "authors" group, and convert it to a single "author" element.
2727 - Added support for "Dedication" and generic bibliographic fields.
2729 * docutils/transforms/peps.py: Added to project; PEP-specific.
2731 * docutils/transforms/parts.py: Renamed from old components.py.
2733 - Added filter for `Contents`, to use alt-text for inline images,
2734 and to remove inline markup that doesn't make sense in the ToC.
2735 - Added "name" attribute to TOC topic depending on its title.
2736 - Added support for optional TOC backlinks.
2738 * docutils/transforms/references.py: Fixed indirect target resolution
2739 in ``Hyperlinks`` transform.
2741 * docutils/transforms/universal.py:
2743 - Changed ``Messages`` transform to properly filter out system
2744 messages below the warning threshold.
2745 - Added ``Decorations`` transform (support for ``--generator``,
2746 ``--date``, ``--time``, ``--source-link`` options).
2748 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2749 Engelbert Gruber's PDF writer.
2751 * docutils/writers/html4css1.py:
2753 - Made XHTML-compatible (switched to lowercase element & attribute
2754 names; empty tag format).
2755 - Escape double-dashes in comment text.
2756 - Improved boilerplate & modularity of output.
2757 - Exposed modular output in Writer class.
2758 - Added a "generator" meta tag to <head>.
2759 - Added support for the ``--stylesheet`` option.
2760 - Added support for ``decoration``, ``header``, and ``footer``
2762 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2763 translation table to regexp; restores Python 2.0 compatibility
2765 - Added the translator class as instance variable to the Writer, to
2766 make it easily subclassable.
2767 - Improved option list spacing (thanks to Richard Jones).
2768 - Modified field list output.
2769 - Added backlinks to footnotes & citations.
2770 - Added percentage widths to "<col>" tags (from colspec).
2771 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2772 "<span>" changed to "<var>".
2773 - Inline literals: "<code>" changed to "<tt>".
2774 - Many changes to optimize vertical space: compact simple lists etc.
2775 - Add a command-line options & directive attributes to control TOC
2776 and footnote/citation backlinks.
2777 - Added support for optional footnote/citation backlinks.
2778 - Added support for generic bibliographic fields.
2779 - Identify backrefs.
2780 - Relative URLs for stylesheet links.
2782 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2783 PEPs (subclass of ``html4css1.Writer``).
2785 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2787 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2788 of the Docutils internal doctree in XML.
2790 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2794 - Changed the title to "The Docutils Document Tree".
2795 - Added "Hyperlink Bookkeeping" section.
2797 * spec/docutils.dtd:
2799 - Added ``decoration``, ``header``, and ``footer`` elements.
2800 - Brought ``interpreted`` element in line with the parser: changed
2801 attribute "type" to "role", added "position".
2802 - Added support for generic bibliographic fields.
2804 * spec/notes.txt: Continual updates. Added "Project Policies".
2806 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2809 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2811 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2812 mailing list discussions.
2814 * spec/pep-0287.txt:
2816 - Renamed to "reStructuredText Docstring Format".
2818 - Reworked Q&A as an enumerated list.
2819 - Converted to reStructuredText format.
2821 * spec/pysource.dtd:
2823 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2825 * spec/pysource.txt: Removed from project. Moved much of its contents
2828 * spec/rst/alternatives.txt:
2830 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2831 - Added "Inline External Targets" section.
2833 * spec/rst/directives.txt:
2835 - Added "backlinks" attribute to "contents" directive.
2837 * spec/rst/problems.txt:
2839 - Updated the Enumerated List Markup discussion.
2840 - Added new alternative table markup syntaxes.
2842 * spec/rst/reStructuredText.txt:
2844 - Clarified field list usage.
2845 - Updated enumerated list description.
2846 - Clarified purpose of directives.
2847 - Added ``-/:`` characters to inline markup's start string prefix,
2848 ``/`` to end string suffix.
2849 - Updated "Authors" bibliographic field behavior.
2850 - Changed "inline hyperlink targets" to "inline internal targets".
2851 - Added "simple table" syntax to supplement the existing but
2852 newly-renamed "grid tables".
2853 - Added cautions for anonymous hyperlink use.
2854 - Added "Dedication" and generic bibliographic fields.
2856 * test: Made test modules standalone (subdirectories became packages).
2858 * test/DocutilsTestSupport.py:
2860 - Added support for PEP extensions to reStructuredText.
2861 - Added support for simple tables.
2862 - Refactored naming.
2864 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2866 - Now supports true packages containing test modules
2867 (``__init__.py`` files required); fixes duplicate module name bug.
2869 * test/test_pep/: Subpackage added to project; PEP testing.
2871 * test/test_rst/test_SimpleTableParser.py: Added to project.
2875 - Updated html.py and publish.py front-end tools to use the new
2876 command-line processing facilities of ``docutils.frontend``
2877 (exposed in ``docutils.core.Publisher``), reducing each to just a
2879 - Added ``locale.setlocale()`` calls to front-end tools.
2881 * tools/buildhtml.py: Added to project; batch-generates .html from all
2882 the .txt files in directories and subdirectories.
2884 * tools/default.css:
2886 - Added support for ``header`` and ``footer`` elements.
2887 - Added styles for "Dedication" topics (biblio fields).
2889 * tools/docutils.conf: A configuration file; added to project.
2891 * tools/docutils-xml.py: Added to project.
2893 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2895 * tools/pep-html-template: Added to project.
2897 * tools/pep2html.py: Added to project from Python (nondist/peps).
2898 Added support for Docutils (reStructuredText PEPs).
2900 * tools/quicktest.py:
2902 - Added the ``--attributes`` option, hacked a bit.
2903 - Added a second command-line argument (output file); cleaned up.
2905 * tools/stylesheets/: Subdirectory added to project.
2907 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2910 Release 0.1 (2002-04-20)
2911 ========================
2913 This is the first release of Docutils, merged from the now inactive
2914 reStructuredText__ and `Docstring Processing System`__ projects. For
2915 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2916 `DPS HISTORY`__ files.
2918 __ http://structuredtext.sourceforge.net/
2919 __ http://docstring.sourceforge.net/
2920 __ http://structuredtext.sourceforge.net/HISTORY.html
2921 __ http://docstring.sourceforge.net/HISTORY.html
2923 General changes: renamed 'dps' package to 'docutils'; renamed
2924 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2925 the test suites (reStructuredText's test/test_states renamed to
2926 test/test_rst); and all modifications required to make it all work.
2928 * docutils/parsers/rst/states.py:
2930 - Improved diagnostic system messages for missing blank lines.
2931 - Fixed substitution_reference bug.
2937 indent-tabs-mode: nil
2938 sentence-end-double-space: t