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.
20 * docutils/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/references.py
54 - Don't add a second ID to problematic references.
56 * docutils/utils/__init__.py:
58 - Added ``split_escaped_whitespace`` function, support for escaped
59 whitespace in URI contexts.
61 * docutils/utils/smartquotes.py:
63 - Update quote definitions for languages et, fi, fr, ro, sv, tr, uk.
64 - New quote definitions for hr, hsb, hu, lv, sh, sl, sr.
65 - Fix [ 313 ] Differentiate apostrophe from closing single quote
67 - Fix [ 317 ] Extra space inserted with French smartquotes.
68 - Add command line interface for stand-alone use (requires 2.7).
70 * docutils/writers/_html_base.py
72 - Provide default title in metadata (required by HTML5).
73 - Fix [ 312 ] HTML writer generates invalid HTML if the table has two tags.
75 * docutils/writers/html4css1/__init__.py
77 - Apply [ 125 ] HTML writer: respect automatic table column sizing.
79 * docutils/writers/latex2e/__init__.py
81 - Handle class arguments for block-level elements by wrapping them
82 in a "DUclass" environment. This replaces the special handling for
83 "epigraph" and "topic" elements.
85 * docutils/writers/odf_ odt/__init__.py:
87 - Command setting ``language`` now sets the default language
88 of the generated ODF document.
89 - The use of image directive options :width: (%), :scale:, etc now
90 set the width/height/size of images in the generated ODF
92 - The heading/title of admonitions now reflects the language
93 specified by the ``language`` setting.
95 * tools/rst2html4.py: New front-end.
97 * tools/dev/generate_punctuation_chars.py: New skript
98 to test and update utils.punctuation_chars.
101 Release 0.13.1 (2016-12-09)
102 ===========================
104 * docutils/languages/fa.py
105 docutils/parsers/rst/languages/fa.py
106 docutils/languages/la.py
107 docutils/parsers/rst/languages/la.py:
109 - Apply [ 133 ] Persian mappings by Shahin Azad.
110 - Apply [ 135 ] Language modules for Latvian by Alexander Smishlajev
114 - Fix [ 253 ] Attribute key without value not allowed in XML.
118 - Apply [ 103 ] Recognize inline markups without word boundaries.
119 - Enable escaping in embedded URIs and aliases (fixes [ 284 ]).
121 * docutils/parsers/rst/__init__.py
123 - Fix [ 233 ] Change the base URL for the :rfc: role.
125 * docutils/parsers/rst/directives/tables.py
127 - Apply [ 120 ] tables accept option widths: list of relative widths, 'auto'
130 - Implement feature request [ 48 ]
131 Add :align: option to the table directives.
132 Thanks to Takeshi KOMIYA for the patch.
134 * docutils/parsers/rst/roles.py
136 - Fix [ 295 ] Class argument for custom role inheriting from math.
138 * docutils/parsers/rst/tableparser.py
140 - Really fix [ 159 ] Spurious table column alignment errors.
142 * docutils/transforms/frontmatter.py
144 - Add name of generic bibliographic fields as a "classes" attribute value
145 (after conversion to a valid identifier form).
147 * docutils/utils/error_reporting.py
149 - Fix [ 130 ] support streams expectiong byte-strings in ErrorOutput.
151 * docutils/utils/math/math2html.py
153 - Add ``\colon`` macro, fix spacing around colons. Fixes [ 246 ].
154 - New upstream version (additional macros, piecewise integrals and sums).
156 * docutils/writers/_html_base.py
158 - New auxiliary module for definitions common to all HTML writers.
160 * docutils/writers/html5_polyglot/
162 - New HTML writer generating clean, polyglot_ markup conforming to
165 The CSS stylesheets ``minimal.css`` and ``plain.css`` contain required
166 and recommended layout rules.
168 * docutils/writers/html4css1/__init__.py
170 - Add "docutils" to class values for "container" object to address [ 267 ].
171 - Apply patch [ 119 ] by Anatoly Techtonik: use absolute paths for
172 ``default_stylesheet_path`` and ``default_template_path``.
173 - Fix [ 266 ] creating labels/class values in description list items.
174 - Do not use <sup> and <sub> tags inside <pre> (parsed-literal blocks).
175 - Fix footnotes with content that does not start with a paragraph.
176 - Use https in default MathJax URL (report Alan G Isaac).
177 - Outsourcing of common code to _html_base.py.
179 * docutils/writers/latex2e/__init__.py
181 - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
182 admonitions and docinfo.
184 - Use absolute path for ``default_template_path``.
186 - Removed deprecated options ``--use-latex-footnotes`` and
187 ``--figure-footnotes``.
189 - Cleaner LaTeX code for enumerations and literal blocks.
191 - Use "hyperref" package together with "bookmark" (improved hyperlinking
194 - Fix [ 286 ] Empty column title cause invalid latex file.
196 - Fix [ 224 ] Fix rowspan support for tables.
198 - Let LaTeX determine the column widths in tables with "colwidths-auto".
199 Not suited for multi-paragraph cells!
201 * docutils/writers/odf_odt/__init__.py
203 - remove decode.encode of filename stored in zip.
205 * docutils/writers/xetex/__init__.py
207 - LuaLaTex compatibility: do not load "xunicode".
211 - New front-end ``rst2html5.py``.
215 - Test py26, py27, py33 and py34.
217 To use, install the ``tox`` package via pip or easy_install and use
218 tox from the project root directory.
220 .. _polyglot: http://www.w3.org/TR/html-polyglot/
221 .. _HTML 5: http://www.w3.org/TR/html5/
222 .. _XHTML 1.0: http://www.w3.org/TR/xhtml1/
225 Release 0.12 (2014-07-06)
226 =========================
228 * docs/ref/rst/directives.txt
230 - Update "math" and "csv-table" descriptions.
232 * docutils/parsers/rst/directives/images.py
234 - Fix [ 258 ] figwidth="image" generates unitless width value.
236 * docutils/parsers/rst/states.py
238 - Improve error report when a non-ASCII character is specified as
239 delimiter, quote or escape character under Python 2.
240 Fixes [ 249 ] and [ 250 ].
242 * docutils/writers/html4css1/__init__.py
244 - Don't add newline after inline math.
245 Thanks to Yury G. Kudryashov for the patch.
247 * docutils/writers/latex2e/__init__.py
249 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
250 - Apply [ 116 ] by Kirill Smelkov. Don't hardcode \large for subtitle.
252 * docutils/writers/odf_odt/__init__.py
254 - Apply patch by Jakub Wilk to fix bug [ 100 ].
256 * test/test_error_reporting.py
258 - Fix [ 223 ] by removing redundant tests we do not have control over.
262 - Apply [ 115 ] respect fixed 2to3 string literal conversion behavior.
264 Release 0.11 (2013-07-22)
265 =========================
269 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
270 - Support embedded aliases within hyperlink references.
271 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
272 language module) before global search.
276 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
278 * docutils/parsers/rst/directives/__init__.py
280 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
282 * docutils/parsers/rst/directives/images.py
284 - Apply [ 3599485 ] node source/line information for sphinx translation.
286 * docutils/parsers/rst/directives/tables.py
288 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
290 * docutils/parsers/rst/states.py
292 - Fix [ 157 ] Line block parsing doesn't like system message.
293 - Always import our local copy of roman.py (report Larry Hastings).
295 * docutils/transforms/references.py
297 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
299 * docutils/utils/__init__.py
301 - Fix [ 3596884 ] exception importing ``docutils.io``.
303 * docutils/writers/html4css1/__init__.py
305 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
306 - New setting `stylesheet_dirs`: Comma-separated list of directories
307 where stylesheets are found. Used by `stylesheet_path` when expanding
308 relative path arguments.
309 - New default for math-output_: ``HTML math.css``.
310 - Avoid repeated class declarations in html4css1 writer
311 (modified version of patch [ 104 ]).
313 .. _math-output: docs/user/config.html#math-output
315 * docutils/writers/latex2e/__init__.py
317 - Drop the simple algorithm replacing straight double quotes with
318 English typographic ones.
319 Activate the SmartQuotes_ transform if you want this feature.
320 - Fix literal use of babel shorthands (straight quote, tilde, ...).
321 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
322 - New setting `stylesheet_dirs`.
324 .. _SmartQuotes: docs/user/config.html#smart-quotes
326 * docutils/writers/manpage.py
328 - Fix [3607063] handle lines starting with a period.
329 - Fix option separating comma was bold (thanks to Bill Morris).
331 Release 0.10 (2012-12-16)
332 =========================
336 - Dropped support for Python 2.3.
337 - ``docutils/math``, ``docutils/error_reporting.py``, and
338 ``docutils/urischemes.py`` moved to the utils package.
339 - Fix [3541369] Relative __import__ also with Python 3.3.
340 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
341 and parsers for Python 2.7 up.
342 - Fix import of PIL.Image.
343 - Change default of "syntax highlight" option to "long",
344 basic syntax highlight styles for LaTeX and HTML.
348 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
349 option is ignored and will be removed in a future release.
350 - Fix Py3k error writing to stdout with encoding differing from default.
351 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
353 * docutils/parsers/rst/directives/misc.py
355 - Fix [ 3546533 ] Unicode error with `date` directive.
357 * docutils/transforms/universal.py
359 - SmartQuotes transform for typographic quotes and dashes.
361 * docutils/utils/__init__.py
363 - normalize_language_tag() now returns `BCP 47`_ conformant tags
364 with subtags separated by ``-``.
366 * docutils/writers/html4css1/__init__.py
368 - Use ``<code>`` tag for inline "code",
369 do not drop nested inline nodes (syntax highlight tokens).
370 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
371 - No line break after opening inline math tag.
373 * docutils/writers/manpage.py
375 - Apply [ 3527401 ] addmonition's don't preserve indentation
376 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
378 * docutils/writers/xetex/__init__.py
380 - Apply [ 3555160 ] ensure order of "otherlanguages".
381 - Fix section numbering by LaTeX.
383 * docutils/writers/s5_html/__init__.py
385 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
387 * docutils/writers/s5_html/docutils_xml.py
389 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
390 - Fix/improve output with ``--indent`` option.
394 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
396 * tools/test/test_buildhtml.py
398 - Fix [ 3521167 ] allow running in any directory.
399 - Fix [ 3521168 ] allow running with Python 3.
402 Release 0.9.1 (2012-06-17)
403 ==========================
407 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
408 installed in the PYTHONPATH. Converted tests are now
409 stored in ``test3/``, tools no longer need conversion.
411 If you installed one of Docutils versions 0.7 ... 0.9 with
412 ``setup.py install`` under Python 3, remove the spurious
413 ``test/`` and ``tools/`` directories in the site library root.
417 - Make tests independent from the location of the ``test/`` directory.
418 - Use converted sources (from the ``build/`` directory) for tests under
423 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
427 - Fix writing binary data to sys.stdout under Python 3 (allows
428 ``rst2odt.py`` to be used with output redirection).
430 * docutils/parsers/rst/directives/misc.py
432 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
433 ``locale == C`` and 8-bit char in path argument of `include` directive.
437 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
440 Release 0.9 (2012-05-02)
441 ========================
445 - New reStructuredText "code" role and directive and "code" option
446 of the "include" directive with syntax highlighting by Pygments_.
447 - Fix parse_option_marker for option arguments containing ``=``.
448 - Fix [ 2993756 ]: import Python Imaging Library's Image module
449 via ``import PIL`` as starting with PIL 1.2,
450 "PIL lives in the PIL namespace only" (announcement__).
452 .. _Pygments: http://pygments.org/
453 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
457 - Fix [ 2971827 ] and [ 3442827 ]
458 extras/roman.py moved to docutils/utils/roman.py
460 * docutils/frontend.py
462 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
466 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
467 - `mode` argument for FileOutput avoids code replication in
469 - New exceptions InputError and OutputError for IO errors in
470 FileInput/FileOutput.
474 - No "hard" system exit on file IO errors: catch and report them in
475 `Publisher.reportException` instead. Allows handling by a calling
476 application if the configuration setting `traceback` is True.
478 * docutils/utils.py -> docutils/utils/__init__.py
480 - docutils.utils is now a package (providing a place for sub-modules)
482 .. note:: docutils/math, docutils/error_reporting.py, and
483 docutils/urischemes.py will move to the utils package in the next
484 release, too. See RELEASE-NOTES__
486 __ RELEASE-NOTES.html
488 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
489 errors recording non-ASCII filenames (fixes [ 3434355 ]).
491 - Fix relative_path() with source=None and `unicode` target.
493 * docutils/parsers/rst/states.py
495 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
496 characters and "international" quotes around inline markup.
497 - Use `field_marker` pattern to look for start of a
498 directive option block (fixes [ 3484857 ]).
500 * docutils/parsers/rst/tableparser.py
502 - Fix [ 2926161 ] for simple tables.
503 (Combining chars in grid tables still contribute to cell width.)
505 * docutils/writers/latex2e/__init__.py
507 - Support the `abbreviation` and `acronym` standard roles.
508 - Record only files required to generate the LaTeX source as dependencies.
509 - Fix handling of missing stylesheets.
510 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
511 when suppressing LaTeX section numbering.
512 - Use ``\DUtitle`` for unsupported section levels
513 - Apply [ 3512791 ] do not compare string literals with "is"
515 * docutils/writers/xetex/__init__.py
517 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
519 * docutils/writers/html4css1/__init__.py
521 - Change default for `math-output` setting to MathJax.
522 - Fix handling of missing stylesheets.
524 * docutils/writers/docutils_xml.py
526 - Use the visitor pattern with default_visit()/default_depart() methods
527 instead of minidom to facilitate special handling of selected nodes.
528 - Support raw XML (inserted as-is inside a <raw></raw> node).
530 * docutils/writers/manpage.py
532 - Do not emit comment line with trailing blank. Problematic for VCS.
534 Release 0.8.1 (2011-08-30)
535 ==========================
539 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
540 and [ 3395920 ] (correct copyright info for rst.el).
544 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
546 * docutils/writers/latex2e/__init__.py
548 - Clean up Babel language setting. Restores Sphinx compatibility.
550 Release 0.8 (2011-07-07)
551 ========================
555 - Handle language codes according to `BCP 47`_.
556 - If the specified language is not supported by Docutils,
557 warn and fall back to English.
558 - Math support: reStructuredText "math" role and directive,
559 ``math`` and ``math_block`` doctree elements.
560 - Decode command line arguments with the locale's preferred encoding
561 (to allow, e.g., ``--title=Dornröschen``).
562 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
563 - New sub-module `error_reporting`: handle encoding/decoding errors
564 when reporting exceptions.
565 - Some additions to the Docutils core are released under the 2-Clause BSD
566 license, see COPYING_ for details.
568 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
569 .. _COPYING: COPYING.html
573 - Most directives now support a "name" option that attaches a
576 - Directive content may start on the first line also when the directive
577 type accepts options.
579 * docs/dev/policies.txt:
581 - Recommend the 2-Clause BSD license
582 (http://www.spdx.org/licenses/BSD-2-Clause)
583 for code that is kept under the author's copyright.
585 * tools/buildhtml.py:
587 - Fix ``--local`` switch.
589 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
591 * docutils/writers/html4css1/__init__.py
593 - Set "lang" argument for objects with class argument
594 "language-<language tag>".
595 - New setting "math-output" with support for HTML, MathML, and LaTeX.
597 * docutils/writers/latex2e/__init__.py
599 - Fix [ 3043986 ] AttributeError using :local: with table of content.
600 - Place title data in the document preamble.
601 - Load `babel` package only if required.
602 - Update list of supported languages.
603 - New config setting "hyperref-options".
604 No hard-coded "unicode" hyperref option (clash with xetex).
605 - Set language for custom roles, paragraphs, block-quotes, and
606 line-quotes with class argument "language-<language tag>".
607 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
608 - Convert image URI to a local file path.
609 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
610 has more than one paragraph (Wolfgang Scherer).
611 - \leavevmode before longtable only when needed (prevents spurious vspace)
612 - do not advance table counter for tables without caption
614 * docutils/writers/xetex/__init__.py
616 - New writer generating LaTeX code for compiling with ``xelatex``.
618 A separate writer (inheriting from latex2e) instead of a ``--xetex``
619 option allows separate config options for XeTeX vs. LaTeX2e.
621 * docutils/writers/manpage.py
623 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
624 - Fix: vertical space cleaning for option group ``.``.
626 * tools/editors/emacs/rst.el:
628 - Fix [ 3001100 ] does not handle spaces in filenames
629 (thanks to Jakub Wilk)
633 - strip whitespace from stylesheet arguments
634 - exclude combining chars from column_width()
635 (partial fix for [ 2926161 ])
637 * docutils/parsers/rst/directives/misc.py:
639 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
644 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
645 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
647 Release 0.7 (2010-07-07)
648 ========================
652 - Fix [ 2881769 ] setup configuration.
653 - Fix [ 2788716 ] reporting problems in included files.
657 - FileInput opens files as text files with universal newline support
658 (mode "rU", configurable with the new optional argument "mode").
662 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
666 - Fix [ 2923723 ] let decode_path() tolerate path == None
668 * docutils/writers/html4css1/__init__.py
670 - Support SVG and SWF images (thanks to Stefan Rank).
671 - Generate valid XHTML for centered images with targets.
672 Use CSS classes instead of "align" tags for image alignment.
674 * docutils/writers/latex2e/__init__.py
676 - Use `transforms.writer_aux.Admonitions` to "normalize" special
678 - Use the ``\url`` command for URLs (breaks long URLs instead of
679 writing into the margin).
680 - Preserve runs of spaces in `inline literals`__.
681 - Deprecate ``figure_footnotes`` setting.
682 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
683 - New ``latex_preamble`` setting.
684 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
685 - Fix hyperlink targets (labels) for images, figures, and tables.
686 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
687 - Apply [ 2961991 ] Call hyperref with unicode option.
688 - Drop the special `output_encoding`__ default ("latin-1").
689 The Docutils wide default (usually "UTF-8") is used instead.
690 - Render inline markup in document title and subtitle.
691 - Fix numbering depth with LaTeX section numbering.
692 - Update Unicode -> LaTeX translations.
693 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
695 __ docs/ref/restructuredtext.html#inline-literals
696 __ docs/user/config.html#docutils-footnotes
697 __ docs/user/config.html#output_encoding
699 * docutils/writers/manpage.py
701 - Fix: supported attribute (thanks to peter2108).
702 - Remove trailing blanks in code (keep in sync with mercurial version).
703 - Titles level 1, that is ``.SH``, always uppercase.
704 - Apply patch from mg: literal text should be bold in man-pages.
708 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
713 - Python 3 support: copy test/ and tools/ to the build-dir
714 and convert Python sources with 2to3.
717 Release 0.6 (2009-10-11)
718 ========================
722 - Docutils is now compatible with Python versions from 2.3 up to 2.6
723 and convertible to 3.1 code.
725 + Node.__nonzero__ returns True instead of 1.
726 + use os.walk instead os.path.walk.
727 + minimize "types" module where possible.
728 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
729 + Text nodes now subclass unicode rather than UserString
730 (which is gone in python 3.0).
731 + 3.0 compatibility module docutils._compat
733 + Drop 2.2 compatibility workarounds.
734 + Drop extras/optparse.py and extras/textwrap.py
735 (stdlib modules since 2.3).
737 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
738 - Unix man page export: manpage writer moved from sandbox to Doctutils
741 - Apply [ 1719345 ] Galician translation
742 - Apply [ 1905741 ] Polish translation
743 - Apply [ 1878977 ] make_id(): deaccent characters.
744 - Apply [ 2029251 ] return nonzero when tests fail.
745 - Fix [ 1692788 ] allow UTF-8 in style sheets.
746 - Fix [ 2781629 ] support non-ASCII chars in file names.
747 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
748 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
749 - Fix [ 2821266 ] --strict option works now like --halt=info.
750 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
751 - Fix [ 1627229 ] hyperlink references in substitutions.
753 - The "newlatex" writer is orphaned.
757 - Documented Unicode characters allowed as inline markup openers,
758 closers, and delimiters.
759 - Allow units for all length specifications.
760 - Allow percent sign in "scale" argument of "figure" and "image" directives.
761 - Bugfix: The "figalign" argument of a figure now works as intended
762 (aligning the figure, not its contents).
763 - Align images with class "align-[right|center|left]"
764 (allows setting the alignment of an image in a figure).
768 - Added ``Element.__contains__`` method, for the in-operator.
770 * docutils/parsers/rst/states.py:
772 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
773 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
774 " " (non-breaking space), and "¡ ¿" openers.
776 * docutils/parsers/directives/misc.py:
778 - Added ``start-line`` and ``end-line`` options to "include"
779 directive to select a range of lines.
780 - Hard tabs in literal inclusions are replaced by spaces. This is
781 configurable via the new ``tab-width`` option of the "include" directive
782 (a negative tab-width prevents tab expansion).
786 - Add ``get_stylesheet_list`` function.
787 - Apply [ 2834836 ] print info at halt
789 * docutils/transforms/universal.py:
791 - Raise default priority of StripClasses to exclude stripped classes from
794 * docutils/writers/html4css1/__init__.py:
796 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
797 separated list of stylesheets.
798 - Address [ 1938891 ] Inline literal text creates "pre" span only when
799 needed to prevent inter-word line wraps.
800 - Use `translate` method instead of repeated `replace` calls.
801 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
802 classes to allow CSS styling that does not interfere with other
803 table-using constructs (field lists, citations, ...).
805 * docutils/writers/newlatex2e/__init__.py:
807 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
809 * docutils/writers/latex2e/__init__.py (see also
810 `<docs/user/docutils-05-compat.sty.html>`__) :
812 - Add ``--embed-stylesheet`` option.
813 - Apply [ 1474017 ] image vertical alignment is reversed.
814 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
815 - Change: has_key for dictionaries (not Nodes) to in-operator.
816 - Merge adjacent citations into one latex cite command.
817 - Failsave implementation of custom roles. LaTeX compilation now ignores
818 unknown classes instead of aborting with an error.
819 - Support custom roles based on standard roles.
820 - LaTeX packages can be used as ``--stylesheet`` arguments without
821 restriction. (A style sheet is now referenced with the ``\usepackage``
822 command, if it ends with ``.sty`` or has no extension.)
823 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
824 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
825 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
826 2005-02-04 as a configurable length unit).
827 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
828 if font-encoding is set to ''. LaTeX defaults to OT1 then.
829 - Set sub- and superscript role argument in text mode not as math.
830 Use a custom role based on sub-/superscript if you want italic shape.
831 - Shorter preamble and less dependencies: Load packages and define macros
832 only if required in the document.
833 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
834 - New custom environments and commands with optional "classes" argument.
835 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
836 - Better conformance to Docutils specifications with ``--use-latex-toc``.
837 Support for LaTeX generated ToC also with unnumbered sections.
838 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
839 section numbering by LaTeX.
840 - Use default font in admonitions and sidebar.
841 - Align of image in a figure defaults to 'center'.
842 - Bugfix: Newlines around targets and references prevent run-together
844 - Fix internal hyperlinks.
845 - Use class defaults for page margins ('typearea' now optional).
846 - Float placement made configurable, default changed to "here definitely".
847 - Typeset generic topic as "quote block with title".
848 - Use template (file and configuration option).
849 - In the default template, load cmap.sty (fix text extraction in PDF) and
850 fixltx2e.sty (LaTeX patches, \textsubscript).
851 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
852 - Use `translate` instead of repeated `replace` calls for text encoding.
853 - Hyperlinked footnotes and support for symbol footnotes and
854 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
855 - Complete pairs of binary options
856 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
857 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
859 - font-encoding: "T1" (formerly implicitely set by 'ae').
860 - use-latex-toc: true (ToC with page numbers).
861 - use-latex-footnotes: true (no mixup with figures).
863 * docutils/writers/manpage.py
865 - Do not print version at document end, this is done by the viewer.
866 - Do not print date at document end, this is done by the viewer.
867 - Fix storage of docinfo fields for none standard fields.
869 * docutils/tools/rst2man.py
871 Release 0.5 (2008-06-25)
872 ========================
874 * docutils/languages/he.py: Added to project: Hebrew mappings by
877 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
878 mappings by Meir Kriheli.
880 * docutils/frontend.py:
882 - Configuration files are now assumed and required to be
884 - Paths of applied configuration files are now recorded in the
885 runtime setting ``_config_files`` (accessible via
886 ``--dump-settings``).
887 - Added ``--strip-elements-with-class`` and ``--strip-class``
888 options (``strip_elements_with_classes`` and ``strip_classes``
893 - Added code to determine the input encoding from data: encoding
894 declarations or the presence of byte order marks (UTF-8 & UTF-16).
895 - Added support for IronPython 1.0.
899 - Added ``document.__getstate__`` method, for pickling.
901 * docutils/parsers/rst/states.py:
903 - Allow ``+`` and ``:`` in reference names.
904 - Unquoted targets beginning with an underscore (``.. __target:
905 URI``) are no longer accepted.
906 - Added support for multiple attributions in a physical block quote
907 (indented text block), dividing it into multiple logical block
909 - Added support for unicode bullets in bullet lists: "•", "‣", and
911 - Added support for new object-oriented directive interface,
912 retaining compatibility to the old functional interface.
913 - Added support for throwing ``DirectiveError``'s from within
916 * docutils/parsers/rst/__init__.py:
918 - Added ``Directive`` base class.
919 - Added ``DirectiveError`` base class.
920 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
923 * docutils/parsers/directives/:
925 - Refactored all reStructuredText directives to use the new
926 object-oriented directive interface. Errors are now (mostly)
927 thrown using the new ``DirectiveError`` class.
929 * docutils/parsers/directives/misc.py:
931 - Added ``start-after`` and ``end-before`` options to ``include``
932 directive; thanks to Stefan Rank.
934 * docutils/transforms/universal.py:
936 - Added ``StripClassesAndElements`` transform to remove from the
937 document tree all elements with classes in
938 ``settings.strip_elements_with_classes`` and all "classes"
939 attribute values in ``self.document.settings.strip_classes``.
941 * docutils/transforms/writer_aux.py:
943 - Added ``Admonitions`` transform to transform specific admonitions
944 (like ``note``, ``warning``, etc.) into generic admonitions with a
947 * docutils/writers/html4css1/__init__.py:
949 - Moved template functionality from the PEP/HTML writer here.
950 - Expanded the fragments available in the ``parts`` attribute.
951 - Moved ``id`` attributes from titles to surrounding ``div``
953 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
954 universally supported now).
955 - ``template.txt`` is now opened in text mode instead of binary mode
956 (to ensure Windows compatibility).
957 - ``a`` elements now have an "internal" or "external" class,
958 depending on reference type.
960 * docutils/writers/html4css1/template.txt: Added to project.
962 * docutils/writers/pep_html/:
964 - Moved template functionality to the HTML writer.
966 * docutils/writers/s5_html/__init__.py:
968 - Added ``view_mode`` & ``hidden_controls`` settings
969 (``--view-mode`` & ``--hidden-controls/--visible-controls``
972 * docutils/writers/latex2e/__init__.py:
974 - Add ``--literal-block-env``
975 - Fix: escaping ``%`` in href urls.
976 - Move usepackage hyperref after stylesheet inclusion.
977 - Fix: scrartcl does not have chapter but scrreprt.
978 - Add newline after ``\end{verbatim}``.
979 - Merge smaller differences from latex2e_adaptive_preamble.
980 - Add ``use-part-section``.
981 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
982 - Using leavemode option_list no longer needs to check if parent
983 is a definition list.
984 - Append ``\leavemode`` to definition list terms.
985 - No longer write visit\_/depart_definition_list_item comments to
987 - Table column width with 3 decimal places.
988 - Add table stubs support (boldfont).
989 - Add assemble_parts to writer.
990 - Add simply support for nested tables.
991 - Fix verbatim in tables if use-verbatim-when-possible.
992 - Use section commands down to subparagraph.
993 - Put ensuremath around some latin1 chars.
994 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
995 - New option ``--use-bibtex=style,db1,db2``.
996 - New option ``--reference-label`` to allow usage of LaTeX ref for
997 labels in section references.
998 - Add a label after every section to support sectionnumbers as reference
1000 - Fix: bug# 1605376 rst2latex: bad options group list
1001 - Remove inactive code for use_optionlist_for_option_list.
1002 - Remove latex comments from option_list output.
1003 - Fix: bug# 1612270 double qoutes in italian literal.
1004 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
1005 - Add option --use-latex-abstract.
1006 - Image width unit ``px`` is translated to ``pt``.
1007 - Add image height support.
1008 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
1010 - Fix: Do not escape underscores in citation reference labels if
1011 use-latex-citations is set.
1012 - Use centering instead of center for figure contents, to avoid vertical
1014 - Recognize table class: borderless, nolines, booktabs, standard.
1015 - Fix: Renaming contents section does not work with latex writer; SF
1017 - Applied patch for custom roles with classes from Edward Loper.
1018 - Fixed bug that caused crashes with more than 256 lists.
1020 * docutils/writers/pep_html/__init__.py:
1022 - Changed to support new python.org website structure and
1025 * docs/howto/security.txt: "Deploying Docutils Securely", added to
1028 * tools/buildhtml.py:
1030 -- Added ``ignore`` setting to exclude a list of shell patterns
1031 (default: ``.svn:CVS``).
1033 * tools/editors/emacs/rst.el:
1035 - Changed license to "GPL".
1036 - Added ``rst-straighten-decorations`` function.
1037 - The ``compile`` module is now always loaded.
1038 - Added ``rst-toggle-line-block`` function.
1039 - Headings consisting only of non-ASCII characters are now
1040 recognized by ``rst-toc`` and ``rst-adjust``.
1041 - Added font-lock support for multi-line comments where the first
1042 comment line is empty.
1043 - Added ``(require 'font-lock)``.
1047 - Provide descriptive error message if distutils is missing.
1050 Release 0.4 (2006-01-09)
1051 ========================
1055 - Updated the project policies for trunk/branch development &
1058 * docutils/__init__.py:
1060 - Added ``__version_details__`` attribute to describe code source
1061 (repository/snapshot/release).
1062 - Replaced ``default_transforms`` attribute of TransformSpec with
1063 ``get_transforms()`` method.
1067 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
1068 functions, for document tree extraction and reprocessing.
1072 - Added ``DocTreeInput`` class, for reprocessing existing documents.
1073 - Added support for non-Unicode (e.g. binary) writer output.
1075 * docutils/nodes.py:
1077 - Re-introduced ``Targetable.indirect_reference_name``, for
1078 MoinMoin/reST compatibility (removed in r3124/r3129).
1079 - Added ``serial_escape`` function; escapes string values that are
1080 elements of a list, for serialization. Modified Docutils-XML
1081 writing (``Element._dom_node``) and pseudo-XML writing
1082 (``Element.starttag``) to use ``serial_escape``.
1083 - Added ``Node.deepcopy()`` method.
1084 - Removed the internal lists ``document.substitution_refs``,
1085 ``document.anonymous_refs``, and ``document.anonymous_targets``.
1086 - Added a "container" element.
1087 - Fixed bug where values of list-valued attributes of elements
1088 originating from custom interpreted text roles (i.e., with custom
1089 classes) were being shared between element instances. Reported by
1092 * docutils/statemachine.py:
1094 - Added trailing whitespace stripping to ``string2lines()``.
1095 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
1096 Asian double-width character support.
1098 * docutils/utils.py:
1100 - Added ``east_asian_column_width()`` for double-width character
1103 * docutils/languages/ja.py: Added to project: Japanese mappings by
1106 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
1107 mappings by Panjunyong.
1109 * docutils/parsers/null.py: Added to project; a do-nothing parser.
1111 * docutils/parsers/rst/__init__.py:
1113 - Added validator to tab_width setting, with test. Closes SF bug
1114 #1212515, report from Wu Wei.
1116 * docutils/parsers/rst/states.py:
1118 - Fixed bug with escaped colons indicating a literal block.
1119 - Fixed bug with enumerated lists (SF#1254145).
1120 - Backslash-escaped colons inside of field names are now allowed.
1121 - Targets (implicit and explicit), anonymous hyperlink references
1122 and auto-numbered footnote references inside of substitution
1123 definitions are now disallowed.
1124 - Fixed bug: list items with blank first lines.
1125 - Fixed bug: block quote attributions with indented second lines.
1126 - Added East Asian double-width character support (Python 2.4 only).
1128 * docutils/parsers/rst/tableparser.py:
1130 - Added East Asian double-width character support (Python 2.4 only).
1132 * docutils/parsers/rst/directives/body.py:
1134 - Added the "container" directive.
1136 * docutils/parsers/rst/directives/misc.py:
1138 - Added the "default-role", "title", and "date" directives.
1139 - Added standard data file syntax to the "include" directive.
1140 - Added support for "class" directive content.
1142 * docutils/parsers/rst/directives/images.py:
1144 - Added ``indirect_reference_name`` support for images with a target
1146 - Added support for image width and height units.
1147 - Fixed bug with image "target" options.
1149 * docutils/parsers/rst/directives/references.py:
1151 - Added "class" attribute to "target-notes" directive, for
1152 footnote_reference classes.
1154 * docutils/parsers/rst/include/: Directory added to project; contains
1155 standard data files for the "include" directive. Initial contents:
1156 character entity substitution definition sets, and a set of
1157 definitions for S5/HTML presentations.
1159 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
1160 mappings by David Goodger.
1162 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
1163 Simplified Chinese mappings by Panjunyong.
1165 * docutils/readers/__init__.py:
1167 - Added universal.Decorations and universal.ExposeInternals
1168 transforms as default transforms for all readers.
1169 - Added ``ReReader`` base class for readers that reread an existing
1172 * docutils/readers/doctree.py: Added to project; a reader for existing
1175 * docutils/transforms/frontmatter.py:
1177 - Fixed the DocInfo transform to handle SVN-style expansion of the
1179 - In ``DocInfo.extract_authors``, treat the contents of "authors"
1182 * docutils/transforms/misc.py:
1184 - Added misc.Transitions transform, extracted from
1185 universal.FinalChecks.
1187 * docutils/transforms/references.py:
1189 - Added references.DanglingReferences transform, extracted from
1190 universal.FinalChecks.
1191 - Fixed bug with doubly-indirect substitutions.
1192 - Added footnote_reference classes attribute to "TargetNotes".
1193 - Fixed bug with circular substitution definitions that put Docutils
1194 into an infinite loop.
1196 * docutils/transforms/universal.py:
1198 - Added universal.ExposeInternals transform, extracted from
1199 universal.FinalChecks.
1200 - Removed universal.FinalChecks transform (logic has been moved to
1201 several new transforms).
1202 - Fixed bug with the "expose_internals" setting and Text nodes
1203 (exposed by the "rawsource" internal attribute).
1204 - Added the universal.StripComments transform, implementation of the
1205 "strip_comments" setting.
1207 * docutils/transforms/writer_aux.py: Added to project; auxiliary
1208 transforms for writers.
1210 - Added ``Compound`` transform, which flattens compound paragraphs.
1212 * docutils/writers/: Several writer modules (html4css1.py) were
1213 converted into packages. Support modules and data files have been
1214 moved into the packages. The stylesheets for the HTML writers are
1215 now installed along with the code, the code knows where to find
1216 them, and the default is to use them (actually, to embed them).
1217 Some adjustments to configuration files may be necessary. The
1218 easiest way to obtain the new default behavior is to remove all
1219 settings whose name includes "stylesheet".
1221 * docutils/writers/__init__.py:
1223 - Added universal.Messages and universal.FilterMessages transforms
1224 as default transforms for all writers.
1225 - Added ``UnfilteredWriter`` base class for writers that pass the
1226 document tree on unchanged.
1228 * docutils/writers/docutils_xml.py:
1230 - Made ``xmlcharrefreplace`` the default output encoding error
1233 * docutils/writers/html4css1/:
1235 - Added support for image width and height units.
1236 - Made ``xmlcharrefreplace`` the default output encoding error
1238 - Made ``--embed-stylesheet`` the default rather than
1239 ``--link-stylesheet``.
1240 - Moved "id" attribute from container (section etc.) to title's <a>
1241 tag, to be on the same tag as "name".
1242 (!!! To be reverted in Docutils 0.5.)
1243 - Added vertical space between fields of field lists.
1244 - Added ``--compact-field-lists`` option to remove vertical space in
1246 - Made cloaking of email addresses with ``--cloak-email-addresses``
1248 - Fixed support for centered images.
1249 - Added support for class="compact" & class="open" lists.
1251 * docutils/writers/latex2e/:
1253 - Underscores in citekeys are no longer escaped.
1255 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1256 mapping of Unicode characters to LaTeX equivalents.
1258 * docutils/writers/s5_html/: Package added to project; writer for
1259 S5/HTML slide shows.
1261 * docs/dev/distributing.txt: Added to project; guide for distributors
1262 (package maintainers).
1264 * docs/dev/hacking.txt: Added to project; guide for developers.
1266 * docs/ref/doctree.txt:
1268 - Updated for plural attributes "classes", "ids", "names",
1270 - Added the "container" element.
1272 * docs/ref/docutils.dtd:
1274 - Updated for plural attributes "classes", "ids", "names",
1277 * docs/user/emacs.txt: Added to project; a document about Emacs
1278 support for reStructuredText and Docutils.
1280 * docs/user/links.txt: Added to project; lists of Docutils-related
1283 * docs/user/mailing-lists.txt: Added to project; information about
1284 Docutils-related mailing lists and how to access them.
1286 * docs/user/slide-shows.txt: Added to project; example of and docs for
1287 the S5/HTML writer (``rst2s5.py`` front end).
1289 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1290 Files", added to project.
1292 * test/coverage.sh: Added to project; test coverage script.
1294 * test/DocutilsTestSupport.py:
1296 - Added support for specifying runtime settings at the suite level.
1298 * test/test_functional.py:
1300 - Added the ``clear_output_directory`` function.
1301 - Added support for ``_test_more`` functions in functional test
1304 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1306 * tools/rstpep2html.py: Renamed from pep.py.
1308 * tools/dev/create_unimap.py: Added to project; script to create the
1309 docutils/writers/unimap_latex.py mapping file.
1311 * tools/dev/profile_docutils.py: Added to project; profiler script.
1313 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1315 * tools/editors/emacs/restructuredtext.el,
1316 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1317 Removed from project; the functionality is now contained in rst.el.
1319 * tools/editors/emacs/rst.el: Added to project. Added many features
1320 and fixed many bugs. See docs/user/emacs.txt for details.
1322 * tools/stylesheets: Removed from project. Stylesheets have been
1323 renamed and moved into writer packages.
1326 Release 0.3.9 (2005-05-26)
1327 ==========================
1331 - Eliminated and replaced all uses of the old string attributes
1332 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1333 new list attributes ``ids``, ``names``, ``dupnames`` and
1334 ``classes`` throughout the whole source tree.
1338 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1339 allowing for easier debugging.
1340 - In ``Publisher.publish()``, expanded the generic top-level
1343 * docutils/examples.py:
1345 - Added ``internals`` function for exploration.
1349 - Fixed ``Input.decode`` method to apply heuristics only if no
1350 encoding is explicitly given, and to provide better reporting of
1352 - The ``Input.decode`` method now removes byte order marks (BOMs)
1355 * docutils/nodes.py:
1357 - ``image`` element class changed to subclass of Element, not
1358 TextElement (it's an empty element, and cannot contain text).
1359 - Added ``attr_defaults`` dictionary for default attribute values.
1360 - Added empty list as default value for the following attributes:
1361 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1362 - Added ``document.decoration`` attribute,
1363 ``document.get_decoration`` method, and ``decoration.get_header``
1364 & ``.get_footer`` methods.
1365 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1368 * docutils/utils.py:
1370 - Removed ``docutils.utils.Reporter.categories``,
1371 ``docutils.utils.ConditionSet``, and all references to them, to
1372 simplify error reporting.
1374 * docutils/languages/nl.py: Added to project; Dutch mappings by
1377 * docutils/parsers/rst/__init__.py:
1379 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1381 * docutils/parsers/rst/states.py:
1383 - Added check for escaped at-mark to prevent email address recognition.
1384 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1386 - Allowed whitespace in paths and URLs.
1387 - Added auto-enumerated list items.
1388 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1390 - Added support for table stub columns.
1392 * docutils/parsers/rst/directives/__init__.py:
1394 - Allowed whitespace in paths (``path`` function).
1395 - Added ``uri`` directive option conversion function.
1397 * docutils/parsers/rst/directives/body.py:
1399 - Fixed illegal context bug with "topic" directive (allowed within
1400 sidebars; not within body elements).
1402 * docutils/parsers/rst/directives/images.py:
1404 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1405 - Added support for the ``file_insertion_enabled`` setting in the
1406 "figure" directive (disables "figwidth" option).
1407 - "image" directive: added checks for valid values of "align" option,
1408 depending on context. "figure" directive: added specialized
1409 "align" option and attribute on "figure" element.
1410 - Made ":figwidth: image" option of "figure" directive work again.
1411 - Fixed bug with reference names containing uppercase letters
1412 (e.g. ``Name_``) in "target" option of "image" directive.
1414 * docutils/parsers/rst/directives/misc.py:
1416 - Fixed "include" and "raw" directives to catch text decoding
1418 - Allowed whitespace in "include" & "raw" directive paths.
1419 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1420 settings in "include" & "raw" directives.
1422 * docutils/parsers/rst/directives/parts.py:
1424 - Added "header" & "footer" directives.
1425 - Fixed illegal context bug with "contents" directive (topics
1426 allowed within sidebars; not within body elements).
1428 * docutils/parsers/rst/directives/tables.py:
1430 - Added "list-table" directive.
1431 - Caught empty CSV table bug.
1432 - Added support for the ``file_insertion_enabled`` setting in the
1433 "csv-table" directive.
1434 - Added ``stub-columns`` option to "csv-table" and "list-table"
1437 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1438 mappings by Martijn Pieters.
1440 * docutils/readers/standalone.py:
1442 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1443 options to activate or deactivate the SectSubTitle transform.
1445 * docutils/transforms/frontmatter.py:
1447 - Added SectSubTitle transform to promote titles of lone
1448 subsections to subtitles.
1450 * docutils/transforms/references.py:
1452 - Fixed mislocated internal targets bug, by propagating internal
1453 targets to the next node, making use of the newly added support
1454 for multiple names and IDs.
1455 - Fixed duplicate footnote label bug.
1456 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1459 * docutils/writers/html4css1.py:
1461 - Fixed unencoded stylesheet reference bug (characters like "&" in
1462 stylesheet references).
1463 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1465 - Added support for multiple IDs per node by creating empty ``span``
1467 - Added the ``field_name_limit`` & ``option_limit`` settings &
1469 - Added support for table stub columns.
1470 - Added support for the ``align`` attribute on ``figure`` elements.
1471 - Added the ``cloak_email_addresses`` setting & support.
1472 - Added ``html_prolog``, ``html_head``, ``html_body``,
1473 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1474 ``docutils.core.publish_parts``.
1475 - Added support for section subtitles.
1477 * docutils/writers/latex2e.py:
1479 - Fixed tables starting with more than one multirow cell.
1480 - Improved --use-latex-docinfo so that organization/contact/address
1481 fields are lumped with the last author field and appear on the
1483 - Made sure the titlepage is always shown with --use-latex-docinfo,
1484 even if the document has no title.
1485 - Made sure that latex doesn't fill in today's date if no date field
1487 - Added support for section subtitles.
1489 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1490 (under development).
1492 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1494 * docs/api/publisher.txt:
1496 - Added "``publish_parts`` Details" section.
1498 * docutils/dev/repository.txt: Added to project; information about the
1499 Docutils Subversion repository.
1501 * docs/ref/docutils.dtd:
1503 - Added a ``stub`` attribute to the ``colspec`` element via the
1504 ``tbl.colspec.att`` parameter entity.
1505 - Allowed topic elements within sidebars
1506 - Added an ``align`` attribute to the ``figure`` element.
1508 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1512 Release 0.3.7 (2004-12-24)
1513 ==========================
1515 * docutils/frontend.py:
1517 - Added options: --input-encoding-error-handler,
1518 --record-dependencies, --leave-footnote-reference-space,
1520 - Added command-line and config file support for "overrides" setting
1525 - Added support for input encoding error handler.
1527 * docutils/nodes.py:
1529 - Added dispatch_visit and dispatch_departure methods to
1530 NodeVisitor; useful as a hook for Visitors.
1531 - Changed structure of ``line_block``; added ``line``.
1532 - Added ``compound`` node class.
1533 - Added a mechanism for Visitors to transitionally ignore new node
1536 * docutils/utils.py:
1538 - Moved ``escape2null`` and ``unescape`` functions from
1539 docutils/parsers/rst/states.py.
1541 * docutils/parsers/rst/roles.py:
1544 - Changed role function API: the "text" parameter now takes
1545 null-escaped interpreted text content.
1547 * docutils/parsers/rst/states.py:
1549 - Fixed bug where a "role" directive in a nested parse would crash
1550 the parser; the state machine's "language" attribute was not being
1552 - Added support for line block syntax.
1553 - Fixed directive parsing bug: argument-less directives didn't
1554 notice that arguments were present.
1555 - Removed error checking for transitions.
1556 - Added support for multiple classifiers in definition list items.
1557 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1558 - Changed role function API: the "text" parameter now takes
1559 null-escaped interpreted text content.
1560 - Empty sections and documents are allowed now.
1562 * docutils/parsers/rst/directives/__init__.py:
1564 - Added ``encoding`` directive option conversion function.
1565 - Allow multiple class names in class_option conversion function.
1567 * docutils/parsers/rst/directives/body.py:
1569 - Converted the line-block directive to use the new structure.
1570 - Extracted the old line-block functionality to the ``block``
1571 function (still used).
1572 - Added ``compound`` directive (thanks to Lea Wiemann).
1574 * docutils/parsers/rst/directives/misc.py:
1576 - Added "encoding" option to "include" and "raw" directives.
1577 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1578 - Allow multiple class names in the "class" directive.
1580 * docutils/parsers/rst/directives/parts.py:
1582 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1583 options. Thanks to Lele Gaifax.
1585 * docutils/parsers/rst/directives/tables.py:
1587 - Added "encoding" directive to "csv-table" directive.
1588 - Added workaround for lack of Unicode support in csv.py, for
1589 non-ASCII CSV input.
1591 * docutils/transforms/misc.py:
1593 - Fixed bug when multiple "class" directives are applied to a single
1595 - Enabled multiple format names for "raw" directive.
1597 * docutils/transforms/references.py:
1599 - Added support for trimming whitespace from beside substitution
1602 * docutils/transforms/universal.py:
1604 - FinalChecks now checks for illegal transitions and moves
1605 transitions between sections.
1607 * docutils/writers/html4css1.py:
1609 - HTMLTranslator.encode now converts U+00A0 to " ".
1610 - "stylesheet" and "stylesheet_path" settings are now mutually
1612 - Added support for the new line_block/line structure.
1613 - --footnote-references now overrides
1614 --trim-footnote-reference-space, if applicable.
1615 - Added support for ``compound`` elements.
1616 - Enabled multiple format names for "raw" directive.
1617 - ``<p>`` tags of a paragraph which is the only visible child of the
1618 document node are no longer stripped.
1619 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1620 new method ``should_be_compact_paragraph()``.
1621 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1623 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1624 the output if they have their ``class`` attribute set.
1625 - The whole document is now surrounded by a ``<div
1626 class="document">`` element.
1627 - Body-level images are now wrapped by their own ``<div>`` elements,
1628 with image classes copied to the wrapper, and for images which
1629 have the ``:align:`` option set, the surrounding ``<div>`` now
1630 receives a class attribute (like ``class="align-left"``).
1632 * docutils/writers/latex2e.py:
1634 - no newline after depart_term.
1635 - Added translations for some Unicode quotes.
1636 - Added option "font-encoding", made package AE the default.
1637 - "stylesheet" and "stylesheet_path" settings are now mutually
1639 - --footnote-references now overrides
1640 --trim-footnote-reference-space, if applicable.
1641 - The footnote label style now matches the footnote reference style
1642 ("brackets" or "superscript").
1643 - Added support for ``compound`` elements.
1644 - Enabled multiple format names for "raw" directive.
1646 * docs/ref/docutils.dtd:
1648 - Changed structure of the ``line_block`` element; added ``line``.
1649 - Added ``compound`` element.
1650 - Added "ltrim" and "rtrim" attributes to
1651 ``substitution_definition`` element.
1652 - Enabled multiple format names for ``raw`` element.
1653 - Enabled multiple classifiers in ``definition_list_item`` elements.
1655 * docs/ref/rst/directives.txt
1657 - Marked "line-block" as deprecated.
1658 - "Class" directive now allows multiple class names.
1659 - Added "Rationale for Class Attribute Value Conversion".
1660 - Added warning about "raw" overuse/abuse.
1662 * docs/ref/rst/restructuredtext.txt:
1664 - Added syntax for line blocks.
1665 - Definition list items may have multiple classifiers.
1667 * docs/ref/rst/roles.txt:
1671 * tools/stylesheets/default.css:
1673 - Added support for the new line_block structure.
1674 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1677 Release 0.3.5 (2004-07-29)
1678 ==========================
1682 * _`Documentation cleanup/reorganization`.
1684 - Created new subdirectories of docs/:
1686 * ``docs/user/``: introductory/tutorial material for end-users
1687 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1688 * ``docs/api/``: API reference material for client-developers
1689 * ``docs/ref/``: reference material for all groups
1690 * ``docs/howto/``: for component-developers and core-developers
1691 * ``docs/peps/``: Python Enhancement Proposals
1693 - Moved ``docs/*`` to ``docs/user/``.
1694 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1695 ``spec/`` to ``docs/dev``.
1696 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1697 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1698 - Moved ``alternatives.txt``, and ``problems.txt`` from
1699 ``spec/rst/`` to ``docs/dev/rst/``.
1700 - Moved ``reStructuredText.txt``, ``directives.txt``,
1701 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1702 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1703 ``roles.txt``, ``reStructuredText.txt`` to
1704 ``restructuredtext.txt``.
1705 - Moved ``spec/howto/`` to ``docs/howto``.
1707 In order to keep the CVS history of moved files, we supplied
1708 SourceForge with a `script for modifying the Docutils CVS
1711 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1713 After running the cleanup script:
1715 - Added ``docs/index.txt``.
1716 - Added a ``.htaccess`` file to the ``web`` module, containing
1717 redirects for all old paths to new paths. They'll preserve
1718 fragments (the "#name" part of a URL), and won't clutter up the
1719 file system, and will correct the URL in the user's browser.
1720 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1721 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1722 the "To Do" list itself in ``docs/dev/todo.txt``.
1723 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1724 section of ``docs/dev/todo.txt``.
1725 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1726 - Added "How To Report Bugs" to ``BUGS.txt``.
1727 - Went through all the sources and docs (including under web/) and
1728 updated links. Mostly done by Lea Wiemann; thanks Lea!
1729 (Still need to update links in the sandboxes.)
1733 * BUGS.txt: Added to project.
1735 * THANKS.txt: Added to project.
1737 * docutils/__init__.py:
1739 - 0.3.4: Post-release.
1743 - Added special error handling & advice for UnicodeEncodeError.
1744 - Refactored Publisher.publish (simplified exception handling &
1745 extracted debug dumps).
1746 - Renamed "enable_exit" parameter of convenience functions to
1747 "enable_exit_status".
1748 - Enabled traceback (exception propagation) by default in
1749 programmatic convenience functions.
1750 - Now publish_file and publish_cmdline convenience functions return
1751 the encoded string results in addition to their regular I/O.
1752 - Extracted common code from publish_file, publish_string, and
1753 publish_parts, into new publish_programmatically. Extracted
1754 settings code to ``Publisher.process_programmatic_settings``.
1755 - In Publisher.publish, disabled ``settings_overrides`` when
1756 ``settings`` is supplied; redundant.
1758 * docutils/frontend.py:
1760 - Added help text for "--output-encoding-error-handler" and
1761 "--error-encoding-error-handler".
1762 - Renamed "--exit" to "--exit-status".
1763 - Simplified default-setting code.
1765 * docutils/parsers/rst/__init__.py:
1767 - Added "--pep-base-url" and "--rfc-base-url" options.
1769 * docutils/parsers/rst/states.py:
1771 - Made URI recognition more aggressive and intelligent.
1773 * docutils/parsers/rst/directives/__init__.py:
1775 - Added several directive option conversion functions.
1777 * docutils/parsers/rst/directives/body.py:
1779 - Moved "table" directive to tables.py.
1781 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1784 * docutils/writers/latex2e.py:
1786 - Added "--table-style=(standard|booktabs|nolines)"
1787 - figures get "here" option (LaTeX per default puts them at bottom),
1788 and figure content is centered.
1789 - Rowspan support for tables.
1790 - Fix: admonition titles before first section.
1791 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1792 - Replave ``_`` in literal by an underlined blank, because it has the correct
1794 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1795 - A few unicode replacements, if output_encoding != utf
1796 - Add "--graphicx-option".
1797 - Indent literal-blocks.
1798 - Fix: omit ``\maketitle`` when there is no document title.
1800 * docs/index.txt: "Docutils Project Documentation Overview", added to
1803 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1804 Tool", added to project.
1806 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1808 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1810 * docs/dev/policies.txt: Added to project (extracted from
1811 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1813 * docs/dev/release.txt: Added to project (extracted from
1814 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1816 * docs/dev/testing.txt: Added to project.
1818 * docs/dev/website.txt: Added to project (extracted from
1819 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1821 * docs/ref/rst/directives.txt:
1823 - Added directives: "table", "csv-table".
1825 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1826 added to project. 1 page for syntax, and a 1 page reference for
1827 directives and roles. Source text to be used as-is; not meant to be
1830 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1831 with a change of title.
1833 * test/functional/, contents, and test/test_functional.py: Added to
1836 * tools/buildhtml.py: Fixed bug with config file handling.
1838 * tools/html.py: Removed from project (duplicate of rst2html.py).
1840 * tools/pep2html.py: Removed from project (duplicate of Python's
1841 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1842 Docutils-related PEPs in docs/peps/).
1844 * tools/rst2pseudoxml.py: Renamed from publish.py.
1846 * tools/rst2xml.py: Renamed from docutils-xml.py.
1848 * tools/test.txt: Removed from project; moved to
1849 docs/user/rst/demo.txt.
1851 * setup.py: Now also installs ``rst2latex.py``.
1854 Release 0.3.3 (2004-05-09)
1855 ==========================
1857 * docutils/__init__.py:
1859 - 0.3.1: Reorganized config file format (multiple sections); see
1861 - Added unknown_reference_resolvers attribute to TransformSpec.
1862 - 0.3.2: Interpreted text reorganization.
1867 - Catch system messages to stop tracebacks from parsing errors.
1868 - Catch exceptions during processing report & exit without
1869 tracebacks, except when "--traceback" used.
1870 - Reordered components for OptionParser; application comes last.
1871 - Added "config_section" parameter to several methods and functions,
1872 allowing front ends to easily specify their config file sections.
1873 - Added publish_parts convenience function to allow access to individual
1874 parts of a document.
1876 * docutils/examples.py: Added to project; practical examples of
1877 Docutils client code, to be used as-is or as models for variations.
1879 * docutils/frontend.py:
1881 - Added "--traceback" & "--no-traceback" options ("traceback"
1883 - Implemented support for config file reorganization:
1884 ``standard_config_files`` moved from ``ConfigParser`` to
1885 ``OptionParser``; added
1886 ``OptionParser.get_config_file_settings()`` and
1887 ``.get_standard_config_settings()``; support for old "[options]"
1888 section (with deprecation warning) and mapping from old to new
1890 - Reimplemented setting validation.
1891 - Enabled flexible boolean values: yes/no, true/false, on/off.
1892 - Added ``Values``, a subclass of ``optparse.Values``, with support
1893 for list setting attributes.
1894 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1895 thanks to Beni Cherniavsky.
1896 - Added "--no-section-numbering" option.
1900 - Catch IOErrors when opening source & destination files, report &
1901 exit without tracebacks. Added ``handle_io_errors`` parameter to
1902 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1904 * docutils/nodes.py:
1906 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1907 method definitions (via ``exec``) to dynamic assignments (via
1908 ``setattr``); thanks to Roman Suzi.
1909 - Encapsulated visitor dynamic assignments in a function; thanks to
1911 - Added indirect_reference_name attribute to the Targetable
1912 class. This attribute holds the whitespace_normalized_name
1913 (contains mixed case) of a target.
1915 * docutils/statemachine.py:
1917 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1918 - Added ``StringList.get_2D_block``.
1920 * docutils/utils.py:
1922 - Added "level" attribute to SystemMessage exceptions.
1924 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1927 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1930 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1931 Marcelo Huerta San Martin.
1933 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1934 mappings by Lalo Martins.
1936 * docutils/languages/ru.py: Added to project; Russian mappings by
1939 * docutils/parsers/rst/roles.py: Added to project. Contains
1940 interpreted text role functions, a registry for interpreted text
1941 roles, and an API for adding to and retrieving from the registry.
1942 Contributed by Edward Loper.
1944 * docutils/parsers/rst/states.py:
1946 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1947 - Allowed true em-dash character and "---" as block quote
1949 - Added support for <angle-bracketed> complex option arguments
1951 - Fixed handling of backslashes in substitution definitions.
1952 - Fixed off-by-1 error with extra whitespace after substitution
1953 definition directive.
1954 - Added inline markup parsing to field lists' field names.
1955 - Added support for quoted (and unindented) literal blocks.
1956 Driven in part by a bribe from Frank Siebenlist (thanks!).
1957 - Parser now handles escapes in URIs correctly.
1958 - Made embedded-URIs' reference text omittable. Idea from Beni
1960 - Refactored explicit target processing code.
1961 - Added name attribute to references containing the reference name only
1962 through whitespace_normalize_name (no case changes).
1963 - parse_target no longer returns the refname after going through
1964 normalize_name. This is now handled in make_target.
1965 - Fixed bug relating to role-less interpreted text in non-English
1967 - Reorganized interpreted text processing; moved code into the new
1968 roles.py module. Contributed by Edward Loper.
1969 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1970 ``parse_directive_block``.
1972 * docutils/parsers/rst/tableparser.py:
1974 - Reworked for ``StringList``, to support "include" directives in
1977 * docutils/parsers/rst/directives/__init__.py:
1979 - Renamed ``unchanged()`` directive option conversion function to
1980 ``unchanged_required``, and added a new ``unchanged``.
1981 - Catch unicode value too high error; fixes bug 781766.
1982 - Beefed up directive error reporting.
1984 * docutils/parsers/rst/directives/body.py:
1986 - Added basic "table" directive.
1988 * docutils/parsers/rst/directives/images.py:
1990 - Added "target" option to "image" directive.
1991 - Added name attribute to references containing the reference name only
1992 through whitespace_normalize_name (no case changes).
1994 * docutils/parsers/rst/directives/misc.py:
1996 - Isolated the import of the ``urllib2`` module; was causing
1997 problems on SourceForge (``libssl.so.2`` unavailable?).
1998 - Added the "role" directive for declaring custom interpreted text
2001 * docutils/parsers/rst/directives/parts.py:
2003 - The "contents" directive does more work up-front, creating the
2004 "topic" and "title", and leaving the "pending" node for the
2005 transform. Allows earlier reference resolution; fixes subtle bug.
2007 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
2008 mappings by Jannie Hofmeyr.
2010 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
2011 mappings by Marek Blaha.
2013 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
2014 mappings by Marcelo Huerta San Martin.
2016 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
2017 Portuguese mappings by Lalo Martins.
2019 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
2020 mappings by Roman Suzi.
2022 * docutils/transforms/parts.py:
2024 - The "contents" directive does more work up-front, creating the
2025 "topic" and "title", and leaving the "pending" node for the
2026 transform. Allows earlier reference resolution; fixes subtle bug.
2027 - Added support for disabling of section numbering.
2029 * docutils/transforms/references.py:
2031 - Verifying that external targets are truly targets and not indirect
2032 references. This is because we are now adding a "name" attribute to
2033 references in addition to targets. Note sure if this is correct!
2034 - Added code to hook into the unknown_reference_resolvers list for a
2035 transformer in resolve_indirect_target. This allows the
2036 unknown_reference_resolvers to keep around indirect targets which
2037 docutils doesn't know about.
2038 - Added specific error message for duplicate targets.
2040 * docutils/transforms/universal.py:
2042 - Added FilterMessages transform (removes system messages below the
2043 verbosity threshold).
2044 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
2045 to FinalCheckVisitor for application-specific handling of
2046 unresolvable references.
2047 - Added specific error message for duplicate targets.
2049 * docutils/writers/__init__.py:
2051 - Added assemble_parts method to the Writer class to allow for
2052 access to a documents individual parts.
2053 - Documented & set default for ``Writer.output`` attribute.
2055 * docutils/writers/html4css1.py:
2057 - Fixed unicode handling of attribute values (bug 760673).
2058 - Prevent duplication of "class" attribute values (bug report from
2060 - Improved table grid/border handling (prompted by report from Bob
2062 - Added support for table titles.
2063 - Added "<title />" for untitled docs, for XHTML conformance; thanks
2065 - Added functionality to keep track of individual parts of a document
2066 and store them in a dictionary as the "parts" attribute of the writer.
2067 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
2068 - Added proper support for the "scale" attribute of the "image"
2069 element. Contributed by Brent Cook.
2070 - Added ``--initial-header-level`` option.
2071 - Fixed bug: the body_pre_docinfo segment depended on there being a
2072 docinfo; if no docinfo, the document title was incorporated into
2073 the body segment. Adversely affected the publish_parts interface.
2075 * docutils/writers/latex2e.py:
2077 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
2078 about a missing file.
2079 - Added options and support: ``--compound-enumerators``,
2080 ``--section-prefix-for-enumerators``, and
2081 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
2083 - Added option ``--use-verbatim-when-possible``, to avoid
2084 problematic characters (eg, '~' in italian) in literal blocks.
2085 - It's now possible to use four section levels in the `book` and
2086 `report` LaTeX classes. The default `article` class still has
2089 * docs/config.txt: "Docutils Configuration Files", added to project.
2090 Moved config file entry descriptions from tools.txt.
2094 - Moved config file entry descriptions to config.txt.
2096 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
2099 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
2100 Text Roles", added to project.
2102 * spec/rst/reStructuredText.txt:
2104 - Added description of support for <angle-bracketed> complex option
2105 arguments to option lists.
2106 - Added subsections for indented and quoted literal blocks.
2108 * test: Continually adding & updating tests.
2110 - Added test/test_settings.py & test/data/config_*.txt support
2112 - Added test/test_writers/test_htmlfragment.py.
2114 * test/DocutilsTestSupport.py:
2116 - Refactored LaTeX publisher test suite/case class names to make
2117 testing other writers easier.
2118 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
2119 to test the processing of HTML fragments which use the new
2120 publish_parts convenience function.
2122 * tools/buildhtml.py:
2124 - Added support for the "--prune" option.
2125 - Removed dependency on pep2html.py; plaintext PEPs no longer
2128 * tools/docutils.conf:
2130 - Updated for configuration file reorganization.
2132 * tools/rst2html.py:
2134 - copied from tools/html.py
2138 - added a 'scripts' section to configuration
2139 - added 'tools/rst2html.py' to the scripts section
2142 Release 0.3 (2003-06-24)
2143 ========================
2147 * Renamed "attribute" to "option" for directives/extensions.
2149 * Renamed transform method "transform" to "apply".
2151 * Renamed "options" to "settings" for runtime settings (as set by
2152 command-line options). Sometimes "option" (singular) became
2153 "settings" (plural). Some variations below:
2155 - document.options -> document.settings (stored in other objects as
2157 - option_spec -> settings_spec (not directives though)
2158 - OptionSpec -> SettingsSpec
2159 - cmdline_options -> settings_spec
2160 - relative_path_options -> relative_path_settings
2161 - option_default_overrides -> settings_default_overrides
2162 - Publisher.set_options -> Publisher.get_settings
2166 * COPYING.txt: Added "Public Domain Dedication".
2168 * FAQ.txt: Frequently asked questions, added to project.
2172 - Updated with PyPI Trove classifiers.
2173 - Conditional installation of third-party modules.
2175 * docutils/__init__.py:
2177 - Bumped version to 0.2.1 to reflect changes to I/O classes.
2178 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
2179 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
2180 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
2181 option and its effect on the PEP template & writer.
2182 - Bumped version to 0.2.4 due to changes to the PEP template &
2184 - Bumped version to 0.2.5 to reflect changes to Reporter output.
2185 - Added ``TransformSpec`` class for new transform system.
2186 - Bumped version to 0.2.6 for API changes (renaming).
2187 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
2188 convenience functions.
2189 - Added ``Component.component_type`` attribute.
2190 - Bumped version to 0.2.8 because of the internal parser switch from
2191 plain lists to the docutils.statemachine.StringList objects.
2192 - Bumped version to 0.2.9 because of the frontend.py API changes.
2193 - Bumped version to 0.2.10 due to changes to the project layout
2194 (third-party modules removed from the "docutils" package), and
2195 signature changes in ``io.Input``/``io.Output``.
2196 - Changed version to 0.3.0 for release.
2200 - Made ``publish()`` a bit more convenient.
2201 - Generalized ``Publisher.set_io``.
2202 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
2203 parameters; improved its docstring.
2204 - Added ``publish_file()`` and ``publish_string()``.
2205 - Factored ``Publisher.set_source()`` and ``.set_destination()``
2207 - Added support for "--dump-pseudo-xml", "--dump-settings", and
2208 "--dump-transforms" hidden options.
2209 - Added ``Publisher.apply_transforms()`` method.
2210 - Added ``Publisher.set_components()`` method; support for
2211 ``publish_*()`` conveninece functions.
2212 - Moved config file processing to docutils/frontend.py.
2213 - Added support for exit status ("exit_level" setting &
2214 ``enable_exit`` parameter for Publisher.publish() and convenience
2217 * docutils/frontend.py:
2219 - Check for & exit on identical source & destination paths.
2220 - Fixed bug with absolute paths & "--config".
2221 - Set non-command-line defaults in ``OptionParser.__init__()``:
2222 ``_source`` & ``_destination``.
2223 - Distributed ``relative_path_settings`` to components; updated
2224 ``OptionParser.populate_from_components()`` to combine it all.
2225 - Require list of keys in ``make_paths_absolute`` (was implicit in
2226 global ``relative_path_settings``).
2227 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
2228 "--dump-settings", and "--dump-transforms" hidden options.
2229 - Removed nasty internals-fiddling ``ConfigParser.get_section``
2230 code, replaced with correct code.
2231 - Added validation functionality for config files.
2232 - Added "--error-encoding" option/setting, "_disable_config"
2234 - Added encoding validation; updated "--input-encoding" and
2235 "--output-encoding"; added "--error-encoding-error-handler" and
2236 "--output-encoding-error-handler".
2237 - Moved config file processing from docutils/core.py.
2238 - Updated ``OptionParser.populate_from_components`` to handle new
2239 ``SettingsSpec.settings_defaults`` dict.
2240 - Added support for "-" => stdin/stdout.
2241 - Added "exit_level" setting ("--exit" option).
2245 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
2246 - Added automatic closing to ``FileInput`` and ``FileOutput``.
2247 - Delayed opening of ``FileOutput`` file until ``write()`` called.
2248 - ``FileOutput.write()`` now returns the encoded output string.
2249 - Try to get path/stream name automatically in ``FileInput`` &
2251 - Added defaults for source & destination paths.
2252 - Allow for Unicode I/O with an explicit "unicode" encoding.
2253 - Added ``Output.encode()``.
2254 - Removed dependency on runtime settings; pass encoding directly.
2255 - Recognize Unicode strings in ``Input.decode()``.
2256 - Added support for output encoding error handlers.
2258 * docutils/nodes.py:
2260 - Added "Invisible" element category class.
2261 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2262 modification during a traversal.
2263 - Added element classes: ``line_block``, ``generated``, ``address``,
2264 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2265 ``superscript``, ``subscript``, ``inline``
2266 - Added support for lists of nodes to ``Element.insert()``.
2267 - Fixed parent linking in ``Element.replace()``.
2268 - Added new abstract superclass ``FixedTextElement``; adds
2269 "xml:space" attribute.
2270 - Added support for "line" attribute of ``system_message`` nodes.
2271 - Added support for the observer pattern from ``utils.Reporter``.
2272 Added ``parse_messages`` and ``transform_messages`` attributes to
2273 ``document``, removed ``messages``. Added ``note_parse_message``
2274 and ``note_transform_message`` methods.
2275 - Added support for improved diagnostics:
2277 - Added "document", "source", and "line" internal attributes to
2278 ``Node``, set by ``Node.setup_child()``.
2279 - Converted variations on ``node.parent = self`` to
2280 ``self.setup_child(node)``.
2281 - Added ``document.current_source`` & ``.current_line``
2282 attributes, and ``.note_source`` observer method.
2283 - Changed "system_message" output to GNU-Tools format.
2285 - Added a "rawsource" attribute to the ``Text`` class, for text
2286 before backslash-escape resolution.
2287 - Support for new transform system.
2288 - Reworked ``pending`` element.
2289 - Fixed XML DOM bug (SF #660611).
2290 - Removed the ``interpeted`` element class and added
2291 ``title_reference``, ``abbreviation``, ``acronym``.
2292 - Made substitutions case-sensitive-but-forgiving; moved some code
2294 - Fixed Unicode bug on element attributes (report: William Dode).
2296 * docutils/optik.py: Removed from project; replaced with
2297 extras/optparse.py and extras/textwrap.py. These will be installed
2298 only if they're not already present in the Python installation.
2300 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2301 only if it's not already present in the Python installation.
2303 * docutils/statemachine.py:
2305 - Factored out ``State.add_initial_transitions()`` so it can be
2307 - Converted whitespace-specific "blank" and "indent" transitions
2308 from special-case code to ordinary transitions: removed
2309 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2310 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2311 ``ws_initial_transitions`` attributes.
2312 - Removed ``State.match_transition()`` after merging it into
2314 - Added ``StateCorrection`` exception.
2315 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2316 (moved ``TransitionCorrection`` support there too.)
2317 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2318 ``EOFError`` instead of ``IndexError``.
2319 - Added ``State.no_match`` method.
2320 - Added support for the Observer pattern, triggered by input line
2322 - Added ``strip_top`` parameter to
2323 ``StateMachineWS.get_first_known_indented``.
2324 - Made ``context`` a parameter to ``StateMachine.run()``.
2325 - Added ``ViewList`` & ``StringList`` classes;
2326 ``extract_indented()`` becomes ``StringList.get_indented()``.
2327 - Added ``StateMachine.insert_input()``.
2328 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2329 thanks to) Fred Drake.
2331 * docutils/utils.py:
2333 - Added a ``source`` attribute to Reporter instances and
2334 ``system_message`` elements.
2335 - Added an observer pattern to ``utils.Reporter`` to keep track of
2337 - Fixed bugs in ``relative_path()``.
2338 - Added support for improved diagnostics.
2339 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2340 - Added support for encoding Reporter stderr output, and encoding
2342 - Reporter keeps track of the highest level system message yet
2345 * docutils/languages: Fixed bibliographic field language lookups.
2347 * docutils/languages/es.py: Added to project; Spanish mappings by
2348 Marcelo Huerta San Martin.
2350 * docutils/languages/fr.py: Added to project; French mappings by
2353 * docutils/languages/it.py: Added to project; Italian mappings by
2356 * docutils/languages/sk.py: Added to project; Slovak mappings by
2359 * docutils/parser/__init__.py:
2361 - Added ``Parser.finish_parse()`` method.
2363 * docutils/parser/rst/__init__.py:
2365 - Added options: "--pep-references", "--rfc-references",
2366 "--tab-width", "--trim-footnote-reference-space".
2368 * docutils/parsers/rst/states.py:
2370 - Changed "title under/overline too short" system messages from INFO
2371 to WARNING, and fixed its insertion location.
2372 - Fixed enumerated list item parsing to allow paragraphs & section
2373 titles to begin with enumerators.
2374 - Converted system messages to use the new "line" attribute.
2375 - Fixed a substitution reference edge case.
2376 - Added support for "--pep-references" and "--rfc-references"
2377 options; reworked ``Inliner`` code to make customization easier.
2378 - Removed field argument parsing.
2379 - Added support for short section title over/underlines.
2380 - Fixed "simple reference name" regexp to ignore text like
2381 "object.__method__"; not an anonymous reference.
2382 - Added support for improved diagnostics.
2383 - Reworked directive API, based on Dethe Elza's contribution. Added
2384 ``Body.parse_directive()``, ``.parse_directive_options()``,
2385 ``.parse_directive_arguments()`` methods.
2386 - Added ``ExtensionOptions`` class, to parse directive options
2387 without parsing field bodies. Factored
2388 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2389 ``ExtensionOptions``.
2390 - Improved definition list term/classifier parsing.
2391 - Added warnings for unknown directives.
2392 - Renamed ``Stuff`` to ``Struct``.
2393 - Now flagged as errors: transitions at the beginning or end of
2394 sections, empty sections (except title), and empty documents.
2395 - Updated for ``statemachine.StringList``.
2396 - Enabled recognition of schemeless email addresses in targets.
2397 - Added support for embedded URIs in hyperlink references.
2398 - Added backslash-escapes to inline markup end-string suffix.
2399 - Added support for correct interpreted text processing.
2400 - Fixed nested title parsing (topic, sidebar directives).
2401 - Added special processing of backslash-escaped whitespace (idea
2402 from David Abrahams).
2403 - Made substitutions case-sensitive-but-forgiving; moved some code
2404 to ``docutils.nodes``.
2405 - Added support for block quote attributions.
2406 - Added a kludge to work-around a conflict between the bubble-up
2407 parser strategy and short titles (<= 3 char-long over- &
2408 underlines). Fixes SF bug #738803 "infinite loop with multiple
2409 titles" submitted by Jason Diamond.
2410 - Added explicit interpreted text roles for standard inline markup:
2411 "emphasis", "strong", "literal".
2412 - Implemented "superscript" and "subscript" interpreted text roles.
2413 - Added initial support for "abbreviation" and "acronym" roles;
2415 - Added support for "--trim-footnote-reference-space" option.
2416 - Optional space before colons in directives & hyperlink targets.
2418 * docutils/parsers/rst/tableparser.py:
2420 - Fixed a bug that was producing unwanted empty rows in "simple"
2422 - Detect bad column spans in "simple" tables.
2424 * docutils/parsers/rst/directives: Updated all directive functions to
2427 * docutils/parsers/rst/directives/__init__.py:
2429 - Added ``flag()``, ``unchanged()``, ``path()``,
2430 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2431 directive option helper functions.
2432 - Added warnings for unknown directives.
2433 - Return ``None`` for missing directives.
2434 - Added ``register_directive()``, thanks to William Dode and Paul
2437 * docutils/parsers/rst/directives/admonitions.py:
2439 - Added "admonition" directive.
2441 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2442 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2443 "parsed-literal", "rubric", "epigraph", "highlights" and
2444 "pull-quote" directives.
2446 * docutils/parsers/rst/directives/images.py:
2448 - Added an "align" attribute to the "image" & "figure" directives
2449 (by Adam Chodorowski).
2450 - Added "class" option to "image", and "figclass" to "figure".
2452 * docutils/parsers/rst/directives/misc.py:
2454 - Added "include", "raw", and "replace" directives, courtesy of
2456 - Added "unicode" and "class" directives.
2458 * docutils/parsers/rst/directives/parts.py:
2460 - Added the "sectnum" directive; by Dmitry Jemerov.
2461 - Added "class" option to "contents" directive.
2463 * docutils/parsers/rst/directives/references.py: Added to project.
2464 Contains the "target-notes" directive.
2466 * docutils/parsers/rst/languages/__init__.py:
2468 - Return ``None`` from get_language() for missing language modules.
2470 * docutils/parsers/rst/languages/de.py: Added to project; German
2471 mappings by Engelbert Gruber.
2473 * docutils/parsers/rst/languages/en.py:
2475 - Added interpreted text roles mapping.
2477 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2478 mappings by Marcelo Huerta San Martin.
2480 * docutils/parsers/rst/languages/fr.py: Added to project; French
2481 mappings by William Dode.
2483 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2484 mappings by Nicola Larosa.
2486 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2487 mappings by Miroslav Vasko.
2489 * docutils/readers/__init__.py:
2491 - Added support for the observer pattern from ``utils.Reporter``, in
2492 ``Reader.parse`` and ``Reader.transform``.
2493 - Removed ``Reader.transform()`` method.
2494 - Added default parameter values to ``Reader.__init__()`` to make
2495 instantiation easier.
2496 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2498 * docutils/readers/pep.py:
2500 - Added the ``peps.TargetNotes`` transform to the Reader.
2501 - Removed PEP & RFC reference detection code; moved to
2502 parsers/rst/states.py as options (enabled here by default).
2503 - Added support for pre-acceptance PEPs (no PEP number yet).
2504 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2507 * docutils/readers/python: Python Source Reader subpackage added to
2508 project, including preliminary versions of:
2511 - moduleparser.py: Parser for Python modules.
2513 * docutils/transforms/__init__.py:
2515 - Added ``Transformer`` class and completed transform reform.
2516 - Added unknown_reference_resolvers list for each transformer. This list holds
2517 the list of functions provided by each component of the transformer that
2518 help resolve references.
2520 * docutils/transforms/frontmatter.py:
2522 - Improved support for generic fields.
2523 - Fixed bibliographic field language lookups.
2525 * docutils/transforms/misc.py: Added to project. Miscellaneous
2528 * docutils/transforms/parts.py:
2530 - Moved the "id" attribute from TOC list items to the references
2531 (``Contents.build_contents()``).
2532 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2533 - Added "class" attribute support to ``Contents``.
2535 * docutils/transforms/peps.py:
2537 - Added ``mask_email()`` function, updating to pep2html.py's
2539 - Linked "Content-Type: text/x-rst" to PEP 12.
2540 - Added the ``TargetNotes`` PEP-specific transform.
2541 - Added ``TargetNotes.cleanup_callback``.
2542 - Added title check to ``Headers``.
2544 * docutils/transforms/references.py:
2546 - Added the ``TargetNotes`` generic transform.
2547 - Split ``Hyperlinks`` into multiple transforms.
2548 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2549 - Added check for circular indirect references.
2550 - Made substitutions case-sensitive-but-forgiving.
2552 * docutils/transforms/universal.py:
2554 - Added support for the "--expose-internal-attributes" option.
2555 - Removed ``Pending`` transform classes & data.
2557 * docutils/writers/__init__.py:
2559 - Removed ``Writer.transform()`` method.
2561 * docutils/writers/docutils-xml.py:
2563 - Added XML and doctype declarations.
2564 - Added "--no-doctype" and "--no-xml-declaration" options.
2566 * docutils/writers/html4css1.py:
2568 - "name" attributes only on these tags: a, applet, form, frame,
2570 - Added "name" attribute to <a> in section titles for Netscape 4
2571 support (bug report: Pearu Peterson).
2572 - Fixed targets (names) on footnote, citation, topic title,
2573 problematic, and system_message nodes (for Netscape 4).
2574 - Changed field names from "<td>" to "<th>".
2575 - Added "@" to "@" encoding to thwart address harvesters.
2576 - Improved the vertical whitespace optimization; ignore "invisible"
2577 nodes (targets, comments, etc.).
2578 - Improved inline literals with ``<span class="pre">`` around chunks
2579 of text and `` `` for runs of spaces.
2580 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2581 ``self.docinfo`` segments.
2582 - Added support for "line_block", "address" elements.
2583 - Improved backlinks (footnotes & system_messages).
2584 - Improved system_message output.
2585 - Redefined "--stylesheet" as containing an invariant URL, used
2586 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2588 - Added "--footnote-references" option (superscript or brackets).
2589 - Added "--compact-lists" and "--no-compact-lists" options.
2590 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2591 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2592 - Improved field list rendering.
2593 - Added Docutils version to "generator" meta tag.
2594 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2595 - Improved layout of <pre> HTML source.
2596 - Fixed attribute typo on <colspec>.
2597 - Refined XML prologue.
2598 - Support for no stylesheet.
2599 - Removed "interpreted" element support.
2600 - Added support for "title_reference", "sidebar", "attribution",
2601 "rubric", and generic "admonition" elements.
2602 - Added "--attribution" option.
2603 - Added support for "inline", "subscript", "superscript" elements.
2604 - Added initial support for "abbreviation" and "acronym";
2607 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2611 - Double quotes in literal blocks (special treatment for de/ngerman).
2612 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2613 - Added "--attribution" option.
2614 - Right align attributions.
2616 * docutils/writers/pep_html.py:
2618 - Parameterized output encoding in PEP template.
2619 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2620 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2621 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2623 - Added an override on the "--footnote-references" option.
2624 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2625 - Added Docutils version to "generator" meta tag.
2626 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2630 - Added a "silent" setting for ``buildhtml.py``.
2631 - Added a "Getting Help" section.
2632 - Rearranged the structure.
2633 - Kept up to date, with new settings, command-line options etc.
2634 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2635 - Converted settings table into a definition list.
2637 * docs/rst/quickstart.txt:
2639 - Added a table of contents.
2640 - Added feedback information.
2641 - Added mention of minimum section title underline lengths.
2642 - Removed the 4-character minimum for section title underlines.
2644 * docs/rst/quickref.html:
2646 - Added a "Getting Help" section.
2647 - Added a style to make section title backlinks more subtle.
2648 - Added mention of minimum section title underline lengths.
2649 - Removed the 4-character minimum for section title underlines.
2651 * extras: Directory added to project; contains third-party modules
2652 that Docutils depends on (optparse, textwrap, roman). These are
2653 only installed if they're not already present.
2655 * licenses: Directory added to project; contains copies of license
2656 files for non-public-domain files.
2660 - Changed the focus. It's about DTD elements: structural
2661 relationships, semantics, and external (public) attributes. Not
2662 about the element class library.
2663 - Moved some implementation-specific stuff into ``docutils.nodes``
2665 - Wrote descriptions of all common attributes and parameter
2666 entities. Filled in introductory material.
2667 - Working through the element descriptions: 55 down, 37 to go.
2668 - Removed "Representation of Horizontal Rules" to
2669 spec/rst/alternatives.txt.
2671 * spec/docutils.dtd:
2673 - Added "generated" inline element.
2674 - Added "line_block" body element.
2675 - Added "auto" attribute to "title".
2676 - Changed content models of "literal_block" and "doctest_block" to
2678 - Added ``%number;`` attribute type parameter entity.
2679 - Changed ``%structural.elements;`` to ``%section.elements``.
2680 - Updated attribute types; made more specific.
2681 - Added "address" bibliographic element.
2682 - Added "line" attribute to ``system_message`` element.
2683 - Removed "field_argument" element; "field_name" may contain
2684 multiple words and whitespace.
2685 - Changed public identifier to docutils.sf.net.
2686 - Removed "interpreted" element; added "title_reference",
2687 "abbreviation", "acronym".
2688 - Removed "refuri" attribute from "footnote_reference" and
2689 "citation_reference".
2690 - Added "sidebar", "rubric", "attribution", "admonition",
2691 "superscript", "subscript", and "inline" elements.
2693 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2695 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2697 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2699 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2702 * spec/transforms.txt: Added to project.
2704 * spec/howto: Added subdirectory, for developer how-to docs.
2706 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2707 Elza, edited & extended by David Goodger.
2709 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2712 * spec/rst/alternatives.txt:
2714 - Added "Doctree Representation of Transitions" from
2716 - Updated "Inline External Targets" & closed the debate.
2717 - Added ideas for interpreted text syntax extensions.
2718 - Added "Nested Inline Markup" section.
2720 * spec/rst/directives.txt:
2722 - Added directives: "topic", "sectnum", "target-notes",
2723 "line-block", "parsed-literal", "include", "replace", "sidebar",
2724 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2726 - Formalized descriptions of directive details.
2727 - Added an "align" attribute to the "image" & "figure" directives
2728 (by Adam Chodorowski).
2729 - Added "class" options to "topic", "sidebar", "line-block",
2730 "parsed-literal", "contents", and "image"; and "figclass" to
2733 * spec/rst/interpreted.txt: Added to project. Descriptions of
2734 interpreted text roles.
2736 * spec/rst/introduction.txt:
2738 - Added pointers to material for new users.
2740 * spec/rst/reStructuredText.txt:
2742 - Disambiguated comments (just add a newline after the "::").
2743 - Updated enumerated list description; added a discussion of the
2744 second-line validity checking.
2745 - Updated directive description.
2746 - Added a note redirecting newbies to the user docs.
2747 - Expanded description of inline markup start-strings in non-markup
2749 - Removed field arguments and made field lists a generic construct.
2750 - Removed the 4-character minimum for section title underlines.
2751 - Clarified term/classifier delimiter & inline markup ambiguity
2753 - Added "Embedded URIs".
2754 - Updated "Interpreted Text" section.
2755 - Added "Character-Level Inline Markup" section.
2757 * test: Continually adding & updating tests.
2759 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2760 - Moved test/test_pep/ to test/test_readers/test_pep/.
2761 - Added test/test_readers/test_python/.
2762 - Added test/test_writers/ (Engelbert Gruber).
2766 - Made the ``locale.setlocale()`` calls in front ends
2769 * tools/buildhtml.py:
2771 - Added "--silent" option.
2772 - Fixed bug with absolute paths & "--config".
2773 - Updated for new I/O classes.
2774 - Added some exception handling.
2775 - Separated publishers' setting defaults; prevents interference.
2776 - Updated for new ``publish_file()`` convenience function.
2778 * tools/pep-html-template:
2780 - Allow for "--embed-stylesheet".
2781 - Added Docutils version to "generator" meta tag.
2782 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2783 - Conform to XHTML spec.
2785 * tools/pep2html.py:
2787 - Made ``argv`` a parameter to ``main()``.
2788 - Added support for "Content-Type:" header & arbitrary PEP formats.
2789 - Linked "Content-Type: text/plain" to PEP 9.
2790 - Files skipped (due to an error) are not pushed onto the server.
2791 - Updated for new I/O classes.
2792 - Added ``check_requirements()`` & ``pep_type_error()``.
2793 - Added some exception handling.
2794 - Updated for new ``publish_string()`` convenience function.
2795 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2797 * tools/quicktest.py:
2799 - Added "-V"/"--version" option.
2801 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2803 * tools/unicode2rstsubs.py: Added to project. Produces character
2804 entity files (reSructuredText substitutions) from the MathML master
2807 * tools/editors: Support code for editors, added to project. Contains
2808 ``emacs/restructuredtext.el``.
2810 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2812 - Added style for chunks of inline literals.
2813 - Removed margin for first child of table cells.
2814 - Right-aligned field list names.
2815 - Support for auto-numbered section titles in TOCs.
2816 - Increased the size of inline literals (<tt>) in titles.
2817 - Restored the light gray background for inline literals.
2818 - Added support for "line_block" elements.
2819 - Added style for "address" elements.
2820 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2821 - Improved field list rendering.
2822 - Vertical whitespace improvements.
2823 - Removed "a.target" style.
2825 * tools/stylesheets/pep.css:
2827 - Fixed nested section margins.
2828 - Other changes parallel those of ``../default.css``.
2831 Release 0.2 (2002-07-31)
2832 ========================
2836 - The word "component" was being used ambiguously. From now on,
2837 "component" will be used to mean "Docutils component", as in Reader,
2838 Writer, Parser, or Transform. Portions of documents (Table of
2839 Contents, sections, etc.) will be called "document parts".
2840 - Did a grand renaming: a lot of ``verylongnames`` became
2841 ``very_long_names``.
2842 - Cleaned up imports: no more relative package imports or
2843 comma-separated lists of top-level modules.
2844 - Added support for an option values object which carries default
2845 settings and overrides (from command-line options and library use).
2846 - Added internal Unicode support, and support for both input and
2848 - Added support for the ``docutils.io.IO`` class & subclasses.
2852 * docutils/__init__.py:
2854 - Added ``ApplicationError`` and ``DataError``, for use throughout
2856 - Added ``Component`` base class for Docutils components; implements
2857 the ``supports`` method.
2858 - Added ``__version__`` (thus, ``docutils.__version__``).
2862 - Removed many keyword parameters to ``Publisher.__init__()`` and
2863 ``publish()``; bundled into an option values object. Added
2864 "argv", "usage", "description", and "option_spec" parameters for
2865 command-line support.
2866 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2868 - Reworked I/O model for ``docutils.io`` wrappers.
2869 - Updated ``Publisher.set_options()``; now returns option values
2871 - Added support for configuration files (/etc/docutils.conf,
2872 ./docutils.conf, ~/.docutils).
2873 - Added ``Publisher.setup_option_parser()``.
2874 - Added default usage message and description.
2876 * docutils/frontend.py: Added to project; support for front-end
2877 (command-line) scripts. Option specifications may be augmented by
2878 components. Requires Optik (http://optik.sf.net/) for option
2879 processing (installed locally as docutils/optik.py).
2881 * docutils/io.py: Added to project; uniform API for a variety of input
2884 * docutils/nodes.py:
2886 - Added ``TreeCopyVisitor`` class.
2887 - Added a ``copy`` method to ``Node`` and subclasses.
2888 - Added a ``SkipDeparture`` exception for visitors.
2889 - Renamed ``TreePruningException`` from ``VisitorException``.
2890 - Added docstrings to ``TreePruningException``, subclasses, and
2892 - Improved docstrings.
2893 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2894 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2896 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2897 ``PreDecorative`` mixin.
2898 - Reworked the name/id bookkeeping; to ``document``, removed
2899 ``explicit_targets`` and ``implicit_targets`` attributes, added
2900 ``nametypes`` attribute and ``set_name_id_map`` method.
2901 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2903 - Added ``document.has_name()`` method.
2904 - Fixed DOM generation for list-attributes.
2905 - Added category class ``Labeled`` (used by footnotes & citations).
2906 - Added ``Element.set_class()`` method (sets "class" attribute).
2908 * docutils/optik.py: Added to project. Combined from the Optik
2909 package, with added option groups and other modifications. The use
2910 of this module is probably only temporary.
2912 * docutils/statemachine.py:
2914 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2915 - Added underscores to improve many awkward names.
2916 - In ``string2lines()``, changed whitespace normalizing translation
2917 table to regexp; restores Python 2.0 compatibility with Unicode.
2919 * docutils/urischemes.py:
2921 - Filled in some descriptions.
2922 - Added "shttp" scheme.
2924 * docutils/utils.py:
2926 - Added ``clean_rcs_keywords`` function (moved from
2927 docutils/transforms/frontmatter.py
2928 ``DocInfo.filter_rcs_keywords``).
2929 - Added underscores to improve many awkward names.
2930 - Changed names of Reporter's thresholds:
2931 warning_level -> report_level; error_level -> halt_level.
2932 - Moved ``utils.id()`` to ``nodes.make_id()``.
2933 - Added ``relative_path(source, target)``.
2935 * docutils/languages/de.py: German mappings; added to project. Thanks
2936 to Gunnar Schwant for the translations.
2938 * docutils/languages/en.py: Added "Dedication" bibliographic field
2941 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2944 * docutils/parsers/rst/states.py:
2946 - Added underscores to improve many awkward names.
2947 - Added RFC-2822 header support.
2948 - Extracted the inline parsing code from ``RSTState`` to a separate
2949 class, ``Inliner``, which will allow easy subclassing.
2950 - Made local bindings for ``memo`` container & often-used contents
2951 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2952 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2953 - Added ``MarkupMismatch`` exception; for late corrections.
2954 - Added ``-/:`` characters to inline markup's start string prefix,
2955 ``/`` to end string suffix.
2956 - Fixed a footnote bug.
2957 - Fixed a bug with literal blocks.
2958 - Applied patch from Simon Budig: simplified regexps with symbolic
2959 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2960 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2961 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2962 - Allowed non-ASCII in "simple names" (directive names, field names,
2964 - Converted ``Inliner.patterns.initial`` to be dynamically built
2965 from parts with ``build_regexp()`` function.
2966 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2967 - Updated docstrings.
2968 - Changed "table" to "grid_table"; added "simple_table" support.
2970 * docutils/parsers/rst/tableparser.py:
2972 - Changed ``TableParser`` to ``GridTableParser``.
2973 - Added ``SimpleTableParser``.
2974 - Refactored naming.
2976 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2977 a fallback language for directive names.
2979 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2980 directive to use a ``pending`` element, used only by HTML writers.
2982 * docutils/parsers/rst/directives/parts.py: Renamed from
2985 - Added "backlinks" attribute to "contents" directive.
2987 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2988 project by Adam Chodorowski.
2990 * docutils/readers/__init__.py: Gave Readers more control over
2991 choosing and instantiating Parsers.
2993 * docutils/readers/pep.py: Added to project; for PEP processing.
2995 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2996 requires a ``component`` parameter.
2998 * docutils/transforms/components.py: Added to project; transforms
2999 related to Docutils components.
3001 * docutils/transforms/frontmatter.py:
3003 - In ``DocInfo.extract_authors``, check for a single "author" in an
3004 "authors" group, and convert it to a single "author" element.
3005 - Added support for "Dedication" and generic bibliographic fields.
3007 * docutils/transforms/peps.py: Added to project; PEP-specific.
3009 * docutils/transforms/parts.py: Renamed from old components.py.
3011 - Added filter for `Contents`, to use alt-text for inline images,
3012 and to remove inline markup that doesn't make sense in the ToC.
3013 - Added "name" attribute to TOC topic depending on its title.
3014 - Added support for optional TOC backlinks.
3016 * docutils/transforms/references.py: Fixed indirect target resolution
3017 in ``Hyperlinks`` transform.
3019 * docutils/transforms/universal.py:
3021 - Changed ``Messages`` transform to properly filter out system
3022 messages below the warning threshold.
3023 - Added ``Decorations`` transform (support for ``--generator``,
3024 ``--date``, ``--time``, ``--source-link`` options).
3026 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
3027 Engelbert Gruber's PDF writer.
3029 * docutils/writers/html4css1.py:
3031 - Made XHTML-compatible (switched to lowercase element & attribute
3032 names; empty tag format).
3033 - Escape double-dashes in comment text.
3034 - Improved boilerplate & modularity of output.
3035 - Exposed modular output in Writer class.
3036 - Added a "generator" meta tag to <head>.
3037 - Added support for the ``--stylesheet`` option.
3038 - Added support for ``decoration``, ``header``, and ``footer``
3040 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
3041 translation table to regexp; restores Python 2.0 compatibility
3043 - Added the translator class as instance variable to the Writer, to
3044 make it easily subclassable.
3045 - Improved option list spacing (thanks to Richard Jones).
3046 - Modified field list output.
3047 - Added backlinks to footnotes & citations.
3048 - Added percentage widths to "<col>" tags (from colspec).
3049 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
3050 "<span>" changed to "<var>".
3051 - Inline literals: "<code>" changed to "<tt>".
3052 - Many changes to optimize vertical space: compact simple lists etc.
3053 - Add a command-line options & directive attributes to control TOC
3054 and footnote/citation backlinks.
3055 - Added support for optional footnote/citation backlinks.
3056 - Added support for generic bibliographic fields.
3057 - Identify backrefs.
3058 - Relative URLs for stylesheet links.
3060 * docutils/writers/pep_html.py: Added to project; HTML Writer for
3061 PEPs (subclass of ``html4css1.Writer``).
3063 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
3065 * docutils/writers/docutils_xml.py: Added to project; trivial writer
3066 of the Docutils internal doctree in XML.
3068 * docs/tools.txt: "Docutils Front-End Tools", added to project.
3072 - Changed the title to "The Docutils Document Tree".
3073 - Added "Hyperlink Bookkeeping" section.
3075 * spec/docutils.dtd:
3077 - Added ``decoration``, ``header``, and ``footer`` elements.
3078 - Brought ``interpreted`` element in line with the parser: changed
3079 attribute "type" to "role", added "position".
3080 - Added support for generic bibliographic fields.
3082 * spec/notes.txt: Continual updates. Added "Project Policies".
3084 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
3087 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
3089 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
3090 mailing list discussions.
3092 * spec/pep-0287.txt:
3094 - Renamed to "reStructuredText Docstring Format".
3096 - Reworked Q&A as an enumerated list.
3097 - Converted to reStructuredText format.
3099 * spec/pysource.dtd:
3101 - Reworked structural elements, incorporating ideas from Tony Ibbs.
3103 * spec/pysource.txt: Removed from project. Moved much of its contents
3106 * spec/rst/alternatives.txt:
3108 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
3109 - Added "Inline External Targets" section.
3111 * spec/rst/directives.txt:
3113 - Added "backlinks" attribute to "contents" directive.
3115 * spec/rst/problems.txt:
3117 - Updated the Enumerated List Markup discussion.
3118 - Added new alternative table markup syntaxes.
3120 * spec/rst/reStructuredText.txt:
3122 - Clarified field list usage.
3123 - Updated enumerated list description.
3124 - Clarified purpose of directives.
3125 - Added ``-/:`` characters to inline markup's start string prefix,
3126 ``/`` to end string suffix.
3127 - Updated "Authors" bibliographic field behavior.
3128 - Changed "inline hyperlink targets" to "inline internal targets".
3129 - Added "simple table" syntax to supplement the existing but
3130 newly-renamed "grid tables".
3131 - Added cautions for anonymous hyperlink use.
3132 - Added "Dedication" and generic bibliographic fields.
3134 * test: Made test modules standalone (subdirectories became packages).
3136 * test/DocutilsTestSupport.py:
3138 - Added support for PEP extensions to reStructuredText.
3139 - Added support for simple tables.
3140 - Refactored naming.
3142 * test/package_unittest.py: Renamed from UnitTestFolder.py.
3144 - Now supports true packages containing test modules
3145 (``__init__.py`` files required); fixes duplicate module name bug.
3147 * test/test_pep/: Subpackage added to project; PEP testing.
3149 * test/test_rst/test_SimpleTableParser.py: Added to project.
3153 - Updated html.py and publish.py front-end tools to use the new
3154 command-line processing facilities of ``docutils.frontend``
3155 (exposed in ``docutils.core.Publisher``), reducing each to just a
3157 - Added ``locale.setlocale()`` calls to front-end tools.
3159 * tools/buildhtml.py: Added to project; batch-generates .html from all
3160 the .txt files in directories and subdirectories.
3162 * tools/default.css:
3164 - Added support for ``header`` and ``footer`` elements.
3165 - Added styles for "Dedication" topics (biblio fields).
3167 * tools/docutils.conf: A configuration file; added to project.
3169 * tools/docutils-xml.py: Added to project.
3171 * tools/pep.py: Added to project; PEP to HTML front-end tool.
3173 * tools/pep-html-template: Added to project.
3175 * tools/pep2html.py: Added to project from Python (nondist/peps).
3176 Added support for Docutils (reStructuredText PEPs).
3178 * tools/quicktest.py:
3180 - Added the ``--attributes`` option, hacked a bit.
3181 - Added a second command-line argument (output file); cleaned up.
3183 * tools/stylesheets/: Subdirectory added to project.
3185 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
3188 Release 0.1 (2002-04-20)
3189 ========================
3191 This is the first release of Docutils, merged from the now inactive
3192 reStructuredText__ and `Docstring Processing System`__ projects. For
3193 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
3194 `DPS HISTORY`__ files.
3196 __ http://structuredtext.sourceforge.net/
3197 __ http://docstring.sourceforge.net/
3198 __ http://structuredtext.sourceforge.net/HISTORY.html
3199 __ http://docstring.sourceforge.net/HISTORY.html
3201 General changes: renamed 'dps' package to 'docutils'; renamed
3202 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
3203 the test suites (reStructuredText's test/test_states renamed to
3204 test/test_rst); and all modifications required to make it all work.
3206 * docutils/parsers/rst/states.py:
3208 - Improved diagnostic system messages for missing blank lines.
3209 - Fixed substitution_reference bug.
3215 indent-tabs-mode: nil
3216 sentence-end-double-space: t