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/transforms/references.py
38 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
40 * docutils/utils/__init__.py
42 - Fix [ 3596884 ] exception importing ``docutils.io``.
44 * docutils/writers/html4css1/__init__.py
46 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
47 - New setting `stylesheet_dirs`: Comma-separated list of directories
48 where stylesheets are found. Used by `stylesheet_path` when expanding
49 relative path arguments.
50 - New default for math-output_: ``HTML math.css``.
52 .. _math-output: docs/user/config.html#math-output
54 * docutils/writers/latex2e/__init__.py
56 - Drop the simple algorithm replacing straight double quotes with
57 English typographic ones.
58 Activate the SmartQuotes_ transform if you want this feature.
59 - Fix literal use of babel shorthands (straight quote, tilde, ...).
60 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
61 - New setting `stylesheet_dirs`.
63 .. _SmartQuotes: docs/user/config.html#smart-quotes
65 * docutils/writers/manpage.py
67 - Fix [3607063] handle lines starting with a period.
68 - Fix option separating comma was bold (thanks to Bill Morris).
70 Release 0.10 (2012-12-16)
71 =========================
75 - Dropped support for Python 2.3.
76 - ``docutils/math``, ``docutils/error_reporting.py``, and
77 ``docutils/urischemes.py`` moved to the utils package.
78 - Fix [3541369] Relative __import__ also with Python 3.3.
79 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
80 and parsers for Python 2.7 up.
81 - Fix import of PIL.Image.
82 - Change default of "syntax highlight" option to "long",
83 basic syntax highlight styles for LaTeX and HTML.
87 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
88 option is ignored and will be removed in a future release.
89 - Fix Py3k error writing to stdout with encoding differing from default.
90 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
92 * docutils/parsers/rst/directives/misc.py
94 - Fix [ 3546533 ] Unicode error with `date` directive.
96 * docutils/transforms/universal.py
98 - SmartQuotes transform for typographic quotes and dashes.
100 * docutils/utils/__init__.py
102 - normalize_language_tag() now returns `BCP 47`_ conformant tags
103 with subtags separated by ``-``.
105 * docutils/writers/html4css1/__init__.py
107 - Use ``<code>`` tag for inline "code",
108 do not drop nested inline nodes (syntax highlight tokens).
109 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
110 - No line break after opening inline math tag.
112 * docutils/writers/manpage.py
114 - Apply [ 3527401 ] addmonition's don't preserve indentation
115 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
117 , docutils/writers/xetex/__init__.py
119 - Apply [ 3555160 ] ensure order of "otherlanguages".
120 - Fix section numbering by LaTeX.
122 * docutils/writers/s5_html/__init__.py
124 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
126 * docutils/writers/s5_html/docutils_xml.py
128 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
132 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
134 * tools/test/test_buildhtml.py
136 - Fix [ 3521167 ] allow running in any directory.
137 - Fix [ 3521168 ] allow running with Python 3.
140 Release 0.9.1 (2012-06-17)
141 ==========================
145 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
146 installed in the PYTHONPATH. Converted tests are now
147 stored in ``test3/``, tools no longer need conversion.
149 If you installed one of Docutils versions 0.7 ... 0.9 with
150 ``setup.py install`` under Python 3, remove the spurious
151 ``test/`` and ``tools/`` directories in the site library root.
155 - Make tests independent from the location of the ``test/`` directory.
156 - Use converted sources (from the ``build/`` directory) for tests under
161 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
165 - Fix writing binary data to sys.stdout under Python 3 (allows
166 ``rst2odt.py`` to be used with output redirection).
168 * docutils/parsers/rst/directives/misc.py
170 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
171 ``locale == C`` and 8-bit char in path argument of `include` directive.
175 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
178 Release 0.9 (2012-05-02)
179 ========================
183 - New reStructuredText "code" role and directive and "code" option
184 of the "include" directive with syntax highlighting by Pygments_.
185 - Fix parse_option_marker for option arguments containing ``=``.
186 - Fix [ 2993756 ]: import Python Imaging Library's Image module
187 via ``import PIL`` as starting with PIL 1.2,
188 "PIL lives in the PIL namespace only" (announcement__).
190 .. _Pygments: http://pygments.org/
191 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
195 - Fix [ 2971827 ] and [ 3442827 ]
196 extras/roman.py moved to docutils/utils/roman.py
198 * docutils/frontend.py
200 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
204 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
205 - `mode` argument for FileOutput avoids code replication in
207 - New exceptions InputError and OutputError for IO errors in
208 FileInput/FileOutput.
212 - No "hard" system exit on file IO errors: catch and report them in
213 `Publisher.reportException` instead. Allows handling by a calling
214 application if the configuration setting `traceback` is True.
216 * docutils/utils.py -> docutils/utils/__init__.py
218 - docutils.utils is now a package (providing a place for sub-modules)
220 .. note:: docutils/math, docutils/error_reporting.py, and
221 docutils/urischemes.py will move to the utils package in the next
222 release, too. See RELEASE-NOTES__
224 __ RELEASE-NOTES.html
226 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
227 errors recording non-ASCII filenames (fixes [ 3434355 ]).
229 - Fix relative_path() with source=None and `unicode` target.
231 * docutils/parsers/rst/states.py
233 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
234 characters and "international" quotes around inline markup.
235 - Use `field_marker` pattern to look for start of a
236 directive option block (fixes [ 3484857 ]).
238 * docutils/parsers/rst/tableparser.py
240 - Fix [ 2926161 ] for simple tables.
241 (Combining chars in grid tables still contribute to cell width.)
243 * docutils/writers/latex2e/__init__.py
245 - Support the `abbreviation` and `acronym` standard roles.
246 - Record only files required to generate the LaTeX source as dependencies.
247 - Fix handling of missing stylesheets.
248 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
249 when suppressing LaTeX section numbering.
250 - Use ``\DUtitle`` for unsupported section levels
251 - Apply [ 3512791 ] do not compare string literals with "is"
253 * docutils/writers/xetex/__init__.py
255 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
257 * docutils/writers/html4css1/__init__.py
259 - Change default for `math-output` setting to MathJax.
260 - Fix handling of missing stylesheets.
262 * docutils/writers/docutils_xml.py
264 - Use the visitor pattern with default_visit()/default_depart() methods
265 instead of minidom to facilitate special handling of selected nodes.
266 - Support raw XML (inserted as-is inside a <raw></raw> node).
268 * docutils/writers/manpage.py
270 - Do not emit comment line with trailing blank. Problematic for VCS.
272 Release 0.8.1 (2011-08-30)
273 ==========================
277 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
278 and [ 3395920 ] (correct copyright info for rst.el).
282 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
284 * docutils/writers/latex2e/__init__.py
286 - Clean up Babel language setting. Restores Sphinx compatibility.
288 Release 0.8 (2011-07-07)
289 ========================
293 - Handle language codes according to `BCP 47`_.
294 - If the specified language is not supported by Docutils,
295 warn and fall back to English.
296 - Math support: reStructuredText "math" role and directive,
297 ``math`` and ``math_block`` doctree elements.
298 - Decode command line arguments with the locale's preferred encoding
299 (to allow, e.g., ``--title=Dornröschen``).
300 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
301 - New sub-module `error_reporting`: handle encoding/decoding errors
302 when reporting exceptions.
303 - Some additions to the Docutils core are released under the 2-Clause BSD
304 license, see COPYING_ for details.
306 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
307 .. _COPYING: COPYING.html
311 - Most directives now support a "name" option that attaches a
314 - Directive content may start on the first line also when the directive
315 type accepts options.
317 * docs/dev/policies.txt:
319 - Recommend the 2-Clause BSD license
320 (http://www.spdx.org/licenses/BSD-2-Clause)
321 for code that is kept under the author's copyright.
323 * tools/buildhtml.py:
325 - Fix ``--local`` switch.
327 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
329 * docutils/writers/html4css1/__init__.py
331 - Set "lang" argument for objects with class argument
332 "language-<language tag>".
333 - New setting "math-output" with support for HTML, MathML, and LaTeX.
335 * docutils/writers/latex2e/__init__.py
337 - Fix [ 3043986 ] AttributeError using :local: with table of content.
338 - Place title data in the document preamble.
339 - Load `babel` package only if required.
340 - Update list of supported languages.
341 - New config setting "hyperref-options".
342 No hard-coded "unicode" hyperref option (clash with xetex).
343 - Set language for custom roles, paragraphs, block-quotes, and
344 line-quotes with class argument "language-<language tag>".
345 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
346 - Convert image URI to a local file path.
347 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
348 has more than one paragraph (Wolfgang Scherer).
349 - \leavevmode before longtable only when needed (prevents spurious vspace)
350 - do not advance table counter for tables without caption
352 * docutils/writers/xetex/__init__.py
354 - New writer generating LaTeX code for compiling with ``xelatex``.
356 A separate writer (inheriting from latex2e) instead of a ``--xetex``
357 option allows separate config options for XeTeX vs. LaTeX2e.
359 * docutils/writers/manpage.py
361 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
362 - Fix: vertical space cleaning for option group ``.``.
364 * tools/editors/emacs/rst.el:
366 - Fix [ 3001100 ] does not handle spaces in filenames
367 (thanks to Jakub Wilk)
371 - strip whitespace from stylesheet arguments
372 - exclude combining chars from column_width()
373 (partial fix for [ 2926161 ])
375 * docutils/parsers/rst/directives/misc.py:
377 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
382 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
383 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
385 Release 0.7 (2010-07-07)
386 ========================
390 - Fix [ 2881769 ] setup configuration.
391 - Fix [ 2788716 ] reporting problems in included files.
395 - FileInput opens files as text files with universal newline support
396 (mode "rU", configurable with the new optional argument "mode").
400 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
404 - Fix [ 2923723 ] let decode_path() tolerate path == None
406 * docutils/writers/html4css1/__init__.py
408 - Support SVG and SWF images (thanks to Stefan Rank).
409 - Generate valid XHTML for centered images with targets.
410 Use CSS classes instead of "align" tags for image alignment.
412 * docutils/writers/latex2e/__init__.py
414 - Use `transforms.writer_aux.Admonitions` to "normalize" special
416 - Use the ``\url`` command for URLs (breaks long URLs instead of
417 writing into the margin).
418 - Preserve runs of spaces in `inline literals`__.
419 - Deprecate ``figure_footnotes`` setting.
420 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
421 - New ``latex_preamble`` setting.
422 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
423 - Fix hyperlink targets (labels) for images, figures, and tables.
424 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
425 - Apply [ 2961991 ] Call hyperref with unicode option.
426 - Drop the special `output_encoding`__ default ("latin-1").
427 The Docutils wide default (usually "UTF-8") is used instead.
428 - Render inline markup in document title and subtitle.
429 - Fix numbering depth with LaTeX section numbering.
430 - Update Unicode -> LaTeX translations.
431 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
433 __ docs/ref/restructuredtext.html#inline-literals
434 __ docs/user/config.html#docutils-footnotes
435 __ docs/user/config.html#output_encoding
437 * docutils/writers/manpage.py
439 - Fix: supported attribute (thanks to peter2108).
440 - Remove trailing blanks in code (keep in sync with mercurial version).
441 - Titles level 1, that is ``.SH``, always uppercase.
442 - Apply patch from mg: literal text should be bold in man-pages.
446 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
451 - Python 3 support: copy test/ and tools/ to the build-dir
452 and convert Python sources with 2to3.
455 Release 0.6 (2009-10-11)
456 ========================
460 - Docutils is now compatible with Python versions from 2.3 up to 2.6
461 and convertible to 3.1 code.
463 + Node.__nonzero__ returns True instead of 1.
464 + use os.walk instead os.path.walk.
465 + minimize "types" module where possible.
466 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
467 + Text nodes now subclass unicode rather than UserString
468 (which is gone in python 3.0).
469 + 3.0 compatibility module docutils._compat
471 + Drop 2.2 compatibility workarounds.
472 + Drop extras/optparse.py and extras/textwrap.py
473 (stdlib modules since 2.3).
475 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
476 - Unix man page export: manpage writer moved from sandbox to Doctutils
479 - Apply [ 1719345 ] Galician translation
480 - Apply [ 1905741 ] Polish translation
481 - Apply [ 1878977 ] make_id(): deaccent characters.
482 - Apply [ 2029251 ] return nonzero when tests fail.
483 - Fix [ 1692788 ] allow UTF-8 in style sheets.
484 - Fix [ 2781629 ] support non-ASCII chars in file names.
485 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
486 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
487 - Fix [ 2821266 ] --strict option works now like --halt=info.
488 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
489 - Fix [ 1627229 ] hyperlink references in substitutions.
491 - The "newlatex" writer is orphaned.
495 - Documented Unicode characters allowed as inline markup openers,
496 closers, and delimiters.
497 - Allow units for all length specifications.
498 - Allow percent sign in "scale" argument of "figure" and "image" directives.
499 - Bugfix: The "figalign" argument of a figure now works as intended
500 (aligning the figure, not its contents).
501 - Align images with class "align-[right|center|left]"
502 (allows setting the alignment of an image in a figure).
506 - Added ``Element.__contains__`` method, for the in-operator.
508 * docutils/parsers/rst/states.py:
510 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
511 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
512 " " (non-breaking space), and "¡ ¿" openers.
514 * docutils/parsers/directives/misc.py:
516 - Added ``start-line`` and ``end-line`` options to "include"
517 directive to select a range of lines.
518 - Hard tabs in literal inclusions are replaced by spaces. This is
519 configurable via the new ``tab-width`` option of the "include" directive
520 (a negative tab-width prevents tab expansion).
524 - Add ``get_stylesheet_list`` function.
525 - Apply [ 2834836 ] print info at halt
527 * docutils/transforms/universal.py:
529 - Raise default priority of StripClasses to exclude stripped classes from
532 * docutils/writers/html4css1/__init__.py:
534 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
535 separated list of stylesheets.
536 - Address [ 1938891 ] Inline literal text creates "pre" span only when
537 needed to prevent inter-word line wraps.
538 - Use `translate` method instead of repeated `replace` calls.
539 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
540 classes to allow CSS styling that does not interfere with other
541 table-using constructs (field lists, citations, ...).
543 * docutils/writers/newlatex2e/__init__.py:
545 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
547 * docutils/writers/latex2e/__init__.py (see also
548 `<docs/user/docutils-05-compat.sty.html>`__) :
550 - Add ``--embed-stylesheet`` option.
551 - Apply [ 1474017 ] image vertical alignment is reversed.
552 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
553 - Change: has_key for dictionaries (not Nodes) to in-operator.
554 - Merge adjacent citations into one latex cite command.
555 - Failsave implementation of custom roles. LaTeX compilation now ignores
556 unknown classes instead of aborting with an error.
557 - Support custom roles based on standard roles.
558 - LaTeX packages can be used as ``--stylesheet`` arguments without
559 restriction. (A style sheet is now referenced with the ``\usepackage``
560 command, if it ends with ``.sty`` or has no extension.)
561 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
562 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
563 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
564 2005-02-04 as a configurable length unit).
565 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
566 if font-encoding is set to ''. LaTeX defaults to OT1 then.
567 - Set sub- and superscript role argument in text mode not as math.
568 Use a custom role based on sub-/superscript if you want italic shape.
569 - Shorter preamble and less dependencies: Load packages and define macros
570 only if required in the document.
571 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
572 - New custom environments and commands with optional "classes" argument.
573 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
574 - Better conformance to Docutils specifications with ``--use-latex-toc``.
575 Support for LaTeX generated ToC also with unnumbered sections.
576 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
577 section numbering by LaTeX.
578 - Use default font in admonitions and sidebar.
579 - Align of image in a figure defaults to 'center'.
580 - Bugfix: Newlines around targets and references prevent run-together
582 - Fix internal hyperlinks.
583 - Use class defaults for page margins ('typearea' now optional).
584 - Float placement made configurable, default changed to "here definitely".
585 - Typeset generic topic as "quote block with title".
586 - Use template (file and configuration option).
587 - In the default template, load cmap.sty (fix text extraction in PDF) and
588 fixltx2e.sty (LaTeX patches, \textsubscript).
589 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
590 - Use `translate` instead of repeated `replace` calls for text encoding.
591 - Hyperlinked footnotes and support for symbol footnotes and
592 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
593 - Complete pairs of binary options
594 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
595 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
597 - font-encoding: "T1" (formerly implicitely set by 'ae').
598 - use-latex-toc: true (ToC with page numbers).
599 - use-latex-footnotes: true (no mixup with figures).
601 * docutils/writers/manpage.py
603 - Do not print version at document end, this is done by the viewer.
604 - Do not print date at document end, this is done by the viewer.
605 - Fix storage of docinfo fields for none standard fields.
607 * docutils/tools/rst2man.py
609 Release 0.5 (2008-06-25)
610 ========================
612 * docutils/languages/he.py: Added to project: Hebrew mappings by
615 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
616 mappings by Meir Kriheli.
618 * docutils/frontend.py:
620 - Configuration files are now assumed and required to be
622 - Paths of applied configuration files are now recorded in the
623 runtime setting ``_config_files`` (accessible via
624 ``--dump-settings``).
625 - Added ``--strip-elements-with-class`` and ``--strip-class``
626 options (``strip_elements_with_classes`` and ``strip_classes``
631 - Added code to determine the input encoding from data: encoding
632 declarations or the presence of byte order marks (UTF-8 & UTF-16).
633 - Added support for IronPython 1.0.
637 - Added ``document.__getstate__`` method, for pickling.
639 * docutils/parsers/rst/states.py:
641 - Allow ``+`` and ``:`` in reference names.
642 - Unquoted targets beginning with an underscore (``.. __target:
643 URI``) are no longer accepted.
644 - Added support for multiple attributions in a physical block quote
645 (indented text block), dividing it into multiple logical block
647 - Added support for unicode bullets in bullet lists: "•", "‣", and
649 - Added support for new object-oriented directive interface,
650 retaining compatibility to the old functional interface.
651 - Added support for throwing ``DirectiveError``'s from within
654 * docutils/parsers/rst/__init__.py:
656 - Added ``Directive`` base class.
657 - Added ``DirectiveError`` base class.
658 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
661 * docutils/parsers/directives/:
663 - Refactored all reStructuredText directives to use the new
664 object-oriented directive interface. Errors are now (mostly)
665 thrown using the new ``DirectiveError`` class.
667 * docutils/parsers/directives/misc.py:
669 - Added ``start-after`` and ``end-before`` options to ``include``
670 directive; thanks to Stefan Rank.
672 * docutils/transforms/universal.py:
674 - Added ``StripClassesAndElements`` transform to remove from the
675 document tree all elements with classes in
676 ``settings.strip_elements_with_classes`` and all "classes"
677 attribute values in ``self.document.settings.strip_classes``.
679 * docutils/transforms/writer_aux.py:
681 - Added ``Admonitions`` transform to transform specific admonitions
682 (like ``note``, ``warning``, etc.) into generic admonitions with a
685 * docutils/writers/html4css1/__init__.py:
687 - Moved template functionality from the PEP/HTML writer here.
688 - Expanded the fragments available in the ``parts`` attribute.
689 - Moved ``id`` attributes from titles to surrounding ``div``
691 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
692 universally supported now).
693 - ``template.txt`` is now opened in text mode instead of binary mode
694 (to ensure Windows compatibility).
695 - ``a`` elements now have an "internal" or "external" class,
696 depending on reference type.
698 * docutils/writers/html4css1/template.txt: Added to project.
700 * docutils/writers/pep_html/:
702 - Moved template functionality to the HTML writer.
704 * docutils/writers/s5_html/__init__.py:
706 - Added ``view_mode`` & ``hidden_controls`` settings
707 (``--view-mode`` & ``--hidden-controls/--visible-controls``
710 * docutils/writers/latex2e/__init__.py:
712 - Add ``--literal-block-env``
713 - Fix: escaping ``%`` in href urls.
714 - Move usepackage hyperref after stylesheet inclusion.
715 - Fix: scrartcl does not have chapter but scrreprt.
716 - Add newline after ``\end{verbatim}``.
717 - Merge smaller differences from latex2e_adaptive_preamble.
718 - Add ``use-part-section``.
719 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
720 - Using leavemode option_list no longer needs to check if parent
721 is a definition list.
722 - Append ``\leavemode`` to definition list terms.
723 - No longer write visit\_/depart_definition_list_item comments to
725 - Table column width with 3 decimal places.
726 - Add table stubs support (boldfont).
727 - Add assemble_parts to writer.
728 - Add simply support for nested tables.
729 - Fix verbatim in tables if use-verbatim-when-possible.
730 - Use section commands down to subparagraph.
731 - Put ensuremath around some latin1 chars.
732 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
733 - New option ``--use-bibtex=style,db1,db2``.
734 - New option ``--reference-label`` to allow usage of LaTeX ref for
735 labels in section references.
736 - Add a label after every section to support sectionnumbers as reference
738 - Fix: bug# 1605376 rst2latex: bad options group list
739 - Remove inactive code for use_optionlist_for_option_list.
740 - Remove latex comments from option_list output.
741 - Fix: bug# 1612270 double qoutes in italian literal.
742 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
743 - Add option --use-latex-abstract.
744 - Image width unit ``px`` is translated to ``pt``.
745 - Add image height support.
746 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
748 - Fix: Do not escape underscores in citation reference labels if
749 use-latex-citations is set.
750 - Use centering instead of center for figure contents, to avoid vertical
752 - Recognize table class: borderless, nolines, booktabs, standard.
753 - Fix: Renaming contents section does not work with latex writer; SF
755 - Applied patch for custom roles with classes from Edward Loper.
756 - Fixed bug that caused crashes with more than 256 lists.
758 * docutils/writers/pep_html/__init__.py:
760 - Changed to support new python.org website structure and
763 * docs/howto/security.txt: "Deploying Docutils Securely", added to
766 * tools/buildhtml.py:
768 -- Added ``ignore`` setting to exclude a list of shell patterns
769 (default: ``.svn:CVS``).
771 * tools/editors/emacs/rst.el:
773 - Changed license to "GPL".
774 - Added ``rst-straighten-decorations`` function.
775 - The ``compile`` module is now always loaded.
776 - Added ``rst-toggle-line-block`` function.
777 - Headings consisting only of non-ASCII characters are now
778 recognized by ``rst-toc`` and ``rst-adjust``.
779 - Added font-lock support for multi-line comments where the first
780 comment line is empty.
781 - Added ``(require 'font-lock)``.
785 - Provide descriptive error message if distutils is missing.
788 Release 0.4 (2006-01-09)
789 ========================
793 - Updated the project policies for trunk/branch development &
796 * docutils/__init__.py:
798 - Added ``__version_details__`` attribute to describe code source
799 (repository/snapshot/release).
800 - Replaced ``default_transforms`` attribute of TransformSpec with
801 ``get_transforms()`` method.
805 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
806 functions, for document tree extraction and reprocessing.
810 - Added ``DocTreeInput`` class, for reprocessing existing documents.
811 - Added support for non-Unicode (e.g. binary) writer output.
815 - Re-introduced ``Targetable.indirect_reference_name``, for
816 MoinMoin/reST compatibility (removed in r3124/r3129).
817 - Added ``serial_escape`` function; escapes string values that are
818 elements of a list, for serialization. Modified Docutils-XML
819 writing (``Element._dom_node``) and pseudo-XML writing
820 (``Element.starttag``) to use ``serial_escape``.
821 - Added ``Node.deepcopy()`` method.
822 - Removed the internal lists ``document.substitution_refs``,
823 ``document.anonymous_refs``, and ``document.anonymous_targets``.
824 - Added a "container" element.
825 - Fixed bug where values of list-valued attributes of elements
826 originating from custom interpreted text roles (i.e., with custom
827 classes) were being shared between element instances. Reported by
830 * docutils/statemachine.py:
832 - Added trailing whitespace stripping to ``string2lines()``.
833 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
834 Asian double-width character support.
838 - Added ``east_asian_column_width()`` for double-width character
841 * docutils/languages/ja.py: Added to project: Japanese mappings by
844 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
845 mappings by Panjunyong.
847 * docutils/parsers/null.py: Added to project; a do-nothing parser.
849 * docutils/parsers/rst/__init__.py:
851 - Added validator to tab_width setting, with test. Closes SF bug
852 #1212515, report from Wu Wei.
854 * docutils/parsers/rst/states.py:
856 - Fixed bug with escaped colons indicating a literal block.
857 - Fixed bug with enumerated lists (SF#1254145).
858 - Backslash-escaped colons inside of field names are now allowed.
859 - Targets (implicit and explicit), anonymous hyperlink references
860 and auto-numbered footnote references inside of substitution
861 definitions are now disallowed.
862 - Fixed bug: list items with blank first lines.
863 - Fixed bug: block quote attributions with indented second lines.
864 - Added East Asian double-width character support (Python 2.4 only).
866 * docutils/parsers/rst/tableparser.py:
868 - Added East Asian double-width character support (Python 2.4 only).
870 * docutils/parsers/rst/directives/body.py:
872 - Added the "container" directive.
874 * docutils/parsers/rst/directives/misc.py:
876 - Added the "default-role", "title", and "date" directives.
877 - Added standard data file syntax to the "include" directive.
878 - Added support for "class" directive content.
880 * docutils/parsers/rst/directives/images.py:
882 - Added ``indirect_reference_name`` support for images with a target
884 - Added support for image width and height units.
885 - Fixed bug with image "target" options.
887 * docutils/parsers/rst/directives/references.py:
889 - Added "class" attribute to "target-notes" directive, for
890 footnote_reference classes.
892 * docutils/parsers/rst/include/: Directory added to project; contains
893 standard data files for the "include" directive. Initial contents:
894 character entity substitution definition sets, and a set of
895 definitions for S5/HTML presentations.
897 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
898 mappings by David Goodger.
900 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
901 Simplified Chinese mappings by Panjunyong.
903 * docutils/readers/__init__.py:
905 - Added universal.Decorations and universal.ExposeInternals
906 transforms as default transforms for all readers.
907 - Added ``ReReader`` base class for readers that reread an existing
910 * docutils/readers/doctree.py: Added to project; a reader for existing
913 * docutils/transforms/frontmatter.py:
915 - Fixed the DocInfo transform to handle SVN-style expansion of the
917 - In ``DocInfo.extract_authors``, treat the contents of "authors"
920 * docutils/transforms/misc.py:
922 - Added misc.Transitions transform, extracted from
923 universal.FinalChecks.
925 * docutils/transforms/references.py:
927 - Added references.DanglingReferences transform, extracted from
928 universal.FinalChecks.
929 - Fixed bug with doubly-indirect substitutions.
930 - Added footnote_reference classes attribute to "TargetNotes".
931 - Fixed bug with circular substitution definitions that put Docutils
932 into an infinite loop.
934 * docutils/transforms/universal.py:
936 - Added universal.ExposeInternals transform, extracted from
937 universal.FinalChecks.
938 - Removed universal.FinalChecks transform (logic has been moved to
939 several new transforms).
940 - Fixed bug with the "expose_internals" setting and Text nodes
941 (exposed by the "rawsource" internal attribute).
942 - Added the universal.StripComments transform, implementation of the
943 "strip_comments" setting.
945 * docutils/transforms/writer_aux.py: Added to project; auxiliary
946 transforms for writers.
948 - Added ``Compound`` transform, which flattens compound paragraphs.
950 * docutils/writers/: Several writer modules (html4css1.py) were
951 converted into packages. Support modules and data files have been
952 moved into the packages. The stylesheets for the HTML writers are
953 now installed along with the code, the code knows where to find
954 them, and the default is to use them (actually, to embed them).
955 Some adjustments to configuration files may be necessary. The
956 easiest way to obtain the new default behavior is to remove all
957 settings whose name includes "stylesheet".
959 * docutils/writers/__init__.py:
961 - Added universal.Messages and universal.FilterMessages transforms
962 as default transforms for all writers.
963 - Added ``UnfilteredWriter`` base class for writers that pass the
964 document tree on unchanged.
966 * docutils/writers/docutils_xml.py:
968 - Made ``xmlcharrefreplace`` the default output encoding error
971 * docutils/writers/html4css1/:
973 - Added support for image width and height units.
974 - Made ``xmlcharrefreplace`` the default output encoding error
976 - Made ``--embed-stylesheet`` the default rather than
977 ``--link-stylesheet``.
978 - Moved "id" attribute from container (section etc.) to title's <a>
979 tag, to be on the same tag as "name".
980 (!!! To be reverted in Docutils 0.5.)
981 - Added vertical space between fields of field lists.
982 - Added ``--compact-field-lists`` option to remove vertical space in
984 - Made cloaking of email addresses with ``--cloak-email-addresses``
986 - Fixed support for centered images.
987 - Added support for class="compact" & class="open" lists.
989 * docutils/writers/latex2e/:
991 - Underscores in citekeys are no longer escaped.
993 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
994 mapping of Unicode characters to LaTeX equivalents.
996 * docutils/writers/s5_html/: Package added to project; writer for
999 * docs/dev/distributing.txt: Added to project; guide for distributors
1000 (package maintainers).
1002 * docs/dev/hacking.txt: Added to project; guide for developers.
1004 * docs/ref/doctree.txt:
1006 - Updated for plural attributes "classes", "ids", "names",
1008 - Added the "container" element.
1010 * docs/ref/docutils.dtd:
1012 - Updated for plural attributes "classes", "ids", "names",
1015 * docs/user/emacs.txt: Added to project; a document about Emacs
1016 support for reStructuredText and Docutils.
1018 * docs/user/links.txt: Added to project; lists of Docutils-related
1021 * docs/user/mailing-lists.txt: Added to project; information about
1022 Docutils-related mailing lists and how to access them.
1024 * docs/user/slide-shows.txt: Added to project; example of and docs for
1025 the S5/HTML writer (``rst2s5.py`` front end).
1027 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1028 Files", added to project.
1030 * test/coverage.sh: Added to project; test coverage script.
1032 * test/DocutilsTestSupport.py:
1034 - Added support for specifying runtime settings at the suite level.
1036 * test/test_functional.py:
1038 - Added the ``clear_output_directory`` function.
1039 - Added support for ``_test_more`` functions in functional test
1042 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1044 * tools/rstpep2html.py: Renamed from pep.py.
1046 * tools/dev/create_unimap.py: Added to project; script to create the
1047 docutils/writers/unimap_latex.py mapping file.
1049 * tools/dev/profile_docutils.py: Added to project; profiler script.
1051 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1053 * tools/editors/emacs/restructuredtext.el,
1054 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1055 Removed from project; the functionality is now contained in rst.el.
1057 * tools/editors/emacs/rst.el: Added to project. Added many features
1058 and fixed many bugs. See docs/user/emacs.txt for details.
1060 * tools/stylesheets: Removed from project. Stylesheets have been
1061 renamed and moved into writer packages.
1064 Release 0.3.9 (2005-05-26)
1065 ==========================
1069 - Eliminated and replaced all uses of the old string attributes
1070 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1071 new list attributes ``ids``, ``names``, ``dupnames`` and
1072 ``classes`` throughout the whole source tree.
1076 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1077 allowing for easier debugging.
1078 - In ``Publisher.publish()``, expanded the generic top-level
1081 * docutils/examples.py:
1083 - Added ``internals`` function for exploration.
1087 - Fixed ``Input.decode`` method to apply heuristics only if no
1088 encoding is explicitly given, and to provide better reporting of
1090 - The ``Input.decode`` method now removes byte order marks (BOMs)
1093 * docutils/nodes.py:
1095 - ``image`` element class changed to subclass of Element, not
1096 TextElement (it's an empty element, and cannot contain text).
1097 - Added ``attr_defaults`` dictionary for default attribute values.
1098 - Added empty list as default value for the following attributes:
1099 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1100 - Added ``document.decoration`` attribute,
1101 ``document.get_decoration`` method, and ``decoration.get_header``
1102 & ``.get_footer`` methods.
1103 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1106 * docutils/utils.py:
1108 - Removed ``docutils.utils.Reporter.categories``,
1109 ``docutils.utils.ConditionSet``, and all references to them, to
1110 simplify error reporting.
1112 * docutils/languages/nl.py: Added to project; Dutch mappings by
1115 * docutils/parsers/rst/__init__.py:
1117 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1119 * docutils/parsers/rst/states.py:
1121 - Added check for escaped at-mark to prevent email address recognition.
1122 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1124 - Allowed whitespace in paths and URLs.
1125 - Added auto-enumerated list items.
1126 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1128 - Added support for table stub columns.
1130 * docutils/parsers/rst/directives/__init__.py:
1132 - Allowed whitespace in paths (``path`` function).
1133 - Added ``uri`` directive option conversion function.
1135 * docutils/parsers/rst/directives/body.py:
1137 - Fixed illegal context bug with "topic" directive (allowed within
1138 sidebars; not within body elements).
1140 * docutils/parsers/rst/directives/images.py:
1142 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1143 - Added support for the ``file_insertion_enabled`` setting in the
1144 "figure" directive (disables "figwidth" option).
1145 - "image" directive: added checks for valid values of "align" option,
1146 depending on context. "figure" directive: added specialized
1147 "align" option and attribute on "figure" element.
1148 - Made ":figwidth: image" option of "figure" directive work again.
1149 - Fixed bug with reference names containing uppercase letters
1150 (e.g. ``Name_``) in "target" option of "image" directive.
1152 * docutils/parsers/rst/directives/misc.py:
1154 - Fixed "include" and "raw" directives to catch text decoding
1156 - Allowed whitespace in "include" & "raw" directive paths.
1157 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1158 settings in "include" & "raw" directives.
1160 * docutils/parsers/rst/directives/parts.py:
1162 - Added "header" & "footer" directives.
1163 - Fixed illegal context bug with "contents" directive (topics
1164 allowed within sidebars; not within body elements).
1166 * docutils/parsers/rst/directives/tables.py:
1168 - Added "list-table" directive.
1169 - Caught empty CSV table bug.
1170 - Added support for the ``file_insertion_enabled`` setting in the
1171 "csv-table" directive.
1172 - Added ``stub-columns`` option to "csv-table" and "list-table"
1175 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1176 mappings by Martijn Pieters.
1178 * docutils/readers/standalone.py:
1180 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1181 options to activate or deactivate the SectSubTitle transform.
1183 * docutils/transforms/frontmatter.py:
1185 - Added SectSubTitle transform to promote titles of lone
1186 subsections to subtitles.
1188 * docutils/transforms/references.py:
1190 - Fixed mislocated internal targets bug, by propagating internal
1191 targets to the next node, making use of the newly added support
1192 for multiple names and IDs.
1193 - Fixed duplicate footnote label bug.
1194 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1197 * docutils/writers/html4css1.py:
1199 - Fixed unencoded stylesheet reference bug (characters like "&" in
1200 stylesheet references).
1201 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1203 - Added support for multiple IDs per node by creating empty ``span``
1205 - Added the ``field_name_limit`` & ``option_limit`` settings &
1207 - Added support for table stub columns.
1208 - Added support for the ``align`` attribute on ``figure`` elements.
1209 - Added the ``cloak_email_addresses`` setting & support.
1210 - Added ``html_prolog``, ``html_head``, ``html_body``,
1211 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1212 ``docutils.core.publish_parts``.
1213 - Added support for section subtitles.
1215 * docutils/writers/latex2e.py:
1217 - Fixed tables starting with more than one multirow cell.
1218 - Improved --use-latex-docinfo so that organization/contact/address
1219 fields are lumped with the last author field and appear on the
1221 - Made sure the titlepage is always shown with --use-latex-docinfo,
1222 even if the document has no title.
1223 - Made sure that latex doesn't fill in today's date if no date field
1225 - Added support for section subtitles.
1227 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1228 (under development).
1230 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1232 * docs/api/publisher.txt:
1234 - Added "``publish_parts`` Details" section.
1236 * docutils/dev/repository.txt: Added to project; information about the
1237 Docutils Subversion repository.
1239 * docs/ref/docutils.dtd:
1241 - Added a ``stub`` attribute to the ``colspec`` element via the
1242 ``tbl.colspec.att`` parameter entity.
1243 - Allowed topic elements within sidebars
1244 - Added an ``align`` attribute to the ``figure`` element.
1246 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1250 Release 0.3.7 (2004-12-24)
1251 ==========================
1253 * docutils/frontend.py:
1255 - Added options: --input-encoding-error-handler,
1256 --record-dependencies, --leave-footnote-reference-space,
1258 - Added command-line and config file support for "overrides" setting
1263 - Added support for input encoding error handler.
1265 * docutils/nodes.py:
1267 - Added dispatch_visit and dispatch_departure methods to
1268 NodeVisitor; useful as a hook for Visitors.
1269 - Changed structure of ``line_block``; added ``line``.
1270 - Added ``compound`` node class.
1271 - Added a mechanism for Visitors to transitionally ignore new node
1274 * docutils/utils.py:
1276 - Moved ``escape2null`` and ``unescape`` functions from
1277 docutils/parsers/rst/states.py.
1279 * docutils/parsers/rst/roles.py:
1282 - Changed role function API: the "text" parameter now takes
1283 null-escaped interpreted text content.
1285 * docutils/parsers/rst/states.py:
1287 - Fixed bug where a "role" directive in a nested parse would crash
1288 the parser; the state machine's "language" attribute was not being
1290 - Added support for line block syntax.
1291 - Fixed directive parsing bug: argument-less directives didn't
1292 notice that arguments were present.
1293 - Removed error checking for transitions.
1294 - Added support for multiple classifiers in definition list items.
1295 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1296 - Changed role function API: the "text" parameter now takes
1297 null-escaped interpreted text content.
1298 - Empty sections and documents are allowed now.
1300 * docutils/parsers/rst/directives/__init__.py:
1302 - Added ``encoding`` directive option conversion function.
1303 - Allow multiple class names in class_option conversion function.
1305 * docutils/parsers/rst/directives/body.py:
1307 - Converted the line-block directive to use the new structure.
1308 - Extracted the old line-block functionality to the ``block``
1309 function (still used).
1310 - Added ``compound`` directive (thanks to Lea Wiemann).
1312 * docutils/parsers/rst/directives/misc.py:
1314 - Added "encoding" option to "include" and "raw" directives.
1315 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1316 - Allow multiple class names in the "class" directive.
1318 * docutils/parsers/rst/directives/parts.py:
1320 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1321 options. Thanks to Lele Gaifax.
1323 * docutils/parsers/rst/directives/tables.py:
1325 - Added "encoding" directive to "csv-table" directive.
1326 - Added workaround for lack of Unicode support in csv.py, for
1327 non-ASCII CSV input.
1329 * docutils/transforms/misc.py:
1331 - Fixed bug when multiple "class" directives are applied to a single
1333 - Enabled multiple format names for "raw" directive.
1335 * docutils/transforms/references.py:
1337 - Added support for trimming whitespace from beside substitution
1340 * docutils/transforms/universal.py:
1342 - FinalChecks now checks for illegal transitions and moves
1343 transitions between sections.
1345 * docutils/writers/html4css1.py:
1347 - HTMLTranslator.encode now converts U+00A0 to " ".
1348 - "stylesheet" and "stylesheet_path" settings are now mutually
1350 - Added support for the new line_block/line structure.
1351 - --footnote-references now overrides
1352 --trim-footnote-reference-space, if applicable.
1353 - Added support for ``compound`` elements.
1354 - Enabled multiple format names for "raw" directive.
1355 - ``<p>`` tags of a paragraph which is the only visible child of the
1356 document node are no longer stripped.
1357 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1358 new method ``should_be_compact_paragraph()``.
1359 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1361 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1362 the output if they have their ``class`` attribute set.
1363 - The whole document is now surrounded by a ``<div
1364 class="document">`` element.
1365 - Body-level images are now wrapped by their own ``<div>`` elements,
1366 with image classes copied to the wrapper, and for images which
1367 have the ``:align:`` option set, the surrounding ``<div>`` now
1368 receives a class attribute (like ``class="align-left"``).
1370 * docutils/writers/latex2e.py:
1372 - no newline after depart_term.
1373 - Added translations for some Unicode quotes.
1374 - Added option "font-encoding", made package AE the default.
1375 - "stylesheet" and "stylesheet_path" settings are now mutually
1377 - --footnote-references now overrides
1378 --trim-footnote-reference-space, if applicable.
1379 - The footnote label style now matches the footnote reference style
1380 ("brackets" or "superscript").
1381 - Added support for ``compound`` elements.
1382 - Enabled multiple format names for "raw" directive.
1384 * docs/ref/docutils.dtd:
1386 - Changed structure of the ``line_block`` element; added ``line``.
1387 - Added ``compound`` element.
1388 - Added "ltrim" and "rtrim" attributes to
1389 ``substitution_definition`` element.
1390 - Enabled multiple format names for ``raw`` element.
1391 - Enabled multiple classifiers in ``definition_list_item`` elements.
1393 * docs/ref/rst/directives.txt
1395 - Marked "line-block" as deprecated.
1396 - "Class" directive now allows multiple class names.
1397 - Added "Rationale for Class Attribute Value Conversion".
1398 - Added warning about "raw" overuse/abuse.
1400 * docs/ref/rst/restructuredtext.txt:
1402 - Added syntax for line blocks.
1403 - Definition list items may have multiple classifiers.
1405 * docs/ref/rst/roles.txt:
1409 * tools/stylesheets/default.css:
1411 - Added support for the new line_block structure.
1412 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1415 Release 0.3.5 (2004-07-29)
1416 ==========================
1420 * _`Documentation cleanup/reorganization`.
1422 - Created new subdirectories of docs/:
1424 * ``docs/user/``: introductory/tutorial material for end-users
1425 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1426 * ``docs/api/``: API reference material for client-developers
1427 * ``docs/ref/``: reference material for all groups
1428 * ``docs/howto/``: for component-developers and core-developers
1429 * ``docs/peps/``: Python Enhancement Proposals
1431 - Moved ``docs/*`` to ``docs/user/``.
1432 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1433 ``spec/`` to ``docs/dev``.
1434 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1435 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1436 - Moved ``alternatives.txt``, and ``problems.txt`` from
1437 ``spec/rst/`` to ``docs/dev/rst/``.
1438 - Moved ``reStructuredText.txt``, ``directives.txt``,
1439 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1440 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1441 ``roles.txt``, ``reStructuredText.txt`` to
1442 ``restructuredtext.txt``.
1443 - Moved ``spec/howto/`` to ``docs/howto``.
1445 In order to keep the CVS history of moved files, we supplied
1446 SourceForge with a `script for modifying the Docutils CVS
1449 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1451 After running the cleanup script:
1453 - Added ``docs/index.txt``.
1454 - Added a ``.htaccess`` file to the ``web`` module, containing
1455 redirects for all old paths to new paths. They'll preserve
1456 fragments (the "#name" part of a URL), and won't clutter up the
1457 file system, and will correct the URL in the user's browser.
1458 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1459 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1460 the "To Do" list itself in ``docs/dev/todo.txt``.
1461 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1462 section of ``docs/dev/todo.txt``.
1463 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1464 - Added "How To Report Bugs" to ``BUGS.txt``.
1465 - Went through all the sources and docs (including under web/) and
1466 updated links. Mostly done by Lea Wiemann; thanks Lea!
1467 (Still need to update links in the sandboxes.)
1471 * BUGS.txt: Added to project.
1473 * THANKS.txt: Added to project.
1475 * docutils/__init__.py:
1477 - 0.3.4: Post-release.
1481 - Added special error handling & advice for UnicodeEncodeError.
1482 - Refactored Publisher.publish (simplified exception handling &
1483 extracted debug dumps).
1484 - Renamed "enable_exit" parameter of convenience functions to
1485 "enable_exit_status".
1486 - Enabled traceback (exception propagation) by default in
1487 programmatic convenience functions.
1488 - Now publish_file and publish_cmdline convenience functions return
1489 the encoded string results in addition to their regular I/O.
1490 - Extracted common code from publish_file, publish_string, and
1491 publish_parts, into new publish_programmatically. Extracted
1492 settings code to ``Publisher.process_programmatic_settings``.
1493 - In Publisher.publish, disabled ``settings_overrides`` when
1494 ``settings`` is supplied; redundant.
1496 * docutils/frontend.py:
1498 - Added help text for "--output-encoding-error-handler" and
1499 "--error-encoding-error-handler".
1500 - Renamed "--exit" to "--exit-status".
1501 - Simplified default-setting code.
1503 * docutils/parsers/rst/__init__.py:
1505 - Added "--pep-base-url" and "--rfc-base-url" options.
1507 * docutils/parsers/rst/states.py:
1509 - Made URI recognition more aggressive and intelligent.
1511 * docutils/parsers/rst/directives/__init__.py:
1513 - Added several directive option conversion functions.
1515 * docutils/parsers/rst/directives/body.py:
1517 - Moved "table" directive to tables.py.
1519 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1522 * docutils/writers/latex2e.py:
1524 - Added "--table-style=(standard|booktabs|nolines)"
1525 - figures get "here" option (LaTeX per default puts them at bottom),
1526 and figure content is centered.
1527 - Rowspan support for tables.
1528 - Fix: admonition titles before first section.
1529 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1530 - Replave ``_`` in literal by an underlined blank, because it has the correct
1532 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1533 - A few unicode replacements, if output_encoding != utf
1534 - Add "--graphicx-option".
1535 - Indent literal-blocks.
1536 - Fix: omit ``\maketitle`` when there is no document title.
1538 * docs/index.txt: "Docutils Project Documentation Overview", added to
1541 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1542 Tool", added to project.
1544 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1546 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1548 * docs/dev/policies.txt: Added to project (extracted from
1549 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1551 * docs/dev/release.txt: Added to project (extracted from
1552 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1554 * docs/dev/testing.txt: Added to project.
1556 * docs/dev/website.txt: Added to project (extracted from
1557 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1559 * docs/ref/rst/directives.txt:
1561 - Added directives: "table", "csv-table".
1563 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1564 added to project. 1 page for syntax, and a 1 page reference for
1565 directives and roles. Source text to be used as-is; not meant to be
1568 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1569 with a change of title.
1571 * test/functional/, contents, and test/test_functional.py: Added to
1574 * tools/buildhtml.py: Fixed bug with config file handling.
1576 * tools/html.py: Removed from project (duplicate of rst2html.py).
1578 * tools/pep2html.py: Removed from project (duplicate of Python's
1579 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1580 Docutils-related PEPs in docs/peps/).
1582 * tools/rst2pseudoxml.py: Renamed from publish.py.
1584 * tools/rst2xml.py: Renamed from docutils-xml.py.
1586 * tools/test.txt: Removed from project; moved to
1587 docs/user/rst/demo.txt.
1589 * setup.py: Now also installs ``rst2latex.py``.
1592 Release 0.3.3 (2004-05-09)
1593 ==========================
1595 * docutils/__init__.py:
1597 - 0.3.1: Reorganized config file format (multiple sections); see
1599 - Added unknown_reference_resolvers attribute to TransformSpec.
1600 - 0.3.2: Interpreted text reorganization.
1605 - Catch system messages to stop tracebacks from parsing errors.
1606 - Catch exceptions during processing report & exit without
1607 tracebacks, except when "--traceback" used.
1608 - Reordered components for OptionParser; application comes last.
1609 - Added "config_section" parameter to several methods and functions,
1610 allowing front ends to easily specify their config file sections.
1611 - Added publish_parts convenience function to allow access to individual
1612 parts of a document.
1614 * docutils/examples.py: Added to project; practical examples of
1615 Docutils client code, to be used as-is or as models for variations.
1617 * docutils/frontend.py:
1619 - Added "--traceback" & "--no-traceback" options ("traceback"
1621 - Implemented support for config file reorganization:
1622 ``standard_config_files`` moved from ``ConfigParser`` to
1623 ``OptionParser``; added
1624 ``OptionParser.get_config_file_settings()`` and
1625 ``.get_standard_config_settings()``; support for old "[options]"
1626 section (with deprecation warning) and mapping from old to new
1628 - Reimplemented setting validation.
1629 - Enabled flexible boolean values: yes/no, true/false, on/off.
1630 - Added ``Values``, a subclass of ``optparse.Values``, with support
1631 for list setting attributes.
1632 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1633 thanks to Beni Cherniavsky.
1634 - Added "--no-section-numbering" option.
1638 - Catch IOErrors when opening source & destination files, report &
1639 exit without tracebacks. Added ``handle_io_errors`` parameter to
1640 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1642 * docutils/nodes.py:
1644 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1645 method definitions (via ``exec``) to dynamic assignments (via
1646 ``setattr``); thanks to Roman Suzi.
1647 - Encapsulated visitor dynamic assignments in a function; thanks to
1649 - Added indirect_reference_name attribute to the Targetable
1650 class. This attribute holds the whitespace_normalized_name
1651 (contains mixed case) of a target.
1653 * docutils/statemachine.py:
1655 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1656 - Added ``StringList.get_2D_block``.
1658 * docutils/utils.py:
1660 - Added "level" attribute to SystemMessage exceptions.
1662 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1665 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1668 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1669 Marcelo Huerta San Martin.
1671 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1672 mappings by Lalo Martins.
1674 * docutils/languages/ru.py: Added to project; Russian mappings by
1677 * docutils/parsers/rst/roles.py: Added to project. Contains
1678 interpreted text role functions, a registry for interpreted text
1679 roles, and an API for adding to and retrieving from the registry.
1680 Contributed by Edward Loper.
1682 * docutils/parsers/rst/states.py:
1684 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1685 - Allowed true em-dash character and "---" as block quote
1687 - Added support for <angle-bracketed> complex option arguments
1689 - Fixed handling of backslashes in substitution definitions.
1690 - Fixed off-by-1 error with extra whitespace after substitution
1691 definition directive.
1692 - Added inline markup parsing to field lists' field names.
1693 - Added support for quoted (and unindented) literal blocks.
1694 Driven in part by a bribe from Frank Siebenlist (thanks!).
1695 - Parser now handles escapes in URIs correctly.
1696 - Made embedded-URIs' reference text omittable. Idea from Beni
1698 - Refactored explicit target processing code.
1699 - Added name attribute to references containing the reference name only
1700 through whitespace_normalize_name (no case changes).
1701 - parse_target no longer returns the refname after going through
1702 normalize_name. This is now handled in make_target.
1703 - Fixed bug relating to role-less interpreted text in non-English
1705 - Reorganized interpreted text processing; moved code into the new
1706 roles.py module. Contributed by Edward Loper.
1707 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1708 ``parse_directive_block``.
1710 * docutils/parsers/rst/tableparser.py:
1712 - Reworked for ``StringList``, to support "include" directives in
1715 * docutils/parsers/rst/directives/__init__.py:
1717 - Renamed ``unchanged()`` directive option conversion function to
1718 ``unchanged_required``, and added a new ``unchanged``.
1719 - Catch unicode value too high error; fixes bug 781766.
1720 - Beefed up directive error reporting.
1722 * docutils/parsers/rst/directives/body.py:
1724 - Added basic "table" directive.
1726 * docutils/parsers/rst/directives/images.py:
1728 - Added "target" option to "image" directive.
1729 - Added name attribute to references containing the reference name only
1730 through whitespace_normalize_name (no case changes).
1732 * docutils/parsers/rst/directives/misc.py:
1734 - Isolated the import of the ``urllib2`` module; was causing
1735 problems on SourceForge (``libssl.so.2`` unavailable?).
1736 - Added the "role" directive for declaring custom interpreted text
1739 * docutils/parsers/rst/directives/parts.py:
1741 - The "contents" directive does more work up-front, creating the
1742 "topic" and "title", and leaving the "pending" node for the
1743 transform. Allows earlier reference resolution; fixes subtle bug.
1745 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1746 mappings by Jannie Hofmeyr.
1748 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1749 mappings by Marek Blaha.
1751 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1752 mappings by Marcelo Huerta San Martin.
1754 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1755 Portuguese mappings by Lalo Martins.
1757 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1758 mappings by Roman Suzi.
1760 * docutils/transforms/parts.py:
1762 - The "contents" directive does more work up-front, creating the
1763 "topic" and "title", and leaving the "pending" node for the
1764 transform. Allows earlier reference resolution; fixes subtle bug.
1765 - Added support for disabling of section numbering.
1767 * docutils/transforms/references.py:
1769 - Verifying that external targets are truly targets and not indirect
1770 references. This is because we are now adding a "name" attribute to
1771 references in addition to targets. Note sure if this is correct!
1772 - Added code to hook into the unknown_reference_resolvers list for a
1773 transformer in resolve_indirect_target. This allows the
1774 unknown_reference_resolvers to keep around indirect targets which
1775 docutils doesn't know about.
1776 - Added specific error message for duplicate targets.
1778 * docutils/transforms/universal.py:
1780 - Added FilterMessages transform (removes system messages below the
1781 verbosity threshold).
1782 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1783 to FinalCheckVisitor for application-specific handling of
1784 unresolvable references.
1785 - Added specific error message for duplicate targets.
1787 * docutils/writers/__init__.py:
1789 - Added assemble_parts method to the Writer class to allow for
1790 access to a documents individual parts.
1791 - Documented & set default for ``Writer.output`` attribute.
1793 * docutils/writers/html4css1.py:
1795 - Fixed unicode handling of attribute values (bug 760673).
1796 - Prevent duplication of "class" attribute values (bug report from
1798 - Improved table grid/border handling (prompted by report from Bob
1800 - Added support for table titles.
1801 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1803 - Added functionality to keep track of individual parts of a document
1804 and store them in a dictionary as the "parts" attribute of the writer.
1805 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1806 - Added proper support for the "scale" attribute of the "image"
1807 element. Contributed by Brent Cook.
1808 - Added ``--initial-header-level`` option.
1809 - Fixed bug: the body_pre_docinfo segment depended on there being a
1810 docinfo; if no docinfo, the document title was incorporated into
1811 the body segment. Adversely affected the publish_parts interface.
1813 * docutils/writers/latex2e.py:
1815 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1816 about a missing file.
1817 - Added options and support: ``--compound-enumerators``,
1818 ``--section-prefix-for-enumerators``, and
1819 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1821 - Added option ``--use-verbatim-when-possible``, to avoid
1822 problematic characters (eg, '~' in italian) in literal blocks.
1823 - It's now possible to use four section levels in the `book` and
1824 `report` LaTeX classes. The default `article` class still has
1827 * docs/config.txt: "Docutils Configuration Files", added to project.
1828 Moved config file entry descriptions from tools.txt.
1832 - Moved config file entry descriptions to config.txt.
1834 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1837 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1838 Text Roles", added to project.
1840 * spec/rst/reStructuredText.txt:
1842 - Added description of support for <angle-bracketed> complex option
1843 arguments to option lists.
1844 - Added subsections for indented and quoted literal blocks.
1846 * test: Continually adding & updating tests.
1848 - Added test/test_settings.py & test/data/config_*.txt support
1850 - Added test/test_writers/test_htmlfragment.py.
1852 * test/DocutilsTestSupport.py:
1854 - Refactored LaTeX publisher test suite/case class names to make
1855 testing other writers easier.
1856 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1857 to test the processing of HTML fragments which use the new
1858 publish_parts convenience function.
1860 * tools/buildhtml.py:
1862 - Added support for the "--prune" option.
1863 - Removed dependency on pep2html.py; plaintext PEPs no longer
1866 * tools/docutils.conf:
1868 - Updated for configuration file reorganization.
1870 * tools/rst2html.py:
1872 - copied from tools/html.py
1876 - added a 'scripts' section to configuration
1877 - added 'tools/rst2html.py' to the scripts section
1880 Release 0.3 (2003-06-24)
1881 ========================
1885 * Renamed "attribute" to "option" for directives/extensions.
1887 * Renamed transform method "transform" to "apply".
1889 * Renamed "options" to "settings" for runtime settings (as set by
1890 command-line options). Sometimes "option" (singular) became
1891 "settings" (plural). Some variations below:
1893 - document.options -> document.settings (stored in other objects as
1895 - option_spec -> settings_spec (not directives though)
1896 - OptionSpec -> SettingsSpec
1897 - cmdline_options -> settings_spec
1898 - relative_path_options -> relative_path_settings
1899 - option_default_overrides -> settings_default_overrides
1900 - Publisher.set_options -> Publisher.get_settings
1904 * COPYING.txt: Added "Public Domain Dedication".
1906 * FAQ.txt: Frequently asked questions, added to project.
1910 - Updated with PyPI Trove classifiers.
1911 - Conditional installation of third-party modules.
1913 * docutils/__init__.py:
1915 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1916 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1917 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1918 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1919 option and its effect on the PEP template & writer.
1920 - Bumped version to 0.2.4 due to changes to the PEP template &
1922 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1923 - Added ``TransformSpec`` class for new transform system.
1924 - Bumped version to 0.2.6 for API changes (renaming).
1925 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1926 convenience functions.
1927 - Added ``Component.component_type`` attribute.
1928 - Bumped version to 0.2.8 because of the internal parser switch from
1929 plain lists to the docutils.statemachine.StringList objects.
1930 - Bumped version to 0.2.9 because of the frontend.py API changes.
1931 - Bumped version to 0.2.10 due to changes to the project layout
1932 (third-party modules removed from the "docutils" package), and
1933 signature changes in ``io.Input``/``io.Output``.
1934 - Changed version to 0.3.0 for release.
1938 - Made ``publish()`` a bit more convenient.
1939 - Generalized ``Publisher.set_io``.
1940 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1941 parameters; improved its docstring.
1942 - Added ``publish_file()`` and ``publish_string()``.
1943 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1945 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1946 "--dump-transforms" hidden options.
1947 - Added ``Publisher.apply_transforms()`` method.
1948 - Added ``Publisher.set_components()`` method; support for
1949 ``publish_*()`` conveninece functions.
1950 - Moved config file processing to docutils/frontend.py.
1951 - Added support for exit status ("exit_level" setting &
1952 ``enable_exit`` parameter for Publisher.publish() and convenience
1955 * docutils/frontend.py:
1957 - Check for & exit on identical source & destination paths.
1958 - Fixed bug with absolute paths & "--config".
1959 - Set non-command-line defaults in ``OptionParser.__init__()``:
1960 ``_source`` & ``_destination``.
1961 - Distributed ``relative_path_settings`` to components; updated
1962 ``OptionParser.populate_from_components()`` to combine it all.
1963 - Require list of keys in ``make_paths_absolute`` (was implicit in
1964 global ``relative_path_settings``).
1965 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1966 "--dump-settings", and "--dump-transforms" hidden options.
1967 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1968 code, replaced with correct code.
1969 - Added validation functionality for config files.
1970 - Added "--error-encoding" option/setting, "_disable_config"
1972 - Added encoding validation; updated "--input-encoding" and
1973 "--output-encoding"; added "--error-encoding-error-handler" and
1974 "--output-encoding-error-handler".
1975 - Moved config file processing from docutils/core.py.
1976 - Updated ``OptionParser.populate_from_components`` to handle new
1977 ``SettingsSpec.settings_defaults`` dict.
1978 - Added support for "-" => stdin/stdout.
1979 - Added "exit_level" setting ("--exit" option).
1983 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1984 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1985 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1986 - ``FileOutput.write()`` now returns the encoded output string.
1987 - Try to get path/stream name automatically in ``FileInput`` &
1989 - Added defaults for source & destination paths.
1990 - Allow for Unicode I/O with an explicit "unicode" encoding.
1991 - Added ``Output.encode()``.
1992 - Removed dependency on runtime settings; pass encoding directly.
1993 - Recognize Unicode strings in ``Input.decode()``.
1994 - Added support for output encoding error handlers.
1996 * docutils/nodes.py:
1998 - Added "Invisible" element category class.
1999 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2000 modification during a traversal.
2001 - Added element classes: ``line_block``, ``generated``, ``address``,
2002 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2003 ``superscript``, ``subscript``, ``inline``
2004 - Added support for lists of nodes to ``Element.insert()``.
2005 - Fixed parent linking in ``Element.replace()``.
2006 - Added new abstract superclass ``FixedTextElement``; adds
2007 "xml:space" attribute.
2008 - Added support for "line" attribute of ``system_message`` nodes.
2009 - Added support for the observer pattern from ``utils.Reporter``.
2010 Added ``parse_messages`` and ``transform_messages`` attributes to
2011 ``document``, removed ``messages``. Added ``note_parse_message``
2012 and ``note_transform_message`` methods.
2013 - Added support for improved diagnostics:
2015 - Added "document", "source", and "line" internal attributes to
2016 ``Node``, set by ``Node.setup_child()``.
2017 - Converted variations on ``node.parent = self`` to
2018 ``self.setup_child(node)``.
2019 - Added ``document.current_source`` & ``.current_line``
2020 attributes, and ``.note_source`` observer method.
2021 - Changed "system_message" output to GNU-Tools format.
2023 - Added a "rawsource" attribute to the ``Text`` class, for text
2024 before backslash-escape resolution.
2025 - Support for new transform system.
2026 - Reworked ``pending`` element.
2027 - Fixed XML DOM bug (SF #660611).
2028 - Removed the ``interpeted`` element class and added
2029 ``title_reference``, ``abbreviation``, ``acronym``.
2030 - Made substitutions case-sensitive-but-forgiving; moved some code
2032 - Fixed Unicode bug on element attributes (report: William Dode).
2034 * docutils/optik.py: Removed from project; replaced with
2035 extras/optparse.py and extras/textwrap.py. These will be installed
2036 only if they're not already present in the Python installation.
2038 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2039 only if it's not already present in the Python installation.
2041 * docutils/statemachine.py:
2043 - Factored out ``State.add_initial_transitions()`` so it can be
2045 - Converted whitespace-specific "blank" and "indent" transitions
2046 from special-case code to ordinary transitions: removed
2047 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2048 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2049 ``ws_initial_transitions`` attributes.
2050 - Removed ``State.match_transition()`` after merging it into
2052 - Added ``StateCorrection`` exception.
2053 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2054 (moved ``TransitionCorrection`` support there too.)
2055 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2056 ``EOFError`` instead of ``IndexError``.
2057 - Added ``State.no_match`` method.
2058 - Added support for the Observer pattern, triggered by input line
2060 - Added ``strip_top`` parameter to
2061 ``StateMachineWS.get_first_known_indented``.
2062 - Made ``context`` a parameter to ``StateMachine.run()``.
2063 - Added ``ViewList`` & ``StringList`` classes;
2064 ``extract_indented()`` becomes ``StringList.get_indented()``.
2065 - Added ``StateMachine.insert_input()``.
2066 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2067 thanks to) Fred Drake.
2069 * docutils/utils.py:
2071 - Added a ``source`` attribute to Reporter instances and
2072 ``system_message`` elements.
2073 - Added an observer pattern to ``utils.Reporter`` to keep track of
2075 - Fixed bugs in ``relative_path()``.
2076 - Added support for improved diagnostics.
2077 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2078 - Added support for encoding Reporter stderr output, and encoding
2080 - Reporter keeps track of the highest level system message yet
2083 * docutils/languages: Fixed bibliographic field language lookups.
2085 * docutils/languages/es.py: Added to project; Spanish mappings by
2086 Marcelo Huerta San Martin.
2088 * docutils/languages/fr.py: Added to project; French mappings by
2091 * docutils/languages/it.py: Added to project; Italian mappings by
2094 * docutils/languages/sk.py: Added to project; Slovak mappings by
2097 * docutils/parser/__init__.py:
2099 - Added ``Parser.finish_parse()`` method.
2101 * docutils/parser/rst/__init__.py:
2103 - Added options: "--pep-references", "--rfc-references",
2104 "--tab-width", "--trim-footnote-reference-space".
2106 * docutils/parsers/rst/states.py:
2108 - Changed "title under/overline too short" system messages from INFO
2109 to WARNING, and fixed its insertion location.
2110 - Fixed enumerated list item parsing to allow paragraphs & section
2111 titles to begin with enumerators.
2112 - Converted system messages to use the new "line" attribute.
2113 - Fixed a substitution reference edge case.
2114 - Added support for "--pep-references" and "--rfc-references"
2115 options; reworked ``Inliner`` code to make customization easier.
2116 - Removed field argument parsing.
2117 - Added support for short section title over/underlines.
2118 - Fixed "simple reference name" regexp to ignore text like
2119 "object.__method__"; not an anonymous reference.
2120 - Added support for improved diagnostics.
2121 - Reworked directive API, based on Dethe Elza's contribution. Added
2122 ``Body.parse_directive()``, ``.parse_directive_options()``,
2123 ``.parse_directive_arguments()`` methods.
2124 - Added ``ExtensionOptions`` class, to parse directive options
2125 without parsing field bodies. Factored
2126 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2127 ``ExtensionOptions``.
2128 - Improved definition list term/classifier parsing.
2129 - Added warnings for unknown directives.
2130 - Renamed ``Stuff`` to ``Struct``.
2131 - Now flagged as errors: transitions at the beginning or end of
2132 sections, empty sections (except title), and empty documents.
2133 - Updated for ``statemachine.StringList``.
2134 - Enabled recognition of schemeless email addresses in targets.
2135 - Added support for embedded URIs in hyperlink references.
2136 - Added backslash-escapes to inline markup end-string suffix.
2137 - Added support for correct interpreted text processing.
2138 - Fixed nested title parsing (topic, sidebar directives).
2139 - Added special processing of backslash-escaped whitespace (idea
2140 from David Abrahams).
2141 - Made substitutions case-sensitive-but-forgiving; moved some code
2142 to ``docutils.nodes``.
2143 - Added support for block quote attributions.
2144 - Added a kludge to work-around a conflict between the bubble-up
2145 parser strategy and short titles (<= 3 char-long over- &
2146 underlines). Fixes SF bug #738803 "infinite loop with multiple
2147 titles" submitted by Jason Diamond.
2148 - Added explicit interpreted text roles for standard inline markup:
2149 "emphasis", "strong", "literal".
2150 - Implemented "superscript" and "subscript" interpreted text roles.
2151 - Added initial support for "abbreviation" and "acronym" roles;
2153 - Added support for "--trim-footnote-reference-space" option.
2154 - Optional space before colons in directives & hyperlink targets.
2156 * docutils/parsers/rst/tableparser.py:
2158 - Fixed a bug that was producing unwanted empty rows in "simple"
2160 - Detect bad column spans in "simple" tables.
2162 * docutils/parsers/rst/directives: Updated all directive functions to
2165 * docutils/parsers/rst/directives/__init__.py:
2167 - Added ``flag()``, ``unchanged()``, ``path()``,
2168 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2169 directive option helper functions.
2170 - Added warnings for unknown directives.
2171 - Return ``None`` for missing directives.
2172 - Added ``register_directive()``, thanks to William Dode and Paul
2175 * docutils/parsers/rst/directives/admonitions.py:
2177 - Added "admonition" directive.
2179 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2180 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2181 "parsed-literal", "rubric", "epigraph", "highlights" and
2182 "pull-quote" directives.
2184 * docutils/parsers/rst/directives/images.py:
2186 - Added an "align" attribute to the "image" & "figure" directives
2187 (by Adam Chodorowski).
2188 - Added "class" option to "image", and "figclass" to "figure".
2190 * docutils/parsers/rst/directives/misc.py:
2192 - Added "include", "raw", and "replace" directives, courtesy of
2194 - Added "unicode" and "class" directives.
2196 * docutils/parsers/rst/directives/parts.py:
2198 - Added the "sectnum" directive; by Dmitry Jemerov.
2199 - Added "class" option to "contents" directive.
2201 * docutils/parsers/rst/directives/references.py: Added to project.
2202 Contains the "target-notes" directive.
2204 * docutils/parsers/rst/languages/__init__.py:
2206 - Return ``None`` from get_language() for missing language modules.
2208 * docutils/parsers/rst/languages/de.py: Added to project; German
2209 mappings by Engelbert Gruber.
2211 * docutils/parsers/rst/languages/en.py:
2213 - Added interpreted text roles mapping.
2215 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2216 mappings by Marcelo Huerta San Martin.
2218 * docutils/parsers/rst/languages/fr.py: Added to project; French
2219 mappings by William Dode.
2221 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2222 mappings by Nicola Larosa.
2224 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2225 mappings by Miroslav Vasko.
2227 * docutils/readers/__init__.py:
2229 - Added support for the observer pattern from ``utils.Reporter``, in
2230 ``Reader.parse`` and ``Reader.transform``.
2231 - Removed ``Reader.transform()`` method.
2232 - Added default parameter values to ``Reader.__init__()`` to make
2233 instantiation easier.
2234 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2236 * docutils/readers/pep.py:
2238 - Added the ``peps.TargetNotes`` transform to the Reader.
2239 - Removed PEP & RFC reference detection code; moved to
2240 parsers/rst/states.py as options (enabled here by default).
2241 - Added support for pre-acceptance PEPs (no PEP number yet).
2242 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2245 * docutils/readers/python: Python Source Reader subpackage added to
2246 project, including preliminary versions of:
2249 - moduleparser.py: Parser for Python modules.
2251 * docutils/transforms/__init__.py:
2253 - Added ``Transformer`` class and completed transform reform.
2254 - Added unknown_reference_resolvers list for each transformer. This list holds
2255 the list of functions provided by each component of the transformer that
2256 help resolve references.
2258 * docutils/transforms/frontmatter.py:
2260 - Improved support for generic fields.
2261 - Fixed bibliographic field language lookups.
2263 * docutils/transforms/misc.py: Added to project. Miscellaneous
2266 * docutils/transforms/parts.py:
2268 - Moved the "id" attribute from TOC list items to the references
2269 (``Contents.build_contents()``).
2270 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2271 - Added "class" attribute support to ``Contents``.
2273 * docutils/transforms/peps.py:
2275 - Added ``mask_email()`` function, updating to pep2html.py's
2277 - Linked "Content-Type: text/x-rst" to PEP 12.
2278 - Added the ``TargetNotes`` PEP-specific transform.
2279 - Added ``TargetNotes.cleanup_callback``.
2280 - Added title check to ``Headers``.
2282 * docutils/transforms/references.py:
2284 - Added the ``TargetNotes`` generic transform.
2285 - Split ``Hyperlinks`` into multiple transforms.
2286 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2287 - Added check for circular indirect references.
2288 - Made substitutions case-sensitive-but-forgiving.
2290 * docutils/transforms/universal.py:
2292 - Added support for the "--expose-internal-attributes" option.
2293 - Removed ``Pending`` transform classes & data.
2295 * docutils/writers/__init__.py:
2297 - Removed ``Writer.transform()`` method.
2299 * docutils/writers/docutils-xml.py:
2301 - Added XML and doctype declarations.
2302 - Added "--no-doctype" and "--no-xml-declaration" options.
2304 * docutils/writers/html4css1.py:
2306 - "name" attributes only on these tags: a, applet, form, frame,
2308 - Added "name" attribute to <a> in section titles for Netscape 4
2309 support (bug report: Pearu Peterson).
2310 - Fixed targets (names) on footnote, citation, topic title,
2311 problematic, and system_message nodes (for Netscape 4).
2312 - Changed field names from "<td>" to "<th>".
2313 - Added "@" to "@" encoding to thwart address harvesters.
2314 - Improved the vertical whitespace optimization; ignore "invisible"
2315 nodes (targets, comments, etc.).
2316 - Improved inline literals with ``<span class="pre">`` around chunks
2317 of text and `` `` for runs of spaces.
2318 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2319 ``self.docinfo`` segments.
2320 - Added support for "line_block", "address" elements.
2321 - Improved backlinks (footnotes & system_messages).
2322 - Improved system_message output.
2323 - Redefined "--stylesheet" as containing an invariant URL, used
2324 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2326 - Added "--footnote-references" option (superscript or brackets).
2327 - Added "--compact-lists" and "--no-compact-lists" options.
2328 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2329 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2330 - Improved field list rendering.
2331 - Added Docutils version to "generator" meta tag.
2332 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2333 - Improved layout of <pre> HTML source.
2334 - Fixed attribute typo on <colspec>.
2335 - Refined XML prologue.
2336 - Support for no stylesheet.
2337 - Removed "interpreted" element support.
2338 - Added support for "title_reference", "sidebar", "attribution",
2339 "rubric", and generic "admonition" elements.
2340 - Added "--attribution" option.
2341 - Added support for "inline", "subscript", "superscript" elements.
2342 - Added initial support for "abbreviation" and "acronym";
2345 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2349 - Double quotes in literal blocks (special treatment for de/ngerman).
2350 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2351 - Added "--attribution" option.
2352 - Right align attributions.
2354 * docutils/writers/pep_html.py:
2356 - Parameterized output encoding in PEP template.
2357 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2358 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2359 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2361 - Added an override on the "--footnote-references" option.
2362 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2363 - Added Docutils version to "generator" meta tag.
2364 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2368 - Added a "silent" setting for ``buildhtml.py``.
2369 - Added a "Getting Help" section.
2370 - Rearranged the structure.
2371 - Kept up to date, with new settings, command-line options etc.
2372 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2373 - Converted settings table into a definition list.
2375 * docs/rst/quickstart.txt:
2377 - Added a table of contents.
2378 - Added feedback information.
2379 - Added mention of minimum section title underline lengths.
2380 - Removed the 4-character minimum for section title underlines.
2382 * docs/rst/quickref.html:
2384 - Added a "Getting Help" section.
2385 - Added a style to make section title backlinks more subtle.
2386 - Added mention of minimum section title underline lengths.
2387 - Removed the 4-character minimum for section title underlines.
2389 * extras: Directory added to project; contains third-party modules
2390 that Docutils depends on (optparse, textwrap, roman). These are
2391 only installed if they're not already present.
2393 * licenses: Directory added to project; contains copies of license
2394 files for non-public-domain files.
2398 - Changed the focus. It's about DTD elements: structural
2399 relationships, semantics, and external (public) attributes. Not
2400 about the element class library.
2401 - Moved some implementation-specific stuff into ``docutils.nodes``
2403 - Wrote descriptions of all common attributes and parameter
2404 entities. Filled in introductory material.
2405 - Working through the element descriptions: 55 down, 37 to go.
2406 - Removed "Representation of Horizontal Rules" to
2407 spec/rst/alternatives.txt.
2409 * spec/docutils.dtd:
2411 - Added "generated" inline element.
2412 - Added "line_block" body element.
2413 - Added "auto" attribute to "title".
2414 - Changed content models of "literal_block" and "doctest_block" to
2416 - Added ``%number;`` attribute type parameter entity.
2417 - Changed ``%structural.elements;`` to ``%section.elements``.
2418 - Updated attribute types; made more specific.
2419 - Added "address" bibliographic element.
2420 - Added "line" attribute to ``system_message`` element.
2421 - Removed "field_argument" element; "field_name" may contain
2422 multiple words and whitespace.
2423 - Changed public identifier to docutils.sf.net.
2424 - Removed "interpreted" element; added "title_reference",
2425 "abbreviation", "acronym".
2426 - Removed "refuri" attribute from "footnote_reference" and
2427 "citation_reference".
2428 - Added "sidebar", "rubric", "attribution", "admonition",
2429 "superscript", "subscript", and "inline" elements.
2431 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2433 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2435 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2437 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2440 * spec/transforms.txt: Added to project.
2442 * spec/howto: Added subdirectory, for developer how-to docs.
2444 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2445 Elza, edited & extended by David Goodger.
2447 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2450 * spec/rst/alternatives.txt:
2452 - Added "Doctree Representation of Transitions" from
2454 - Updated "Inline External Targets" & closed the debate.
2455 - Added ideas for interpreted text syntax extensions.
2456 - Added "Nested Inline Markup" section.
2458 * spec/rst/directives.txt:
2460 - Added directives: "topic", "sectnum", "target-notes",
2461 "line-block", "parsed-literal", "include", "replace", "sidebar",
2462 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2464 - Formalized descriptions of directive details.
2465 - Added an "align" attribute to the "image" & "figure" directives
2466 (by Adam Chodorowski).
2467 - Added "class" options to "topic", "sidebar", "line-block",
2468 "parsed-literal", "contents", and "image"; and "figclass" to
2471 * spec/rst/interpreted.txt: Added to project. Descriptions of
2472 interpreted text roles.
2474 * spec/rst/introduction.txt:
2476 - Added pointers to material for new users.
2478 * spec/rst/reStructuredText.txt:
2480 - Disambiguated comments (just add a newline after the "::").
2481 - Updated enumerated list description; added a discussion of the
2482 second-line validity checking.
2483 - Updated directive description.
2484 - Added a note redirecting newbies to the user docs.
2485 - Expanded description of inline markup start-strings in non-markup
2487 - Removed field arguments and made field lists a generic construct.
2488 - Removed the 4-character minimum for section title underlines.
2489 - Clarified term/classifier delimiter & inline markup ambiguity
2491 - Added "Embedded URIs".
2492 - Updated "Interpreted Text" section.
2493 - Added "Character-Level Inline Markup" section.
2495 * test: Continually adding & updating tests.
2497 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2498 - Moved test/test_pep/ to test/test_readers/test_pep/.
2499 - Added test/test_readers/test_python/.
2500 - Added test/test_writers/ (Engelbert Gruber).
2504 - Made the ``locale.setlocale()`` calls in front ends
2507 * tools/buildhtml.py:
2509 - Added "--silent" option.
2510 - Fixed bug with absolute paths & "--config".
2511 - Updated for new I/O classes.
2512 - Added some exception handling.
2513 - Separated publishers' setting defaults; prevents interference.
2514 - Updated for new ``publish_file()`` convenience function.
2516 * tools/pep-html-template:
2518 - Allow for "--embed-stylesheet".
2519 - Added Docutils version to "generator" meta tag.
2520 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2521 - Conform to XHTML spec.
2523 * tools/pep2html.py:
2525 - Made ``argv`` a parameter to ``main()``.
2526 - Added support for "Content-Type:" header & arbitrary PEP formats.
2527 - Linked "Content-Type: text/plain" to PEP 9.
2528 - Files skipped (due to an error) are not pushed onto the server.
2529 - Updated for new I/O classes.
2530 - Added ``check_requirements()`` & ``pep_type_error()``.
2531 - Added some exception handling.
2532 - Updated for new ``publish_string()`` convenience function.
2533 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2535 * tools/quicktest.py:
2537 - Added "-V"/"--version" option.
2539 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2541 * tools/unicode2rstsubs.py: Added to project. Produces character
2542 entity files (reSructuredText substitutions) from the MathML master
2545 * tools/editors: Support code for editors, added to project. Contains
2546 ``emacs/restructuredtext.el``.
2548 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2550 - Added style for chunks of inline literals.
2551 - Removed margin for first child of table cells.
2552 - Right-aligned field list names.
2553 - Support for auto-numbered section titles in TOCs.
2554 - Increased the size of inline literals (<tt>) in titles.
2555 - Restored the light gray background for inline literals.
2556 - Added support for "line_block" elements.
2557 - Added style for "address" elements.
2558 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2559 - Improved field list rendering.
2560 - Vertical whitespace improvements.
2561 - Removed "a.target" style.
2563 * tools/stylesheets/pep.css:
2565 - Fixed nested section margins.
2566 - Other changes parallel those of ``../default.css``.
2569 Release 0.2 (2002-07-31)
2570 ========================
2574 - The word "component" was being used ambiguously. From now on,
2575 "component" will be used to mean "Docutils component", as in Reader,
2576 Writer, Parser, or Transform. Portions of documents (Table of
2577 Contents, sections, etc.) will be called "document parts".
2578 - Did a grand renaming: a lot of ``verylongnames`` became
2579 ``very_long_names``.
2580 - Cleaned up imports: no more relative package imports or
2581 comma-separated lists of top-level modules.
2582 - Added support for an option values object which carries default
2583 settings and overrides (from command-line options and library use).
2584 - Added internal Unicode support, and support for both input and
2586 - Added support for the ``docutils.io.IO`` class & subclasses.
2590 * docutils/__init__.py:
2592 - Added ``ApplicationError`` and ``DataError``, for use throughout
2594 - Added ``Component`` base class for Docutils components; implements
2595 the ``supports`` method.
2596 - Added ``__version__`` (thus, ``docutils.__version__``).
2600 - Removed many keyword parameters to ``Publisher.__init__()`` and
2601 ``publish()``; bundled into an option values object. Added
2602 "argv", "usage", "description", and "option_spec" parameters for
2603 command-line support.
2604 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2606 - Reworked I/O model for ``docutils.io`` wrappers.
2607 - Updated ``Publisher.set_options()``; now returns option values
2609 - Added support for configuration files (/etc/docutils.conf,
2610 ./docutils.conf, ~/.docutils).
2611 - Added ``Publisher.setup_option_parser()``.
2612 - Added default usage message and description.
2614 * docutils/frontend.py: Added to project; support for front-end
2615 (command-line) scripts. Option specifications may be augmented by
2616 components. Requires Optik (http://optik.sf.net/) for option
2617 processing (installed locally as docutils/optik.py).
2619 * docutils/io.py: Added to project; uniform API for a variety of input
2622 * docutils/nodes.py:
2624 - Added ``TreeCopyVisitor`` class.
2625 - Added a ``copy`` method to ``Node`` and subclasses.
2626 - Added a ``SkipDeparture`` exception for visitors.
2627 - Renamed ``TreePruningException`` from ``VisitorException``.
2628 - Added docstrings to ``TreePruningException``, subclasses, and
2630 - Improved docstrings.
2631 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2632 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2634 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2635 ``PreDecorative`` mixin.
2636 - Reworked the name/id bookkeeping; to ``document``, removed
2637 ``explicit_targets`` and ``implicit_targets`` attributes, added
2638 ``nametypes`` attribute and ``set_name_id_map`` method.
2639 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2641 - Added ``document.has_name()`` method.
2642 - Fixed DOM generation for list-attributes.
2643 - Added category class ``Labeled`` (used by footnotes & citations).
2644 - Added ``Element.set_class()`` method (sets "class" attribute).
2646 * docutils/optik.py: Added to project. Combined from the Optik
2647 package, with added option groups and other modifications. The use
2648 of this module is probably only temporary.
2650 * docutils/statemachine.py:
2652 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2653 - Added underscores to improve many awkward names.
2654 - In ``string2lines()``, changed whitespace normalizing translation
2655 table to regexp; restores Python 2.0 compatibility with Unicode.
2657 * docutils/urischemes.py:
2659 - Filled in some descriptions.
2660 - Added "shttp" scheme.
2662 * docutils/utils.py:
2664 - Added ``clean_rcs_keywords`` function (moved from
2665 docutils/transforms/frontmatter.py
2666 ``DocInfo.filter_rcs_keywords``).
2667 - Added underscores to improve many awkward names.
2668 - Changed names of Reporter's thresholds:
2669 warning_level -> report_level; error_level -> halt_level.
2670 - Moved ``utils.id()`` to ``nodes.make_id()``.
2671 - Added ``relative_path(source, target)``.
2673 * docutils/languages/de.py: German mappings; added to project. Thanks
2674 to Gunnar Schwant for the translations.
2676 * docutils/languages/en.py: Added "Dedication" bibliographic field
2679 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2682 * docutils/parsers/rst/states.py:
2684 - Added underscores to improve many awkward names.
2685 - Added RFC-2822 header support.
2686 - Extracted the inline parsing code from ``RSTState`` to a separate
2687 class, ``Inliner``, which will allow easy subclassing.
2688 - Made local bindings for ``memo`` container & often-used contents
2689 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2690 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2691 - Added ``MarkupMismatch`` exception; for late corrections.
2692 - Added ``-/:`` characters to inline markup's start string prefix,
2693 ``/`` to end string suffix.
2694 - Fixed a footnote bug.
2695 - Fixed a bug with literal blocks.
2696 - Applied patch from Simon Budig: simplified regexps with symbolic
2697 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2698 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2699 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2700 - Allowed non-ASCII in "simple names" (directive names, field names,
2702 - Converted ``Inliner.patterns.initial`` to be dynamically built
2703 from parts with ``build_regexp()`` function.
2704 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2705 - Updated docstrings.
2706 - Changed "table" to "grid_table"; added "simple_table" support.
2708 * docutils/parsers/rst/tableparser.py:
2710 - Changed ``TableParser`` to ``GridTableParser``.
2711 - Added ``SimpleTableParser``.
2712 - Refactored naming.
2714 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2715 a fallback language for directive names.
2717 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2718 directive to use a ``pending`` element, used only by HTML writers.
2720 * docutils/parsers/rst/directives/parts.py: Renamed from
2723 - Added "backlinks" attribute to "contents" directive.
2725 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2726 project by Adam Chodorowski.
2728 * docutils/readers/__init__.py: Gave Readers more control over
2729 choosing and instantiating Parsers.
2731 * docutils/readers/pep.py: Added to project; for PEP processing.
2733 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2734 requires a ``component`` parameter.
2736 * docutils/transforms/components.py: Added to project; transforms
2737 related to Docutils components.
2739 * docutils/transforms/frontmatter.py:
2741 - In ``DocInfo.extract_authors``, check for a single "author" in an
2742 "authors" group, and convert it to a single "author" element.
2743 - Added support for "Dedication" and generic bibliographic fields.
2745 * docutils/transforms/peps.py: Added to project; PEP-specific.
2747 * docutils/transforms/parts.py: Renamed from old components.py.
2749 - Added filter for `Contents`, to use alt-text for inline images,
2750 and to remove inline markup that doesn't make sense in the ToC.
2751 - Added "name" attribute to TOC topic depending on its title.
2752 - Added support for optional TOC backlinks.
2754 * docutils/transforms/references.py: Fixed indirect target resolution
2755 in ``Hyperlinks`` transform.
2757 * docutils/transforms/universal.py:
2759 - Changed ``Messages`` transform to properly filter out system
2760 messages below the warning threshold.
2761 - Added ``Decorations`` transform (support for ``--generator``,
2762 ``--date``, ``--time``, ``--source-link`` options).
2764 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2765 Engelbert Gruber's PDF writer.
2767 * docutils/writers/html4css1.py:
2769 - Made XHTML-compatible (switched to lowercase element & attribute
2770 names; empty tag format).
2771 - Escape double-dashes in comment text.
2772 - Improved boilerplate & modularity of output.
2773 - Exposed modular output in Writer class.
2774 - Added a "generator" meta tag to <head>.
2775 - Added support for the ``--stylesheet`` option.
2776 - Added support for ``decoration``, ``header``, and ``footer``
2778 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2779 translation table to regexp; restores Python 2.0 compatibility
2781 - Added the translator class as instance variable to the Writer, to
2782 make it easily subclassable.
2783 - Improved option list spacing (thanks to Richard Jones).
2784 - Modified field list output.
2785 - Added backlinks to footnotes & citations.
2786 - Added percentage widths to "<col>" tags (from colspec).
2787 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2788 "<span>" changed to "<var>".
2789 - Inline literals: "<code>" changed to "<tt>".
2790 - Many changes to optimize vertical space: compact simple lists etc.
2791 - Add a command-line options & directive attributes to control TOC
2792 and footnote/citation backlinks.
2793 - Added support for optional footnote/citation backlinks.
2794 - Added support for generic bibliographic fields.
2795 - Identify backrefs.
2796 - Relative URLs for stylesheet links.
2798 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2799 PEPs (subclass of ``html4css1.Writer``).
2801 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2803 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2804 of the Docutils internal doctree in XML.
2806 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2810 - Changed the title to "The Docutils Document Tree".
2811 - Added "Hyperlink Bookkeeping" section.
2813 * spec/docutils.dtd:
2815 - Added ``decoration``, ``header``, and ``footer`` elements.
2816 - Brought ``interpreted`` element in line with the parser: changed
2817 attribute "type" to "role", added "position".
2818 - Added support for generic bibliographic fields.
2820 * spec/notes.txt: Continual updates. Added "Project Policies".
2822 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2825 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2827 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2828 mailing list discussions.
2830 * spec/pep-0287.txt:
2832 - Renamed to "reStructuredText Docstring Format".
2834 - Reworked Q&A as an enumerated list.
2835 - Converted to reStructuredText format.
2837 * spec/pysource.dtd:
2839 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2841 * spec/pysource.txt: Removed from project. Moved much of its contents
2844 * spec/rst/alternatives.txt:
2846 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2847 - Added "Inline External Targets" section.
2849 * spec/rst/directives.txt:
2851 - Added "backlinks" attribute to "contents" directive.
2853 * spec/rst/problems.txt:
2855 - Updated the Enumerated List Markup discussion.
2856 - Added new alternative table markup syntaxes.
2858 * spec/rst/reStructuredText.txt:
2860 - Clarified field list usage.
2861 - Updated enumerated list description.
2862 - Clarified purpose of directives.
2863 - Added ``-/:`` characters to inline markup's start string prefix,
2864 ``/`` to end string suffix.
2865 - Updated "Authors" bibliographic field behavior.
2866 - Changed "inline hyperlink targets" to "inline internal targets".
2867 - Added "simple table" syntax to supplement the existing but
2868 newly-renamed "grid tables".
2869 - Added cautions for anonymous hyperlink use.
2870 - Added "Dedication" and generic bibliographic fields.
2872 * test: Made test modules standalone (subdirectories became packages).
2874 * test/DocutilsTestSupport.py:
2876 - Added support for PEP extensions to reStructuredText.
2877 - Added support for simple tables.
2878 - Refactored naming.
2880 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2882 - Now supports true packages containing test modules
2883 (``__init__.py`` files required); fixes duplicate module name bug.
2885 * test/test_pep/: Subpackage added to project; PEP testing.
2887 * test/test_rst/test_SimpleTableParser.py: Added to project.
2891 - Updated html.py and publish.py front-end tools to use the new
2892 command-line processing facilities of ``docutils.frontend``
2893 (exposed in ``docutils.core.Publisher``), reducing each to just a
2895 - Added ``locale.setlocale()`` calls to front-end tools.
2897 * tools/buildhtml.py: Added to project; batch-generates .html from all
2898 the .txt files in directories and subdirectories.
2900 * tools/default.css:
2902 - Added support for ``header`` and ``footer`` elements.
2903 - Added styles for "Dedication" topics (biblio fields).
2905 * tools/docutils.conf: A configuration file; added to project.
2907 * tools/docutils-xml.py: Added to project.
2909 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2911 * tools/pep-html-template: Added to project.
2913 * tools/pep2html.py: Added to project from Python (nondist/peps).
2914 Added support for Docutils (reStructuredText PEPs).
2916 * tools/quicktest.py:
2918 - Added the ``--attributes`` option, hacked a bit.
2919 - Added a second command-line argument (output file); cleaned up.
2921 * tools/stylesheets/: Subdirectory added to project.
2923 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2926 Release 0.1 (2002-04-20)
2927 ========================
2929 This is the first release of Docutils, merged from the now inactive
2930 reStructuredText__ and `Docstring Processing System`__ projects. For
2931 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2932 `DPS HISTORY`__ files.
2934 __ http://structuredtext.sourceforge.net/
2935 __ http://docstring.sourceforge.net/
2936 __ http://structuredtext.sourceforge.net/HISTORY.html
2937 __ http://docstring.sourceforge.net/HISTORY.html
2939 General changes: renamed 'dps' package to 'docutils'; renamed
2940 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2941 the test suites (reStructuredText's test/test_states renamed to
2942 test/test_rst); and all modifications required to make it all work.
2944 * docutils/parsers/rst/states.py:
2946 - Improved diagnostic system messages for missing blank lines.
2947 - Fixed substitution_reference bug.
2953 indent-tabs-mode: nil
2954 sentence-end-double-space: t