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.
19 * docutils/writers/latex2e/__init__.py
21 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
23 * docutils/writers/odf_odt/__init__.py
25 - Apply patch by Jakub Wilk to fix bug [ 100 ].
27 Release 0.11 (2013-07-22)
28 =========================
32 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
33 - Support embedded aliases within hyperlink references.
34 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
35 language module) before global search.
39 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
41 * docutils/parsers/rst/directives/__init__.py
43 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
45 * docutils/parsers/rst/directives/images.py
47 - Apply [ 3599485 ] node source/line information for sphinx translation.
49 * docutils/parsers/rst/directives/tables.py
51 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
53 * docutils/parsers/rst/states.py
55 - Fix [ 157 ] Line block parsing doesn't like system message.
56 - Always import our local copy of roman.py (report Larry Hastings).
58 * docutils/transforms/references.py
60 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
62 * docutils/utils/__init__.py
64 - Fix [ 3596884 ] exception importing ``docutils.io``.
66 * docutils/writers/html4css1/__init__.py
68 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
69 - New setting `stylesheet_dirs`: Comma-separated list of directories
70 where stylesheets are found. Used by `stylesheet_path` when expanding
71 relative path arguments.
72 - New default for math-output_: ``HTML math.css``.
73 - Avoid repeated class declarations in html4css1 writer
74 (modified version of patch [ 104 ]).
76 .. _math-output: docs/user/config.html#math-output
78 * docutils/writers/latex2e/__init__.py
80 - Drop the simple algorithm replacing straight double quotes with
81 English typographic ones.
82 Activate the SmartQuotes_ transform if you want this feature.
83 - Fix literal use of babel shorthands (straight quote, tilde, ...).
84 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
85 - New setting `stylesheet_dirs`.
87 .. _SmartQuotes: docs/user/config.html#smart-quotes
89 * docutils/writers/manpage.py
91 - Fix [3607063] handle lines starting with a period.
92 - Fix option separating comma was bold (thanks to Bill Morris).
94 Release 0.10 (2012-12-16)
95 =========================
99 - Dropped support for Python 2.3.
100 - ``docutils/math``, ``docutils/error_reporting.py``, and
101 ``docutils/urischemes.py`` moved to the utils package.
102 - Fix [3541369] Relative __import__ also with Python 3.3.
103 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
104 and parsers for Python 2.7 up.
105 - Fix import of PIL.Image.
106 - Change default of "syntax highlight" option to "long",
107 basic syntax highlight styles for LaTeX and HTML.
111 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
112 option is ignored and will be removed in a future release.
113 - Fix Py3k error writing to stdout with encoding differing from default.
114 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
116 * docutils/parsers/rst/directives/misc.py
118 - Fix [ 3546533 ] Unicode error with `date` directive.
120 * docutils/transforms/universal.py
122 - SmartQuotes transform for typographic quotes and dashes.
124 * docutils/utils/__init__.py
126 - normalize_language_tag() now returns `BCP 47`_ conformant tags
127 with subtags separated by ``-``.
129 * docutils/writers/html4css1/__init__.py
131 - Use ``<code>`` tag for inline "code",
132 do not drop nested inline nodes (syntax highlight tokens).
133 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
134 - No line break after opening inline math tag.
136 * docutils/writers/manpage.py
138 - Apply [ 3527401 ] addmonition's don't preserve indentation
139 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
141 , docutils/writers/xetex/__init__.py
143 - Apply [ 3555160 ] ensure order of "otherlanguages".
144 - Fix section numbering by LaTeX.
146 * docutils/writers/s5_html/__init__.py
148 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
150 * docutils/writers/s5_html/docutils_xml.py
152 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
156 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
158 * tools/test/test_buildhtml.py
160 - Fix [ 3521167 ] allow running in any directory.
161 - Fix [ 3521168 ] allow running with Python 3.
164 Release 0.9.1 (2012-06-17)
165 ==========================
169 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
170 installed in the PYTHONPATH. Converted tests are now
171 stored in ``test3/``, tools no longer need conversion.
173 If you installed one of Docutils versions 0.7 ... 0.9 with
174 ``setup.py install`` under Python 3, remove the spurious
175 ``test/`` and ``tools/`` directories in the site library root.
179 - Make tests independent from the location of the ``test/`` directory.
180 - Use converted sources (from the ``build/`` directory) for tests under
185 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
189 - Fix writing binary data to sys.stdout under Python 3 (allows
190 ``rst2odt.py`` to be used with output redirection).
192 * docutils/parsers/rst/directives/misc.py
194 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
195 ``locale == C`` and 8-bit char in path argument of `include` directive.
199 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
202 Release 0.9 (2012-05-02)
203 ========================
207 - New reStructuredText "code" role and directive and "code" option
208 of the "include" directive with syntax highlighting by Pygments_.
209 - Fix parse_option_marker for option arguments containing ``=``.
210 - Fix [ 2993756 ]: import Python Imaging Library's Image module
211 via ``import PIL`` as starting with PIL 1.2,
212 "PIL lives in the PIL namespace only" (announcement__).
214 .. _Pygments: http://pygments.org/
215 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
219 - Fix [ 2971827 ] and [ 3442827 ]
220 extras/roman.py moved to docutils/utils/roman.py
222 * docutils/frontend.py
224 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
228 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
229 - `mode` argument for FileOutput avoids code replication in
231 - New exceptions InputError and OutputError for IO errors in
232 FileInput/FileOutput.
236 - No "hard" system exit on file IO errors: catch and report them in
237 `Publisher.reportException` instead. Allows handling by a calling
238 application if the configuration setting `traceback` is True.
240 * docutils/utils.py -> docutils/utils/__init__.py
242 - docutils.utils is now a package (providing a place for sub-modules)
244 .. note:: docutils/math, docutils/error_reporting.py, and
245 docutils/urischemes.py will move to the utils package in the next
246 release, too. See RELEASE-NOTES__
248 __ RELEASE-NOTES.html
250 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
251 errors recording non-ASCII filenames (fixes [ 3434355 ]).
253 - Fix relative_path() with source=None and `unicode` target.
255 * docutils/parsers/rst/states.py
257 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
258 characters and "international" quotes around inline markup.
259 - Use `field_marker` pattern to look for start of a
260 directive option block (fixes [ 3484857 ]).
262 * docutils/parsers/rst/tableparser.py
264 - Fix [ 2926161 ] for simple tables.
265 (Combining chars in grid tables still contribute to cell width.)
267 * docutils/writers/latex2e/__init__.py
269 - Support the `abbreviation` and `acronym` standard roles.
270 - Record only files required to generate the LaTeX source as dependencies.
271 - Fix handling of missing stylesheets.
272 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
273 when suppressing LaTeX section numbering.
274 - Use ``\DUtitle`` for unsupported section levels
275 - Apply [ 3512791 ] do not compare string literals with "is"
277 * docutils/writers/xetex/__init__.py
279 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
281 * docutils/writers/html4css1/__init__.py
283 - Change default for `math-output` setting to MathJax.
284 - Fix handling of missing stylesheets.
286 * docutils/writers/docutils_xml.py
288 - Use the visitor pattern with default_visit()/default_depart() methods
289 instead of minidom to facilitate special handling of selected nodes.
290 - Support raw XML (inserted as-is inside a <raw></raw> node).
292 * docutils/writers/manpage.py
294 - Do not emit comment line with trailing blank. Problematic for VCS.
296 Release 0.8.1 (2011-08-30)
297 ==========================
301 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
302 and [ 3395920 ] (correct copyright info for rst.el).
306 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
308 * docutils/writers/latex2e/__init__.py
310 - Clean up Babel language setting. Restores Sphinx compatibility.
312 Release 0.8 (2011-07-07)
313 ========================
317 - Handle language codes according to `BCP 47`_.
318 - If the specified language is not supported by Docutils,
319 warn and fall back to English.
320 - Math support: reStructuredText "math" role and directive,
321 ``math`` and ``math_block`` doctree elements.
322 - Decode command line arguments with the locale's preferred encoding
323 (to allow, e.g., ``--title=Dornröschen``).
324 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
325 - New sub-module `error_reporting`: handle encoding/decoding errors
326 when reporting exceptions.
327 - Some additions to the Docutils core are released under the 2-Clause BSD
328 license, see COPYING_ for details.
330 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
331 .. _COPYING: COPYING.html
335 - Most directives now support a "name" option that attaches a
338 - Directive content may start on the first line also when the directive
339 type accepts options.
341 * docs/dev/policies.txt:
343 - Recommend the 2-Clause BSD license
344 (http://www.spdx.org/licenses/BSD-2-Clause)
345 for code that is kept under the author's copyright.
347 * tools/buildhtml.py:
349 - Fix ``--local`` switch.
351 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
353 * docutils/writers/html4css1/__init__.py
355 - Set "lang" argument for objects with class argument
356 "language-<language tag>".
357 - New setting "math-output" with support for HTML, MathML, and LaTeX.
359 * docutils/writers/latex2e/__init__.py
361 - Fix [ 3043986 ] AttributeError using :local: with table of content.
362 - Place title data in the document preamble.
363 - Load `babel` package only if required.
364 - Update list of supported languages.
365 - New config setting "hyperref-options".
366 No hard-coded "unicode" hyperref option (clash with xetex).
367 - Set language for custom roles, paragraphs, block-quotes, and
368 line-quotes with class argument "language-<language tag>".
369 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
370 - Convert image URI to a local file path.
371 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
372 has more than one paragraph (Wolfgang Scherer).
373 - \leavevmode before longtable only when needed (prevents spurious vspace)
374 - do not advance table counter for tables without caption
376 * docutils/writers/xetex/__init__.py
378 - New writer generating LaTeX code for compiling with ``xelatex``.
380 A separate writer (inheriting from latex2e) instead of a ``--xetex``
381 option allows separate config options for XeTeX vs. LaTeX2e.
383 * docutils/writers/manpage.py
385 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
386 - Fix: vertical space cleaning for option group ``.``.
388 * tools/editors/emacs/rst.el:
390 - Fix [ 3001100 ] does not handle spaces in filenames
391 (thanks to Jakub Wilk)
395 - strip whitespace from stylesheet arguments
396 - exclude combining chars from column_width()
397 (partial fix for [ 2926161 ])
399 * docutils/parsers/rst/directives/misc.py:
401 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
406 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
407 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
409 Release 0.7 (2010-07-07)
410 ========================
414 - Fix [ 2881769 ] setup configuration.
415 - Fix [ 2788716 ] reporting problems in included files.
419 - FileInput opens files as text files with universal newline support
420 (mode "rU", configurable with the new optional argument "mode").
424 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
428 - Fix [ 2923723 ] let decode_path() tolerate path == None
430 * docutils/writers/html4css1/__init__.py
432 - Support SVG and SWF images (thanks to Stefan Rank).
433 - Generate valid XHTML for centered images with targets.
434 Use CSS classes instead of "align" tags for image alignment.
436 * docutils/writers/latex2e/__init__.py
438 - Use `transforms.writer_aux.Admonitions` to "normalize" special
440 - Use the ``\url`` command for URLs (breaks long URLs instead of
441 writing into the margin).
442 - Preserve runs of spaces in `inline literals`__.
443 - Deprecate ``figure_footnotes`` setting.
444 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
445 - New ``latex_preamble`` setting.
446 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
447 - Fix hyperlink targets (labels) for images, figures, and tables.
448 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
449 - Apply [ 2961991 ] Call hyperref with unicode option.
450 - Drop the special `output_encoding`__ default ("latin-1").
451 The Docutils wide default (usually "UTF-8") is used instead.
452 - Render inline markup in document title and subtitle.
453 - Fix numbering depth with LaTeX section numbering.
454 - Update Unicode -> LaTeX translations.
455 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
457 __ docs/ref/restructuredtext.html#inline-literals
458 __ docs/user/config.html#docutils-footnotes
459 __ docs/user/config.html#output_encoding
461 * docutils/writers/manpage.py
463 - Fix: supported attribute (thanks to peter2108).
464 - Remove trailing blanks in code (keep in sync with mercurial version).
465 - Titles level 1, that is ``.SH``, always uppercase.
466 - Apply patch from mg: literal text should be bold in man-pages.
470 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
475 - Python 3 support: copy test/ and tools/ to the build-dir
476 and convert Python sources with 2to3.
479 Release 0.6 (2009-10-11)
480 ========================
484 - Docutils is now compatible with Python versions from 2.3 up to 2.6
485 and convertible to 3.1 code.
487 + Node.__nonzero__ returns True instead of 1.
488 + use os.walk instead os.path.walk.
489 + minimize "types" module where possible.
490 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
491 + Text nodes now subclass unicode rather than UserString
492 (which is gone in python 3.0).
493 + 3.0 compatibility module docutils._compat
495 + Drop 2.2 compatibility workarounds.
496 + Drop extras/optparse.py and extras/textwrap.py
497 (stdlib modules since 2.3).
499 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
500 - Unix man page export: manpage writer moved from sandbox to Doctutils
503 - Apply [ 1719345 ] Galician translation
504 - Apply [ 1905741 ] Polish translation
505 - Apply [ 1878977 ] make_id(): deaccent characters.
506 - Apply [ 2029251 ] return nonzero when tests fail.
507 - Fix [ 1692788 ] allow UTF-8 in style sheets.
508 - Fix [ 2781629 ] support non-ASCII chars in file names.
509 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
510 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
511 - Fix [ 2821266 ] --strict option works now like --halt=info.
512 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
513 - Fix [ 1627229 ] hyperlink references in substitutions.
515 - The "newlatex" writer is orphaned.
519 - Documented Unicode characters allowed as inline markup openers,
520 closers, and delimiters.
521 - Allow units for all length specifications.
522 - Allow percent sign in "scale" argument of "figure" and "image" directives.
523 - Bugfix: The "figalign" argument of a figure now works as intended
524 (aligning the figure, not its contents).
525 - Align images with class "align-[right|center|left]"
526 (allows setting the alignment of an image in a figure).
530 - Added ``Element.__contains__`` method, for the in-operator.
532 * docutils/parsers/rst/states.py:
534 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
535 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
536 " " (non-breaking space), and "¡ ¿" openers.
538 * docutils/parsers/directives/misc.py:
540 - Added ``start-line`` and ``end-line`` options to "include"
541 directive to select a range of lines.
542 - Hard tabs in literal inclusions are replaced by spaces. This is
543 configurable via the new ``tab-width`` option of the "include" directive
544 (a negative tab-width prevents tab expansion).
548 - Add ``get_stylesheet_list`` function.
549 - Apply [ 2834836 ] print info at halt
551 * docutils/transforms/universal.py:
553 - Raise default priority of StripClasses to exclude stripped classes from
556 * docutils/writers/html4css1/__init__.py:
558 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
559 separated list of stylesheets.
560 - Address [ 1938891 ] Inline literal text creates "pre" span only when
561 needed to prevent inter-word line wraps.
562 - Use `translate` method instead of repeated `replace` calls.
563 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
564 classes to allow CSS styling that does not interfere with other
565 table-using constructs (field lists, citations, ...).
567 * docutils/writers/newlatex2e/__init__.py:
569 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
571 * docutils/writers/latex2e/__init__.py (see also
572 `<docs/user/docutils-05-compat.sty.html>`__) :
574 - Add ``--embed-stylesheet`` option.
575 - Apply [ 1474017 ] image vertical alignment is reversed.
576 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
577 - Change: has_key for dictionaries (not Nodes) to in-operator.
578 - Merge adjacent citations into one latex cite command.
579 - Failsave implementation of custom roles. LaTeX compilation now ignores
580 unknown classes instead of aborting with an error.
581 - Support custom roles based on standard roles.
582 - LaTeX packages can be used as ``--stylesheet`` arguments without
583 restriction. (A style sheet is now referenced with the ``\usepackage``
584 command, if it ends with ``.sty`` or has no extension.)
585 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
586 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
587 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
588 2005-02-04 as a configurable length unit).
589 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
590 if font-encoding is set to ''. LaTeX defaults to OT1 then.
591 - Set sub- and superscript role argument in text mode not as math.
592 Use a custom role based on sub-/superscript if you want italic shape.
593 - Shorter preamble and less dependencies: Load packages and define macros
594 only if required in the document.
595 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
596 - New custom environments and commands with optional "classes" argument.
597 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
598 - Better conformance to Docutils specifications with ``--use-latex-toc``.
599 Support for LaTeX generated ToC also with unnumbered sections.
600 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
601 section numbering by LaTeX.
602 - Use default font in admonitions and sidebar.
603 - Align of image in a figure defaults to 'center'.
604 - Bugfix: Newlines around targets and references prevent run-together
606 - Fix internal hyperlinks.
607 - Use class defaults for page margins ('typearea' now optional).
608 - Float placement made configurable, default changed to "here definitely".
609 - Typeset generic topic as "quote block with title".
610 - Use template (file and configuration option).
611 - In the default template, load cmap.sty (fix text extraction in PDF) and
612 fixltx2e.sty (LaTeX patches, \textsubscript).
613 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
614 - Use `translate` instead of repeated `replace` calls for text encoding.
615 - Hyperlinked footnotes and support for symbol footnotes and
616 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
617 - Complete pairs of binary options
618 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
619 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
621 - font-encoding: "T1" (formerly implicitely set by 'ae').
622 - use-latex-toc: true (ToC with page numbers).
623 - use-latex-footnotes: true (no mixup with figures).
625 * docutils/writers/manpage.py
627 - Do not print version at document end, this is done by the viewer.
628 - Do not print date at document end, this is done by the viewer.
629 - Fix storage of docinfo fields for none standard fields.
631 * docutils/tools/rst2man.py
633 Release 0.5 (2008-06-25)
634 ========================
636 * docutils/languages/he.py: Added to project: Hebrew mappings by
639 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
640 mappings by Meir Kriheli.
642 * docutils/frontend.py:
644 - Configuration files are now assumed and required to be
646 - Paths of applied configuration files are now recorded in the
647 runtime setting ``_config_files`` (accessible via
648 ``--dump-settings``).
649 - Added ``--strip-elements-with-class`` and ``--strip-class``
650 options (``strip_elements_with_classes`` and ``strip_classes``
655 - Added code to determine the input encoding from data: encoding
656 declarations or the presence of byte order marks (UTF-8 & UTF-16).
657 - Added support for IronPython 1.0.
661 - Added ``document.__getstate__`` method, for pickling.
663 * docutils/parsers/rst/states.py:
665 - Allow ``+`` and ``:`` in reference names.
666 - Unquoted targets beginning with an underscore (``.. __target:
667 URI``) are no longer accepted.
668 - Added support for multiple attributions in a physical block quote
669 (indented text block), dividing it into multiple logical block
671 - Added support for unicode bullets in bullet lists: "•", "‣", and
673 - Added support for new object-oriented directive interface,
674 retaining compatibility to the old functional interface.
675 - Added support for throwing ``DirectiveError``'s from within
678 * docutils/parsers/rst/__init__.py:
680 - Added ``Directive`` base class.
681 - Added ``DirectiveError`` base class.
682 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
685 * docutils/parsers/directives/:
687 - Refactored all reStructuredText directives to use the new
688 object-oriented directive interface. Errors are now (mostly)
689 thrown using the new ``DirectiveError`` class.
691 * docutils/parsers/directives/misc.py:
693 - Added ``start-after`` and ``end-before`` options to ``include``
694 directive; thanks to Stefan Rank.
696 * docutils/transforms/universal.py:
698 - Added ``StripClassesAndElements`` transform to remove from the
699 document tree all elements with classes in
700 ``settings.strip_elements_with_classes`` and all "classes"
701 attribute values in ``self.document.settings.strip_classes``.
703 * docutils/transforms/writer_aux.py:
705 - Added ``Admonitions`` transform to transform specific admonitions
706 (like ``note``, ``warning``, etc.) into generic admonitions with a
709 * docutils/writers/html4css1/__init__.py:
711 - Moved template functionality from the PEP/HTML writer here.
712 - Expanded the fragments available in the ``parts`` attribute.
713 - Moved ``id`` attributes from titles to surrounding ``div``
715 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
716 universally supported now).
717 - ``template.txt`` is now opened in text mode instead of binary mode
718 (to ensure Windows compatibility).
719 - ``a`` elements now have an "internal" or "external" class,
720 depending on reference type.
722 * docutils/writers/html4css1/template.txt: Added to project.
724 * docutils/writers/pep_html/:
726 - Moved template functionality to the HTML writer.
728 * docutils/writers/s5_html/__init__.py:
730 - Added ``view_mode`` & ``hidden_controls`` settings
731 (``--view-mode`` & ``--hidden-controls/--visible-controls``
734 * docutils/writers/latex2e/__init__.py:
736 - Add ``--literal-block-env``
737 - Fix: escaping ``%`` in href urls.
738 - Move usepackage hyperref after stylesheet inclusion.
739 - Fix: scrartcl does not have chapter but scrreprt.
740 - Add newline after ``\end{verbatim}``.
741 - Merge smaller differences from latex2e_adaptive_preamble.
742 - Add ``use-part-section``.
743 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
744 - Using leavemode option_list no longer needs to check if parent
745 is a definition list.
746 - Append ``\leavemode`` to definition list terms.
747 - No longer write visit\_/depart_definition_list_item comments to
749 - Table column width with 3 decimal places.
750 - Add table stubs support (boldfont).
751 - Add assemble_parts to writer.
752 - Add simply support for nested tables.
753 - Fix verbatim in tables if use-verbatim-when-possible.
754 - Use section commands down to subparagraph.
755 - Put ensuremath around some latin1 chars.
756 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
757 - New option ``--use-bibtex=style,db1,db2``.
758 - New option ``--reference-label`` to allow usage of LaTeX ref for
759 labels in section references.
760 - Add a label after every section to support sectionnumbers as reference
762 - Fix: bug# 1605376 rst2latex: bad options group list
763 - Remove inactive code for use_optionlist_for_option_list.
764 - Remove latex comments from option_list output.
765 - Fix: bug# 1612270 double qoutes in italian literal.
766 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
767 - Add option --use-latex-abstract.
768 - Image width unit ``px`` is translated to ``pt``.
769 - Add image height support.
770 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
772 - Fix: Do not escape underscores in citation reference labels if
773 use-latex-citations is set.
774 - Use centering instead of center for figure contents, to avoid vertical
776 - Recognize table class: borderless, nolines, booktabs, standard.
777 - Fix: Renaming contents section does not work with latex writer; SF
779 - Applied patch for custom roles with classes from Edward Loper.
780 - Fixed bug that caused crashes with more than 256 lists.
782 * docutils/writers/pep_html/__init__.py:
784 - Changed to support new python.org website structure and
787 * docs/howto/security.txt: "Deploying Docutils Securely", added to
790 * tools/buildhtml.py:
792 -- Added ``ignore`` setting to exclude a list of shell patterns
793 (default: ``.svn:CVS``).
795 * tools/editors/emacs/rst.el:
797 - Changed license to "GPL".
798 - Added ``rst-straighten-decorations`` function.
799 - The ``compile`` module is now always loaded.
800 - Added ``rst-toggle-line-block`` function.
801 - Headings consisting only of non-ASCII characters are now
802 recognized by ``rst-toc`` and ``rst-adjust``.
803 - Added font-lock support for multi-line comments where the first
804 comment line is empty.
805 - Added ``(require 'font-lock)``.
809 - Provide descriptive error message if distutils is missing.
812 Release 0.4 (2006-01-09)
813 ========================
817 - Updated the project policies for trunk/branch development &
820 * docutils/__init__.py:
822 - Added ``__version_details__`` attribute to describe code source
823 (repository/snapshot/release).
824 - Replaced ``default_transforms`` attribute of TransformSpec with
825 ``get_transforms()`` method.
829 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
830 functions, for document tree extraction and reprocessing.
834 - Added ``DocTreeInput`` class, for reprocessing existing documents.
835 - Added support for non-Unicode (e.g. binary) writer output.
839 - Re-introduced ``Targetable.indirect_reference_name``, for
840 MoinMoin/reST compatibility (removed in r3124/r3129).
841 - Added ``serial_escape`` function; escapes string values that are
842 elements of a list, for serialization. Modified Docutils-XML
843 writing (``Element._dom_node``) and pseudo-XML writing
844 (``Element.starttag``) to use ``serial_escape``.
845 - Added ``Node.deepcopy()`` method.
846 - Removed the internal lists ``document.substitution_refs``,
847 ``document.anonymous_refs``, and ``document.anonymous_targets``.
848 - Added a "container" element.
849 - Fixed bug where values of list-valued attributes of elements
850 originating from custom interpreted text roles (i.e., with custom
851 classes) were being shared between element instances. Reported by
854 * docutils/statemachine.py:
856 - Added trailing whitespace stripping to ``string2lines()``.
857 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
858 Asian double-width character support.
862 - Added ``east_asian_column_width()`` for double-width character
865 * docutils/languages/ja.py: Added to project: Japanese mappings by
868 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
869 mappings by Panjunyong.
871 * docutils/parsers/null.py: Added to project; a do-nothing parser.
873 * docutils/parsers/rst/__init__.py:
875 - Added validator to tab_width setting, with test. Closes SF bug
876 #1212515, report from Wu Wei.
878 * docutils/parsers/rst/states.py:
880 - Fixed bug with escaped colons indicating a literal block.
881 - Fixed bug with enumerated lists (SF#1254145).
882 - Backslash-escaped colons inside of field names are now allowed.
883 - Targets (implicit and explicit), anonymous hyperlink references
884 and auto-numbered footnote references inside of substitution
885 definitions are now disallowed.
886 - Fixed bug: list items with blank first lines.
887 - Fixed bug: block quote attributions with indented second lines.
888 - Added East Asian double-width character support (Python 2.4 only).
890 * docutils/parsers/rst/tableparser.py:
892 - Added East Asian double-width character support (Python 2.4 only).
894 * docutils/parsers/rst/directives/body.py:
896 - Added the "container" directive.
898 * docutils/parsers/rst/directives/misc.py:
900 - Added the "default-role", "title", and "date" directives.
901 - Added standard data file syntax to the "include" directive.
902 - Added support for "class" directive content.
904 * docutils/parsers/rst/directives/images.py:
906 - Added ``indirect_reference_name`` support for images with a target
908 - Added support for image width and height units.
909 - Fixed bug with image "target" options.
911 * docutils/parsers/rst/directives/references.py:
913 - Added "class" attribute to "target-notes" directive, for
914 footnote_reference classes.
916 * docutils/parsers/rst/include/: Directory added to project; contains
917 standard data files for the "include" directive. Initial contents:
918 character entity substitution definition sets, and a set of
919 definitions for S5/HTML presentations.
921 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
922 mappings by David Goodger.
924 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
925 Simplified Chinese mappings by Panjunyong.
927 * docutils/readers/__init__.py:
929 - Added universal.Decorations and universal.ExposeInternals
930 transforms as default transforms for all readers.
931 - Added ``ReReader`` base class for readers that reread an existing
934 * docutils/readers/doctree.py: Added to project; a reader for existing
937 * docutils/transforms/frontmatter.py:
939 - Fixed the DocInfo transform to handle SVN-style expansion of the
941 - In ``DocInfo.extract_authors``, treat the contents of "authors"
944 * docutils/transforms/misc.py:
946 - Added misc.Transitions transform, extracted from
947 universal.FinalChecks.
949 * docutils/transforms/references.py:
951 - Added references.DanglingReferences transform, extracted from
952 universal.FinalChecks.
953 - Fixed bug with doubly-indirect substitutions.
954 - Added footnote_reference classes attribute to "TargetNotes".
955 - Fixed bug with circular substitution definitions that put Docutils
956 into an infinite loop.
958 * docutils/transforms/universal.py:
960 - Added universal.ExposeInternals transform, extracted from
961 universal.FinalChecks.
962 - Removed universal.FinalChecks transform (logic has been moved to
963 several new transforms).
964 - Fixed bug with the "expose_internals" setting and Text nodes
965 (exposed by the "rawsource" internal attribute).
966 - Added the universal.StripComments transform, implementation of the
967 "strip_comments" setting.
969 * docutils/transforms/writer_aux.py: Added to project; auxiliary
970 transforms for writers.
972 - Added ``Compound`` transform, which flattens compound paragraphs.
974 * docutils/writers/: Several writer modules (html4css1.py) were
975 converted into packages. Support modules and data files have been
976 moved into the packages. The stylesheets for the HTML writers are
977 now installed along with the code, the code knows where to find
978 them, and the default is to use them (actually, to embed them).
979 Some adjustments to configuration files may be necessary. The
980 easiest way to obtain the new default behavior is to remove all
981 settings whose name includes "stylesheet".
983 * docutils/writers/__init__.py:
985 - Added universal.Messages and universal.FilterMessages transforms
986 as default transforms for all writers.
987 - Added ``UnfilteredWriter`` base class for writers that pass the
988 document tree on unchanged.
990 * docutils/writers/docutils_xml.py:
992 - Made ``xmlcharrefreplace`` the default output encoding error
995 * docutils/writers/html4css1/:
997 - Added support for image width and height units.
998 - Made ``xmlcharrefreplace`` the default output encoding error
1000 - Made ``--embed-stylesheet`` the default rather than
1001 ``--link-stylesheet``.
1002 - Moved "id" attribute from container (section etc.) to title's <a>
1003 tag, to be on the same tag as "name".
1004 (!!! To be reverted in Docutils 0.5.)
1005 - Added vertical space between fields of field lists.
1006 - Added ``--compact-field-lists`` option to remove vertical space in
1008 - Made cloaking of email addresses with ``--cloak-email-addresses``
1010 - Fixed support for centered images.
1011 - Added support for class="compact" & class="open" lists.
1013 * docutils/writers/latex2e/:
1015 - Underscores in citekeys are no longer escaped.
1017 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1018 mapping of Unicode characters to LaTeX equivalents.
1020 * docutils/writers/s5_html/: Package added to project; writer for
1021 S5/HTML slide shows.
1023 * docs/dev/distributing.txt: Added to project; guide for distributors
1024 (package maintainers).
1026 * docs/dev/hacking.txt: Added to project; guide for developers.
1028 * docs/ref/doctree.txt:
1030 - Updated for plural attributes "classes", "ids", "names",
1032 - Added the "container" element.
1034 * docs/ref/docutils.dtd:
1036 - Updated for plural attributes "classes", "ids", "names",
1039 * docs/user/emacs.txt: Added to project; a document about Emacs
1040 support for reStructuredText and Docutils.
1042 * docs/user/links.txt: Added to project; lists of Docutils-related
1045 * docs/user/mailing-lists.txt: Added to project; information about
1046 Docutils-related mailing lists and how to access them.
1048 * docs/user/slide-shows.txt: Added to project; example of and docs for
1049 the S5/HTML writer (``rst2s5.py`` front end).
1051 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1052 Files", added to project.
1054 * test/coverage.sh: Added to project; test coverage script.
1056 * test/DocutilsTestSupport.py:
1058 - Added support for specifying runtime settings at the suite level.
1060 * test/test_functional.py:
1062 - Added the ``clear_output_directory`` function.
1063 - Added support for ``_test_more`` functions in functional test
1066 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1068 * tools/rstpep2html.py: Renamed from pep.py.
1070 * tools/dev/create_unimap.py: Added to project; script to create the
1071 docutils/writers/unimap_latex.py mapping file.
1073 * tools/dev/profile_docutils.py: Added to project; profiler script.
1075 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1077 * tools/editors/emacs/restructuredtext.el,
1078 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1079 Removed from project; the functionality is now contained in rst.el.
1081 * tools/editors/emacs/rst.el: Added to project. Added many features
1082 and fixed many bugs. See docs/user/emacs.txt for details.
1084 * tools/stylesheets: Removed from project. Stylesheets have been
1085 renamed and moved into writer packages.
1088 Release 0.3.9 (2005-05-26)
1089 ==========================
1093 - Eliminated and replaced all uses of the old string attributes
1094 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1095 new list attributes ``ids``, ``names``, ``dupnames`` and
1096 ``classes`` throughout the whole source tree.
1100 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1101 allowing for easier debugging.
1102 - In ``Publisher.publish()``, expanded the generic top-level
1105 * docutils/examples.py:
1107 - Added ``internals`` function for exploration.
1111 - Fixed ``Input.decode`` method to apply heuristics only if no
1112 encoding is explicitly given, and to provide better reporting of
1114 - The ``Input.decode`` method now removes byte order marks (BOMs)
1117 * docutils/nodes.py:
1119 - ``image`` element class changed to subclass of Element, not
1120 TextElement (it's an empty element, and cannot contain text).
1121 - Added ``attr_defaults`` dictionary for default attribute values.
1122 - Added empty list as default value for the following attributes:
1123 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1124 - Added ``document.decoration`` attribute,
1125 ``document.get_decoration`` method, and ``decoration.get_header``
1126 & ``.get_footer`` methods.
1127 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1130 * docutils/utils.py:
1132 - Removed ``docutils.utils.Reporter.categories``,
1133 ``docutils.utils.ConditionSet``, and all references to them, to
1134 simplify error reporting.
1136 * docutils/languages/nl.py: Added to project; Dutch mappings by
1139 * docutils/parsers/rst/__init__.py:
1141 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1143 * docutils/parsers/rst/states.py:
1145 - Added check for escaped at-mark to prevent email address recognition.
1146 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1148 - Allowed whitespace in paths and URLs.
1149 - Added auto-enumerated list items.
1150 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1152 - Added support for table stub columns.
1154 * docutils/parsers/rst/directives/__init__.py:
1156 - Allowed whitespace in paths (``path`` function).
1157 - Added ``uri`` directive option conversion function.
1159 * docutils/parsers/rst/directives/body.py:
1161 - Fixed illegal context bug with "topic" directive (allowed within
1162 sidebars; not within body elements).
1164 * docutils/parsers/rst/directives/images.py:
1166 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1167 - Added support for the ``file_insertion_enabled`` setting in the
1168 "figure" directive (disables "figwidth" option).
1169 - "image" directive: added checks for valid values of "align" option,
1170 depending on context. "figure" directive: added specialized
1171 "align" option and attribute on "figure" element.
1172 - Made ":figwidth: image" option of "figure" directive work again.
1173 - Fixed bug with reference names containing uppercase letters
1174 (e.g. ``Name_``) in "target" option of "image" directive.
1176 * docutils/parsers/rst/directives/misc.py:
1178 - Fixed "include" and "raw" directives to catch text decoding
1180 - Allowed whitespace in "include" & "raw" directive paths.
1181 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1182 settings in "include" & "raw" directives.
1184 * docutils/parsers/rst/directives/parts.py:
1186 - Added "header" & "footer" directives.
1187 - Fixed illegal context bug with "contents" directive (topics
1188 allowed within sidebars; not within body elements).
1190 * docutils/parsers/rst/directives/tables.py:
1192 - Added "list-table" directive.
1193 - Caught empty CSV table bug.
1194 - Added support for the ``file_insertion_enabled`` setting in the
1195 "csv-table" directive.
1196 - Added ``stub-columns`` option to "csv-table" and "list-table"
1199 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1200 mappings by Martijn Pieters.
1202 * docutils/readers/standalone.py:
1204 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1205 options to activate or deactivate the SectSubTitle transform.
1207 * docutils/transforms/frontmatter.py:
1209 - Added SectSubTitle transform to promote titles of lone
1210 subsections to subtitles.
1212 * docutils/transforms/references.py:
1214 - Fixed mislocated internal targets bug, by propagating internal
1215 targets to the next node, making use of the newly added support
1216 for multiple names and IDs.
1217 - Fixed duplicate footnote label bug.
1218 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1221 * docutils/writers/html4css1.py:
1223 - Fixed unencoded stylesheet reference bug (characters like "&" in
1224 stylesheet references).
1225 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1227 - Added support for multiple IDs per node by creating empty ``span``
1229 - Added the ``field_name_limit`` & ``option_limit`` settings &
1231 - Added support for table stub columns.
1232 - Added support for the ``align`` attribute on ``figure`` elements.
1233 - Added the ``cloak_email_addresses`` setting & support.
1234 - Added ``html_prolog``, ``html_head``, ``html_body``,
1235 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1236 ``docutils.core.publish_parts``.
1237 - Added support for section subtitles.
1239 * docutils/writers/latex2e.py:
1241 - Fixed tables starting with more than one multirow cell.
1242 - Improved --use-latex-docinfo so that organization/contact/address
1243 fields are lumped with the last author field and appear on the
1245 - Made sure the titlepage is always shown with --use-latex-docinfo,
1246 even if the document has no title.
1247 - Made sure that latex doesn't fill in today's date if no date field
1249 - Added support for section subtitles.
1251 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1252 (under development).
1254 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1256 * docs/api/publisher.txt:
1258 - Added "``publish_parts`` Details" section.
1260 * docutils/dev/repository.txt: Added to project; information about the
1261 Docutils Subversion repository.
1263 * docs/ref/docutils.dtd:
1265 - Added a ``stub`` attribute to the ``colspec`` element via the
1266 ``tbl.colspec.att`` parameter entity.
1267 - Allowed topic elements within sidebars
1268 - Added an ``align`` attribute to the ``figure`` element.
1270 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1274 Release 0.3.7 (2004-12-24)
1275 ==========================
1277 * docutils/frontend.py:
1279 - Added options: --input-encoding-error-handler,
1280 --record-dependencies, --leave-footnote-reference-space,
1282 - Added command-line and config file support for "overrides" setting
1287 - Added support for input encoding error handler.
1289 * docutils/nodes.py:
1291 - Added dispatch_visit and dispatch_departure methods to
1292 NodeVisitor; useful as a hook for Visitors.
1293 - Changed structure of ``line_block``; added ``line``.
1294 - Added ``compound`` node class.
1295 - Added a mechanism for Visitors to transitionally ignore new node
1298 * docutils/utils.py:
1300 - Moved ``escape2null`` and ``unescape`` functions from
1301 docutils/parsers/rst/states.py.
1303 * docutils/parsers/rst/roles.py:
1306 - Changed role function API: the "text" parameter now takes
1307 null-escaped interpreted text content.
1309 * docutils/parsers/rst/states.py:
1311 - Fixed bug where a "role" directive in a nested parse would crash
1312 the parser; the state machine's "language" attribute was not being
1314 - Added support for line block syntax.
1315 - Fixed directive parsing bug: argument-less directives didn't
1316 notice that arguments were present.
1317 - Removed error checking for transitions.
1318 - Added support for multiple classifiers in definition list items.
1319 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1320 - Changed role function API: the "text" parameter now takes
1321 null-escaped interpreted text content.
1322 - Empty sections and documents are allowed now.
1324 * docutils/parsers/rst/directives/__init__.py:
1326 - Added ``encoding`` directive option conversion function.
1327 - Allow multiple class names in class_option conversion function.
1329 * docutils/parsers/rst/directives/body.py:
1331 - Converted the line-block directive to use the new structure.
1332 - Extracted the old line-block functionality to the ``block``
1333 function (still used).
1334 - Added ``compound`` directive (thanks to Lea Wiemann).
1336 * docutils/parsers/rst/directives/misc.py:
1338 - Added "encoding" option to "include" and "raw" directives.
1339 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1340 - Allow multiple class names in the "class" directive.
1342 * docutils/parsers/rst/directives/parts.py:
1344 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1345 options. Thanks to Lele Gaifax.
1347 * docutils/parsers/rst/directives/tables.py:
1349 - Added "encoding" directive to "csv-table" directive.
1350 - Added workaround for lack of Unicode support in csv.py, for
1351 non-ASCII CSV input.
1353 * docutils/transforms/misc.py:
1355 - Fixed bug when multiple "class" directives are applied to a single
1357 - Enabled multiple format names for "raw" directive.
1359 * docutils/transforms/references.py:
1361 - Added support for trimming whitespace from beside substitution
1364 * docutils/transforms/universal.py:
1366 - FinalChecks now checks for illegal transitions and moves
1367 transitions between sections.
1369 * docutils/writers/html4css1.py:
1371 - HTMLTranslator.encode now converts U+00A0 to " ".
1372 - "stylesheet" and "stylesheet_path" settings are now mutually
1374 - Added support for the new line_block/line structure.
1375 - --footnote-references now overrides
1376 --trim-footnote-reference-space, if applicable.
1377 - Added support for ``compound`` elements.
1378 - Enabled multiple format names for "raw" directive.
1379 - ``<p>`` tags of a paragraph which is the only visible child of the
1380 document node are no longer stripped.
1381 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1382 new method ``should_be_compact_paragraph()``.
1383 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1385 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1386 the output if they have their ``class`` attribute set.
1387 - The whole document is now surrounded by a ``<div
1388 class="document">`` element.
1389 - Body-level images are now wrapped by their own ``<div>`` elements,
1390 with image classes copied to the wrapper, and for images which
1391 have the ``:align:`` option set, the surrounding ``<div>`` now
1392 receives a class attribute (like ``class="align-left"``).
1394 * docutils/writers/latex2e.py:
1396 - no newline after depart_term.
1397 - Added translations for some Unicode quotes.
1398 - Added option "font-encoding", made package AE the default.
1399 - "stylesheet" and "stylesheet_path" settings are now mutually
1401 - --footnote-references now overrides
1402 --trim-footnote-reference-space, if applicable.
1403 - The footnote label style now matches the footnote reference style
1404 ("brackets" or "superscript").
1405 - Added support for ``compound`` elements.
1406 - Enabled multiple format names for "raw" directive.
1408 * docs/ref/docutils.dtd:
1410 - Changed structure of the ``line_block`` element; added ``line``.
1411 - Added ``compound`` element.
1412 - Added "ltrim" and "rtrim" attributes to
1413 ``substitution_definition`` element.
1414 - Enabled multiple format names for ``raw`` element.
1415 - Enabled multiple classifiers in ``definition_list_item`` elements.
1417 * docs/ref/rst/directives.txt
1419 - Marked "line-block" as deprecated.
1420 - "Class" directive now allows multiple class names.
1421 - Added "Rationale for Class Attribute Value Conversion".
1422 - Added warning about "raw" overuse/abuse.
1424 * docs/ref/rst/restructuredtext.txt:
1426 - Added syntax for line blocks.
1427 - Definition list items may have multiple classifiers.
1429 * docs/ref/rst/roles.txt:
1433 * tools/stylesheets/default.css:
1435 - Added support for the new line_block structure.
1436 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1439 Release 0.3.5 (2004-07-29)
1440 ==========================
1444 * _`Documentation cleanup/reorganization`.
1446 - Created new subdirectories of docs/:
1448 * ``docs/user/``: introductory/tutorial material for end-users
1449 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1450 * ``docs/api/``: API reference material for client-developers
1451 * ``docs/ref/``: reference material for all groups
1452 * ``docs/howto/``: for component-developers and core-developers
1453 * ``docs/peps/``: Python Enhancement Proposals
1455 - Moved ``docs/*`` to ``docs/user/``.
1456 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1457 ``spec/`` to ``docs/dev``.
1458 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1459 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1460 - Moved ``alternatives.txt``, and ``problems.txt`` from
1461 ``spec/rst/`` to ``docs/dev/rst/``.
1462 - Moved ``reStructuredText.txt``, ``directives.txt``,
1463 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1464 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1465 ``roles.txt``, ``reStructuredText.txt`` to
1466 ``restructuredtext.txt``.
1467 - Moved ``spec/howto/`` to ``docs/howto``.
1469 In order to keep the CVS history of moved files, we supplied
1470 SourceForge with a `script for modifying the Docutils CVS
1473 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1475 After running the cleanup script:
1477 - Added ``docs/index.txt``.
1478 - Added a ``.htaccess`` file to the ``web`` module, containing
1479 redirects for all old paths to new paths. They'll preserve
1480 fragments (the "#name" part of a URL), and won't clutter up the
1481 file system, and will correct the URL in the user's browser.
1482 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1483 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1484 the "To Do" list itself in ``docs/dev/todo.txt``.
1485 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1486 section of ``docs/dev/todo.txt``.
1487 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1488 - Added "How To Report Bugs" to ``BUGS.txt``.
1489 - Went through all the sources and docs (including under web/) and
1490 updated links. Mostly done by Lea Wiemann; thanks Lea!
1491 (Still need to update links in the sandboxes.)
1495 * BUGS.txt: Added to project.
1497 * THANKS.txt: Added to project.
1499 * docutils/__init__.py:
1501 - 0.3.4: Post-release.
1505 - Added special error handling & advice for UnicodeEncodeError.
1506 - Refactored Publisher.publish (simplified exception handling &
1507 extracted debug dumps).
1508 - Renamed "enable_exit" parameter of convenience functions to
1509 "enable_exit_status".
1510 - Enabled traceback (exception propagation) by default in
1511 programmatic convenience functions.
1512 - Now publish_file and publish_cmdline convenience functions return
1513 the encoded string results in addition to their regular I/O.
1514 - Extracted common code from publish_file, publish_string, and
1515 publish_parts, into new publish_programmatically. Extracted
1516 settings code to ``Publisher.process_programmatic_settings``.
1517 - In Publisher.publish, disabled ``settings_overrides`` when
1518 ``settings`` is supplied; redundant.
1520 * docutils/frontend.py:
1522 - Added help text for "--output-encoding-error-handler" and
1523 "--error-encoding-error-handler".
1524 - Renamed "--exit" to "--exit-status".
1525 - Simplified default-setting code.
1527 * docutils/parsers/rst/__init__.py:
1529 - Added "--pep-base-url" and "--rfc-base-url" options.
1531 * docutils/parsers/rst/states.py:
1533 - Made URI recognition more aggressive and intelligent.
1535 * docutils/parsers/rst/directives/__init__.py:
1537 - Added several directive option conversion functions.
1539 * docutils/parsers/rst/directives/body.py:
1541 - Moved "table" directive to tables.py.
1543 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1546 * docutils/writers/latex2e.py:
1548 - Added "--table-style=(standard|booktabs|nolines)"
1549 - figures get "here" option (LaTeX per default puts them at bottom),
1550 and figure content is centered.
1551 - Rowspan support for tables.
1552 - Fix: admonition titles before first section.
1553 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1554 - Replave ``_`` in literal by an underlined blank, because it has the correct
1556 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1557 - A few unicode replacements, if output_encoding != utf
1558 - Add "--graphicx-option".
1559 - Indent literal-blocks.
1560 - Fix: omit ``\maketitle`` when there is no document title.
1562 * docs/index.txt: "Docutils Project Documentation Overview", added to
1565 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1566 Tool", added to project.
1568 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1570 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1572 * docs/dev/policies.txt: Added to project (extracted from
1573 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1575 * docs/dev/release.txt: Added to project (extracted from
1576 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1578 * docs/dev/testing.txt: Added to project.
1580 * docs/dev/website.txt: Added to project (extracted from
1581 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1583 * docs/ref/rst/directives.txt:
1585 - Added directives: "table", "csv-table".
1587 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1588 added to project. 1 page for syntax, and a 1 page reference for
1589 directives and roles. Source text to be used as-is; not meant to be
1592 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1593 with a change of title.
1595 * test/functional/, contents, and test/test_functional.py: Added to
1598 * tools/buildhtml.py: Fixed bug with config file handling.
1600 * tools/html.py: Removed from project (duplicate of rst2html.py).
1602 * tools/pep2html.py: Removed from project (duplicate of Python's
1603 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1604 Docutils-related PEPs in docs/peps/).
1606 * tools/rst2pseudoxml.py: Renamed from publish.py.
1608 * tools/rst2xml.py: Renamed from docutils-xml.py.
1610 * tools/test.txt: Removed from project; moved to
1611 docs/user/rst/demo.txt.
1613 * setup.py: Now also installs ``rst2latex.py``.
1616 Release 0.3.3 (2004-05-09)
1617 ==========================
1619 * docutils/__init__.py:
1621 - 0.3.1: Reorganized config file format (multiple sections); see
1623 - Added unknown_reference_resolvers attribute to TransformSpec.
1624 - 0.3.2: Interpreted text reorganization.
1629 - Catch system messages to stop tracebacks from parsing errors.
1630 - Catch exceptions during processing report & exit without
1631 tracebacks, except when "--traceback" used.
1632 - Reordered components for OptionParser; application comes last.
1633 - Added "config_section" parameter to several methods and functions,
1634 allowing front ends to easily specify their config file sections.
1635 - Added publish_parts convenience function to allow access to individual
1636 parts of a document.
1638 * docutils/examples.py: Added to project; practical examples of
1639 Docutils client code, to be used as-is or as models for variations.
1641 * docutils/frontend.py:
1643 - Added "--traceback" & "--no-traceback" options ("traceback"
1645 - Implemented support for config file reorganization:
1646 ``standard_config_files`` moved from ``ConfigParser`` to
1647 ``OptionParser``; added
1648 ``OptionParser.get_config_file_settings()`` and
1649 ``.get_standard_config_settings()``; support for old "[options]"
1650 section (with deprecation warning) and mapping from old to new
1652 - Reimplemented setting validation.
1653 - Enabled flexible boolean values: yes/no, true/false, on/off.
1654 - Added ``Values``, a subclass of ``optparse.Values``, with support
1655 for list setting attributes.
1656 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1657 thanks to Beni Cherniavsky.
1658 - Added "--no-section-numbering" option.
1662 - Catch IOErrors when opening source & destination files, report &
1663 exit without tracebacks. Added ``handle_io_errors`` parameter to
1664 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1666 * docutils/nodes.py:
1668 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1669 method definitions (via ``exec``) to dynamic assignments (via
1670 ``setattr``); thanks to Roman Suzi.
1671 - Encapsulated visitor dynamic assignments in a function; thanks to
1673 - Added indirect_reference_name attribute to the Targetable
1674 class. This attribute holds the whitespace_normalized_name
1675 (contains mixed case) of a target.
1677 * docutils/statemachine.py:
1679 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1680 - Added ``StringList.get_2D_block``.
1682 * docutils/utils.py:
1684 - Added "level" attribute to SystemMessage exceptions.
1686 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1689 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1692 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1693 Marcelo Huerta San Martin.
1695 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1696 mappings by Lalo Martins.
1698 * docutils/languages/ru.py: Added to project; Russian mappings by
1701 * docutils/parsers/rst/roles.py: Added to project. Contains
1702 interpreted text role functions, a registry for interpreted text
1703 roles, and an API for adding to and retrieving from the registry.
1704 Contributed by Edward Loper.
1706 * docutils/parsers/rst/states.py:
1708 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1709 - Allowed true em-dash character and "---" as block quote
1711 - Added support for <angle-bracketed> complex option arguments
1713 - Fixed handling of backslashes in substitution definitions.
1714 - Fixed off-by-1 error with extra whitespace after substitution
1715 definition directive.
1716 - Added inline markup parsing to field lists' field names.
1717 - Added support for quoted (and unindented) literal blocks.
1718 Driven in part by a bribe from Frank Siebenlist (thanks!).
1719 - Parser now handles escapes in URIs correctly.
1720 - Made embedded-URIs' reference text omittable. Idea from Beni
1722 - Refactored explicit target processing code.
1723 - Added name attribute to references containing the reference name only
1724 through whitespace_normalize_name (no case changes).
1725 - parse_target no longer returns the refname after going through
1726 normalize_name. This is now handled in make_target.
1727 - Fixed bug relating to role-less interpreted text in non-English
1729 - Reorganized interpreted text processing; moved code into the new
1730 roles.py module. Contributed by Edward Loper.
1731 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1732 ``parse_directive_block``.
1734 * docutils/parsers/rst/tableparser.py:
1736 - Reworked for ``StringList``, to support "include" directives in
1739 * docutils/parsers/rst/directives/__init__.py:
1741 - Renamed ``unchanged()`` directive option conversion function to
1742 ``unchanged_required``, and added a new ``unchanged``.
1743 - Catch unicode value too high error; fixes bug 781766.
1744 - Beefed up directive error reporting.
1746 * docutils/parsers/rst/directives/body.py:
1748 - Added basic "table" directive.
1750 * docutils/parsers/rst/directives/images.py:
1752 - Added "target" option to "image" directive.
1753 - Added name attribute to references containing the reference name only
1754 through whitespace_normalize_name (no case changes).
1756 * docutils/parsers/rst/directives/misc.py:
1758 - Isolated the import of the ``urllib2`` module; was causing
1759 problems on SourceForge (``libssl.so.2`` unavailable?).
1760 - Added the "role" directive for declaring custom interpreted text
1763 * docutils/parsers/rst/directives/parts.py:
1765 - The "contents" directive does more work up-front, creating the
1766 "topic" and "title", and leaving the "pending" node for the
1767 transform. Allows earlier reference resolution; fixes subtle bug.
1769 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1770 mappings by Jannie Hofmeyr.
1772 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1773 mappings by Marek Blaha.
1775 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1776 mappings by Marcelo Huerta San Martin.
1778 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1779 Portuguese mappings by Lalo Martins.
1781 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1782 mappings by Roman Suzi.
1784 * docutils/transforms/parts.py:
1786 - The "contents" directive does more work up-front, creating the
1787 "topic" and "title", and leaving the "pending" node for the
1788 transform. Allows earlier reference resolution; fixes subtle bug.
1789 - Added support for disabling of section numbering.
1791 * docutils/transforms/references.py:
1793 - Verifying that external targets are truly targets and not indirect
1794 references. This is because we are now adding a "name" attribute to
1795 references in addition to targets. Note sure if this is correct!
1796 - Added code to hook into the unknown_reference_resolvers list for a
1797 transformer in resolve_indirect_target. This allows the
1798 unknown_reference_resolvers to keep around indirect targets which
1799 docutils doesn't know about.
1800 - Added specific error message for duplicate targets.
1802 * docutils/transforms/universal.py:
1804 - Added FilterMessages transform (removes system messages below the
1805 verbosity threshold).
1806 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1807 to FinalCheckVisitor for application-specific handling of
1808 unresolvable references.
1809 - Added specific error message for duplicate targets.
1811 * docutils/writers/__init__.py:
1813 - Added assemble_parts method to the Writer class to allow for
1814 access to a documents individual parts.
1815 - Documented & set default for ``Writer.output`` attribute.
1817 * docutils/writers/html4css1.py:
1819 - Fixed unicode handling of attribute values (bug 760673).
1820 - Prevent duplication of "class" attribute values (bug report from
1822 - Improved table grid/border handling (prompted by report from Bob
1824 - Added support for table titles.
1825 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1827 - Added functionality to keep track of individual parts of a document
1828 and store them in a dictionary as the "parts" attribute of the writer.
1829 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1830 - Added proper support for the "scale" attribute of the "image"
1831 element. Contributed by Brent Cook.
1832 - Added ``--initial-header-level`` option.
1833 - Fixed bug: the body_pre_docinfo segment depended on there being a
1834 docinfo; if no docinfo, the document title was incorporated into
1835 the body segment. Adversely affected the publish_parts interface.
1837 * docutils/writers/latex2e.py:
1839 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1840 about a missing file.
1841 - Added options and support: ``--compound-enumerators``,
1842 ``--section-prefix-for-enumerators``, and
1843 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1845 - Added option ``--use-verbatim-when-possible``, to avoid
1846 problematic characters (eg, '~' in italian) in literal blocks.
1847 - It's now possible to use four section levels in the `book` and
1848 `report` LaTeX classes. The default `article` class still has
1851 * docs/config.txt: "Docutils Configuration Files", added to project.
1852 Moved config file entry descriptions from tools.txt.
1856 - Moved config file entry descriptions to config.txt.
1858 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1861 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1862 Text Roles", added to project.
1864 * spec/rst/reStructuredText.txt:
1866 - Added description of support for <angle-bracketed> complex option
1867 arguments to option lists.
1868 - Added subsections for indented and quoted literal blocks.
1870 * test: Continually adding & updating tests.
1872 - Added test/test_settings.py & test/data/config_*.txt support
1874 - Added test/test_writers/test_htmlfragment.py.
1876 * test/DocutilsTestSupport.py:
1878 - Refactored LaTeX publisher test suite/case class names to make
1879 testing other writers easier.
1880 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1881 to test the processing of HTML fragments which use the new
1882 publish_parts convenience function.
1884 * tools/buildhtml.py:
1886 - Added support for the "--prune" option.
1887 - Removed dependency on pep2html.py; plaintext PEPs no longer
1890 * tools/docutils.conf:
1892 - Updated for configuration file reorganization.
1894 * tools/rst2html.py:
1896 - copied from tools/html.py
1900 - added a 'scripts' section to configuration
1901 - added 'tools/rst2html.py' to the scripts section
1904 Release 0.3 (2003-06-24)
1905 ========================
1909 * Renamed "attribute" to "option" for directives/extensions.
1911 * Renamed transform method "transform" to "apply".
1913 * Renamed "options" to "settings" for runtime settings (as set by
1914 command-line options). Sometimes "option" (singular) became
1915 "settings" (plural). Some variations below:
1917 - document.options -> document.settings (stored in other objects as
1919 - option_spec -> settings_spec (not directives though)
1920 - OptionSpec -> SettingsSpec
1921 - cmdline_options -> settings_spec
1922 - relative_path_options -> relative_path_settings
1923 - option_default_overrides -> settings_default_overrides
1924 - Publisher.set_options -> Publisher.get_settings
1928 * COPYING.txt: Added "Public Domain Dedication".
1930 * FAQ.txt: Frequently asked questions, added to project.
1934 - Updated with PyPI Trove classifiers.
1935 - Conditional installation of third-party modules.
1937 * docutils/__init__.py:
1939 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1940 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1941 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1942 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1943 option and its effect on the PEP template & writer.
1944 - Bumped version to 0.2.4 due to changes to the PEP template &
1946 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1947 - Added ``TransformSpec`` class for new transform system.
1948 - Bumped version to 0.2.6 for API changes (renaming).
1949 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1950 convenience functions.
1951 - Added ``Component.component_type`` attribute.
1952 - Bumped version to 0.2.8 because of the internal parser switch from
1953 plain lists to the docutils.statemachine.StringList objects.
1954 - Bumped version to 0.2.9 because of the frontend.py API changes.
1955 - Bumped version to 0.2.10 due to changes to the project layout
1956 (third-party modules removed from the "docutils" package), and
1957 signature changes in ``io.Input``/``io.Output``.
1958 - Changed version to 0.3.0 for release.
1962 - Made ``publish()`` a bit more convenient.
1963 - Generalized ``Publisher.set_io``.
1964 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1965 parameters; improved its docstring.
1966 - Added ``publish_file()`` and ``publish_string()``.
1967 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1969 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1970 "--dump-transforms" hidden options.
1971 - Added ``Publisher.apply_transforms()`` method.
1972 - Added ``Publisher.set_components()`` method; support for
1973 ``publish_*()`` conveninece functions.
1974 - Moved config file processing to docutils/frontend.py.
1975 - Added support for exit status ("exit_level" setting &
1976 ``enable_exit`` parameter for Publisher.publish() and convenience
1979 * docutils/frontend.py:
1981 - Check for & exit on identical source & destination paths.
1982 - Fixed bug with absolute paths & "--config".
1983 - Set non-command-line defaults in ``OptionParser.__init__()``:
1984 ``_source`` & ``_destination``.
1985 - Distributed ``relative_path_settings`` to components; updated
1986 ``OptionParser.populate_from_components()`` to combine it all.
1987 - Require list of keys in ``make_paths_absolute`` (was implicit in
1988 global ``relative_path_settings``).
1989 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1990 "--dump-settings", and "--dump-transforms" hidden options.
1991 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1992 code, replaced with correct code.
1993 - Added validation functionality for config files.
1994 - Added "--error-encoding" option/setting, "_disable_config"
1996 - Added encoding validation; updated "--input-encoding" and
1997 "--output-encoding"; added "--error-encoding-error-handler" and
1998 "--output-encoding-error-handler".
1999 - Moved config file processing from docutils/core.py.
2000 - Updated ``OptionParser.populate_from_components`` to handle new
2001 ``SettingsSpec.settings_defaults`` dict.
2002 - Added support for "-" => stdin/stdout.
2003 - Added "exit_level" setting ("--exit" option).
2007 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
2008 - Added automatic closing to ``FileInput`` and ``FileOutput``.
2009 - Delayed opening of ``FileOutput`` file until ``write()`` called.
2010 - ``FileOutput.write()`` now returns the encoded output string.
2011 - Try to get path/stream name automatically in ``FileInput`` &
2013 - Added defaults for source & destination paths.
2014 - Allow for Unicode I/O with an explicit "unicode" encoding.
2015 - Added ``Output.encode()``.
2016 - Removed dependency on runtime settings; pass encoding directly.
2017 - Recognize Unicode strings in ``Input.decode()``.
2018 - Added support for output encoding error handlers.
2020 * docutils/nodes.py:
2022 - Added "Invisible" element category class.
2023 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2024 modification during a traversal.
2025 - Added element classes: ``line_block``, ``generated``, ``address``,
2026 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2027 ``superscript``, ``subscript``, ``inline``
2028 - Added support for lists of nodes to ``Element.insert()``.
2029 - Fixed parent linking in ``Element.replace()``.
2030 - Added new abstract superclass ``FixedTextElement``; adds
2031 "xml:space" attribute.
2032 - Added support for "line" attribute of ``system_message`` nodes.
2033 - Added support for the observer pattern from ``utils.Reporter``.
2034 Added ``parse_messages`` and ``transform_messages`` attributes to
2035 ``document``, removed ``messages``. Added ``note_parse_message``
2036 and ``note_transform_message`` methods.
2037 - Added support for improved diagnostics:
2039 - Added "document", "source", and "line" internal attributes to
2040 ``Node``, set by ``Node.setup_child()``.
2041 - Converted variations on ``node.parent = self`` to
2042 ``self.setup_child(node)``.
2043 - Added ``document.current_source`` & ``.current_line``
2044 attributes, and ``.note_source`` observer method.
2045 - Changed "system_message" output to GNU-Tools format.
2047 - Added a "rawsource" attribute to the ``Text`` class, for text
2048 before backslash-escape resolution.
2049 - Support for new transform system.
2050 - Reworked ``pending`` element.
2051 - Fixed XML DOM bug (SF #660611).
2052 - Removed the ``interpeted`` element class and added
2053 ``title_reference``, ``abbreviation``, ``acronym``.
2054 - Made substitutions case-sensitive-but-forgiving; moved some code
2056 - Fixed Unicode bug on element attributes (report: William Dode).
2058 * docutils/optik.py: Removed from project; replaced with
2059 extras/optparse.py and extras/textwrap.py. These will be installed
2060 only if they're not already present in the Python installation.
2062 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2063 only if it's not already present in the Python installation.
2065 * docutils/statemachine.py:
2067 - Factored out ``State.add_initial_transitions()`` so it can be
2069 - Converted whitespace-specific "blank" and "indent" transitions
2070 from special-case code to ordinary transitions: removed
2071 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2072 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2073 ``ws_initial_transitions`` attributes.
2074 - Removed ``State.match_transition()`` after merging it into
2076 - Added ``StateCorrection`` exception.
2077 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2078 (moved ``TransitionCorrection`` support there too.)
2079 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2080 ``EOFError`` instead of ``IndexError``.
2081 - Added ``State.no_match`` method.
2082 - Added support for the Observer pattern, triggered by input line
2084 - Added ``strip_top`` parameter to
2085 ``StateMachineWS.get_first_known_indented``.
2086 - Made ``context`` a parameter to ``StateMachine.run()``.
2087 - Added ``ViewList`` & ``StringList`` classes;
2088 ``extract_indented()`` becomes ``StringList.get_indented()``.
2089 - Added ``StateMachine.insert_input()``.
2090 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2091 thanks to) Fred Drake.
2093 * docutils/utils.py:
2095 - Added a ``source`` attribute to Reporter instances and
2096 ``system_message`` elements.
2097 - Added an observer pattern to ``utils.Reporter`` to keep track of
2099 - Fixed bugs in ``relative_path()``.
2100 - Added support for improved diagnostics.
2101 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2102 - Added support for encoding Reporter stderr output, and encoding
2104 - Reporter keeps track of the highest level system message yet
2107 * docutils/languages: Fixed bibliographic field language lookups.
2109 * docutils/languages/es.py: Added to project; Spanish mappings by
2110 Marcelo Huerta San Martin.
2112 * docutils/languages/fr.py: Added to project; French mappings by
2115 * docutils/languages/it.py: Added to project; Italian mappings by
2118 * docutils/languages/sk.py: Added to project; Slovak mappings by
2121 * docutils/parser/__init__.py:
2123 - Added ``Parser.finish_parse()`` method.
2125 * docutils/parser/rst/__init__.py:
2127 - Added options: "--pep-references", "--rfc-references",
2128 "--tab-width", "--trim-footnote-reference-space".
2130 * docutils/parsers/rst/states.py:
2132 - Changed "title under/overline too short" system messages from INFO
2133 to WARNING, and fixed its insertion location.
2134 - Fixed enumerated list item parsing to allow paragraphs & section
2135 titles to begin with enumerators.
2136 - Converted system messages to use the new "line" attribute.
2137 - Fixed a substitution reference edge case.
2138 - Added support for "--pep-references" and "--rfc-references"
2139 options; reworked ``Inliner`` code to make customization easier.
2140 - Removed field argument parsing.
2141 - Added support for short section title over/underlines.
2142 - Fixed "simple reference name" regexp to ignore text like
2143 "object.__method__"; not an anonymous reference.
2144 - Added support for improved diagnostics.
2145 - Reworked directive API, based on Dethe Elza's contribution. Added
2146 ``Body.parse_directive()``, ``.parse_directive_options()``,
2147 ``.parse_directive_arguments()`` methods.
2148 - Added ``ExtensionOptions`` class, to parse directive options
2149 without parsing field bodies. Factored
2150 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2151 ``ExtensionOptions``.
2152 - Improved definition list term/classifier parsing.
2153 - Added warnings for unknown directives.
2154 - Renamed ``Stuff`` to ``Struct``.
2155 - Now flagged as errors: transitions at the beginning or end of
2156 sections, empty sections (except title), and empty documents.
2157 - Updated for ``statemachine.StringList``.
2158 - Enabled recognition of schemeless email addresses in targets.
2159 - Added support for embedded URIs in hyperlink references.
2160 - Added backslash-escapes to inline markup end-string suffix.
2161 - Added support for correct interpreted text processing.
2162 - Fixed nested title parsing (topic, sidebar directives).
2163 - Added special processing of backslash-escaped whitespace (idea
2164 from David Abrahams).
2165 - Made substitutions case-sensitive-but-forgiving; moved some code
2166 to ``docutils.nodes``.
2167 - Added support for block quote attributions.
2168 - Added a kludge to work-around a conflict between the bubble-up
2169 parser strategy and short titles (<= 3 char-long over- &
2170 underlines). Fixes SF bug #738803 "infinite loop with multiple
2171 titles" submitted by Jason Diamond.
2172 - Added explicit interpreted text roles for standard inline markup:
2173 "emphasis", "strong", "literal".
2174 - Implemented "superscript" and "subscript" interpreted text roles.
2175 - Added initial support for "abbreviation" and "acronym" roles;
2177 - Added support for "--trim-footnote-reference-space" option.
2178 - Optional space before colons in directives & hyperlink targets.
2180 * docutils/parsers/rst/tableparser.py:
2182 - Fixed a bug that was producing unwanted empty rows in "simple"
2184 - Detect bad column spans in "simple" tables.
2186 * docutils/parsers/rst/directives: Updated all directive functions to
2189 * docutils/parsers/rst/directives/__init__.py:
2191 - Added ``flag()``, ``unchanged()``, ``path()``,
2192 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2193 directive option helper functions.
2194 - Added warnings for unknown directives.
2195 - Return ``None`` for missing directives.
2196 - Added ``register_directive()``, thanks to William Dode and Paul
2199 * docutils/parsers/rst/directives/admonitions.py:
2201 - Added "admonition" directive.
2203 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2204 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2205 "parsed-literal", "rubric", "epigraph", "highlights" and
2206 "pull-quote" directives.
2208 * docutils/parsers/rst/directives/images.py:
2210 - Added an "align" attribute to the "image" & "figure" directives
2211 (by Adam Chodorowski).
2212 - Added "class" option to "image", and "figclass" to "figure".
2214 * docutils/parsers/rst/directives/misc.py:
2216 - Added "include", "raw", and "replace" directives, courtesy of
2218 - Added "unicode" and "class" directives.
2220 * docutils/parsers/rst/directives/parts.py:
2222 - Added the "sectnum" directive; by Dmitry Jemerov.
2223 - Added "class" option to "contents" directive.
2225 * docutils/parsers/rst/directives/references.py: Added to project.
2226 Contains the "target-notes" directive.
2228 * docutils/parsers/rst/languages/__init__.py:
2230 - Return ``None`` from get_language() for missing language modules.
2232 * docutils/parsers/rst/languages/de.py: Added to project; German
2233 mappings by Engelbert Gruber.
2235 * docutils/parsers/rst/languages/en.py:
2237 - Added interpreted text roles mapping.
2239 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2240 mappings by Marcelo Huerta San Martin.
2242 * docutils/parsers/rst/languages/fr.py: Added to project; French
2243 mappings by William Dode.
2245 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2246 mappings by Nicola Larosa.
2248 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2249 mappings by Miroslav Vasko.
2251 * docutils/readers/__init__.py:
2253 - Added support for the observer pattern from ``utils.Reporter``, in
2254 ``Reader.parse`` and ``Reader.transform``.
2255 - Removed ``Reader.transform()`` method.
2256 - Added default parameter values to ``Reader.__init__()`` to make
2257 instantiation easier.
2258 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2260 * docutils/readers/pep.py:
2262 - Added the ``peps.TargetNotes`` transform to the Reader.
2263 - Removed PEP & RFC reference detection code; moved to
2264 parsers/rst/states.py as options (enabled here by default).
2265 - Added support for pre-acceptance PEPs (no PEP number yet).
2266 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2269 * docutils/readers/python: Python Source Reader subpackage added to
2270 project, including preliminary versions of:
2273 - moduleparser.py: Parser for Python modules.
2275 * docutils/transforms/__init__.py:
2277 - Added ``Transformer`` class and completed transform reform.
2278 - Added unknown_reference_resolvers list for each transformer. This list holds
2279 the list of functions provided by each component of the transformer that
2280 help resolve references.
2282 * docutils/transforms/frontmatter.py:
2284 - Improved support for generic fields.
2285 - Fixed bibliographic field language lookups.
2287 * docutils/transforms/misc.py: Added to project. Miscellaneous
2290 * docutils/transforms/parts.py:
2292 - Moved the "id" attribute from TOC list items to the references
2293 (``Contents.build_contents()``).
2294 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2295 - Added "class" attribute support to ``Contents``.
2297 * docutils/transforms/peps.py:
2299 - Added ``mask_email()`` function, updating to pep2html.py's
2301 - Linked "Content-Type: text/x-rst" to PEP 12.
2302 - Added the ``TargetNotes`` PEP-specific transform.
2303 - Added ``TargetNotes.cleanup_callback``.
2304 - Added title check to ``Headers``.
2306 * docutils/transforms/references.py:
2308 - Added the ``TargetNotes`` generic transform.
2309 - Split ``Hyperlinks`` into multiple transforms.
2310 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2311 - Added check for circular indirect references.
2312 - Made substitutions case-sensitive-but-forgiving.
2314 * docutils/transforms/universal.py:
2316 - Added support for the "--expose-internal-attributes" option.
2317 - Removed ``Pending`` transform classes & data.
2319 * docutils/writers/__init__.py:
2321 - Removed ``Writer.transform()`` method.
2323 * docutils/writers/docutils-xml.py:
2325 - Added XML and doctype declarations.
2326 - Added "--no-doctype" and "--no-xml-declaration" options.
2328 * docutils/writers/html4css1.py:
2330 - "name" attributes only on these tags: a, applet, form, frame,
2332 - Added "name" attribute to <a> in section titles for Netscape 4
2333 support (bug report: Pearu Peterson).
2334 - Fixed targets (names) on footnote, citation, topic title,
2335 problematic, and system_message nodes (for Netscape 4).
2336 - Changed field names from "<td>" to "<th>".
2337 - Added "@" to "@" encoding to thwart address harvesters.
2338 - Improved the vertical whitespace optimization; ignore "invisible"
2339 nodes (targets, comments, etc.).
2340 - Improved inline literals with ``<span class="pre">`` around chunks
2341 of text and `` `` for runs of spaces.
2342 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2343 ``self.docinfo`` segments.
2344 - Added support for "line_block", "address" elements.
2345 - Improved backlinks (footnotes & system_messages).
2346 - Improved system_message output.
2347 - Redefined "--stylesheet" as containing an invariant URL, used
2348 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2350 - Added "--footnote-references" option (superscript or brackets).
2351 - Added "--compact-lists" and "--no-compact-lists" options.
2352 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2353 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2354 - Improved field list rendering.
2355 - Added Docutils version to "generator" meta tag.
2356 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2357 - Improved layout of <pre> HTML source.
2358 - Fixed attribute typo on <colspec>.
2359 - Refined XML prologue.
2360 - Support for no stylesheet.
2361 - Removed "interpreted" element support.
2362 - Added support for "title_reference", "sidebar", "attribution",
2363 "rubric", and generic "admonition" elements.
2364 - Added "--attribution" option.
2365 - Added support for "inline", "subscript", "superscript" elements.
2366 - Added initial support for "abbreviation" and "acronym";
2369 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2373 - Double quotes in literal blocks (special treatment for de/ngerman).
2374 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2375 - Added "--attribution" option.
2376 - Right align attributions.
2378 * docutils/writers/pep_html.py:
2380 - Parameterized output encoding in PEP template.
2381 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2382 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2383 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2385 - Added an override on the "--footnote-references" option.
2386 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2387 - Added Docutils version to "generator" meta tag.
2388 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2392 - Added a "silent" setting for ``buildhtml.py``.
2393 - Added a "Getting Help" section.
2394 - Rearranged the structure.
2395 - Kept up to date, with new settings, command-line options etc.
2396 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2397 - Converted settings table into a definition list.
2399 * docs/rst/quickstart.txt:
2401 - Added a table of contents.
2402 - Added feedback information.
2403 - Added mention of minimum section title underline lengths.
2404 - Removed the 4-character minimum for section title underlines.
2406 * docs/rst/quickref.html:
2408 - Added a "Getting Help" section.
2409 - Added a style to make section title backlinks more subtle.
2410 - Added mention of minimum section title underline lengths.
2411 - Removed the 4-character minimum for section title underlines.
2413 * extras: Directory added to project; contains third-party modules
2414 that Docutils depends on (optparse, textwrap, roman). These are
2415 only installed if they're not already present.
2417 * licenses: Directory added to project; contains copies of license
2418 files for non-public-domain files.
2422 - Changed the focus. It's about DTD elements: structural
2423 relationships, semantics, and external (public) attributes. Not
2424 about the element class library.
2425 - Moved some implementation-specific stuff into ``docutils.nodes``
2427 - Wrote descriptions of all common attributes and parameter
2428 entities. Filled in introductory material.
2429 - Working through the element descriptions: 55 down, 37 to go.
2430 - Removed "Representation of Horizontal Rules" to
2431 spec/rst/alternatives.txt.
2433 * spec/docutils.dtd:
2435 - Added "generated" inline element.
2436 - Added "line_block" body element.
2437 - Added "auto" attribute to "title".
2438 - Changed content models of "literal_block" and "doctest_block" to
2440 - Added ``%number;`` attribute type parameter entity.
2441 - Changed ``%structural.elements;`` to ``%section.elements``.
2442 - Updated attribute types; made more specific.
2443 - Added "address" bibliographic element.
2444 - Added "line" attribute to ``system_message`` element.
2445 - Removed "field_argument" element; "field_name" may contain
2446 multiple words and whitespace.
2447 - Changed public identifier to docutils.sf.net.
2448 - Removed "interpreted" element; added "title_reference",
2449 "abbreviation", "acronym".
2450 - Removed "refuri" attribute from "footnote_reference" and
2451 "citation_reference".
2452 - Added "sidebar", "rubric", "attribution", "admonition",
2453 "superscript", "subscript", and "inline" elements.
2455 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2457 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2459 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2461 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2464 * spec/transforms.txt: Added to project.
2466 * spec/howto: Added subdirectory, for developer how-to docs.
2468 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2469 Elza, edited & extended by David Goodger.
2471 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2474 * spec/rst/alternatives.txt:
2476 - Added "Doctree Representation of Transitions" from
2478 - Updated "Inline External Targets" & closed the debate.
2479 - Added ideas for interpreted text syntax extensions.
2480 - Added "Nested Inline Markup" section.
2482 * spec/rst/directives.txt:
2484 - Added directives: "topic", "sectnum", "target-notes",
2485 "line-block", "parsed-literal", "include", "replace", "sidebar",
2486 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2488 - Formalized descriptions of directive details.
2489 - Added an "align" attribute to the "image" & "figure" directives
2490 (by Adam Chodorowski).
2491 - Added "class" options to "topic", "sidebar", "line-block",
2492 "parsed-literal", "contents", and "image"; and "figclass" to
2495 * spec/rst/interpreted.txt: Added to project. Descriptions of
2496 interpreted text roles.
2498 * spec/rst/introduction.txt:
2500 - Added pointers to material for new users.
2502 * spec/rst/reStructuredText.txt:
2504 - Disambiguated comments (just add a newline after the "::").
2505 - Updated enumerated list description; added a discussion of the
2506 second-line validity checking.
2507 - Updated directive description.
2508 - Added a note redirecting newbies to the user docs.
2509 - Expanded description of inline markup start-strings in non-markup
2511 - Removed field arguments and made field lists a generic construct.
2512 - Removed the 4-character minimum for section title underlines.
2513 - Clarified term/classifier delimiter & inline markup ambiguity
2515 - Added "Embedded URIs".
2516 - Updated "Interpreted Text" section.
2517 - Added "Character-Level Inline Markup" section.
2519 * test: Continually adding & updating tests.
2521 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2522 - Moved test/test_pep/ to test/test_readers/test_pep/.
2523 - Added test/test_readers/test_python/.
2524 - Added test/test_writers/ (Engelbert Gruber).
2528 - Made the ``locale.setlocale()`` calls in front ends
2531 * tools/buildhtml.py:
2533 - Added "--silent" option.
2534 - Fixed bug with absolute paths & "--config".
2535 - Updated for new I/O classes.
2536 - Added some exception handling.
2537 - Separated publishers' setting defaults; prevents interference.
2538 - Updated for new ``publish_file()`` convenience function.
2540 * tools/pep-html-template:
2542 - Allow for "--embed-stylesheet".
2543 - Added Docutils version to "generator" meta tag.
2544 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2545 - Conform to XHTML spec.
2547 * tools/pep2html.py:
2549 - Made ``argv`` a parameter to ``main()``.
2550 - Added support for "Content-Type:" header & arbitrary PEP formats.
2551 - Linked "Content-Type: text/plain" to PEP 9.
2552 - Files skipped (due to an error) are not pushed onto the server.
2553 - Updated for new I/O classes.
2554 - Added ``check_requirements()`` & ``pep_type_error()``.
2555 - Added some exception handling.
2556 - Updated for new ``publish_string()`` convenience function.
2557 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2559 * tools/quicktest.py:
2561 - Added "-V"/"--version" option.
2563 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2565 * tools/unicode2rstsubs.py: Added to project. Produces character
2566 entity files (reSructuredText substitutions) from the MathML master
2569 * tools/editors: Support code for editors, added to project. Contains
2570 ``emacs/restructuredtext.el``.
2572 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2574 - Added style for chunks of inline literals.
2575 - Removed margin for first child of table cells.
2576 - Right-aligned field list names.
2577 - Support for auto-numbered section titles in TOCs.
2578 - Increased the size of inline literals (<tt>) in titles.
2579 - Restored the light gray background for inline literals.
2580 - Added support for "line_block" elements.
2581 - Added style for "address" elements.
2582 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2583 - Improved field list rendering.
2584 - Vertical whitespace improvements.
2585 - Removed "a.target" style.
2587 * tools/stylesheets/pep.css:
2589 - Fixed nested section margins.
2590 - Other changes parallel those of ``../default.css``.
2593 Release 0.2 (2002-07-31)
2594 ========================
2598 - The word "component" was being used ambiguously. From now on,
2599 "component" will be used to mean "Docutils component", as in Reader,
2600 Writer, Parser, or Transform. Portions of documents (Table of
2601 Contents, sections, etc.) will be called "document parts".
2602 - Did a grand renaming: a lot of ``verylongnames`` became
2603 ``very_long_names``.
2604 - Cleaned up imports: no more relative package imports or
2605 comma-separated lists of top-level modules.
2606 - Added support for an option values object which carries default
2607 settings and overrides (from command-line options and library use).
2608 - Added internal Unicode support, and support for both input and
2610 - Added support for the ``docutils.io.IO`` class & subclasses.
2614 * docutils/__init__.py:
2616 - Added ``ApplicationError`` and ``DataError``, for use throughout
2618 - Added ``Component`` base class for Docutils components; implements
2619 the ``supports`` method.
2620 - Added ``__version__`` (thus, ``docutils.__version__``).
2624 - Removed many keyword parameters to ``Publisher.__init__()`` and
2625 ``publish()``; bundled into an option values object. Added
2626 "argv", "usage", "description", and "option_spec" parameters for
2627 command-line support.
2628 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2630 - Reworked I/O model for ``docutils.io`` wrappers.
2631 - Updated ``Publisher.set_options()``; now returns option values
2633 - Added support for configuration files (/etc/docutils.conf,
2634 ./docutils.conf, ~/.docutils).
2635 - Added ``Publisher.setup_option_parser()``.
2636 - Added default usage message and description.
2638 * docutils/frontend.py: Added to project; support for front-end
2639 (command-line) scripts. Option specifications may be augmented by
2640 components. Requires Optik (http://optik.sf.net/) for option
2641 processing (installed locally as docutils/optik.py).
2643 * docutils/io.py: Added to project; uniform API for a variety of input
2646 * docutils/nodes.py:
2648 - Added ``TreeCopyVisitor`` class.
2649 - Added a ``copy`` method to ``Node`` and subclasses.
2650 - Added a ``SkipDeparture`` exception for visitors.
2651 - Renamed ``TreePruningException`` from ``VisitorException``.
2652 - Added docstrings to ``TreePruningException``, subclasses, and
2654 - Improved docstrings.
2655 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2656 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2658 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2659 ``PreDecorative`` mixin.
2660 - Reworked the name/id bookkeeping; to ``document``, removed
2661 ``explicit_targets`` and ``implicit_targets`` attributes, added
2662 ``nametypes`` attribute and ``set_name_id_map`` method.
2663 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2665 - Added ``document.has_name()`` method.
2666 - Fixed DOM generation for list-attributes.
2667 - Added category class ``Labeled`` (used by footnotes & citations).
2668 - Added ``Element.set_class()`` method (sets "class" attribute).
2670 * docutils/optik.py: Added to project. Combined from the Optik
2671 package, with added option groups and other modifications. The use
2672 of this module is probably only temporary.
2674 * docutils/statemachine.py:
2676 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2677 - Added underscores to improve many awkward names.
2678 - In ``string2lines()``, changed whitespace normalizing translation
2679 table to regexp; restores Python 2.0 compatibility with Unicode.
2681 * docutils/urischemes.py:
2683 - Filled in some descriptions.
2684 - Added "shttp" scheme.
2686 * docutils/utils.py:
2688 - Added ``clean_rcs_keywords`` function (moved from
2689 docutils/transforms/frontmatter.py
2690 ``DocInfo.filter_rcs_keywords``).
2691 - Added underscores to improve many awkward names.
2692 - Changed names of Reporter's thresholds:
2693 warning_level -> report_level; error_level -> halt_level.
2694 - Moved ``utils.id()`` to ``nodes.make_id()``.
2695 - Added ``relative_path(source, target)``.
2697 * docutils/languages/de.py: German mappings; added to project. Thanks
2698 to Gunnar Schwant for the translations.
2700 * docutils/languages/en.py: Added "Dedication" bibliographic field
2703 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2706 * docutils/parsers/rst/states.py:
2708 - Added underscores to improve many awkward names.
2709 - Added RFC-2822 header support.
2710 - Extracted the inline parsing code from ``RSTState`` to a separate
2711 class, ``Inliner``, which will allow easy subclassing.
2712 - Made local bindings for ``memo`` container & often-used contents
2713 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2714 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2715 - Added ``MarkupMismatch`` exception; for late corrections.
2716 - Added ``-/:`` characters to inline markup's start string prefix,
2717 ``/`` to end string suffix.
2718 - Fixed a footnote bug.
2719 - Fixed a bug with literal blocks.
2720 - Applied patch from Simon Budig: simplified regexps with symbolic
2721 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2722 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2723 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2724 - Allowed non-ASCII in "simple names" (directive names, field names,
2726 - Converted ``Inliner.patterns.initial`` to be dynamically built
2727 from parts with ``build_regexp()`` function.
2728 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2729 - Updated docstrings.
2730 - Changed "table" to "grid_table"; added "simple_table" support.
2732 * docutils/parsers/rst/tableparser.py:
2734 - Changed ``TableParser`` to ``GridTableParser``.
2735 - Added ``SimpleTableParser``.
2736 - Refactored naming.
2738 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2739 a fallback language for directive names.
2741 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2742 directive to use a ``pending`` element, used only by HTML writers.
2744 * docutils/parsers/rst/directives/parts.py: Renamed from
2747 - Added "backlinks" attribute to "contents" directive.
2749 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2750 project by Adam Chodorowski.
2752 * docutils/readers/__init__.py: Gave Readers more control over
2753 choosing and instantiating Parsers.
2755 * docutils/readers/pep.py: Added to project; for PEP processing.
2757 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2758 requires a ``component`` parameter.
2760 * docutils/transforms/components.py: Added to project; transforms
2761 related to Docutils components.
2763 * docutils/transforms/frontmatter.py:
2765 - In ``DocInfo.extract_authors``, check for a single "author" in an
2766 "authors" group, and convert it to a single "author" element.
2767 - Added support for "Dedication" and generic bibliographic fields.
2769 * docutils/transforms/peps.py: Added to project; PEP-specific.
2771 * docutils/transforms/parts.py: Renamed from old components.py.
2773 - Added filter for `Contents`, to use alt-text for inline images,
2774 and to remove inline markup that doesn't make sense in the ToC.
2775 - Added "name" attribute to TOC topic depending on its title.
2776 - Added support for optional TOC backlinks.
2778 * docutils/transforms/references.py: Fixed indirect target resolution
2779 in ``Hyperlinks`` transform.
2781 * docutils/transforms/universal.py:
2783 - Changed ``Messages`` transform to properly filter out system
2784 messages below the warning threshold.
2785 - Added ``Decorations`` transform (support for ``--generator``,
2786 ``--date``, ``--time``, ``--source-link`` options).
2788 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2789 Engelbert Gruber's PDF writer.
2791 * docutils/writers/html4css1.py:
2793 - Made XHTML-compatible (switched to lowercase element & attribute
2794 names; empty tag format).
2795 - Escape double-dashes in comment text.
2796 - Improved boilerplate & modularity of output.
2797 - Exposed modular output in Writer class.
2798 - Added a "generator" meta tag to <head>.
2799 - Added support for the ``--stylesheet`` option.
2800 - Added support for ``decoration``, ``header``, and ``footer``
2802 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2803 translation table to regexp; restores Python 2.0 compatibility
2805 - Added the translator class as instance variable to the Writer, to
2806 make it easily subclassable.
2807 - Improved option list spacing (thanks to Richard Jones).
2808 - Modified field list output.
2809 - Added backlinks to footnotes & citations.
2810 - Added percentage widths to "<col>" tags (from colspec).
2811 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2812 "<span>" changed to "<var>".
2813 - Inline literals: "<code>" changed to "<tt>".
2814 - Many changes to optimize vertical space: compact simple lists etc.
2815 - Add a command-line options & directive attributes to control TOC
2816 and footnote/citation backlinks.
2817 - Added support for optional footnote/citation backlinks.
2818 - Added support for generic bibliographic fields.
2819 - Identify backrefs.
2820 - Relative URLs for stylesheet links.
2822 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2823 PEPs (subclass of ``html4css1.Writer``).
2825 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2827 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2828 of the Docutils internal doctree in XML.
2830 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2834 - Changed the title to "The Docutils Document Tree".
2835 - Added "Hyperlink Bookkeeping" section.
2837 * spec/docutils.dtd:
2839 - Added ``decoration``, ``header``, and ``footer`` elements.
2840 - Brought ``interpreted`` element in line with the parser: changed
2841 attribute "type" to "role", added "position".
2842 - Added support for generic bibliographic fields.
2844 * spec/notes.txt: Continual updates. Added "Project Policies".
2846 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2849 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2851 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2852 mailing list discussions.
2854 * spec/pep-0287.txt:
2856 - Renamed to "reStructuredText Docstring Format".
2858 - Reworked Q&A as an enumerated list.
2859 - Converted to reStructuredText format.
2861 * spec/pysource.dtd:
2863 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2865 * spec/pysource.txt: Removed from project. Moved much of its contents
2868 * spec/rst/alternatives.txt:
2870 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2871 - Added "Inline External Targets" section.
2873 * spec/rst/directives.txt:
2875 - Added "backlinks" attribute to "contents" directive.
2877 * spec/rst/problems.txt:
2879 - Updated the Enumerated List Markup discussion.
2880 - Added new alternative table markup syntaxes.
2882 * spec/rst/reStructuredText.txt:
2884 - Clarified field list usage.
2885 - Updated enumerated list description.
2886 - Clarified purpose of directives.
2887 - Added ``-/:`` characters to inline markup's start string prefix,
2888 ``/`` to end string suffix.
2889 - Updated "Authors" bibliographic field behavior.
2890 - Changed "inline hyperlink targets" to "inline internal targets".
2891 - Added "simple table" syntax to supplement the existing but
2892 newly-renamed "grid tables".
2893 - Added cautions for anonymous hyperlink use.
2894 - Added "Dedication" and generic bibliographic fields.
2896 * test: Made test modules standalone (subdirectories became packages).
2898 * test/DocutilsTestSupport.py:
2900 - Added support for PEP extensions to reStructuredText.
2901 - Added support for simple tables.
2902 - Refactored naming.
2904 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2906 - Now supports true packages containing test modules
2907 (``__init__.py`` files required); fixes duplicate module name bug.
2909 * test/test_pep/: Subpackage added to project; PEP testing.
2911 * test/test_rst/test_SimpleTableParser.py: Added to project.
2915 - Updated html.py and publish.py front-end tools to use the new
2916 command-line processing facilities of ``docutils.frontend``
2917 (exposed in ``docutils.core.Publisher``), reducing each to just a
2919 - Added ``locale.setlocale()`` calls to front-end tools.
2921 * tools/buildhtml.py: Added to project; batch-generates .html from all
2922 the .txt files in directories and subdirectories.
2924 * tools/default.css:
2926 - Added support for ``header`` and ``footer`` elements.
2927 - Added styles for "Dedication" topics (biblio fields).
2929 * tools/docutils.conf: A configuration file; added to project.
2931 * tools/docutils-xml.py: Added to project.
2933 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2935 * tools/pep-html-template: Added to project.
2937 * tools/pep2html.py: Added to project from Python (nondist/peps).
2938 Added support for Docutils (reStructuredText PEPs).
2940 * tools/quicktest.py:
2942 - Added the ``--attributes`` option, hacked a bit.
2943 - Added a second command-line argument (output file); cleaned up.
2945 * tools/stylesheets/: Subdirectory added to project.
2947 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2950 Release 0.1 (2002-04-20)
2951 ========================
2953 This is the first release of Docutils, merged from the now inactive
2954 reStructuredText__ and `Docstring Processing System`__ projects. For
2955 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2956 `DPS HISTORY`__ files.
2958 __ http://structuredtext.sourceforge.net/
2959 __ http://docstring.sourceforge.net/
2960 __ http://structuredtext.sourceforge.net/HISTORY.html
2961 __ http://docstring.sourceforge.net/HISTORY.html
2963 General changes: renamed 'dps' package to 'docutils'; renamed
2964 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2965 the test suites (reStructuredText's test/test_states renamed to
2966 test/test_rst); and all modifications required to make it all work.
2968 * docutils/parsers/rst/states.py:
2970 - Improved diagnostic system messages for missing blank lines.
2971 - Fixed substitution_reference bug.
2977 indent-tabs-mode: nil
2978 sentence-end-double-space: t