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.
17 Release 0.14rc2 (2017-07-08)
18 ============================
20 * docs/ref/docutils.dtd:
22 - Enable validation of Docutils XML documents against the DTD:
24 Use attribute type NMTOKEN instead of REFID for the `refid` attribute
25 and NMTOKENS for `backrefs`: REFID refers to an ID type instance,
26 however, the `ids` attribute cannot use the ID type because `XML only
27 allows one ID per Element Type`__ and doesn't support a multiple-ID
30 __ https://www.w3.org/TR/REC-xml/#sec-attribute-types
32 * docs/ref/rst/restructuredtext.txt:
34 - Added documentation for escaped whitespace in URI contexts.
35 - Clarify use of Unicode character categories.
37 * docutils/parsers/rst/states.py:
39 - Added functionality: escaped whitespace in URI contexts.
40 - Consistent handling of all whitespace characters in inline markup
41 recognition. Fixes [ 307 ] and [ 3402314 ] (now [ 173 ]).
43 * docutils/parsers/rst/directives/images.py:
45 - Added support for escaped whitespace in URI contexts.
47 * docutils/parsers/rst/directives/tables.py:
49 - Rework patch [ 120 ] (revert change to ``Table.get_column_widths()``
50 that led to problems in an application with a custom table directive).
52 * docutils/transforms/frontmatter.py
54 - Fix [ 320 ] Russian docinfo fields not recognized.
56 * docutils/transforms/references.py
58 - Don't add a second ID to problematic references.
60 * docutils/transforms/universal.py
62 Fix SmartQuotes: warn only once if language is unsupported
64 * docutils/utils/__init__.py:
66 - Added ``split_escaped_whitespace`` function, support for escaped
67 whitespace in URI contexts.
69 * docutils/utils/error_reporting.py
71 - Fix [ 321 ] Import block might cause name error.
73 * docutils/utils/smartquotes.py:
75 - Update quote definitions for languages et, fi, fr, ro, sv, tr, uk.
76 - New quote definitions for hr, hsb, hu, lv, sh, sl, sr.
77 - Fix [ 313 ] Differentiate apostrophe from closing single quote
79 - Fix [ 317 ] Extra space inserted with French smartquotes.
80 - Add command line interface for stand-alone use (requires 2.7).
82 * docutils/writers/_html_base.py
84 - Provide default title in metadata (required by HTML5).
85 - Fix [ 312 ] HTML writer generates invalid HTML if the table has two tags.
86 - Fix [ 319 ] The MathJax CDN shut down on April 30, 2017. For security
87 reasons, we don't use a third party public installation as default but
88 warn if math-output_ is set to MathJax without specifying a URL.
90 * docutils/writers/html4css1/__init__.py
92 - Apply [ 125 ] HTML writer: respect automatic table column sizing.
94 * docutils/writers/latex2e/__init__.py
96 - Handle class arguments for block-level elements by wrapping them
97 in a "DUclass" environment. This replaces the special handling for
98 "epigraph" and "topic" elements.
100 * docutils/writers/manpage.py
102 - Apply [ 141 ] Handling inline in manpage writer.
104 * docutils/writers/odf_odt/__init__.py:
106 - Command setting ``language`` now sets the default language
107 of the generated ODF document.
108 - The use of image directive options :width: (%), :scale:, etc now
109 set the width/height/size of images in the generated ODF
111 - The heading/title of admonitions now reflects the language
112 specified by the ``language`` setting.
114 * tools/rst2html4.py: New front-end.
116 * tools/dev/generate_punctuation_chars.py: New skript
117 to test and update utils.punctuation_chars.
120 Release 0.13.1 (2016-12-09)
121 ===========================
123 * docutils/languages/fa.py
124 docutils/parsers/rst/languages/fa.py
125 docutils/languages/la.py
126 docutils/parsers/rst/languages/la.py:
128 - Apply [ 133 ] Persian mappings by Shahin Azad.
129 - Apply [ 135 ] Language modules for Latvian by Alexander Smishlajev
133 - Fix [ 253 ] Attribute key without value not allowed in XML.
137 - Apply [ 103 ] Recognize inline markups without word boundaries.
138 - Enable escaping in embedded URIs and aliases (fixes [ 284 ]).
140 * docutils/parsers/rst/__init__.py
142 - Fix [ 233 ] Change the base URL for the :rfc: role.
144 * docutils/parsers/rst/directives/tables.py
146 - Apply [ 120 ] tables accept option widths: list of relative widths, 'auto'
149 - Implement feature request [ 48 ]
150 Add :align: option to the table directives.
151 Thanks to Takeshi KOMIYA for the patch.
153 * docutils/parsers/rst/roles.py
155 - Fix [ 295 ] Class argument for custom role inheriting from math.
157 * docutils/parsers/rst/tableparser.py
159 - Really fix [ 159 ] Spurious table column alignment errors.
161 * docutils/transforms/frontmatter.py
163 - Add name of generic bibliographic fields as a "classes" attribute value
164 (after conversion to a valid identifier form).
166 * docutils/utils/error_reporting.py
168 - Fix [ 130 ] support streams expectiong byte-strings in ErrorOutput.
170 * docutils/utils/math/math2html.py
172 - Add ``\colon`` macro, fix spacing around colons. Fixes [ 246 ].
173 - New upstream version (additional macros, piecewise integrals and sums).
175 * docutils/writers/_html_base.py
177 - New auxiliary module for definitions common to all HTML writers.
179 * docutils/writers/html5_polyglot/
181 - New HTML writer generating clean, polyglot_ markup conforming to
184 The CSS stylesheets ``minimal.css`` and ``plain.css`` contain required
185 and recommended layout rules.
187 * docutils/writers/html4css1/__init__.py
189 - Add "docutils" to class values for "container" object to address [ 267 ].
190 - Apply patch [ 119 ] by Anatoly Techtonik: use absolute paths for
191 ``default_stylesheet_path`` and ``default_template_path``.
192 - Fix [ 266 ] creating labels/class values in description list items.
193 - Do not use <sup> and <sub> tags inside <pre> (parsed-literal blocks).
194 - Fix footnotes with content that does not start with a paragraph.
195 - Use https in default MathJax URL (report Alan G Isaac).
196 - Outsourcing of common code to _html_base.py.
198 * docutils/writers/latex2e/__init__.py
200 - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
201 admonitions and docinfo.
203 - Use absolute path for ``default_template_path``.
205 - Removed deprecated options ``--use-latex-footnotes`` and
206 ``--figure-footnotes``.
208 - Cleaner LaTeX code for enumerations and literal blocks.
210 - Use "hyperref" package together with "bookmark" (improved hyperlinking
213 - Fix [ 286 ] Empty column title cause invalid latex file.
215 - Fix [ 224 ] Fix rowspan support for tables.
217 - Let LaTeX determine the column widths in tables with "colwidths-auto".
218 Not suited for multi-paragraph cells!
220 * docutils/writers/odf_odt/__init__.py
222 - remove decode.encode of filename stored in zip.
224 * docutils/writers/xetex/__init__.py
226 - LuaLaTex compatibility: do not load "xunicode".
230 - New front-end ``rst2html5.py``.
234 - Test py26, py27, py33 and py34.
236 To use, install the ``tox`` package via pip or easy_install and use
237 tox from the project root directory.
239 .. _polyglot: http://www.w3.org/TR/html-polyglot/
240 .. _HTML 5: http://www.w3.org/TR/html5/
241 .. _XHTML 1.0: http://www.w3.org/TR/xhtml1/
244 Release 0.12 (2014-07-06)
245 =========================
247 * docs/ref/rst/directives.txt
249 - Update "math" and "csv-table" descriptions.
251 * docutils/parsers/rst/directives/images.py
253 - Fix [ 258 ] figwidth="image" generates unitless width value.
255 * docutils/parsers/rst/states.py
257 - Improve error report when a non-ASCII character is specified as
258 delimiter, quote or escape character under Python 2.
259 Fixes [ 249 ] and [ 250 ].
261 * docutils/writers/html4css1/__init__.py
263 - Don't add newline after inline math.
264 Thanks to Yury G. Kudryashov for the patch.
266 * docutils/writers/latex2e/__init__.py
268 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
269 - Apply [ 116 ] by Kirill Smelkov. Don't hardcode \large for subtitle.
271 * docutils/writers/odf_odt/__init__.py
273 - Apply patch by Jakub Wilk to fix bug [ 100 ].
275 * test/test_error_reporting.py
277 - Fix [ 223 ] by removing redundant tests we do not have control over.
281 - Apply [ 115 ] respect fixed 2to3 string literal conversion behavior.
283 Release 0.11 (2013-07-22)
284 =========================
288 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
289 - Support embedded aliases within hyperlink references.
290 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
291 language module) before global search.
295 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
297 * docutils/parsers/rst/directives/__init__.py
299 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
301 * docutils/parsers/rst/directives/images.py
303 - Apply [ 3599485 ] node source/line information for sphinx translation.
305 * docutils/parsers/rst/directives/tables.py
307 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
309 * docutils/parsers/rst/states.py
311 - Fix [ 157 ] Line block parsing doesn't like system message.
312 - Always import our local copy of roman.py (report Larry Hastings).
314 * docutils/transforms/references.py
316 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
318 * docutils/utils/__init__.py
320 - Fix [ 3596884 ] exception importing ``docutils.io``.
322 * docutils/writers/html4css1/__init__.py
324 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
325 - New setting `stylesheet_dirs`: Comma-separated list of directories
326 where stylesheets are found. Used by `stylesheet_path` when expanding
327 relative path arguments.
328 - New default for math-output_: ``HTML math.css``.
329 - Avoid repeated class declarations in html4css1 writer
330 (modified version of patch [ 104 ]).
332 .. _math-output: docs/user/config.html#math-output
334 * docutils/writers/latex2e/__init__.py
336 - Drop the simple algorithm replacing straight double quotes with
337 English typographic ones.
338 Activate the SmartQuotes_ transform if you want this feature.
339 - Fix literal use of babel shorthands (straight quote, tilde, ...).
340 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
341 - New setting `stylesheet_dirs`.
343 .. _SmartQuotes: docs/user/config.html#smart-quotes
345 * docutils/writers/manpage.py
347 - Fix [3607063] handle lines starting with a period.
348 - Fix option separating comma was bold (thanks to Bill Morris).
350 Release 0.10 (2012-12-16)
351 =========================
355 - Dropped support for Python 2.3.
356 - ``docutils/math``, ``docutils/error_reporting.py``, and
357 ``docutils/urischemes.py`` moved to the utils package.
358 - Fix [3541369] Relative __import__ also with Python 3.3.
359 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
360 and parsers for Python 2.7 up.
361 - Fix import of PIL.Image.
362 - Change default of "syntax highlight" option to "long",
363 basic syntax highlight styles for LaTeX and HTML.
367 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
368 option is ignored and will be removed in a future release.
369 - Fix Py3k error writing to stdout with encoding differing from default.
370 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
372 * docutils/parsers/rst/directives/misc.py
374 - Fix [ 3546533 ] Unicode error with `date` directive.
376 * docutils/transforms/universal.py
378 - SmartQuotes transform for typographic quotes and dashes.
380 * docutils/utils/__init__.py
382 - normalize_language_tag() now returns `BCP 47`_ conformant tags
383 with subtags separated by ``-``.
385 * docutils/writers/html4css1/__init__.py
387 - Use ``<code>`` tag for inline "code",
388 do not drop nested inline nodes (syntax highlight tokens).
389 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
390 - No line break after opening inline math tag.
392 * docutils/writers/manpage.py
394 - Apply [ 3527401 ] addmonition's don't preserve indentation
395 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
397 * docutils/writers/xetex/__init__.py
399 - Apply [ 3555160 ] ensure order of "otherlanguages".
400 - Fix section numbering by LaTeX.
402 * docutils/writers/s5_html/__init__.py
404 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
406 * docutils/writers/s5_html/docutils_xml.py
408 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
409 - Fix/improve output with ``--indent`` option.
413 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
415 * tools/test/test_buildhtml.py
417 - Fix [ 3521167 ] allow running in any directory.
418 - Fix [ 3521168 ] allow running with Python 3.
421 Release 0.9.1 (2012-06-17)
422 ==========================
426 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
427 installed in the PYTHONPATH. Converted tests are now
428 stored in ``test3/``, tools no longer need conversion.
430 If you installed one of Docutils versions 0.7 ... 0.9 with
431 ``setup.py install`` under Python 3, remove the spurious
432 ``test/`` and ``tools/`` directories in the site library root.
436 - Make tests independent from the location of the ``test/`` directory.
437 - Use converted sources (from the ``build/`` directory) for tests under
442 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
446 - Fix writing binary data to sys.stdout under Python 3 (allows
447 ``rst2odt.py`` to be used with output redirection).
449 * docutils/parsers/rst/directives/misc.py
451 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
452 ``locale == C`` and 8-bit char in path argument of `include` directive.
456 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
459 Release 0.9 (2012-05-02)
460 ========================
464 - New reStructuredText "code" role and directive and "code" option
465 of the "include" directive with syntax highlighting by Pygments_.
466 - Fix parse_option_marker for option arguments containing ``=``.
467 - Fix [ 2993756 ]: import Python Imaging Library's Image module
468 via ``import PIL`` as starting with PIL 1.2,
469 "PIL lives in the PIL namespace only" (announcement__).
471 .. _Pygments: http://pygments.org/
472 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
476 - Fix [ 2971827 ] and [ 3442827 ]
477 extras/roman.py moved to docutils/utils/roman.py
479 * docutils/frontend.py
481 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
485 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
486 - `mode` argument for FileOutput avoids code replication in
488 - New exceptions InputError and OutputError for IO errors in
489 FileInput/FileOutput.
493 - No "hard" system exit on file IO errors: catch and report them in
494 `Publisher.reportException` instead. Allows handling by a calling
495 application if the configuration setting `traceback` is True.
497 * docutils/utils.py -> docutils/utils/__init__.py
499 - docutils.utils is now a package (providing a place for sub-modules)
501 .. note:: docutils/math, docutils/error_reporting.py, and
502 docutils/urischemes.py will move to the utils package in the next
503 release, too. See RELEASE-NOTES__
505 __ RELEASE-NOTES.html
507 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
508 errors recording non-ASCII filenames (fixes [ 3434355 ]).
510 - Fix relative_path() with source=None and `unicode` target.
512 * docutils/parsers/rst/states.py
514 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
515 characters and "international" quotes around inline markup.
516 - Use `field_marker` pattern to look for start of a
517 directive option block (fixes [ 3484857 ]).
519 * docutils/parsers/rst/tableparser.py
521 - Fix [ 2926161 ] for simple tables.
522 (Combining chars in grid tables still contribute to cell width.)
524 * docutils/writers/latex2e/__init__.py
526 - Support the `abbreviation` and `acronym` standard roles.
527 - Record only files required to generate the LaTeX source as dependencies.
528 - Fix handling of missing stylesheets.
529 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
530 when suppressing LaTeX section numbering.
531 - Use ``\DUtitle`` for unsupported section levels
532 - Apply [ 3512791 ] do not compare string literals with "is"
534 * docutils/writers/xetex/__init__.py
536 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
538 * docutils/writers/html4css1/__init__.py
540 - Change default for `math-output` setting to MathJax.
541 - Fix handling of missing stylesheets.
543 * docutils/writers/docutils_xml.py
545 - Use the visitor pattern with default_visit()/default_depart() methods
546 instead of minidom to facilitate special handling of selected nodes.
547 - Support raw XML (inserted as-is inside a <raw></raw> node).
549 * docutils/writers/manpage.py
551 - Do not emit comment line with trailing blank. Problematic for VCS.
553 Release 0.8.1 (2011-08-30)
554 ==========================
558 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
559 and [ 3395920 ] (correct copyright info for rst.el).
563 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
565 * docutils/writers/latex2e/__init__.py
567 - Clean up Babel language setting. Restores Sphinx compatibility.
569 Release 0.8 (2011-07-07)
570 ========================
574 - Handle language codes according to `BCP 47`_.
575 - If the specified language is not supported by Docutils,
576 warn and fall back to English.
577 - Math support: reStructuredText "math" role and directive,
578 ``math`` and ``math_block`` doctree elements.
579 - Decode command line arguments with the locale's preferred encoding
580 (to allow, e.g., ``--title=Dornröschen``).
581 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
582 - New sub-module `error_reporting`: handle encoding/decoding errors
583 when reporting exceptions.
584 - Some additions to the Docutils core are released under the 2-Clause BSD
585 license, see COPYING_ for details.
587 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
588 .. _COPYING: COPYING.html
592 - Most directives now support a "name" option that attaches a
595 - Directive content may start on the first line also when the directive
596 type accepts options.
598 * docs/dev/policies.txt:
600 - Recommend the 2-Clause BSD license
601 (http://www.spdx.org/licenses/BSD-2-Clause)
602 for code that is kept under the author's copyright.
604 * tools/buildhtml.py:
606 - Fix ``--local`` switch.
608 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
610 * docutils/writers/html4css1/__init__.py
612 - Set "lang" argument for objects with class argument
613 "language-<language tag>".
614 - New setting "math-output" with support for HTML, MathML, and LaTeX.
616 * docutils/writers/latex2e/__init__.py
618 - Fix [ 3043986 ] AttributeError using :local: with table of content.
619 - Place title data in the document preamble.
620 - Load `babel` package only if required.
621 - Update list of supported languages.
622 - New config setting "hyperref-options".
623 No hard-coded "unicode" hyperref option (clash with xetex).
624 - Set language for custom roles, paragraphs, block-quotes, and
625 line-quotes with class argument "language-<language tag>".
626 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
627 - Convert image URI to a local file path.
628 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
629 has more than one paragraph (Wolfgang Scherer).
630 - \leavevmode before longtable only when needed (prevents spurious vspace)
631 - do not advance table counter for tables without caption
633 * docutils/writers/xetex/__init__.py
635 - New writer generating LaTeX code for compiling with ``xelatex``.
637 A separate writer (inheriting from latex2e) instead of a ``--xetex``
638 option allows separate config options for XeTeX vs. LaTeX2e.
640 * docutils/writers/manpage.py
642 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
643 - Fix: vertical space cleaning for option group ``.``.
645 * tools/editors/emacs/rst.el:
647 - Fix [ 3001100 ] does not handle spaces in filenames
648 (thanks to Jakub Wilk)
652 - strip whitespace from stylesheet arguments
653 - exclude combining chars from column_width()
654 (partial fix for [ 2926161 ])
656 * docutils/parsers/rst/directives/misc.py:
658 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
663 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
664 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
666 Release 0.7 (2010-07-07)
667 ========================
671 - Fix [ 2881769 ] setup configuration.
672 - Fix [ 2788716 ] reporting problems in included files.
676 - FileInput opens files as text files with universal newline support
677 (mode "rU", configurable with the new optional argument "mode").
681 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
685 - Fix [ 2923723 ] let decode_path() tolerate path == None
687 * docutils/writers/html4css1/__init__.py
689 - Support SVG and SWF images (thanks to Stefan Rank).
690 - Generate valid XHTML for centered images with targets.
691 Use CSS classes instead of "align" tags for image alignment.
693 * docutils/writers/latex2e/__init__.py
695 - Use `transforms.writer_aux.Admonitions` to "normalize" special
697 - Use the ``\url`` command for URLs (breaks long URLs instead of
698 writing into the margin).
699 - Preserve runs of spaces in `inline literals`__.
700 - Deprecate ``figure_footnotes`` setting.
701 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
702 - New ``latex_preamble`` setting.
703 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
704 - Fix hyperlink targets (labels) for images, figures, and tables.
705 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
706 - Apply [ 2961991 ] Call hyperref with unicode option.
707 - Drop the special `output_encoding`__ default ("latin-1").
708 The Docutils wide default (usually "UTF-8") is used instead.
709 - Render inline markup in document title and subtitle.
710 - Fix numbering depth with LaTeX section numbering.
711 - Update Unicode -> LaTeX translations.
712 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
714 __ docs/ref/restructuredtext.html#inline-literals
715 __ docs/user/config.html#docutils-footnotes
716 __ docs/user/config.html#output_encoding
718 * docutils/writers/manpage.py
720 - Fix: supported attribute (thanks to peter2108).
721 - Remove trailing blanks in code (keep in sync with mercurial version).
722 - Titles level 1, that is ``.SH``, always uppercase.
723 - Apply patch from mg: literal text should be bold in man-pages.
727 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
732 - Python 3 support: copy test/ and tools/ to the build-dir
733 and convert Python sources with 2to3.
736 Release 0.6 (2009-10-11)
737 ========================
741 - Docutils is now compatible with Python versions from 2.3 up to 2.6
742 and convertible to 3.1 code.
744 + Node.__nonzero__ returns True instead of 1.
745 + use os.walk instead os.path.walk.
746 + minimize "types" module where possible.
747 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
748 + Text nodes now subclass unicode rather than UserString
749 (which is gone in python 3.0).
750 + 3.0 compatibility module docutils._compat
752 + Drop 2.2 compatibility workarounds.
753 + Drop extras/optparse.py and extras/textwrap.py
754 (stdlib modules since 2.3).
756 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
757 - Unix man page export: manpage writer moved from sandbox to Doctutils
760 - Apply [ 1719345 ] Galician translation
761 - Apply [ 1905741 ] Polish translation
762 - Apply [ 1878977 ] make_id(): deaccent characters.
763 - Apply [ 2029251 ] return nonzero when tests fail.
764 - Fix [ 1692788 ] allow UTF-8 in style sheets.
765 - Fix [ 2781629 ] support non-ASCII chars in file names.
766 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
767 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
768 - Fix [ 2821266 ] --strict option works now like --halt=info.
769 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
770 - Fix [ 1627229 ] hyperlink references in substitutions.
772 - The "newlatex" writer is orphaned.
776 - Documented Unicode characters allowed as inline markup openers,
777 closers, and delimiters.
778 - Allow units for all length specifications.
779 - Allow percent sign in "scale" argument of "figure" and "image" directives.
780 - Bugfix: The "figalign" argument of a figure now works as intended
781 (aligning the figure, not its contents).
782 - Align images with class "align-[right|center|left]"
783 (allows setting the alignment of an image in a figure).
787 - Added ``Element.__contains__`` method, for the in-operator.
789 * docutils/parsers/rst/states.py:
791 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
792 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
793 " " (non-breaking space), and "¡ ¿" openers.
795 * docutils/parsers/directives/misc.py:
797 - Added ``start-line`` and ``end-line`` options to "include"
798 directive to select a range of lines.
799 - Hard tabs in literal inclusions are replaced by spaces. This is
800 configurable via the new ``tab-width`` option of the "include" directive
801 (a negative tab-width prevents tab expansion).
805 - Add ``get_stylesheet_list`` function.
806 - Apply [ 2834836 ] print info at halt
808 * docutils/transforms/universal.py:
810 - Raise default priority of StripClasses to exclude stripped classes from
813 * docutils/writers/html4css1/__init__.py:
815 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
816 separated list of stylesheets.
817 - Address [ 1938891 ] Inline literal text creates "pre" span only when
818 needed to prevent inter-word line wraps.
819 - Use `translate` method instead of repeated `replace` calls.
820 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
821 classes to allow CSS styling that does not interfere with other
822 table-using constructs (field lists, citations, ...).
824 * docutils/writers/newlatex2e/__init__.py:
826 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
828 * docutils/writers/latex2e/__init__.py (see also
829 `<docs/user/docutils-05-compat.sty.html>`__) :
831 - Add ``--embed-stylesheet`` option.
832 - Apply [ 1474017 ] image vertical alignment is reversed.
833 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
834 - Change: has_key for dictionaries (not Nodes) to in-operator.
835 - Merge adjacent citations into one latex cite command.
836 - Failsave implementation of custom roles. LaTeX compilation now ignores
837 unknown classes instead of aborting with an error.
838 - Support custom roles based on standard roles.
839 - LaTeX packages can be used as ``--stylesheet`` arguments without
840 restriction. (A style sheet is now referenced with the ``\usepackage``
841 command, if it ends with ``.sty`` or has no extension.)
842 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
843 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
844 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
845 2005-02-04 as a configurable length unit).
846 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
847 if font-encoding is set to ''. LaTeX defaults to OT1 then.
848 - Set sub- and superscript role argument in text mode not as math.
849 Use a custom role based on sub-/superscript if you want italic shape.
850 - Shorter preamble and less dependencies: Load packages and define macros
851 only if required in the document.
852 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
853 - New custom environments and commands with optional "classes" argument.
854 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
855 - Better conformance to Docutils specifications with ``--use-latex-toc``.
856 Support for LaTeX generated ToC also with unnumbered sections.
857 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
858 section numbering by LaTeX.
859 - Use default font in admonitions and sidebar.
860 - Align of image in a figure defaults to 'center'.
861 - Bugfix: Newlines around targets and references prevent run-together
863 - Fix internal hyperlinks.
864 - Use class defaults for page margins ('typearea' now optional).
865 - Float placement made configurable, default changed to "here definitely".
866 - Typeset generic topic as "quote block with title".
867 - Use template (file and configuration option).
868 - In the default template, load cmap.sty (fix text extraction in PDF) and
869 fixltx2e.sty (LaTeX patches, \textsubscript).
870 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
871 - Use `translate` instead of repeated `replace` calls for text encoding.
872 - Hyperlinked footnotes and support for symbol footnotes and
873 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
874 - Complete pairs of binary options
875 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
876 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
878 - font-encoding: "T1" (formerly implicitely set by 'ae').
879 - use-latex-toc: true (ToC with page numbers).
880 - use-latex-footnotes: true (no mixup with figures).
882 * docutils/writers/manpage.py
884 - Do not print version at document end, this is done by the viewer.
885 - Do not print date at document end, this is done by the viewer.
886 - Fix storage of docinfo fields for none standard fields.
888 * docutils/tools/rst2man.py
890 Release 0.5 (2008-06-25)
891 ========================
893 * docutils/languages/he.py: Added to project: Hebrew mappings by
896 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
897 mappings by Meir Kriheli.
899 * docutils/frontend.py:
901 - Configuration files are now assumed and required to be
903 - Paths of applied configuration files are now recorded in the
904 runtime setting ``_config_files`` (accessible via
905 ``--dump-settings``).
906 - Added ``--strip-elements-with-class`` and ``--strip-class``
907 options (``strip_elements_with_classes`` and ``strip_classes``
912 - Added code to determine the input encoding from data: encoding
913 declarations or the presence of byte order marks (UTF-8 & UTF-16).
914 - Added support for IronPython 1.0.
918 - Added ``document.__getstate__`` method, for pickling.
920 * docutils/parsers/rst/states.py:
922 - Allow ``+`` and ``:`` in reference names.
923 - Unquoted targets beginning with an underscore (``.. __target:
924 URI``) are no longer accepted.
925 - Added support for multiple attributions in a physical block quote
926 (indented text block), dividing it into multiple logical block
928 - Added support for unicode bullets in bullet lists: "•", "‣", and
930 - Added support for new object-oriented directive interface,
931 retaining compatibility to the old functional interface.
932 - Added support for throwing ``DirectiveError``'s from within
935 * docutils/parsers/rst/__init__.py:
937 - Added ``Directive`` base class.
938 - Added ``DirectiveError`` base class.
939 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
942 * docutils/parsers/directives/:
944 - Refactored all reStructuredText directives to use the new
945 object-oriented directive interface. Errors are now (mostly)
946 thrown using the new ``DirectiveError`` class.
948 * docutils/parsers/directives/misc.py:
950 - Added ``start-after`` and ``end-before`` options to ``include``
951 directive; thanks to Stefan Rank.
953 * docutils/transforms/universal.py:
955 - Added ``StripClassesAndElements`` transform to remove from the
956 document tree all elements with classes in
957 ``settings.strip_elements_with_classes`` and all "classes"
958 attribute values in ``self.document.settings.strip_classes``.
960 * docutils/transforms/writer_aux.py:
962 - Added ``Admonitions`` transform to transform specific admonitions
963 (like ``note``, ``warning``, etc.) into generic admonitions with a
966 * docutils/writers/html4css1/__init__.py:
968 - Moved template functionality from the PEP/HTML writer here.
969 - Expanded the fragments available in the ``parts`` attribute.
970 - Moved ``id`` attributes from titles to surrounding ``div``
972 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
973 universally supported now).
974 - ``template.txt`` is now opened in text mode instead of binary mode
975 (to ensure Windows compatibility).
976 - ``a`` elements now have an "internal" or "external" class,
977 depending on reference type.
979 * docutils/writers/html4css1/template.txt: Added to project.
981 * docutils/writers/pep_html/:
983 - Moved template functionality to the HTML writer.
985 * docutils/writers/s5_html/__init__.py:
987 - Added ``view_mode`` & ``hidden_controls`` settings
988 (``--view-mode`` & ``--hidden-controls/--visible-controls``
991 * docutils/writers/latex2e/__init__.py:
993 - Add ``--literal-block-env``
994 - Fix: escaping ``%`` in href urls.
995 - Move usepackage hyperref after stylesheet inclusion.
996 - Fix: scrartcl does not have chapter but scrreprt.
997 - Add newline after ``\end{verbatim}``.
998 - Merge smaller differences from latex2e_adaptive_preamble.
999 - Add ``use-part-section``.
1000 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
1001 - Using leavemode option_list no longer needs to check if parent
1002 is a definition list.
1003 - Append ``\leavemode`` to definition list terms.
1004 - No longer write visit\_/depart_definition_list_item comments to
1006 - Table column width with 3 decimal places.
1007 - Add table stubs support (boldfont).
1008 - Add assemble_parts to writer.
1009 - Add simply support for nested tables.
1010 - Fix verbatim in tables if use-verbatim-when-possible.
1011 - Use section commands down to subparagraph.
1012 - Put ensuremath around some latin1 chars.
1013 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
1014 - New option ``--use-bibtex=style,db1,db2``.
1015 - New option ``--reference-label`` to allow usage of LaTeX ref for
1016 labels in section references.
1017 - Add a label after every section to support sectionnumbers as reference
1019 - Fix: bug# 1605376 rst2latex: bad options group list
1020 - Remove inactive code for use_optionlist_for_option_list.
1021 - Remove latex comments from option_list output.
1022 - Fix: bug# 1612270 double qoutes in italian literal.
1023 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
1024 - Add option --use-latex-abstract.
1025 - Image width unit ``px`` is translated to ``pt``.
1026 - Add image height support.
1027 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
1029 - Fix: Do not escape underscores in citation reference labels if
1030 use-latex-citations is set.
1031 - Use centering instead of center for figure contents, to avoid vertical
1033 - Recognize table class: borderless, nolines, booktabs, standard.
1034 - Fix: Renaming contents section does not work with latex writer; SF
1036 - Applied patch for custom roles with classes from Edward Loper.
1037 - Fixed bug that caused crashes with more than 256 lists.
1039 * docutils/writers/pep_html/__init__.py:
1041 - Changed to support new python.org website structure and
1044 * docs/howto/security.txt: "Deploying Docutils Securely", added to
1047 * tools/buildhtml.py:
1049 -- Added ``ignore`` setting to exclude a list of shell patterns
1050 (default: ``.svn:CVS``).
1052 * tools/editors/emacs/rst.el:
1054 - Changed license to "GPL".
1055 - Added ``rst-straighten-decorations`` function.
1056 - The ``compile`` module is now always loaded.
1057 - Added ``rst-toggle-line-block`` function.
1058 - Headings consisting only of non-ASCII characters are now
1059 recognized by ``rst-toc`` and ``rst-adjust``.
1060 - Added font-lock support for multi-line comments where the first
1061 comment line is empty.
1062 - Added ``(require 'font-lock)``.
1066 - Provide descriptive error message if distutils is missing.
1069 Release 0.4 (2006-01-09)
1070 ========================
1074 - Updated the project policies for trunk/branch development &
1077 * docutils/__init__.py:
1079 - Added ``__version_details__`` attribute to describe code source
1080 (repository/snapshot/release).
1081 - Replaced ``default_transforms`` attribute of TransformSpec with
1082 ``get_transforms()`` method.
1086 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
1087 functions, for document tree extraction and reprocessing.
1091 - Added ``DocTreeInput`` class, for reprocessing existing documents.
1092 - Added support for non-Unicode (e.g. binary) writer output.
1094 * docutils/nodes.py:
1096 - Re-introduced ``Targetable.indirect_reference_name``, for
1097 MoinMoin/reST compatibility (removed in r3124/r3129).
1098 - Added ``serial_escape`` function; escapes string values that are
1099 elements of a list, for serialization. Modified Docutils-XML
1100 writing (``Element._dom_node``) and pseudo-XML writing
1101 (``Element.starttag``) to use ``serial_escape``.
1102 - Added ``Node.deepcopy()`` method.
1103 - Removed the internal lists ``document.substitution_refs``,
1104 ``document.anonymous_refs``, and ``document.anonymous_targets``.
1105 - Added a "container" element.
1106 - Fixed bug where values of list-valued attributes of elements
1107 originating from custom interpreted text roles (i.e., with custom
1108 classes) were being shared between element instances. Reported by
1111 * docutils/statemachine.py:
1113 - Added trailing whitespace stripping to ``string2lines()``.
1114 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
1115 Asian double-width character support.
1117 * docutils/utils.py:
1119 - Added ``east_asian_column_width()`` for double-width character
1122 * docutils/languages/ja.py: Added to project: Japanese mappings by
1125 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
1126 mappings by Panjunyong.
1128 * docutils/parsers/null.py: Added to project; a do-nothing parser.
1130 * docutils/parsers/rst/__init__.py:
1132 - Added validator to tab_width setting, with test. Closes SF bug
1133 #1212515, report from Wu Wei.
1135 * docutils/parsers/rst/states.py:
1137 - Fixed bug with escaped colons indicating a literal block.
1138 - Fixed bug with enumerated lists (SF#1254145).
1139 - Backslash-escaped colons inside of field names are now allowed.
1140 - Targets (implicit and explicit), anonymous hyperlink references
1141 and auto-numbered footnote references inside of substitution
1142 definitions are now disallowed.
1143 - Fixed bug: list items with blank first lines.
1144 - Fixed bug: block quote attributions with indented second lines.
1145 - Added East Asian double-width character support (Python 2.4 only).
1147 * docutils/parsers/rst/tableparser.py:
1149 - Added East Asian double-width character support (Python 2.4 only).
1151 * docutils/parsers/rst/directives/body.py:
1153 - Added the "container" directive.
1155 * docutils/parsers/rst/directives/misc.py:
1157 - Added the "default-role", "title", and "date" directives.
1158 - Added standard data file syntax to the "include" directive.
1159 - Added support for "class" directive content.
1161 * docutils/parsers/rst/directives/images.py:
1163 - Added ``indirect_reference_name`` support for images with a target
1165 - Added support for image width and height units.
1166 - Fixed bug with image "target" options.
1168 * docutils/parsers/rst/directives/references.py:
1170 - Added "class" attribute to "target-notes" directive, for
1171 footnote_reference classes.
1173 * docutils/parsers/rst/include/: Directory added to project; contains
1174 standard data files for the "include" directive. Initial contents:
1175 character entity substitution definition sets, and a set of
1176 definitions for S5/HTML presentations.
1178 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
1179 mappings by David Goodger.
1181 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
1182 Simplified Chinese mappings by Panjunyong.
1184 * docutils/readers/__init__.py:
1186 - Added universal.Decorations and universal.ExposeInternals
1187 transforms as default transforms for all readers.
1188 - Added ``ReReader`` base class for readers that reread an existing
1191 * docutils/readers/doctree.py: Added to project; a reader for existing
1194 * docutils/transforms/frontmatter.py:
1196 - Fixed the DocInfo transform to handle SVN-style expansion of the
1198 - In ``DocInfo.extract_authors``, treat the contents of "authors"
1201 * docutils/transforms/misc.py:
1203 - Added misc.Transitions transform, extracted from
1204 universal.FinalChecks.
1206 * docutils/transforms/references.py:
1208 - Added references.DanglingReferences transform, extracted from
1209 universal.FinalChecks.
1210 - Fixed bug with doubly-indirect substitutions.
1211 - Added footnote_reference classes attribute to "TargetNotes".
1212 - Fixed bug with circular substitution definitions that put Docutils
1213 into an infinite loop.
1215 * docutils/transforms/universal.py:
1217 - Added universal.ExposeInternals transform, extracted from
1218 universal.FinalChecks.
1219 - Removed universal.FinalChecks transform (logic has been moved to
1220 several new transforms).
1221 - Fixed bug with the "expose_internals" setting and Text nodes
1222 (exposed by the "rawsource" internal attribute).
1223 - Added the universal.StripComments transform, implementation of the
1224 "strip_comments" setting.
1226 * docutils/transforms/writer_aux.py: Added to project; auxiliary
1227 transforms for writers.
1229 - Added ``Compound`` transform, which flattens compound paragraphs.
1231 * docutils/writers/: Several writer modules (html4css1.py) were
1232 converted into packages. Support modules and data files have been
1233 moved into the packages. The stylesheets for the HTML writers are
1234 now installed along with the code, the code knows where to find
1235 them, and the default is to use them (actually, to embed them).
1236 Some adjustments to configuration files may be necessary. The
1237 easiest way to obtain the new default behavior is to remove all
1238 settings whose name includes "stylesheet".
1240 * docutils/writers/__init__.py:
1242 - Added universal.Messages and universal.FilterMessages transforms
1243 as default transforms for all writers.
1244 - Added ``UnfilteredWriter`` base class for writers that pass the
1245 document tree on unchanged.
1247 * docutils/writers/docutils_xml.py:
1249 - Made ``xmlcharrefreplace`` the default output encoding error
1252 * docutils/writers/html4css1/:
1254 - Added support for image width and height units.
1255 - Made ``xmlcharrefreplace`` the default output encoding error
1257 - Made ``--embed-stylesheet`` the default rather than
1258 ``--link-stylesheet``.
1259 - Moved "id" attribute from container (section etc.) to title's <a>
1260 tag, to be on the same tag as "name".
1261 (!!! To be reverted in Docutils 0.5.)
1262 - Added vertical space between fields of field lists.
1263 - Added ``--compact-field-lists`` option to remove vertical space in
1265 - Made cloaking of email addresses with ``--cloak-email-addresses``
1267 - Fixed support for centered images.
1268 - Added support for class="compact" & class="open" lists.
1270 * docutils/writers/latex2e/:
1272 - Underscores in citekeys are no longer escaped.
1274 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1275 mapping of Unicode characters to LaTeX equivalents.
1277 * docutils/writers/s5_html/: Package added to project; writer for
1278 S5/HTML slide shows.
1280 * docs/dev/distributing.txt: Added to project; guide for distributors
1281 (package maintainers).
1283 * docs/dev/hacking.txt: Added to project; guide for developers.
1285 * docs/ref/doctree.txt:
1287 - Updated for plural attributes "classes", "ids", "names",
1289 - Added the "container" element.
1291 * docs/ref/docutils.dtd:
1293 - Updated for plural attributes "classes", "ids", "names",
1296 * docs/user/emacs.txt: Added to project; a document about Emacs
1297 support for reStructuredText and Docutils.
1299 * docs/user/links.txt: Added to project; lists of Docutils-related
1302 * docs/user/mailing-lists.txt: Added to project; information about
1303 Docutils-related mailing lists and how to access them.
1305 * docs/user/slide-shows.txt: Added to project; example of and docs for
1306 the S5/HTML writer (``rst2s5.py`` front end).
1308 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1309 Files", added to project.
1311 * test/coverage.sh: Added to project; test coverage script.
1313 * test/DocutilsTestSupport.py:
1315 - Added support for specifying runtime settings at the suite level.
1317 * test/test_functional.py:
1319 - Added the ``clear_output_directory`` function.
1320 - Added support for ``_test_more`` functions in functional test
1323 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1325 * tools/rstpep2html.py: Renamed from pep.py.
1327 * tools/dev/create_unimap.py: Added to project; script to create the
1328 docutils/writers/unimap_latex.py mapping file.
1330 * tools/dev/profile_docutils.py: Added to project; profiler script.
1332 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1334 * tools/editors/emacs/restructuredtext.el,
1335 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1336 Removed from project; the functionality is now contained in rst.el.
1338 * tools/editors/emacs/rst.el: Added to project. Added many features
1339 and fixed many bugs. See docs/user/emacs.txt for details.
1341 * tools/stylesheets: Removed from project. Stylesheets have been
1342 renamed and moved into writer packages.
1345 Release 0.3.9 (2005-05-26)
1346 ==========================
1350 - Eliminated and replaced all uses of the old string attributes
1351 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1352 new list attributes ``ids``, ``names``, ``dupnames`` and
1353 ``classes`` throughout the whole source tree.
1357 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1358 allowing for easier debugging.
1359 - In ``Publisher.publish()``, expanded the generic top-level
1362 * docutils/examples.py:
1364 - Added ``internals`` function for exploration.
1368 - Fixed ``Input.decode`` method to apply heuristics only if no
1369 encoding is explicitly given, and to provide better reporting of
1371 - The ``Input.decode`` method now removes byte order marks (BOMs)
1374 * docutils/nodes.py:
1376 - ``image`` element class changed to subclass of Element, not
1377 TextElement (it's an empty element, and cannot contain text).
1378 - Added ``attr_defaults`` dictionary for default attribute values.
1379 - Added empty list as default value for the following attributes:
1380 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1381 - Added ``document.decoration`` attribute,
1382 ``document.get_decoration`` method, and ``decoration.get_header``
1383 & ``.get_footer`` methods.
1384 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1387 * docutils/utils.py:
1389 - Removed ``docutils.utils.Reporter.categories``,
1390 ``docutils.utils.ConditionSet``, and all references to them, to
1391 simplify error reporting.
1393 * docutils/languages/nl.py: Added to project; Dutch mappings by
1396 * docutils/parsers/rst/__init__.py:
1398 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1400 * docutils/parsers/rst/states.py:
1402 - Added check for escaped at-mark to prevent email address recognition.
1403 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1405 - Allowed whitespace in paths and URLs.
1406 - Added auto-enumerated list items.
1407 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1409 - Added support for table stub columns.
1411 * docutils/parsers/rst/directives/__init__.py:
1413 - Allowed whitespace in paths (``path`` function).
1414 - Added ``uri`` directive option conversion function.
1416 * docutils/parsers/rst/directives/body.py:
1418 - Fixed illegal context bug with "topic" directive (allowed within
1419 sidebars; not within body elements).
1421 * docutils/parsers/rst/directives/images.py:
1423 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1424 - Added support for the ``file_insertion_enabled`` setting in the
1425 "figure" directive (disables "figwidth" option).
1426 - "image" directive: added checks for valid values of "align" option,
1427 depending on context. "figure" directive: added specialized
1428 "align" option and attribute on "figure" element.
1429 - Made ":figwidth: image" option of "figure" directive work again.
1430 - Fixed bug with reference names containing uppercase letters
1431 (e.g. ``Name_``) in "target" option of "image" directive.
1433 * docutils/parsers/rst/directives/misc.py:
1435 - Fixed "include" and "raw" directives to catch text decoding
1437 - Allowed whitespace in "include" & "raw" directive paths.
1438 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1439 settings in "include" & "raw" directives.
1441 * docutils/parsers/rst/directives/parts.py:
1443 - Added "header" & "footer" directives.
1444 - Fixed illegal context bug with "contents" directive (topics
1445 allowed within sidebars; not within body elements).
1447 * docutils/parsers/rst/directives/tables.py:
1449 - Added "list-table" directive.
1450 - Caught empty CSV table bug.
1451 - Added support for the ``file_insertion_enabled`` setting in the
1452 "csv-table" directive.
1453 - Added ``stub-columns`` option to "csv-table" and "list-table"
1456 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1457 mappings by Martijn Pieters.
1459 * docutils/readers/standalone.py:
1461 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1462 options to activate or deactivate the SectSubTitle transform.
1464 * docutils/transforms/frontmatter.py:
1466 - Added SectSubTitle transform to promote titles of lone
1467 subsections to subtitles.
1469 * docutils/transforms/references.py:
1471 - Fixed mislocated internal targets bug, by propagating internal
1472 targets to the next node, making use of the newly added support
1473 for multiple names and IDs.
1474 - Fixed duplicate footnote label bug.
1475 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1478 * docutils/writers/html4css1.py:
1480 - Fixed unencoded stylesheet reference bug (characters like "&" in
1481 stylesheet references).
1482 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1484 - Added support for multiple IDs per node by creating empty ``span``
1486 - Added the ``field_name_limit`` & ``option_limit`` settings &
1488 - Added support for table stub columns.
1489 - Added support for the ``align`` attribute on ``figure`` elements.
1490 - Added the ``cloak_email_addresses`` setting & support.
1491 - Added ``html_prolog``, ``html_head``, ``html_body``,
1492 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1493 ``docutils.core.publish_parts``.
1494 - Added support for section subtitles.
1496 * docutils/writers/latex2e.py:
1498 - Fixed tables starting with more than one multirow cell.
1499 - Improved --use-latex-docinfo so that organization/contact/address
1500 fields are lumped with the last author field and appear on the
1502 - Made sure the titlepage is always shown with --use-latex-docinfo,
1503 even if the document has no title.
1504 - Made sure that latex doesn't fill in today's date if no date field
1506 - Added support for section subtitles.
1508 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1509 (under development).
1511 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1513 * docs/api/publisher.txt:
1515 - Added "``publish_parts`` Details" section.
1517 * docutils/dev/repository.txt: Added to project; information about the
1518 Docutils Subversion repository.
1520 * docs/ref/docutils.dtd:
1522 - Added a ``stub`` attribute to the ``colspec`` element via the
1523 ``tbl.colspec.att`` parameter entity.
1524 - Allowed topic elements within sidebars
1525 - Added an ``align`` attribute to the ``figure`` element.
1527 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1531 Release 0.3.7 (2004-12-24)
1532 ==========================
1534 * docutils/frontend.py:
1536 - Added options: --input-encoding-error-handler,
1537 --record-dependencies, --leave-footnote-reference-space,
1539 - Added command-line and config file support for "overrides" setting
1544 - Added support for input encoding error handler.
1546 * docutils/nodes.py:
1548 - Added dispatch_visit and dispatch_departure methods to
1549 NodeVisitor; useful as a hook for Visitors.
1550 - Changed structure of ``line_block``; added ``line``.
1551 - Added ``compound`` node class.
1552 - Added a mechanism for Visitors to transitionally ignore new node
1555 * docutils/utils.py:
1557 - Moved ``escape2null`` and ``unescape`` functions from
1558 docutils/parsers/rst/states.py.
1560 * docutils/parsers/rst/roles.py:
1563 - Changed role function API: the "text" parameter now takes
1564 null-escaped interpreted text content.
1566 * docutils/parsers/rst/states.py:
1568 - Fixed bug where a "role" directive in a nested parse would crash
1569 the parser; the state machine's "language" attribute was not being
1571 - Added support for line block syntax.
1572 - Fixed directive parsing bug: argument-less directives didn't
1573 notice that arguments were present.
1574 - Removed error checking for transitions.
1575 - Added support for multiple classifiers in definition list items.
1576 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1577 - Changed role function API: the "text" parameter now takes
1578 null-escaped interpreted text content.
1579 - Empty sections and documents are allowed now.
1581 * docutils/parsers/rst/directives/__init__.py:
1583 - Added ``encoding`` directive option conversion function.
1584 - Allow multiple class names in class_option conversion function.
1586 * docutils/parsers/rst/directives/body.py:
1588 - Converted the line-block directive to use the new structure.
1589 - Extracted the old line-block functionality to the ``block``
1590 function (still used).
1591 - Added ``compound`` directive (thanks to Lea Wiemann).
1593 * docutils/parsers/rst/directives/misc.py:
1595 - Added "encoding" option to "include" and "raw" directives.
1596 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1597 - Allow multiple class names in the "class" directive.
1599 * docutils/parsers/rst/directives/parts.py:
1601 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1602 options. Thanks to Lele Gaifax.
1604 * docutils/parsers/rst/directives/tables.py:
1606 - Added "encoding" directive to "csv-table" directive.
1607 - Added workaround for lack of Unicode support in csv.py, for
1608 non-ASCII CSV input.
1610 * docutils/transforms/misc.py:
1612 - Fixed bug when multiple "class" directives are applied to a single
1614 - Enabled multiple format names for "raw" directive.
1616 * docutils/transforms/references.py:
1618 - Added support for trimming whitespace from beside substitution
1621 * docutils/transforms/universal.py:
1623 - FinalChecks now checks for illegal transitions and moves
1624 transitions between sections.
1626 * docutils/writers/html4css1.py:
1628 - HTMLTranslator.encode now converts U+00A0 to " ".
1629 - "stylesheet" and "stylesheet_path" settings are now mutually
1631 - Added support for the new line_block/line structure.
1632 - --footnote-references now overrides
1633 --trim-footnote-reference-space, if applicable.
1634 - Added support for ``compound`` elements.
1635 - Enabled multiple format names for "raw" directive.
1636 - ``<p>`` tags of a paragraph which is the only visible child of the
1637 document node are no longer stripped.
1638 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1639 new method ``should_be_compact_paragraph()``.
1640 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1642 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1643 the output if they have their ``class`` attribute set.
1644 - The whole document is now surrounded by a ``<div
1645 class="document">`` element.
1646 - Body-level images are now wrapped by their own ``<div>`` elements,
1647 with image classes copied to the wrapper, and for images which
1648 have the ``:align:`` option set, the surrounding ``<div>`` now
1649 receives a class attribute (like ``class="align-left"``).
1651 * docutils/writers/latex2e.py:
1653 - no newline after depart_term.
1654 - Added translations for some Unicode quotes.
1655 - Added option "font-encoding", made package AE the default.
1656 - "stylesheet" and "stylesheet_path" settings are now mutually
1658 - --footnote-references now overrides
1659 --trim-footnote-reference-space, if applicable.
1660 - The footnote label style now matches the footnote reference style
1661 ("brackets" or "superscript").
1662 - Added support for ``compound`` elements.
1663 - Enabled multiple format names for "raw" directive.
1665 * docs/ref/docutils.dtd:
1667 - Changed structure of the ``line_block`` element; added ``line``.
1668 - Added ``compound`` element.
1669 - Added "ltrim" and "rtrim" attributes to
1670 ``substitution_definition`` element.
1671 - Enabled multiple format names for ``raw`` element.
1672 - Enabled multiple classifiers in ``definition_list_item`` elements.
1674 * docs/ref/rst/directives.txt
1676 - Marked "line-block" as deprecated.
1677 - "Class" directive now allows multiple class names.
1678 - Added "Rationale for Class Attribute Value Conversion".
1679 - Added warning about "raw" overuse/abuse.
1681 * docs/ref/rst/restructuredtext.txt:
1683 - Added syntax for line blocks.
1684 - Definition list items may have multiple classifiers.
1686 * docs/ref/rst/roles.txt:
1690 * tools/stylesheets/default.css:
1692 - Added support for the new line_block structure.
1693 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1696 Release 0.3.5 (2004-07-29)
1697 ==========================
1701 * _`Documentation cleanup/reorganization`.
1703 - Created new subdirectories of docs/:
1705 * ``docs/user/``: introductory/tutorial material for end-users
1706 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1707 * ``docs/api/``: API reference material for client-developers
1708 * ``docs/ref/``: reference material for all groups
1709 * ``docs/howto/``: for component-developers and core-developers
1710 * ``docs/peps/``: Python Enhancement Proposals
1712 - Moved ``docs/*`` to ``docs/user/``.
1713 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1714 ``spec/`` to ``docs/dev``.
1715 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1716 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1717 - Moved ``alternatives.txt``, and ``problems.txt`` from
1718 ``spec/rst/`` to ``docs/dev/rst/``.
1719 - Moved ``reStructuredText.txt``, ``directives.txt``,
1720 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1721 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1722 ``roles.txt``, ``reStructuredText.txt`` to
1723 ``restructuredtext.txt``.
1724 - Moved ``spec/howto/`` to ``docs/howto``.
1726 In order to keep the CVS history of moved files, we supplied
1727 SourceForge with a `script for modifying the Docutils CVS
1730 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1732 After running the cleanup script:
1734 - Added ``docs/index.txt``.
1735 - Added a ``.htaccess`` file to the ``web`` module, containing
1736 redirects for all old paths to new paths. They'll preserve
1737 fragments (the "#name" part of a URL), and won't clutter up the
1738 file system, and will correct the URL in the user's browser.
1739 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1740 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1741 the "To Do" list itself in ``docs/dev/todo.txt``.
1742 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1743 section of ``docs/dev/todo.txt``.
1744 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1745 - Added "How To Report Bugs" to ``BUGS.txt``.
1746 - Went through all the sources and docs (including under web/) and
1747 updated links. Mostly done by Lea Wiemann; thanks Lea!
1748 (Still need to update links in the sandboxes.)
1752 * BUGS.txt: Added to project.
1754 * THANKS.txt: Added to project.
1756 * docutils/__init__.py:
1758 - 0.3.4: Post-release.
1762 - Added special error handling & advice for UnicodeEncodeError.
1763 - Refactored Publisher.publish (simplified exception handling &
1764 extracted debug dumps).
1765 - Renamed "enable_exit" parameter of convenience functions to
1766 "enable_exit_status".
1767 - Enabled traceback (exception propagation) by default in
1768 programmatic convenience functions.
1769 - Now publish_file and publish_cmdline convenience functions return
1770 the encoded string results in addition to their regular I/O.
1771 - Extracted common code from publish_file, publish_string, and
1772 publish_parts, into new publish_programmatically. Extracted
1773 settings code to ``Publisher.process_programmatic_settings``.
1774 - In Publisher.publish, disabled ``settings_overrides`` when
1775 ``settings`` is supplied; redundant.
1777 * docutils/frontend.py:
1779 - Added help text for "--output-encoding-error-handler" and
1780 "--error-encoding-error-handler".
1781 - Renamed "--exit" to "--exit-status".
1782 - Simplified default-setting code.
1784 * docutils/parsers/rst/__init__.py:
1786 - Added "--pep-base-url" and "--rfc-base-url" options.
1788 * docutils/parsers/rst/states.py:
1790 - Made URI recognition more aggressive and intelligent.
1792 * docutils/parsers/rst/directives/__init__.py:
1794 - Added several directive option conversion functions.
1796 * docutils/parsers/rst/directives/body.py:
1798 - Moved "table" directive to tables.py.
1800 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1803 * docutils/writers/latex2e.py:
1805 - Added "--table-style=(standard|booktabs|nolines)"
1806 - figures get "here" option (LaTeX per default puts them at bottom),
1807 and figure content is centered.
1808 - Rowspan support for tables.
1809 - Fix: admonition titles before first section.
1810 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1811 - Replave ``_`` in literal by an underlined blank, because it has the correct
1813 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1814 - A few unicode replacements, if output_encoding != utf
1815 - Add "--graphicx-option".
1816 - Indent literal-blocks.
1817 - Fix: omit ``\maketitle`` when there is no document title.
1819 * docs/index.txt: "Docutils Project Documentation Overview", added to
1822 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1823 Tool", added to project.
1825 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1827 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1829 * docs/dev/policies.txt: Added to project (extracted from
1830 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1832 * docs/dev/release.txt: Added to project (extracted from
1833 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1835 * docs/dev/testing.txt: Added to project.
1837 * docs/dev/website.txt: Added to project (extracted from
1838 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1840 * docs/ref/rst/directives.txt:
1842 - Added directives: "table", "csv-table".
1844 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1845 added to project. 1 page for syntax, and a 1 page reference for
1846 directives and roles. Source text to be used as-is; not meant to be
1849 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1850 with a change of title.
1852 * test/functional/, contents, and test/test_functional.py: Added to
1855 * tools/buildhtml.py: Fixed bug with config file handling.
1857 * tools/html.py: Removed from project (duplicate of rst2html.py).
1859 * tools/pep2html.py: Removed from project (duplicate of Python's
1860 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1861 Docutils-related PEPs in docs/peps/).
1863 * tools/rst2pseudoxml.py: Renamed from publish.py.
1865 * tools/rst2xml.py: Renamed from docutils-xml.py.
1867 * tools/test.txt: Removed from project; moved to
1868 docs/user/rst/demo.txt.
1870 * setup.py: Now also installs ``rst2latex.py``.
1873 Release 0.3.3 (2004-05-09)
1874 ==========================
1876 * docutils/__init__.py:
1878 - 0.3.1: Reorganized config file format (multiple sections); see
1880 - Added unknown_reference_resolvers attribute to TransformSpec.
1881 - 0.3.2: Interpreted text reorganization.
1886 - Catch system messages to stop tracebacks from parsing errors.
1887 - Catch exceptions during processing report & exit without
1888 tracebacks, except when "--traceback" used.
1889 - Reordered components for OptionParser; application comes last.
1890 - Added "config_section" parameter to several methods and functions,
1891 allowing front ends to easily specify their config file sections.
1892 - Added publish_parts convenience function to allow access to individual
1893 parts of a document.
1895 * docutils/examples.py: Added to project; practical examples of
1896 Docutils client code, to be used as-is or as models for variations.
1898 * docutils/frontend.py:
1900 - Added "--traceback" & "--no-traceback" options ("traceback"
1902 - Implemented support for config file reorganization:
1903 ``standard_config_files`` moved from ``ConfigParser`` to
1904 ``OptionParser``; added
1905 ``OptionParser.get_config_file_settings()`` and
1906 ``.get_standard_config_settings()``; support for old "[options]"
1907 section (with deprecation warning) and mapping from old to new
1909 - Reimplemented setting validation.
1910 - Enabled flexible boolean values: yes/no, true/false, on/off.
1911 - Added ``Values``, a subclass of ``optparse.Values``, with support
1912 for list setting attributes.
1913 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1914 thanks to Beni Cherniavsky.
1915 - Added "--no-section-numbering" option.
1919 - Catch IOErrors when opening source & destination files, report &
1920 exit without tracebacks. Added ``handle_io_errors`` parameter to
1921 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1923 * docutils/nodes.py:
1925 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1926 method definitions (via ``exec``) to dynamic assignments (via
1927 ``setattr``); thanks to Roman Suzi.
1928 - Encapsulated visitor dynamic assignments in a function; thanks to
1930 - Added indirect_reference_name attribute to the Targetable
1931 class. This attribute holds the whitespace_normalized_name
1932 (contains mixed case) of a target.
1934 * docutils/statemachine.py:
1936 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1937 - Added ``StringList.get_2D_block``.
1939 * docutils/utils.py:
1941 - Added "level" attribute to SystemMessage exceptions.
1943 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1946 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1949 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1950 Marcelo Huerta San Martin.
1952 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1953 mappings by Lalo Martins.
1955 * docutils/languages/ru.py: Added to project; Russian mappings by
1958 * docutils/parsers/rst/roles.py: Added to project. Contains
1959 interpreted text role functions, a registry for interpreted text
1960 roles, and an API for adding to and retrieving from the registry.
1961 Contributed by Edward Loper.
1963 * docutils/parsers/rst/states.py:
1965 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1966 - Allowed true em-dash character and "---" as block quote
1968 - Added support for <angle-bracketed> complex option arguments
1970 - Fixed handling of backslashes in substitution definitions.
1971 - Fixed off-by-1 error with extra whitespace after substitution
1972 definition directive.
1973 - Added inline markup parsing to field lists' field names.
1974 - Added support for quoted (and unindented) literal blocks.
1975 Driven in part by a bribe from Frank Siebenlist (thanks!).
1976 - Parser now handles escapes in URIs correctly.
1977 - Made embedded-URIs' reference text omittable. Idea from Beni
1979 - Refactored explicit target processing code.
1980 - Added name attribute to references containing the reference name only
1981 through whitespace_normalize_name (no case changes).
1982 - parse_target no longer returns the refname after going through
1983 normalize_name. This is now handled in make_target.
1984 - Fixed bug relating to role-less interpreted text in non-English
1986 - Reorganized interpreted text processing; moved code into the new
1987 roles.py module. Contributed by Edward Loper.
1988 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1989 ``parse_directive_block``.
1991 * docutils/parsers/rst/tableparser.py:
1993 - Reworked for ``StringList``, to support "include" directives in
1996 * docutils/parsers/rst/directives/__init__.py:
1998 - Renamed ``unchanged()`` directive option conversion function to
1999 ``unchanged_required``, and added a new ``unchanged``.
2000 - Catch unicode value too high error; fixes bug 781766.
2001 - Beefed up directive error reporting.
2003 * docutils/parsers/rst/directives/body.py:
2005 - Added basic "table" directive.
2007 * docutils/parsers/rst/directives/images.py:
2009 - Added "target" option to "image" directive.
2010 - Added name attribute to references containing the reference name only
2011 through whitespace_normalize_name (no case changes).
2013 * docutils/parsers/rst/directives/misc.py:
2015 - Isolated the import of the ``urllib2`` module; was causing
2016 problems on SourceForge (``libssl.so.2`` unavailable?).
2017 - Added the "role" directive for declaring custom interpreted text
2020 * docutils/parsers/rst/directives/parts.py:
2022 - The "contents" directive does more work up-front, creating the
2023 "topic" and "title", and leaving the "pending" node for the
2024 transform. Allows earlier reference resolution; fixes subtle bug.
2026 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
2027 mappings by Jannie Hofmeyr.
2029 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
2030 mappings by Marek Blaha.
2032 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
2033 mappings by Marcelo Huerta San Martin.
2035 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
2036 Portuguese mappings by Lalo Martins.
2038 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
2039 mappings by Roman Suzi.
2041 * docutils/transforms/parts.py:
2043 - The "contents" directive does more work up-front, creating the
2044 "topic" and "title", and leaving the "pending" node for the
2045 transform. Allows earlier reference resolution; fixes subtle bug.
2046 - Added support for disabling of section numbering.
2048 * docutils/transforms/references.py:
2050 - Verifying that external targets are truly targets and not indirect
2051 references. This is because we are now adding a "name" attribute to
2052 references in addition to targets. Note sure if this is correct!
2053 - Added code to hook into the unknown_reference_resolvers list for a
2054 transformer in resolve_indirect_target. This allows the
2055 unknown_reference_resolvers to keep around indirect targets which
2056 docutils doesn't know about.
2057 - Added specific error message for duplicate targets.
2059 * docutils/transforms/universal.py:
2061 - Added FilterMessages transform (removes system messages below the
2062 verbosity threshold).
2063 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
2064 to FinalCheckVisitor for application-specific handling of
2065 unresolvable references.
2066 - Added specific error message for duplicate targets.
2068 * docutils/writers/__init__.py:
2070 - Added assemble_parts method to the Writer class to allow for
2071 access to a documents individual parts.
2072 - Documented & set default for ``Writer.output`` attribute.
2074 * docutils/writers/html4css1.py:
2076 - Fixed unicode handling of attribute values (bug 760673).
2077 - Prevent duplication of "class" attribute values (bug report from
2079 - Improved table grid/border handling (prompted by report from Bob
2081 - Added support for table titles.
2082 - Added "<title />" for untitled docs, for XHTML conformance; thanks
2084 - Added functionality to keep track of individual parts of a document
2085 and store them in a dictionary as the "parts" attribute of the writer.
2086 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
2087 - Added proper support for the "scale" attribute of the "image"
2088 element. Contributed by Brent Cook.
2089 - Added ``--initial-header-level`` option.
2090 - Fixed bug: the body_pre_docinfo segment depended on there being a
2091 docinfo; if no docinfo, the document title was incorporated into
2092 the body segment. Adversely affected the publish_parts interface.
2094 * docutils/writers/latex2e.py:
2096 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
2097 about a missing file.
2098 - Added options and support: ``--compound-enumerators``,
2099 ``--section-prefix-for-enumerators``, and
2100 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
2102 - Added option ``--use-verbatim-when-possible``, to avoid
2103 problematic characters (eg, '~' in italian) in literal blocks.
2104 - It's now possible to use four section levels in the `book` and
2105 `report` LaTeX classes. The default `article` class still has
2108 * docs/config.txt: "Docutils Configuration Files", added to project.
2109 Moved config file entry descriptions from tools.txt.
2113 - Moved config file entry descriptions to config.txt.
2115 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
2118 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
2119 Text Roles", added to project.
2121 * spec/rst/reStructuredText.txt:
2123 - Added description of support for <angle-bracketed> complex option
2124 arguments to option lists.
2125 - Added subsections for indented and quoted literal blocks.
2127 * test: Continually adding & updating tests.
2129 - Added test/test_settings.py & test/data/config_*.txt support
2131 - Added test/test_writers/test_htmlfragment.py.
2133 * test/DocutilsTestSupport.py:
2135 - Refactored LaTeX publisher test suite/case class names to make
2136 testing other writers easier.
2137 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
2138 to test the processing of HTML fragments which use the new
2139 publish_parts convenience function.
2141 * tools/buildhtml.py:
2143 - Added support for the "--prune" option.
2144 - Removed dependency on pep2html.py; plaintext PEPs no longer
2147 * tools/docutils.conf:
2149 - Updated for configuration file reorganization.
2151 * tools/rst2html.py:
2153 - copied from tools/html.py
2157 - added a 'scripts' section to configuration
2158 - added 'tools/rst2html.py' to the scripts section
2161 Release 0.3 (2003-06-24)
2162 ========================
2166 * Renamed "attribute" to "option" for directives/extensions.
2168 * Renamed transform method "transform" to "apply".
2170 * Renamed "options" to "settings" for runtime settings (as set by
2171 command-line options). Sometimes "option" (singular) became
2172 "settings" (plural). Some variations below:
2174 - document.options -> document.settings (stored in other objects as
2176 - option_spec -> settings_spec (not directives though)
2177 - OptionSpec -> SettingsSpec
2178 - cmdline_options -> settings_spec
2179 - relative_path_options -> relative_path_settings
2180 - option_default_overrides -> settings_default_overrides
2181 - Publisher.set_options -> Publisher.get_settings
2185 * COPYING.txt: Added "Public Domain Dedication".
2187 * FAQ.txt: Frequently asked questions, added to project.
2191 - Updated with PyPI Trove classifiers.
2192 - Conditional installation of third-party modules.
2194 * docutils/__init__.py:
2196 - Bumped version to 0.2.1 to reflect changes to I/O classes.
2197 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
2198 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
2199 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
2200 option and its effect on the PEP template & writer.
2201 - Bumped version to 0.2.4 due to changes to the PEP template &
2203 - Bumped version to 0.2.5 to reflect changes to Reporter output.
2204 - Added ``TransformSpec`` class for new transform system.
2205 - Bumped version to 0.2.6 for API changes (renaming).
2206 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
2207 convenience functions.
2208 - Added ``Component.component_type`` attribute.
2209 - Bumped version to 0.2.8 because of the internal parser switch from
2210 plain lists to the docutils.statemachine.StringList objects.
2211 - Bumped version to 0.2.9 because of the frontend.py API changes.
2212 - Bumped version to 0.2.10 due to changes to the project layout
2213 (third-party modules removed from the "docutils" package), and
2214 signature changes in ``io.Input``/``io.Output``.
2215 - Changed version to 0.3.0 for release.
2219 - Made ``publish()`` a bit more convenient.
2220 - Generalized ``Publisher.set_io``.
2221 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
2222 parameters; improved its docstring.
2223 - Added ``publish_file()`` and ``publish_string()``.
2224 - Factored ``Publisher.set_source()`` and ``.set_destination()``
2226 - Added support for "--dump-pseudo-xml", "--dump-settings", and
2227 "--dump-transforms" hidden options.
2228 - Added ``Publisher.apply_transforms()`` method.
2229 - Added ``Publisher.set_components()`` method; support for
2230 ``publish_*()`` conveninece functions.
2231 - Moved config file processing to docutils/frontend.py.
2232 - Added support for exit status ("exit_level" setting &
2233 ``enable_exit`` parameter for Publisher.publish() and convenience
2236 * docutils/frontend.py:
2238 - Check for & exit on identical source & destination paths.
2239 - Fixed bug with absolute paths & "--config".
2240 - Set non-command-line defaults in ``OptionParser.__init__()``:
2241 ``_source`` & ``_destination``.
2242 - Distributed ``relative_path_settings`` to components; updated
2243 ``OptionParser.populate_from_components()`` to combine it all.
2244 - Require list of keys in ``make_paths_absolute`` (was implicit in
2245 global ``relative_path_settings``).
2246 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
2247 "--dump-settings", and "--dump-transforms" hidden options.
2248 - Removed nasty internals-fiddling ``ConfigParser.get_section``
2249 code, replaced with correct code.
2250 - Added validation functionality for config files.
2251 - Added "--error-encoding" option/setting, "_disable_config"
2253 - Added encoding validation; updated "--input-encoding" and
2254 "--output-encoding"; added "--error-encoding-error-handler" and
2255 "--output-encoding-error-handler".
2256 - Moved config file processing from docutils/core.py.
2257 - Updated ``OptionParser.populate_from_components`` to handle new
2258 ``SettingsSpec.settings_defaults`` dict.
2259 - Added support for "-" => stdin/stdout.
2260 - Added "exit_level" setting ("--exit" option).
2264 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
2265 - Added automatic closing to ``FileInput`` and ``FileOutput``.
2266 - Delayed opening of ``FileOutput`` file until ``write()`` called.
2267 - ``FileOutput.write()`` now returns the encoded output string.
2268 - Try to get path/stream name automatically in ``FileInput`` &
2270 - Added defaults for source & destination paths.
2271 - Allow for Unicode I/O with an explicit "unicode" encoding.
2272 - Added ``Output.encode()``.
2273 - Removed dependency on runtime settings; pass encoding directly.
2274 - Recognize Unicode strings in ``Input.decode()``.
2275 - Added support for output encoding error handlers.
2277 * docutils/nodes.py:
2279 - Added "Invisible" element category class.
2280 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2281 modification during a traversal.
2282 - Added element classes: ``line_block``, ``generated``, ``address``,
2283 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2284 ``superscript``, ``subscript``, ``inline``
2285 - Added support for lists of nodes to ``Element.insert()``.
2286 - Fixed parent linking in ``Element.replace()``.
2287 - Added new abstract superclass ``FixedTextElement``; adds
2288 "xml:space" attribute.
2289 - Added support for "line" attribute of ``system_message`` nodes.
2290 - Added support for the observer pattern from ``utils.Reporter``.
2291 Added ``parse_messages`` and ``transform_messages`` attributes to
2292 ``document``, removed ``messages``. Added ``note_parse_message``
2293 and ``note_transform_message`` methods.
2294 - Added support for improved diagnostics:
2296 - Added "document", "source", and "line" internal attributes to
2297 ``Node``, set by ``Node.setup_child()``.
2298 - Converted variations on ``node.parent = self`` to
2299 ``self.setup_child(node)``.
2300 - Added ``document.current_source`` & ``.current_line``
2301 attributes, and ``.note_source`` observer method.
2302 - Changed "system_message" output to GNU-Tools format.
2304 - Added a "rawsource" attribute to the ``Text`` class, for text
2305 before backslash-escape resolution.
2306 - Support for new transform system.
2307 - Reworked ``pending`` element.
2308 - Fixed XML DOM bug (SF #660611).
2309 - Removed the ``interpeted`` element class and added
2310 ``title_reference``, ``abbreviation``, ``acronym``.
2311 - Made substitutions case-sensitive-but-forgiving; moved some code
2313 - Fixed Unicode bug on element attributes (report: William Dode).
2315 * docutils/optik.py: Removed from project; replaced with
2316 extras/optparse.py and extras/textwrap.py. These will be installed
2317 only if they're not already present in the Python installation.
2319 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2320 only if it's not already present in the Python installation.
2322 * docutils/statemachine.py:
2324 - Factored out ``State.add_initial_transitions()`` so it can be
2326 - Converted whitespace-specific "blank" and "indent" transitions
2327 from special-case code to ordinary transitions: removed
2328 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2329 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2330 ``ws_initial_transitions`` attributes.
2331 - Removed ``State.match_transition()`` after merging it into
2333 - Added ``StateCorrection`` exception.
2334 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2335 (moved ``TransitionCorrection`` support there too.)
2336 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2337 ``EOFError`` instead of ``IndexError``.
2338 - Added ``State.no_match`` method.
2339 - Added support for the Observer pattern, triggered by input line
2341 - Added ``strip_top`` parameter to
2342 ``StateMachineWS.get_first_known_indented``.
2343 - Made ``context`` a parameter to ``StateMachine.run()``.
2344 - Added ``ViewList`` & ``StringList`` classes;
2345 ``extract_indented()`` becomes ``StringList.get_indented()``.
2346 - Added ``StateMachine.insert_input()``.
2347 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2348 thanks to) Fred Drake.
2350 * docutils/utils.py:
2352 - Added a ``source`` attribute to Reporter instances and
2353 ``system_message`` elements.
2354 - Added an observer pattern to ``utils.Reporter`` to keep track of
2356 - Fixed bugs in ``relative_path()``.
2357 - Added support for improved diagnostics.
2358 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2359 - Added support for encoding Reporter stderr output, and encoding
2361 - Reporter keeps track of the highest level system message yet
2364 * docutils/languages: Fixed bibliographic field language lookups.
2366 * docutils/languages/es.py: Added to project; Spanish mappings by
2367 Marcelo Huerta San Martin.
2369 * docutils/languages/fr.py: Added to project; French mappings by
2372 * docutils/languages/it.py: Added to project; Italian mappings by
2375 * docutils/languages/sk.py: Added to project; Slovak mappings by
2378 * docutils/parser/__init__.py:
2380 - Added ``Parser.finish_parse()`` method.
2382 * docutils/parser/rst/__init__.py:
2384 - Added options: "--pep-references", "--rfc-references",
2385 "--tab-width", "--trim-footnote-reference-space".
2387 * docutils/parsers/rst/states.py:
2389 - Changed "title under/overline too short" system messages from INFO
2390 to WARNING, and fixed its insertion location.
2391 - Fixed enumerated list item parsing to allow paragraphs & section
2392 titles to begin with enumerators.
2393 - Converted system messages to use the new "line" attribute.
2394 - Fixed a substitution reference edge case.
2395 - Added support for "--pep-references" and "--rfc-references"
2396 options; reworked ``Inliner`` code to make customization easier.
2397 - Removed field argument parsing.
2398 - Added support for short section title over/underlines.
2399 - Fixed "simple reference name" regexp to ignore text like
2400 "object.__method__"; not an anonymous reference.
2401 - Added support for improved diagnostics.
2402 - Reworked directive API, based on Dethe Elza's contribution. Added
2403 ``Body.parse_directive()``, ``.parse_directive_options()``,
2404 ``.parse_directive_arguments()`` methods.
2405 - Added ``ExtensionOptions`` class, to parse directive options
2406 without parsing field bodies. Factored
2407 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2408 ``ExtensionOptions``.
2409 - Improved definition list term/classifier parsing.
2410 - Added warnings for unknown directives.
2411 - Renamed ``Stuff`` to ``Struct``.
2412 - Now flagged as errors: transitions at the beginning or end of
2413 sections, empty sections (except title), and empty documents.
2414 - Updated for ``statemachine.StringList``.
2415 - Enabled recognition of schemeless email addresses in targets.
2416 - Added support for embedded URIs in hyperlink references.
2417 - Added backslash-escapes to inline markup end-string suffix.
2418 - Added support for correct interpreted text processing.
2419 - Fixed nested title parsing (topic, sidebar directives).
2420 - Added special processing of backslash-escaped whitespace (idea
2421 from David Abrahams).
2422 - Made substitutions case-sensitive-but-forgiving; moved some code
2423 to ``docutils.nodes``.
2424 - Added support for block quote attributions.
2425 - Added a kludge to work-around a conflict between the bubble-up
2426 parser strategy and short titles (<= 3 char-long over- &
2427 underlines). Fixes SF bug #738803 "infinite loop with multiple
2428 titles" submitted by Jason Diamond.
2429 - Added explicit interpreted text roles for standard inline markup:
2430 "emphasis", "strong", "literal".
2431 - Implemented "superscript" and "subscript" interpreted text roles.
2432 - Added initial support for "abbreviation" and "acronym" roles;
2434 - Added support for "--trim-footnote-reference-space" option.
2435 - Optional space before colons in directives & hyperlink targets.
2437 * docutils/parsers/rst/tableparser.py:
2439 - Fixed a bug that was producing unwanted empty rows in "simple"
2441 - Detect bad column spans in "simple" tables.
2443 * docutils/parsers/rst/directives: Updated all directive functions to
2446 * docutils/parsers/rst/directives/__init__.py:
2448 - Added ``flag()``, ``unchanged()``, ``path()``,
2449 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2450 directive option helper functions.
2451 - Added warnings for unknown directives.
2452 - Return ``None`` for missing directives.
2453 - Added ``register_directive()``, thanks to William Dode and Paul
2456 * docutils/parsers/rst/directives/admonitions.py:
2458 - Added "admonition" directive.
2460 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2461 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2462 "parsed-literal", "rubric", "epigraph", "highlights" and
2463 "pull-quote" directives.
2465 * docutils/parsers/rst/directives/images.py:
2467 - Added an "align" attribute to the "image" & "figure" directives
2468 (by Adam Chodorowski).
2469 - Added "class" option to "image", and "figclass" to "figure".
2471 * docutils/parsers/rst/directives/misc.py:
2473 - Added "include", "raw", and "replace" directives, courtesy of
2475 - Added "unicode" and "class" directives.
2477 * docutils/parsers/rst/directives/parts.py:
2479 - Added the "sectnum" directive; by Dmitry Jemerov.
2480 - Added "class" option to "contents" directive.
2482 * docutils/parsers/rst/directives/references.py: Added to project.
2483 Contains the "target-notes" directive.
2485 * docutils/parsers/rst/languages/__init__.py:
2487 - Return ``None`` from get_language() for missing language modules.
2489 * docutils/parsers/rst/languages/de.py: Added to project; German
2490 mappings by Engelbert Gruber.
2492 * docutils/parsers/rst/languages/en.py:
2494 - Added interpreted text roles mapping.
2496 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2497 mappings by Marcelo Huerta San Martin.
2499 * docutils/parsers/rst/languages/fr.py: Added to project; French
2500 mappings by William Dode.
2502 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2503 mappings by Nicola Larosa.
2505 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2506 mappings by Miroslav Vasko.
2508 * docutils/readers/__init__.py:
2510 - Added support for the observer pattern from ``utils.Reporter``, in
2511 ``Reader.parse`` and ``Reader.transform``.
2512 - Removed ``Reader.transform()`` method.
2513 - Added default parameter values to ``Reader.__init__()`` to make
2514 instantiation easier.
2515 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2517 * docutils/readers/pep.py:
2519 - Added the ``peps.TargetNotes`` transform to the Reader.
2520 - Removed PEP & RFC reference detection code; moved to
2521 parsers/rst/states.py as options (enabled here by default).
2522 - Added support for pre-acceptance PEPs (no PEP number yet).
2523 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2526 * docutils/readers/python: Python Source Reader subpackage added to
2527 project, including preliminary versions of:
2530 - moduleparser.py: Parser for Python modules.
2532 * docutils/transforms/__init__.py:
2534 - Added ``Transformer`` class and completed transform reform.
2535 - Added unknown_reference_resolvers list for each transformer. This list holds
2536 the list of functions provided by each component of the transformer that
2537 help resolve references.
2539 * docutils/transforms/frontmatter.py:
2541 - Improved support for generic fields.
2542 - Fixed bibliographic field language lookups.
2544 * docutils/transforms/misc.py: Added to project. Miscellaneous
2547 * docutils/transforms/parts.py:
2549 - Moved the "id" attribute from TOC list items to the references
2550 (``Contents.build_contents()``).
2551 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2552 - Added "class" attribute support to ``Contents``.
2554 * docutils/transforms/peps.py:
2556 - Added ``mask_email()`` function, updating to pep2html.py's
2558 - Linked "Content-Type: text/x-rst" to PEP 12.
2559 - Added the ``TargetNotes`` PEP-specific transform.
2560 - Added ``TargetNotes.cleanup_callback``.
2561 - Added title check to ``Headers``.
2563 * docutils/transforms/references.py:
2565 - Added the ``TargetNotes`` generic transform.
2566 - Split ``Hyperlinks`` into multiple transforms.
2567 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2568 - Added check for circular indirect references.
2569 - Made substitutions case-sensitive-but-forgiving.
2571 * docutils/transforms/universal.py:
2573 - Added support for the "--expose-internal-attributes" option.
2574 - Removed ``Pending`` transform classes & data.
2576 * docutils/writers/__init__.py:
2578 - Removed ``Writer.transform()`` method.
2580 * docutils/writers/docutils-xml.py:
2582 - Added XML and doctype declarations.
2583 - Added "--no-doctype" and "--no-xml-declaration" options.
2585 * docutils/writers/html4css1.py:
2587 - "name" attributes only on these tags: a, applet, form, frame,
2589 - Added "name" attribute to <a> in section titles for Netscape 4
2590 support (bug report: Pearu Peterson).
2591 - Fixed targets (names) on footnote, citation, topic title,
2592 problematic, and system_message nodes (for Netscape 4).
2593 - Changed field names from "<td>" to "<th>".
2594 - Added "@" to "@" encoding to thwart address harvesters.
2595 - Improved the vertical whitespace optimization; ignore "invisible"
2596 nodes (targets, comments, etc.).
2597 - Improved inline literals with ``<span class="pre">`` around chunks
2598 of text and `` `` for runs of spaces.
2599 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2600 ``self.docinfo`` segments.
2601 - Added support for "line_block", "address" elements.
2602 - Improved backlinks (footnotes & system_messages).
2603 - Improved system_message output.
2604 - Redefined "--stylesheet" as containing an invariant URL, used
2605 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2607 - Added "--footnote-references" option (superscript or brackets).
2608 - Added "--compact-lists" and "--no-compact-lists" options.
2609 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2610 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2611 - Improved field list rendering.
2612 - Added Docutils version to "generator" meta tag.
2613 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2614 - Improved layout of <pre> HTML source.
2615 - Fixed attribute typo on <colspec>.
2616 - Refined XML prologue.
2617 - Support for no stylesheet.
2618 - Removed "interpreted" element support.
2619 - Added support for "title_reference", "sidebar", "attribution",
2620 "rubric", and generic "admonition" elements.
2621 - Added "--attribution" option.
2622 - Added support for "inline", "subscript", "superscript" elements.
2623 - Added initial support for "abbreviation" and "acronym";
2626 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2630 - Double quotes in literal blocks (special treatment for de/ngerman).
2631 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2632 - Added "--attribution" option.
2633 - Right align attributions.
2635 * docutils/writers/pep_html.py:
2637 - Parameterized output encoding in PEP template.
2638 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2639 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2640 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2642 - Added an override on the "--footnote-references" option.
2643 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2644 - Added Docutils version to "generator" meta tag.
2645 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2649 - Added a "silent" setting for ``buildhtml.py``.
2650 - Added a "Getting Help" section.
2651 - Rearranged the structure.
2652 - Kept up to date, with new settings, command-line options etc.
2653 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2654 - Converted settings table into a definition list.
2656 * docs/rst/quickstart.txt:
2658 - Added a table of contents.
2659 - Added feedback information.
2660 - Added mention of minimum section title underline lengths.
2661 - Removed the 4-character minimum for section title underlines.
2663 * docs/rst/quickref.html:
2665 - Added a "Getting Help" section.
2666 - Added a style to make section title backlinks more subtle.
2667 - Added mention of minimum section title underline lengths.
2668 - Removed the 4-character minimum for section title underlines.
2670 * extras: Directory added to project; contains third-party modules
2671 that Docutils depends on (optparse, textwrap, roman). These are
2672 only installed if they're not already present.
2674 * licenses: Directory added to project; contains copies of license
2675 files for non-public-domain files.
2679 - Changed the focus. It's about DTD elements: structural
2680 relationships, semantics, and external (public) attributes. Not
2681 about the element class library.
2682 - Moved some implementation-specific stuff into ``docutils.nodes``
2684 - Wrote descriptions of all common attributes and parameter
2685 entities. Filled in introductory material.
2686 - Working through the element descriptions: 55 down, 37 to go.
2687 - Removed "Representation of Horizontal Rules" to
2688 spec/rst/alternatives.txt.
2690 * spec/docutils.dtd:
2692 - Added "generated" inline element.
2693 - Added "line_block" body element.
2694 - Added "auto" attribute to "title".
2695 - Changed content models of "literal_block" and "doctest_block" to
2697 - Added ``%number;`` attribute type parameter entity.
2698 - Changed ``%structural.elements;`` to ``%section.elements``.
2699 - Updated attribute types; made more specific.
2700 - Added "address" bibliographic element.
2701 - Added "line" attribute to ``system_message`` element.
2702 - Removed "field_argument" element; "field_name" may contain
2703 multiple words and whitespace.
2704 - Changed public identifier to docutils.sf.net.
2705 - Removed "interpreted" element; added "title_reference",
2706 "abbreviation", "acronym".
2707 - Removed "refuri" attribute from "footnote_reference" and
2708 "citation_reference".
2709 - Added "sidebar", "rubric", "attribution", "admonition",
2710 "superscript", "subscript", and "inline" elements.
2712 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2714 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2716 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2718 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2721 * spec/transforms.txt: Added to project.
2723 * spec/howto: Added subdirectory, for developer how-to docs.
2725 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2726 Elza, edited & extended by David Goodger.
2728 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2731 * spec/rst/alternatives.txt:
2733 - Added "Doctree Representation of Transitions" from
2735 - Updated "Inline External Targets" & closed the debate.
2736 - Added ideas for interpreted text syntax extensions.
2737 - Added "Nested Inline Markup" section.
2739 * spec/rst/directives.txt:
2741 - Added directives: "topic", "sectnum", "target-notes",
2742 "line-block", "parsed-literal", "include", "replace", "sidebar",
2743 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2745 - Formalized descriptions of directive details.
2746 - Added an "align" attribute to the "image" & "figure" directives
2747 (by Adam Chodorowski).
2748 - Added "class" options to "topic", "sidebar", "line-block",
2749 "parsed-literal", "contents", and "image"; and "figclass" to
2752 * spec/rst/interpreted.txt: Added to project. Descriptions of
2753 interpreted text roles.
2755 * spec/rst/introduction.txt:
2757 - Added pointers to material for new users.
2759 * spec/rst/reStructuredText.txt:
2761 - Disambiguated comments (just add a newline after the "::").
2762 - Updated enumerated list description; added a discussion of the
2763 second-line validity checking.
2764 - Updated directive description.
2765 - Added a note redirecting newbies to the user docs.
2766 - Expanded description of inline markup start-strings in non-markup
2768 - Removed field arguments and made field lists a generic construct.
2769 - Removed the 4-character minimum for section title underlines.
2770 - Clarified term/classifier delimiter & inline markup ambiguity
2772 - Added "Embedded URIs".
2773 - Updated "Interpreted Text" section.
2774 - Added "Character-Level Inline Markup" section.
2776 * test: Continually adding & updating tests.
2778 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2779 - Moved test/test_pep/ to test/test_readers/test_pep/.
2780 - Added test/test_readers/test_python/.
2781 - Added test/test_writers/ (Engelbert Gruber).
2785 - Made the ``locale.setlocale()`` calls in front ends
2788 * tools/buildhtml.py:
2790 - Added "--silent" option.
2791 - Fixed bug with absolute paths & "--config".
2792 - Updated for new I/O classes.
2793 - Added some exception handling.
2794 - Separated publishers' setting defaults; prevents interference.
2795 - Updated for new ``publish_file()`` convenience function.
2797 * tools/pep-html-template:
2799 - Allow for "--embed-stylesheet".
2800 - Added Docutils version to "generator" meta tag.
2801 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2802 - Conform to XHTML spec.
2804 * tools/pep2html.py:
2806 - Made ``argv`` a parameter to ``main()``.
2807 - Added support for "Content-Type:" header & arbitrary PEP formats.
2808 - Linked "Content-Type: text/plain" to PEP 9.
2809 - Files skipped (due to an error) are not pushed onto the server.
2810 - Updated for new I/O classes.
2811 - Added ``check_requirements()`` & ``pep_type_error()``.
2812 - Added some exception handling.
2813 - Updated for new ``publish_string()`` convenience function.
2814 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2816 * tools/quicktest.py:
2818 - Added "-V"/"--version" option.
2820 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2822 * tools/unicode2rstsubs.py: Added to project. Produces character
2823 entity files (reSructuredText substitutions) from the MathML master
2826 * tools/editors: Support code for editors, added to project. Contains
2827 ``emacs/restructuredtext.el``.
2829 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2831 - Added style for chunks of inline literals.
2832 - Removed margin for first child of table cells.
2833 - Right-aligned field list names.
2834 - Support for auto-numbered section titles in TOCs.
2835 - Increased the size of inline literals (<tt>) in titles.
2836 - Restored the light gray background for inline literals.
2837 - Added support for "line_block" elements.
2838 - Added style for "address" elements.
2839 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2840 - Improved field list rendering.
2841 - Vertical whitespace improvements.
2842 - Removed "a.target" style.
2844 * tools/stylesheets/pep.css:
2846 - Fixed nested section margins.
2847 - Other changes parallel those of ``../default.css``.
2850 Release 0.2 (2002-07-31)
2851 ========================
2855 - The word "component" was being used ambiguously. From now on,
2856 "component" will be used to mean "Docutils component", as in Reader,
2857 Writer, Parser, or Transform. Portions of documents (Table of
2858 Contents, sections, etc.) will be called "document parts".
2859 - Did a grand renaming: a lot of ``verylongnames`` became
2860 ``very_long_names``.
2861 - Cleaned up imports: no more relative package imports or
2862 comma-separated lists of top-level modules.
2863 - Added support for an option values object which carries default
2864 settings and overrides (from command-line options and library use).
2865 - Added internal Unicode support, and support for both input and
2867 - Added support for the ``docutils.io.IO`` class & subclasses.
2871 * docutils/__init__.py:
2873 - Added ``ApplicationError`` and ``DataError``, for use throughout
2875 - Added ``Component`` base class for Docutils components; implements
2876 the ``supports`` method.
2877 - Added ``__version__`` (thus, ``docutils.__version__``).
2881 - Removed many keyword parameters to ``Publisher.__init__()`` and
2882 ``publish()``; bundled into an option values object. Added
2883 "argv", "usage", "description", and "option_spec" parameters for
2884 command-line support.
2885 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2887 - Reworked I/O model for ``docutils.io`` wrappers.
2888 - Updated ``Publisher.set_options()``; now returns option values
2890 - Added support for configuration files (/etc/docutils.conf,
2891 ./docutils.conf, ~/.docutils).
2892 - Added ``Publisher.setup_option_parser()``.
2893 - Added default usage message and description.
2895 * docutils/frontend.py: Added to project; support for front-end
2896 (command-line) scripts. Option specifications may be augmented by
2897 components. Requires Optik (http://optik.sf.net/) for option
2898 processing (installed locally as docutils/optik.py).
2900 * docutils/io.py: Added to project; uniform API for a variety of input
2903 * docutils/nodes.py:
2905 - Added ``TreeCopyVisitor`` class.
2906 - Added a ``copy`` method to ``Node`` and subclasses.
2907 - Added a ``SkipDeparture`` exception for visitors.
2908 - Renamed ``TreePruningException`` from ``VisitorException``.
2909 - Added docstrings to ``TreePruningException``, subclasses, and
2911 - Improved docstrings.
2912 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2913 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2915 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2916 ``PreDecorative`` mixin.
2917 - Reworked the name/id bookkeeping; to ``document``, removed
2918 ``explicit_targets`` and ``implicit_targets`` attributes, added
2919 ``nametypes`` attribute and ``set_name_id_map`` method.
2920 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2922 - Added ``document.has_name()`` method.
2923 - Fixed DOM generation for list-attributes.
2924 - Added category class ``Labeled`` (used by footnotes & citations).
2925 - Added ``Element.set_class()`` method (sets "class" attribute).
2927 * docutils/optik.py: Added to project. Combined from the Optik
2928 package, with added option groups and other modifications. The use
2929 of this module is probably only temporary.
2931 * docutils/statemachine.py:
2933 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2934 - Added underscores to improve many awkward names.
2935 - In ``string2lines()``, changed whitespace normalizing translation
2936 table to regexp; restores Python 2.0 compatibility with Unicode.
2938 * docutils/urischemes.py:
2940 - Filled in some descriptions.
2941 - Added "shttp" scheme.
2943 * docutils/utils.py:
2945 - Added ``clean_rcs_keywords`` function (moved from
2946 docutils/transforms/frontmatter.py
2947 ``DocInfo.filter_rcs_keywords``).
2948 - Added underscores to improve many awkward names.
2949 - Changed names of Reporter's thresholds:
2950 warning_level -> report_level; error_level -> halt_level.
2951 - Moved ``utils.id()`` to ``nodes.make_id()``.
2952 - Added ``relative_path(source, target)``.
2954 * docutils/languages/de.py: German mappings; added to project. Thanks
2955 to Gunnar Schwant for the translations.
2957 * docutils/languages/en.py: Added "Dedication" bibliographic field
2960 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2963 * docutils/parsers/rst/states.py:
2965 - Added underscores to improve many awkward names.
2966 - Added RFC-2822 header support.
2967 - Extracted the inline parsing code from ``RSTState`` to a separate
2968 class, ``Inliner``, which will allow easy subclassing.
2969 - Made local bindings for ``memo`` container & often-used contents
2970 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2971 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2972 - Added ``MarkupMismatch`` exception; for late corrections.
2973 - Added ``-/:`` characters to inline markup's start string prefix,
2974 ``/`` to end string suffix.
2975 - Fixed a footnote bug.
2976 - Fixed a bug with literal blocks.
2977 - Applied patch from Simon Budig: simplified regexps with symbolic
2978 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2979 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2980 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2981 - Allowed non-ASCII in "simple names" (directive names, field names,
2983 - Converted ``Inliner.patterns.initial`` to be dynamically built
2984 from parts with ``build_regexp()`` function.
2985 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2986 - Updated docstrings.
2987 - Changed "table" to "grid_table"; added "simple_table" support.
2989 * docutils/parsers/rst/tableparser.py:
2991 - Changed ``TableParser`` to ``GridTableParser``.
2992 - Added ``SimpleTableParser``.
2993 - Refactored naming.
2995 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2996 a fallback language for directive names.
2998 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2999 directive to use a ``pending`` element, used only by HTML writers.
3001 * docutils/parsers/rst/directives/parts.py: Renamed from
3004 - Added "backlinks" attribute to "contents" directive.
3006 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
3007 project by Adam Chodorowski.
3009 * docutils/readers/__init__.py: Gave Readers more control over
3010 choosing and instantiating Parsers.
3012 * docutils/readers/pep.py: Added to project; for PEP processing.
3014 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
3015 requires a ``component`` parameter.
3017 * docutils/transforms/components.py: Added to project; transforms
3018 related to Docutils components.
3020 * docutils/transforms/frontmatter.py:
3022 - In ``DocInfo.extract_authors``, check for a single "author" in an
3023 "authors" group, and convert it to a single "author" element.
3024 - Added support for "Dedication" and generic bibliographic fields.
3026 * docutils/transforms/peps.py: Added to project; PEP-specific.
3028 * docutils/transforms/parts.py: Renamed from old components.py.
3030 - Added filter for `Contents`, to use alt-text for inline images,
3031 and to remove inline markup that doesn't make sense in the ToC.
3032 - Added "name" attribute to TOC topic depending on its title.
3033 - Added support for optional TOC backlinks.
3035 * docutils/transforms/references.py: Fixed indirect target resolution
3036 in ``Hyperlinks`` transform.
3038 * docutils/transforms/universal.py:
3040 - Changed ``Messages`` transform to properly filter out system
3041 messages below the warning threshold.
3042 - Added ``Decorations`` transform (support for ``--generator``,
3043 ``--date``, ``--time``, ``--source-link`` options).
3045 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
3046 Engelbert Gruber's PDF writer.
3048 * docutils/writers/html4css1.py:
3050 - Made XHTML-compatible (switched to lowercase element & attribute
3051 names; empty tag format).
3052 - Escape double-dashes in comment text.
3053 - Improved boilerplate & modularity of output.
3054 - Exposed modular output in Writer class.
3055 - Added a "generator" meta tag to <head>.
3056 - Added support for the ``--stylesheet`` option.
3057 - Added support for ``decoration``, ``header``, and ``footer``
3059 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
3060 translation table to regexp; restores Python 2.0 compatibility
3062 - Added the translator class as instance variable to the Writer, to
3063 make it easily subclassable.
3064 - Improved option list spacing (thanks to Richard Jones).
3065 - Modified field list output.
3066 - Added backlinks to footnotes & citations.
3067 - Added percentage widths to "<col>" tags (from colspec).
3068 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
3069 "<span>" changed to "<var>".
3070 - Inline literals: "<code>" changed to "<tt>".
3071 - Many changes to optimize vertical space: compact simple lists etc.
3072 - Add a command-line options & directive attributes to control TOC
3073 and footnote/citation backlinks.
3074 - Added support for optional footnote/citation backlinks.
3075 - Added support for generic bibliographic fields.
3076 - Identify backrefs.
3077 - Relative URLs for stylesheet links.
3079 * docutils/writers/pep_html.py: Added to project; HTML Writer for
3080 PEPs (subclass of ``html4css1.Writer``).
3082 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
3084 * docutils/writers/docutils_xml.py: Added to project; trivial writer
3085 of the Docutils internal doctree in XML.
3087 * docs/tools.txt: "Docutils Front-End Tools", added to project.
3091 - Changed the title to "The Docutils Document Tree".
3092 - Added "Hyperlink Bookkeeping" section.
3094 * spec/docutils.dtd:
3096 - Added ``decoration``, ``header``, and ``footer`` elements.
3097 - Brought ``interpreted`` element in line with the parser: changed
3098 attribute "type" to "role", added "position".
3099 - Added support for generic bibliographic fields.
3101 * spec/notes.txt: Continual updates. Added "Project Policies".
3103 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
3106 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
3108 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
3109 mailing list discussions.
3111 * spec/pep-0287.txt:
3113 - Renamed to "reStructuredText Docstring Format".
3115 - Reworked Q&A as an enumerated list.
3116 - Converted to reStructuredText format.
3118 * spec/pysource.dtd:
3120 - Reworked structural elements, incorporating ideas from Tony Ibbs.
3122 * spec/pysource.txt: Removed from project. Moved much of its contents
3125 * spec/rst/alternatives.txt:
3127 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
3128 - Added "Inline External Targets" section.
3130 * spec/rst/directives.txt:
3132 - Added "backlinks" attribute to "contents" directive.
3134 * spec/rst/problems.txt:
3136 - Updated the Enumerated List Markup discussion.
3137 - Added new alternative table markup syntaxes.
3139 * spec/rst/reStructuredText.txt:
3141 - Clarified field list usage.
3142 - Updated enumerated list description.
3143 - Clarified purpose of directives.
3144 - Added ``-/:`` characters to inline markup's start string prefix,
3145 ``/`` to end string suffix.
3146 - Updated "Authors" bibliographic field behavior.
3147 - Changed "inline hyperlink targets" to "inline internal targets".
3148 - Added "simple table" syntax to supplement the existing but
3149 newly-renamed "grid tables".
3150 - Added cautions for anonymous hyperlink use.
3151 - Added "Dedication" and generic bibliographic fields.
3153 * test: Made test modules standalone (subdirectories became packages).
3155 * test/DocutilsTestSupport.py:
3157 - Added support for PEP extensions to reStructuredText.
3158 - Added support for simple tables.
3159 - Refactored naming.
3161 * test/package_unittest.py: Renamed from UnitTestFolder.py.
3163 - Now supports true packages containing test modules
3164 (``__init__.py`` files required); fixes duplicate module name bug.
3166 * test/test_pep/: Subpackage added to project; PEP testing.
3168 * test/test_rst/test_SimpleTableParser.py: Added to project.
3172 - Updated html.py and publish.py front-end tools to use the new
3173 command-line processing facilities of ``docutils.frontend``
3174 (exposed in ``docutils.core.Publisher``), reducing each to just a
3176 - Added ``locale.setlocale()`` calls to front-end tools.
3178 * tools/buildhtml.py: Added to project; batch-generates .html from all
3179 the .txt files in directories and subdirectories.
3181 * tools/default.css:
3183 - Added support for ``header`` and ``footer`` elements.
3184 - Added styles for "Dedication" topics (biblio fields).
3186 * tools/docutils.conf: A configuration file; added to project.
3188 * tools/docutils-xml.py: Added to project.
3190 * tools/pep.py: Added to project; PEP to HTML front-end tool.
3192 * tools/pep-html-template: Added to project.
3194 * tools/pep2html.py: Added to project from Python (nondist/peps).
3195 Added support for Docutils (reStructuredText PEPs).
3197 * tools/quicktest.py:
3199 - Added the ``--attributes`` option, hacked a bit.
3200 - Added a second command-line argument (output file); cleaned up.
3202 * tools/stylesheets/: Subdirectory added to project.
3204 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
3207 Release 0.1 (2002-04-20)
3208 ========================
3210 This is the first release of Docutils, merged from the now inactive
3211 reStructuredText__ and `Docstring Processing System`__ projects. For
3212 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
3213 `DPS HISTORY`__ files.
3215 __ http://structuredtext.sourceforge.net/
3216 __ http://docstring.sourceforge.net/
3217 __ http://structuredtext.sourceforge.net/HISTORY.html
3218 __ http://docstring.sourceforge.net/HISTORY.html
3220 General changes: renamed 'dps' package to 'docutils'; renamed
3221 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
3222 the test suites (reStructuredText's test/test_states renamed to
3223 test/test_rst); and all modifications required to make it all work.
3225 * docutils/parsers/rst/states.py:
3227 - Improved diagnostic system messages for missing blank lines.
3228 - Fixed substitution_reference bug.
3234 indent-tabs-mode: nil
3235 sentence-end-double-space: t