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 * docs/ref/rst/restructuredtext.txt:
22 - Added documentation for escaped whitespace in URI contexts.
24 * docutils/parsers/rst/states.py:
26 - Added functionality: escaped whitespace in URI contexts.
27 - Recognize non-ASCII whitespace around inline literal, target,
30 * docutils/utils/__init__.py:
32 - Added ``split_escaped_whitespace`` function, support for escaped
33 whitespace in URI contexts.
37 - New front-end ``rst2html4.py``.
40 Release 0.13.1 (2016-12-09)
41 ===========================
43 * docutils/languages/fa.py
44 docutils/parsers/rst/languages/fa.py
45 docutils/languages/la.py
46 docutils/parsers/rst/languages/la.py:
48 - Apply [ 133 ] Persian mappings by Shahin Azad.
49 - Apply [ 135 ] Language modules for Latvian by Alexander Smishlajev
53 - Fix [ 253 ] Attribute key without value not allowed in XML.
57 - Apply [ 103 ] Recognize inline markups without word boundaries.
58 - Enable escaping in embedded URIs and aliases (fixes [ 284 ]).
60 * docutils/parsers/rst/__init__.py
62 - Fix [ 233 ] Change the base URL for the :rfc: role.
64 * docutils/parsers/rst/directives/tables.py
66 - Apply [ 120 ] tables accept option widths: list of relative widths, 'auto'
69 - Implement feature request [ 48 ]
70 Add :align: option to the table directives.
71 Thanks to Takeshi KOMIYA for the patch.
73 * docutils/parsers/rst/roles.py
75 - Fix [ 295 ] Class argument for custom role inheriting from math.
77 * docutils/parsers/rst/tableparser.py
79 - Really fix [ 159 ] Spurious table column alignment errors.
81 * docutils/transforms/frontmatter.py
83 - Add name of generic bibliographic fields as a "classes" attribute value
84 (after conversion to a valid identifier form).
86 * docutils/utils/error_reporting.py
88 - Fix [ 130 ] support streams expectiong byte-strings in ErrorOutput.
90 * docutils/utils/math/math2html.py
92 - Add ``\colon`` macro, fix spacing around colons. Fixes [ 246 ].
93 - New upstream version (additional macros, piecewise integrals and sums).
95 * docutils/writers/_html_base.py
97 - New auxiliary module for definitions common to all HTML writers.
99 * docutils/writers/html5_polyglot/
101 - New HTML writer generating clean, polyglot_ markup conforming to
104 The CSS stylesheets ``minimal.css`` and ``plain.css`` contain required
105 and recommended layout rules.
107 * docutils/writers/html4css1/__init__.py
109 - Add "docutils" to class values for "container" object to address [ 267 ].
110 - Apply patch [ 119 ] by Anatoly Techtonik: use absolute paths for
111 ``default_stylesheet_path`` and ``default_template_path``.
112 - Fix [ 266 ] creating labels/class values in description list items.
113 - Do not use <sup> and <sub> tags inside <pre> (parsed-literal blocks).
114 - Fix footnotes with content that does not start with a paragraph.
115 - Use https in default MathJax URL (report Alan G Isaac).
116 - Outsourcing of common code to _html_base.py.
118 * docutils/writers/latex2e/__init__.py
120 - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
121 admonitions and docinfo.
123 - Use absolute path for ``default_template_path``.
125 - Removed deprecated options ``--use-latex-footnotes`` and
126 ``--figure-footnotes``.
128 - Cleaner LaTeX code for enumerations and literal blocks.
130 - Use "hyperref" package together with "bookmark" (improved hyperlinking
133 - Fix [ 286 ] Empty column title cause invalid latex file.
135 - Fix [ 224 ] Fix rowspan support for tables.
137 - Let LaTeX determine the column widths in tables with "colwidths-auto".
138 Not suited for with multi-paragraph cells!
140 * docutils/writers/odf_odt/__init__.py
142 - remove decode.encode of filename stored in zip.
144 * docutils/writers/xetex/__init__.py
146 - LuaLaTex compatibility: do not load "xunicode".
150 - New front-end ``rst2html5.py``.
154 - Test py26, py27, py33 and py34.
156 To use, install the ``tox`` package via pip or easy_install and use
157 tox from the project root directory.
159 .. _polyglot: http://www.w3.org/TR/html-polyglot/
160 .. _HTML 5: http://www.w3.org/TR/html5/
161 .. _XHTML 1.0: http://www.w3.org/TR/xhtml1/
164 Release 0.12 (2014-07-06)
165 =========================
167 * docs/ref/rst/directives.txt
169 - Update "math" and "csv-table" descriptions.
171 * docutils/parsers/rst/directives/images.py
173 - Fix [ 258 ] figwidth="image" generates unitless width value.
175 * docutils/parsers/rst/states.py
177 - Improve error report when a non-ASCII character is specified as
178 delimiter, quote or escape character under Python 2.
179 Fixes [ 249 ] and [ 250 ].
181 * docutils/writers/html4css1/__init__.py
183 - Don't add newline after inline math.
184 Thanks to Yury G. Kudryashov for the patch.
186 * docutils/writers/latex2e/__init__.py
188 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
189 - Apply [ 116 ] by Kirill Smelkov. Don't hardcode \large for subtitle.
191 * docutils/writers/odf_odt/__init__.py
193 - Apply patch by Jakub Wilk to fix bug [ 100 ].
195 * test/test_error_reporting.py
197 - Fix [ 223 ] by removing redundant tests we do not have control over.
201 - Apply [ 115 ] respect fixed 2to3 string literal conversion behavior.
203 Release 0.11 (2013-07-22)
204 =========================
208 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
209 - Support embedded aliases within hyperlink references.
210 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
211 language module) before global search.
215 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
217 * docutils/parsers/rst/directives/__init__.py
219 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
221 * docutils/parsers/rst/directives/images.py
223 - Apply [ 3599485 ] node source/line information for sphinx translation.
225 * docutils/parsers/rst/directives/tables.py
227 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
229 * docutils/parsers/rst/states.py
231 - Fix [ 157 ] Line block parsing doesn't like system message.
232 - Always import our local copy of roman.py (report Larry Hastings).
234 * docutils/transforms/references.py
236 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
238 * docutils/utils/__init__.py
240 - Fix [ 3596884 ] exception importing ``docutils.io``.
242 * docutils/writers/html4css1/__init__.py
244 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
245 - New setting `stylesheet_dirs`: Comma-separated list of directories
246 where stylesheets are found. Used by `stylesheet_path` when expanding
247 relative path arguments.
248 - New default for math-output_: ``HTML math.css``.
249 - Avoid repeated class declarations in html4css1 writer
250 (modified version of patch [ 104 ]).
252 .. _math-output: docs/user/config.html#math-output
254 * docutils/writers/latex2e/__init__.py
256 - Drop the simple algorithm replacing straight double quotes with
257 English typographic ones.
258 Activate the SmartQuotes_ transform if you want this feature.
259 - Fix literal use of babel shorthands (straight quote, tilde, ...).
260 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
261 - New setting `stylesheet_dirs`.
263 .. _SmartQuotes: docs/user/config.html#smart-quotes
265 * docutils/writers/manpage.py
267 - Fix [3607063] handle lines starting with a period.
268 - Fix option separating comma was bold (thanks to Bill Morris).
270 Release 0.10 (2012-12-16)
271 =========================
275 - Dropped support for Python 2.3.
276 - ``docutils/math``, ``docutils/error_reporting.py``, and
277 ``docutils/urischemes.py`` moved to the utils package.
278 - Fix [3541369] Relative __import__ also with Python 3.3.
279 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
280 and parsers for Python 2.7 up.
281 - Fix import of PIL.Image.
282 - Change default of "syntax highlight" option to "long",
283 basic syntax highlight styles for LaTeX and HTML.
287 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
288 option is ignored and will be removed in a future release.
289 - Fix Py3k error writing to stdout with encoding differing from default.
290 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
292 * docutils/parsers/rst/directives/misc.py
294 - Fix [ 3546533 ] Unicode error with `date` directive.
296 * docutils/transforms/universal.py
298 - SmartQuotes transform for typographic quotes and dashes.
300 * docutils/utils/__init__.py
302 - normalize_language_tag() now returns `BCP 47`_ conformant tags
303 with subtags separated by ``-``.
305 * docutils/writers/html4css1/__init__.py
307 - Use ``<code>`` tag for inline "code",
308 do not drop nested inline nodes (syntax highlight tokens).
309 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
310 - No line break after opening inline math tag.
312 * docutils/writers/manpage.py
314 - Apply [ 3527401 ] addmonition's don't preserve indentation
315 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
317 * docutils/writers/xetex/__init__.py
319 - Apply [ 3555160 ] ensure order of "otherlanguages".
320 - Fix section numbering by LaTeX.
322 * docutils/writers/s5_html/__init__.py
324 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
326 * docutils/writers/s5_html/docutils_xml.py
328 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
329 - Fix/improve output with ``--indent`` option.
333 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
335 * tools/test/test_buildhtml.py
337 - Fix [ 3521167 ] allow running in any directory.
338 - Fix [ 3521168 ] allow running with Python 3.
341 Release 0.9.1 (2012-06-17)
342 ==========================
346 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
347 installed in the PYTHONPATH. Converted tests are now
348 stored in ``test3/``, tools no longer need conversion.
350 If you installed one of Docutils versions 0.7 ... 0.9 with
351 ``setup.py install`` under Python 3, remove the spurious
352 ``test/`` and ``tools/`` directories in the site library root.
356 - Make tests independent from the location of the ``test/`` directory.
357 - Use converted sources (from the ``build/`` directory) for tests under
362 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
366 - Fix writing binary data to sys.stdout under Python 3 (allows
367 ``rst2odt.py`` to be used with output redirection).
369 * docutils/parsers/rst/directives/misc.py
371 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
372 ``locale == C`` and 8-bit char in path argument of `include` directive.
376 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
379 Release 0.9 (2012-05-02)
380 ========================
384 - New reStructuredText "code" role and directive and "code" option
385 of the "include" directive with syntax highlighting by Pygments_.
386 - Fix parse_option_marker for option arguments containing ``=``.
387 - Fix [ 2993756 ]: import Python Imaging Library's Image module
388 via ``import PIL`` as starting with PIL 1.2,
389 "PIL lives in the PIL namespace only" (announcement__).
391 .. _Pygments: http://pygments.org/
392 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
396 - Fix [ 2971827 ] and [ 3442827 ]
397 extras/roman.py moved to docutils/utils/roman.py
399 * docutils/frontend.py
401 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
405 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
406 - `mode` argument for FileOutput avoids code replication in
408 - New exceptions InputError and OutputError for IO errors in
409 FileInput/FileOutput.
413 - No "hard" system exit on file IO errors: catch and report them in
414 `Publisher.reportException` instead. Allows handling by a calling
415 application if the configuration setting `traceback` is True.
417 * docutils/utils.py -> docutils/utils/__init__.py
419 - docutils.utils is now a package (providing a place for sub-modules)
421 .. note:: docutils/math, docutils/error_reporting.py, and
422 docutils/urischemes.py will move to the utils package in the next
423 release, too. See RELEASE-NOTES__
425 __ RELEASE-NOTES.html
427 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
428 errors recording non-ASCII filenames (fixes [ 3434355 ]).
430 - Fix relative_path() with source=None and `unicode` target.
432 * docutils/parsers/rst/states.py
434 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
435 characters and "international" quotes around inline markup.
436 - Use `field_marker` pattern to look for start of a
437 directive option block (fixes [ 3484857 ]).
439 * docutils/parsers/rst/tableparser.py
441 - Fix [ 2926161 ] for simple tables.
442 (Combining chars in grid tables still contribute to cell width.)
444 * docutils/writers/latex2e/__init__.py
446 - Support the `abbreviation` and `acronym` standard roles.
447 - Record only files required to generate the LaTeX source as dependencies.
448 - Fix handling of missing stylesheets.
449 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
450 when suppressing LaTeX section numbering.
451 - Use ``\DUtitle`` for unsupported section levels
452 - Apply [ 3512791 ] do not compare string literals with "is"
454 * docutils/writers/xetex/__init__.py
456 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
458 * docutils/writers/html4css1/__init__.py
460 - Change default for `math-output` setting to MathJax.
461 - Fix handling of missing stylesheets.
463 * docutils/writers/docutils_xml.py
465 - Use the visitor pattern with default_visit()/default_depart() methods
466 instead of minidom to facilitate special handling of selected nodes.
467 - Support raw XML (inserted as-is inside a <raw></raw> node).
469 * docutils/writers/manpage.py
471 - Do not emit comment line with trailing blank. Problematic for VCS.
473 Release 0.8.1 (2011-08-30)
474 ==========================
478 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
479 and [ 3395920 ] (correct copyright info for rst.el).
483 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
485 * docutils/writers/latex2e/__init__.py
487 - Clean up Babel language setting. Restores Sphinx compatibility.
489 Release 0.8 (2011-07-07)
490 ========================
494 - Handle language codes according to `BCP 47`_.
495 - If the specified language is not supported by Docutils,
496 warn and fall back to English.
497 - Math support: reStructuredText "math" role and directive,
498 ``math`` and ``math_block`` doctree elements.
499 - Decode command line arguments with the locale's preferred encoding
500 (to allow, e.g., ``--title=Dornröschen``).
501 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
502 - New sub-module `error_reporting`: handle encoding/decoding errors
503 when reporting exceptions.
504 - Some additions to the Docutils core are released under the 2-Clause BSD
505 license, see COPYING_ for details.
507 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
508 .. _COPYING: COPYING.html
512 - Most directives now support a "name" option that attaches a
515 - Directive content may start on the first line also when the directive
516 type accepts options.
518 * docs/dev/policies.txt:
520 - Recommend the 2-Clause BSD license
521 (http://www.spdx.org/licenses/BSD-2-Clause)
522 for code that is kept under the author's copyright.
524 * tools/buildhtml.py:
526 - Fix ``--local`` switch.
528 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
530 * docutils/writers/html4css1/__init__.py
532 - Set "lang" argument for objects with class argument
533 "language-<language tag>".
534 - New setting "math-output" with support for HTML, MathML, and LaTeX.
536 * docutils/writers/latex2e/__init__.py
538 - Fix [ 3043986 ] AttributeError using :local: with table of content.
539 - Place title data in the document preamble.
540 - Load `babel` package only if required.
541 - Update list of supported languages.
542 - New config setting "hyperref-options".
543 No hard-coded "unicode" hyperref option (clash with xetex).
544 - Set language for custom roles, paragraphs, block-quotes, and
545 line-quotes with class argument "language-<language tag>".
546 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
547 - Convert image URI to a local file path.
548 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
549 has more than one paragraph (Wolfgang Scherer).
550 - \leavevmode before longtable only when needed (prevents spurious vspace)
551 - do not advance table counter for tables without caption
553 * docutils/writers/xetex/__init__.py
555 - New writer generating LaTeX code for compiling with ``xelatex``.
557 A separate writer (inheriting from latex2e) instead of a ``--xetex``
558 option allows separate config options for XeTeX vs. LaTeX2e.
560 * docutils/writers/manpage.py
562 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
563 - Fix: vertical space cleaning for option group ``.``.
565 * tools/editors/emacs/rst.el:
567 - Fix [ 3001100 ] does not handle spaces in filenames
568 (thanks to Jakub Wilk)
572 - strip whitespace from stylesheet arguments
573 - exclude combining chars from column_width()
574 (partial fix for [ 2926161 ])
576 * docutils/parsers/rst/directives/misc.py:
578 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
583 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
584 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
586 Release 0.7 (2010-07-07)
587 ========================
591 - Fix [ 2881769 ] setup configuration.
592 - Fix [ 2788716 ] reporting problems in included files.
596 - FileInput opens files as text files with universal newline support
597 (mode "rU", configurable with the new optional argument "mode").
601 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
605 - Fix [ 2923723 ] let decode_path() tolerate path == None
607 * docutils/writers/html4css1/__init__.py
609 - Support SVG and SWF images (thanks to Stefan Rank).
610 - Generate valid XHTML for centered images with targets.
611 Use CSS classes instead of "align" tags for image alignment.
613 * docutils/writers/latex2e/__init__.py
615 - Use `transforms.writer_aux.Admonitions` to "normalize" special
617 - Use the ``\url`` command for URLs (breaks long URLs instead of
618 writing into the margin).
619 - Preserve runs of spaces in `inline literals`__.
620 - Deprecate ``figure_footnotes`` setting.
621 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
622 - New ``latex_preamble`` setting.
623 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
624 - Fix hyperlink targets (labels) for images, figures, and tables.
625 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
626 - Apply [ 2961991 ] Call hyperref with unicode option.
627 - Drop the special `output_encoding`__ default ("latin-1").
628 The Docutils wide default (usually "UTF-8") is used instead.
629 - Render inline markup in document title and subtitle.
630 - Fix numbering depth with LaTeX section numbering.
631 - Update Unicode -> LaTeX translations.
632 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
634 __ docs/ref/restructuredtext.html#inline-literals
635 __ docs/user/config.html#docutils-footnotes
636 __ docs/user/config.html#output_encoding
638 * docutils/writers/manpage.py
640 - Fix: supported attribute (thanks to peter2108).
641 - Remove trailing blanks in code (keep in sync with mercurial version).
642 - Titles level 1, that is ``.SH``, always uppercase.
643 - Apply patch from mg: literal text should be bold in man-pages.
647 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
652 - Python 3 support: copy test/ and tools/ to the build-dir
653 and convert Python sources with 2to3.
656 Release 0.6 (2009-10-11)
657 ========================
661 - Docutils is now compatible with Python versions from 2.3 up to 2.6
662 and convertible to 3.1 code.
664 + Node.__nonzero__ returns True instead of 1.
665 + use os.walk instead os.path.walk.
666 + minimize "types" module where possible.
667 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
668 + Text nodes now subclass unicode rather than UserString
669 (which is gone in python 3.0).
670 + 3.0 compatibility module docutils._compat
672 + Drop 2.2 compatibility workarounds.
673 + Drop extras/optparse.py and extras/textwrap.py
674 (stdlib modules since 2.3).
676 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
677 - Unix man page export: manpage writer moved from sandbox to Doctutils
680 - Apply [ 1719345 ] Galician translation
681 - Apply [ 1905741 ] Polish translation
682 - Apply [ 1878977 ] make_id(): deaccent characters.
683 - Apply [ 2029251 ] return nonzero when tests fail.
684 - Fix [ 1692788 ] allow UTF-8 in style sheets.
685 - Fix [ 2781629 ] support non-ASCII chars in file names.
686 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
687 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
688 - Fix [ 2821266 ] --strict option works now like --halt=info.
689 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
690 - Fix [ 1627229 ] hyperlink references in substitutions.
692 - The "newlatex" writer is orphaned.
696 - Documented Unicode characters allowed as inline markup openers,
697 closers, and delimiters.
698 - Allow units for all length specifications.
699 - Allow percent sign in "scale" argument of "figure" and "image" directives.
700 - Bugfix: The "figalign" argument of a figure now works as intended
701 (aligning the figure, not its contents).
702 - Align images with class "align-[right|center|left]"
703 (allows setting the alignment of an image in a figure).
707 - Added ``Element.__contains__`` method, for the in-operator.
709 * docutils/parsers/rst/states.py:
711 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
712 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
713 " " (non-breaking space), and "¡ ¿" openers.
715 * docutils/parsers/directives/misc.py:
717 - Added ``start-line`` and ``end-line`` options to "include"
718 directive to select a range of lines.
719 - Hard tabs in literal inclusions are replaced by spaces. This is
720 configurable via the new ``tab-width`` option of the "include" directive
721 (a negative tab-width prevents tab expansion).
725 - Add ``get_stylesheet_list`` function.
726 - Apply [ 2834836 ] print info at halt
728 * docutils/transforms/universal.py:
730 - Raise default priority of StripClasses to exclude stripped classes from
733 * docutils/writers/html4css1/__init__.py:
735 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
736 separated list of stylesheets.
737 - Address [ 1938891 ] Inline literal text creates "pre" span only when
738 needed to prevent inter-word line wraps.
739 - Use `translate` method instead of repeated `replace` calls.
740 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
741 classes to allow CSS styling that does not interfere with other
742 table-using constructs (field lists, citations, ...).
744 * docutils/writers/newlatex2e/__init__.py:
746 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
748 * docutils/writers/latex2e/__init__.py (see also
749 `<docs/user/docutils-05-compat.sty.html>`__) :
751 - Add ``--embed-stylesheet`` option.
752 - Apply [ 1474017 ] image vertical alignment is reversed.
753 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
754 - Change: has_key for dictionaries (not Nodes) to in-operator.
755 - Merge adjacent citations into one latex cite command.
756 - Failsave implementation of custom roles. LaTeX compilation now ignores
757 unknown classes instead of aborting with an error.
758 - Support custom roles based on standard roles.
759 - LaTeX packages can be used as ``--stylesheet`` arguments without
760 restriction. (A style sheet is now referenced with the ``\usepackage``
761 command, if it ends with ``.sty`` or has no extension.)
762 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
763 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
764 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
765 2005-02-04 as a configurable length unit).
766 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
767 if font-encoding is set to ''. LaTeX defaults to OT1 then.
768 - Set sub- and superscript role argument in text mode not as math.
769 Use a custom role based on sub-/superscript if you want italic shape.
770 - Shorter preamble and less dependencies: Load packages and define macros
771 only if required in the document.
772 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
773 - New custom environments and commands with optional "classes" argument.
774 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
775 - Better conformance to Docutils specifications with ``--use-latex-toc``.
776 Support for LaTeX generated ToC also with unnumbered sections.
777 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
778 section numbering by LaTeX.
779 - Use default font in admonitions and sidebar.
780 - Align of image in a figure defaults to 'center'.
781 - Bugfix: Newlines around targets and references prevent run-together
783 - Fix internal hyperlinks.
784 - Use class defaults for page margins ('typearea' now optional).
785 - Float placement made configurable, default changed to "here definitely".
786 - Typeset generic topic as "quote block with title".
787 - Use template (file and configuration option).
788 - In the default template, load cmap.sty (fix text extraction in PDF) and
789 fixltx2e.sty (LaTeX patches, \textsubscript).
790 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
791 - Use `translate` instead of repeated `replace` calls for text encoding.
792 - Hyperlinked footnotes and support for symbol footnotes and
793 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
794 - Complete pairs of binary options
795 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
796 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
798 - font-encoding: "T1" (formerly implicitely set by 'ae').
799 - use-latex-toc: true (ToC with page numbers).
800 - use-latex-footnotes: true (no mixup with figures).
802 * docutils/writers/manpage.py
804 - Do not print version at document end, this is done by the viewer.
805 - Do not print date at document end, this is done by the viewer.
806 - Fix storage of docinfo fields for none standard fields.
808 * docutils/tools/rst2man.py
810 Release 0.5 (2008-06-25)
811 ========================
813 * docutils/languages/he.py: Added to project: Hebrew mappings by
816 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
817 mappings by Meir Kriheli.
819 * docutils/frontend.py:
821 - Configuration files are now assumed and required to be
823 - Paths of applied configuration files are now recorded in the
824 runtime setting ``_config_files`` (accessible via
825 ``--dump-settings``).
826 - Added ``--strip-elements-with-class`` and ``--strip-class``
827 options (``strip_elements_with_classes`` and ``strip_classes``
832 - Added code to determine the input encoding from data: encoding
833 declarations or the presence of byte order marks (UTF-8 & UTF-16).
834 - Added support for IronPython 1.0.
838 - Added ``document.__getstate__`` method, for pickling.
840 * docutils/parsers/rst/states.py:
842 - Allow ``+`` and ``:`` in reference names.
843 - Unquoted targets beginning with an underscore (``.. __target:
844 URI``) are no longer accepted.
845 - Added support for multiple attributions in a physical block quote
846 (indented text block), dividing it into multiple logical block
848 - Added support for unicode bullets in bullet lists: "•", "‣", and
850 - Added support for new object-oriented directive interface,
851 retaining compatibility to the old functional interface.
852 - Added support for throwing ``DirectiveError``'s from within
855 * docutils/parsers/rst/__init__.py:
857 - Added ``Directive`` base class.
858 - Added ``DirectiveError`` base class.
859 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
862 * docutils/parsers/directives/:
864 - Refactored all reStructuredText directives to use the new
865 object-oriented directive interface. Errors are now (mostly)
866 thrown using the new ``DirectiveError`` class.
868 * docutils/parsers/directives/misc.py:
870 - Added ``start-after`` and ``end-before`` options to ``include``
871 directive; thanks to Stefan Rank.
873 * docutils/transforms/universal.py:
875 - Added ``StripClassesAndElements`` transform to remove from the
876 document tree all elements with classes in
877 ``settings.strip_elements_with_classes`` and all "classes"
878 attribute values in ``self.document.settings.strip_classes``.
880 * docutils/transforms/writer_aux.py:
882 - Added ``Admonitions`` transform to transform specific admonitions
883 (like ``note``, ``warning``, etc.) into generic admonitions with a
886 * docutils/writers/html4css1/__init__.py:
888 - Moved template functionality from the PEP/HTML writer here.
889 - Expanded the fragments available in the ``parts`` attribute.
890 - Moved ``id`` attributes from titles to surrounding ``div``
892 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
893 universally supported now).
894 - ``template.txt`` is now opened in text mode instead of binary mode
895 (to ensure Windows compatibility).
896 - ``a`` elements now have an "internal" or "external" class,
897 depending on reference type.
899 * docutils/writers/html4css1/template.txt: Added to project.
901 * docutils/writers/pep_html/:
903 - Moved template functionality to the HTML writer.
905 * docutils/writers/s5_html/__init__.py:
907 - Added ``view_mode`` & ``hidden_controls`` settings
908 (``--view-mode`` & ``--hidden-controls/--visible-controls``
911 * docutils/writers/latex2e/__init__.py:
913 - Add ``--literal-block-env``
914 - Fix: escaping ``%`` in href urls.
915 - Move usepackage hyperref after stylesheet inclusion.
916 - Fix: scrartcl does not have chapter but scrreprt.
917 - Add newline after ``\end{verbatim}``.
918 - Merge smaller differences from latex2e_adaptive_preamble.
919 - Add ``use-part-section``.
920 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
921 - Using leavemode option_list no longer needs to check if parent
922 is a definition list.
923 - Append ``\leavemode`` to definition list terms.
924 - No longer write visit\_/depart_definition_list_item comments to
926 - Table column width with 3 decimal places.
927 - Add table stubs support (boldfont).
928 - Add assemble_parts to writer.
929 - Add simply support for nested tables.
930 - Fix verbatim in tables if use-verbatim-when-possible.
931 - Use section commands down to subparagraph.
932 - Put ensuremath around some latin1 chars.
933 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
934 - New option ``--use-bibtex=style,db1,db2``.
935 - New option ``--reference-label`` to allow usage of LaTeX ref for
936 labels in section references.
937 - Add a label after every section to support sectionnumbers as reference
939 - Fix: bug# 1605376 rst2latex: bad options group list
940 - Remove inactive code for use_optionlist_for_option_list.
941 - Remove latex comments from option_list output.
942 - Fix: bug# 1612270 double qoutes in italian literal.
943 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
944 - Add option --use-latex-abstract.
945 - Image width unit ``px`` is translated to ``pt``.
946 - Add image height support.
947 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
949 - Fix: Do not escape underscores in citation reference labels if
950 use-latex-citations is set.
951 - Use centering instead of center for figure contents, to avoid vertical
953 - Recognize table class: borderless, nolines, booktabs, standard.
954 - Fix: Renaming contents section does not work with latex writer; SF
956 - Applied patch for custom roles with classes from Edward Loper.
957 - Fixed bug that caused crashes with more than 256 lists.
959 * docutils/writers/pep_html/__init__.py:
961 - Changed to support new python.org website structure and
964 * docs/howto/security.txt: "Deploying Docutils Securely", added to
967 * tools/buildhtml.py:
969 -- Added ``ignore`` setting to exclude a list of shell patterns
970 (default: ``.svn:CVS``).
972 * tools/editors/emacs/rst.el:
974 - Changed license to "GPL".
975 - Added ``rst-straighten-decorations`` function.
976 - The ``compile`` module is now always loaded.
977 - Added ``rst-toggle-line-block`` function.
978 - Headings consisting only of non-ASCII characters are now
979 recognized by ``rst-toc`` and ``rst-adjust``.
980 - Added font-lock support for multi-line comments where the first
981 comment line is empty.
982 - Added ``(require 'font-lock)``.
986 - Provide descriptive error message if distutils is missing.
989 Release 0.4 (2006-01-09)
990 ========================
994 - Updated the project policies for trunk/branch development &
997 * docutils/__init__.py:
999 - Added ``__version_details__`` attribute to describe code source
1000 (repository/snapshot/release).
1001 - Replaced ``default_transforms`` attribute of TransformSpec with
1002 ``get_transforms()`` method.
1006 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
1007 functions, for document tree extraction and reprocessing.
1011 - Added ``DocTreeInput`` class, for reprocessing existing documents.
1012 - Added support for non-Unicode (e.g. binary) writer output.
1014 * docutils/nodes.py:
1016 - Re-introduced ``Targetable.indirect_reference_name``, for
1017 MoinMoin/reST compatibility (removed in r3124/r3129).
1018 - Added ``serial_escape`` function; escapes string values that are
1019 elements of a list, for serialization. Modified Docutils-XML
1020 writing (``Element._dom_node``) and pseudo-XML writing
1021 (``Element.starttag``) to use ``serial_escape``.
1022 - Added ``Node.deepcopy()`` method.
1023 - Removed the internal lists ``document.substitution_refs``,
1024 ``document.anonymous_refs``, and ``document.anonymous_targets``.
1025 - Added a "container" element.
1026 - Fixed bug where values of list-valued attributes of elements
1027 originating from custom interpreted text roles (i.e., with custom
1028 classes) were being shared between element instances. Reported by
1031 * docutils/statemachine.py:
1033 - Added trailing whitespace stripping to ``string2lines()``.
1034 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
1035 Asian double-width character support.
1037 * docutils/utils.py:
1039 - Added ``east_asian_column_width()`` for double-width character
1042 * docutils/languages/ja.py: Added to project: Japanese mappings by
1045 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
1046 mappings by Panjunyong.
1048 * docutils/parsers/null.py: Added to project; a do-nothing parser.
1050 * docutils/parsers/rst/__init__.py:
1052 - Added validator to tab_width setting, with test. Closes SF bug
1053 #1212515, report from Wu Wei.
1055 * docutils/parsers/rst/states.py:
1057 - Fixed bug with escaped colons indicating a literal block.
1058 - Fixed bug with enumerated lists (SF#1254145).
1059 - Backslash-escaped colons inside of field names are now allowed.
1060 - Targets (implicit and explicit), anonymous hyperlink references
1061 and auto-numbered footnote references inside of substitution
1062 definitions are now disallowed.
1063 - Fixed bug: list items with blank first lines.
1064 - Fixed bug: block quote attributions with indented second lines.
1065 - Added East Asian double-width character support (Python 2.4 only).
1067 * docutils/parsers/rst/tableparser.py:
1069 - Added East Asian double-width character support (Python 2.4 only).
1071 * docutils/parsers/rst/directives/body.py:
1073 - Added the "container" directive.
1075 * docutils/parsers/rst/directives/misc.py:
1077 - Added the "default-role", "title", and "date" directives.
1078 - Added standard data file syntax to the "include" directive.
1079 - Added support for "class" directive content.
1081 * docutils/parsers/rst/directives/images.py:
1083 - Added ``indirect_reference_name`` support for images with a target
1085 - Added support for image width and height units.
1086 - Fixed bug with image "target" options.
1088 * docutils/parsers/rst/directives/references.py:
1090 - Added "class" attribute to "target-notes" directive, for
1091 footnote_reference classes.
1093 * docutils/parsers/rst/include/: Directory added to project; contains
1094 standard data files for the "include" directive. Initial contents:
1095 character entity substitution definition sets, and a set of
1096 definitions for S5/HTML presentations.
1098 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
1099 mappings by David Goodger.
1101 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
1102 Simplified Chinese mappings by Panjunyong.
1104 * docutils/readers/__init__.py:
1106 - Added universal.Decorations and universal.ExposeInternals
1107 transforms as default transforms for all readers.
1108 - Added ``ReReader`` base class for readers that reread an existing
1111 * docutils/readers/doctree.py: Added to project; a reader for existing
1114 * docutils/transforms/frontmatter.py:
1116 - Fixed the DocInfo transform to handle SVN-style expansion of the
1118 - In ``DocInfo.extract_authors``, treat the contents of "authors"
1121 * docutils/transforms/misc.py:
1123 - Added misc.Transitions transform, extracted from
1124 universal.FinalChecks.
1126 * docutils/transforms/references.py:
1128 - Added references.DanglingReferences transform, extracted from
1129 universal.FinalChecks.
1130 - Fixed bug with doubly-indirect substitutions.
1131 - Added footnote_reference classes attribute to "TargetNotes".
1132 - Fixed bug with circular substitution definitions that put Docutils
1133 into an infinite loop.
1135 * docutils/transforms/universal.py:
1137 - Added universal.ExposeInternals transform, extracted from
1138 universal.FinalChecks.
1139 - Removed universal.FinalChecks transform (logic has been moved to
1140 several new transforms).
1141 - Fixed bug with the "expose_internals" setting and Text nodes
1142 (exposed by the "rawsource" internal attribute).
1143 - Added the universal.StripComments transform, implementation of the
1144 "strip_comments" setting.
1146 * docutils/transforms/writer_aux.py: Added to project; auxiliary
1147 transforms for writers.
1149 - Added ``Compound`` transform, which flattens compound paragraphs.
1151 * docutils/writers/: Several writer modules (html4css1.py) were
1152 converted into packages. Support modules and data files have been
1153 moved into the packages. The stylesheets for the HTML writers are
1154 now installed along with the code, the code knows where to find
1155 them, and the default is to use them (actually, to embed them).
1156 Some adjustments to configuration files may be necessary. The
1157 easiest way to obtain the new default behavior is to remove all
1158 settings whose name includes "stylesheet".
1160 * docutils/writers/__init__.py:
1162 - Added universal.Messages and universal.FilterMessages transforms
1163 as default transforms for all writers.
1164 - Added ``UnfilteredWriter`` base class for writers that pass the
1165 document tree on unchanged.
1167 * docutils/writers/docutils_xml.py:
1169 - Made ``xmlcharrefreplace`` the default output encoding error
1172 * docutils/writers/html4css1/:
1174 - Added support for image width and height units.
1175 - Made ``xmlcharrefreplace`` the default output encoding error
1177 - Made ``--embed-stylesheet`` the default rather than
1178 ``--link-stylesheet``.
1179 - Moved "id" attribute from container (section etc.) to title's <a>
1180 tag, to be on the same tag as "name".
1181 (!!! To be reverted in Docutils 0.5.)
1182 - Added vertical space between fields of field lists.
1183 - Added ``--compact-field-lists`` option to remove vertical space in
1185 - Made cloaking of email addresses with ``--cloak-email-addresses``
1187 - Fixed support for centered images.
1188 - Added support for class="compact" & class="open" lists.
1190 * docutils/writers/latex2e/:
1192 - Underscores in citekeys are no longer escaped.
1194 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1195 mapping of Unicode characters to LaTeX equivalents.
1197 * docutils/writers/s5_html/: Package added to project; writer for
1198 S5/HTML slide shows.
1200 * docs/dev/distributing.txt: Added to project; guide for distributors
1201 (package maintainers).
1203 * docs/dev/hacking.txt: Added to project; guide for developers.
1205 * docs/ref/doctree.txt:
1207 - Updated for plural attributes "classes", "ids", "names",
1209 - Added the "container" element.
1211 * docs/ref/docutils.dtd:
1213 - Updated for plural attributes "classes", "ids", "names",
1216 * docs/user/emacs.txt: Added to project; a document about Emacs
1217 support for reStructuredText and Docutils.
1219 * docs/user/links.txt: Added to project; lists of Docutils-related
1222 * docs/user/mailing-lists.txt: Added to project; information about
1223 Docutils-related mailing lists and how to access them.
1225 * docs/user/slide-shows.txt: Added to project; example of and docs for
1226 the S5/HTML writer (``rst2s5.py`` front end).
1228 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1229 Files", added to project.
1231 * test/coverage.sh: Added to project; test coverage script.
1233 * test/DocutilsTestSupport.py:
1235 - Added support for specifying runtime settings at the suite level.
1237 * test/test_functional.py:
1239 - Added the ``clear_output_directory`` function.
1240 - Added support for ``_test_more`` functions in functional test
1243 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1245 * tools/rstpep2html.py: Renamed from pep.py.
1247 * tools/dev/create_unimap.py: Added to project; script to create the
1248 docutils/writers/unimap_latex.py mapping file.
1250 * tools/dev/profile_docutils.py: Added to project; profiler script.
1252 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1254 * tools/editors/emacs/restructuredtext.el,
1255 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1256 Removed from project; the functionality is now contained in rst.el.
1258 * tools/editors/emacs/rst.el: Added to project. Added many features
1259 and fixed many bugs. See docs/user/emacs.txt for details.
1261 * tools/stylesheets: Removed from project. Stylesheets have been
1262 renamed and moved into writer packages.
1265 Release 0.3.9 (2005-05-26)
1266 ==========================
1270 - Eliminated and replaced all uses of the old string attributes
1271 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1272 new list attributes ``ids``, ``names``, ``dupnames`` and
1273 ``classes`` throughout the whole source tree.
1277 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1278 allowing for easier debugging.
1279 - In ``Publisher.publish()``, expanded the generic top-level
1282 * docutils/examples.py:
1284 - Added ``internals`` function for exploration.
1288 - Fixed ``Input.decode`` method to apply heuristics only if no
1289 encoding is explicitly given, and to provide better reporting of
1291 - The ``Input.decode`` method now removes byte order marks (BOMs)
1294 * docutils/nodes.py:
1296 - ``image`` element class changed to subclass of Element, not
1297 TextElement (it's an empty element, and cannot contain text).
1298 - Added ``attr_defaults`` dictionary for default attribute values.
1299 - Added empty list as default value for the following attributes:
1300 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1301 - Added ``document.decoration`` attribute,
1302 ``document.get_decoration`` method, and ``decoration.get_header``
1303 & ``.get_footer`` methods.
1304 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1307 * docutils/utils.py:
1309 - Removed ``docutils.utils.Reporter.categories``,
1310 ``docutils.utils.ConditionSet``, and all references to them, to
1311 simplify error reporting.
1313 * docutils/languages/nl.py: Added to project; Dutch mappings by
1316 * docutils/parsers/rst/__init__.py:
1318 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1320 * docutils/parsers/rst/states.py:
1322 - Added check for escaped at-mark to prevent email address recognition.
1323 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1325 - Allowed whitespace in paths and URLs.
1326 - Added auto-enumerated list items.
1327 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1329 - Added support for table stub columns.
1331 * docutils/parsers/rst/directives/__init__.py:
1333 - Allowed whitespace in paths (``path`` function).
1334 - Added ``uri`` directive option conversion function.
1336 * docutils/parsers/rst/directives/body.py:
1338 - Fixed illegal context bug with "topic" directive (allowed within
1339 sidebars; not within body elements).
1341 * docutils/parsers/rst/directives/images.py:
1343 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1344 - Added support for the ``file_insertion_enabled`` setting in the
1345 "figure" directive (disables "figwidth" option).
1346 - "image" directive: added checks for valid values of "align" option,
1347 depending on context. "figure" directive: added specialized
1348 "align" option and attribute on "figure" element.
1349 - Made ":figwidth: image" option of "figure" directive work again.
1350 - Fixed bug with reference names containing uppercase letters
1351 (e.g. ``Name_``) in "target" option of "image" directive.
1353 * docutils/parsers/rst/directives/misc.py:
1355 - Fixed "include" and "raw" directives to catch text decoding
1357 - Allowed whitespace in "include" & "raw" directive paths.
1358 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1359 settings in "include" & "raw" directives.
1361 * docutils/parsers/rst/directives/parts.py:
1363 - Added "header" & "footer" directives.
1364 - Fixed illegal context bug with "contents" directive (topics
1365 allowed within sidebars; not within body elements).
1367 * docutils/parsers/rst/directives/tables.py:
1369 - Added "list-table" directive.
1370 - Caught empty CSV table bug.
1371 - Added support for the ``file_insertion_enabled`` setting in the
1372 "csv-table" directive.
1373 - Added ``stub-columns`` option to "csv-table" and "list-table"
1376 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1377 mappings by Martijn Pieters.
1379 * docutils/readers/standalone.py:
1381 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1382 options to activate or deactivate the SectSubTitle transform.
1384 * docutils/transforms/frontmatter.py:
1386 - Added SectSubTitle transform to promote titles of lone
1387 subsections to subtitles.
1389 * docutils/transforms/references.py:
1391 - Fixed mislocated internal targets bug, by propagating internal
1392 targets to the next node, making use of the newly added support
1393 for multiple names and IDs.
1394 - Fixed duplicate footnote label bug.
1395 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1398 * docutils/writers/html4css1.py:
1400 - Fixed unencoded stylesheet reference bug (characters like "&" in
1401 stylesheet references).
1402 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1404 - Added support for multiple IDs per node by creating empty ``span``
1406 - Added the ``field_name_limit`` & ``option_limit`` settings &
1408 - Added support for table stub columns.
1409 - Added support for the ``align`` attribute on ``figure`` elements.
1410 - Added the ``cloak_email_addresses`` setting & support.
1411 - Added ``html_prolog``, ``html_head``, ``html_body``,
1412 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1413 ``docutils.core.publish_parts``.
1414 - Added support for section subtitles.
1416 * docutils/writers/latex2e.py:
1418 - Fixed tables starting with more than one multirow cell.
1419 - Improved --use-latex-docinfo so that organization/contact/address
1420 fields are lumped with the last author field and appear on the
1422 - Made sure the titlepage is always shown with --use-latex-docinfo,
1423 even if the document has no title.
1424 - Made sure that latex doesn't fill in today's date if no date field
1426 - Added support for section subtitles.
1428 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1429 (under development).
1431 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1433 * docs/api/publisher.txt:
1435 - Added "``publish_parts`` Details" section.
1437 * docutils/dev/repository.txt: Added to project; information about the
1438 Docutils Subversion repository.
1440 * docs/ref/docutils.dtd:
1442 - Added a ``stub`` attribute to the ``colspec`` element via the
1443 ``tbl.colspec.att`` parameter entity.
1444 - Allowed topic elements within sidebars
1445 - Added an ``align`` attribute to the ``figure`` element.
1447 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1451 Release 0.3.7 (2004-12-24)
1452 ==========================
1454 * docutils/frontend.py:
1456 - Added options: --input-encoding-error-handler,
1457 --record-dependencies, --leave-footnote-reference-space,
1459 - Added command-line and config file support for "overrides" setting
1464 - Added support for input encoding error handler.
1466 * docutils/nodes.py:
1468 - Added dispatch_visit and dispatch_departure methods to
1469 NodeVisitor; useful as a hook for Visitors.
1470 - Changed structure of ``line_block``; added ``line``.
1471 - Added ``compound`` node class.
1472 - Added a mechanism for Visitors to transitionally ignore new node
1475 * docutils/utils.py:
1477 - Moved ``escape2null`` and ``unescape`` functions from
1478 docutils/parsers/rst/states.py.
1480 * docutils/parsers/rst/roles.py:
1483 - Changed role function API: the "text" parameter now takes
1484 null-escaped interpreted text content.
1486 * docutils/parsers/rst/states.py:
1488 - Fixed bug where a "role" directive in a nested parse would crash
1489 the parser; the state machine's "language" attribute was not being
1491 - Added support for line block syntax.
1492 - Fixed directive parsing bug: argument-less directives didn't
1493 notice that arguments were present.
1494 - Removed error checking for transitions.
1495 - Added support for multiple classifiers in definition list items.
1496 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1497 - Changed role function API: the "text" parameter now takes
1498 null-escaped interpreted text content.
1499 - Empty sections and documents are allowed now.
1501 * docutils/parsers/rst/directives/__init__.py:
1503 - Added ``encoding`` directive option conversion function.
1504 - Allow multiple class names in class_option conversion function.
1506 * docutils/parsers/rst/directives/body.py:
1508 - Converted the line-block directive to use the new structure.
1509 - Extracted the old line-block functionality to the ``block``
1510 function (still used).
1511 - Added ``compound`` directive (thanks to Lea Wiemann).
1513 * docutils/parsers/rst/directives/misc.py:
1515 - Added "encoding" option to "include" and "raw" directives.
1516 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1517 - Allow multiple class names in the "class" directive.
1519 * docutils/parsers/rst/directives/parts.py:
1521 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1522 options. Thanks to Lele Gaifax.
1524 * docutils/parsers/rst/directives/tables.py:
1526 - Added "encoding" directive to "csv-table" directive.
1527 - Added workaround for lack of Unicode support in csv.py, for
1528 non-ASCII CSV input.
1530 * docutils/transforms/misc.py:
1532 - Fixed bug when multiple "class" directives are applied to a single
1534 - Enabled multiple format names for "raw" directive.
1536 * docutils/transforms/references.py:
1538 - Added support for trimming whitespace from beside substitution
1541 * docutils/transforms/universal.py:
1543 - FinalChecks now checks for illegal transitions and moves
1544 transitions between sections.
1546 * docutils/writers/html4css1.py:
1548 - HTMLTranslator.encode now converts U+00A0 to " ".
1549 - "stylesheet" and "stylesheet_path" settings are now mutually
1551 - Added support for the new line_block/line structure.
1552 - --footnote-references now overrides
1553 --trim-footnote-reference-space, if applicable.
1554 - Added support for ``compound`` elements.
1555 - Enabled multiple format names for "raw" directive.
1556 - ``<p>`` tags of a paragraph which is the only visible child of the
1557 document node are no longer stripped.
1558 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1559 new method ``should_be_compact_paragraph()``.
1560 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1562 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1563 the output if they have their ``class`` attribute set.
1564 - The whole document is now surrounded by a ``<div
1565 class="document">`` element.
1566 - Body-level images are now wrapped by their own ``<div>`` elements,
1567 with image classes copied to the wrapper, and for images which
1568 have the ``:align:`` option set, the surrounding ``<div>`` now
1569 receives a class attribute (like ``class="align-left"``).
1571 * docutils/writers/latex2e.py:
1573 - no newline after depart_term.
1574 - Added translations for some Unicode quotes.
1575 - Added option "font-encoding", made package AE the default.
1576 - "stylesheet" and "stylesheet_path" settings are now mutually
1578 - --footnote-references now overrides
1579 --trim-footnote-reference-space, if applicable.
1580 - The footnote label style now matches the footnote reference style
1581 ("brackets" or "superscript").
1582 - Added support for ``compound`` elements.
1583 - Enabled multiple format names for "raw" directive.
1585 * docs/ref/docutils.dtd:
1587 - Changed structure of the ``line_block`` element; added ``line``.
1588 - Added ``compound`` element.
1589 - Added "ltrim" and "rtrim" attributes to
1590 ``substitution_definition`` element.
1591 - Enabled multiple format names for ``raw`` element.
1592 - Enabled multiple classifiers in ``definition_list_item`` elements.
1594 * docs/ref/rst/directives.txt
1596 - Marked "line-block" as deprecated.
1597 - "Class" directive now allows multiple class names.
1598 - Added "Rationale for Class Attribute Value Conversion".
1599 - Added warning about "raw" overuse/abuse.
1601 * docs/ref/rst/restructuredtext.txt:
1603 - Added syntax for line blocks.
1604 - Definition list items may have multiple classifiers.
1606 * docs/ref/rst/roles.txt:
1610 * tools/stylesheets/default.css:
1612 - Added support for the new line_block structure.
1613 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1616 Release 0.3.5 (2004-07-29)
1617 ==========================
1621 * _`Documentation cleanup/reorganization`.
1623 - Created new subdirectories of docs/:
1625 * ``docs/user/``: introductory/tutorial material for end-users
1626 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1627 * ``docs/api/``: API reference material for client-developers
1628 * ``docs/ref/``: reference material for all groups
1629 * ``docs/howto/``: for component-developers and core-developers
1630 * ``docs/peps/``: Python Enhancement Proposals
1632 - Moved ``docs/*`` to ``docs/user/``.
1633 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1634 ``spec/`` to ``docs/dev``.
1635 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1636 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1637 - Moved ``alternatives.txt``, and ``problems.txt`` from
1638 ``spec/rst/`` to ``docs/dev/rst/``.
1639 - Moved ``reStructuredText.txt``, ``directives.txt``,
1640 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1641 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1642 ``roles.txt``, ``reStructuredText.txt`` to
1643 ``restructuredtext.txt``.
1644 - Moved ``spec/howto/`` to ``docs/howto``.
1646 In order to keep the CVS history of moved files, we supplied
1647 SourceForge with a `script for modifying the Docutils CVS
1650 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1652 After running the cleanup script:
1654 - Added ``docs/index.txt``.
1655 - Added a ``.htaccess`` file to the ``web`` module, containing
1656 redirects for all old paths to new paths. They'll preserve
1657 fragments (the "#name" part of a URL), and won't clutter up the
1658 file system, and will correct the URL in the user's browser.
1659 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1660 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1661 the "To Do" list itself in ``docs/dev/todo.txt``.
1662 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1663 section of ``docs/dev/todo.txt``.
1664 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1665 - Added "How To Report Bugs" to ``BUGS.txt``.
1666 - Went through all the sources and docs (including under web/) and
1667 updated links. Mostly done by Lea Wiemann; thanks Lea!
1668 (Still need to update links in the sandboxes.)
1672 * BUGS.txt: Added to project.
1674 * THANKS.txt: Added to project.
1676 * docutils/__init__.py:
1678 - 0.3.4: Post-release.
1682 - Added special error handling & advice for UnicodeEncodeError.
1683 - Refactored Publisher.publish (simplified exception handling &
1684 extracted debug dumps).
1685 - Renamed "enable_exit" parameter of convenience functions to
1686 "enable_exit_status".
1687 - Enabled traceback (exception propagation) by default in
1688 programmatic convenience functions.
1689 - Now publish_file and publish_cmdline convenience functions return
1690 the encoded string results in addition to their regular I/O.
1691 - Extracted common code from publish_file, publish_string, and
1692 publish_parts, into new publish_programmatically. Extracted
1693 settings code to ``Publisher.process_programmatic_settings``.
1694 - In Publisher.publish, disabled ``settings_overrides`` when
1695 ``settings`` is supplied; redundant.
1697 * docutils/frontend.py:
1699 - Added help text for "--output-encoding-error-handler" and
1700 "--error-encoding-error-handler".
1701 - Renamed "--exit" to "--exit-status".
1702 - Simplified default-setting code.
1704 * docutils/parsers/rst/__init__.py:
1706 - Added "--pep-base-url" and "--rfc-base-url" options.
1708 * docutils/parsers/rst/states.py:
1710 - Made URI recognition more aggressive and intelligent.
1712 * docutils/parsers/rst/directives/__init__.py:
1714 - Added several directive option conversion functions.
1716 * docutils/parsers/rst/directives/body.py:
1718 - Moved "table" directive to tables.py.
1720 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1723 * docutils/writers/latex2e.py:
1725 - Added "--table-style=(standard|booktabs|nolines)"
1726 - figures get "here" option (LaTeX per default puts them at bottom),
1727 and figure content is centered.
1728 - Rowspan support for tables.
1729 - Fix: admonition titles before first section.
1730 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1731 - Replave ``_`` in literal by an underlined blank, because it has the correct
1733 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1734 - A few unicode replacements, if output_encoding != utf
1735 - Add "--graphicx-option".
1736 - Indent literal-blocks.
1737 - Fix: omit ``\maketitle`` when there is no document title.
1739 * docs/index.txt: "Docutils Project Documentation Overview", added to
1742 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1743 Tool", added to project.
1745 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1747 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1749 * docs/dev/policies.txt: Added to project (extracted from
1750 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1752 * docs/dev/release.txt: Added to project (extracted from
1753 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1755 * docs/dev/testing.txt: Added to project.
1757 * docs/dev/website.txt: Added to project (extracted from
1758 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1760 * docs/ref/rst/directives.txt:
1762 - Added directives: "table", "csv-table".
1764 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1765 added to project. 1 page for syntax, and a 1 page reference for
1766 directives and roles. Source text to be used as-is; not meant to be
1769 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1770 with a change of title.
1772 * test/functional/, contents, and test/test_functional.py: Added to
1775 * tools/buildhtml.py: Fixed bug with config file handling.
1777 * tools/html.py: Removed from project (duplicate of rst2html.py).
1779 * tools/pep2html.py: Removed from project (duplicate of Python's
1780 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1781 Docutils-related PEPs in docs/peps/).
1783 * tools/rst2pseudoxml.py: Renamed from publish.py.
1785 * tools/rst2xml.py: Renamed from docutils-xml.py.
1787 * tools/test.txt: Removed from project; moved to
1788 docs/user/rst/demo.txt.
1790 * setup.py: Now also installs ``rst2latex.py``.
1793 Release 0.3.3 (2004-05-09)
1794 ==========================
1796 * docutils/__init__.py:
1798 - 0.3.1: Reorganized config file format (multiple sections); see
1800 - Added unknown_reference_resolvers attribute to TransformSpec.
1801 - 0.3.2: Interpreted text reorganization.
1806 - Catch system messages to stop tracebacks from parsing errors.
1807 - Catch exceptions during processing report & exit without
1808 tracebacks, except when "--traceback" used.
1809 - Reordered components for OptionParser; application comes last.
1810 - Added "config_section" parameter to several methods and functions,
1811 allowing front ends to easily specify their config file sections.
1812 - Added publish_parts convenience function to allow access to individual
1813 parts of a document.
1815 * docutils/examples.py: Added to project; practical examples of
1816 Docutils client code, to be used as-is or as models for variations.
1818 * docutils/frontend.py:
1820 - Added "--traceback" & "--no-traceback" options ("traceback"
1822 - Implemented support for config file reorganization:
1823 ``standard_config_files`` moved from ``ConfigParser`` to
1824 ``OptionParser``; added
1825 ``OptionParser.get_config_file_settings()`` and
1826 ``.get_standard_config_settings()``; support for old "[options]"
1827 section (with deprecation warning) and mapping from old to new
1829 - Reimplemented setting validation.
1830 - Enabled flexible boolean values: yes/no, true/false, on/off.
1831 - Added ``Values``, a subclass of ``optparse.Values``, with support
1832 for list setting attributes.
1833 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1834 thanks to Beni Cherniavsky.
1835 - Added "--no-section-numbering" option.
1839 - Catch IOErrors when opening source & destination files, report &
1840 exit without tracebacks. Added ``handle_io_errors`` parameter to
1841 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1843 * docutils/nodes.py:
1845 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1846 method definitions (via ``exec``) to dynamic assignments (via
1847 ``setattr``); thanks to Roman Suzi.
1848 - Encapsulated visitor dynamic assignments in a function; thanks to
1850 - Added indirect_reference_name attribute to the Targetable
1851 class. This attribute holds the whitespace_normalized_name
1852 (contains mixed case) of a target.
1854 * docutils/statemachine.py:
1856 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1857 - Added ``StringList.get_2D_block``.
1859 * docutils/utils.py:
1861 - Added "level" attribute to SystemMessage exceptions.
1863 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1866 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1869 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1870 Marcelo Huerta San Martin.
1872 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1873 mappings by Lalo Martins.
1875 * docutils/languages/ru.py: Added to project; Russian mappings by
1878 * docutils/parsers/rst/roles.py: Added to project. Contains
1879 interpreted text role functions, a registry for interpreted text
1880 roles, and an API for adding to and retrieving from the registry.
1881 Contributed by Edward Loper.
1883 * docutils/parsers/rst/states.py:
1885 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1886 - Allowed true em-dash character and "---" as block quote
1888 - Added support for <angle-bracketed> complex option arguments
1890 - Fixed handling of backslashes in substitution definitions.
1891 - Fixed off-by-1 error with extra whitespace after substitution
1892 definition directive.
1893 - Added inline markup parsing to field lists' field names.
1894 - Added support for quoted (and unindented) literal blocks.
1895 Driven in part by a bribe from Frank Siebenlist (thanks!).
1896 - Parser now handles escapes in URIs correctly.
1897 - Made embedded-URIs' reference text omittable. Idea from Beni
1899 - Refactored explicit target processing code.
1900 - Added name attribute to references containing the reference name only
1901 through whitespace_normalize_name (no case changes).
1902 - parse_target no longer returns the refname after going through
1903 normalize_name. This is now handled in make_target.
1904 - Fixed bug relating to role-less interpreted text in non-English
1906 - Reorganized interpreted text processing; moved code into the new
1907 roles.py module. Contributed by Edward Loper.
1908 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1909 ``parse_directive_block``.
1911 * docutils/parsers/rst/tableparser.py:
1913 - Reworked for ``StringList``, to support "include" directives in
1916 * docutils/parsers/rst/directives/__init__.py:
1918 - Renamed ``unchanged()`` directive option conversion function to
1919 ``unchanged_required``, and added a new ``unchanged``.
1920 - Catch unicode value too high error; fixes bug 781766.
1921 - Beefed up directive error reporting.
1923 * docutils/parsers/rst/directives/body.py:
1925 - Added basic "table" directive.
1927 * docutils/parsers/rst/directives/images.py:
1929 - Added "target" option to "image" directive.
1930 - Added name attribute to references containing the reference name only
1931 through whitespace_normalize_name (no case changes).
1933 * docutils/parsers/rst/directives/misc.py:
1935 - Isolated the import of the ``urllib2`` module; was causing
1936 problems on SourceForge (``libssl.so.2`` unavailable?).
1937 - Added the "role" directive for declaring custom interpreted text
1940 * docutils/parsers/rst/directives/parts.py:
1942 - The "contents" directive does more work up-front, creating the
1943 "topic" and "title", and leaving the "pending" node for the
1944 transform. Allows earlier reference resolution; fixes subtle bug.
1946 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1947 mappings by Jannie Hofmeyr.
1949 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1950 mappings by Marek Blaha.
1952 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1953 mappings by Marcelo Huerta San Martin.
1955 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1956 Portuguese mappings by Lalo Martins.
1958 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1959 mappings by Roman Suzi.
1961 * docutils/transforms/parts.py:
1963 - The "contents" directive does more work up-front, creating the
1964 "topic" and "title", and leaving the "pending" node for the
1965 transform. Allows earlier reference resolution; fixes subtle bug.
1966 - Added support for disabling of section numbering.
1968 * docutils/transforms/references.py:
1970 - Verifying that external targets are truly targets and not indirect
1971 references. This is because we are now adding a "name" attribute to
1972 references in addition to targets. Note sure if this is correct!
1973 - Added code to hook into the unknown_reference_resolvers list for a
1974 transformer in resolve_indirect_target. This allows the
1975 unknown_reference_resolvers to keep around indirect targets which
1976 docutils doesn't know about.
1977 - Added specific error message for duplicate targets.
1979 * docutils/transforms/universal.py:
1981 - Added FilterMessages transform (removes system messages below the
1982 verbosity threshold).
1983 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1984 to FinalCheckVisitor for application-specific handling of
1985 unresolvable references.
1986 - Added specific error message for duplicate targets.
1988 * docutils/writers/__init__.py:
1990 - Added assemble_parts method to the Writer class to allow for
1991 access to a documents individual parts.
1992 - Documented & set default for ``Writer.output`` attribute.
1994 * docutils/writers/html4css1.py:
1996 - Fixed unicode handling of attribute values (bug 760673).
1997 - Prevent duplication of "class" attribute values (bug report from
1999 - Improved table grid/border handling (prompted by report from Bob
2001 - Added support for table titles.
2002 - Added "<title />" for untitled docs, for XHTML conformance; thanks
2004 - Added functionality to keep track of individual parts of a document
2005 and store them in a dictionary as the "parts" attribute of the writer.
2006 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
2007 - Added proper support for the "scale" attribute of the "image"
2008 element. Contributed by Brent Cook.
2009 - Added ``--initial-header-level`` option.
2010 - Fixed bug: the body_pre_docinfo segment depended on there being a
2011 docinfo; if no docinfo, the document title was incorporated into
2012 the body segment. Adversely affected the publish_parts interface.
2014 * docutils/writers/latex2e.py:
2016 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
2017 about a missing file.
2018 - Added options and support: ``--compound-enumerators``,
2019 ``--section-prefix-for-enumerators``, and
2020 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
2022 - Added option ``--use-verbatim-when-possible``, to avoid
2023 problematic characters (eg, '~' in italian) in literal blocks.
2024 - It's now possible to use four section levels in the `book` and
2025 `report` LaTeX classes. The default `article` class still has
2028 * docs/config.txt: "Docutils Configuration Files", added to project.
2029 Moved config file entry descriptions from tools.txt.
2033 - Moved config file entry descriptions to config.txt.
2035 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
2038 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
2039 Text Roles", added to project.
2041 * spec/rst/reStructuredText.txt:
2043 - Added description of support for <angle-bracketed> complex option
2044 arguments to option lists.
2045 - Added subsections for indented and quoted literal blocks.
2047 * test: Continually adding & updating tests.
2049 - Added test/test_settings.py & test/data/config_*.txt support
2051 - Added test/test_writers/test_htmlfragment.py.
2053 * test/DocutilsTestSupport.py:
2055 - Refactored LaTeX publisher test suite/case class names to make
2056 testing other writers easier.
2057 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
2058 to test the processing of HTML fragments which use the new
2059 publish_parts convenience function.
2061 * tools/buildhtml.py:
2063 - Added support for the "--prune" option.
2064 - Removed dependency on pep2html.py; plaintext PEPs no longer
2067 * tools/docutils.conf:
2069 - Updated for configuration file reorganization.
2071 * tools/rst2html.py:
2073 - copied from tools/html.py
2077 - added a 'scripts' section to configuration
2078 - added 'tools/rst2html.py' to the scripts section
2081 Release 0.3 (2003-06-24)
2082 ========================
2086 * Renamed "attribute" to "option" for directives/extensions.
2088 * Renamed transform method "transform" to "apply".
2090 * Renamed "options" to "settings" for runtime settings (as set by
2091 command-line options). Sometimes "option" (singular) became
2092 "settings" (plural). Some variations below:
2094 - document.options -> document.settings (stored in other objects as
2096 - option_spec -> settings_spec (not directives though)
2097 - OptionSpec -> SettingsSpec
2098 - cmdline_options -> settings_spec
2099 - relative_path_options -> relative_path_settings
2100 - option_default_overrides -> settings_default_overrides
2101 - Publisher.set_options -> Publisher.get_settings
2105 * COPYING.txt: Added "Public Domain Dedication".
2107 * FAQ.txt: Frequently asked questions, added to project.
2111 - Updated with PyPI Trove classifiers.
2112 - Conditional installation of third-party modules.
2114 * docutils/__init__.py:
2116 - Bumped version to 0.2.1 to reflect changes to I/O classes.
2117 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
2118 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
2119 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
2120 option and its effect on the PEP template & writer.
2121 - Bumped version to 0.2.4 due to changes to the PEP template &
2123 - Bumped version to 0.2.5 to reflect changes to Reporter output.
2124 - Added ``TransformSpec`` class for new transform system.
2125 - Bumped version to 0.2.6 for API changes (renaming).
2126 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
2127 convenience functions.
2128 - Added ``Component.component_type`` attribute.
2129 - Bumped version to 0.2.8 because of the internal parser switch from
2130 plain lists to the docutils.statemachine.StringList objects.
2131 - Bumped version to 0.2.9 because of the frontend.py API changes.
2132 - Bumped version to 0.2.10 due to changes to the project layout
2133 (third-party modules removed from the "docutils" package), and
2134 signature changes in ``io.Input``/``io.Output``.
2135 - Changed version to 0.3.0 for release.
2139 - Made ``publish()`` a bit more convenient.
2140 - Generalized ``Publisher.set_io``.
2141 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
2142 parameters; improved its docstring.
2143 - Added ``publish_file()`` and ``publish_string()``.
2144 - Factored ``Publisher.set_source()`` and ``.set_destination()``
2146 - Added support for "--dump-pseudo-xml", "--dump-settings", and
2147 "--dump-transforms" hidden options.
2148 - Added ``Publisher.apply_transforms()`` method.
2149 - Added ``Publisher.set_components()`` method; support for
2150 ``publish_*()`` conveninece functions.
2151 - Moved config file processing to docutils/frontend.py.
2152 - Added support for exit status ("exit_level" setting &
2153 ``enable_exit`` parameter for Publisher.publish() and convenience
2156 * docutils/frontend.py:
2158 - Check for & exit on identical source & destination paths.
2159 - Fixed bug with absolute paths & "--config".
2160 - Set non-command-line defaults in ``OptionParser.__init__()``:
2161 ``_source`` & ``_destination``.
2162 - Distributed ``relative_path_settings`` to components; updated
2163 ``OptionParser.populate_from_components()`` to combine it all.
2164 - Require list of keys in ``make_paths_absolute`` (was implicit in
2165 global ``relative_path_settings``).
2166 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
2167 "--dump-settings", and "--dump-transforms" hidden options.
2168 - Removed nasty internals-fiddling ``ConfigParser.get_section``
2169 code, replaced with correct code.
2170 - Added validation functionality for config files.
2171 - Added "--error-encoding" option/setting, "_disable_config"
2173 - Added encoding validation; updated "--input-encoding" and
2174 "--output-encoding"; added "--error-encoding-error-handler" and
2175 "--output-encoding-error-handler".
2176 - Moved config file processing from docutils/core.py.
2177 - Updated ``OptionParser.populate_from_components`` to handle new
2178 ``SettingsSpec.settings_defaults`` dict.
2179 - Added support for "-" => stdin/stdout.
2180 - Added "exit_level" setting ("--exit" option).
2184 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
2185 - Added automatic closing to ``FileInput`` and ``FileOutput``.
2186 - Delayed opening of ``FileOutput`` file until ``write()`` called.
2187 - ``FileOutput.write()`` now returns the encoded output string.
2188 - Try to get path/stream name automatically in ``FileInput`` &
2190 - Added defaults for source & destination paths.
2191 - Allow for Unicode I/O with an explicit "unicode" encoding.
2192 - Added ``Output.encode()``.
2193 - Removed dependency on runtime settings; pass encoding directly.
2194 - Recognize Unicode strings in ``Input.decode()``.
2195 - Added support for output encoding error handlers.
2197 * docutils/nodes.py:
2199 - Added "Invisible" element category class.
2200 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2201 modification during a traversal.
2202 - Added element classes: ``line_block``, ``generated``, ``address``,
2203 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2204 ``superscript``, ``subscript``, ``inline``
2205 - Added support for lists of nodes to ``Element.insert()``.
2206 - Fixed parent linking in ``Element.replace()``.
2207 - Added new abstract superclass ``FixedTextElement``; adds
2208 "xml:space" attribute.
2209 - Added support for "line" attribute of ``system_message`` nodes.
2210 - Added support for the observer pattern from ``utils.Reporter``.
2211 Added ``parse_messages`` and ``transform_messages`` attributes to
2212 ``document``, removed ``messages``. Added ``note_parse_message``
2213 and ``note_transform_message`` methods.
2214 - Added support for improved diagnostics:
2216 - Added "document", "source", and "line" internal attributes to
2217 ``Node``, set by ``Node.setup_child()``.
2218 - Converted variations on ``node.parent = self`` to
2219 ``self.setup_child(node)``.
2220 - Added ``document.current_source`` & ``.current_line``
2221 attributes, and ``.note_source`` observer method.
2222 - Changed "system_message" output to GNU-Tools format.
2224 - Added a "rawsource" attribute to the ``Text`` class, for text
2225 before backslash-escape resolution.
2226 - Support for new transform system.
2227 - Reworked ``pending`` element.
2228 - Fixed XML DOM bug (SF #660611).
2229 - Removed the ``interpeted`` element class and added
2230 ``title_reference``, ``abbreviation``, ``acronym``.
2231 - Made substitutions case-sensitive-but-forgiving; moved some code
2233 - Fixed Unicode bug on element attributes (report: William Dode).
2235 * docutils/optik.py: Removed from project; replaced with
2236 extras/optparse.py and extras/textwrap.py. These will be installed
2237 only if they're not already present in the Python installation.
2239 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2240 only if it's not already present in the Python installation.
2242 * docutils/statemachine.py:
2244 - Factored out ``State.add_initial_transitions()`` so it can be
2246 - Converted whitespace-specific "blank" and "indent" transitions
2247 from special-case code to ordinary transitions: removed
2248 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2249 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2250 ``ws_initial_transitions`` attributes.
2251 - Removed ``State.match_transition()`` after merging it into
2253 - Added ``StateCorrection`` exception.
2254 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2255 (moved ``TransitionCorrection`` support there too.)
2256 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2257 ``EOFError`` instead of ``IndexError``.
2258 - Added ``State.no_match`` method.
2259 - Added support for the Observer pattern, triggered by input line
2261 - Added ``strip_top`` parameter to
2262 ``StateMachineWS.get_first_known_indented``.
2263 - Made ``context`` a parameter to ``StateMachine.run()``.
2264 - Added ``ViewList`` & ``StringList`` classes;
2265 ``extract_indented()`` becomes ``StringList.get_indented()``.
2266 - Added ``StateMachine.insert_input()``.
2267 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2268 thanks to) Fred Drake.
2270 * docutils/utils.py:
2272 - Added a ``source`` attribute to Reporter instances and
2273 ``system_message`` elements.
2274 - Added an observer pattern to ``utils.Reporter`` to keep track of
2276 - Fixed bugs in ``relative_path()``.
2277 - Added support for improved diagnostics.
2278 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2279 - Added support for encoding Reporter stderr output, and encoding
2281 - Reporter keeps track of the highest level system message yet
2284 * docutils/languages: Fixed bibliographic field language lookups.
2286 * docutils/languages/es.py: Added to project; Spanish mappings by
2287 Marcelo Huerta San Martin.
2289 * docutils/languages/fr.py: Added to project; French mappings by
2292 * docutils/languages/it.py: Added to project; Italian mappings by
2295 * docutils/languages/sk.py: Added to project; Slovak mappings by
2298 * docutils/parser/__init__.py:
2300 - Added ``Parser.finish_parse()`` method.
2302 * docutils/parser/rst/__init__.py:
2304 - Added options: "--pep-references", "--rfc-references",
2305 "--tab-width", "--trim-footnote-reference-space".
2307 * docutils/parsers/rst/states.py:
2309 - Changed "title under/overline too short" system messages from INFO
2310 to WARNING, and fixed its insertion location.
2311 - Fixed enumerated list item parsing to allow paragraphs & section
2312 titles to begin with enumerators.
2313 - Converted system messages to use the new "line" attribute.
2314 - Fixed a substitution reference edge case.
2315 - Added support for "--pep-references" and "--rfc-references"
2316 options; reworked ``Inliner`` code to make customization easier.
2317 - Removed field argument parsing.
2318 - Added support for short section title over/underlines.
2319 - Fixed "simple reference name" regexp to ignore text like
2320 "object.__method__"; not an anonymous reference.
2321 - Added support for improved diagnostics.
2322 - Reworked directive API, based on Dethe Elza's contribution. Added
2323 ``Body.parse_directive()``, ``.parse_directive_options()``,
2324 ``.parse_directive_arguments()`` methods.
2325 - Added ``ExtensionOptions`` class, to parse directive options
2326 without parsing field bodies. Factored
2327 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2328 ``ExtensionOptions``.
2329 - Improved definition list term/classifier parsing.
2330 - Added warnings for unknown directives.
2331 - Renamed ``Stuff`` to ``Struct``.
2332 - Now flagged as errors: transitions at the beginning or end of
2333 sections, empty sections (except title), and empty documents.
2334 - Updated for ``statemachine.StringList``.
2335 - Enabled recognition of schemeless email addresses in targets.
2336 - Added support for embedded URIs in hyperlink references.
2337 - Added backslash-escapes to inline markup end-string suffix.
2338 - Added support for correct interpreted text processing.
2339 - Fixed nested title parsing (topic, sidebar directives).
2340 - Added special processing of backslash-escaped whitespace (idea
2341 from David Abrahams).
2342 - Made substitutions case-sensitive-but-forgiving; moved some code
2343 to ``docutils.nodes``.
2344 - Added support for block quote attributions.
2345 - Added a kludge to work-around a conflict between the bubble-up
2346 parser strategy and short titles (<= 3 char-long over- &
2347 underlines). Fixes SF bug #738803 "infinite loop with multiple
2348 titles" submitted by Jason Diamond.
2349 - Added explicit interpreted text roles for standard inline markup:
2350 "emphasis", "strong", "literal".
2351 - Implemented "superscript" and "subscript" interpreted text roles.
2352 - Added initial support for "abbreviation" and "acronym" roles;
2354 - Added support for "--trim-footnote-reference-space" option.
2355 - Optional space before colons in directives & hyperlink targets.
2357 * docutils/parsers/rst/tableparser.py:
2359 - Fixed a bug that was producing unwanted empty rows in "simple"
2361 - Detect bad column spans in "simple" tables.
2363 * docutils/parsers/rst/directives: Updated all directive functions to
2366 * docutils/parsers/rst/directives/__init__.py:
2368 - Added ``flag()``, ``unchanged()``, ``path()``,
2369 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2370 directive option helper functions.
2371 - Added warnings for unknown directives.
2372 - Return ``None`` for missing directives.
2373 - Added ``register_directive()``, thanks to William Dode and Paul
2376 * docutils/parsers/rst/directives/admonitions.py:
2378 - Added "admonition" directive.
2380 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2381 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2382 "parsed-literal", "rubric", "epigraph", "highlights" and
2383 "pull-quote" directives.
2385 * docutils/parsers/rst/directives/images.py:
2387 - Added an "align" attribute to the "image" & "figure" directives
2388 (by Adam Chodorowski).
2389 - Added "class" option to "image", and "figclass" to "figure".
2391 * docutils/parsers/rst/directives/misc.py:
2393 - Added "include", "raw", and "replace" directives, courtesy of
2395 - Added "unicode" and "class" directives.
2397 * docutils/parsers/rst/directives/parts.py:
2399 - Added the "sectnum" directive; by Dmitry Jemerov.
2400 - Added "class" option to "contents" directive.
2402 * docutils/parsers/rst/directives/references.py: Added to project.
2403 Contains the "target-notes" directive.
2405 * docutils/parsers/rst/languages/__init__.py:
2407 - Return ``None`` from get_language() for missing language modules.
2409 * docutils/parsers/rst/languages/de.py: Added to project; German
2410 mappings by Engelbert Gruber.
2412 * docutils/parsers/rst/languages/en.py:
2414 - Added interpreted text roles mapping.
2416 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2417 mappings by Marcelo Huerta San Martin.
2419 * docutils/parsers/rst/languages/fr.py: Added to project; French
2420 mappings by William Dode.
2422 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2423 mappings by Nicola Larosa.
2425 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2426 mappings by Miroslav Vasko.
2428 * docutils/readers/__init__.py:
2430 - Added support for the observer pattern from ``utils.Reporter``, in
2431 ``Reader.parse`` and ``Reader.transform``.
2432 - Removed ``Reader.transform()`` method.
2433 - Added default parameter values to ``Reader.__init__()`` to make
2434 instantiation easier.
2435 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2437 * docutils/readers/pep.py:
2439 - Added the ``peps.TargetNotes`` transform to the Reader.
2440 - Removed PEP & RFC reference detection code; moved to
2441 parsers/rst/states.py as options (enabled here by default).
2442 - Added support for pre-acceptance PEPs (no PEP number yet).
2443 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2446 * docutils/readers/python: Python Source Reader subpackage added to
2447 project, including preliminary versions of:
2450 - moduleparser.py: Parser for Python modules.
2452 * docutils/transforms/__init__.py:
2454 - Added ``Transformer`` class and completed transform reform.
2455 - Added unknown_reference_resolvers list for each transformer. This list holds
2456 the list of functions provided by each component of the transformer that
2457 help resolve references.
2459 * docutils/transforms/frontmatter.py:
2461 - Improved support for generic fields.
2462 - Fixed bibliographic field language lookups.
2464 * docutils/transforms/misc.py: Added to project. Miscellaneous
2467 * docutils/transforms/parts.py:
2469 - Moved the "id" attribute from TOC list items to the references
2470 (``Contents.build_contents()``).
2471 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2472 - Added "class" attribute support to ``Contents``.
2474 * docutils/transforms/peps.py:
2476 - Added ``mask_email()`` function, updating to pep2html.py's
2478 - Linked "Content-Type: text/x-rst" to PEP 12.
2479 - Added the ``TargetNotes`` PEP-specific transform.
2480 - Added ``TargetNotes.cleanup_callback``.
2481 - Added title check to ``Headers``.
2483 * docutils/transforms/references.py:
2485 - Added the ``TargetNotes`` generic transform.
2486 - Split ``Hyperlinks`` into multiple transforms.
2487 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2488 - Added check for circular indirect references.
2489 - Made substitutions case-sensitive-but-forgiving.
2491 * docutils/transforms/universal.py:
2493 - Added support for the "--expose-internal-attributes" option.
2494 - Removed ``Pending`` transform classes & data.
2496 * docutils/writers/__init__.py:
2498 - Removed ``Writer.transform()`` method.
2500 * docutils/writers/docutils-xml.py:
2502 - Added XML and doctype declarations.
2503 - Added "--no-doctype" and "--no-xml-declaration" options.
2505 * docutils/writers/html4css1.py:
2507 - "name" attributes only on these tags: a, applet, form, frame,
2509 - Added "name" attribute to <a> in section titles for Netscape 4
2510 support (bug report: Pearu Peterson).
2511 - Fixed targets (names) on footnote, citation, topic title,
2512 problematic, and system_message nodes (for Netscape 4).
2513 - Changed field names from "<td>" to "<th>".
2514 - Added "@" to "@" encoding to thwart address harvesters.
2515 - Improved the vertical whitespace optimization; ignore "invisible"
2516 nodes (targets, comments, etc.).
2517 - Improved inline literals with ``<span class="pre">`` around chunks
2518 of text and `` `` for runs of spaces.
2519 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2520 ``self.docinfo`` segments.
2521 - Added support for "line_block", "address" elements.
2522 - Improved backlinks (footnotes & system_messages).
2523 - Improved system_message output.
2524 - Redefined "--stylesheet" as containing an invariant URL, used
2525 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2527 - Added "--footnote-references" option (superscript or brackets).
2528 - Added "--compact-lists" and "--no-compact-lists" options.
2529 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2530 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2531 - Improved field list rendering.
2532 - Added Docutils version to "generator" meta tag.
2533 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2534 - Improved layout of <pre> HTML source.
2535 - Fixed attribute typo on <colspec>.
2536 - Refined XML prologue.
2537 - Support for no stylesheet.
2538 - Removed "interpreted" element support.
2539 - Added support for "title_reference", "sidebar", "attribution",
2540 "rubric", and generic "admonition" elements.
2541 - Added "--attribution" option.
2542 - Added support for "inline", "subscript", "superscript" elements.
2543 - Added initial support for "abbreviation" and "acronym";
2546 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2550 - Double quotes in literal blocks (special treatment for de/ngerman).
2551 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2552 - Added "--attribution" option.
2553 - Right align attributions.
2555 * docutils/writers/pep_html.py:
2557 - Parameterized output encoding in PEP template.
2558 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2559 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2560 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2562 - Added an override on the "--footnote-references" option.
2563 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2564 - Added Docutils version to "generator" meta tag.
2565 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2569 - Added a "silent" setting for ``buildhtml.py``.
2570 - Added a "Getting Help" section.
2571 - Rearranged the structure.
2572 - Kept up to date, with new settings, command-line options etc.
2573 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2574 - Converted settings table into a definition list.
2576 * docs/rst/quickstart.txt:
2578 - Added a table of contents.
2579 - Added feedback information.
2580 - Added mention of minimum section title underline lengths.
2581 - Removed the 4-character minimum for section title underlines.
2583 * docs/rst/quickref.html:
2585 - Added a "Getting Help" section.
2586 - Added a style to make section title backlinks more subtle.
2587 - Added mention of minimum section title underline lengths.
2588 - Removed the 4-character minimum for section title underlines.
2590 * extras: Directory added to project; contains third-party modules
2591 that Docutils depends on (optparse, textwrap, roman). These are
2592 only installed if they're not already present.
2594 * licenses: Directory added to project; contains copies of license
2595 files for non-public-domain files.
2599 - Changed the focus. It's about DTD elements: structural
2600 relationships, semantics, and external (public) attributes. Not
2601 about the element class library.
2602 - Moved some implementation-specific stuff into ``docutils.nodes``
2604 - Wrote descriptions of all common attributes and parameter
2605 entities. Filled in introductory material.
2606 - Working through the element descriptions: 55 down, 37 to go.
2607 - Removed "Representation of Horizontal Rules" to
2608 spec/rst/alternatives.txt.
2610 * spec/docutils.dtd:
2612 - Added "generated" inline element.
2613 - Added "line_block" body element.
2614 - Added "auto" attribute to "title".
2615 - Changed content models of "literal_block" and "doctest_block" to
2617 - Added ``%number;`` attribute type parameter entity.
2618 - Changed ``%structural.elements;`` to ``%section.elements``.
2619 - Updated attribute types; made more specific.
2620 - Added "address" bibliographic element.
2621 - Added "line" attribute to ``system_message`` element.
2622 - Removed "field_argument" element; "field_name" may contain
2623 multiple words and whitespace.
2624 - Changed public identifier to docutils.sf.net.
2625 - Removed "interpreted" element; added "title_reference",
2626 "abbreviation", "acronym".
2627 - Removed "refuri" attribute from "footnote_reference" and
2628 "citation_reference".
2629 - Added "sidebar", "rubric", "attribution", "admonition",
2630 "superscript", "subscript", and "inline" elements.
2632 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2634 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2636 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2638 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2641 * spec/transforms.txt: Added to project.
2643 * spec/howto: Added subdirectory, for developer how-to docs.
2645 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2646 Elza, edited & extended by David Goodger.
2648 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2651 * spec/rst/alternatives.txt:
2653 - Added "Doctree Representation of Transitions" from
2655 - Updated "Inline External Targets" & closed the debate.
2656 - Added ideas for interpreted text syntax extensions.
2657 - Added "Nested Inline Markup" section.
2659 * spec/rst/directives.txt:
2661 - Added directives: "topic", "sectnum", "target-notes",
2662 "line-block", "parsed-literal", "include", "replace", "sidebar",
2663 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2665 - Formalized descriptions of directive details.
2666 - Added an "align" attribute to the "image" & "figure" directives
2667 (by Adam Chodorowski).
2668 - Added "class" options to "topic", "sidebar", "line-block",
2669 "parsed-literal", "contents", and "image"; and "figclass" to
2672 * spec/rst/interpreted.txt: Added to project. Descriptions of
2673 interpreted text roles.
2675 * spec/rst/introduction.txt:
2677 - Added pointers to material for new users.
2679 * spec/rst/reStructuredText.txt:
2681 - Disambiguated comments (just add a newline after the "::").
2682 - Updated enumerated list description; added a discussion of the
2683 second-line validity checking.
2684 - Updated directive description.
2685 - Added a note redirecting newbies to the user docs.
2686 - Expanded description of inline markup start-strings in non-markup
2688 - Removed field arguments and made field lists a generic construct.
2689 - Removed the 4-character minimum for section title underlines.
2690 - Clarified term/classifier delimiter & inline markup ambiguity
2692 - Added "Embedded URIs".
2693 - Updated "Interpreted Text" section.
2694 - Added "Character-Level Inline Markup" section.
2696 * test: Continually adding & updating tests.
2698 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2699 - Moved test/test_pep/ to test/test_readers/test_pep/.
2700 - Added test/test_readers/test_python/.
2701 - Added test/test_writers/ (Engelbert Gruber).
2705 - Made the ``locale.setlocale()`` calls in front ends
2708 * tools/buildhtml.py:
2710 - Added "--silent" option.
2711 - Fixed bug with absolute paths & "--config".
2712 - Updated for new I/O classes.
2713 - Added some exception handling.
2714 - Separated publishers' setting defaults; prevents interference.
2715 - Updated for new ``publish_file()`` convenience function.
2717 * tools/pep-html-template:
2719 - Allow for "--embed-stylesheet".
2720 - Added Docutils version to "generator" meta tag.
2721 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2722 - Conform to XHTML spec.
2724 * tools/pep2html.py:
2726 - Made ``argv`` a parameter to ``main()``.
2727 - Added support for "Content-Type:" header & arbitrary PEP formats.
2728 - Linked "Content-Type: text/plain" to PEP 9.
2729 - Files skipped (due to an error) are not pushed onto the server.
2730 - Updated for new I/O classes.
2731 - Added ``check_requirements()`` & ``pep_type_error()``.
2732 - Added some exception handling.
2733 - Updated for new ``publish_string()`` convenience function.
2734 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2736 * tools/quicktest.py:
2738 - Added "-V"/"--version" option.
2740 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2742 * tools/unicode2rstsubs.py: Added to project. Produces character
2743 entity files (reSructuredText substitutions) from the MathML master
2746 * tools/editors: Support code for editors, added to project. Contains
2747 ``emacs/restructuredtext.el``.
2749 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2751 - Added style for chunks of inline literals.
2752 - Removed margin for first child of table cells.
2753 - Right-aligned field list names.
2754 - Support for auto-numbered section titles in TOCs.
2755 - Increased the size of inline literals (<tt>) in titles.
2756 - Restored the light gray background for inline literals.
2757 - Added support for "line_block" elements.
2758 - Added style for "address" elements.
2759 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2760 - Improved field list rendering.
2761 - Vertical whitespace improvements.
2762 - Removed "a.target" style.
2764 * tools/stylesheets/pep.css:
2766 - Fixed nested section margins.
2767 - Other changes parallel those of ``../default.css``.
2770 Release 0.2 (2002-07-31)
2771 ========================
2775 - The word "component" was being used ambiguously. From now on,
2776 "component" will be used to mean "Docutils component", as in Reader,
2777 Writer, Parser, or Transform. Portions of documents (Table of
2778 Contents, sections, etc.) will be called "document parts".
2779 - Did a grand renaming: a lot of ``verylongnames`` became
2780 ``very_long_names``.
2781 - Cleaned up imports: no more relative package imports or
2782 comma-separated lists of top-level modules.
2783 - Added support for an option values object which carries default
2784 settings and overrides (from command-line options and library use).
2785 - Added internal Unicode support, and support for both input and
2787 - Added support for the ``docutils.io.IO`` class & subclasses.
2791 * docutils/__init__.py:
2793 - Added ``ApplicationError`` and ``DataError``, for use throughout
2795 - Added ``Component`` base class for Docutils components; implements
2796 the ``supports`` method.
2797 - Added ``__version__`` (thus, ``docutils.__version__``).
2801 - Removed many keyword parameters to ``Publisher.__init__()`` and
2802 ``publish()``; bundled into an option values object. Added
2803 "argv", "usage", "description", and "option_spec" parameters for
2804 command-line support.
2805 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2807 - Reworked I/O model for ``docutils.io`` wrappers.
2808 - Updated ``Publisher.set_options()``; now returns option values
2810 - Added support for configuration files (/etc/docutils.conf,
2811 ./docutils.conf, ~/.docutils).
2812 - Added ``Publisher.setup_option_parser()``.
2813 - Added default usage message and description.
2815 * docutils/frontend.py: Added to project; support for front-end
2816 (command-line) scripts. Option specifications may be augmented by
2817 components. Requires Optik (http://optik.sf.net/) for option
2818 processing (installed locally as docutils/optik.py).
2820 * docutils/io.py: Added to project; uniform API for a variety of input
2823 * docutils/nodes.py:
2825 - Added ``TreeCopyVisitor`` class.
2826 - Added a ``copy`` method to ``Node`` and subclasses.
2827 - Added a ``SkipDeparture`` exception for visitors.
2828 - Renamed ``TreePruningException`` from ``VisitorException``.
2829 - Added docstrings to ``TreePruningException``, subclasses, and
2831 - Improved docstrings.
2832 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2833 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2835 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2836 ``PreDecorative`` mixin.
2837 - Reworked the name/id bookkeeping; to ``document``, removed
2838 ``explicit_targets`` and ``implicit_targets`` attributes, added
2839 ``nametypes`` attribute and ``set_name_id_map`` method.
2840 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2842 - Added ``document.has_name()`` method.
2843 - Fixed DOM generation for list-attributes.
2844 - Added category class ``Labeled`` (used by footnotes & citations).
2845 - Added ``Element.set_class()`` method (sets "class" attribute).
2847 * docutils/optik.py: Added to project. Combined from the Optik
2848 package, with added option groups and other modifications. The use
2849 of this module is probably only temporary.
2851 * docutils/statemachine.py:
2853 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2854 - Added underscores to improve many awkward names.
2855 - In ``string2lines()``, changed whitespace normalizing translation
2856 table to regexp; restores Python 2.0 compatibility with Unicode.
2858 * docutils/urischemes.py:
2860 - Filled in some descriptions.
2861 - Added "shttp" scheme.
2863 * docutils/utils.py:
2865 - Added ``clean_rcs_keywords`` function (moved from
2866 docutils/transforms/frontmatter.py
2867 ``DocInfo.filter_rcs_keywords``).
2868 - Added underscores to improve many awkward names.
2869 - Changed names of Reporter's thresholds:
2870 warning_level -> report_level; error_level -> halt_level.
2871 - Moved ``utils.id()`` to ``nodes.make_id()``.
2872 - Added ``relative_path(source, target)``.
2874 * docutils/languages/de.py: German mappings; added to project. Thanks
2875 to Gunnar Schwant for the translations.
2877 * docutils/languages/en.py: Added "Dedication" bibliographic field
2880 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2883 * docutils/parsers/rst/states.py:
2885 - Added underscores to improve many awkward names.
2886 - Added RFC-2822 header support.
2887 - Extracted the inline parsing code from ``RSTState`` to a separate
2888 class, ``Inliner``, which will allow easy subclassing.
2889 - Made local bindings for ``memo`` container & often-used contents
2890 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2891 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2892 - Added ``MarkupMismatch`` exception; for late corrections.
2893 - Added ``-/:`` characters to inline markup's start string prefix,
2894 ``/`` to end string suffix.
2895 - Fixed a footnote bug.
2896 - Fixed a bug with literal blocks.
2897 - Applied patch from Simon Budig: simplified regexps with symbolic
2898 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2899 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2900 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2901 - Allowed non-ASCII in "simple names" (directive names, field names,
2903 - Converted ``Inliner.patterns.initial`` to be dynamically built
2904 from parts with ``build_regexp()`` function.
2905 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2906 - Updated docstrings.
2907 - Changed "table" to "grid_table"; added "simple_table" support.
2909 * docutils/parsers/rst/tableparser.py:
2911 - Changed ``TableParser`` to ``GridTableParser``.
2912 - Added ``SimpleTableParser``.
2913 - Refactored naming.
2915 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2916 a fallback language for directive names.
2918 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2919 directive to use a ``pending`` element, used only by HTML writers.
2921 * docutils/parsers/rst/directives/parts.py: Renamed from
2924 - Added "backlinks" attribute to "contents" directive.
2926 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2927 project by Adam Chodorowski.
2929 * docutils/readers/__init__.py: Gave Readers more control over
2930 choosing and instantiating Parsers.
2932 * docutils/readers/pep.py: Added to project; for PEP processing.
2934 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2935 requires a ``component`` parameter.
2937 * docutils/transforms/components.py: Added to project; transforms
2938 related to Docutils components.
2940 * docutils/transforms/frontmatter.py:
2942 - In ``DocInfo.extract_authors``, check for a single "author" in an
2943 "authors" group, and convert it to a single "author" element.
2944 - Added support for "Dedication" and generic bibliographic fields.
2946 * docutils/transforms/peps.py: Added to project; PEP-specific.
2948 * docutils/transforms/parts.py: Renamed from old components.py.
2950 - Added filter for `Contents`, to use alt-text for inline images,
2951 and to remove inline markup that doesn't make sense in the ToC.
2952 - Added "name" attribute to TOC topic depending on its title.
2953 - Added support for optional TOC backlinks.
2955 * docutils/transforms/references.py: Fixed indirect target resolution
2956 in ``Hyperlinks`` transform.
2958 * docutils/transforms/universal.py:
2960 - Changed ``Messages`` transform to properly filter out system
2961 messages below the warning threshold.
2962 - Added ``Decorations`` transform (support for ``--generator``,
2963 ``--date``, ``--time``, ``--source-link`` options).
2965 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2966 Engelbert Gruber's PDF writer.
2968 * docutils/writers/html4css1.py:
2970 - Made XHTML-compatible (switched to lowercase element & attribute
2971 names; empty tag format).
2972 - Escape double-dashes in comment text.
2973 - Improved boilerplate & modularity of output.
2974 - Exposed modular output in Writer class.
2975 - Added a "generator" meta tag to <head>.
2976 - Added support for the ``--stylesheet`` option.
2977 - Added support for ``decoration``, ``header``, and ``footer``
2979 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2980 translation table to regexp; restores Python 2.0 compatibility
2982 - Added the translator class as instance variable to the Writer, to
2983 make it easily subclassable.
2984 - Improved option list spacing (thanks to Richard Jones).
2985 - Modified field list output.
2986 - Added backlinks to footnotes & citations.
2987 - Added percentage widths to "<col>" tags (from colspec).
2988 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2989 "<span>" changed to "<var>".
2990 - Inline literals: "<code>" changed to "<tt>".
2991 - Many changes to optimize vertical space: compact simple lists etc.
2992 - Add a command-line options & directive attributes to control TOC
2993 and footnote/citation backlinks.
2994 - Added support for optional footnote/citation backlinks.
2995 - Added support for generic bibliographic fields.
2996 - Identify backrefs.
2997 - Relative URLs for stylesheet links.
2999 * docutils/writers/pep_html.py: Added to project; HTML Writer for
3000 PEPs (subclass of ``html4css1.Writer``).
3002 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
3004 * docutils/writers/docutils_xml.py: Added to project; trivial writer
3005 of the Docutils internal doctree in XML.
3007 * docs/tools.txt: "Docutils Front-End Tools", added to project.
3011 - Changed the title to "The Docutils Document Tree".
3012 - Added "Hyperlink Bookkeeping" section.
3014 * spec/docutils.dtd:
3016 - Added ``decoration``, ``header``, and ``footer`` elements.
3017 - Brought ``interpreted`` element in line with the parser: changed
3018 attribute "type" to "role", added "position".
3019 - Added support for generic bibliographic fields.
3021 * spec/notes.txt: Continual updates. Added "Project Policies".
3023 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
3026 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
3028 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
3029 mailing list discussions.
3031 * spec/pep-0287.txt:
3033 - Renamed to "reStructuredText Docstring Format".
3035 - Reworked Q&A as an enumerated list.
3036 - Converted to reStructuredText format.
3038 * spec/pysource.dtd:
3040 - Reworked structural elements, incorporating ideas from Tony Ibbs.
3042 * spec/pysource.txt: Removed from project. Moved much of its contents
3045 * spec/rst/alternatives.txt:
3047 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
3048 - Added "Inline External Targets" section.
3050 * spec/rst/directives.txt:
3052 - Added "backlinks" attribute to "contents" directive.
3054 * spec/rst/problems.txt:
3056 - Updated the Enumerated List Markup discussion.
3057 - Added new alternative table markup syntaxes.
3059 * spec/rst/reStructuredText.txt:
3061 - Clarified field list usage.
3062 - Updated enumerated list description.
3063 - Clarified purpose of directives.
3064 - Added ``-/:`` characters to inline markup's start string prefix,
3065 ``/`` to end string suffix.
3066 - Updated "Authors" bibliographic field behavior.
3067 - Changed "inline hyperlink targets" to "inline internal targets".
3068 - Added "simple table" syntax to supplement the existing but
3069 newly-renamed "grid tables".
3070 - Added cautions for anonymous hyperlink use.
3071 - Added "Dedication" and generic bibliographic fields.
3073 * test: Made test modules standalone (subdirectories became packages).
3075 * test/DocutilsTestSupport.py:
3077 - Added support for PEP extensions to reStructuredText.
3078 - Added support for simple tables.
3079 - Refactored naming.
3081 * test/package_unittest.py: Renamed from UnitTestFolder.py.
3083 - Now supports true packages containing test modules
3084 (``__init__.py`` files required); fixes duplicate module name bug.
3086 * test/test_pep/: Subpackage added to project; PEP testing.
3088 * test/test_rst/test_SimpleTableParser.py: Added to project.
3092 - Updated html.py and publish.py front-end tools to use the new
3093 command-line processing facilities of ``docutils.frontend``
3094 (exposed in ``docutils.core.Publisher``), reducing each to just a
3096 - Added ``locale.setlocale()`` calls to front-end tools.
3098 * tools/buildhtml.py: Added to project; batch-generates .html from all
3099 the .txt files in directories and subdirectories.
3101 * tools/default.css:
3103 - Added support for ``header`` and ``footer`` elements.
3104 - Added styles for "Dedication" topics (biblio fields).
3106 * tools/docutils.conf: A configuration file; added to project.
3108 * tools/docutils-xml.py: Added to project.
3110 * tools/pep.py: Added to project; PEP to HTML front-end tool.
3112 * tools/pep-html-template: Added to project.
3114 * tools/pep2html.py: Added to project from Python (nondist/peps).
3115 Added support for Docutils (reStructuredText PEPs).
3117 * tools/quicktest.py:
3119 - Added the ``--attributes`` option, hacked a bit.
3120 - Added a second command-line argument (output file); cleaned up.
3122 * tools/stylesheets/: Subdirectory added to project.
3124 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
3127 Release 0.1 (2002-04-20)
3128 ========================
3130 This is the first release of Docutils, merged from the now inactive
3131 reStructuredText__ and `Docstring Processing System`__ projects. For
3132 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
3133 `DPS HISTORY`__ files.
3135 __ http://structuredtext.sourceforge.net/
3136 __ http://docstring.sourceforge.net/
3137 __ http://structuredtext.sourceforge.net/HISTORY.html
3138 __ http://docstring.sourceforge.net/HISTORY.html
3140 General changes: renamed 'dps' package to 'docutils'; renamed
3141 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
3142 the test suites (reStructuredText's test/test_states renamed to
3143 test/test_rst); and all modifications required to make it all work.
3145 * docutils/parsers/rst/states.py:
3147 - Improved diagnostic system messages for missing blank lines.
3148 - Fixed substitution_reference bug.
3154 indent-tabs-mode: nil
3155 sentence-end-double-space: t