1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: docutils-develop@lists.sourceforge.net
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
21 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
22 - Support embedded aliases within hyperlink references.
26 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
28 * docutils/parsers/rst/directives/__init__.py
30 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
32 * docutils/parsers/rst/directives/images.py
34 - Apply [ 3599485 ] node source/line information for sphinx translation.
36 * docutils/utils/__init__.py
38 - Fix [ 3596884 ] exception importing ``docutils.io``.
40 * docutils/writers/html4css1/__init__.py
42 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
43 - New setting `stylesheet_dirs`: Comma-separated list of directories
44 where stylesheets are found. Used by `stylesheet_path` when expanding
45 relative path arguments.
47 * docutils/writers/latex2e/__init__.py
49 - Drop the simple algorithm replacing straight double quotes with
50 English typographic ones.
51 Activate the SmartQuotes_ transform if you want this feature.
52 - Fix literal use of babel shorthands (straight quote, tilde, ...).
53 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
54 - New setting `stylesheet_dirs`.
56 .. _SmartQuotes: docs/user/config.html#smart-quotes
58 * docutils/writers/manpage.py
60 - Fix option separating comma was bold (thanks to Bill Morris).
62 Release 0.10 (2012-12-16)
63 =========================
67 - Dropped support for Python 2.3.
68 - ``docutils/math``, ``docutils/error_reporting.py``, and
69 ``docutils/urischemes.py`` moved to the utils package.
70 - Fix [3541369] Relative __import__ also with Python 3.3.
71 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
72 and parsers for Python 2.7 up.
73 - Fix import of PIL.Image.
74 - Change default of "syntax highlight" option to "long",
75 basic syntax highlight styles for LaTeX and HTML.
79 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
80 option is ignored and will be removed in a future release.
81 - Fix Py3k error writing to stdout with encoding differing from default.
82 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
84 * docutils/parsers/rst/directives/misc.py
86 - Fix [ 3546533 ] Unicode error with `date` directive.
88 * docutils/transforms/universal.py
90 - SmartQuotes transform for typographic quotes and dashes.
92 * docutils/utils/__init__.py
94 - normalize_language_tag() now returns `BCP 47`_ conformant tags
95 with subtags separated by ``-``.
97 * docutils/writers/html4css1/__init__.py
99 - Use ``<code>`` tag for inline "code",
100 do not drop nested inline nodes (syntax highlight tokens).
101 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
102 - No line break after opening inline math tag.
104 * docutils/writers/manpage.py
106 - Apply [ 3527401 ] addmonition's don't preserve indentation
107 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
109 , docutils/writers/xetex/__init__.py
111 - Apply [ 3555160 ] ensure order of "otherlanguages".
112 - Fix section numbering by LaTeX.
114 * docutils/writers/s5_html/__init__.py
116 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
118 * docutils/writers/s5_html/docutils_xml.py
120 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
124 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
126 * tools/test/test_buildhtml.py
128 - Fix [ 3521167 ] allow running in any directory.
129 - Fix [ 3521168 ] allow running with Python 3.
132 Release 0.9.1 (2012-06-17)
133 ==========================
137 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
138 installed in the PYTHONPATH. Converted tests are now
139 stored in ``test3/``, tools no longer need conversion.
141 If you installed one of Docutils versions 0.7 ... 0.9 with
142 ``setup.py install`` under Python 3, remove the spurious
143 ``test/`` and ``tools/`` directories in the site library root.
147 - Make tests independent from the location of the ``test/`` directory.
148 - Use converted sources (from the ``build/`` directory) for tests under
153 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
157 - Fix writing binary data to sys.stdout under Python 3 (allows
158 ``rst2odt.py`` to be used with output redirection).
160 * docutils/parsers/rst/directives/misc.py
162 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
163 ``locale == C`` and 8-bit char in path argument of `include` directive.
167 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
170 Release 0.9 (2012-05-02)
171 ========================
175 - New reStructuredText "code" role and directive and "code" option
176 of the "include" directive with syntax highlighting by Pygments_.
177 - Fix parse_option_marker for option arguments containing ``=``.
178 - Fix [ 2993756 ]: import Python Imaging Library's Image module
179 via ``import PIL`` as starting with PIL 1.2,
180 "PIL lives in the PIL namespace only" (announcement__).
182 .. _Pygments: http://pygments.org/
183 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
187 - Fix [ 2971827 ] and [ 3442827 ]
188 extras/roman.py moved to docutils/utils/roman.py
190 * docutils/frontend.py
192 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
196 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
197 - `mode` argument for FileOutput avoids code replication in
199 - New exceptions InputError and OutputError for IO errors in
200 FileInput/FileOutput.
204 - No "hard" system exit on file IO errors: catch and report them in
205 `Publisher.reportException` instead. Allows handling by a calling
206 application if the configuration setting `traceback` is True.
208 * docutils/utils.py -> docutils/utils/__init__.py
210 - docutils.utils is now a package (providing a place for sub-modules)
212 .. note:: docutils/math, docutils/error_reporting.py, and
213 docutils/urischemes.py will move to the utils package in the next
214 release, too. See RELEASE-NOTES__
216 __ RELEASE-NOTES.html
218 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
219 errors recording non-ASCII filenames (fixes [ 3434355 ]).
221 - Fix relative_path() with source=None and `unicode` target.
223 * docutils/parsers/rst/states.py
225 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
226 characters and "international" quotes around inline markup.
227 - Use `field_marker` pattern to look for start of a
228 directive option block (fixes [ 3484857 ]).
230 * docutils/parsers/rst/tableparser.py
232 - Fix [ 2926161 ] for simple tables.
233 (Combining chars in grid tables still contribute to cell width.)
235 * docutils/writers/latex2e/__init__.py
237 - Support the `abbreviation` and `acronym` standard roles.
238 - Record only files required to generate the LaTeX source as dependencies.
239 - Fix handling of missing stylesheets.
240 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
241 when suppressing LaTeX section numbering.
242 - Use ``\DUtitle`` for unsupported section levels
243 - Apply [ 3512791 ] do not compare string literals with "is"
245 * docutils/writers/xetex/__init__.py
247 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
249 * docutils/writers/html4css1/__init__.py
251 - Change default for `math-output` setting to MathJax.
252 - Fix handling of missing stylesheets.
254 * docutils/writers/docutils_xml.py
256 - Use the visitor pattern with default_visit()/default_depart() methods
257 instead of minidom to facilitate special handling of selected nodes.
258 - Support raw XML (inserted as-is inside a <raw></raw> node).
260 * docutils/writers/manpage.py
262 - Do not emit comment line with trailing blank. Problematic for VCS.
264 Release 0.8.1 (2011-08-30)
265 ==========================
269 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
270 and [ 3395920 ] (correct copyright info for rst.el).
274 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
276 * docutils/writers/latex2e/__init__.py
278 - Clean up Babel language setting. Restores Sphinx compatibility.
280 Release 0.8 (2011-07-07)
281 ========================
285 - Handle language codes according to `BCP 47`_.
286 - If the specified language is not supported by Docutils,
287 warn and fall back to English.
288 - Math support: reStructuredText "math" role and directive,
289 ``math`` and ``math_block`` doctree elements.
290 - Decode command line arguments with the locale's preferred encoding
291 (to allow, e.g., ``--title=Dornröschen``).
292 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
293 - New sub-module `error_reporting`: handle encoding/decoding errors
294 when reporting exceptions.
295 - Some additions to the Docutils core are released under the 2-Clause BSD
296 license, see COPYING_ for details.
298 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
299 .. _COPYING: COPYING.html
303 - Most directives now support a "name" option that attaches a
306 - Directive content may start on the first line also when the directive
307 type accepts options.
309 * docs/dev/policies.txt:
311 - Recommend the 2-Clause BSD license
312 (http://www.spdx.org/licenses/BSD-2-Clause)
313 for code that is kept under the author's copyright.
315 * tools/buildhtml.py:
317 - Fix ``--local`` switch.
319 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
321 * docutils/writers/html4css1/__init__.py
323 - Set "lang" argument for objects with class argument
324 "language-<language tag>".
325 - New setting "math-output" with support for HTML, MathML, and LaTeX.
327 * docutils/writers/latex2e/__init__.py
329 - Fix [ 3043986 ] AttributeError using :local: with table of content.
330 - Place title data in the document preamble.
331 - Load `babel` package only if required.
332 - Update list of supported languages.
333 - New config setting "hyperref-options".
334 No hard-coded "unicode" hyperref option (clash with xetex).
335 - Set language for custom roles, paragraphs, block-quotes, and
336 line-quotes with class argument "language-<language tag>".
337 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
338 - Convert image URI to a local file path.
339 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
340 has more than one paragraph (Wolfgang Scherer).
341 - \leavevmode before longtable only when needed (prevents spurious vspace)
342 - do not advance table counter for tables without caption
344 * docutils/writers/xetex/__init__.py
346 - New writer generating LaTeX code for compiling with ``xelatex``.
348 A separate writer (inheriting from latex2e) instead of a ``--xetex``
349 option allows separate config options for XeTeX vs. LaTeX2e.
351 * docutils/writers/manpage.py
353 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
354 - Fix: vertical space cleaning for option group ``.``.
356 * tools/editors/emacs/rst.el:
358 - Fix [ 3001100 ] does not handle spaces in filenames
359 (thanks to Jakub Wilk)
363 - strip whitespace from stylesheet arguments
364 - exclude combining chars from column_width()
365 (partial fix for [ 2926161 ])
367 * docutils/parsers/rst/directives/misc.py:
369 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
374 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
375 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
377 Release 0.7 (2010-07-07)
378 ========================
382 - Fix [ 2881769 ] setup configuration.
383 - Fix [ 2788716 ] reporting problems in included files.
387 - FileInput opens files as text files with universal newline support
388 (mode "rU", configurable with the new optional argument "mode").
392 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
396 - Fix [ 2923723 ] let decode_path() tolerate path == None
398 * docutils/writers/html4css1/__init__.py
400 - Support SVG and SWF images (thanks to Stefan Rank).
401 - Generate valid XHTML for centered images with targets.
402 Use CSS classes instead of "align" tags for image alignment.
404 * docutils/writers/latex2e/__init__.py
406 - Use `transforms.writer_aux.Admonitions` to "normalize" special
408 - Use the ``\url`` command for URLs (breaks long URLs instead of
409 writing into the margin).
410 - Preserve runs of spaces in `inline literals`__.
411 - Deprecate ``figure_footnotes`` setting.
412 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
413 - New ``latex_preamble`` setting.
414 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
415 - Fix hyperlink targets (labels) for images, figures, and tables.
416 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
417 - Apply [ 2961991 ] Call hyperref with unicode option.
418 - Drop the special `output_encoding`__ default ("latin-1").
419 The Docutils wide default (usually "UTF-8") is used instead.
420 - Render inline markup in document title and subtitle.
421 - Fix numbering depth with LaTeX section numbering.
422 - Update Unicode -> LaTeX translations.
423 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
425 __ docs/ref/restructuredtext.html#inline-literals
426 __ docs/user/config.html#docutils-footnotes
427 __ docs/user/config.html#output_encoding
429 * docutils/writers/manpage.py
431 - Fix: supported attribute (thanks to peter2108).
432 - Remove trailing blanks in code (keep in sync with mercurial version).
433 - Titles level 1, that is ``.SH``, always uppercase.
434 - Apply patch from mg: literal text should be bold in man-pages.
438 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
443 - Python 3 support: copy test/ and tools/ to the build-dir
444 and convert Python sources with 2to3.
447 Release 0.6 (2009-10-11)
448 ========================
452 - Docutils is now compatible with Python versions from 2.3 up to 2.6
453 and convertible to 3.1 code.
455 + Node.__nonzero__ returns True instead of 1.
456 + use os.walk instead os.path.walk.
457 + minimize "types" module where possible.
458 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
459 + Text nodes now subclass unicode rather than UserString
460 (which is gone in python 3.0).
461 + 3.0 compatibility module docutils._compat
463 + Drop 2.2 compatibility workarounds.
464 + Drop extras/optparse.py and extras/textwrap.py
465 (stdlib modules since 2.3).
467 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
468 - Unix man page export: manpage writer moved from sandbox to Doctutils
471 - Apply [ 1719345 ] Galician translation
472 - Apply [ 1905741 ] Polish translation
473 - Apply [ 1878977 ] make_id(): deaccent characters.
474 - Apply [ 2029251 ] return nonzero when tests fail.
475 - Fix [ 1692788 ] allow UTF-8 in style sheets.
476 - Fix [ 2781629 ] support non-ASCII chars in file names.
477 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
478 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
479 - Fix [ 2821266 ] --strict option works now like --halt=info.
480 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
481 - Fix [ 1627229 ] hyperlink references in substitutions.
483 - The "newlatex" writer is orphaned.
487 - Documented Unicode characters allowed as inline markup openers,
488 closers, and delimiters.
489 - Allow units for all length specifications.
490 - Allow percent sign in "scale" argument of "figure" and "image" directives.
491 - Bugfix: The "figalign" argument of a figure now works as intended
492 (aligning the figure, not its contents).
493 - Align images with class "align-[right|center|left]"
494 (allows setting the alignment of an image in a figure).
498 - Added ``Element.__contains__`` method, for the in-operator.
500 * docutils/parsers/rst/states.py:
502 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
503 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
504 " " (non-breaking space), and "¡ ¿" openers.
506 * docutils/parsers/directives/misc.py:
508 - Added ``start-line`` and ``end-line`` options to "include"
509 directive to select a range of lines.
510 - Hard tabs in literal inclusions are replaced by spaces. This is
511 configurable via the new ``tab-width`` option of the "include" directive
512 (a negative tab-width prevents tab expansion).
516 - Add ``get_stylesheet_list`` function.
517 - Apply [ 2834836 ] print info at halt
519 * docutils/transforms/universal.py:
521 - Raise default priority of StripClasses to exclude stripped classes from
524 * docutils/writers/html4css1/__init__.py:
526 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
527 separated list of stylesheets.
528 - Address [ 1938891 ] Inline literal text creates "pre" span only when
529 needed to prevent inter-word line wraps.
530 - Use `translate` method instead of repeated `replace` calls.
531 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
532 classes to allow CSS styling that does not interfere with other
533 table-using constructs (field lists, citations, ...).
535 * docutils/writers/newlatex2e/__init__.py:
537 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
539 * docutils/writers/latex2e/__init__.py (see also
540 `<docs/user/docutils-05-compat.sty.html>`__) :
542 - Add ``--embed-stylesheet`` option.
543 - Apply [ 1474017 ] image vertical alignment is reversed.
544 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
545 - Change: has_key for dictionaries (not Nodes) to in-operator.
546 - Merge adjacent citations into one latex cite command.
547 - Failsave implementation of custom roles. LaTeX compilation now ignores
548 unknown classes instead of aborting with an error.
549 - Support custom roles based on standard roles.
550 - LaTeX packages can be used as ``--stylesheet`` arguments without
551 restriction. (A style sheet is now referenced with the ``\usepackage``
552 command, if it ends with ``.sty`` or has no extension.)
553 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
554 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
555 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
556 2005-02-04 as a configurable length unit).
557 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
558 if font-encoding is set to ''. LaTeX defaults to OT1 then.
559 - Set sub- and superscript role argument in text mode not as math.
560 Use a custom role based on sub-/superscript if you want italic shape.
561 - Shorter preamble and less dependencies: Load packages and define macros
562 only if required in the document.
563 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
564 - New custom environments and commands with optional "classes" argument.
565 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
566 - Better conformance to Docutils specifications with ``--use-latex-toc``.
567 Support for LaTeX generated ToC also with unnumbered sections.
568 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
569 section numbering by LaTeX.
570 - Use default font in admonitions and sidebar.
571 - Align of image in a figure defaults to 'center'.
572 - Bugfix: Newlines around targets and references prevent run-together
574 - Fix internal hyperlinks.
575 - Use class defaults for page margins ('typearea' now optional).
576 - Float placement made configurable, default changed to "here definitely".
577 - Typeset generic topic as "quote block with title".
578 - Use template (file and configuration option).
579 - In the default template, load cmap.sty (fix text extraction in PDF) and
580 fixltx2e.sty (LaTeX patches, \textsubscript).
581 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
582 - Use `translate` instead of repeated `replace` calls for text encoding.
583 - Hyperlinked footnotes and support for symbol footnotes and
584 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
585 - Complete pairs of binary options
586 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
587 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
589 - font-encoding: "T1" (formerly implicitely set by 'ae').
590 - use-latex-toc: true (ToC with page numbers).
591 - use-latex-footnotes: true (no mixup with figures).
593 * docutils/writers/manpage.py
595 - Do not print version at document end, this is done by the viewer.
596 - Do not print date at document end, this is done by the viewer.
597 - Fix storage of docinfo fields for none standard fields.
599 * docutils/tools/rst2man.py
601 Release 0.5 (2008-06-25)
602 ========================
604 * docutils/languages/he.py: Added to project: Hebrew mappings by
607 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
608 mappings by Meir Kriheli.
610 * docutils/frontend.py:
612 - Configuration files are now assumed and required to be
614 - Paths of applied configuration files are now recorded in the
615 runtime setting ``_config_files`` (accessible via
616 ``--dump-settings``).
617 - Added ``--strip-elements-with-class`` and ``--strip-class``
618 options (``strip_elements_with_classes`` and ``strip_classes``
623 - Added code to determine the input encoding from data: encoding
624 declarations or the presence of byte order marks (UTF-8 & UTF-16).
625 - Added support for IronPython 1.0.
629 - Added ``document.__getstate__`` method, for pickling.
631 * docutils/parsers/rst/states.py:
633 - Allow ``+`` and ``:`` in reference names.
634 - Unquoted targets beginning with an underscore (``.. __target:
635 URI``) are no longer accepted.
636 - Added support for multiple attributions in a physical block quote
637 (indented text block), dividing it into multiple logical block
639 - Added support for unicode bullets in bullet lists: "•", "‣", and
641 - Added support for new object-oriented directive interface,
642 retaining compatibility to the old functional interface.
643 - Added support for throwing ``DirectiveError``'s from within
646 * docutils/parsers/rst/__init__.py:
648 - Added ``Directive`` base class.
649 - Added ``DirectiveError`` base class.
650 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
653 * docutils/parsers/directives/:
655 - Refactored all reStructuredText directives to use the new
656 object-oriented directive interface. Errors are now (mostly)
657 thrown using the new ``DirectiveError`` class.
659 * docutils/parsers/directives/misc.py:
661 - Added ``start-after`` and ``end-before`` options to ``include``
662 directive; thanks to Stefan Rank.
664 * docutils/transforms/universal.py:
666 - Added ``StripClassesAndElements`` transform to remove from the
667 document tree all elements with classes in
668 ``settings.strip_elements_with_classes`` and all "classes"
669 attribute values in ``self.document.settings.strip_classes``.
671 * docutils/transforms/writer_aux.py:
673 - Added ``Admonitions`` transform to transform specific admonitions
674 (like ``note``, ``warning``, etc.) into generic admonitions with a
677 * docutils/writers/html4css1/__init__.py:
679 - Moved template functionality from the PEP/HTML writer here.
680 - Expanded the fragments available in the ``parts`` attribute.
681 - Moved ``id`` attributes from titles to surrounding ``div``
683 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
684 universally supported now).
685 - ``template.txt`` is now opened in text mode instead of binary mode
686 (to ensure Windows compatibility).
687 - ``a`` elements now have an "internal" or "external" class,
688 depending on reference type.
690 * docutils/writers/html4css1/template.txt: Added to project.
692 * docutils/writers/pep_html/:
694 - Moved template functionality to the HTML writer.
696 * docutils/writers/s5_html/__init__.py:
698 - Added ``view_mode`` & ``hidden_controls`` settings
699 (``--view-mode`` & ``--hidden-controls/--visible-controls``
702 * docutils/writers/latex2e/__init__.py:
704 - Add ``--literal-block-env``
705 - Fix: escaping ``%`` in href urls.
706 - Move usepackage hyperref after stylesheet inclusion.
707 - Fix: scrartcl does not have chapter but scrreprt.
708 - Add newline after ``\end{verbatim}``.
709 - Merge smaller differences from latex2e_adaptive_preamble.
710 - Add ``use-part-section``.
711 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
712 - Using leavemode option_list no longer needs to check if parent
713 is a definition list.
714 - Append ``\leavemode`` to definition list terms.
715 - No longer write visit\_/depart_definition_list_item comments to
717 - Table column width with 3 decimal places.
718 - Add table stubs support (boldfont).
719 - Add assemble_parts to writer.
720 - Add simply support for nested tables.
721 - Fix verbatim in tables if use-verbatim-when-possible.
722 - Use section commands down to subparagraph.
723 - Put ensuremath around some latin1 chars.
724 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
725 - New option ``--use-bibtex=style,db1,db2``.
726 - New option ``--reference-label`` to allow usage of LaTeX ref for
727 labels in section references.
728 - Add a label after every section to support sectionnumbers as reference
730 - Fix: bug# 1605376 rst2latex: bad options group list
731 - Remove inactive code for use_optionlist_for_option_list.
732 - Remove latex comments from option_list output.
733 - Fix: bug# 1612270 double qoutes in italian literal.
734 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
735 - Add option --use-latex-abstract.
736 - Image width unit ``px`` is translated to ``pt``.
737 - Add image height support.
738 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
740 - Fix: Do not escape underscores in citation reference labels if
741 use-latex-citations is set.
742 - Use centering instead of center for figure contents, to avoid vertical
744 - Recognize table class: borderless, nolines, booktabs, standard.
745 - Fix: Renaming contents section does not work with latex writer; SF
747 - Applied patch for custom roles with classes from Edward Loper.
748 - Fixed bug that caused crashes with more than 256 lists.
750 * docutils/writers/pep_html/__init__.py:
752 - Changed to support new python.org website structure and
755 * docs/howto/security.txt: "Deploying Docutils Securely", added to
758 * tools/buildhtml.py:
760 -- Added ``ignore`` setting to exclude a list of shell patterns
761 (default: ``.svn:CVS``).
763 * tools/editors/emacs/rst.el:
765 - Changed license to "GPL".
766 - Added ``rst-straighten-decorations`` function.
767 - The ``compile`` module is now always loaded.
768 - Added ``rst-toggle-line-block`` function.
769 - Headings consisting only of non-ASCII characters are now
770 recognized by ``rst-toc`` and ``rst-adjust``.
771 - Added font-lock support for multi-line comments where the first
772 comment line is empty.
773 - Added ``(require 'font-lock)``.
777 - Provide descriptive error message if distutils is missing.
780 Release 0.4 (2006-01-09)
781 ========================
785 - Updated the project policies for trunk/branch development &
788 * docutils/__init__.py:
790 - Added ``__version_details__`` attribute to describe code source
791 (repository/snapshot/release).
792 - Replaced ``default_transforms`` attribute of TransformSpec with
793 ``get_transforms()`` method.
797 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
798 functions, for document tree extraction and reprocessing.
802 - Added ``DocTreeInput`` class, for reprocessing existing documents.
803 - Added support for non-Unicode (e.g. binary) writer output.
807 - Re-introduced ``Targetable.indirect_reference_name``, for
808 MoinMoin/reST compatibility (removed in r3124/r3129).
809 - Added ``serial_escape`` function; escapes string values that are
810 elements of a list, for serialization. Modified Docutils-XML
811 writing (``Element._dom_node``) and pseudo-XML writing
812 (``Element.starttag``) to use ``serial_escape``.
813 - Added ``Node.deepcopy()`` method.
814 - Removed the internal lists ``document.substitution_refs``,
815 ``document.anonymous_refs``, and ``document.anonymous_targets``.
816 - Added a "container" element.
817 - Fixed bug where values of list-valued attributes of elements
818 originating from custom interpreted text roles (i.e., with custom
819 classes) were being shared between element instances. Reported by
822 * docutils/statemachine.py:
824 - Added trailing whitespace stripping to ``string2lines()``.
825 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
826 Asian double-width character support.
830 - Added ``east_asian_column_width()`` for double-width character
833 * docutils/languages/ja.py: Added to project: Japanese mappings by
836 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
837 mappings by Panjunyong.
839 * docutils/parsers/null.py: Added to project; a do-nothing parser.
841 * docutils/parsers/rst/__init__.py:
843 - Added validator to tab_width setting, with test. Closes SF bug
844 #1212515, report from Wu Wei.
846 * docutils/parsers/rst/states.py:
848 - Fixed bug with escaped colons indicating a literal block.
849 - Fixed bug with enumerated lists (SF#1254145).
850 - Backslash-escaped colons inside of field names are now allowed.
851 - Targets (implicit and explicit), anonymous hyperlink references
852 and auto-numbered footnote references inside of substitution
853 definitions are now disallowed.
854 - Fixed bug: list items with blank first lines.
855 - Fixed bug: block quote attributions with indented second lines.
856 - Added East Asian double-width character support (Python 2.4 only).
858 * docutils/parsers/rst/tableparser.py:
860 - Added East Asian double-width character support (Python 2.4 only).
862 * docutils/parsers/rst/directives/body.py:
864 - Added the "container" directive.
866 * docutils/parsers/rst/directives/misc.py:
868 - Added the "default-role", "title", and "date" directives.
869 - Added standard data file syntax to the "include" directive.
870 - Added support for "class" directive content.
872 * docutils/parsers/rst/directives/images.py:
874 - Added ``indirect_reference_name`` support for images with a target
876 - Added support for image width and height units.
877 - Fixed bug with image "target" options.
879 * docutils/parsers/rst/directives/references.py:
881 - Added "class" attribute to "target-notes" directive, for
882 footnote_reference classes.
884 * docutils/parsers/rst/include/: Directory added to project; contains
885 standard data files for the "include" directive. Initial contents:
886 character entity substitution definition sets, and a set of
887 definitions for S5/HTML presentations.
889 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
890 mappings by David Goodger.
892 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
893 Simplified Chinese mappings by Panjunyong.
895 * docutils/readers/__init__.py:
897 - Added universal.Decorations and universal.ExposeInternals
898 transforms as default transforms for all readers.
899 - Added ``ReReader`` base class for readers that reread an existing
902 * docutils/readers/doctree.py: Added to project; a reader for existing
905 * docutils/transforms/frontmatter.py:
907 - Fixed the DocInfo transform to handle SVN-style expansion of the
909 - In ``DocInfo.extract_authors``, treat the contents of "authors"
912 * docutils/transforms/misc.py:
914 - Added misc.Transitions transform, extracted from
915 universal.FinalChecks.
917 * docutils/transforms/references.py:
919 - Added references.DanglingReferences transform, extracted from
920 universal.FinalChecks.
921 - Fixed bug with doubly-indirect substitutions.
922 - Added footnote_reference classes attribute to "TargetNotes".
923 - Fixed bug with circular substitution definitions that put Docutils
924 into an infinite loop.
926 * docutils/transforms/universal.py:
928 - Added universal.ExposeInternals transform, extracted from
929 universal.FinalChecks.
930 - Removed universal.FinalChecks transform (logic has been moved to
931 several new transforms).
932 - Fixed bug with the "expose_internals" setting and Text nodes
933 (exposed by the "rawsource" internal attribute).
934 - Added the universal.StripComments transform, implementation of the
935 "strip_comments" setting.
937 * docutils/transforms/writer_aux.py: Added to project; auxiliary
938 transforms for writers.
940 - Added ``Compound`` transform, which flattens compound paragraphs.
942 * docutils/writers/: Several writer modules (html4css1.py) were
943 converted into packages. Support modules and data files have been
944 moved into the packages. The stylesheets for the HTML writers are
945 now installed along with the code, the code knows where to find
946 them, and the default is to use them (actually, to embed them).
947 Some adjustments to configuration files may be necessary. The
948 easiest way to obtain the new default behavior is to remove all
949 settings whose name includes "stylesheet".
951 * docutils/writers/__init__.py:
953 - Added universal.Messages and universal.FilterMessages transforms
954 as default transforms for all writers.
955 - Added ``UnfilteredWriter`` base class for writers that pass the
956 document tree on unchanged.
958 * docutils/writers/docutils_xml.py:
960 - Made ``xmlcharrefreplace`` the default output encoding error
963 * docutils/writers/html4css1/:
965 - Added support for image width and height units.
966 - Made ``xmlcharrefreplace`` the default output encoding error
968 - Made ``--embed-stylesheet`` the default rather than
969 ``--link-stylesheet``.
970 - Moved "id" attribute from container (section etc.) to title's <a>
971 tag, to be on the same tag as "name".
972 (!!! To be reverted in Docutils 0.5.)
973 - Added vertical space between fields of field lists.
974 - Added ``--compact-field-lists`` option to remove vertical space in
976 - Made cloaking of email addresses with ``--cloak-email-addresses``
978 - Fixed support for centered images.
979 - Added support for class="compact" & class="open" lists.
981 * docutils/writers/latex2e/:
983 - Underscores in citekeys are no longer escaped.
985 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
986 mapping of Unicode characters to LaTeX equivalents.
988 * docutils/writers/s5_html/: Package added to project; writer for
991 * docs/dev/distributing.txt: Added to project; guide for distributors
992 (package maintainers).
994 * docs/dev/hacking.txt: Added to project; guide for developers.
996 * docs/ref/doctree.txt:
998 - Updated for plural attributes "classes", "ids", "names",
1000 - Added the "container" element.
1002 * docs/ref/docutils.dtd:
1004 - Updated for plural attributes "classes", "ids", "names",
1007 * docs/user/emacs.txt: Added to project; a document about Emacs
1008 support for reStructuredText and Docutils.
1010 * docs/user/links.txt: Added to project; lists of Docutils-related
1013 * docs/user/mailing-lists.txt: Added to project; information about
1014 Docutils-related mailing lists and how to access them.
1016 * docs/user/slide-shows.txt: Added to project; example of and docs for
1017 the S5/HTML writer (``rst2s5.py`` front end).
1019 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1020 Files", added to project.
1022 * test/coverage.sh: Added to project; test coverage script.
1024 * test/DocutilsTestSupport.py:
1026 - Added support for specifying runtime settings at the suite level.
1028 * test/test_functional.py:
1030 - Added the ``clear_output_directory`` function.
1031 - Added support for ``_test_more`` functions in functional test
1034 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1036 * tools/rstpep2html.py: Renamed from pep.py.
1038 * tools/dev/create_unimap.py: Added to project; script to create the
1039 docutils/writers/unimap_latex.py mapping file.
1041 * tools/dev/profile_docutils.py: Added to project; profiler script.
1043 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1045 * tools/editors/emacs/restructuredtext.el,
1046 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1047 Removed from project; the functionality is now contained in rst.el.
1049 * tools/editors/emacs/rst.el: Added to project. Added many features
1050 and fixed many bugs. See docs/user/emacs.txt for details.
1052 * tools/stylesheets: Removed from project. Stylesheets have been
1053 renamed and moved into writer packages.
1056 Release 0.3.9 (2005-05-26)
1057 ==========================
1061 - Eliminated and replaced all uses of the old string attributes
1062 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1063 new list attributes ``ids``, ``names``, ``dupnames`` and
1064 ``classes`` throughout the whole source tree.
1068 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1069 allowing for easier debugging.
1070 - In ``Publisher.publish()``, expanded the generic top-level
1073 * docutils/examples.py:
1075 - Added ``internals`` function for exploration.
1079 - Fixed ``Input.decode`` method to apply heuristics only if no
1080 encoding is explicitly given, and to provide better reporting of
1082 - The ``Input.decode`` method now removes byte order marks (BOMs)
1085 * docutils/nodes.py:
1087 - ``image`` element class changed to subclass of Element, not
1088 TextElement (it's an empty element, and cannot contain text).
1089 - Added ``attr_defaults`` dictionary for default attribute values.
1090 - Added empty list as default value for the following attributes:
1091 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1092 - Added ``document.decoration`` attribute,
1093 ``document.get_decoration`` method, and ``decoration.get_header``
1094 & ``.get_footer`` methods.
1095 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1098 * docutils/utils.py:
1100 - Removed ``docutils.utils.Reporter.categories``,
1101 ``docutils.utils.ConditionSet``, and all references to them, to
1102 simplify error reporting.
1104 * docutils/languages/nl.py: Added to project; Dutch mappings by
1107 * docutils/parsers/rst/__init__.py:
1109 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1111 * docutils/parsers/rst/states.py:
1113 - Added check for escaped at-mark to prevent email address recognition.
1114 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1116 - Allowed whitespace in paths and URLs.
1117 - Added auto-enumerated list items.
1118 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1120 - Added support for table stub columns.
1122 * docutils/parsers/rst/directives/__init__.py:
1124 - Allowed whitespace in paths (``path`` function).
1125 - Added ``uri`` directive option conversion function.
1127 * docutils/parsers/rst/directives/body.py:
1129 - Fixed illegal context bug with "topic" directive (allowed within
1130 sidebars; not within body elements).
1132 * docutils/parsers/rst/directives/images.py:
1134 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1135 - Added support for the ``file_insertion_enabled`` setting in the
1136 "figure" directive (disables "figwidth" option).
1137 - "image" directive: added checks for valid values of "align" option,
1138 depending on context. "figure" directive: added specialized
1139 "align" option and attribute on "figure" element.
1140 - Made ":figwidth: image" option of "figure" directive work again.
1141 - Fixed bug with reference names containing uppercase letters
1142 (e.g. ``Name_``) in "target" option of "image" directive.
1144 * docutils/parsers/rst/directives/misc.py:
1146 - Fixed "include" and "raw" directives to catch text decoding
1148 - Allowed whitespace in "include" & "raw" directive paths.
1149 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1150 settings in "include" & "raw" directives.
1152 * docutils/parsers/rst/directives/parts.py:
1154 - Added "header" & "footer" directives.
1155 - Fixed illegal context bug with "contents" directive (topics
1156 allowed within sidebars; not within body elements).
1158 * docutils/parsers/rst/directives/tables.py:
1160 - Added "list-table" directive.
1161 - Caught empty CSV table bug.
1162 - Added support for the ``file_insertion_enabled`` setting in the
1163 "csv-table" directive.
1164 - Added ``stub-columns`` option to "csv-table" and "list-table"
1167 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1168 mappings by Martijn Pieters.
1170 * docutils/readers/standalone.py:
1172 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1173 options to activate or deactivate the SectSubTitle transform.
1175 * docutils/transforms/frontmatter.py:
1177 - Added SectSubTitle transform to promote titles of lone
1178 subsections to subtitles.
1180 * docutils/transforms/references.py:
1182 - Fixed mislocated internal targets bug, by propagating internal
1183 targets to the next node, making use of the newly added support
1184 for multiple names and IDs.
1185 - Fixed duplicate footnote label bug.
1186 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1189 * docutils/writers/html4css1.py:
1191 - Fixed unencoded stylesheet reference bug (characters like "&" in
1192 stylesheet references).
1193 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1195 - Added support for multiple IDs per node by creating empty ``span``
1197 - Added the ``field_name_limit`` & ``option_limit`` settings &
1199 - Added support for table stub columns.
1200 - Added support for the ``align`` attribute on ``figure`` elements.
1201 - Added the ``cloak_email_addresses`` setting & support.
1202 - Added ``html_prolog``, ``html_head``, ``html_body``,
1203 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1204 ``docutils.core.publish_parts``.
1205 - Added support for section subtitles.
1207 * docutils/writers/latex2e.py:
1209 - Fixed tables starting with more than one multirow cell.
1210 - Improved --use-latex-docinfo so that organization/contact/address
1211 fields are lumped with the last author field and appear on the
1213 - Made sure the titlepage is always shown with --use-latex-docinfo,
1214 even if the document has no title.
1215 - Made sure that latex doesn't fill in today's date if no date field
1217 - Added support for section subtitles.
1219 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1220 (under development).
1222 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1224 * docs/api/publisher.txt:
1226 - Added "``publish_parts`` Details" section.
1228 * docutils/dev/repository.txt: Added to project; information about the
1229 Docutils Subversion repository.
1231 * docs/ref/docutils.dtd:
1233 - Added a ``stub`` attribute to the ``colspec`` element via the
1234 ``tbl.colspec.att`` parameter entity.
1235 - Allowed topic elements within sidebars
1236 - Added an ``align`` attribute to the ``figure`` element.
1238 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1242 Release 0.3.7 (2004-12-24)
1243 ==========================
1245 * docutils/frontend.py:
1247 - Added options: --input-encoding-error-handler,
1248 --record-dependencies, --leave-footnote-reference-space,
1250 - Added command-line and config file support for "overrides" setting
1255 - Added support for input encoding error handler.
1257 * docutils/nodes.py:
1259 - Added dispatch_visit and dispatch_departure methods to
1260 NodeVisitor; useful as a hook for Visitors.
1261 - Changed structure of ``line_block``; added ``line``.
1262 - Added ``compound`` node class.
1263 - Added a mechanism for Visitors to transitionally ignore new node
1266 * docutils/utils.py:
1268 - Moved ``escape2null`` and ``unescape`` functions from
1269 docutils/parsers/rst/states.py.
1271 * docutils/parsers/rst/roles.py:
1274 - Changed role function API: the "text" parameter now takes
1275 null-escaped interpreted text content.
1277 * docutils/parsers/rst/states.py:
1279 - Fixed bug where a "role" directive in a nested parse would crash
1280 the parser; the state machine's "language" attribute was not being
1282 - Added support for line block syntax.
1283 - Fixed directive parsing bug: argument-less directives didn't
1284 notice that arguments were present.
1285 - Removed error checking for transitions.
1286 - Added support for multiple classifiers in definition list items.
1287 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1288 - Changed role function API: the "text" parameter now takes
1289 null-escaped interpreted text content.
1290 - Empty sections and documents are allowed now.
1292 * docutils/parsers/rst/directives/__init__.py:
1294 - Added ``encoding`` directive option conversion function.
1295 - Allow multiple class names in class_option conversion function.
1297 * docutils/parsers/rst/directives/body.py:
1299 - Converted the line-block directive to use the new structure.
1300 - Extracted the old line-block functionality to the ``block``
1301 function (still used).
1302 - Added ``compound`` directive (thanks to Lea Wiemann).
1304 * docutils/parsers/rst/directives/misc.py:
1306 - Added "encoding" option to "include" and "raw" directives.
1307 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1308 - Allow multiple class names in the "class" directive.
1310 * docutils/parsers/rst/directives/parts.py:
1312 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1313 options. Thanks to Lele Gaifax.
1315 * docutils/parsers/rst/directives/tables.py:
1317 - Added "encoding" directive to "csv-table" directive.
1318 - Added workaround for lack of Unicode support in csv.py, for
1319 non-ASCII CSV input.
1321 * docutils/transforms/misc.py:
1323 - Fixed bug when multiple "class" directives are applied to a single
1325 - Enabled multiple format names for "raw" directive.
1327 * docutils/transforms/references.py:
1329 - Added support for trimming whitespace from beside substitution
1332 * docutils/transforms/universal.py:
1334 - FinalChecks now checks for illegal transitions and moves
1335 transitions between sections.
1337 * docutils/writers/html4css1.py:
1339 - HTMLTranslator.encode now converts U+00A0 to " ".
1340 - "stylesheet" and "stylesheet_path" settings are now mutually
1342 - Added support for the new line_block/line structure.
1343 - --footnote-references now overrides
1344 --trim-footnote-reference-space, if applicable.
1345 - Added support for ``compound`` elements.
1346 - Enabled multiple format names for "raw" directive.
1347 - ``<p>`` tags of a paragraph which is the only visible child of the
1348 document node are no longer stripped.
1349 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1350 new method ``should_be_compact_paragraph()``.
1351 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1353 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1354 the output if they have their ``class`` attribute set.
1355 - The whole document is now surrounded by a ``<div
1356 class="document">`` element.
1357 - Body-level images are now wrapped by their own ``<div>`` elements,
1358 with image classes copied to the wrapper, and for images which
1359 have the ``:align:`` option set, the surrounding ``<div>`` now
1360 receives a class attribute (like ``class="align-left"``).
1362 * docutils/writers/latex2e.py:
1364 - no newline after depart_term.
1365 - Added translations for some Unicode quotes.
1366 - Added option "font-encoding", made package AE the default.
1367 - "stylesheet" and "stylesheet_path" settings are now mutually
1369 - --footnote-references now overrides
1370 --trim-footnote-reference-space, if applicable.
1371 - The footnote label style now matches the footnote reference style
1372 ("brackets" or "superscript").
1373 - Added support for ``compound`` elements.
1374 - Enabled multiple format names for "raw" directive.
1376 * docs/ref/docutils.dtd:
1378 - Changed structure of the ``line_block`` element; added ``line``.
1379 - Added ``compound`` element.
1380 - Added "ltrim" and "rtrim" attributes to
1381 ``substitution_definition`` element.
1382 - Enabled multiple format names for ``raw`` element.
1383 - Enabled multiple classifiers in ``definition_list_item`` elements.
1385 * docs/ref/rst/directives.txt
1387 - Marked "line-block" as deprecated.
1388 - "Class" directive now allows multiple class names.
1389 - Added "Rationale for Class Attribute Value Conversion".
1390 - Added warning about "raw" overuse/abuse.
1392 * docs/ref/rst/restructuredtext.txt:
1394 - Added syntax for line blocks.
1395 - Definition list items may have multiple classifiers.
1397 * docs/ref/rst/roles.txt:
1401 * tools/stylesheets/default.css:
1403 - Added support for the new line_block structure.
1404 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1407 Release 0.3.5 (2004-07-29)
1408 ==========================
1412 * _`Documentation cleanup/reorganization`.
1414 - Created new subdirectories of docs/:
1416 * ``docs/user/``: introductory/tutorial material for end-users
1417 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1418 * ``docs/api/``: API reference material for client-developers
1419 * ``docs/ref/``: reference material for all groups
1420 * ``docs/howto/``: for component-developers and core-developers
1421 * ``docs/peps/``: Python Enhancement Proposals
1423 - Moved ``docs/*`` to ``docs/user/``.
1424 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1425 ``spec/`` to ``docs/dev``.
1426 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1427 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1428 - Moved ``alternatives.txt``, and ``problems.txt`` from
1429 ``spec/rst/`` to ``docs/dev/rst/``.
1430 - Moved ``reStructuredText.txt``, ``directives.txt``,
1431 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1432 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1433 ``roles.txt``, ``reStructuredText.txt`` to
1434 ``restructuredtext.txt``.
1435 - Moved ``spec/howto/`` to ``docs/howto``.
1437 In order to keep the CVS history of moved files, we supplied
1438 SourceForge with a `script for modifying the Docutils CVS
1441 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1443 After running the cleanup script:
1445 - Added ``docs/index.txt``.
1446 - Added a ``.htaccess`` file to the ``web`` module, containing
1447 redirects for all old paths to new paths. They'll preserve
1448 fragments (the "#name" part of a URL), and won't clutter up the
1449 file system, and will correct the URL in the user's browser.
1450 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1451 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1452 the "To Do" list itself in ``docs/dev/todo.txt``.
1453 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1454 section of ``docs/dev/todo.txt``.
1455 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1456 - Added "How To Report Bugs" to ``BUGS.txt``.
1457 - Went through all the sources and docs (including under web/) and
1458 updated links. Mostly done by Lea Wiemann; thanks Lea!
1459 (Still need to update links in the sandboxes.)
1463 * BUGS.txt: Added to project.
1465 * THANKS.txt: Added to project.
1467 * docutils/__init__.py:
1469 - 0.3.4: Post-release.
1473 - Added special error handling & advice for UnicodeEncodeError.
1474 - Refactored Publisher.publish (simplified exception handling &
1475 extracted debug dumps).
1476 - Renamed "enable_exit" parameter of convenience functions to
1477 "enable_exit_status".
1478 - Enabled traceback (exception propagation) by default in
1479 programmatic convenience functions.
1480 - Now publish_file and publish_cmdline convenience functions return
1481 the encoded string results in addition to their regular I/O.
1482 - Extracted common code from publish_file, publish_string, and
1483 publish_parts, into new publish_programmatically. Extracted
1484 settings code to ``Publisher.process_programmatic_settings``.
1485 - In Publisher.publish, disabled ``settings_overrides`` when
1486 ``settings`` is supplied; redundant.
1488 * docutils/frontend.py:
1490 - Added help text for "--output-encoding-error-handler" and
1491 "--error-encoding-error-handler".
1492 - Renamed "--exit" to "--exit-status".
1493 - Simplified default-setting code.
1495 * docutils/parsers/rst/__init__.py:
1497 - Added "--pep-base-url" and "--rfc-base-url" options.
1499 * docutils/parsers/rst/states.py:
1501 - Made URI recognition more aggressive and intelligent.
1503 * docutils/parsers/rst/directives/__init__.py:
1505 - Added several directive option conversion functions.
1507 * docutils/parsers/rst/directives/body.py:
1509 - Moved "table" directive to tables.py.
1511 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1514 * docutils/writers/latex2e.py:
1516 - Added "--table-style=(standard|booktabs|nolines)"
1517 - figures get "here" option (LaTeX per default puts them at bottom),
1518 and figure content is centered.
1519 - Rowspan support for tables.
1520 - Fix: admonition titles before first section.
1521 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1522 - Replave ``_`` in literal by an underlined blank, because it has the correct
1524 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1525 - A few unicode replacements, if output_encoding != utf
1526 - Add "--graphicx-option".
1527 - Indent literal-blocks.
1528 - Fix: omit ``\maketitle`` when there is no document title.
1530 * docs/index.txt: "Docutils Project Documentation Overview", added to
1533 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1534 Tool", added to project.
1536 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1538 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1540 * docs/dev/policies.txt: Added to project (extracted from
1541 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1543 * docs/dev/release.txt: Added to project (extracted from
1544 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1546 * docs/dev/testing.txt: Added to project.
1548 * docs/dev/website.txt: Added to project (extracted from
1549 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1551 * docs/ref/rst/directives.txt:
1553 - Added directives: "table", "csv-table".
1555 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1556 added to project. 1 page for syntax, and a 1 page reference for
1557 directives and roles. Source text to be used as-is; not meant to be
1560 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1561 with a change of title.
1563 * test/functional/, contents, and test/test_functional.py: Added to
1566 * tools/buildhtml.py: Fixed bug with config file handling.
1568 * tools/html.py: Removed from project (duplicate of rst2html.py).
1570 * tools/pep2html.py: Removed from project (duplicate of Python's
1571 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1572 Docutils-related PEPs in docs/peps/).
1574 * tools/rst2pseudoxml.py: Renamed from publish.py.
1576 * tools/rst2xml.py: Renamed from docutils-xml.py.
1578 * tools/test.txt: Removed from project; moved to
1579 docs/user/rst/demo.txt.
1581 * setup.py: Now also installs ``rst2latex.py``.
1584 Release 0.3.3 (2004-05-09)
1585 ==========================
1587 * docutils/__init__.py:
1589 - 0.3.1: Reorganized config file format (multiple sections); see
1591 - Added unknown_reference_resolvers attribute to TransformSpec.
1592 - 0.3.2: Interpreted text reorganization.
1597 - Catch system messages to stop tracebacks from parsing errors.
1598 - Catch exceptions during processing report & exit without
1599 tracebacks, except when "--traceback" used.
1600 - Reordered components for OptionParser; application comes last.
1601 - Added "config_section" parameter to several methods and functions,
1602 allowing front ends to easily specify their config file sections.
1603 - Added publish_parts convenience function to allow access to individual
1604 parts of a document.
1606 * docutils/examples.py: Added to project; practical examples of
1607 Docutils client code, to be used as-is or as models for variations.
1609 * docutils/frontend.py:
1611 - Added "--traceback" & "--no-traceback" options ("traceback"
1613 - Implemented support for config file reorganization:
1614 ``standard_config_files`` moved from ``ConfigParser`` to
1615 ``OptionParser``; added
1616 ``OptionParser.get_config_file_settings()`` and
1617 ``.get_standard_config_settings()``; support for old "[options]"
1618 section (with deprecation warning) and mapping from old to new
1620 - Reimplemented setting validation.
1621 - Enabled flexible boolean values: yes/no, true/false, on/off.
1622 - Added ``Values``, a subclass of ``optparse.Values``, with support
1623 for list setting attributes.
1624 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1625 thanks to Beni Cherniavsky.
1626 - Added "--no-section-numbering" option.
1630 - Catch IOErrors when opening source & destination files, report &
1631 exit without tracebacks. Added ``handle_io_errors`` parameter to
1632 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1634 * docutils/nodes.py:
1636 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1637 method definitions (via ``exec``) to dynamic assignments (via
1638 ``setattr``); thanks to Roman Suzi.
1639 - Encapsulated visitor dynamic assignments in a function; thanks to
1641 - Added indirect_reference_name attribute to the Targetable
1642 class. This attribute holds the whitespace_normalized_name
1643 (contains mixed case) of a target.
1645 * docutils/statemachine.py:
1647 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1648 - Added ``StringList.get_2D_block``.
1650 * docutils/utils.py:
1652 - Added "level" attribute to SystemMessage exceptions.
1654 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1657 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1660 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1661 Marcelo Huerta San Martin.
1663 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1664 mappings by Lalo Martins.
1666 * docutils/languages/ru.py: Added to project; Russian mappings by
1669 * docutils/parsers/rst/roles.py: Added to project. Contains
1670 interpreted text role functions, a registry for interpreted text
1671 roles, and an API for adding to and retrieving from the registry.
1672 Contributed by Edward Loper.
1674 * docutils/parsers/rst/states.py:
1676 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1677 - Allowed true em-dash character and "---" as block quote
1679 - Added support for <angle-bracketed> complex option arguments
1681 - Fixed handling of backslashes in substitution definitions.
1682 - Fixed off-by-1 error with extra whitespace after substitution
1683 definition directive.
1684 - Added inline markup parsing to field lists' field names.
1685 - Added support for quoted (and unindented) literal blocks.
1686 Driven in part by a bribe from Frank Siebenlist (thanks!).
1687 - Parser now handles escapes in URIs correctly.
1688 - Made embedded-URIs' reference text omittable. Idea from Beni
1690 - Refactored explicit target processing code.
1691 - Added name attribute to references containing the reference name only
1692 through whitespace_normalize_name (no case changes).
1693 - parse_target no longer returns the refname after going through
1694 normalize_name. This is now handled in make_target.
1695 - Fixed bug relating to role-less interpreted text in non-English
1697 - Reorganized interpreted text processing; moved code into the new
1698 roles.py module. Contributed by Edward Loper.
1699 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1700 ``parse_directive_block``.
1702 * docutils/parsers/rst/tableparser.py:
1704 - Reworked for ``StringList``, to support "include" directives in
1707 * docutils/parsers/rst/directives/__init__.py:
1709 - Renamed ``unchanged()`` directive option conversion function to
1710 ``unchanged_required``, and added a new ``unchanged``.
1711 - Catch unicode value too high error; fixes bug 781766.
1712 - Beefed up directive error reporting.
1714 * docutils/parsers/rst/directives/body.py:
1716 - Added basic "table" directive.
1718 * docutils/parsers/rst/directives/images.py:
1720 - Added "target" option to "image" directive.
1721 - Added name attribute to references containing the reference name only
1722 through whitespace_normalize_name (no case changes).
1724 * docutils/parsers/rst/directives/misc.py:
1726 - Isolated the import of the ``urllib2`` module; was causing
1727 problems on SourceForge (``libssl.so.2`` unavailable?).
1728 - Added the "role" directive for declaring custom interpreted text
1731 * docutils/parsers/rst/directives/parts.py:
1733 - The "contents" directive does more work up-front, creating the
1734 "topic" and "title", and leaving the "pending" node for the
1735 transform. Allows earlier reference resolution; fixes subtle bug.
1737 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1738 mappings by Jannie Hofmeyr.
1740 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1741 mappings by Marek Blaha.
1743 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1744 mappings by Marcelo Huerta San Martin.
1746 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1747 Portuguese mappings by Lalo Martins.
1749 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1750 mappings by Roman Suzi.
1752 * docutils/transforms/parts.py:
1754 - The "contents" directive does more work up-front, creating the
1755 "topic" and "title", and leaving the "pending" node for the
1756 transform. Allows earlier reference resolution; fixes subtle bug.
1757 - Added support for disabling of section numbering.
1759 * docutils/transforms/references.py:
1761 - Verifying that external targets are truly targets and not indirect
1762 references. This is because we are now adding a "name" attribute to
1763 references in addition to targets. Note sure if this is correct!
1764 - Added code to hook into the unknown_reference_resolvers list for a
1765 transformer in resolve_indirect_target. This allows the
1766 unknown_reference_resolvers to keep around indirect targets which
1767 docutils doesn't know about.
1768 - Added specific error message for duplicate targets.
1770 * docutils/transforms/universal.py:
1772 - Added FilterMessages transform (removes system messages below the
1773 verbosity threshold).
1774 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1775 to FinalCheckVisitor for application-specific handling of
1776 unresolvable references.
1777 - Added specific error message for duplicate targets.
1779 * docutils/writers/__init__.py:
1781 - Added assemble_parts method to the Writer class to allow for
1782 access to a documents individual parts.
1783 - Documented & set default for ``Writer.output`` attribute.
1785 * docutils/writers/html4css1.py:
1787 - Fixed unicode handling of attribute values (bug 760673).
1788 - Prevent duplication of "class" attribute values (bug report from
1790 - Improved table grid/border handling (prompted by report from Bob
1792 - Added support for table titles.
1793 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1795 - Added functionality to keep track of individual parts of a document
1796 and store them in a dictionary as the "parts" attribute of the writer.
1797 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1798 - Added proper support for the "scale" attribute of the "image"
1799 element. Contributed by Brent Cook.
1800 - Added ``--initial-header-level`` option.
1801 - Fixed bug: the body_pre_docinfo segment depended on there being a
1802 docinfo; if no docinfo, the document title was incorporated into
1803 the body segment. Adversely affected the publish_parts interface.
1805 * docutils/writers/latex2e.py:
1807 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1808 about a missing file.
1809 - Added options and support: ``--compound-enumerators``,
1810 ``--section-prefix-for-enumerators``, and
1811 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1813 - Added option ``--use-verbatim-when-possible``, to avoid
1814 problematic characters (eg, '~' in italian) in literal blocks.
1815 - It's now possible to use four section levels in the `book` and
1816 `report` LaTeX classes. The default `article` class still has
1819 * docs/config.txt: "Docutils Configuration Files", added to project.
1820 Moved config file entry descriptions from tools.txt.
1824 - Moved config file entry descriptions to config.txt.
1826 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1829 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1830 Text Roles", added to project.
1832 * spec/rst/reStructuredText.txt:
1834 - Added description of support for <angle-bracketed> complex option
1835 arguments to option lists.
1836 - Added subsections for indented and quoted literal blocks.
1838 * test: Continually adding & updating tests.
1840 - Added test/test_settings.py & test/data/config_*.txt support
1842 - Added test/test_writers/test_htmlfragment.py.
1844 * test/DocutilsTestSupport.py:
1846 - Refactored LaTeX publisher test suite/case class names to make
1847 testing other writers easier.
1848 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1849 to test the processing of HTML fragments which use the new
1850 publish_parts convenience function.
1852 * tools/buildhtml.py:
1854 - Added support for the "--prune" option.
1855 - Removed dependency on pep2html.py; plaintext PEPs no longer
1858 * tools/docutils.conf:
1860 - Updated for configuration file reorganization.
1862 * tools/rst2html.py:
1864 - copied from tools/html.py
1868 - added a 'scripts' section to configuration
1869 - added 'tools/rst2html.py' to the scripts section
1872 Release 0.3 (2003-06-24)
1873 ========================
1877 * Renamed "attribute" to "option" for directives/extensions.
1879 * Renamed transform method "transform" to "apply".
1881 * Renamed "options" to "settings" for runtime settings (as set by
1882 command-line options). Sometimes "option" (singular) became
1883 "settings" (plural). Some variations below:
1885 - document.options -> document.settings (stored in other objects as
1887 - option_spec -> settings_spec (not directives though)
1888 - OptionSpec -> SettingsSpec
1889 - cmdline_options -> settings_spec
1890 - relative_path_options -> relative_path_settings
1891 - option_default_overrides -> settings_default_overrides
1892 - Publisher.set_options -> Publisher.get_settings
1896 * COPYING.txt: Added "Public Domain Dedication".
1898 * FAQ.txt: Frequently asked questions, added to project.
1902 - Updated with PyPI Trove classifiers.
1903 - Conditional installation of third-party modules.
1905 * docutils/__init__.py:
1907 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1908 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1909 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1910 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1911 option and its effect on the PEP template & writer.
1912 - Bumped version to 0.2.4 due to changes to the PEP template &
1914 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1915 - Added ``TransformSpec`` class for new transform system.
1916 - Bumped version to 0.2.6 for API changes (renaming).
1917 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1918 convenience functions.
1919 - Added ``Component.component_type`` attribute.
1920 - Bumped version to 0.2.8 because of the internal parser switch from
1921 plain lists to the docutils.statemachine.StringList objects.
1922 - Bumped version to 0.2.9 because of the frontend.py API changes.
1923 - Bumped version to 0.2.10 due to changes to the project layout
1924 (third-party modules removed from the "docutils" package), and
1925 signature changes in ``io.Input``/``io.Output``.
1926 - Changed version to 0.3.0 for release.
1930 - Made ``publish()`` a bit more convenient.
1931 - Generalized ``Publisher.set_io``.
1932 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1933 parameters; improved its docstring.
1934 - Added ``publish_file()`` and ``publish_string()``.
1935 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1937 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1938 "--dump-transforms" hidden options.
1939 - Added ``Publisher.apply_transforms()`` method.
1940 - Added ``Publisher.set_components()`` method; support for
1941 ``publish_*()`` conveninece functions.
1942 - Moved config file processing to docutils/frontend.py.
1943 - Added support for exit status ("exit_level" setting &
1944 ``enable_exit`` parameter for Publisher.publish() and convenience
1947 * docutils/frontend.py:
1949 - Check for & exit on identical source & destination paths.
1950 - Fixed bug with absolute paths & "--config".
1951 - Set non-command-line defaults in ``OptionParser.__init__()``:
1952 ``_source`` & ``_destination``.
1953 - Distributed ``relative_path_settings`` to components; updated
1954 ``OptionParser.populate_from_components()`` to combine it all.
1955 - Require list of keys in ``make_paths_absolute`` (was implicit in
1956 global ``relative_path_settings``).
1957 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1958 "--dump-settings", and "--dump-transforms" hidden options.
1959 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1960 code, replaced with correct code.
1961 - Added validation functionality for config files.
1962 - Added "--error-encoding" option/setting, "_disable_config"
1964 - Added encoding validation; updated "--input-encoding" and
1965 "--output-encoding"; added "--error-encoding-error-handler" and
1966 "--output-encoding-error-handler".
1967 - Moved config file processing from docutils/core.py.
1968 - Updated ``OptionParser.populate_from_components`` to handle new
1969 ``SettingsSpec.settings_defaults`` dict.
1970 - Added support for "-" => stdin/stdout.
1971 - Added "exit_level" setting ("--exit" option).
1975 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1976 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1977 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1978 - ``FileOutput.write()`` now returns the encoded output string.
1979 - Try to get path/stream name automatically in ``FileInput`` &
1981 - Added defaults for source & destination paths.
1982 - Allow for Unicode I/O with an explicit "unicode" encoding.
1983 - Added ``Output.encode()``.
1984 - Removed dependency on runtime settings; pass encoding directly.
1985 - Recognize Unicode strings in ``Input.decode()``.
1986 - Added support for output encoding error handlers.
1988 * docutils/nodes.py:
1990 - Added "Invisible" element category class.
1991 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1992 modification during a traversal.
1993 - Added element classes: ``line_block``, ``generated``, ``address``,
1994 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1995 ``superscript``, ``subscript``, ``inline``
1996 - Added support for lists of nodes to ``Element.insert()``.
1997 - Fixed parent linking in ``Element.replace()``.
1998 - Added new abstract superclass ``FixedTextElement``; adds
1999 "xml:space" attribute.
2000 - Added support for "line" attribute of ``system_message`` nodes.
2001 - Added support for the observer pattern from ``utils.Reporter``.
2002 Added ``parse_messages`` and ``transform_messages`` attributes to
2003 ``document``, removed ``messages``. Added ``note_parse_message``
2004 and ``note_transform_message`` methods.
2005 - Added support for improved diagnostics:
2007 - Added "document", "source", and "line" internal attributes to
2008 ``Node``, set by ``Node.setup_child()``.
2009 - Converted variations on ``node.parent = self`` to
2010 ``self.setup_child(node)``.
2011 - Added ``document.current_source`` & ``.current_line``
2012 attributes, and ``.note_source`` observer method.
2013 - Changed "system_message" output to GNU-Tools format.
2015 - Added a "rawsource" attribute to the ``Text`` class, for text
2016 before backslash-escape resolution.
2017 - Support for new transform system.
2018 - Reworked ``pending`` element.
2019 - Fixed XML DOM bug (SF #660611).
2020 - Removed the ``interpeted`` element class and added
2021 ``title_reference``, ``abbreviation``, ``acronym``.
2022 - Made substitutions case-sensitive-but-forgiving; moved some code
2024 - Fixed Unicode bug on element attributes (report: William Dode).
2026 * docutils/optik.py: Removed from project; replaced with
2027 extras/optparse.py and extras/textwrap.py. These will be installed
2028 only if they're not already present in the Python installation.
2030 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2031 only if it's not already present in the Python installation.
2033 * docutils/statemachine.py:
2035 - Factored out ``State.add_initial_transitions()`` so it can be
2037 - Converted whitespace-specific "blank" and "indent" transitions
2038 from special-case code to ordinary transitions: removed
2039 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2040 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2041 ``ws_initial_transitions`` attributes.
2042 - Removed ``State.match_transition()`` after merging it into
2044 - Added ``StateCorrection`` exception.
2045 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2046 (moved ``TransitionCorrection`` support there too.)
2047 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2048 ``EOFError`` instead of ``IndexError``.
2049 - Added ``State.no_match`` method.
2050 - Added support for the Observer pattern, triggered by input line
2052 - Added ``strip_top`` parameter to
2053 ``StateMachineWS.get_first_known_indented``.
2054 - Made ``context`` a parameter to ``StateMachine.run()``.
2055 - Added ``ViewList`` & ``StringList`` classes;
2056 ``extract_indented()`` becomes ``StringList.get_indented()``.
2057 - Added ``StateMachine.insert_input()``.
2058 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2059 thanks to) Fred Drake.
2061 * docutils/utils.py:
2063 - Added a ``source`` attribute to Reporter instances and
2064 ``system_message`` elements.
2065 - Added an observer pattern to ``utils.Reporter`` to keep track of
2067 - Fixed bugs in ``relative_path()``.
2068 - Added support for improved diagnostics.
2069 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2070 - Added support for encoding Reporter stderr output, and encoding
2072 - Reporter keeps track of the highest level system message yet
2075 * docutils/languages: Fixed bibliographic field language lookups.
2077 * docutils/languages/es.py: Added to project; Spanish mappings by
2078 Marcelo Huerta San Martin.
2080 * docutils/languages/fr.py: Added to project; French mappings by
2083 * docutils/languages/it.py: Added to project; Italian mappings by
2086 * docutils/languages/sk.py: Added to project; Slovak mappings by
2089 * docutils/parser/__init__.py:
2091 - Added ``Parser.finish_parse()`` method.
2093 * docutils/parser/rst/__init__.py:
2095 - Added options: "--pep-references", "--rfc-references",
2096 "--tab-width", "--trim-footnote-reference-space".
2098 * docutils/parsers/rst/states.py:
2100 - Changed "title under/overline too short" system messages from INFO
2101 to WARNING, and fixed its insertion location.
2102 - Fixed enumerated list item parsing to allow paragraphs & section
2103 titles to begin with enumerators.
2104 - Converted system messages to use the new "line" attribute.
2105 - Fixed a substitution reference edge case.
2106 - Added support for "--pep-references" and "--rfc-references"
2107 options; reworked ``Inliner`` code to make customization easier.
2108 - Removed field argument parsing.
2109 - Added support for short section title over/underlines.
2110 - Fixed "simple reference name" regexp to ignore text like
2111 "object.__method__"; not an anonymous reference.
2112 - Added support for improved diagnostics.
2113 - Reworked directive API, based on Dethe Elza's contribution. Added
2114 ``Body.parse_directive()``, ``.parse_directive_options()``,
2115 ``.parse_directive_arguments()`` methods.
2116 - Added ``ExtensionOptions`` class, to parse directive options
2117 without parsing field bodies. Factored
2118 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2119 ``ExtensionOptions``.
2120 - Improved definition list term/classifier parsing.
2121 - Added warnings for unknown directives.
2122 - Renamed ``Stuff`` to ``Struct``.
2123 - Now flagged as errors: transitions at the beginning or end of
2124 sections, empty sections (except title), and empty documents.
2125 - Updated for ``statemachine.StringList``.
2126 - Enabled recognition of schemeless email addresses in targets.
2127 - Added support for embedded URIs in hyperlink references.
2128 - Added backslash-escapes to inline markup end-string suffix.
2129 - Added support for correct interpreted text processing.
2130 - Fixed nested title parsing (topic, sidebar directives).
2131 - Added special processing of backslash-escaped whitespace (idea
2132 from David Abrahams).
2133 - Made substitutions case-sensitive-but-forgiving; moved some code
2134 to ``docutils.nodes``.
2135 - Added support for block quote attributions.
2136 - Added a kludge to work-around a conflict between the bubble-up
2137 parser strategy and short titles (<= 3 char-long over- &
2138 underlines). Fixes SF bug #738803 "infinite loop with multiple
2139 titles" submitted by Jason Diamond.
2140 - Added explicit interpreted text roles for standard inline markup:
2141 "emphasis", "strong", "literal".
2142 - Implemented "superscript" and "subscript" interpreted text roles.
2143 - Added initial support for "abbreviation" and "acronym" roles;
2145 - Added support for "--trim-footnote-reference-space" option.
2146 - Optional space before colons in directives & hyperlink targets.
2148 * docutils/parsers/rst/tableparser.py:
2150 - Fixed a bug that was producing unwanted empty rows in "simple"
2152 - Detect bad column spans in "simple" tables.
2154 * docutils/parsers/rst/directives: Updated all directive functions to
2157 * docutils/parsers/rst/directives/__init__.py:
2159 - Added ``flag()``, ``unchanged()``, ``path()``,
2160 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2161 directive option helper functions.
2162 - Added warnings for unknown directives.
2163 - Return ``None`` for missing directives.
2164 - Added ``register_directive()``, thanks to William Dode and Paul
2167 * docutils/parsers/rst/directives/admonitions.py:
2169 - Added "admonition" directive.
2171 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2172 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2173 "parsed-literal", "rubric", "epigraph", "highlights" and
2174 "pull-quote" directives.
2176 * docutils/parsers/rst/directives/images.py:
2178 - Added an "align" attribute to the "image" & "figure" directives
2179 (by Adam Chodorowski).
2180 - Added "class" option to "image", and "figclass" to "figure".
2182 * docutils/parsers/rst/directives/misc.py:
2184 - Added "include", "raw", and "replace" directives, courtesy of
2186 - Added "unicode" and "class" directives.
2188 * docutils/parsers/rst/directives/parts.py:
2190 - Added the "sectnum" directive; by Dmitry Jemerov.
2191 - Added "class" option to "contents" directive.
2193 * docutils/parsers/rst/directives/references.py: Added to project.
2194 Contains the "target-notes" directive.
2196 * docutils/parsers/rst/languages/__init__.py:
2198 - Return ``None`` from get_language() for missing language modules.
2200 * docutils/parsers/rst/languages/de.py: Added to project; German
2201 mappings by Engelbert Gruber.
2203 * docutils/parsers/rst/languages/en.py:
2205 - Added interpreted text roles mapping.
2207 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2208 mappings by Marcelo Huerta San Martin.
2210 * docutils/parsers/rst/languages/fr.py: Added to project; French
2211 mappings by William Dode.
2213 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2214 mappings by Nicola Larosa.
2216 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2217 mappings by Miroslav Vasko.
2219 * docutils/readers/__init__.py:
2221 - Added support for the observer pattern from ``utils.Reporter``, in
2222 ``Reader.parse`` and ``Reader.transform``.
2223 - Removed ``Reader.transform()`` method.
2224 - Added default parameter values to ``Reader.__init__()`` to make
2225 instantiation easier.
2226 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2228 * docutils/readers/pep.py:
2230 - Added the ``peps.TargetNotes`` transform to the Reader.
2231 - Removed PEP & RFC reference detection code; moved to
2232 parsers/rst/states.py as options (enabled here by default).
2233 - Added support for pre-acceptance PEPs (no PEP number yet).
2234 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2237 * docutils/readers/python: Python Source Reader subpackage added to
2238 project, including preliminary versions of:
2241 - moduleparser.py: Parser for Python modules.
2243 * docutils/transforms/__init__.py:
2245 - Added ``Transformer`` class and completed transform reform.
2246 - Added unknown_reference_resolvers list for each transformer. This list holds
2247 the list of functions provided by each component of the transformer that
2248 help resolve references.
2250 * docutils/transforms/frontmatter.py:
2252 - Improved support for generic fields.
2253 - Fixed bibliographic field language lookups.
2255 * docutils/transforms/misc.py: Added to project. Miscellaneous
2258 * docutils/transforms/parts.py:
2260 - Moved the "id" attribute from TOC list items to the references
2261 (``Contents.build_contents()``).
2262 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2263 - Added "class" attribute support to ``Contents``.
2265 * docutils/transforms/peps.py:
2267 - Added ``mask_email()`` function, updating to pep2html.py's
2269 - Linked "Content-Type: text/x-rst" to PEP 12.
2270 - Added the ``TargetNotes`` PEP-specific transform.
2271 - Added ``TargetNotes.cleanup_callback``.
2272 - Added title check to ``Headers``.
2274 * docutils/transforms/references.py:
2276 - Added the ``TargetNotes`` generic transform.
2277 - Split ``Hyperlinks`` into multiple transforms.
2278 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2279 - Added check for circular indirect references.
2280 - Made substitutions case-sensitive-but-forgiving.
2282 * docutils/transforms/universal.py:
2284 - Added support for the "--expose-internal-attributes" option.
2285 - Removed ``Pending`` transform classes & data.
2287 * docutils/writers/__init__.py:
2289 - Removed ``Writer.transform()`` method.
2291 * docutils/writers/docutils-xml.py:
2293 - Added XML and doctype declarations.
2294 - Added "--no-doctype" and "--no-xml-declaration" options.
2296 * docutils/writers/html4css1.py:
2298 - "name" attributes only on these tags: a, applet, form, frame,
2300 - Added "name" attribute to <a> in section titles for Netscape 4
2301 support (bug report: Pearu Peterson).
2302 - Fixed targets (names) on footnote, citation, topic title,
2303 problematic, and system_message nodes (for Netscape 4).
2304 - Changed field names from "<td>" to "<th>".
2305 - Added "@" to "@" encoding to thwart address harvesters.
2306 - Improved the vertical whitespace optimization; ignore "invisible"
2307 nodes (targets, comments, etc.).
2308 - Improved inline literals with ``<span class="pre">`` around chunks
2309 of text and `` `` for runs of spaces.
2310 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2311 ``self.docinfo`` segments.
2312 - Added support for "line_block", "address" elements.
2313 - Improved backlinks (footnotes & system_messages).
2314 - Improved system_message output.
2315 - Redefined "--stylesheet" as containing an invariant URL, used
2316 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2318 - Added "--footnote-references" option (superscript or brackets).
2319 - Added "--compact-lists" and "--no-compact-lists" options.
2320 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2321 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2322 - Improved field list rendering.
2323 - Added Docutils version to "generator" meta tag.
2324 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2325 - Improved layout of <pre> HTML source.
2326 - Fixed attribute typo on <colspec>.
2327 - Refined XML prologue.
2328 - Support for no stylesheet.
2329 - Removed "interpreted" element support.
2330 - Added support for "title_reference", "sidebar", "attribution",
2331 "rubric", and generic "admonition" elements.
2332 - Added "--attribution" option.
2333 - Added support for "inline", "subscript", "superscript" elements.
2334 - Added initial support for "abbreviation" and "acronym";
2337 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2341 - Double quotes in literal blocks (special treatment for de/ngerman).
2342 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2343 - Added "--attribution" option.
2344 - Right align attributions.
2346 * docutils/writers/pep_html.py:
2348 - Parameterized output encoding in PEP template.
2349 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2350 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2351 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2353 - Added an override on the "--footnote-references" option.
2354 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2355 - Added Docutils version to "generator" meta tag.
2356 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2360 - Added a "silent" setting for ``buildhtml.py``.
2361 - Added a "Getting Help" section.
2362 - Rearranged the structure.
2363 - Kept up to date, with new settings, command-line options etc.
2364 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2365 - Converted settings table into a definition list.
2367 * docs/rst/quickstart.txt:
2369 - Added a table of contents.
2370 - Added feedback information.
2371 - Added mention of minimum section title underline lengths.
2372 - Removed the 4-character minimum for section title underlines.
2374 * docs/rst/quickref.html:
2376 - Added a "Getting Help" section.
2377 - Added a style to make section title backlinks more subtle.
2378 - Added mention of minimum section title underline lengths.
2379 - Removed the 4-character minimum for section title underlines.
2381 * extras: Directory added to project; contains third-party modules
2382 that Docutils depends on (optparse, textwrap, roman). These are
2383 only installed if they're not already present.
2385 * licenses: Directory added to project; contains copies of license
2386 files for non-public-domain files.
2390 - Changed the focus. It's about DTD elements: structural
2391 relationships, semantics, and external (public) attributes. Not
2392 about the element class library.
2393 - Moved some implementation-specific stuff into ``docutils.nodes``
2395 - Wrote descriptions of all common attributes and parameter
2396 entities. Filled in introductory material.
2397 - Working through the element descriptions: 55 down, 37 to go.
2398 - Removed "Representation of Horizontal Rules" to
2399 spec/rst/alternatives.txt.
2401 * spec/docutils.dtd:
2403 - Added "generated" inline element.
2404 - Added "line_block" body element.
2405 - Added "auto" attribute to "title".
2406 - Changed content models of "literal_block" and "doctest_block" to
2408 - Added ``%number;`` attribute type parameter entity.
2409 - Changed ``%structural.elements;`` to ``%section.elements``.
2410 - Updated attribute types; made more specific.
2411 - Added "address" bibliographic element.
2412 - Added "line" attribute to ``system_message`` element.
2413 - Removed "field_argument" element; "field_name" may contain
2414 multiple words and whitespace.
2415 - Changed public identifier to docutils.sf.net.
2416 - Removed "interpreted" element; added "title_reference",
2417 "abbreviation", "acronym".
2418 - Removed "refuri" attribute from "footnote_reference" and
2419 "citation_reference".
2420 - Added "sidebar", "rubric", "attribution", "admonition",
2421 "superscript", "subscript", and "inline" elements.
2423 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2425 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2427 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2429 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2432 * spec/transforms.txt: Added to project.
2434 * spec/howto: Added subdirectory, for developer how-to docs.
2436 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2437 Elza, edited & extended by David Goodger.
2439 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2442 * spec/rst/alternatives.txt:
2444 - Added "Doctree Representation of Transitions" from
2446 - Updated "Inline External Targets" & closed the debate.
2447 - Added ideas for interpreted text syntax extensions.
2448 - Added "Nested Inline Markup" section.
2450 * spec/rst/directives.txt:
2452 - Added directives: "topic", "sectnum", "target-notes",
2453 "line-block", "parsed-literal", "include", "replace", "sidebar",
2454 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2456 - Formalized descriptions of directive details.
2457 - Added an "align" attribute to the "image" & "figure" directives
2458 (by Adam Chodorowski).
2459 - Added "class" options to "topic", "sidebar", "line-block",
2460 "parsed-literal", "contents", and "image"; and "figclass" to
2463 * spec/rst/interpreted.txt: Added to project. Descriptions of
2464 interpreted text roles.
2466 * spec/rst/introduction.txt:
2468 - Added pointers to material for new users.
2470 * spec/rst/reStructuredText.txt:
2472 - Disambiguated comments (just add a newline after the "::").
2473 - Updated enumerated list description; added a discussion of the
2474 second-line validity checking.
2475 - Updated directive description.
2476 - Added a note redirecting newbies to the user docs.
2477 - Expanded description of inline markup start-strings in non-markup
2479 - Removed field arguments and made field lists a generic construct.
2480 - Removed the 4-character minimum for section title underlines.
2481 - Clarified term/classifier delimiter & inline markup ambiguity
2483 - Added "Embedded URIs".
2484 - Updated "Interpreted Text" section.
2485 - Added "Character-Level Inline Markup" section.
2487 * test: Continually adding & updating tests.
2489 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2490 - Moved test/test_pep/ to test/test_readers/test_pep/.
2491 - Added test/test_readers/test_python/.
2492 - Added test/test_writers/ (Engelbert Gruber).
2496 - Made the ``locale.setlocale()`` calls in front ends
2499 * tools/buildhtml.py:
2501 - Added "--silent" option.
2502 - Fixed bug with absolute paths & "--config".
2503 - Updated for new I/O classes.
2504 - Added some exception handling.
2505 - Separated publishers' setting defaults; prevents interference.
2506 - Updated for new ``publish_file()`` convenience function.
2508 * tools/pep-html-template:
2510 - Allow for "--embed-stylesheet".
2511 - Added Docutils version to "generator" meta tag.
2512 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2513 - Conform to XHTML spec.
2515 * tools/pep2html.py:
2517 - Made ``argv`` a parameter to ``main()``.
2518 - Added support for "Content-Type:" header & arbitrary PEP formats.
2519 - Linked "Content-Type: text/plain" to PEP 9.
2520 - Files skipped (due to an error) are not pushed onto the server.
2521 - Updated for new I/O classes.
2522 - Added ``check_requirements()`` & ``pep_type_error()``.
2523 - Added some exception handling.
2524 - Updated for new ``publish_string()`` convenience function.
2525 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2527 * tools/quicktest.py:
2529 - Added "-V"/"--version" option.
2531 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2533 * tools/unicode2rstsubs.py: Added to project. Produces character
2534 entity files (reSructuredText substitutions) from the MathML master
2537 * tools/editors: Support code for editors, added to project. Contains
2538 ``emacs/restructuredtext.el``.
2540 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2542 - Added style for chunks of inline literals.
2543 - Removed margin for first child of table cells.
2544 - Right-aligned field list names.
2545 - Support for auto-numbered section titles in TOCs.
2546 - Increased the size of inline literals (<tt>) in titles.
2547 - Restored the light gray background for inline literals.
2548 - Added support for "line_block" elements.
2549 - Added style for "address" elements.
2550 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2551 - Improved field list rendering.
2552 - Vertical whitespace improvements.
2553 - Removed "a.target" style.
2555 * tools/stylesheets/pep.css:
2557 - Fixed nested section margins.
2558 - Other changes parallel those of ``../default.css``.
2561 Release 0.2 (2002-07-31)
2562 ========================
2566 - The word "component" was being used ambiguously. From now on,
2567 "component" will be used to mean "Docutils component", as in Reader,
2568 Writer, Parser, or Transform. Portions of documents (Table of
2569 Contents, sections, etc.) will be called "document parts".
2570 - Did a grand renaming: a lot of ``verylongnames`` became
2571 ``very_long_names``.
2572 - Cleaned up imports: no more relative package imports or
2573 comma-separated lists of top-level modules.
2574 - Added support for an option values object which carries default
2575 settings and overrides (from command-line options and library use).
2576 - Added internal Unicode support, and support for both input and
2578 - Added support for the ``docutils.io.IO`` class & subclasses.
2582 * docutils/__init__.py:
2584 - Added ``ApplicationError`` and ``DataError``, for use throughout
2586 - Added ``Component`` base class for Docutils components; implements
2587 the ``supports`` method.
2588 - Added ``__version__`` (thus, ``docutils.__version__``).
2592 - Removed many keyword parameters to ``Publisher.__init__()`` and
2593 ``publish()``; bundled into an option values object. Added
2594 "argv", "usage", "description", and "option_spec" parameters for
2595 command-line support.
2596 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2598 - Reworked I/O model for ``docutils.io`` wrappers.
2599 - Updated ``Publisher.set_options()``; now returns option values
2601 - Added support for configuration files (/etc/docutils.conf,
2602 ./docutils.conf, ~/.docutils).
2603 - Added ``Publisher.setup_option_parser()``.
2604 - Added default usage message and description.
2606 * docutils/frontend.py: Added to project; support for front-end
2607 (command-line) scripts. Option specifications may be augmented by
2608 components. Requires Optik (http://optik.sf.net/) for option
2609 processing (installed locally as docutils/optik.py).
2611 * docutils/io.py: Added to project; uniform API for a variety of input
2614 * docutils/nodes.py:
2616 - Added ``TreeCopyVisitor`` class.
2617 - Added a ``copy`` method to ``Node`` and subclasses.
2618 - Added a ``SkipDeparture`` exception for visitors.
2619 - Renamed ``TreePruningException`` from ``VisitorException``.
2620 - Added docstrings to ``TreePruningException``, subclasses, and
2622 - Improved docstrings.
2623 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2624 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2626 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2627 ``PreDecorative`` mixin.
2628 - Reworked the name/id bookkeeping; to ``document``, removed
2629 ``explicit_targets`` and ``implicit_targets`` attributes, added
2630 ``nametypes`` attribute and ``set_name_id_map`` method.
2631 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2633 - Added ``document.has_name()`` method.
2634 - Fixed DOM generation for list-attributes.
2635 - Added category class ``Labeled`` (used by footnotes & citations).
2636 - Added ``Element.set_class()`` method (sets "class" attribute).
2638 * docutils/optik.py: Added to project. Combined from the Optik
2639 package, with added option groups and other modifications. The use
2640 of this module is probably only temporary.
2642 * docutils/statemachine.py:
2644 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2645 - Added underscores to improve many awkward names.
2646 - In ``string2lines()``, changed whitespace normalizing translation
2647 table to regexp; restores Python 2.0 compatibility with Unicode.
2649 * docutils/urischemes.py:
2651 - Filled in some descriptions.
2652 - Added "shttp" scheme.
2654 * docutils/utils.py:
2656 - Added ``clean_rcs_keywords`` function (moved from
2657 docutils/transforms/frontmatter.py
2658 ``DocInfo.filter_rcs_keywords``).
2659 - Added underscores to improve many awkward names.
2660 - Changed names of Reporter's thresholds:
2661 warning_level -> report_level; error_level -> halt_level.
2662 - Moved ``utils.id()`` to ``nodes.make_id()``.
2663 - Added ``relative_path(source, target)``.
2665 * docutils/languages/de.py: German mappings; added to project. Thanks
2666 to Gunnar Schwant for the translations.
2668 * docutils/languages/en.py: Added "Dedication" bibliographic field
2671 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2674 * docutils/parsers/rst/states.py:
2676 - Added underscores to improve many awkward names.
2677 - Added RFC-2822 header support.
2678 - Extracted the inline parsing code from ``RSTState`` to a separate
2679 class, ``Inliner``, which will allow easy subclassing.
2680 - Made local bindings for ``memo`` container & often-used contents
2681 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2682 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2683 - Added ``MarkupMismatch`` exception; for late corrections.
2684 - Added ``-/:`` characters to inline markup's start string prefix,
2685 ``/`` to end string suffix.
2686 - Fixed a footnote bug.
2687 - Fixed a bug with literal blocks.
2688 - Applied patch from Simon Budig: simplified regexps with symbolic
2689 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2690 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2691 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2692 - Allowed non-ASCII in "simple names" (directive names, field names,
2694 - Converted ``Inliner.patterns.initial`` to be dynamically built
2695 from parts with ``build_regexp()`` function.
2696 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2697 - Updated docstrings.
2698 - Changed "table" to "grid_table"; added "simple_table" support.
2700 * docutils/parsers/rst/tableparser.py:
2702 - Changed ``TableParser`` to ``GridTableParser``.
2703 - Added ``SimpleTableParser``.
2704 - Refactored naming.
2706 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2707 a fallback language for directive names.
2709 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2710 directive to use a ``pending`` element, used only by HTML writers.
2712 * docutils/parsers/rst/directives/parts.py: Renamed from
2715 - Added "backlinks" attribute to "contents" directive.
2717 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2718 project by Adam Chodorowski.
2720 * docutils/readers/__init__.py: Gave Readers more control over
2721 choosing and instantiating Parsers.
2723 * docutils/readers/pep.py: Added to project; for PEP processing.
2725 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2726 requires a ``component`` parameter.
2728 * docutils/transforms/components.py: Added to project; transforms
2729 related to Docutils components.
2731 * docutils/transforms/frontmatter.py:
2733 - In ``DocInfo.extract_authors``, check for a single "author" in an
2734 "authors" group, and convert it to a single "author" element.
2735 - Added support for "Dedication" and generic bibliographic fields.
2737 * docutils/transforms/peps.py: Added to project; PEP-specific.
2739 * docutils/transforms/parts.py: Renamed from old components.py.
2741 - Added filter for `Contents`, to use alt-text for inline images,
2742 and to remove inline markup that doesn't make sense in the ToC.
2743 - Added "name" attribute to TOC topic depending on its title.
2744 - Added support for optional TOC backlinks.
2746 * docutils/transforms/references.py: Fixed indirect target resolution
2747 in ``Hyperlinks`` transform.
2749 * docutils/transforms/universal.py:
2751 - Changed ``Messages`` transform to properly filter out system
2752 messages below the warning threshold.
2753 - Added ``Decorations`` transform (support for ``--generator``,
2754 ``--date``, ``--time``, ``--source-link`` options).
2756 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2757 Engelbert Gruber's PDF writer.
2759 * docutils/writers/html4css1.py:
2761 - Made XHTML-compatible (switched to lowercase element & attribute
2762 names; empty tag format).
2763 - Escape double-dashes in comment text.
2764 - Improved boilerplate & modularity of output.
2765 - Exposed modular output in Writer class.
2766 - Added a "generator" meta tag to <head>.
2767 - Added support for the ``--stylesheet`` option.
2768 - Added support for ``decoration``, ``header``, and ``footer``
2770 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2771 translation table to regexp; restores Python 2.0 compatibility
2773 - Added the translator class as instance variable to the Writer, to
2774 make it easily subclassable.
2775 - Improved option list spacing (thanks to Richard Jones).
2776 - Modified field list output.
2777 - Added backlinks to footnotes & citations.
2778 - Added percentage widths to "<col>" tags (from colspec).
2779 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2780 "<span>" changed to "<var>".
2781 - Inline literals: "<code>" changed to "<tt>".
2782 - Many changes to optimize vertical space: compact simple lists etc.
2783 - Add a command-line options & directive attributes to control TOC
2784 and footnote/citation backlinks.
2785 - Added support for optional footnote/citation backlinks.
2786 - Added support for generic bibliographic fields.
2787 - Identify backrefs.
2788 - Relative URLs for stylesheet links.
2790 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2791 PEPs (subclass of ``html4css1.Writer``).
2793 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2795 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2796 of the Docutils internal doctree in XML.
2798 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2802 - Changed the title to "The Docutils Document Tree".
2803 - Added "Hyperlink Bookkeeping" section.
2805 * spec/docutils.dtd:
2807 - Added ``decoration``, ``header``, and ``footer`` elements.
2808 - Brought ``interpreted`` element in line with the parser: changed
2809 attribute "type" to "role", added "position".
2810 - Added support for generic bibliographic fields.
2812 * spec/notes.txt: Continual updates. Added "Project Policies".
2814 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2817 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2819 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2820 mailing list discussions.
2822 * spec/pep-0287.txt:
2824 - Renamed to "reStructuredText Docstring Format".
2826 - Reworked Q&A as an enumerated list.
2827 - Converted to reStructuredText format.
2829 * spec/pysource.dtd:
2831 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2833 * spec/pysource.txt: Removed from project. Moved much of its contents
2836 * spec/rst/alternatives.txt:
2838 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2839 - Added "Inline External Targets" section.
2841 * spec/rst/directives.txt:
2843 - Added "backlinks" attribute to "contents" directive.
2845 * spec/rst/problems.txt:
2847 - Updated the Enumerated List Markup discussion.
2848 - Added new alternative table markup syntaxes.
2850 * spec/rst/reStructuredText.txt:
2852 - Clarified field list usage.
2853 - Updated enumerated list description.
2854 - Clarified purpose of directives.
2855 - Added ``-/:`` characters to inline markup's start string prefix,
2856 ``/`` to end string suffix.
2857 - Updated "Authors" bibliographic field behavior.
2858 - Changed "inline hyperlink targets" to "inline internal targets".
2859 - Added "simple table" syntax to supplement the existing but
2860 newly-renamed "grid tables".
2861 - Added cautions for anonymous hyperlink use.
2862 - Added "Dedication" and generic bibliographic fields.
2864 * test: Made test modules standalone (subdirectories became packages).
2866 * test/DocutilsTestSupport.py:
2868 - Added support for PEP extensions to reStructuredText.
2869 - Added support for simple tables.
2870 - Refactored naming.
2872 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2874 - Now supports true packages containing test modules
2875 (``__init__.py`` files required); fixes duplicate module name bug.
2877 * test/test_pep/: Subpackage added to project; PEP testing.
2879 * test/test_rst/test_SimpleTableParser.py: Added to project.
2883 - Updated html.py and publish.py front-end tools to use the new
2884 command-line processing facilities of ``docutils.frontend``
2885 (exposed in ``docutils.core.Publisher``), reducing each to just a
2887 - Added ``locale.setlocale()`` calls to front-end tools.
2889 * tools/buildhtml.py: Added to project; batch-generates .html from all
2890 the .txt files in directories and subdirectories.
2892 * tools/default.css:
2894 - Added support for ``header`` and ``footer`` elements.
2895 - Added styles for "Dedication" topics (biblio fields).
2897 * tools/docutils.conf: A configuration file; added to project.
2899 * tools/docutils-xml.py: Added to project.
2901 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2903 * tools/pep-html-template: Added to project.
2905 * tools/pep2html.py: Added to project from Python (nondist/peps).
2906 Added support for Docutils (reStructuredText PEPs).
2908 * tools/quicktest.py:
2910 - Added the ``--attributes`` option, hacked a bit.
2911 - Added a second command-line argument (output file); cleaned up.
2913 * tools/stylesheets/: Subdirectory added to project.
2915 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2918 Release 0.1 (2002-04-20)
2919 ========================
2921 This is the first release of Docutils, merged from the now inactive
2922 reStructuredText__ and `Docstring Processing System`__ projects. For
2923 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2924 `DPS HISTORY`__ files.
2926 __ http://structuredtext.sourceforge.net/
2927 __ http://docstring.sourceforge.net/
2928 __ http://structuredtext.sourceforge.net/HISTORY.html
2929 __ http://docstring.sourceforge.net/HISTORY.html
2931 General changes: renamed 'dps' package to 'docutils'; renamed
2932 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2933 the test suites (reStructuredText's test/test_states renamed to
2934 test/test_rst); and all modifications required to make it all work.
2936 * docutils/parsers/rst/states.py:
2938 - Improved diagnostic system messages for missing blank lines.
2939 - Fixed substitution_reference bug.
2945 indent-tabs-mode: nil
2946 sentence-end-double-space: t