1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: goodger@python.org
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
21 - Dropped support for Python 2.3.
22 - ``docutils/math``, ``docutils/error_reporting.py``, and
23 ``docutils/urischemes.py`` moved to the utils package.
24 - Fix [3541369] Relative __import__ also with Python 3.3.
25 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
26 and parsers for Python 2.7 up.
27 - Fix import of PIL.Image.
31 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
32 option is ignored and will be removed in a future release.
34 * docutils/parsers/rst/directives/misc.py
36 - Fix [ 3546533 ] Unicode error with `date` directive.
38 * docutils/tools/test/test_buildhtml.py
40 - Fix [ 3521167 ] allow running in any directory.
41 - Fix [ 3521168 ] allow running with Python 3.
43 * docutils/writers/manpage.py
45 - Apply [ 3527401 ] addmonition's don't preserve indentation
46 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
48 * docutils/writers/latex2e/__init__.py, docutils/writers/xetex/__init__.py
50 - Apply [ 3555160 ] ensure order of "otherlanguages".
51 - Fix section numbering by LaTeX.
53 * docutils/writers/s5_html/__init__.py
55 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
57 * docutils/writers/s5_html/docutils_xml.py
59 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
62 Release 0.9.1 (2012-06-17)
63 ==========================
67 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
68 installed in the PYTHONPATH. Converted tests are now
69 stored in ``test3/``, tools no longer need conversion.
71 If you installed one of Docutils versions 0.7 ... 0.9 with
72 ``setup.py install`` under Python 3, remove the spurious
73 ``test/`` and ``tools/`` directories in the site library root.
77 - Make tests independent from the location of the ``test/`` directory.
78 - Use converted sources (from the ``build/`` directory) for tests under
83 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
87 - Fix writing binary data to sys.stdout under Python 3 (allows
88 ``rst2odt.py`` to be used with output redirection).
90 * docutils/parsers/rst/directives/misc.py
92 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
93 ``locale == C`` and 8-bit char in path argument of `include` directive.
95 * docutils/test/alltests.py
97 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
100 Release 0.9 (2012-05-02)
101 ========================
105 - New reStructuredText "code" role and directive and "code" option
106 of the "include" directive with syntax highlighting by Pygments_.
107 - Fix parse_option_marker for option arguments containing ``=``.
108 - Fix [ 2993756 ]: import Python Imaging Library's Image module
109 via ``import PIL`` as starting with PIL 1.2,
110 "PIL lives in the PIL namespace only" (announcement__).
112 .. _Pygments: http://pygments.org/
113 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
117 - Fix [ 2971827 ] and [ 3442827 ]
118 extras/roman.py moved to docutils/utils/roman.py
120 * docutils/frontend.py
122 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
126 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
127 - `mode` argument for FileOutput avoids code replication in
129 - New exceptions InputError and OutputError for IO errors in
130 FileInput/FileOutput.
134 - No "hard" system exit on file IO errors: catch and report them in
135 `Publisher.reportException` instead. Allows handling by a calling
136 application if the configuration setting `traceback` is True.
138 * docutils/utils.py -> docutils/utils/__init__.py
140 - docutils.utils is now a package (providing a place for sub-modules)
142 .. note:: docutils/math, docutils/error_reporting.py, and
143 docutils/urischemes.py will move to the utils package in the next
144 release, too. See RELEASE-NOTES__
146 __ RELEASE-NOTES.html
148 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
149 errors recording non-ASCII filenames (fixes [ 3434355 ]).
151 - Fix relative_path() with source=None and `unicode` target.
153 * docutils/parsers/rst/states.py
155 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
156 characters and "international" quotes around inline markup.
157 - Use `field_marker` pattern to look for start of a
158 directive option block (fixes [ 3484857 ]).
160 * docutils/parsers/rst/tableparser.py
162 - Fix [ 2926161 ] for simple tables.
163 (Combining chars in grid tables still contribute to cell width.)
165 * docutils/writers/latex2e/__init__.py
167 - Support the `abbreviation` and `acronym` standard roles.
168 - Record only files required to generate the LaTeX source as dependencies.
169 - Fix handling of missing stylesheets.
170 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
171 when suppressing LaTeX section numbering.
172 - Use ``\DUtitle`` for unsupported section levels
173 - Apply [ 3512791 ] do not compare string literals with "is"
175 * docutils/writers/xetex/__init__.py
177 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
179 * docutils/writers/html4css1/__init__.py
181 - Change default for `math-output` setting to MathJax.
182 - Fix handling of missing stylesheets.
184 * docutils/writers/docutils_xml.py
186 - Use the visitor pattern with default_visit()/default_depart() methods
187 instead of minidom to facilitate special handling of selected nodes.
188 - Support raw XML (inserted as-is inside a <raw></raw> node).
190 * docutils/writers/manpage.py
192 - Do not emit comment line with trailing blank. Problematic for VCS.
194 Release 0.8.1 (2011-08-30)
195 ==========================
199 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
200 and [ 3395920 ] (correct copyright info for rst.el).
204 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
206 * docutils/writers/latex2e/__init__.py
208 - Clean up Babel language setting. Restores Sphinx compatibility.
210 Release 0.8 (2011-07-07)
211 ========================
215 - Handle language codes according to `BCP 47`_.
216 - If the specified language is not supported by Docutils,
217 warn and fall back to English.
218 - Math support: reStructuredText "math" role and directive,
219 ``math`` and ``math_block`` doctree elements.
220 - Decode command line arguments with the locale's preferred encoding
221 (to allow, e.g., ``--title=Dornröschen``).
222 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
223 - New sub-module `error_reporting`: handle encoding/decoding errors
224 when reporting exceptions.
225 - Some additions to the Docutils core are released under the 2-Clause BSD
226 license, see COPYING_ for details.
228 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
229 .. _COPYING: COPYING.html
233 - Most directives now support a "name" option that attaches a
236 - Directive content may start on the first line also when the directive
237 type accepts options.
239 * docs/dev/policies.txt:
241 - Recommend the 2-Clause BSD license
242 (http://www.spdx.org/licenses/BSD-2-Clause)
243 for code that is kept under the author's copyright.
245 * tools/buildhtml.py:
247 - Fix ``--local`` switch.
249 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
251 * docutils/writers/html4css1/__init__.py
253 - Set "lang" argument for objects with class argument
254 "language-<language tag>".
255 - New setting "math-output" with support for HTML, MathML, and LaTeX.
257 * docutils/writers/latex2e/__init__.py
259 - Fix [ 3043986 ] AttributeError using :local: with table of content.
260 - Place title data in the document preamble.
261 - Load `babel` package only if required.
262 - Update list of supported languages.
263 - New config setting "hyperref-options".
264 No hard-coded "unicode" hyperref option (clash with xetex).
265 - Set language for custom roles, paragraphs, block-quotes, and
266 line-quotes with class argument "language-<language tag>".
267 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
268 - Convert image URI to a local file path.
269 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
270 has more than one paragraph (Wolfgang Scherer).
271 - \leavevmode before longtable only when needed (prevents spurious vspace)
272 - do not advance table counter for tables without caption
274 * docutils/writers/xetex/__init__.py
276 - New writer generating LaTeX code for compiling with ``xelatex``.
278 A separate writer (inheriting from latex2e) instead of a ``--xetex``
279 option allows separate config options for XeTeX vs. LaTeX2e.
281 * docutils/writers/manpage.py
283 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
284 - Fix: vertical space cleaning for option group ``.``.
286 * tools/editors/emacs/rst.el:
288 - Fix [ 3001100 ] does not handle spaces in filenames
289 (thanks to Jakub Wilk)
293 - strip whitespace from stylesheet arguments
294 - exclude combining chars from column_width()
295 (partial fix for [ 2926161 ])
297 * docutils/parsers/rst/directives/misc.py:
299 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
304 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
305 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
307 Release 0.7 (2010-07-07)
308 ========================
312 - Fix [ 2881769 ] setup configuration.
313 - Fix [ 2788716 ] reporting problems in included files.
317 - FileInput opens files as text files with universal newline support
318 (mode "rU", configurable with the new optional argument "mode").
322 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
326 - Fix [ 2923723 ] let decode_path() tolerate path == None
328 * docutils/writers/html4css1/__init__.py
330 - Support SVG and SWF images (thanks to Stefan Rank).
331 - Generate valid XHTML for centered images with targets.
332 Use CSS classes instead of "align" tags for image alignment.
334 * docutils/writers/latex2e/__init__.py
336 - Use `transforms.writer_aux.Admonitions` to "normalize" special
338 - Use the ``\url`` command for URLs (breaks long URLs instead of
339 writing into the margin).
340 - Preserve runs of spaces in `inline literals`__.
341 - Deprecate ``figure_footnotes`` setting.
342 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
343 - New ``latex_preamble`` setting.
344 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
345 - Fix hyperlink targets (labels) for images, figures, and tables.
346 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
347 - Apply [ 2961991 ] Call hyperref with unicode option.
348 - Drop the special `output_encoding`__ default ("latin-1").
349 The Docutils wide default (usually "UTF-8") is used instead.
350 - Render inline markup in document title and subtitle.
351 - Fix numbering depth with LaTeX section numbering.
352 - Update Unicode -> LaTeX translations.
353 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
355 __ docs/ref/restructuredtext.html#inline-literals
356 __ docs/user/config.html#docutils-footnotes
357 __ docs/user/config.html#output_encoding
359 * docutils/writers/manpage.py
361 - Fix: supported attribute (thanks to peter2108).
362 - Remove trailing blanks in code (keep in sync with mercurial version).
363 - Titles level 1, that is ``.SH``, always uppercase.
364 - Apply patch from mg: literal text should be bold in man-pages.
368 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
373 - Python 3 support: copy test/ and tools/ to the build-dir
374 and convert Python sources with 2to3.
377 Release 0.6 (2009-10-11)
378 ========================
382 - Docutils is now compatible with Python versions from 2.3 up to 2.6
383 and convertible to 3.1 code.
385 + Node.__nonzero__ returns True instead of 1.
386 + use os.walk instead os.path.walk.
387 + minimize "types" module where possible.
388 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
389 + Text nodes now subclass unicode rather than UserString
390 (which is gone in python 3.0).
391 + 3.0 compatibility module docutils._compat
393 + Drop 2.2 compatibility workarounds.
394 + Drop extras/optparse.py and extras/textwrap.py
395 (stdlib modules since 2.3).
397 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
398 - Unix man page export: manpage writer moved from sandbox to Doctutils
401 - Apply [ 1719345 ] Galician translation
402 - Apply [ 1905741 ] Polish translation
403 - Apply [ 1878977 ] make_id(): deaccent characters.
404 - Apply [ 2029251 ] return nonzero when tests fail.
405 - Fix [ 1692788 ] allow UTF-8 in style sheets.
406 - Fix [ 2781629 ] support non-ASCII chars in file names.
407 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
408 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
409 - Fix [ 2821266 ] --strict option works now like --halt=info.
410 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
411 - Fix [ 1627229 ] hyperlink references in substitutions.
413 - The "newlatex" writer is orphaned.
417 - Documented Unicode characters allowed as inline markup openers,
418 closers, and delimiters.
419 - Allow units for all length specifications.
420 - Allow percent sign in "scale" argument of "figure" and "image" directives.
421 - Bugfix: The "figalign" argument of a figure now works as intended
422 (aligning the figure, not its contents).
423 - Align images with class "align-[right|center|left]"
424 (allows setting the alignment of an image in a figure).
428 - Added ``Element.__contains__`` method, for the in-operator.
430 * docutils/parsers/rst/states.py:
432 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
433 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
434 " " (non-breaking space), and "¡ ¿" openers.
436 * docutils/parsers/directives/misc.py:
438 - Added ``start-line`` and ``end-line`` options to "include"
439 directive to select a range of lines.
440 - Hard tabs in literal inclusions are replaced by spaces. This is
441 configurable via the new ``tab-width`` option of the "include" directive
442 (a negative tab-width prevents tab expansion).
446 - Add ``get_stylesheet_list`` function.
447 - Apply [ 2834836 ] print info at halt
449 * docutils/transforms/universal.py:
451 - Raise default priority of StripClasses to exclude stripped classes from
454 * docutils/writers/html4css1/__init__.py:
456 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
457 separated list of stylesheets.
458 - Address [ 1938891 ] Inline literal text creates "pre" span only when
459 needed to prevent inter-word line wraps.
460 - Use `translate` method instead of repeated `replace` calls.
461 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
462 classes to allow CSS styling that does not interfere with other
463 table-using constructs (field lists, citations, ...).
465 * docutils/writers/newlatex2e/__init__.py:
467 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
469 * docutils/writers/latex2e/__init__.py (see also
470 `<docs/user/docutils-05-compat.sty.html>`__) :
472 - Add ``--embed-stylesheet`` option.
473 - Apply [ 1474017 ] image vertical alignment is reversed.
474 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
475 - Change: has_key for dictionaries (not Nodes) to in-operator.
476 - Merge adjacent citations into one latex cite command.
477 - Failsave implementation of custom roles. LaTeX compilation now ignores
478 unknown classes instead of aborting with an error.
479 - Support custom roles based on standard roles.
480 - LaTeX packages can be used as ``--stylesheet`` arguments without
481 restriction. (A style sheet is now referenced with the ``\usepackage``
482 command, if it ends with ``.sty`` or has no extension.)
483 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
484 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
485 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
486 2005-02-04 as a configurable length unit).
487 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
488 if font-encoding is set to ''. LaTeX defaults to OT1 then.
489 - Set sub- and superscript role argument in text mode not as math.
490 Use a custom role based on sub-/superscript if you want italic shape.
491 - Shorter preamble and less dependencies: Load packages and define macros
492 only if required in the document.
493 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
494 - New custom environments and commands with optional "classes" argument.
495 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
496 - Better conformance to Docutils specifications with ``--use-latex-toc``.
497 Support for LaTeX generated ToC also with unnumbered sections.
498 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
499 section numbering by LaTeX.
500 - Use default font in admonitions and sidebar.
501 - Align of image in a figure defaults to 'center'.
502 - Bugfix: Newlines around targets and references prevent run-together
504 - Fix internal hyperlinks.
505 - Use class defaults for page margins ('typearea' now optional).
506 - Float placement made configurable, default changed to "here definitely".
507 - Typeset generic topic as "quote block with title".
508 - Use template (file and configuration option).
509 - In the default template, load cmap.sty (fix text extraction in PDF) and
510 fixltx2e.sty (LaTeX patches, \textsubscript).
511 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
512 - Use `translate` instead of repeated `replace` calls for text encoding.
513 - Hyperlinked footnotes and support for symbol footnotes and
514 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
515 - Complete pairs of binary options
516 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
517 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
519 - font-encoding: "T1" (formerly implicitely set by 'ae').
520 - use-latex-toc: true (ToC with page numbers).
521 - use-latex-footnotes: true (no mixup with figures).
523 * docutils/writers/manpage.py
525 - Do not print version at document end, this is done by the viewer.
526 - Do not print date at document end, this is done by the viewer.
527 - Fix storage of docinfo fields for none standard fields.
529 * docutils/tools/rst2man.py
531 Release 0.5 (2008-06-25)
532 ========================
534 * docutils/languages/he.py: Added to project: Hebrew mappings by
537 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
538 mappings by Meir Kriheli.
540 * docutils/frontend.py:
542 - Configuration files are now assumed and required to be
544 - Paths of applied configuration files are now recorded in the
545 runtime setting ``_config_files`` (accessible via
546 ``--dump-settings``).
547 - Added ``--strip-elements-with-class`` and ``--strip-class``
548 options (``strip_elements_with_classes`` and ``strip_classes``
553 - Added code to determine the input encoding from data: encoding
554 declarations or the presence of byte order marks (UTF-8 & UTF-16).
555 - Added support for IronPython 1.0.
559 - Added ``document.__getstate__`` method, for pickling.
561 * docutils/parsers/rst/states.py:
563 - Allow ``+`` and ``:`` in reference names.
564 - Unquoted targets beginning with an underscore (``.. __target:
565 URI``) are no longer accepted.
566 - Added support for multiple attributions in a physical block quote
567 (indented text block), dividing it into multiple logical block
569 - Added support for unicode bullets in bullet lists: "•", "‣", and
571 - Added support for new object-oriented directive interface,
572 retaining compatibility to the old functional interface.
573 - Added support for throwing ``DirectiveError``'s from within
576 * docutils/parsers/rst/__init__.py:
578 - Added ``Directive`` base class.
579 - Added ``DirectiveError`` base class.
580 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
583 * docutils/parsers/directives/:
585 - Refactored all reStructuredText directives to use the new
586 object-oriented directive interface. Errors are now (mostly)
587 thrown using the new ``DirectiveError`` class.
589 * docutils/parsers/directives/misc.py:
591 - Added ``start-after`` and ``end-before`` options to ``include``
592 directive; thanks to Stefan Rank.
594 * docutils/transforms/universal.py:
596 - Added ``StripClassesAndElements`` transform to remove from the
597 document tree all elements with classes in
598 ``settings.strip_elements_with_classes`` and all "classes"
599 attribute values in ``self.document.settings.strip_classes``.
601 * docutils/transforms/writer_aux.py:
603 - Added ``Admonitions`` transform to transform specific admonitions
604 (like ``note``, ``warning``, etc.) into generic admonitions with a
607 * docutils/writers/html4css1/__init__.py:
609 - Moved template functionality from the PEP/HTML writer here.
610 - Expanded the fragments available in the ``parts`` attribute.
611 - Moved ``id`` attributes from titles to surrounding ``div``
613 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
614 universally supported now).
615 - ``template.txt`` is now opened in text mode instead of binary mode
616 (to ensure Windows compatibility).
617 - ``a`` elements now have an "internal" or "external" class,
618 depending on reference type.
620 * docutils/writers/html4css1/template.txt: Added to project.
622 * docutils/writers/pep_html/:
624 - Moved template functionality to the HTML writer.
626 * docutils/writers/s5_html/__init__.py:
628 - Added ``view_mode`` & ``hidden_controls`` settings
629 (``--view-mode`` & ``--hidden-controls/--visible-controls``
632 * docutils/writers/latex2e/__init__.py:
634 - Add ``--literal-block-env``
635 - Fix: escaping ``%`` in href urls.
636 - Move usepackage hyperref after stylesheet inclusion.
637 - Fix: scrartcl does not have chapter but scrreprt.
638 - Add newline after ``\end{verbatim}``.
639 - Merge smaller differences from latex2e_adaptive_preamble.
640 - Add ``use-part-section``.
641 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
642 - Using leavemode option_list no longer needs to check if parent
643 is a definition list.
644 - Append ``\leavemode`` to definition list terms.
645 - No longer write visit\_/depart_definition_list_item comments to
647 - Table column width with 3 decimal places.
648 - Add table stubs support (boldfont).
649 - Add assemble_parts to writer.
650 - Add simply support for nested tables.
651 - Fix verbatim in tables if use-verbatim-when-possible.
652 - Use section commands down to subparagraph.
653 - Put ensuremath around some latin1 chars.
654 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
655 - New option ``--use-bibtex=style,db1,db2``.
656 - New option ``--reference-label`` to allow usage of LaTeX ref for
657 labels in section references.
658 - Add a label after every section to support sectionnumbers as reference
660 - Fix: bug# 1605376 rst2latex: bad options group list
661 - Remove inactive code for use_optionlist_for_option_list.
662 - Remove latex comments from option_list output.
663 - Fix: bug# 1612270 double qoutes in italian literal.
664 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
665 - Add option --use-latex-abstract.
666 - Image width unit ``px`` is translated to ``pt``.
667 - Add image height support.
668 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
670 - Fix: Do not escape underscores in citation reference labels if
671 use-latex-citations is set.
672 - Use centering instead of center for figure contents, to avoid vertical
674 - Recognize table class: borderless, nolines, booktabs, standard.
675 - Fix: Renaming contents section does not work with latex writer; SF
677 - Applied patch for custom roles with classes from Edward Loper.
678 - Fixed bug that caused crashes with more than 256 lists.
680 * docutils/writers/pep_html/__init__.py:
682 - Changed to support new python.org website structure and
685 * docs/howto/security.txt: "Deploying Docutils Securely", added to
688 * tools/buildhtml.py:
690 -- Added ``ignore`` setting to exclude a list of shell patterns
691 (default: ``.svn:CVS``).
693 * tools/editors/emacs/rst.el:
695 - Changed license to "GPL".
696 - Added ``rst-straighten-decorations`` function.
697 - The ``compile`` module is now always loaded.
698 - Added ``rst-toggle-line-block`` function.
699 - Headings consisting only of non-ASCII characters are now
700 recognized by ``rst-toc`` and ``rst-adjust``.
701 - Added font-lock support for multi-line comments where the first
702 comment line is empty.
703 - Added ``(require 'font-lock)``.
707 - Provide descriptive error message if distutils is missing.
710 Release 0.4 (2006-01-09)
711 ========================
715 - Updated the project policies for trunk/branch development &
718 * docutils/__init__.py:
720 - Added ``__version_details__`` attribute to describe code source
721 (repository/snapshot/release).
722 - Replaced ``default_transforms`` attribute of TransformSpec with
723 ``get_transforms()`` method.
727 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
728 functions, for document tree extraction and reprocessing.
732 - Added ``DocTreeInput`` class, for reprocessing existing documents.
733 - Added support for non-Unicode (e.g. binary) writer output.
737 - Re-introduced ``Targetable.indirect_reference_name``, for
738 MoinMoin/reST compatibility (removed in r3124/r3129).
739 - Added ``serial_escape`` function; escapes string values that are
740 elements of a list, for serialization. Modified Docutils-XML
741 writing (``Element._dom_node``) and pseudo-XML writing
742 (``Element.starttag``) to use ``serial_escape``.
743 - Added ``Node.deepcopy()`` method.
744 - Removed the internal lists ``document.substitution_refs``,
745 ``document.anonymous_refs``, and ``document.anonymous_targets``.
746 - Added a "container" element.
747 - Fixed bug where values of list-valued attributes of elements
748 originating from custom interpreted text roles (i.e., with custom
749 classes) were being shared between element instances. Reported by
752 * docutils/statemachine.py:
754 - Added trailing whitespace stripping to ``string2lines()``.
755 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
756 Asian double-width character support.
760 - Added ``east_asian_column_width()`` for double-width character
763 * docutils/languages/ja.py: Added to project: Japanese mappings by
766 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
767 mappings by Panjunyong.
769 * docutils/parsers/null.py: Added to project; a do-nothing parser.
771 * docutils/parsers/rst/__init__.py:
773 - Added validator to tab_width setting, with test. Closes SF bug
774 #1212515, report from Wu Wei.
776 * docutils/parsers/rst/states.py:
778 - Fixed bug with escaped colons indicating a literal block.
779 - Fixed bug with enumerated lists (SF#1254145).
780 - Backslash-escaped colons inside of field names are now allowed.
781 - Targets (implicit and explicit), anonymous hyperlink references
782 and auto-numbered footnote references inside of substitution
783 definitions are now disallowed.
784 - Fixed bug: list items with blank first lines.
785 - Fixed bug: block quote attributions with indented second lines.
786 - Added East Asian double-width character support (Python 2.4 only).
788 * docutils/parsers/rst/tableparser.py:
790 - Added East Asian double-width character support (Python 2.4 only).
792 * docutils/parsers/rst/directives/body.py:
794 - Added the "container" directive.
796 * docutils/parsers/rst/directives/misc.py:
798 - Added the "default-role", "title", and "date" directives.
799 - Added standard data file syntax to the "include" directive.
800 - Added support for "class" directive content.
802 * docutils/parsers/rst/directives/images.py:
804 - Added ``indirect_reference_name`` support for images with a target
806 - Added support for image width and height units.
807 - Fixed bug with image "target" options.
809 * docutils/parsers/rst/directives/references.py:
811 - Added "class" attribute to "target-notes" directive, for
812 footnote_reference classes.
814 * docutils/parsers/rst/include/: Directory added to project; contains
815 standard data files for the "include" directive. Initial contents:
816 character entity substitution definition sets, and a set of
817 definitions for S5/HTML presentations.
819 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
820 mappings by David Goodger.
822 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
823 Simplified Chinese mappings by Panjunyong.
825 * docutils/readers/__init__.py:
827 - Added universal.Decorations and universal.ExposeInternals
828 transforms as default transforms for all readers.
829 - Added ``ReReader`` base class for readers that reread an existing
832 * docutils/readers/doctree.py: Added to project; a reader for existing
835 * docutils/transforms/frontmatter.py:
837 - Fixed the DocInfo transform to handle SVN-style expansion of the
839 - In ``DocInfo.extract_authors``, treat the contents of "authors"
842 * docutils/transforms/misc.py:
844 - Added misc.Transitions transform, extracted from
845 universal.FinalChecks.
847 * docutils/transforms/references.py:
849 - Added references.DanglingReferences transform, extracted from
850 universal.FinalChecks.
851 - Fixed bug with doubly-indirect substitutions.
852 - Added footnote_reference classes attribute to "TargetNotes".
853 - Fixed bug with circular substitution definitions that put Docutils
854 into an infinite loop.
856 * docutils/transforms/universal.py:
858 - Added universal.ExposeInternals transform, extracted from
859 universal.FinalChecks.
860 - Removed universal.FinalChecks transform (logic has been moved to
861 several new transforms).
862 - Fixed bug with the "expose_internals" setting and Text nodes
863 (exposed by the "rawsource" internal attribute).
864 - Added the universal.StripComments transform, implementation of the
865 "strip_comments" setting.
867 * docutils/transforms/writer_aux.py: Added to project; auxiliary
868 transforms for writers.
870 - Added ``Compound`` transform, which flattens compound paragraphs.
872 * docutils/writers/: Several writer modules (html4css1.py) were
873 converted into packages. Support modules and data files have been
874 moved into the packages. The stylesheets for the HTML writers are
875 now installed along with the code, the code knows where to find
876 them, and the default is to use them (actually, to embed them).
877 Some adjustments to configuration files may be necessary. The
878 easiest way to obtain the new default behavior is to remove all
879 settings whose name includes "stylesheet".
881 * docutils/writers/__init__.py:
883 - Added universal.Messages and universal.FilterMessages transforms
884 as default transforms for all writers.
885 - Added ``UnfilteredWriter`` base class for writers that pass the
886 document tree on unchanged.
888 * docutils/writers/docutils_xml.py:
890 - Made ``xmlcharrefreplace`` the default output encoding error
893 * docutils/writers/html4css1/:
895 - Added support for image width and height units.
896 - Made ``xmlcharrefreplace`` the default output encoding error
898 - Made ``--embed-stylesheet`` the default rather than
899 ``--link-stylesheet``.
900 - Moved "id" attribute from container (section etc.) to title's <a>
901 tag, to be on the same tag as "name".
902 (!!! To be reverted in Docutils 0.5.)
903 - Added vertical space between fields of field lists.
904 - Added ``--compact-field-lists`` option to remove vertical space in
906 - Made cloaking of email addresses with ``--cloak-email-addresses``
908 - Fixed support for centered images.
909 - Added support for class="compact" & class="open" lists.
911 * docutils/writers/latex2e/:
913 - Underscores in citekeys are no longer escaped.
915 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
916 mapping of Unicode characters to LaTeX equivalents.
918 * docutils/writers/s5_html/: Package added to project; writer for
921 * docs/dev/distributing.txt: Added to project; guide for distributors
922 (package maintainers).
924 * docs/dev/hacking.txt: Added to project; guide for developers.
926 * docs/ref/doctree.txt:
928 - Updated for plural attributes "classes", "ids", "names",
930 - Added the "container" element.
932 * docs/ref/docutils.dtd:
934 - Updated for plural attributes "classes", "ids", "names",
937 * docs/user/emacs.txt: Added to project; a document about Emacs
938 support for reStructuredText and Docutils.
940 * docs/user/links.txt: Added to project; lists of Docutils-related
943 * docs/user/mailing-lists.txt: Added to project; information about
944 Docutils-related mailing lists and how to access them.
946 * docs/user/slide-shows.txt: Added to project; example of and docs for
947 the S5/HTML writer (``rst2s5.py`` front end).
949 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
950 Files", added to project.
952 * test/coverage.sh: Added to project; test coverage script.
954 * test/DocutilsTestSupport.py:
956 - Added support for specifying runtime settings at the suite level.
958 * test/test_functional.py:
960 - Added the ``clear_output_directory`` function.
961 - Added support for ``_test_more`` functions in functional test
964 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
966 * tools/rstpep2html.py: Renamed from pep.py.
968 * tools/dev/create_unimap.py: Added to project; script to create the
969 docutils/writers/unimap_latex.py mapping file.
971 * tools/dev/profile_docutils.py: Added to project; profiler script.
973 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
975 * tools/editors/emacs/restructuredtext.el,
976 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
977 Removed from project; the functionality is now contained in rst.el.
979 * tools/editors/emacs/rst.el: Added to project. Added many features
980 and fixed many bugs. See docs/user/emacs.txt for details.
982 * tools/stylesheets: Removed from project. Stylesheets have been
983 renamed and moved into writer packages.
986 Release 0.3.9 (2005-05-26)
987 ==========================
991 - Eliminated and replaced all uses of the old string attributes
992 ``id``, ``name``, ``dupname`` and ``class`` with references to the
993 new list attributes ``ids``, ``names``, ``dupnames`` and
994 ``classes`` throughout the whole source tree.
998 - Enabled ``--dump-*`` options when ``--traceback`` specified,
999 allowing for easier debugging.
1000 - In ``Publisher.publish()``, expanded the generic top-level
1003 * docutils/examples.py:
1005 - Added ``internals`` function for exploration.
1009 - Fixed ``Input.decode`` method to apply heuristics only if no
1010 encoding is explicitly given, and to provide better reporting of
1012 - The ``Input.decode`` method now removes byte order marks (BOMs)
1015 * docutils/nodes.py:
1017 - ``image`` element class changed to subclass of Element, not
1018 TextElement (it's an empty element, and cannot contain text).
1019 - Added ``attr_defaults`` dictionary for default attribute values.
1020 - Added empty list as default value for the following attributes:
1021 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1022 - Added ``document.decoration`` attribute,
1023 ``document.get_decoration`` method, and ``decoration.get_header``
1024 & ``.get_footer`` methods.
1025 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1028 * docutils/utils.py:
1030 - Removed ``docutils.utils.Reporter.categories``,
1031 ``docutils.utils.ConditionSet``, and all references to them, to
1032 simplify error reporting.
1034 * docutils/languages/nl.py: Added to project; Dutch mappings by
1037 * docutils/parsers/rst/__init__.py:
1039 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1041 * docutils/parsers/rst/states.py:
1043 - Added check for escaped at-mark to prevent email address recognition.
1044 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1046 - Allowed whitespace in paths and URLs.
1047 - Added auto-enumerated list items.
1048 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1050 - Added support for table stub columns.
1052 * docutils/parsers/rst/directives/__init__.py:
1054 - Allowed whitespace in paths (``path`` function).
1055 - Added ``uri`` directive option conversion function.
1057 * docutils/parsers/rst/directives/body.py:
1059 - Fixed illegal context bug with "topic" directive (allowed within
1060 sidebars; not within body elements).
1062 * docutils/parsers/rst/directives/images.py:
1064 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1065 - Added support for the ``file_insertion_enabled`` setting in the
1066 "figure" directive (disables "figwidth" option).
1067 - "image" directive: added checks for valid values of "align" option,
1068 depending on context. "figure" directive: added specialized
1069 "align" option and attribute on "figure" element.
1070 - Made ":figwidth: image" option of "figure" directive work again.
1071 - Fixed bug with reference names containing uppercase letters
1072 (e.g. ``Name_``) in "target" option of "image" directive.
1074 * docutils/parsers/rst/directives/misc.py:
1076 - Fixed "include" and "raw" directives to catch text decoding
1078 - Allowed whitespace in "include" & "raw" directive paths.
1079 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1080 settings in "include" & "raw" directives.
1082 * docutils/parsers/rst/directives/parts.py:
1084 - Added "header" & "footer" directives.
1085 - Fixed illegal context bug with "contents" directive (topics
1086 allowed within sidebars; not within body elements).
1088 * docutils/parsers/rst/directives/tables.py:
1090 - Added "list-table" directive.
1091 - Caught empty CSV table bug.
1092 - Added support for the ``file_insertion_enabled`` setting in the
1093 "csv-table" directive.
1094 - Added ``stub-columns`` option to "csv-table" and "list-table"
1097 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1098 mappings by Martijn Pieters.
1100 * docutils/readers/standalone.py:
1102 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1103 options to activate or deactivate the SectSubTitle transform.
1105 * docutils/transforms/frontmatter.py:
1107 - Added SectSubTitle transform to promote titles of lone
1108 subsections to subtitles.
1110 * docutils/transforms/references.py:
1112 - Fixed mislocated internal targets bug, by propagating internal
1113 targets to the next node, making use of the newly added support
1114 for multiple names and IDs.
1115 - Fixed duplicate footnote label bug.
1116 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1119 * docutils/writers/html4css1.py:
1121 - Fixed unencoded stylesheet reference bug (characters like "&" in
1122 stylesheet references).
1123 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1125 - Added support for multiple IDs per node by creating empty ``span``
1127 - Added the ``field_name_limit`` & ``option_limit`` settings &
1129 - Added support for table stub columns.
1130 - Added support for the ``align`` attribute on ``figure`` elements.
1131 - Added the ``cloak_email_addresses`` setting & support.
1132 - Added ``html_prolog``, ``html_head``, ``html_body``,
1133 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1134 ``docutils.core.publish_parts``.
1135 - Added support for section subtitles.
1137 * docutils/writers/latex2e.py:
1139 - Fixed tables starting with more than one multirow cell.
1140 - Improved --use-latex-docinfo so that organization/contact/address
1141 fields are lumped with the last author field and appear on the
1143 - Made sure the titlepage is always shown with --use-latex-docinfo,
1144 even if the document has no title.
1145 - Made sure that latex doesn't fill in today's date if no date field
1147 - Added support for section subtitles.
1149 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1150 (under development).
1152 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1154 * docs/api/publisher.txt:
1156 - Added "``publish_parts`` Details" section.
1158 * docutils/dev/repository.txt: Added to project; information about the
1159 Docutils Subversion repository.
1161 * docs/ref/docutils.dtd:
1163 - Added a ``stub`` attribute to the ``colspec`` element via the
1164 ``tbl.colspec.att`` parameter entity.
1165 - Allowed topic elements within sidebars
1166 - Added an ``align`` attribute to the ``figure`` element.
1168 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1172 Release 0.3.7 (2004-12-24)
1173 ==========================
1175 * docutils/frontend.py:
1177 - Added options: --input-encoding-error-handler,
1178 --record-dependencies, --leave-footnote-reference-space,
1180 - Added command-line and config file support for "overrides" setting
1185 - Added support for input encoding error handler.
1187 * docutils/nodes.py:
1189 - Added dispatch_visit and dispatch_departure methods to
1190 NodeVisitor; useful as a hook for Visitors.
1191 - Changed structure of ``line_block``; added ``line``.
1192 - Added ``compound`` node class.
1193 - Added a mechanism for Visitors to transitionally ignore new node
1196 * docutils/utils.py:
1198 - Moved ``escape2null`` and ``unescape`` functions from
1199 docutils/parsers/rst/states.py.
1201 * docutils/parsers/rst/roles.py:
1204 - Changed role function API: the "text" parameter now takes
1205 null-escaped interpreted text content.
1207 * docutils/parsers/rst/states.py:
1209 - Fixed bug where a "role" directive in a nested parse would crash
1210 the parser; the state machine's "language" attribute was not being
1212 - Added support for line block syntax.
1213 - Fixed directive parsing bug: argument-less directives didn't
1214 notice that arguments were present.
1215 - Removed error checking for transitions.
1216 - Added support for multiple classifiers in definition list items.
1217 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1218 - Changed role function API: the "text" parameter now takes
1219 null-escaped interpreted text content.
1220 - Empty sections and documents are allowed now.
1222 * docutils/parsers/rst/directives/__init__.py:
1224 - Added ``encoding`` directive option conversion function.
1225 - Allow multiple class names in class_option conversion function.
1227 * docutils/parsers/rst/directives/body.py:
1229 - Converted the line-block directive to use the new structure.
1230 - Extracted the old line-block functionality to the ``block``
1231 function (still used).
1232 - Added ``compound`` directive (thanks to Lea Wiemann).
1234 * docutils/parsers/rst/directives/misc.py:
1236 - Added "encoding" option to "include" and "raw" directives.
1237 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1238 - Allow multiple class names in the "class" directive.
1240 * docutils/parsers/rst/directives/parts.py:
1242 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1243 options. Thanks to Lele Gaifax.
1245 * docutils/parsers/rst/directives/tables.py:
1247 - Added "encoding" directive to "csv-table" directive.
1248 - Added workaround for lack of Unicode support in csv.py, for
1249 non-ASCII CSV input.
1251 * docutils/transforms/misc.py:
1253 - Fixed bug when multiple "class" directives are applied to a single
1255 - Enabled multiple format names for "raw" directive.
1257 * docutils/transforms/references.py:
1259 - Added support for trimming whitespace from beside substitution
1262 * docutils/transforms/universal.py:
1264 - FinalChecks now checks for illegal transitions and moves
1265 transitions between sections.
1267 * docutils/writers/html4css1.py:
1269 - HTMLTranslator.encode now converts U+00A0 to " ".
1270 - "stylesheet" and "stylesheet_path" settings are now mutually
1272 - Added support for the new line_block/line structure.
1273 - --footnote-references now overrides
1274 --trim-footnote-reference-space, if applicable.
1275 - Added support for ``compound`` elements.
1276 - Enabled multiple format names for "raw" directive.
1277 - ``<p>`` tags of a paragraph which is the only visible child of the
1278 document node are no longer stripped.
1279 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1280 new method ``should_be_compact_paragraph()``.
1281 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1283 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1284 the output if they have their ``class`` attribute set.
1285 - The whole document is now surrounded by a ``<div
1286 class="document">`` element.
1287 - Body-level images are now wrapped by their own ``<div>`` elements,
1288 with image classes copied to the wrapper, and for images which
1289 have the ``:align:`` option set, the surrounding ``<div>`` now
1290 receives a class attribute (like ``class="align-left"``).
1292 * docutils/writers/latex2e.py:
1294 - no newline after depart_term.
1295 - Added translations for some Unicode quotes.
1296 - Added option "font-encoding", made package AE the default.
1297 - "stylesheet" and "stylesheet_path" settings are now mutually
1299 - --footnote-references now overrides
1300 --trim-footnote-reference-space, if applicable.
1301 - The footnote label style now matches the footnote reference style
1302 ("brackets" or "superscript").
1303 - Added support for ``compound`` elements.
1304 - Enabled multiple format names for "raw" directive.
1306 * docs/ref/docutils.dtd:
1308 - Changed structure of the ``line_block`` element; added ``line``.
1309 - Added ``compound`` element.
1310 - Added "ltrim" and "rtrim" attributes to
1311 ``substitution_definition`` element.
1312 - Enabled multiple format names for ``raw`` element.
1313 - Enabled multiple classifiers in ``definition_list_item`` elements.
1315 * docs/ref/rst/directives.txt
1317 - Marked "line-block" as deprecated.
1318 - "Class" directive now allows multiple class names.
1319 - Added "Rationale for Class Attribute Value Conversion".
1320 - Added warning about "raw" overuse/abuse.
1322 * docs/ref/rst/restructuredtext.txt:
1324 - Added syntax for line blocks.
1325 - Definition list items may have multiple classifiers.
1327 * docs/ref/rst/roles.txt:
1331 * tools/stylesheets/default.css:
1333 - Added support for the new line_block structure.
1334 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1337 Release 0.3.5 (2004-07-29)
1338 ==========================
1342 * _`Documentation cleanup/reorganization`.
1344 - Created new subdirectories of docs/:
1346 * ``docs/user/``: introductory/tutorial material for end-users
1347 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1348 * ``docs/api/``: API reference material for client-developers
1349 * ``docs/ref/``: reference material for all groups
1350 * ``docs/howto/``: for component-developers and core-developers
1351 * ``docs/peps/``: Python Enhancement Proposals
1353 - Moved ``docs/*`` to ``docs/user/``.
1354 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1355 ``spec/`` to ``docs/dev``.
1356 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1357 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1358 - Moved ``alternatives.txt``, and ``problems.txt`` from
1359 ``spec/rst/`` to ``docs/dev/rst/``.
1360 - Moved ``reStructuredText.txt``, ``directives.txt``,
1361 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1362 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1363 ``roles.txt``, ``reStructuredText.txt`` to
1364 ``restructuredtext.txt``.
1365 - Moved ``spec/howto/`` to ``docs/howto``.
1367 In order to keep the CVS history of moved files, we supplied
1368 SourceForge with a `script for modifying the Docutils CVS
1371 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1373 After running the cleanup script:
1375 - Added ``docs/index.txt``.
1376 - Added a ``.htaccess`` file to the ``web`` module, containing
1377 redirects for all old paths to new paths. They'll preserve
1378 fragments (the "#name" part of a URL), and won't clutter up the
1379 file system, and will correct the URL in the user's browser.
1380 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1381 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1382 the "To Do" list itself in ``docs/dev/todo.txt``.
1383 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1384 section of ``docs/dev/todo.txt``.
1385 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1386 - Added "How To Report Bugs" to ``BUGS.txt``.
1387 - Went through all the sources and docs (including under web/) and
1388 updated links. Mostly done by Lea Wiemann; thanks Lea!
1389 (Still need to update links in the sandboxes.)
1393 * BUGS.txt: Added to project.
1395 * THANKS.txt: Added to project.
1397 * docutils/__init__.py:
1399 - 0.3.4: Post-release.
1403 - Added special error handling & advice for UnicodeEncodeError.
1404 - Refactored Publisher.publish (simplified exception handling &
1405 extracted debug dumps).
1406 - Renamed "enable_exit" parameter of convenience functions to
1407 "enable_exit_status".
1408 - Enabled traceback (exception propagation) by default in
1409 programmatic convenience functions.
1410 - Now publish_file and publish_cmdline convenience functions return
1411 the encoded string results in addition to their regular I/O.
1412 - Extracted common code from publish_file, publish_string, and
1413 publish_parts, into new publish_programmatically. Extracted
1414 settings code to ``Publisher.process_programmatic_settings``.
1415 - In Publisher.publish, disabled ``settings_overrides`` when
1416 ``settings`` is supplied; redundant.
1418 * docutils/frontend.py:
1420 - Added help text for "--output-encoding-error-handler" and
1421 "--error-encoding-error-handler".
1422 - Renamed "--exit" to "--exit-status".
1423 - Simplified default-setting code.
1425 * docutils/parsers/rst/__init__.py:
1427 - Added "--pep-base-url" and "--rfc-base-url" options.
1429 * docutils/parsers/rst/states.py:
1431 - Made URI recognition more aggressive and intelligent.
1433 * docutils/parsers/rst/directives/__init__.py:
1435 - Added several directive option conversion functions.
1437 * docutils/parsers/rst/directives/body.py:
1439 - Moved "table" directive to tables.py.
1441 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1444 * docutils/writers/latex2e.py:
1446 - Added "--table-style=(standard|booktabs|nolines)"
1447 - figures get "here" option (LaTeX per default puts them at bottom),
1448 and figure content is centered.
1449 - Rowspan support for tables.
1450 - Fix: admonition titles before first section.
1451 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1452 - Replave ``_`` in literal by an underlined blank, because it has the correct
1454 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1455 - A few unicode replacements, if output_encoding != utf
1456 - Add "--graphicx-option".
1457 - Indent literal-blocks.
1458 - Fix: omit ``\maketitle`` when there is no document title.
1460 * docs/index.txt: "Docutils Project Documentation Overview", added to
1463 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1464 Tool", added to project.
1466 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1468 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1470 * docs/dev/policies.txt: Added to project (extracted from
1471 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1473 * docs/dev/release.txt: Added to project (extracted from
1474 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1476 * docs/dev/testing.txt: Added to project.
1478 * docs/dev/website.txt: Added to project (extracted from
1479 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1481 * docs/ref/rst/directives.txt:
1483 - Added directives: "table", "csv-table".
1485 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1486 added to project. 1 page for syntax, and a 1 page reference for
1487 directives and roles. Source text to be used as-is; not meant to be
1490 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1491 with a change of title.
1493 * test/functional/, contents, and test/test_functional.py: Added to
1496 * tools/buildhtml.py: Fixed bug with config file handling.
1498 * tools/html.py: Removed from project (duplicate of rst2html.py).
1500 * tools/pep2html.py: Removed from project (duplicate of Python's
1501 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1502 Docutils-related PEPs in docs/peps/).
1504 * tools/rst2pseudoxml.py: Renamed from publish.py.
1506 * tools/rst2xml.py: Renamed from docutils-xml.py.
1508 * tools/test.txt: Removed from project; moved to
1509 docs/user/rst/demo.txt.
1511 * setup.py: Now also installs ``rst2latex.py``.
1514 Release 0.3.3 (2004-05-09)
1515 ==========================
1517 * docutils/__init__.py:
1519 - 0.3.1: Reorganized config file format (multiple sections); see
1521 - Added unknown_reference_resolvers attribute to TransformSpec.
1522 - 0.3.2: Interpreted text reorganization.
1527 - Catch system messages to stop tracebacks from parsing errors.
1528 - Catch exceptions during processing report & exit without
1529 tracebacks, except when "--traceback" used.
1530 - Reordered components for OptionParser; application comes last.
1531 - Added "config_section" parameter to several methods and functions,
1532 allowing front ends to easily specify their config file sections.
1533 - Added publish_parts convenience function to allow access to individual
1534 parts of a document.
1536 * docutils/examples.py: Added to project; practical examples of
1537 Docutils client code, to be used as-is or as models for variations.
1539 * docutils/frontend.py:
1541 - Added "--traceback" & "--no-traceback" options ("traceback"
1543 - Implemented support for config file reorganization:
1544 ``standard_config_files`` moved from ``ConfigParser`` to
1545 ``OptionParser``; added
1546 ``OptionParser.get_config_file_settings()`` and
1547 ``.get_standard_config_settings()``; support for old "[options]"
1548 section (with deprecation warning) and mapping from old to new
1550 - Reimplemented setting validation.
1551 - Enabled flexible boolean values: yes/no, true/false, on/off.
1552 - Added ``Values``, a subclass of ``optparse.Values``, with support
1553 for list setting attributes.
1554 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1555 thanks to Beni Cherniavsky.
1556 - Added "--no-section-numbering" option.
1560 - Catch IOErrors when opening source & destination files, report &
1561 exit without tracebacks. Added ``handle_io_errors`` parameter to
1562 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1564 * docutils/nodes.py:
1566 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1567 method definitions (via ``exec``) to dynamic assignments (via
1568 ``setattr``); thanks to Roman Suzi.
1569 - Encapsulated visitor dynamic assignments in a function; thanks to
1571 - Added indirect_reference_name attribute to the Targetable
1572 class. This attribute holds the whitespace_normalized_name
1573 (contains mixed case) of a target.
1575 * docutils/statemachine.py:
1577 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1578 - Added ``StringList.get_2D_block``.
1580 * docutils/utils.py:
1582 - Added "level" attribute to SystemMessage exceptions.
1584 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1587 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1590 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1591 Marcelo Huerta San Martin.
1593 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1594 mappings by Lalo Martins.
1596 * docutils/languages/ru.py: Added to project; Russian mappings by
1599 * docutils/parsers/rst/roles.py: Added to project. Contains
1600 interpreted text role functions, a registry for interpreted text
1601 roles, and an API for adding to and retrieving from the registry.
1602 Contributed by Edward Loper.
1604 * docutils/parsers/rst/states.py:
1606 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1607 - Allowed true em-dash character and "---" as block quote
1609 - Added support for <angle-bracketed> complex option arguments
1611 - Fixed handling of backslashes in substitution definitions.
1612 - Fixed off-by-1 error with extra whitespace after substitution
1613 definition directive.
1614 - Added inline markup parsing to field lists' field names.
1615 - Added support for quoted (and unindented) literal blocks.
1616 Driven in part by a bribe from Frank Siebenlist (thanks!).
1617 - Parser now handles escapes in URIs correctly.
1618 - Made embedded-URIs' reference text omittable. Idea from Beni
1620 - Refactored explicit target processing code.
1621 - Added name attribute to references containing the reference name only
1622 through whitespace_normalize_name (no case changes).
1623 - parse_target no longer returns the refname after going through
1624 normalize_name. This is now handled in make_target.
1625 - Fixed bug relating to role-less interpreted text in non-English
1627 - Reorganized interpreted text processing; moved code into the new
1628 roles.py module. Contributed by Edward Loper.
1629 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1630 ``parse_directive_block``.
1632 * docutils/parsers/rst/tableparser.py:
1634 - Reworked for ``StringList``, to support "include" directives in
1637 * docutils/parsers/rst/directives/__init__.py:
1639 - Renamed ``unchanged()`` directive option conversion function to
1640 ``unchanged_required``, and added a new ``unchanged``.
1641 - Catch unicode value too high error; fixes bug 781766.
1642 - Beefed up directive error reporting.
1644 * docutils/parsers/rst/directives/body.py:
1646 - Added basic "table" directive.
1648 * docutils/parsers/rst/directives/images.py:
1650 - Added "target" option to "image" directive.
1651 - Added name attribute to references containing the reference name only
1652 through whitespace_normalize_name (no case changes).
1654 * docutils/parsers/rst/directives/misc.py:
1656 - Isolated the import of the ``urllib2`` module; was causing
1657 problems on SourceForge (``libssl.so.2`` unavailable?).
1658 - Added the "role" directive for declaring custom interpreted text
1661 * docutils/parsers/rst/directives/parts.py:
1663 - The "contents" directive does more work up-front, creating the
1664 "topic" and "title", and leaving the "pending" node for the
1665 transform. Allows earlier reference resolution; fixes subtle bug.
1667 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1668 mappings by Jannie Hofmeyr.
1670 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1671 mappings by Marek Blaha.
1673 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1674 mappings by Marcelo Huerta San Martin.
1676 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1677 Portuguese mappings by Lalo Martins.
1679 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1680 mappings by Roman Suzi.
1682 * docutils/transforms/parts.py:
1684 - The "contents" directive does more work up-front, creating the
1685 "topic" and "title", and leaving the "pending" node for the
1686 transform. Allows earlier reference resolution; fixes subtle bug.
1687 - Added support for disabling of section numbering.
1689 * docutils/transforms/references.py:
1691 - Verifying that external targets are truly targets and not indirect
1692 references. This is because we are now adding a "name" attribute to
1693 references in addition to targets. Note sure if this is correct!
1694 - Added code to hook into the unknown_reference_resolvers list for a
1695 transformer in resolve_indirect_target. This allows the
1696 unknown_reference_resolvers to keep around indirect targets which
1697 docutils doesn't know about.
1698 - Added specific error message for duplicate targets.
1700 * docutils/transforms/universal.py:
1702 - Added FilterMessages transform (removes system messages below the
1703 verbosity threshold).
1704 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1705 to FinalCheckVisitor for application-specific handling of
1706 unresolvable references.
1707 - Added specific error message for duplicate targets.
1709 * docutils/writers/__init__.py:
1711 - Added assemble_parts method to the Writer class to allow for
1712 access to a documents individual parts.
1713 - Documented & set default for ``Writer.output`` attribute.
1715 * docutils/writers/html4css1.py:
1717 - Fixed unicode handling of attribute values (bug 760673).
1718 - Prevent duplication of "class" attribute values (bug report from
1720 - Improved table grid/border handling (prompted by report from Bob
1722 - Added support for table titles.
1723 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1725 - Added functionality to keep track of individual parts of a document
1726 and store them in a dictionary as the "parts" attribute of the writer.
1727 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1728 - Added proper support for the "scale" attribute of the "image"
1729 element. Contributed by Brent Cook.
1730 - Added ``--initial-header-level`` option.
1731 - Fixed bug: the body_pre_docinfo segment depended on there being a
1732 docinfo; if no docinfo, the document title was incorporated into
1733 the body segment. Adversely affected the publish_parts interface.
1735 * docutils/writers/latex2e.py:
1737 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1738 about a missing file.
1739 - Added options and support: ``--compound-enumerators``,
1740 ``--section-prefix-for-enumerators``, and
1741 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1743 - Added option ``--use-verbatim-when-possible``, to avoid
1744 problematic characters (eg, '~' in italian) in literal blocks.
1745 - It's now possible to use four section levels in the `book` and
1746 `report` LaTeX classes. The default `article` class still has
1749 * docs/config.txt: "Docutils Configuration Files", added to project.
1750 Moved config file entry descriptions from tools.txt.
1754 - Moved config file entry descriptions to config.txt.
1756 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1759 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1760 Text Roles", added to project.
1762 * spec/rst/reStructuredText.txt:
1764 - Added description of support for <angle-bracketed> complex option
1765 arguments to option lists.
1766 - Added subsections for indented and quoted literal blocks.
1768 * test: Continually adding & updating tests.
1770 - Added test/test_settings.py & test/data/config_*.txt support
1772 - Added test/test_writers/test_htmlfragment.py.
1774 * test/DocutilsTestSupport.py:
1776 - Refactored LaTeX publisher test suite/case class names to make
1777 testing other writers easier.
1778 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1779 to test the processing of HTML fragments which use the new
1780 publish_parts convenience function.
1782 * tools/buildhtml.py:
1784 - Added support for the "--prune" option.
1785 - Removed dependency on pep2html.py; plaintext PEPs no longer
1788 * tools/docutils.conf:
1790 - Updated for configuration file reorganization.
1792 * tools/rst2html.py:
1794 - copied from tools/html.py
1798 - added a 'scripts' section to configuration
1799 - added 'tools/rst2html.py' to the scripts section
1802 Release 0.3 (2003-06-24)
1803 ========================
1807 * Renamed "attribute" to "option" for directives/extensions.
1809 * Renamed transform method "transform" to "apply".
1811 * Renamed "options" to "settings" for runtime settings (as set by
1812 command-line options). Sometimes "option" (singular) became
1813 "settings" (plural). Some variations below:
1815 - document.options -> document.settings (stored in other objects as
1817 - option_spec -> settings_spec (not directives though)
1818 - OptionSpec -> SettingsSpec
1819 - cmdline_options -> settings_spec
1820 - relative_path_options -> relative_path_settings
1821 - option_default_overrides -> settings_default_overrides
1822 - Publisher.set_options -> Publisher.get_settings
1826 * COPYING.txt: Added "Public Domain Dedication".
1828 * FAQ.txt: Frequently asked questions, added to project.
1832 - Updated with PyPI Trove classifiers.
1833 - Conditional installation of third-party modules.
1835 * docutils/__init__.py:
1837 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1838 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1839 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1840 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1841 option and its effect on the PEP template & writer.
1842 - Bumped version to 0.2.4 due to changes to the PEP template &
1844 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1845 - Added ``TransformSpec`` class for new transform system.
1846 - Bumped version to 0.2.6 for API changes (renaming).
1847 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1848 convenience functions.
1849 - Added ``Component.component_type`` attribute.
1850 - Bumped version to 0.2.8 because of the internal parser switch from
1851 plain lists to the docutils.statemachine.StringList objects.
1852 - Bumped version to 0.2.9 because of the frontend.py API changes.
1853 - Bumped version to 0.2.10 due to changes to the project layout
1854 (third-party modules removed from the "docutils" package), and
1855 signature changes in ``io.Input``/``io.Output``.
1856 - Changed version to 0.3.0 for release.
1860 - Made ``publish()`` a bit more convenient.
1861 - Generalized ``Publisher.set_io``.
1862 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1863 parameters; improved its docstring.
1864 - Added ``publish_file()`` and ``publish_string()``.
1865 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1867 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1868 "--dump-transforms" hidden options.
1869 - Added ``Publisher.apply_transforms()`` method.
1870 - Added ``Publisher.set_components()`` method; support for
1871 ``publish_*()`` conveninece functions.
1872 - Moved config file processing to docutils/frontend.py.
1873 - Added support for exit status ("exit_level" setting &
1874 ``enable_exit`` parameter for Publisher.publish() and convenience
1877 * docutils/frontend.py:
1879 - Check for & exit on identical source & destination paths.
1880 - Fixed bug with absolute paths & "--config".
1881 - Set non-command-line defaults in ``OptionParser.__init__()``:
1882 ``_source`` & ``_destination``.
1883 - Distributed ``relative_path_settings`` to components; updated
1884 ``OptionParser.populate_from_components()`` to combine it all.
1885 - Require list of keys in ``make_paths_absolute`` (was implicit in
1886 global ``relative_path_settings``).
1887 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1888 "--dump-settings", and "--dump-transforms" hidden options.
1889 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1890 code, replaced with correct code.
1891 - Added validation functionality for config files.
1892 - Added "--error-encoding" option/setting, "_disable_config"
1894 - Added encoding validation; updated "--input-encoding" and
1895 "--output-encoding"; added "--error-encoding-error-handler" and
1896 "--output-encoding-error-handler".
1897 - Moved config file processing from docutils/core.py.
1898 - Updated ``OptionParser.populate_from_components`` to handle new
1899 ``SettingsSpec.settings_defaults`` dict.
1900 - Added support for "-" => stdin/stdout.
1901 - Added "exit_level" setting ("--exit" option).
1905 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1906 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1907 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1908 - ``FileOutput.write()`` now returns the encoded output string.
1909 - Try to get path/stream name automatically in ``FileInput`` &
1911 - Added defaults for source & destination paths.
1912 - Allow for Unicode I/O with an explicit "unicode" encoding.
1913 - Added ``Output.encode()``.
1914 - Removed dependency on runtime settings; pass encoding directly.
1915 - Recognize Unicode strings in ``Input.decode()``.
1916 - Added support for output encoding error handlers.
1918 * docutils/nodes.py:
1920 - Added "Invisible" element category class.
1921 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1922 modification during a traversal.
1923 - Added element classes: ``line_block``, ``generated``, ``address``,
1924 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1925 ``superscript``, ``subscript``, ``inline``
1926 - Added support for lists of nodes to ``Element.insert()``.
1927 - Fixed parent linking in ``Element.replace()``.
1928 - Added new abstract superclass ``FixedTextElement``; adds
1929 "xml:space" attribute.
1930 - Added support for "line" attribute of ``system_message`` nodes.
1931 - Added support for the observer pattern from ``utils.Reporter``.
1932 Added ``parse_messages`` and ``transform_messages`` attributes to
1933 ``document``, removed ``messages``. Added ``note_parse_message``
1934 and ``note_transform_message`` methods.
1935 - Added support for improved diagnostics:
1937 - Added "document", "source", and "line" internal attributes to
1938 ``Node``, set by ``Node.setup_child()``.
1939 - Converted variations on ``node.parent = self`` to
1940 ``self.setup_child(node)``.
1941 - Added ``document.current_source`` & ``.current_line``
1942 attributes, and ``.note_source`` observer method.
1943 - Changed "system_message" output to GNU-Tools format.
1945 - Added a "rawsource" attribute to the ``Text`` class, for text
1946 before backslash-escape resolution.
1947 - Support for new transform system.
1948 - Reworked ``pending`` element.
1949 - Fixed XML DOM bug (SF #660611).
1950 - Removed the ``interpeted`` element class and added
1951 ``title_reference``, ``abbreviation``, ``acronym``.
1952 - Made substitutions case-sensitive-but-forgiving; moved some code
1954 - Fixed Unicode bug on element attributes (report: William Dode).
1956 * docutils/optik.py: Removed from project; replaced with
1957 extras/optparse.py and extras/textwrap.py. These will be installed
1958 only if they're not already present in the Python installation.
1960 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1961 only if it's not already present in the Python installation.
1963 * docutils/statemachine.py:
1965 - Factored out ``State.add_initial_transitions()`` so it can be
1967 - Converted whitespace-specific "blank" and "indent" transitions
1968 from special-case code to ordinary transitions: removed
1969 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1970 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1971 ``ws_initial_transitions`` attributes.
1972 - Removed ``State.match_transition()`` after merging it into
1974 - Added ``StateCorrection`` exception.
1975 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1976 (moved ``TransitionCorrection`` support there too.)
1977 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1978 ``EOFError`` instead of ``IndexError``.
1979 - Added ``State.no_match`` method.
1980 - Added support for the Observer pattern, triggered by input line
1982 - Added ``strip_top`` parameter to
1983 ``StateMachineWS.get_first_known_indented``.
1984 - Made ``context`` a parameter to ``StateMachine.run()``.
1985 - Added ``ViewList`` & ``StringList`` classes;
1986 ``extract_indented()`` becomes ``StringList.get_indented()``.
1987 - Added ``StateMachine.insert_input()``.
1988 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1989 thanks to) Fred Drake.
1991 * docutils/utils.py:
1993 - Added a ``source`` attribute to Reporter instances and
1994 ``system_message`` elements.
1995 - Added an observer pattern to ``utils.Reporter`` to keep track of
1997 - Fixed bugs in ``relative_path()``.
1998 - Added support for improved diagnostics.
1999 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2000 - Added support for encoding Reporter stderr output, and encoding
2002 - Reporter keeps track of the highest level system message yet
2005 * docutils/languages: Fixed bibliographic field language lookups.
2007 * docutils/languages/es.py: Added to project; Spanish mappings by
2008 Marcelo Huerta San Martin.
2010 * docutils/languages/fr.py: Added to project; French mappings by
2013 * docutils/languages/it.py: Added to project; Italian mappings by
2016 * docutils/languages/sk.py: Added to project; Slovak mappings by
2019 * docutils/parser/__init__.py:
2021 - Added ``Parser.finish_parse()`` method.
2023 * docutils/parser/rst/__init__.py:
2025 - Added options: "--pep-references", "--rfc-references",
2026 "--tab-width", "--trim-footnote-reference-space".
2028 * docutils/parsers/rst/states.py:
2030 - Changed "title under/overline too short" system messages from INFO
2031 to WARNING, and fixed its insertion location.
2032 - Fixed enumerated list item parsing to allow paragraphs & section
2033 titles to begin with enumerators.
2034 - Converted system messages to use the new "line" attribute.
2035 - Fixed a substitution reference edge case.
2036 - Added support for "--pep-references" and "--rfc-references"
2037 options; reworked ``Inliner`` code to make customization easier.
2038 - Removed field argument parsing.
2039 - Added support for short section title over/underlines.
2040 - Fixed "simple reference name" regexp to ignore text like
2041 "object.__method__"; not an anonymous reference.
2042 - Added support for improved diagnostics.
2043 - Reworked directive API, based on Dethe Elza's contribution. Added
2044 ``Body.parse_directive()``, ``.parse_directive_options()``,
2045 ``.parse_directive_arguments()`` methods.
2046 - Added ``ExtensionOptions`` class, to parse directive options
2047 without parsing field bodies. Factored
2048 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2049 ``ExtensionOptions``.
2050 - Improved definition list term/classifier parsing.
2051 - Added warnings for unknown directives.
2052 - Renamed ``Stuff`` to ``Struct``.
2053 - Now flagged as errors: transitions at the beginning or end of
2054 sections, empty sections (except title), and empty documents.
2055 - Updated for ``statemachine.StringList``.
2056 - Enabled recognition of schemeless email addresses in targets.
2057 - Added support for embedded URIs in hyperlink references.
2058 - Added backslash-escapes to inline markup end-string suffix.
2059 - Added support for correct interpreted text processing.
2060 - Fixed nested title parsing (topic, sidebar directives).
2061 - Added special processing of backslash-escaped whitespace (idea
2062 from David Abrahams).
2063 - Made substitutions case-sensitive-but-forgiving; moved some code
2064 to ``docutils.nodes``.
2065 - Added support for block quote attributions.
2066 - Added a kludge to work-around a conflict between the bubble-up
2067 parser strategy and short titles (<= 3 char-long over- &
2068 underlines). Fixes SF bug #738803 "infinite loop with multiple
2069 titles" submitted by Jason Diamond.
2070 - Added explicit interpreted text roles for standard inline markup:
2071 "emphasis", "strong", "literal".
2072 - Implemented "superscript" and "subscript" interpreted text roles.
2073 - Added initial support for "abbreviation" and "acronym" roles;
2075 - Added support for "--trim-footnote-reference-space" option.
2076 - Optional space before colons in directives & hyperlink targets.
2078 * docutils/parsers/rst/tableparser.py:
2080 - Fixed a bug that was producing unwanted empty rows in "simple"
2082 - Detect bad column spans in "simple" tables.
2084 * docutils/parsers/rst/directives: Updated all directive functions to
2087 * docutils/parsers/rst/directives/__init__.py:
2089 - Added ``flag()``, ``unchanged()``, ``path()``,
2090 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2091 directive option helper functions.
2092 - Added warnings for unknown directives.
2093 - Return ``None`` for missing directives.
2094 - Added ``register_directive()``, thanks to William Dode and Paul
2097 * docutils/parsers/rst/directives/admonitions.py:
2099 - Added "admonition" directive.
2101 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2102 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2103 "parsed-literal", "rubric", "epigraph", "highlights" and
2104 "pull-quote" directives.
2106 * docutils/parsers/rst/directives/images.py:
2108 - Added an "align" attribute to the "image" & "figure" directives
2109 (by Adam Chodorowski).
2110 - Added "class" option to "image", and "figclass" to "figure".
2112 * docutils/parsers/rst/directives/misc.py:
2114 - Added "include", "raw", and "replace" directives, courtesy of
2116 - Added "unicode" and "class" directives.
2118 * docutils/parsers/rst/directives/parts.py:
2120 - Added the "sectnum" directive; by Dmitry Jemerov.
2121 - Added "class" option to "contents" directive.
2123 * docutils/parsers/rst/directives/references.py: Added to project.
2124 Contains the "target-notes" directive.
2126 * docutils/parsers/rst/languages/__init__.py:
2128 - Return ``None`` from get_language() for missing language modules.
2130 * docutils/parsers/rst/languages/de.py: Added to project; German
2131 mappings by Engelbert Gruber.
2133 * docutils/parsers/rst/languages/en.py:
2135 - Added interpreted text roles mapping.
2137 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2138 mappings by Marcelo Huerta San Martin.
2140 * docutils/parsers/rst/languages/fr.py: Added to project; French
2141 mappings by William Dode.
2143 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2144 mappings by Nicola Larosa.
2146 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2147 mappings by Miroslav Vasko.
2149 * docutils/readers/__init__.py:
2151 - Added support for the observer pattern from ``utils.Reporter``, in
2152 ``Reader.parse`` and ``Reader.transform``.
2153 - Removed ``Reader.transform()`` method.
2154 - Added default parameter values to ``Reader.__init__()`` to make
2155 instantiation easier.
2156 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2158 * docutils/readers/pep.py:
2160 - Added the ``peps.TargetNotes`` transform to the Reader.
2161 - Removed PEP & RFC reference detection code; moved to
2162 parsers/rst/states.py as options (enabled here by default).
2163 - Added support for pre-acceptance PEPs (no PEP number yet).
2164 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2167 * docutils/readers/python: Python Source Reader subpackage added to
2168 project, including preliminary versions of:
2171 - moduleparser.py: Parser for Python modules.
2173 * docutils/transforms/__init__.py:
2175 - Added ``Transformer`` class and completed transform reform.
2176 - Added unknown_reference_resolvers list for each transformer. This list holds
2177 the list of functions provided by each component of the transformer that
2178 help resolve references.
2180 * docutils/transforms/frontmatter.py:
2182 - Improved support for generic fields.
2183 - Fixed bibliographic field language lookups.
2185 * docutils/transforms/misc.py: Added to project. Miscellaneous
2188 * docutils/transforms/parts.py:
2190 - Moved the "id" attribute from TOC list items to the references
2191 (``Contents.build_contents()``).
2192 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2193 - Added "class" attribute support to ``Contents``.
2195 * docutils/transforms/peps.py:
2197 - Added ``mask_email()`` function, updating to pep2html.py's
2199 - Linked "Content-Type: text/x-rst" to PEP 12.
2200 - Added the ``TargetNotes`` PEP-specific transform.
2201 - Added ``TargetNotes.cleanup_callback``.
2202 - Added title check to ``Headers``.
2204 * docutils/transforms/references.py:
2206 - Added the ``TargetNotes`` generic transform.
2207 - Split ``Hyperlinks`` into multiple transforms.
2208 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2209 - Added check for circular indirect references.
2210 - Made substitutions case-sensitive-but-forgiving.
2212 * docutils/transforms/universal.py:
2214 - Added support for the "--expose-internal-attributes" option.
2215 - Removed ``Pending`` transform classes & data.
2217 * docutils/writers/__init__.py:
2219 - Removed ``Writer.transform()`` method.
2221 * docutils/writers/docutils-xml.py:
2223 - Added XML and doctype declarations.
2224 - Added "--no-doctype" and "--no-xml-declaration" options.
2226 * docutils/writers/html4css1.py:
2228 - "name" attributes only on these tags: a, applet, form, frame,
2230 - Added "name" attribute to <a> in section titles for Netscape 4
2231 support (bug report: Pearu Peterson).
2232 - Fixed targets (names) on footnote, citation, topic title,
2233 problematic, and system_message nodes (for Netscape 4).
2234 - Changed field names from "<td>" to "<th>".
2235 - Added "@" to "@" encoding to thwart address harvesters.
2236 - Improved the vertical whitespace optimization; ignore "invisible"
2237 nodes (targets, comments, etc.).
2238 - Improved inline literals with ``<span class="pre">`` around chunks
2239 of text and `` `` for runs of spaces.
2240 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2241 ``self.docinfo`` segments.
2242 - Added support for "line_block", "address" elements.
2243 - Improved backlinks (footnotes & system_messages).
2244 - Improved system_message output.
2245 - Redefined "--stylesheet" as containing an invariant URL, used
2246 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2248 - Added "--footnote-references" option (superscript or brackets).
2249 - Added "--compact-lists" and "--no-compact-lists" options.
2250 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2251 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2252 - Improved field list rendering.
2253 - Added Docutils version to "generator" meta tag.
2254 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2255 - Improved layout of <pre> HTML source.
2256 - Fixed attribute typo on <colspec>.
2257 - Refined XML prologue.
2258 - Support for no stylesheet.
2259 - Removed "interpreted" element support.
2260 - Added support for "title_reference", "sidebar", "attribution",
2261 "rubric", and generic "admonition" elements.
2262 - Added "--attribution" option.
2263 - Added support for "inline", "subscript", "superscript" elements.
2264 - Added initial support for "abbreviation" and "acronym";
2267 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2271 - Double quotes in literal blocks (special treatment for de/ngerman).
2272 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2273 - Added "--attribution" option.
2274 - Right align attributions.
2276 * docutils/writers/pep_html.py:
2278 - Parameterized output encoding in PEP template.
2279 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2280 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2281 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2283 - Added an override on the "--footnote-references" option.
2284 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2285 - Added Docutils version to "generator" meta tag.
2286 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2290 - Added a "silent" setting for ``buildhtml.py``.
2291 - Added a "Getting Help" section.
2292 - Rearranged the structure.
2293 - Kept up to date, with new settings, command-line options etc.
2294 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2295 - Converted settings table into a definition list.
2297 * docs/rst/quickstart.txt:
2299 - Added a table of contents.
2300 - Added feedback information.
2301 - Added mention of minimum section title underline lengths.
2302 - Removed the 4-character minimum for section title underlines.
2304 * docs/rst/quickref.html:
2306 - Added a "Getting Help" section.
2307 - Added a style to make section title backlinks more subtle.
2308 - Added mention of minimum section title underline lengths.
2309 - Removed the 4-character minimum for section title underlines.
2311 * extras: Directory added to project; contains third-party modules
2312 that Docutils depends on (optparse, textwrap, roman). These are
2313 only installed if they're not already present.
2315 * licenses: Directory added to project; contains copies of license
2316 files for non-public-domain files.
2320 - Changed the focus. It's about DTD elements: structural
2321 relationships, semantics, and external (public) attributes. Not
2322 about the element class library.
2323 - Moved some implementation-specific stuff into ``docutils.nodes``
2325 - Wrote descriptions of all common attributes and parameter
2326 entities. Filled in introductory material.
2327 - Working through the element descriptions: 55 down, 37 to go.
2328 - Removed "Representation of Horizontal Rules" to
2329 spec/rst/alternatives.txt.
2331 * spec/docutils.dtd:
2333 - Added "generated" inline element.
2334 - Added "line_block" body element.
2335 - Added "auto" attribute to "title".
2336 - Changed content models of "literal_block" and "doctest_block" to
2338 - Added ``%number;`` attribute type parameter entity.
2339 - Changed ``%structural.elements;`` to ``%section.elements``.
2340 - Updated attribute types; made more specific.
2341 - Added "address" bibliographic element.
2342 - Added "line" attribute to ``system_message`` element.
2343 - Removed "field_argument" element; "field_name" may contain
2344 multiple words and whitespace.
2345 - Changed public identifier to docutils.sf.net.
2346 - Removed "interpreted" element; added "title_reference",
2347 "abbreviation", "acronym".
2348 - Removed "refuri" attribute from "footnote_reference" and
2349 "citation_reference".
2350 - Added "sidebar", "rubric", "attribution", "admonition",
2351 "superscript", "subscript", and "inline" elements.
2353 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2355 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2357 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2359 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2362 * spec/transforms.txt: Added to project.
2364 * spec/howto: Added subdirectory, for developer how-to docs.
2366 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2367 Elza, edited & extended by David Goodger.
2369 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2372 * spec/rst/alternatives.txt:
2374 - Added "Doctree Representation of Transitions" from
2376 - Updated "Inline External Targets" & closed the debate.
2377 - Added ideas for interpreted text syntax extensions.
2378 - Added "Nested Inline Markup" section.
2380 * spec/rst/directives.txt:
2382 - Added directives: "topic", "sectnum", "target-notes",
2383 "line-block", "parsed-literal", "include", "replace", "sidebar",
2384 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2386 - Formalized descriptions of directive details.
2387 - Added an "align" attribute to the "image" & "figure" directives
2388 (by Adam Chodorowski).
2389 - Added "class" options to "topic", "sidebar", "line-block",
2390 "parsed-literal", "contents", and "image"; and "figclass" to
2393 * spec/rst/interpreted.txt: Added to project. Descriptions of
2394 interpreted text roles.
2396 * spec/rst/introduction.txt:
2398 - Added pointers to material for new users.
2400 * spec/rst/reStructuredText.txt:
2402 - Disambiguated comments (just add a newline after the "::").
2403 - Updated enumerated list description; added a discussion of the
2404 second-line validity checking.
2405 - Updated directive description.
2406 - Added a note redirecting newbies to the user docs.
2407 - Expanded description of inline markup start-strings in non-markup
2409 - Removed field arguments and made field lists a generic construct.
2410 - Removed the 4-character minimum for section title underlines.
2411 - Clarified term/classifier delimiter & inline markup ambiguity
2413 - Added "Embedded URIs".
2414 - Updated "Interpreted Text" section.
2415 - Added "Character-Level Inline Markup" section.
2417 * test: Continually adding & updating tests.
2419 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2420 - Moved test/test_pep/ to test/test_readers/test_pep/.
2421 - Added test/test_readers/test_python/.
2422 - Added test/test_writers/ (Engelbert Gruber).
2426 - Made the ``locale.setlocale()`` calls in front ends
2429 * tools/buildhtml.py:
2431 - Added "--silent" option.
2432 - Fixed bug with absolute paths & "--config".
2433 - Updated for new I/O classes.
2434 - Added some exception handling.
2435 - Separated publishers' setting defaults; prevents interference.
2436 - Updated for new ``publish_file()`` convenience function.
2438 * tools/pep-html-template:
2440 - Allow for "--embed-stylesheet".
2441 - Added Docutils version to "generator" meta tag.
2442 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2443 - Conform to XHTML spec.
2445 * tools/pep2html.py:
2447 - Made ``argv`` a parameter to ``main()``.
2448 - Added support for "Content-Type:" header & arbitrary PEP formats.
2449 - Linked "Content-Type: text/plain" to PEP 9.
2450 - Files skipped (due to an error) are not pushed onto the server.
2451 - Updated for new I/O classes.
2452 - Added ``check_requirements()`` & ``pep_type_error()``.
2453 - Added some exception handling.
2454 - Updated for new ``publish_string()`` convenience function.
2455 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2457 * tools/quicktest.py:
2459 - Added "-V"/"--version" option.
2461 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2463 * tools/unicode2rstsubs.py: Added to project. Produces character
2464 entity files (reSructuredText substitutions) from the MathML master
2467 * tools/editors: Support code for editors, added to project. Contains
2468 ``emacs/restructuredtext.el``.
2470 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2472 - Added style for chunks of inline literals.
2473 - Removed margin for first child of table cells.
2474 - Right-aligned field list names.
2475 - Support for auto-numbered section titles in TOCs.
2476 - Increased the size of inline literals (<tt>) in titles.
2477 - Restored the light gray background for inline literals.
2478 - Added support for "line_block" elements.
2479 - Added style for "address" elements.
2480 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2481 - Improved field list rendering.
2482 - Vertical whitespace improvements.
2483 - Removed "a.target" style.
2485 * tools/stylesheets/pep.css:
2487 - Fixed nested section margins.
2488 - Other changes parallel those of ``../default.css``.
2491 Release 0.2 (2002-07-31)
2492 ========================
2496 - The word "component" was being used ambiguously. From now on,
2497 "component" will be used to mean "Docutils component", as in Reader,
2498 Writer, Parser, or Transform. Portions of documents (Table of
2499 Contents, sections, etc.) will be called "document parts".
2500 - Did a grand renaming: a lot of ``verylongnames`` became
2501 ``very_long_names``.
2502 - Cleaned up imports: no more relative package imports or
2503 comma-separated lists of top-level modules.
2504 - Added support for an option values object which carries default
2505 settings and overrides (from command-line options and library use).
2506 - Added internal Unicode support, and support for both input and
2508 - Added support for the ``docutils.io.IO`` class & subclasses.
2512 * docutils/__init__.py:
2514 - Added ``ApplicationError`` and ``DataError``, for use throughout
2516 - Added ``Component`` base class for Docutils components; implements
2517 the ``supports`` method.
2518 - Added ``__version__`` (thus, ``docutils.__version__``).
2522 - Removed many keyword parameters to ``Publisher.__init__()`` and
2523 ``publish()``; bundled into an option values object. Added
2524 "argv", "usage", "description", and "option_spec" parameters for
2525 command-line support.
2526 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2528 - Reworked I/O model for ``docutils.io`` wrappers.
2529 - Updated ``Publisher.set_options()``; now returns option values
2531 - Added support for configuration files (/etc/docutils.conf,
2532 ./docutils.conf, ~/.docutils).
2533 - Added ``Publisher.setup_option_parser()``.
2534 - Added default usage message and description.
2536 * docutils/frontend.py: Added to project; support for front-end
2537 (command-line) scripts. Option specifications may be augmented by
2538 components. Requires Optik (http://optik.sf.net/) for option
2539 processing (installed locally as docutils/optik.py).
2541 * docutils/io.py: Added to project; uniform API for a variety of input
2544 * docutils/nodes.py:
2546 - Added ``TreeCopyVisitor`` class.
2547 - Added a ``copy`` method to ``Node`` and subclasses.
2548 - Added a ``SkipDeparture`` exception for visitors.
2549 - Renamed ``TreePruningException`` from ``VisitorException``.
2550 - Added docstrings to ``TreePruningException``, subclasses, and
2552 - Improved docstrings.
2553 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2554 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2556 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2557 ``PreDecorative`` mixin.
2558 - Reworked the name/id bookkeeping; to ``document``, removed
2559 ``explicit_targets`` and ``implicit_targets`` attributes, added
2560 ``nametypes`` attribute and ``set_name_id_map`` method.
2561 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2563 - Added ``document.has_name()`` method.
2564 - Fixed DOM generation for list-attributes.
2565 - Added category class ``Labeled`` (used by footnotes & citations).
2566 - Added ``Element.set_class()`` method (sets "class" attribute).
2568 * docutils/optik.py: Added to project. Combined from the Optik
2569 package, with added option groups and other modifications. The use
2570 of this module is probably only temporary.
2572 * docutils/statemachine.py:
2574 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2575 - Added underscores to improve many awkward names.
2576 - In ``string2lines()``, changed whitespace normalizing translation
2577 table to regexp; restores Python 2.0 compatibility with Unicode.
2579 * docutils/urischemes.py:
2581 - Filled in some descriptions.
2582 - Added "shttp" scheme.
2584 * docutils/utils.py:
2586 - Added ``clean_rcs_keywords`` function (moved from
2587 docutils/transforms/frontmatter.py
2588 ``DocInfo.filter_rcs_keywords``).
2589 - Added underscores to improve many awkward names.
2590 - Changed names of Reporter's thresholds:
2591 warning_level -> report_level; error_level -> halt_level.
2592 - Moved ``utils.id()`` to ``nodes.make_id()``.
2593 - Added ``relative_path(source, target)``.
2595 * docutils/languages/de.py: German mappings; added to project. Thanks
2596 to Gunnar Schwant for the translations.
2598 * docutils/languages/en.py: Added "Dedication" bibliographic field
2601 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2604 * docutils/parsers/rst/states.py:
2606 - Added underscores to improve many awkward names.
2607 - Added RFC-2822 header support.
2608 - Extracted the inline parsing code from ``RSTState`` to a separate
2609 class, ``Inliner``, which will allow easy subclassing.
2610 - Made local bindings for ``memo`` container & often-used contents
2611 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2612 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2613 - Added ``MarkupMismatch`` exception; for late corrections.
2614 - Added ``-/:`` characters to inline markup's start string prefix,
2615 ``/`` to end string suffix.
2616 - Fixed a footnote bug.
2617 - Fixed a bug with literal blocks.
2618 - Applied patch from Simon Budig: simplified regexps with symbolic
2619 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2620 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2621 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2622 - Allowed non-ASCII in "simple names" (directive names, field names,
2624 - Converted ``Inliner.patterns.initial`` to be dynamically built
2625 from parts with ``build_regexp()`` function.
2626 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2627 - Updated docstrings.
2628 - Changed "table" to "grid_table"; added "simple_table" support.
2630 * docutils/parsers/rst/tableparser.py:
2632 - Changed ``TableParser`` to ``GridTableParser``.
2633 - Added ``SimpleTableParser``.
2634 - Refactored naming.
2636 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2637 a fallback language for directive names.
2639 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2640 directive to use a ``pending`` element, used only by HTML writers.
2642 * docutils/parsers/rst/directives/parts.py: Renamed from
2645 - Added "backlinks" attribute to "contents" directive.
2647 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2648 project by Adam Chodorowski.
2650 * docutils/readers/__init__.py: Gave Readers more control over
2651 choosing and instantiating Parsers.
2653 * docutils/readers/pep.py: Added to project; for PEP processing.
2655 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2656 requires a ``component`` parameter.
2658 * docutils/transforms/components.py: Added to project; transforms
2659 related to Docutils components.
2661 * docutils/transforms/frontmatter.py:
2663 - In ``DocInfo.extract_authors``, check for a single "author" in an
2664 "authors" group, and convert it to a single "author" element.
2665 - Added support for "Dedication" and generic bibliographic fields.
2667 * docutils/transforms/peps.py: Added to project; PEP-specific.
2669 * docutils/transforms/parts.py: Renamed from old components.py.
2671 - Added filter for `Contents`, to use alt-text for inline images,
2672 and to remove inline markup that doesn't make sense in the ToC.
2673 - Added "name" attribute to TOC topic depending on its title.
2674 - Added support for optional TOC backlinks.
2676 * docutils/transforms/references.py: Fixed indirect target resolution
2677 in ``Hyperlinks`` transform.
2679 * docutils/transforms/universal.py:
2681 - Changed ``Messages`` transform to properly filter out system
2682 messages below the warning threshold.
2683 - Added ``Decorations`` transform (support for ``--generator``,
2684 ``--date``, ``--time``, ``--source-link`` options).
2686 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2687 Engelbert Gruber's PDF writer.
2689 * docutils/writers/html4css1.py:
2691 - Made XHTML-compatible (switched to lowercase element & attribute
2692 names; empty tag format).
2693 - Escape double-dashes in comment text.
2694 - Improved boilerplate & modularity of output.
2695 - Exposed modular output in Writer class.
2696 - Added a "generator" meta tag to <head>.
2697 - Added support for the ``--stylesheet`` option.
2698 - Added support for ``decoration``, ``header``, and ``footer``
2700 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2701 translation table to regexp; restores Python 2.0 compatibility
2703 - Added the translator class as instance variable to the Writer, to
2704 make it easily subclassable.
2705 - Improved option list spacing (thanks to Richard Jones).
2706 - Modified field list output.
2707 - Added backlinks to footnotes & citations.
2708 - Added percentage widths to "<col>" tags (from colspec).
2709 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2710 "<span>" changed to "<var>".
2711 - Inline literals: "<code>" changed to "<tt>".
2712 - Many changes to optimize vertical space: compact simple lists etc.
2713 - Add a command-line options & directive attributes to control TOC
2714 and footnote/citation backlinks.
2715 - Added support for optional footnote/citation backlinks.
2716 - Added support for generic bibliographic fields.
2717 - Identify backrefs.
2718 - Relative URLs for stylesheet links.
2720 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2721 PEPs (subclass of ``html4css1.Writer``).
2723 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2725 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2726 of the Docutils internal doctree in XML.
2728 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2732 - Changed the title to "The Docutils Document Tree".
2733 - Added "Hyperlink Bookkeeping" section.
2735 * spec/docutils.dtd:
2737 - Added ``decoration``, ``header``, and ``footer`` elements.
2738 - Brought ``interpreted`` element in line with the parser: changed
2739 attribute "type" to "role", added "position".
2740 - Added support for generic bibliographic fields.
2742 * spec/notes.txt: Continual updates. Added "Project Policies".
2744 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2747 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2749 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2750 mailing list discussions.
2752 * spec/pep-0287.txt:
2754 - Renamed to "reStructuredText Docstring Format".
2756 - Reworked Q&A as an enumerated list.
2757 - Converted to reStructuredText format.
2759 * spec/pysource.dtd:
2761 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2763 * spec/pysource.txt: Removed from project. Moved much of its contents
2766 * spec/rst/alternatives.txt:
2768 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2769 - Added "Inline External Targets" section.
2771 * spec/rst/directives.txt:
2773 - Added "backlinks" attribute to "contents" directive.
2775 * spec/rst/problems.txt:
2777 - Updated the Enumerated List Markup discussion.
2778 - Added new alternative table markup syntaxes.
2780 * spec/rst/reStructuredText.txt:
2782 - Clarified field list usage.
2783 - Updated enumerated list description.
2784 - Clarified purpose of directives.
2785 - Added ``-/:`` characters to inline markup's start string prefix,
2786 ``/`` to end string suffix.
2787 - Updated "Authors" bibliographic field behavior.
2788 - Changed "inline hyperlink targets" to "inline internal targets".
2789 - Added "simple table" syntax to supplement the existing but
2790 newly-renamed "grid tables".
2791 - Added cautions for anonymous hyperlink use.
2792 - Added "Dedication" and generic bibliographic fields.
2794 * test: Made test modules standalone (subdirectories became packages).
2796 * test/DocutilsTestSupport.py:
2798 - Added support for PEP extensions to reStructuredText.
2799 - Added support for simple tables.
2800 - Refactored naming.
2802 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2804 - Now supports true packages containing test modules
2805 (``__init__.py`` files required); fixes duplicate module name bug.
2807 * test/test_pep/: Subpackage added to project; PEP testing.
2809 * test/test_rst/test_SimpleTableParser.py: Added to project.
2813 - Updated html.py and publish.py front-end tools to use the new
2814 command-line processing facilities of ``docutils.frontend``
2815 (exposed in ``docutils.core.Publisher``), reducing each to just a
2817 - Added ``locale.setlocale()`` calls to front-end tools.
2819 * tools/buildhtml.py: Added to project; batch-generates .html from all
2820 the .txt files in directories and subdirectories.
2822 * tools/default.css:
2824 - Added support for ``header`` and ``footer`` elements.
2825 - Added styles for "Dedication" topics (biblio fields).
2827 * tools/docutils.conf: A configuration file; added to project.
2829 * tools/docutils-xml.py: Added to project.
2831 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2833 * tools/pep-html-template: Added to project.
2835 * tools/pep2html.py: Added to project from Python (nondist/peps).
2836 Added support for Docutils (reStructuredText PEPs).
2838 * tools/quicktest.py:
2840 - Added the ``--attributes`` option, hacked a bit.
2841 - Added a second command-line argument (output file); cleaned up.
2843 * tools/stylesheets/: Subdirectory added to project.
2845 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2848 Release 0.1 (2002-04-20)
2849 ========================
2851 This is the first release of Docutils, merged from the now inactive
2852 reStructuredText__ and `Docstring Processing System`__ projects. For
2853 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2854 `DPS HISTORY`__ files.
2856 __ http://structuredtext.sourceforge.net/
2857 __ http://docstring.sourceforge.net/
2858 __ http://structuredtext.sourceforge.net/HISTORY.html
2859 __ http://docstring.sourceforge.net/HISTORY.html
2861 General changes: renamed 'dps' package to 'docutils'; renamed
2862 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2863 the test suites (reStructuredText's test/test_states renamed to
2864 test/test_rst); and all modifications required to make it all work.
2866 * docutils/parsers/rst/states.py:
2868 - Improved diagnostic system messages for missing blank lines.
2869 - Fixed substitution_reference bug.
2875 indent-tabs-mode: nil
2876 sentence-end-double-space: t