1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: goodger@python.org
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
21 - Dropped support for Python 2.3.
22 - ``docutils/math``, ``docutils/error_reporting.py``, and
23 ``docutils/urischemes.py`` moved to the utils package.
24 - Fix [3541369] Relative __import__ also with Python 3.3.
28 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
29 option is ignored and will be removed in a future release.
31 * docutils/parsers/rst/directives/misc.py
33 - Fix [ 3546533 ] Unicode error with `date` directive.
35 * docutils/writers/manpage.py
37 - Apply [ 3527401 ] addmonition's don't preserve indentation
38 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
40 * docutils/writers/latex2e/__init__.py, docutils/writers/xetex/__init__.py
42 - Apply [ 3555160 ] ensure order of "otherlanguages".
44 * docutils/writers/s5_html/__init__.py
46 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
49 Release 0.9.1 (2012-06-17)
50 ==========================
54 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
55 installed in the PYTHONPATH. Converted tests are now
56 stored in ``test3/``, tools no longer need conversion.
58 If you installed one of Docutils versions 0.7 ... 0.9 with
59 ``setup.py install`` under Python 3, remove the spurious
60 ``test/`` and ``tools/`` directories in the site library root.
64 - Make tests independent from the location of the ``test/`` directory.
65 - Use converted sources (from the ``build/`` directory) for tests under
70 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
74 - Fix writing binary data to sys.stdout under Python 3 (allows
75 ``rst2odt.py`` to be used with output redirection).
77 * docutils/parsers/rst/directives/misc.py
79 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
80 ``locale == C`` and 8-bit char in path argument of `include` directive.
82 * docutils/test/alltests.py
84 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
87 Release 0.9 (2012-05-02)
88 ========================
92 - New reStructuredText "code" role and directive and "code" option
93 of the "include" directive with syntax highlighting by Pygments_.
94 - Fix parse_option_marker for option arguments containing ``=``.
95 - Fix [ 2993756 ]: import Python Imaging Library's Image module
96 via ``import PIL`` as starting with PIL 1.2,
97 "PIL lives in the PIL namespace only" (announcement__).
99 .. _Pygments: http://pygments.org/
100 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
104 - Fix [ 2971827 ] and [ 3442827 ]
105 extras/roman.py moved to docutils/utils/roman.py
107 * docutils/frontend.py
109 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
113 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
114 - `mode` argument for FileOutput avoids code replication in
116 - New exceptions InputError and OutputError for IO errors in
117 FileInput/FileOutput.
121 - No "hard" system exit on file IO errors: catch and report them in
122 `Publisher.reportException` instead. Allows handling by a calling
123 application if the configuration setting `traceback` is True.
125 * docutils/utils.py -> docutils/utils/__init__.py
127 - docutils.utils is now a package (providing a place for sub-modules)
129 .. note:: docutils/math, docutils/error_reporting.py, and
130 docutils/urischemes.py will move to the utils package in the next
131 release, too. See RELEASE-NOTES__
133 __ RELEASE-NOTES.html
135 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
136 errors recording non-ASCII filenames (fixes [ 3434355 ]).
138 - Fix relative_path() with source=None and `unicode` target.
140 * docutils/parsers/rst/states.py
142 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
143 characters and "international" quotes around inline markup.
144 - Use `field_marker` pattern to look for start of a
145 directive option block (fixes [ 3484857 ]).
147 * docutils/parsers/rst/tableparser.py
149 - Fix [ 2926161 ] for simple tables.
150 (Combining chars in grid tables still contribute to cell width.)
152 * docutils/writers/latex2e/__init__.py
154 - Support the `abbreviation` and `acronym` standard roles.
155 - Record only files required to generate the LaTeX source as dependencies.
156 - Fix handling of missing stylesheets.
157 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
158 when suppressing LaTeX section numbering.
159 - Use ``\DUtitle`` for unsupported section levels
160 - Apply [ 3512791 ] do not compare string literals with "is"
162 * docutils/writers/xetex/__init__.py
164 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
166 * docutils/writers/html4css1/__init__.py
168 - Change default for `math-output` setting to MathJax.
169 - Fix handling of missing stylesheets.
171 * docutils/writers/docutils_xml.py
173 - Use the visitor pattern with default_visit()/default_depart() methods
174 instead of minidom to facilitate special handling of selected nodes.
175 - Support raw XML (inserted as-is inside a <raw></raw> node).
177 * docutils/writers/manpage.py
179 - Do not emit comment line with trailing blank. Problematic for VCS.
181 Release 0.8.1 (2011-08-30)
182 ==========================
186 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
187 and [ 3395920 ] (correct copyright info for rst.el).
191 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
193 * docutils/writers/latex2e/__init__.py
195 - Clean up Babel language setting. Restores Sphinx compatibility.
197 Release 0.8 (2011-07-07)
198 ========================
202 - Handle language codes according to `BCP 47`_.
203 - If the specified language is not supported by Docutils,
204 warn and fall back to English.
205 - Math support: reStructuredText "math" role and directive,
206 ``math`` and ``math_block`` doctree elements.
207 - Decode command line arguments with the locale's preferred encoding
208 (to allow, e.g., ``--title=Dornröschen``).
209 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
210 - New sub-module `error_reporting`: handle encoding/decoding errors
211 when reporting exceptions.
212 - Some additions to the Docutils core are released under the 2-Clause BSD
213 license, see COPYING_ for details.
215 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
216 .. _COPYING: COPYING.html
220 - Most directives now support a "name" option that attaches a
223 - Directive content may start on the first line also when the directive
224 type accepts options.
226 * docs/dev/policies.txt:
228 - Recommend the 2-Clause BSD license
229 (http://www.spdx.org/licenses/BSD-2-Clause)
230 for code that is kept under the author's copyright.
232 * tools/buildhtml.py:
234 - Fix ``--local`` switch.
236 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
238 * docutils/writers/html4css1/__init__.py
240 - Set "lang" argument for objects with class argument
241 "language-<language tag>".
242 - New setting "math-output" with support for HTML, MathML, and LaTeX.
244 * docutils/writers/latex2e/__init__.py
246 - Fix [ 3043986 ] AttributeError using :local: with table of content.
247 - Place title data in the document preamble.
248 - Load `babel` package only if required.
249 - Update list of supported languages.
250 - New config setting "hyperref-options".
251 No hard-coded "unicode" hyperref option (clash with xetex).
252 - Set language for custom roles, paragraphs, block-quotes, and
253 line-quotes with class argument "language-<language tag>".
254 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
255 - Convert image URI to a local file path.
256 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
257 has more than one paragraph (Wolfgang Scherer).
258 - \leavevmode before longtable only when needed (prevents spurious vspace)
259 - do not advance table counter for tables without caption
261 * docutils/writers/xetex/__init__.py
263 - New writer generating LaTeX code for compiling with ``xelatex``.
265 A separate writer (inheriting from latex2e) instead of a ``--xetex``
266 option allows separate config options for XeTeX vs. LaTeX2e.
268 * docutils/writers/manpage.py
270 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
271 - Fix: vertical space cleaning for option group ``.``.
273 * tools/editors/emacs/rst.el:
275 - Fix [ 3001100 ] does not handle spaces in filenames
276 (thanks to Jakub Wilk)
280 - strip whitespace from stylesheet arguments
281 - exclude combining chars from column_width()
282 (partial fix for [ 2926161 ])
284 * docutils/parsers/rst/directives/misc.py:
286 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
291 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
292 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
294 Release 0.7 (2010-07-07)
295 ========================
299 - Fix [ 2881769 ] setup configuration.
300 - Fix [ 2788716 ] reporting problems in included files.
304 - FileInput opens files as text files with universal newline support
305 (mode "rU", configurable with the new optional argument "mode").
309 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
313 - Fix [ 2923723 ] let decode_path() tolerate path == None
315 * docutils/writers/html4css1/__init__.py
317 - Support SVG and SWF images (thanks to Stefan Rank).
318 - Generate valid XHTML for centered images with targets.
319 Use CSS classes instead of "align" tags for image alignment.
321 * docutils/writers/latex2e/__init__.py
323 - Use `transforms.writer_aux.Admonitions` to "normalize" special
325 - Use the ``\url`` command for URLs (breaks long URLs instead of
326 writing into the margin).
327 - Preserve runs of spaces in `inline literals`__.
328 - Deprecate ``figure_footnotes`` setting.
329 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
330 - New ``latex_preamble`` setting.
331 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
332 - Fix hyperlink targets (labels) for images, figures, and tables.
333 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
334 - Apply [ 2961991 ] Call hyperref with unicode option.
335 - Drop the special `output_encoding`__ default ("latin-1").
336 The Docutils wide default (usually "UTF-8") is used instead.
337 - Render inline markup in document title and subtitle.
338 - Fix numbering depth with LaTeX section numbering.
339 - Update Unicode -> LaTeX translations.
340 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
342 __ docs/ref/restructuredtext.html#inline-literals
343 __ docs/user/config.html#docutils-footnotes
344 __ docs/user/config.html#output_encoding
346 * docutils/writers/manpage.py
348 - Fix: supported attribute (thanks to peter2108).
349 - Remove trailing blanks in code (keep in sync with mercurial version).
350 - Titles level 1, that is ``.SH``, always uppercase.
351 - Apply patch from mg: literal text should be bold in man-pages.
355 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
360 - Python 3 support: copy test/ and tools/ to the build-dir
361 and convert Python sources with 2to3.
364 Release 0.6 (2009-10-11)
365 ========================
369 - Docutils is now compatible with Python versions from 2.3 up to 2.6
370 and convertible to 3.1 code.
372 + Node.__nonzero__ returns True instead of 1.
373 + use os.walk instead os.path.walk.
374 + minimize "types" module where possible.
375 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
376 + Text nodes now subclass unicode rather than UserString
377 (which is gone in python 3.0).
378 + 3.0 compatibility module docutils._compat
380 + Drop 2.2 compatibility workarounds.
381 + Drop extras/optparse.py and extras/textwrap.py
382 (stdlib modules since 2.3).
384 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
385 - Unix man page export: manpage writer moved from sandbox to Doctutils
388 - Apply [ 1719345 ] Galician translation
389 - Apply [ 1905741 ] Polish translation
390 - Apply [ 1878977 ] make_id(): deaccent characters.
391 - Apply [ 2029251 ] return nonzero when tests fail.
392 - Fix [ 1692788 ] allow UTF-8 in style sheets.
393 - Fix [ 2781629 ] support non-ASCII chars in file names.
394 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
395 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
396 - Fix [ 2821266 ] --strict option works now like --halt=info.
397 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
398 - Fix [ 1627229 ] hyperlink references in substitutions.
400 - The "newlatex" writer is orphaned.
404 - Documented Unicode characters allowed as inline markup openers,
405 closers, and delimiters.
406 - Allow units for all length specifications.
407 - Allow percent sign in "scale" argument of "figure" and "image" directives.
408 - Bugfix: The "figalign" argument of a figure now works as intended
409 (aligning the figure, not its contents).
410 - Align images with class "align-[right|center|left]"
411 (allows setting the alignment of an image in a figure).
415 - Added ``Element.__contains__`` method, for the in-operator.
417 * docutils/parsers/rst/states.py:
419 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
420 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
421 " " (non-breaking space), and "¡ ¿" openers.
423 * docutils/parsers/directives/misc.py:
425 - Added ``start-line`` and ``end-line`` options to "include"
426 directive to select a range of lines.
427 - Hard tabs in literal inclusions are replaced by spaces. This is
428 configurable via the new ``tab-width`` option of the "include" directive
429 (a negative tab-width prevents tab expansion).
433 - Add ``get_stylesheet_list`` function.
434 - Apply [ 2834836 ] print info at halt
436 * docutils/transforms/universal.py:
438 - Raise default priority of StripClasses to exclude stripped classes from
441 * docutils/writers/html4css1/__init__.py:
443 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
444 separated list of stylesheets.
445 - Address [ 1938891 ] Inline literal text creates "pre" span only when
446 needed to prevent inter-word line wraps.
447 - Use `translate` method instead of repeated `replace` calls.
448 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
449 classes to allow CSS styling that does not interfere with other
450 table-using constructs (field lists, citations, ...).
452 * docutils/writers/newlatex2e/__init__.py:
454 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
456 * docutils/writers/latex2e/__init__.py (see also
457 `<docs/user/docutils-05-compat.sty.html>`__) :
459 - Add ``--embed-stylesheet`` option.
460 - Apply [ 1474017 ] image vertical alignment is reversed.
461 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
462 - Change: has_key for dictionaries (not Nodes) to in-operator.
463 - Merge adjacent citations into one latex cite command.
464 - Failsave implementation of custom roles. LaTeX compilation now ignores
465 unknown classes instead of aborting with an error.
466 - Support custom roles based on standard roles.
467 - LaTeX packages can be used as ``--stylesheet`` arguments without
468 restriction. (A style sheet is now referenced with the ``\usepackage``
469 command, if it ends with ``.sty`` or has no extension.)
470 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
471 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
472 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
473 2005-02-04 as a configurable length unit).
474 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
475 if font-encoding is set to ''. LaTeX defaults to OT1 then.
476 - Set sub- and superscript role argument in text mode not as math.
477 Use a custom role based on sub-/superscript if you want italic shape.
478 - Shorter preamble and less dependencies: Load packages and define macros
479 only if required in the document.
480 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
481 - New custom environments and commands with optional "classes" argument.
482 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
483 - Better conformance to Docutils specifications with ``--use-latex-toc``.
484 Support for LaTeX generated ToC also with unnumbered sections.
485 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
486 section numbering by LaTeX.
487 - Use default font in admonitions and sidebar.
488 - Align of image in a figure defaults to 'center'.
489 - Bugfix: Newlines around targets and references prevent run-together
491 - Fix internal hyperlinks.
492 - Use class defaults for page margins ('typearea' now optional).
493 - Float placement made configurable, default changed to "here definitely".
494 - Typeset generic topic as "quote block with title".
495 - Use template (file and configuration option).
496 - In the default template, load cmap.sty (fix text extraction in PDF) and
497 fixltx2e.sty (LaTeX patches, \textsubscript).
498 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
499 - Use `translate` instead of repeated `replace` calls for text encoding.
500 - Hyperlinked footnotes and support for symbol footnotes and
501 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
502 - Complete pairs of binary options
503 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
504 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
506 - font-encoding: "T1" (formerly implicitely set by 'ae').
507 - use-latex-toc: true (ToC with page numbers).
508 - use-latex-footnotes: true (no mixup with figures).
510 * docutils/writers/manpage.py
512 - Do not print version at document end, this is done by the viewer.
513 - Do not print date at document end, this is done by the viewer.
514 - Fix storage of docinfo fields for none standard fields.
516 * docutils/tools/rst2man.py
518 Release 0.5 (2008-06-25)
519 ========================
521 * docutils/languages/he.py: Added to project: Hebrew mappings by
524 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
525 mappings by Meir Kriheli.
527 * docutils/frontend.py:
529 - Configuration files are now assumed and required to be
531 - Paths of applied configuration files are now recorded in the
532 runtime setting ``_config_files`` (accessible via
533 ``--dump-settings``).
534 - Added ``--strip-elements-with-class`` and ``--strip-class``
535 options (``strip_elements_with_classes`` and ``strip_classes``
540 - Added code to determine the input encoding from data: encoding
541 declarations or the presence of byte order marks (UTF-8 & UTF-16).
542 - Added support for IronPython 1.0.
546 - Added ``document.__getstate__`` method, for pickling.
548 * docutils/parsers/rst/states.py:
550 - Allow ``+`` and ``:`` in reference names.
551 - Unquoted targets beginning with an underscore (``.. __target:
552 URI``) are no longer accepted.
553 - Added support for multiple attributions in a physical block quote
554 (indented text block), dividing it into multiple logical block
556 - Added support for unicode bullets in bullet lists: "•", "‣", and
558 - Added support for new object-oriented directive interface,
559 retaining compatibility to the old functional interface.
560 - Added support for throwing ``DirectiveError``'s from within
563 * docutils/parsers/rst/__init__.py:
565 - Added ``Directive`` base class.
566 - Added ``DirectiveError`` base class.
567 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
570 * docutils/parsers/directives/:
572 - Refactored all reStructuredText directives to use the new
573 object-oriented directive interface. Errors are now (mostly)
574 thrown using the new ``DirectiveError`` class.
576 * docutils/parsers/directives/misc.py:
578 - Added ``start-after`` and ``end-before`` options to ``include``
579 directive; thanks to Stefan Rank.
581 * docutils/transforms/universal.py:
583 - Added ``StripClassesAndElements`` transform to remove from the
584 document tree all elements with classes in
585 ``settings.strip_elements_with_classes`` and all "classes"
586 attribute values in ``self.document.settings.strip_classes``.
588 * docutils/transforms/writer_aux.py:
590 - Added ``Admonitions`` transform to transform specific admonitions
591 (like ``note``, ``warning``, etc.) into generic admonitions with a
594 * docutils/writers/html4css1/__init__.py:
596 - Moved template functionality from the PEP/HTML writer here.
597 - Expanded the fragments available in the ``parts`` attribute.
598 - Moved ``id`` attributes from titles to surrounding ``div``
600 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
601 universally supported now).
602 - ``template.txt`` is now opened in text mode instead of binary mode
603 (to ensure Windows compatibility).
604 - ``a`` elements now have an "internal" or "external" class,
605 depending on reference type.
607 * docutils/writers/html4css1/template.txt: Added to project.
609 * docutils/writers/pep_html/:
611 - Moved template functionality to the HTML writer.
613 * docutils/writers/s5_html/__init__.py:
615 - Added ``view_mode`` & ``hidden_controls`` settings
616 (``--view-mode`` & ``--hidden-controls/--visible-controls``
619 * docutils/writers/latex2e/__init__.py:
621 - Add ``--literal-block-env``
622 - Fix: escaping ``%`` in href urls.
623 - Move usepackage hyperref after stylesheet inclusion.
624 - Fix: scrartcl does not have chapter but scrreprt.
625 - Add newline after ``\end{verbatim}``.
626 - Merge smaller differences from latex2e_adaptive_preamble.
627 - Add ``use-part-section``.
628 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
629 - Using leavemode option_list no longer needs to check if parent
630 is a definition list.
631 - Append ``\leavemode`` to definition list terms.
632 - No longer write visit\_/depart_definition_list_item comments to
634 - Table column width with 3 decimal places.
635 - Add table stubs support (boldfont).
636 - Add assemble_parts to writer.
637 - Add simply support for nested tables.
638 - Fix verbatim in tables if use-verbatim-when-possible.
639 - Use section commands down to subparagraph.
640 - Put ensuremath around some latin1 chars.
641 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
642 - New option ``--use-bibtex=style,db1,db2``.
643 - New option ``--reference-label`` to allow usage of LaTeX ref for
644 labels in section references.
645 - Add a label after every section to support sectionnumbers as reference
647 - Fix: bug# 1605376 rst2latex: bad options group list
648 - Remove inactive code for use_optionlist_for_option_list.
649 - Remove latex comments from option_list output.
650 - Fix: bug# 1612270 double qoutes in italian literal.
651 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
652 - Add option --use-latex-abstract.
653 - Image width unit ``px`` is translated to ``pt``.
654 - Add image height support.
655 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
657 - Fix: Do not escape underscores in citation reference labels if
658 use-latex-citations is set.
659 - Use centering instead of center for figure contents, to avoid vertical
661 - Recognize table class: borderless, nolines, booktabs, standard.
662 - Fix: Renaming contents section does not work with latex writer; SF
664 - Applied patch for custom roles with classes from Edward Loper.
665 - Fixed bug that caused crashes with more than 256 lists.
667 * docutils/writers/pep_html/__init__.py:
669 - Changed to support new python.org website structure and
672 * docs/howto/security.txt: "Deploying Docutils Securely", added to
675 * tools/buildhtml.py:
677 -- Added ``ignore`` setting to exclude a list of shell patterns
678 (default: ``.svn:CVS``).
680 * tools/editors/emacs/rst.el:
682 - Changed license to "GPL".
683 - Added ``rst-straighten-decorations`` function.
684 - The ``compile`` module is now always loaded.
685 - Added ``rst-toggle-line-block`` function.
686 - Headings consisting only of non-ASCII characters are now
687 recognized by ``rst-toc`` and ``rst-adjust``.
688 - Added font-lock support for multi-line comments where the first
689 comment line is empty.
690 - Added ``(require 'font-lock)``.
694 - Provide descriptive error message if distutils is missing.
697 Release 0.4 (2006-01-09)
698 ========================
702 - Updated the project policies for trunk/branch development &
705 * docutils/__init__.py:
707 - Added ``__version_details__`` attribute to describe code source
708 (repository/snapshot/release).
709 - Replaced ``default_transforms`` attribute of TransformSpec with
710 ``get_transforms()`` method.
714 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
715 functions, for document tree extraction and reprocessing.
719 - Added ``DocTreeInput`` class, for reprocessing existing documents.
720 - Added support for non-Unicode (e.g. binary) writer output.
724 - Re-introduced ``Targetable.indirect_reference_name``, for
725 MoinMoin/reST compatibility (removed in r3124/r3129).
726 - Added ``serial_escape`` function; escapes string values that are
727 elements of a list, for serialization. Modified Docutils-XML
728 writing (``Element._dom_node``) and pseudo-XML writing
729 (``Element.starttag``) to use ``serial_escape``.
730 - Added ``Node.deepcopy()`` method.
731 - Removed the internal lists ``document.substitution_refs``,
732 ``document.anonymous_refs``, and ``document.anonymous_targets``.
733 - Added a "container" element.
734 - Fixed bug where values of list-valued attributes of elements
735 originating from custom interpreted text roles (i.e., with custom
736 classes) were being shared between element instances. Reported by
739 * docutils/statemachine.py:
741 - Added trailing whitespace stripping to ``string2lines()``.
742 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
743 Asian double-width character support.
747 - Added ``east_asian_column_width()`` for double-width character
750 * docutils/languages/ja.py: Added to project: Japanese mappings by
753 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
754 mappings by Panjunyong.
756 * docutils/parsers/null.py: Added to project; a do-nothing parser.
758 * docutils/parsers/rst/__init__.py:
760 - Added validator to tab_width setting, with test. Closes SF bug
761 #1212515, report from Wu Wei.
763 * docutils/parsers/rst/states.py:
765 - Fixed bug with escaped colons indicating a literal block.
766 - Fixed bug with enumerated lists (SF#1254145).
767 - Backslash-escaped colons inside of field names are now allowed.
768 - Targets (implicit and explicit), anonymous hyperlink references
769 and auto-numbered footnote references inside of substitution
770 definitions are now disallowed.
771 - Fixed bug: list items with blank first lines.
772 - Fixed bug: block quote attributions with indented second lines.
773 - Added East Asian double-width character support (Python 2.4 only).
775 * docutils/parsers/rst/tableparser.py:
777 - Added East Asian double-width character support (Python 2.4 only).
779 * docutils/parsers/rst/directives/body.py:
781 - Added the "container" directive.
783 * docutils/parsers/rst/directives/misc.py:
785 - Added the "default-role", "title", and "date" directives.
786 - Added standard data file syntax to the "include" directive.
787 - Added support for "class" directive content.
789 * docutils/parsers/rst/directives/images.py:
791 - Added ``indirect_reference_name`` support for images with a target
793 - Added support for image width and height units.
794 - Fixed bug with image "target" options.
796 * docutils/parsers/rst/directives/references.py:
798 - Added "class" attribute to "target-notes" directive, for
799 footnote_reference classes.
801 * docutils/parsers/rst/include/: Directory added to project; contains
802 standard data files for the "include" directive. Initial contents:
803 character entity substitution definition sets, and a set of
804 definitions for S5/HTML presentations.
806 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
807 mappings by David Goodger.
809 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
810 Simplified Chinese mappings by Panjunyong.
812 * docutils/readers/__init__.py:
814 - Added universal.Decorations and universal.ExposeInternals
815 transforms as default transforms for all readers.
816 - Added ``ReReader`` base class for readers that reread an existing
819 * docutils/readers/doctree.py: Added to project; a reader for existing
822 * docutils/transforms/frontmatter.py:
824 - Fixed the DocInfo transform to handle SVN-style expansion of the
826 - In ``DocInfo.extract_authors``, treat the contents of "authors"
829 * docutils/transforms/misc.py:
831 - Added misc.Transitions transform, extracted from
832 universal.FinalChecks.
834 * docutils/transforms/references.py:
836 - Added references.DanglingReferences transform, extracted from
837 universal.FinalChecks.
838 - Fixed bug with doubly-indirect substitutions.
839 - Added footnote_reference classes attribute to "TargetNotes".
840 - Fixed bug with circular substitution definitions that put Docutils
841 into an infinite loop.
843 * docutils/transforms/universal.py:
845 - Added universal.ExposeInternals transform, extracted from
846 universal.FinalChecks.
847 - Removed universal.FinalChecks transform (logic has been moved to
848 several new transforms).
849 - Fixed bug with the "expose_internals" setting and Text nodes
850 (exposed by the "rawsource" internal attribute).
851 - Added the universal.StripComments transform, implementation of the
852 "strip_comments" setting.
854 * docutils/transforms/writer_aux.py: Added to project; auxiliary
855 transforms for writers.
857 - Added ``Compound`` transform, which flattens compound paragraphs.
859 * docutils/writers/: Several writer modules (html4css1.py) were
860 converted into packages. Support modules and data files have been
861 moved into the packages. The stylesheets for the HTML writers are
862 now installed along with the code, the code knows where to find
863 them, and the default is to use them (actually, to embed them).
864 Some adjustments to configuration files may be necessary. The
865 easiest way to obtain the new default behavior is to remove all
866 settings whose name includes "stylesheet".
868 * docutils/writers/__init__.py:
870 - Added universal.Messages and universal.FilterMessages transforms
871 as default transforms for all writers.
872 - Added ``UnfilteredWriter`` base class for writers that pass the
873 document tree on unchanged.
875 * docutils/writers/docutils_xml.py:
877 - Made ``xmlcharrefreplace`` the default output encoding error
880 * docutils/writers/html4css1/:
882 - Added support for image width and height units.
883 - Made ``xmlcharrefreplace`` the default output encoding error
885 - Made ``--embed-stylesheet`` the default rather than
886 ``--link-stylesheet``.
887 - Moved "id" attribute from container (section etc.) to title's <a>
888 tag, to be on the same tag as "name".
889 (!!! To be reverted in Docutils 0.5.)
890 - Added vertical space between fields of field lists.
891 - Added ``--compact-field-lists`` option to remove vertical space in
893 - Made cloaking of email addresses with ``--cloak-email-addresses``
895 - Fixed support for centered images.
896 - Added support for class="compact" & class="open" lists.
898 * docutils/writers/latex2e/:
900 - Underscores in citekeys are no longer escaped.
902 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
903 mapping of Unicode characters to LaTeX equivalents.
905 * docutils/writers/s5_html/: Package added to project; writer for
908 * docs/dev/distributing.txt: Added to project; guide for distributors
909 (package maintainers).
911 * docs/dev/hacking.txt: Added to project; guide for developers.
913 * docs/ref/doctree.txt:
915 - Updated for plural attributes "classes", "ids", "names",
917 - Added the "container" element.
919 * docs/ref/docutils.dtd:
921 - Updated for plural attributes "classes", "ids", "names",
924 * docs/user/emacs.txt: Added to project; a document about Emacs
925 support for reStructuredText and Docutils.
927 * docs/user/links.txt: Added to project; lists of Docutils-related
930 * docs/user/mailing-lists.txt: Added to project; information about
931 Docutils-related mailing lists and how to access them.
933 * docs/user/slide-shows.txt: Added to project; example of and docs for
934 the S5/HTML writer (``rst2s5.py`` front end).
936 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
937 Files", added to project.
939 * test/coverage.sh: Added to project; test coverage script.
941 * test/DocutilsTestSupport.py:
943 - Added support for specifying runtime settings at the suite level.
945 * test/test_functional.py:
947 - Added the ``clear_output_directory`` function.
948 - Added support for ``_test_more`` functions in functional test
951 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
953 * tools/rstpep2html.py: Renamed from pep.py.
955 * tools/dev/create_unimap.py: Added to project; script to create the
956 docutils/writers/unimap_latex.py mapping file.
958 * tools/dev/profile_docutils.py: Added to project; profiler script.
960 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
962 * tools/editors/emacs/restructuredtext.el,
963 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
964 Removed from project; the functionality is now contained in rst.el.
966 * tools/editors/emacs/rst.el: Added to project. Added many features
967 and fixed many bugs. See docs/user/emacs.txt for details.
969 * tools/stylesheets: Removed from project. Stylesheets have been
970 renamed and moved into writer packages.
973 Release 0.3.9 (2005-05-26)
974 ==========================
978 - Eliminated and replaced all uses of the old string attributes
979 ``id``, ``name``, ``dupname`` and ``class`` with references to the
980 new list attributes ``ids``, ``names``, ``dupnames`` and
981 ``classes`` throughout the whole source tree.
985 - Enabled ``--dump-*`` options when ``--traceback`` specified,
986 allowing for easier debugging.
987 - In ``Publisher.publish()``, expanded the generic top-level
990 * docutils/examples.py:
992 - Added ``internals`` function for exploration.
996 - Fixed ``Input.decode`` method to apply heuristics only if no
997 encoding is explicitly given, and to provide better reporting of
999 - The ``Input.decode`` method now removes byte order marks (BOMs)
1002 * docutils/nodes.py:
1004 - ``image`` element class changed to subclass of Element, not
1005 TextElement (it's an empty element, and cannot contain text).
1006 - Added ``attr_defaults`` dictionary for default attribute values.
1007 - Added empty list as default value for the following attributes:
1008 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1009 - Added ``document.decoration`` attribute,
1010 ``document.get_decoration`` method, and ``decoration.get_header``
1011 & ``.get_footer`` methods.
1012 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1015 * docutils/utils.py:
1017 - Removed ``docutils.utils.Reporter.categories``,
1018 ``docutils.utils.ConditionSet``, and all references to them, to
1019 simplify error reporting.
1021 * docutils/languages/nl.py: Added to project; Dutch mappings by
1024 * docutils/parsers/rst/__init__.py:
1026 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1028 * docutils/parsers/rst/states.py:
1030 - Added check for escaped at-mark to prevent email address recognition.
1031 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1033 - Allowed whitespace in paths and URLs.
1034 - Added auto-enumerated list items.
1035 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1037 - Added support for table stub columns.
1039 * docutils/parsers/rst/directives/__init__.py:
1041 - Allowed whitespace in paths (``path`` function).
1042 - Added ``uri`` directive option conversion function.
1044 * docutils/parsers/rst/directives/body.py:
1046 - Fixed illegal context bug with "topic" directive (allowed within
1047 sidebars; not within body elements).
1049 * docutils/parsers/rst/directives/images.py:
1051 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1052 - Added support for the ``file_insertion_enabled`` setting in the
1053 "figure" directive (disables "figwidth" option).
1054 - "image" directive: added checks for valid values of "align" option,
1055 depending on context. "figure" directive: added specialized
1056 "align" option and attribute on "figure" element.
1057 - Made ":figwidth: image" option of "figure" directive work again.
1058 - Fixed bug with reference names containing uppercase letters
1059 (e.g. ``Name_``) in "target" option of "image" directive.
1061 * docutils/parsers/rst/directives/misc.py:
1063 - Fixed "include" and "raw" directives to catch text decoding
1065 - Allowed whitespace in "include" & "raw" directive paths.
1066 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1067 settings in "include" & "raw" directives.
1069 * docutils/parsers/rst/directives/parts.py:
1071 - Added "header" & "footer" directives.
1072 - Fixed illegal context bug with "contents" directive (topics
1073 allowed within sidebars; not within body elements).
1075 * docutils/parsers/rst/directives/tables.py:
1077 - Added "list-table" directive.
1078 - Caught empty CSV table bug.
1079 - Added support for the ``file_insertion_enabled`` setting in the
1080 "csv-table" directive.
1081 - Added ``stub-columns`` option to "csv-table" and "list-table"
1084 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1085 mappings by Martijn Pieters.
1087 * docutils/readers/standalone.py:
1089 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1090 options to activate or deactivate the SectSubTitle transform.
1092 * docutils/transforms/frontmatter.py:
1094 - Added SectSubTitle transform to promote titles of lone
1095 subsections to subtitles.
1097 * docutils/transforms/references.py:
1099 - Fixed mislocated internal targets bug, by propagating internal
1100 targets to the next node, making use of the newly added support
1101 for multiple names and IDs.
1102 - Fixed duplicate footnote label bug.
1103 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1106 * docutils/writers/html4css1.py:
1108 - Fixed unencoded stylesheet reference bug (characters like "&" in
1109 stylesheet references).
1110 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1112 - Added support for multiple IDs per node by creating empty ``span``
1114 - Added the ``field_name_limit`` & ``option_limit`` settings &
1116 - Added support for table stub columns.
1117 - Added support for the ``align`` attribute on ``figure`` elements.
1118 - Added the ``cloak_email_addresses`` setting & support.
1119 - Added ``html_prolog``, ``html_head``, ``html_body``,
1120 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1121 ``docutils.core.publish_parts``.
1122 - Added support for section subtitles.
1124 * docutils/writers/latex2e.py:
1126 - Fixed tables starting with more than one multirow cell.
1127 - Improved --use-latex-docinfo so that organization/contact/address
1128 fields are lumped with the last author field and appear on the
1130 - Made sure the titlepage is always shown with --use-latex-docinfo,
1131 even if the document has no title.
1132 - Made sure that latex doesn't fill in today's date if no date field
1134 - Added support for section subtitles.
1136 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1137 (under development).
1139 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1141 * docs/api/publisher.txt:
1143 - Added "``publish_parts`` Details" section.
1145 * docutils/dev/repository.txt: Added to project; information about the
1146 Docutils Subversion repository.
1148 * docs/ref/docutils.dtd:
1150 - Added a ``stub`` attribute to the ``colspec`` element via the
1151 ``tbl.colspec.att`` parameter entity.
1152 - Allowed topic elements within sidebars
1153 - Added an ``align`` attribute to the ``figure`` element.
1155 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1159 Release 0.3.7 (2004-12-24)
1160 ==========================
1162 * docutils/frontend.py:
1164 - Added options: --input-encoding-error-handler,
1165 --record-dependencies, --leave-footnote-reference-space,
1167 - Added command-line and config file support for "overrides" setting
1172 - Added support for input encoding error handler.
1174 * docutils/nodes.py:
1176 - Added dispatch_visit and dispatch_departure methods to
1177 NodeVisitor; useful as a hook for Visitors.
1178 - Changed structure of ``line_block``; added ``line``.
1179 - Added ``compound`` node class.
1180 - Added a mechanism for Visitors to transitionally ignore new node
1183 * docutils/utils.py:
1185 - Moved ``escape2null`` and ``unescape`` functions from
1186 docutils/parsers/rst/states.py.
1188 * docutils/parsers/rst/roles.py:
1191 - Changed role function API: the "text" parameter now takes
1192 null-escaped interpreted text content.
1194 * docutils/parsers/rst/states.py:
1196 - Fixed bug where a "role" directive in a nested parse would crash
1197 the parser; the state machine's "language" attribute was not being
1199 - Added support for line block syntax.
1200 - Fixed directive parsing bug: argument-less directives didn't
1201 notice that arguments were present.
1202 - Removed error checking for transitions.
1203 - Added support for multiple classifiers in definition list items.
1204 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1205 - Changed role function API: the "text" parameter now takes
1206 null-escaped interpreted text content.
1207 - Empty sections and documents are allowed now.
1209 * docutils/parsers/rst/directives/__init__.py:
1211 - Added ``encoding`` directive option conversion function.
1212 - Allow multiple class names in class_option conversion function.
1214 * docutils/parsers/rst/directives/body.py:
1216 - Converted the line-block directive to use the new structure.
1217 - Extracted the old line-block functionality to the ``block``
1218 function (still used).
1219 - Added ``compound`` directive (thanks to Lea Wiemann).
1221 * docutils/parsers/rst/directives/misc.py:
1223 - Added "encoding" option to "include" and "raw" directives.
1224 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1225 - Allow multiple class names in the "class" directive.
1227 * docutils/parsers/rst/directives/parts.py:
1229 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1230 options. Thanks to Lele Gaifax.
1232 * docutils/parsers/rst/directives/tables.py:
1234 - Added "encoding" directive to "csv-table" directive.
1235 - Added workaround for lack of Unicode support in csv.py, for
1236 non-ASCII CSV input.
1238 * docutils/transforms/misc.py:
1240 - Fixed bug when multiple "class" directives are applied to a single
1242 - Enabled multiple format names for "raw" directive.
1244 * docutils/transforms/references.py:
1246 - Added support for trimming whitespace from beside substitution
1249 * docutils/transforms/universal.py:
1251 - FinalChecks now checks for illegal transitions and moves
1252 transitions between sections.
1254 * docutils/writers/html4css1.py:
1256 - HTMLTranslator.encode now converts U+00A0 to " ".
1257 - "stylesheet" and "stylesheet_path" settings are now mutually
1259 - Added support for the new line_block/line structure.
1260 - --footnote-references now overrides
1261 --trim-footnote-reference-space, if applicable.
1262 - Added support for ``compound`` elements.
1263 - Enabled multiple format names for "raw" directive.
1264 - ``<p>`` tags of a paragraph which is the only visible child of the
1265 document node are no longer stripped.
1266 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1267 new method ``should_be_compact_paragraph()``.
1268 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1270 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1271 the output if they have their ``class`` attribute set.
1272 - The whole document is now surrounded by a ``<div
1273 class="document">`` element.
1274 - Body-level images are now wrapped by their own ``<div>`` elements,
1275 with image classes copied to the wrapper, and for images which
1276 have the ``:align:`` option set, the surrounding ``<div>`` now
1277 receives a class attribute (like ``class="align-left"``).
1279 * docutils/writers/latex2e.py:
1281 - no newline after depart_term.
1282 - Added translations for some Unicode quotes.
1283 - Added option "font-encoding", made package AE the default.
1284 - "stylesheet" and "stylesheet_path" settings are now mutually
1286 - --footnote-references now overrides
1287 --trim-footnote-reference-space, if applicable.
1288 - The footnote label style now matches the footnote reference style
1289 ("brackets" or "superscript").
1290 - Added support for ``compound`` elements.
1291 - Enabled multiple format names for "raw" directive.
1293 * docs/ref/docutils.dtd:
1295 - Changed structure of the ``line_block`` element; added ``line``.
1296 - Added ``compound`` element.
1297 - Added "ltrim" and "rtrim" attributes to
1298 ``substitution_definition`` element.
1299 - Enabled multiple format names for ``raw`` element.
1300 - Enabled multiple classifiers in ``definition_list_item`` elements.
1302 * docs/ref/rst/directives.txt
1304 - Marked "line-block" as deprecated.
1305 - "Class" directive now allows multiple class names.
1306 - Added "Rationale for Class Attribute Value Conversion".
1307 - Added warning about "raw" overuse/abuse.
1309 * docs/ref/rst/restructuredtext.txt:
1311 - Added syntax for line blocks.
1312 - Definition list items may have multiple classifiers.
1314 * docs/ref/rst/roles.txt:
1318 * tools/stylesheets/default.css:
1320 - Added support for the new line_block structure.
1321 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1324 Release 0.3.5 (2004-07-29)
1325 ==========================
1329 * _`Documentation cleanup/reorganization`.
1331 - Created new subdirectories of docs/:
1333 * ``docs/user/``: introductory/tutorial material for end-users
1334 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1335 * ``docs/api/``: API reference material for client-developers
1336 * ``docs/ref/``: reference material for all groups
1337 * ``docs/howto/``: for component-developers and core-developers
1338 * ``docs/peps/``: Python Enhancement Proposals
1340 - Moved ``docs/*`` to ``docs/user/``.
1341 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1342 ``spec/`` to ``docs/dev``.
1343 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1344 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1345 - Moved ``alternatives.txt``, and ``problems.txt`` from
1346 ``spec/rst/`` to ``docs/dev/rst/``.
1347 - Moved ``reStructuredText.txt``, ``directives.txt``,
1348 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1349 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1350 ``roles.txt``, ``reStructuredText.txt`` to
1351 ``restructuredtext.txt``.
1352 - Moved ``spec/howto/`` to ``docs/howto``.
1354 In order to keep the CVS history of moved files, we supplied
1355 SourceForge with a `script for modifying the Docutils CVS
1358 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1360 After running the cleanup script:
1362 - Added ``docs/index.txt``.
1363 - Added a ``.htaccess`` file to the ``web`` module, containing
1364 redirects for all old paths to new paths. They'll preserve
1365 fragments (the "#name" part of a URL), and won't clutter up the
1366 file system, and will correct the URL in the user's browser.
1367 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1368 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1369 the "To Do" list itself in ``docs/dev/todo.txt``.
1370 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1371 section of ``docs/dev/todo.txt``.
1372 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1373 - Added "How To Report Bugs" to ``BUGS.txt``.
1374 - Went through all the sources and docs (including under web/) and
1375 updated links. Mostly done by Lea Wiemann; thanks Lea!
1376 (Still need to update links in the sandboxes.)
1380 * BUGS.txt: Added to project.
1382 * THANKS.txt: Added to project.
1384 * docutils/__init__.py:
1386 - 0.3.4: Post-release.
1390 - Added special error handling & advice for UnicodeEncodeError.
1391 - Refactored Publisher.publish (simplified exception handling &
1392 extracted debug dumps).
1393 - Renamed "enable_exit" parameter of convenience functions to
1394 "enable_exit_status".
1395 - Enabled traceback (exception propagation) by default in
1396 programmatic convenience functions.
1397 - Now publish_file and publish_cmdline convenience functions return
1398 the encoded string results in addition to their regular I/O.
1399 - Extracted common code from publish_file, publish_string, and
1400 publish_parts, into new publish_programmatically. Extracted
1401 settings code to ``Publisher.process_programmatic_settings``.
1402 - In Publisher.publish, disabled ``settings_overrides`` when
1403 ``settings`` is supplied; redundant.
1405 * docutils/frontend.py:
1407 - Added help text for "--output-encoding-error-handler" and
1408 "--error-encoding-error-handler".
1409 - Renamed "--exit" to "--exit-status".
1410 - Simplified default-setting code.
1412 * docutils/parsers/rst/__init__.py:
1414 - Added "--pep-base-url" and "--rfc-base-url" options.
1416 * docutils/parsers/rst/states.py:
1418 - Made URI recognition more aggressive and intelligent.
1420 * docutils/parsers/rst/directives/__init__.py:
1422 - Added several directive option conversion functions.
1424 * docutils/parsers/rst/directives/body.py:
1426 - Moved "table" directive to tables.py.
1428 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1431 * docutils/writers/latex2e.py:
1433 - Added "--table-style=(standard|booktabs|nolines)"
1434 - figures get "here" option (LaTeX per default puts them at bottom),
1435 and figure content is centered.
1436 - Rowspan support for tables.
1437 - Fix: admonition titles before first section.
1438 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1439 - Replave ``_`` in literal by an underlined blank, because it has the correct
1441 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1442 - A few unicode replacements, if output_encoding != utf
1443 - Add "--graphicx-option".
1444 - Indent literal-blocks.
1445 - Fix: omit ``\maketitle`` when there is no document title.
1447 * docs/index.txt: "Docutils Project Documentation Overview", added to
1450 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1451 Tool", added to project.
1453 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1455 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1457 * docs/dev/policies.txt: Added to project (extracted from
1458 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1460 * docs/dev/release.txt: Added to project (extracted from
1461 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1463 * docs/dev/testing.txt: Added to project.
1465 * docs/dev/website.txt: Added to project (extracted from
1466 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1468 * docs/ref/rst/directives.txt:
1470 - Added directives: "table", "csv-table".
1472 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1473 added to project. 1 page for syntax, and a 1 page reference for
1474 directives and roles. Source text to be used as-is; not meant to be
1477 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1478 with a change of title.
1480 * test/functional/, contents, and test/test_functional.py: Added to
1483 * tools/buildhtml.py: Fixed bug with config file handling.
1485 * tools/html.py: Removed from project (duplicate of rst2html.py).
1487 * tools/pep2html.py: Removed from project (duplicate of Python's
1488 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1489 Docutils-related PEPs in docs/peps/).
1491 * tools/rst2pseudoxml.py: Renamed from publish.py.
1493 * tools/rst2xml.py: Renamed from docutils-xml.py.
1495 * tools/test.txt: Removed from project; moved to
1496 docs/user/rst/demo.txt.
1498 * setup.py: Now also installs ``rst2latex.py``.
1501 Release 0.3.3 (2004-05-09)
1502 ==========================
1504 * docutils/__init__.py:
1506 - 0.3.1: Reorganized config file format (multiple sections); see
1508 - Added unknown_reference_resolvers attribute to TransformSpec.
1509 - 0.3.2: Interpreted text reorganization.
1514 - Catch system messages to stop tracebacks from parsing errors.
1515 - Catch exceptions during processing report & exit without
1516 tracebacks, except when "--traceback" used.
1517 - Reordered components for OptionParser; application comes last.
1518 - Added "config_section" parameter to several methods and functions,
1519 allowing front ends to easily specify their config file sections.
1520 - Added publish_parts convenience function to allow access to individual
1521 parts of a document.
1523 * docutils/examples.py: Added to project; practical examples of
1524 Docutils client code, to be used as-is or as models for variations.
1526 * docutils/frontend.py:
1528 - Added "--traceback" & "--no-traceback" options ("traceback"
1530 - Implemented support for config file reorganization:
1531 ``standard_config_files`` moved from ``ConfigParser`` to
1532 ``OptionParser``; added
1533 ``OptionParser.get_config_file_settings()`` and
1534 ``.get_standard_config_settings()``; support for old "[options]"
1535 section (with deprecation warning) and mapping from old to new
1537 - Reimplemented setting validation.
1538 - Enabled flexible boolean values: yes/no, true/false, on/off.
1539 - Added ``Values``, a subclass of ``optparse.Values``, with support
1540 for list setting attributes.
1541 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1542 thanks to Beni Cherniavsky.
1543 - Added "--no-section-numbering" option.
1547 - Catch IOErrors when opening source & destination files, report &
1548 exit without tracebacks. Added ``handle_io_errors`` parameter to
1549 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1551 * docutils/nodes.py:
1553 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1554 method definitions (via ``exec``) to dynamic assignments (via
1555 ``setattr``); thanks to Roman Suzi.
1556 - Encapsulated visitor dynamic assignments in a function; thanks to
1558 - Added indirect_reference_name attribute to the Targetable
1559 class. This attribute holds the whitespace_normalized_name
1560 (contains mixed case) of a target.
1562 * docutils/statemachine.py:
1564 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1565 - Added ``StringList.get_2D_block``.
1567 * docutils/utils.py:
1569 - Added "level" attribute to SystemMessage exceptions.
1571 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1574 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1577 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1578 Marcelo Huerta San Martin.
1580 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1581 mappings by Lalo Martins.
1583 * docutils/languages/ru.py: Added to project; Russian mappings by
1586 * docutils/parsers/rst/roles.py: Added to project. Contains
1587 interpreted text role functions, a registry for interpreted text
1588 roles, and an API for adding to and retrieving from the registry.
1589 Contributed by Edward Loper.
1591 * docutils/parsers/rst/states.py:
1593 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1594 - Allowed true em-dash character and "---" as block quote
1596 - Added support for <angle-bracketed> complex option arguments
1598 - Fixed handling of backslashes in substitution definitions.
1599 - Fixed off-by-1 error with extra whitespace after substitution
1600 definition directive.
1601 - Added inline markup parsing to field lists' field names.
1602 - Added support for quoted (and unindented) literal blocks.
1603 Driven in part by a bribe from Frank Siebenlist (thanks!).
1604 - Parser now handles escapes in URIs correctly.
1605 - Made embedded-URIs' reference text omittable. Idea from Beni
1607 - Refactored explicit target processing code.
1608 - Added name attribute to references containing the reference name only
1609 through whitespace_normalize_name (no case changes).
1610 - parse_target no longer returns the refname after going through
1611 normalize_name. This is now handled in make_target.
1612 - Fixed bug relating to role-less interpreted text in non-English
1614 - Reorganized interpreted text processing; moved code into the new
1615 roles.py module. Contributed by Edward Loper.
1616 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1617 ``parse_directive_block``.
1619 * docutils/parsers/rst/tableparser.py:
1621 - Reworked for ``StringList``, to support "include" directives in
1624 * docutils/parsers/rst/directives/__init__.py:
1626 - Renamed ``unchanged()`` directive option conversion function to
1627 ``unchanged_required``, and added a new ``unchanged``.
1628 - Catch unicode value too high error; fixes bug 781766.
1629 - Beefed up directive error reporting.
1631 * docutils/parsers/rst/directives/body.py:
1633 - Added basic "table" directive.
1635 * docutils/parsers/rst/directives/images.py:
1637 - Added "target" option to "image" directive.
1638 - Added name attribute to references containing the reference name only
1639 through whitespace_normalize_name (no case changes).
1641 * docutils/parsers/rst/directives/misc.py:
1643 - Isolated the import of the ``urllib2`` module; was causing
1644 problems on SourceForge (``libssl.so.2`` unavailable?).
1645 - Added the "role" directive for declaring custom interpreted text
1648 * docutils/parsers/rst/directives/parts.py:
1650 - The "contents" directive does more work up-front, creating the
1651 "topic" and "title", and leaving the "pending" node for the
1652 transform. Allows earlier reference resolution; fixes subtle bug.
1654 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1655 mappings by Jannie Hofmeyr.
1657 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1658 mappings by Marek Blaha.
1660 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1661 mappings by Marcelo Huerta San Martin.
1663 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1664 Portuguese mappings by Lalo Martins.
1666 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1667 mappings by Roman Suzi.
1669 * docutils/transforms/parts.py:
1671 - The "contents" directive does more work up-front, creating the
1672 "topic" and "title", and leaving the "pending" node for the
1673 transform. Allows earlier reference resolution; fixes subtle bug.
1674 - Added support for disabling of section numbering.
1676 * docutils/transforms/references.py:
1678 - Verifying that external targets are truly targets and not indirect
1679 references. This is because we are now adding a "name" attribute to
1680 references in addition to targets. Note sure if this is correct!
1681 - Added code to hook into the unknown_reference_resolvers list for a
1682 transformer in resolve_indirect_target. This allows the
1683 unknown_reference_resolvers to keep around indirect targets which
1684 docutils doesn't know about.
1685 - Added specific error message for duplicate targets.
1687 * docutils/transforms/universal.py:
1689 - Added FilterMessages transform (removes system messages below the
1690 verbosity threshold).
1691 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1692 to FinalCheckVisitor for application-specific handling of
1693 unresolvable references.
1694 - Added specific error message for duplicate targets.
1696 * docutils/writers/__init__.py:
1698 - Added assemble_parts method to the Writer class to allow for
1699 access to a documents individual parts.
1700 - Documented & set default for ``Writer.output`` attribute.
1702 * docutils/writers/html4css1.py:
1704 - Fixed unicode handling of attribute values (bug 760673).
1705 - Prevent duplication of "class" attribute values (bug report from
1707 - Improved table grid/border handling (prompted by report from Bob
1709 - Added support for table titles.
1710 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1712 - Added functionality to keep track of individual parts of a document
1713 and store them in a dictionary as the "parts" attribute of the writer.
1714 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1715 - Added proper support for the "scale" attribute of the "image"
1716 element. Contributed by Brent Cook.
1717 - Added ``--initial-header-level`` option.
1718 - Fixed bug: the body_pre_docinfo segment depended on there being a
1719 docinfo; if no docinfo, the document title was incorporated into
1720 the body segment. Adversely affected the publish_parts interface.
1722 * docutils/writers/latex2e.py:
1724 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1725 about a missing file.
1726 - Added options and support: ``--compound-enumerators``,
1727 ``--section-prefix-for-enumerators``, and
1728 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1730 - Added option ``--use-verbatim-when-possible``, to avoid
1731 problematic characters (eg, '~' in italian) in literal blocks.
1732 - It's now possible to use four section levels in the `book` and
1733 `report` LaTeX classes. The default `article` class still has
1736 * docs/config.txt: "Docutils Configuration Files", added to project.
1737 Moved config file entry descriptions from tools.txt.
1741 - Moved config file entry descriptions to config.txt.
1743 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1746 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1747 Text Roles", added to project.
1749 * spec/rst/reStructuredText.txt:
1751 - Added description of support for <angle-bracketed> complex option
1752 arguments to option lists.
1753 - Added subsections for indented and quoted literal blocks.
1755 * test: Continually adding & updating tests.
1757 - Added test/test_settings.py & test/data/config_*.txt support
1759 - Added test/test_writers/test_htmlfragment.py.
1761 * test/DocutilsTestSupport.py:
1763 - Refactored LaTeX publisher test suite/case class names to make
1764 testing other writers easier.
1765 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1766 to test the processing of HTML fragments which use the new
1767 publish_parts convenience function.
1769 * tools/buildhtml.py:
1771 - Added support for the "--prune" option.
1772 - Removed dependency on pep2html.py; plaintext PEPs no longer
1775 * tools/docutils.conf:
1777 - Updated for configuration file reorganization.
1779 * tools/rst2html.py:
1781 - copied from tools/html.py
1785 - added a 'scripts' section to configuration
1786 - added 'tools/rst2html.py' to the scripts section
1789 Release 0.3 (2003-06-24)
1790 ========================
1794 * Renamed "attribute" to "option" for directives/extensions.
1796 * Renamed transform method "transform" to "apply".
1798 * Renamed "options" to "settings" for runtime settings (as set by
1799 command-line options). Sometimes "option" (singular) became
1800 "settings" (plural). Some variations below:
1802 - document.options -> document.settings (stored in other objects as
1804 - option_spec -> settings_spec (not directives though)
1805 - OptionSpec -> SettingsSpec
1806 - cmdline_options -> settings_spec
1807 - relative_path_options -> relative_path_settings
1808 - option_default_overrides -> settings_default_overrides
1809 - Publisher.set_options -> Publisher.get_settings
1813 * COPYING.txt: Added "Public Domain Dedication".
1815 * FAQ.txt: Frequently asked questions, added to project.
1819 - Updated with PyPI Trove classifiers.
1820 - Conditional installation of third-party modules.
1822 * docutils/__init__.py:
1824 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1825 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1826 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1827 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1828 option and its effect on the PEP template & writer.
1829 - Bumped version to 0.2.4 due to changes to the PEP template &
1831 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1832 - Added ``TransformSpec`` class for new transform system.
1833 - Bumped version to 0.2.6 for API changes (renaming).
1834 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1835 convenience functions.
1836 - Added ``Component.component_type`` attribute.
1837 - Bumped version to 0.2.8 because of the internal parser switch from
1838 plain lists to the docutils.statemachine.StringList objects.
1839 - Bumped version to 0.2.9 because of the frontend.py API changes.
1840 - Bumped version to 0.2.10 due to changes to the project layout
1841 (third-party modules removed from the "docutils" package), and
1842 signature changes in ``io.Input``/``io.Output``.
1843 - Changed version to 0.3.0 for release.
1847 - Made ``publish()`` a bit more convenient.
1848 - Generalized ``Publisher.set_io``.
1849 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1850 parameters; improved its docstring.
1851 - Added ``publish_file()`` and ``publish_string()``.
1852 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1854 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1855 "--dump-transforms" hidden options.
1856 - Added ``Publisher.apply_transforms()`` method.
1857 - Added ``Publisher.set_components()`` method; support for
1858 ``publish_*()`` conveninece functions.
1859 - Moved config file processing to docutils/frontend.py.
1860 - Added support for exit status ("exit_level" setting &
1861 ``enable_exit`` parameter for Publisher.publish() and convenience
1864 * docutils/frontend.py:
1866 - Check for & exit on identical source & destination paths.
1867 - Fixed bug with absolute paths & "--config".
1868 - Set non-command-line defaults in ``OptionParser.__init__()``:
1869 ``_source`` & ``_destination``.
1870 - Distributed ``relative_path_settings`` to components; updated
1871 ``OptionParser.populate_from_components()`` to combine it all.
1872 - Require list of keys in ``make_paths_absolute`` (was implicit in
1873 global ``relative_path_settings``).
1874 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1875 "--dump-settings", and "--dump-transforms" hidden options.
1876 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1877 code, replaced with correct code.
1878 - Added validation functionality for config files.
1879 - Added "--error-encoding" option/setting, "_disable_config"
1881 - Added encoding validation; updated "--input-encoding" and
1882 "--output-encoding"; added "--error-encoding-error-handler" and
1883 "--output-encoding-error-handler".
1884 - Moved config file processing from docutils/core.py.
1885 - Updated ``OptionParser.populate_from_components`` to handle new
1886 ``SettingsSpec.settings_defaults`` dict.
1887 - Added support for "-" => stdin/stdout.
1888 - Added "exit_level" setting ("--exit" option).
1892 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1893 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1894 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1895 - ``FileOutput.write()`` now returns the encoded output string.
1896 - Try to get path/stream name automatically in ``FileInput`` &
1898 - Added defaults for source & destination paths.
1899 - Allow for Unicode I/O with an explicit "unicode" encoding.
1900 - Added ``Output.encode()``.
1901 - Removed dependency on runtime settings; pass encoding directly.
1902 - Recognize Unicode strings in ``Input.decode()``.
1903 - Added support for output encoding error handlers.
1905 * docutils/nodes.py:
1907 - Added "Invisible" element category class.
1908 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1909 modification during a traversal.
1910 - Added element classes: ``line_block``, ``generated``, ``address``,
1911 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1912 ``superscript``, ``subscript``, ``inline``
1913 - Added support for lists of nodes to ``Element.insert()``.
1914 - Fixed parent linking in ``Element.replace()``.
1915 - Added new abstract superclass ``FixedTextElement``; adds
1916 "xml:space" attribute.
1917 - Added support for "line" attribute of ``system_message`` nodes.
1918 - Added support for the observer pattern from ``utils.Reporter``.
1919 Added ``parse_messages`` and ``transform_messages`` attributes to
1920 ``document``, removed ``messages``. Added ``note_parse_message``
1921 and ``note_transform_message`` methods.
1922 - Added support for improved diagnostics:
1924 - Added "document", "source", and "line" internal attributes to
1925 ``Node``, set by ``Node.setup_child()``.
1926 - Converted variations on ``node.parent = self`` to
1927 ``self.setup_child(node)``.
1928 - Added ``document.current_source`` & ``.current_line``
1929 attributes, and ``.note_source`` observer method.
1930 - Changed "system_message" output to GNU-Tools format.
1932 - Added a "rawsource" attribute to the ``Text`` class, for text
1933 before backslash-escape resolution.
1934 - Support for new transform system.
1935 - Reworked ``pending`` element.
1936 - Fixed XML DOM bug (SF #660611).
1937 - Removed the ``interpeted`` element class and added
1938 ``title_reference``, ``abbreviation``, ``acronym``.
1939 - Made substitutions case-sensitive-but-forgiving; moved some code
1941 - Fixed Unicode bug on element attributes (report: William Dode).
1943 * docutils/optik.py: Removed from project; replaced with
1944 extras/optparse.py and extras/textwrap.py. These will be installed
1945 only if they're not already present in the Python installation.
1947 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1948 only if it's not already present in the Python installation.
1950 * docutils/statemachine.py:
1952 - Factored out ``State.add_initial_transitions()`` so it can be
1954 - Converted whitespace-specific "blank" and "indent" transitions
1955 from special-case code to ordinary transitions: removed
1956 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1957 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1958 ``ws_initial_transitions`` attributes.
1959 - Removed ``State.match_transition()`` after merging it into
1961 - Added ``StateCorrection`` exception.
1962 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1963 (moved ``TransitionCorrection`` support there too.)
1964 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1965 ``EOFError`` instead of ``IndexError``.
1966 - Added ``State.no_match`` method.
1967 - Added support for the Observer pattern, triggered by input line
1969 - Added ``strip_top`` parameter to
1970 ``StateMachineWS.get_first_known_indented``.
1971 - Made ``context`` a parameter to ``StateMachine.run()``.
1972 - Added ``ViewList`` & ``StringList`` classes;
1973 ``extract_indented()`` becomes ``StringList.get_indented()``.
1974 - Added ``StateMachine.insert_input()``.
1975 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1976 thanks to) Fred Drake.
1978 * docutils/utils.py:
1980 - Added a ``source`` attribute to Reporter instances and
1981 ``system_message`` elements.
1982 - Added an observer pattern to ``utils.Reporter`` to keep track of
1984 - Fixed bugs in ``relative_path()``.
1985 - Added support for improved diagnostics.
1986 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1987 - Added support for encoding Reporter stderr output, and encoding
1989 - Reporter keeps track of the highest level system message yet
1992 * docutils/languages: Fixed bibliographic field language lookups.
1994 * docutils/languages/es.py: Added to project; Spanish mappings by
1995 Marcelo Huerta San Martin.
1997 * docutils/languages/fr.py: Added to project; French mappings by
2000 * docutils/languages/it.py: Added to project; Italian mappings by
2003 * docutils/languages/sk.py: Added to project; Slovak mappings by
2006 * docutils/parser/__init__.py:
2008 - Added ``Parser.finish_parse()`` method.
2010 * docutils/parser/rst/__init__.py:
2012 - Added options: "--pep-references", "--rfc-references",
2013 "--tab-width", "--trim-footnote-reference-space".
2015 * docutils/parsers/rst/states.py:
2017 - Changed "title under/overline too short" system messages from INFO
2018 to WARNING, and fixed its insertion location.
2019 - Fixed enumerated list item parsing to allow paragraphs & section
2020 titles to begin with enumerators.
2021 - Converted system messages to use the new "line" attribute.
2022 - Fixed a substitution reference edge case.
2023 - Added support for "--pep-references" and "--rfc-references"
2024 options; reworked ``Inliner`` code to make customization easier.
2025 - Removed field argument parsing.
2026 - Added support for short section title over/underlines.
2027 - Fixed "simple reference name" regexp to ignore text like
2028 "object.__method__"; not an anonymous reference.
2029 - Added support for improved diagnostics.
2030 - Reworked directive API, based on Dethe Elza's contribution. Added
2031 ``Body.parse_directive()``, ``.parse_directive_options()``,
2032 ``.parse_directive_arguments()`` methods.
2033 - Added ``ExtensionOptions`` class, to parse directive options
2034 without parsing field bodies. Factored
2035 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2036 ``ExtensionOptions``.
2037 - Improved definition list term/classifier parsing.
2038 - Added warnings for unknown directives.
2039 - Renamed ``Stuff`` to ``Struct``.
2040 - Now flagged as errors: transitions at the beginning or end of
2041 sections, empty sections (except title), and empty documents.
2042 - Updated for ``statemachine.StringList``.
2043 - Enabled recognition of schemeless email addresses in targets.
2044 - Added support for embedded URIs in hyperlink references.
2045 - Added backslash-escapes to inline markup end-string suffix.
2046 - Added support for correct interpreted text processing.
2047 - Fixed nested title parsing (topic, sidebar directives).
2048 - Added special processing of backslash-escaped whitespace (idea
2049 from David Abrahams).
2050 - Made substitutions case-sensitive-but-forgiving; moved some code
2051 to ``docutils.nodes``.
2052 - Added support for block quote attributions.
2053 - Added a kludge to work-around a conflict between the bubble-up
2054 parser strategy and short titles (<= 3 char-long over- &
2055 underlines). Fixes SF bug #738803 "infinite loop with multiple
2056 titles" submitted by Jason Diamond.
2057 - Added explicit interpreted text roles for standard inline markup:
2058 "emphasis", "strong", "literal".
2059 - Implemented "superscript" and "subscript" interpreted text roles.
2060 - Added initial support for "abbreviation" and "acronym" roles;
2062 - Added support for "--trim-footnote-reference-space" option.
2063 - Optional space before colons in directives & hyperlink targets.
2065 * docutils/parsers/rst/tableparser.py:
2067 - Fixed a bug that was producing unwanted empty rows in "simple"
2069 - Detect bad column spans in "simple" tables.
2071 * docutils/parsers/rst/directives: Updated all directive functions to
2074 * docutils/parsers/rst/directives/__init__.py:
2076 - Added ``flag()``, ``unchanged()``, ``path()``,
2077 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2078 directive option helper functions.
2079 - Added warnings for unknown directives.
2080 - Return ``None`` for missing directives.
2081 - Added ``register_directive()``, thanks to William Dode and Paul
2084 * docutils/parsers/rst/directives/admonitions.py:
2086 - Added "admonition" directive.
2088 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2089 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2090 "parsed-literal", "rubric", "epigraph", "highlights" and
2091 "pull-quote" directives.
2093 * docutils/parsers/rst/directives/images.py:
2095 - Added an "align" attribute to the "image" & "figure" directives
2096 (by Adam Chodorowski).
2097 - Added "class" option to "image", and "figclass" to "figure".
2099 * docutils/parsers/rst/directives/misc.py:
2101 - Added "include", "raw", and "replace" directives, courtesy of
2103 - Added "unicode" and "class" directives.
2105 * docutils/parsers/rst/directives/parts.py:
2107 - Added the "sectnum" directive; by Dmitry Jemerov.
2108 - Added "class" option to "contents" directive.
2110 * docutils/parsers/rst/directives/references.py: Added to project.
2111 Contains the "target-notes" directive.
2113 * docutils/parsers/rst/languages/__init__.py:
2115 - Return ``None`` from get_language() for missing language modules.
2117 * docutils/parsers/rst/languages/de.py: Added to project; German
2118 mappings by Engelbert Gruber.
2120 * docutils/parsers/rst/languages/en.py:
2122 - Added interpreted text roles mapping.
2124 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2125 mappings by Marcelo Huerta San Martin.
2127 * docutils/parsers/rst/languages/fr.py: Added to project; French
2128 mappings by William Dode.
2130 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2131 mappings by Nicola Larosa.
2133 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2134 mappings by Miroslav Vasko.
2136 * docutils/readers/__init__.py:
2138 - Added support for the observer pattern from ``utils.Reporter``, in
2139 ``Reader.parse`` and ``Reader.transform``.
2140 - Removed ``Reader.transform()`` method.
2141 - Added default parameter values to ``Reader.__init__()`` to make
2142 instantiation easier.
2143 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2145 * docutils/readers/pep.py:
2147 - Added the ``peps.TargetNotes`` transform to the Reader.
2148 - Removed PEP & RFC reference detection code; moved to
2149 parsers/rst/states.py as options (enabled here by default).
2150 - Added support for pre-acceptance PEPs (no PEP number yet).
2151 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2154 * docutils/readers/python: Python Source Reader subpackage added to
2155 project, including preliminary versions of:
2158 - moduleparser.py: Parser for Python modules.
2160 * docutils/transforms/__init__.py:
2162 - Added ``Transformer`` class and completed transform reform.
2163 - Added unknown_reference_resolvers list for each transformer. This list holds
2164 the list of functions provided by each component of the transformer that
2165 help resolve references.
2167 * docutils/transforms/frontmatter.py:
2169 - Improved support for generic fields.
2170 - Fixed bibliographic field language lookups.
2172 * docutils/transforms/misc.py: Added to project. Miscellaneous
2175 * docutils/transforms/parts.py:
2177 - Moved the "id" attribute from TOC list items to the references
2178 (``Contents.build_contents()``).
2179 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2180 - Added "class" attribute support to ``Contents``.
2182 * docutils/transforms/peps.py:
2184 - Added ``mask_email()`` function, updating to pep2html.py's
2186 - Linked "Content-Type: text/x-rst" to PEP 12.
2187 - Added the ``TargetNotes`` PEP-specific transform.
2188 - Added ``TargetNotes.cleanup_callback``.
2189 - Added title check to ``Headers``.
2191 * docutils/transforms/references.py:
2193 - Added the ``TargetNotes`` generic transform.
2194 - Split ``Hyperlinks`` into multiple transforms.
2195 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2196 - Added check for circular indirect references.
2197 - Made substitutions case-sensitive-but-forgiving.
2199 * docutils/transforms/universal.py:
2201 - Added support for the "--expose-internal-attributes" option.
2202 - Removed ``Pending`` transform classes & data.
2204 * docutils/writers/__init__.py:
2206 - Removed ``Writer.transform()`` method.
2208 * docutils/writers/docutils-xml.py:
2210 - Added XML and doctype declarations.
2211 - Added "--no-doctype" and "--no-xml-declaration" options.
2213 * docutils/writers/html4css1.py:
2215 - "name" attributes only on these tags: a, applet, form, frame,
2217 - Added "name" attribute to <a> in section titles for Netscape 4
2218 support (bug report: Pearu Peterson).
2219 - Fixed targets (names) on footnote, citation, topic title,
2220 problematic, and system_message nodes (for Netscape 4).
2221 - Changed field names from "<td>" to "<th>".
2222 - Added "@" to "@" encoding to thwart address harvesters.
2223 - Improved the vertical whitespace optimization; ignore "invisible"
2224 nodes (targets, comments, etc.).
2225 - Improved inline literals with ``<span class="pre">`` around chunks
2226 of text and `` `` for runs of spaces.
2227 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2228 ``self.docinfo`` segments.
2229 - Added support for "line_block", "address" elements.
2230 - Improved backlinks (footnotes & system_messages).
2231 - Improved system_message output.
2232 - Redefined "--stylesheet" as containing an invariant URL, used
2233 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2235 - Added "--footnote-references" option (superscript or brackets).
2236 - Added "--compact-lists" and "--no-compact-lists" options.
2237 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2238 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2239 - Improved field list rendering.
2240 - Added Docutils version to "generator" meta tag.
2241 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2242 - Improved layout of <pre> HTML source.
2243 - Fixed attribute typo on <colspec>.
2244 - Refined XML prologue.
2245 - Support for no stylesheet.
2246 - Removed "interpreted" element support.
2247 - Added support for "title_reference", "sidebar", "attribution",
2248 "rubric", and generic "admonition" elements.
2249 - Added "--attribution" option.
2250 - Added support for "inline", "subscript", "superscript" elements.
2251 - Added initial support for "abbreviation" and "acronym";
2254 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2258 - Double quotes in literal blocks (special treatment for de/ngerman).
2259 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2260 - Added "--attribution" option.
2261 - Right align attributions.
2263 * docutils/writers/pep_html.py:
2265 - Parameterized output encoding in PEP template.
2266 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2267 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2268 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2270 - Added an override on the "--footnote-references" option.
2271 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2272 - Added Docutils version to "generator" meta tag.
2273 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2277 - Added a "silent" setting for ``buildhtml.py``.
2278 - Added a "Getting Help" section.
2279 - Rearranged the structure.
2280 - Kept up to date, with new settings, command-line options etc.
2281 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2282 - Converted settings table into a definition list.
2284 * docs/rst/quickstart.txt:
2286 - Added a table of contents.
2287 - Added feedback information.
2288 - Added mention of minimum section title underline lengths.
2289 - Removed the 4-character minimum for section title underlines.
2291 * docs/rst/quickref.html:
2293 - Added a "Getting Help" section.
2294 - Added a style to make section title backlinks more subtle.
2295 - Added mention of minimum section title underline lengths.
2296 - Removed the 4-character minimum for section title underlines.
2298 * extras: Directory added to project; contains third-party modules
2299 that Docutils depends on (optparse, textwrap, roman). These are
2300 only installed if they're not already present.
2302 * licenses: Directory added to project; contains copies of license
2303 files for non-public-domain files.
2307 - Changed the focus. It's about DTD elements: structural
2308 relationships, semantics, and external (public) attributes. Not
2309 about the element class library.
2310 - Moved some implementation-specific stuff into ``docutils.nodes``
2312 - Wrote descriptions of all common attributes and parameter
2313 entities. Filled in introductory material.
2314 - Working through the element descriptions: 55 down, 37 to go.
2315 - Removed "Representation of Horizontal Rules" to
2316 spec/rst/alternatives.txt.
2318 * spec/docutils.dtd:
2320 - Added "generated" inline element.
2321 - Added "line_block" body element.
2322 - Added "auto" attribute to "title".
2323 - Changed content models of "literal_block" and "doctest_block" to
2325 - Added ``%number;`` attribute type parameter entity.
2326 - Changed ``%structural.elements;`` to ``%section.elements``.
2327 - Updated attribute types; made more specific.
2328 - Added "address" bibliographic element.
2329 - Added "line" attribute to ``system_message`` element.
2330 - Removed "field_argument" element; "field_name" may contain
2331 multiple words and whitespace.
2332 - Changed public identifier to docutils.sf.net.
2333 - Removed "interpreted" element; added "title_reference",
2334 "abbreviation", "acronym".
2335 - Removed "refuri" attribute from "footnote_reference" and
2336 "citation_reference".
2337 - Added "sidebar", "rubric", "attribution", "admonition",
2338 "superscript", "subscript", and "inline" elements.
2340 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2342 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2344 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2346 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2349 * spec/transforms.txt: Added to project.
2351 * spec/howto: Added subdirectory, for developer how-to docs.
2353 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2354 Elza, edited & extended by David Goodger.
2356 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2359 * spec/rst/alternatives.txt:
2361 - Added "Doctree Representation of Transitions" from
2363 - Updated "Inline External Targets" & closed the debate.
2364 - Added ideas for interpreted text syntax extensions.
2365 - Added "Nested Inline Markup" section.
2367 * spec/rst/directives.txt:
2369 - Added directives: "topic", "sectnum", "target-notes",
2370 "line-block", "parsed-literal", "include", "replace", "sidebar",
2371 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2373 - Formalized descriptions of directive details.
2374 - Added an "align" attribute to the "image" & "figure" directives
2375 (by Adam Chodorowski).
2376 - Added "class" options to "topic", "sidebar", "line-block",
2377 "parsed-literal", "contents", and "image"; and "figclass" to
2380 * spec/rst/interpreted.txt: Added to project. Descriptions of
2381 interpreted text roles.
2383 * spec/rst/introduction.txt:
2385 - Added pointers to material for new users.
2387 * spec/rst/reStructuredText.txt:
2389 - Disambiguated comments (just add a newline after the "::").
2390 - Updated enumerated list description; added a discussion of the
2391 second-line validity checking.
2392 - Updated directive description.
2393 - Added a note redirecting newbies to the user docs.
2394 - Expanded description of inline markup start-strings in non-markup
2396 - Removed field arguments and made field lists a generic construct.
2397 - Removed the 4-character minimum for section title underlines.
2398 - Clarified term/classifier delimiter & inline markup ambiguity
2400 - Added "Embedded URIs".
2401 - Updated "Interpreted Text" section.
2402 - Added "Character-Level Inline Markup" section.
2404 * test: Continually adding & updating tests.
2406 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2407 - Moved test/test_pep/ to test/test_readers/test_pep/.
2408 - Added test/test_readers/test_python/.
2409 - Added test/test_writers/ (Engelbert Gruber).
2413 - Made the ``locale.setlocale()`` calls in front ends
2416 * tools/buildhtml.py:
2418 - Added "--silent" option.
2419 - Fixed bug with absolute paths & "--config".
2420 - Updated for new I/O classes.
2421 - Added some exception handling.
2422 - Separated publishers' setting defaults; prevents interference.
2423 - Updated for new ``publish_file()`` convenience function.
2425 * tools/pep-html-template:
2427 - Allow for "--embed-stylesheet".
2428 - Added Docutils version to "generator" meta tag.
2429 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2430 - Conform to XHTML spec.
2432 * tools/pep2html.py:
2434 - Made ``argv`` a parameter to ``main()``.
2435 - Added support for "Content-Type:" header & arbitrary PEP formats.
2436 - Linked "Content-Type: text/plain" to PEP 9.
2437 - Files skipped (due to an error) are not pushed onto the server.
2438 - Updated for new I/O classes.
2439 - Added ``check_requirements()`` & ``pep_type_error()``.
2440 - Added some exception handling.
2441 - Updated for new ``publish_string()`` convenience function.
2442 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2444 * tools/quicktest.py:
2446 - Added "-V"/"--version" option.
2448 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2450 * tools/unicode2rstsubs.py: Added to project. Produces character
2451 entity files (reSructuredText substitutions) from the MathML master
2454 * tools/editors: Support code for editors, added to project. Contains
2455 ``emacs/restructuredtext.el``.
2457 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2459 - Added style for chunks of inline literals.
2460 - Removed margin for first child of table cells.
2461 - Right-aligned field list names.
2462 - Support for auto-numbered section titles in TOCs.
2463 - Increased the size of inline literals (<tt>) in titles.
2464 - Restored the light gray background for inline literals.
2465 - Added support for "line_block" elements.
2466 - Added style for "address" elements.
2467 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2468 - Improved field list rendering.
2469 - Vertical whitespace improvements.
2470 - Removed "a.target" style.
2472 * tools/stylesheets/pep.css:
2474 - Fixed nested section margins.
2475 - Other changes parallel those of ``../default.css``.
2478 Release 0.2 (2002-07-31)
2479 ========================
2483 - The word "component" was being used ambiguously. From now on,
2484 "component" will be used to mean "Docutils component", as in Reader,
2485 Writer, Parser, or Transform. Portions of documents (Table of
2486 Contents, sections, etc.) will be called "document parts".
2487 - Did a grand renaming: a lot of ``verylongnames`` became
2488 ``very_long_names``.
2489 - Cleaned up imports: no more relative package imports or
2490 comma-separated lists of top-level modules.
2491 - Added support for an option values object which carries default
2492 settings and overrides (from command-line options and library use).
2493 - Added internal Unicode support, and support for both input and
2495 - Added support for the ``docutils.io.IO`` class & subclasses.
2499 * docutils/__init__.py:
2501 - Added ``ApplicationError`` and ``DataError``, for use throughout
2503 - Added ``Component`` base class for Docutils components; implements
2504 the ``supports`` method.
2505 - Added ``__version__`` (thus, ``docutils.__version__``).
2509 - Removed many keyword parameters to ``Publisher.__init__()`` and
2510 ``publish()``; bundled into an option values object. Added
2511 "argv", "usage", "description", and "option_spec" parameters for
2512 command-line support.
2513 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2515 - Reworked I/O model for ``docutils.io`` wrappers.
2516 - Updated ``Publisher.set_options()``; now returns option values
2518 - Added support for configuration files (/etc/docutils.conf,
2519 ./docutils.conf, ~/.docutils).
2520 - Added ``Publisher.setup_option_parser()``.
2521 - Added default usage message and description.
2523 * docutils/frontend.py: Added to project; support for front-end
2524 (command-line) scripts. Option specifications may be augmented by
2525 components. Requires Optik (http://optik.sf.net/) for option
2526 processing (installed locally as docutils/optik.py).
2528 * docutils/io.py: Added to project; uniform API for a variety of input
2531 * docutils/nodes.py:
2533 - Added ``TreeCopyVisitor`` class.
2534 - Added a ``copy`` method to ``Node`` and subclasses.
2535 - Added a ``SkipDeparture`` exception for visitors.
2536 - Renamed ``TreePruningException`` from ``VisitorException``.
2537 - Added docstrings to ``TreePruningException``, subclasses, and
2539 - Improved docstrings.
2540 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2541 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2543 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2544 ``PreDecorative`` mixin.
2545 - Reworked the name/id bookkeeping; to ``document``, removed
2546 ``explicit_targets`` and ``implicit_targets`` attributes, added
2547 ``nametypes`` attribute and ``set_name_id_map`` method.
2548 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2550 - Added ``document.has_name()`` method.
2551 - Fixed DOM generation for list-attributes.
2552 - Added category class ``Labeled`` (used by footnotes & citations).
2553 - Added ``Element.set_class()`` method (sets "class" attribute).
2555 * docutils/optik.py: Added to project. Combined from the Optik
2556 package, with added option groups and other modifications. The use
2557 of this module is probably only temporary.
2559 * docutils/statemachine.py:
2561 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2562 - Added underscores to improve many awkward names.
2563 - In ``string2lines()``, changed whitespace normalizing translation
2564 table to regexp; restores Python 2.0 compatibility with Unicode.
2566 * docutils/urischemes.py:
2568 - Filled in some descriptions.
2569 - Added "shttp" scheme.
2571 * docutils/utils.py:
2573 - Added ``clean_rcs_keywords`` function (moved from
2574 docutils/transforms/frontmatter.py
2575 ``DocInfo.filter_rcs_keywords``).
2576 - Added underscores to improve many awkward names.
2577 - Changed names of Reporter's thresholds:
2578 warning_level -> report_level; error_level -> halt_level.
2579 - Moved ``utils.id()`` to ``nodes.make_id()``.
2580 - Added ``relative_path(source, target)``.
2582 * docutils/languages/de.py: German mappings; added to project. Thanks
2583 to Gunnar Schwant for the translations.
2585 * docutils/languages/en.py: Added "Dedication" bibliographic field
2588 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2591 * docutils/parsers/rst/states.py:
2593 - Added underscores to improve many awkward names.
2594 - Added RFC-2822 header support.
2595 - Extracted the inline parsing code from ``RSTState`` to a separate
2596 class, ``Inliner``, which will allow easy subclassing.
2597 - Made local bindings for ``memo`` container & often-used contents
2598 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2599 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2600 - Added ``MarkupMismatch`` exception; for late corrections.
2601 - Added ``-/:`` characters to inline markup's start string prefix,
2602 ``/`` to end string suffix.
2603 - Fixed a footnote bug.
2604 - Fixed a bug with literal blocks.
2605 - Applied patch from Simon Budig: simplified regexps with symbolic
2606 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2607 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2608 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2609 - Allowed non-ASCII in "simple names" (directive names, field names,
2611 - Converted ``Inliner.patterns.initial`` to be dynamically built
2612 from parts with ``build_regexp()`` function.
2613 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2614 - Updated docstrings.
2615 - Changed "table" to "grid_table"; added "simple_table" support.
2617 * docutils/parsers/rst/tableparser.py:
2619 - Changed ``TableParser`` to ``GridTableParser``.
2620 - Added ``SimpleTableParser``.
2621 - Refactored naming.
2623 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2624 a fallback language for directive names.
2626 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2627 directive to use a ``pending`` element, used only by HTML writers.
2629 * docutils/parsers/rst/directives/parts.py: Renamed from
2632 - Added "backlinks" attribute to "contents" directive.
2634 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2635 project by Adam Chodorowski.
2637 * docutils/readers/__init__.py: Gave Readers more control over
2638 choosing and instantiating Parsers.
2640 * docutils/readers/pep.py: Added to project; for PEP processing.
2642 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2643 requires a ``component`` parameter.
2645 * docutils/transforms/components.py: Added to project; transforms
2646 related to Docutils components.
2648 * docutils/transforms/frontmatter.py:
2650 - In ``DocInfo.extract_authors``, check for a single "author" in an
2651 "authors" group, and convert it to a single "author" element.
2652 - Added support for "Dedication" and generic bibliographic fields.
2654 * docutils/transforms/peps.py: Added to project; PEP-specific.
2656 * docutils/transforms/parts.py: Renamed from old components.py.
2658 - Added filter for `Contents`, to use alt-text for inline images,
2659 and to remove inline markup that doesn't make sense in the ToC.
2660 - Added "name" attribute to TOC topic depending on its title.
2661 - Added support for optional TOC backlinks.
2663 * docutils/transforms/references.py: Fixed indirect target resolution
2664 in ``Hyperlinks`` transform.
2666 * docutils/transforms/universal.py:
2668 - Changed ``Messages`` transform to properly filter out system
2669 messages below the warning threshold.
2670 - Added ``Decorations`` transform (support for ``--generator``,
2671 ``--date``, ``--time``, ``--source-link`` options).
2673 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2674 Engelbert Gruber's PDF writer.
2676 * docutils/writers/html4css1.py:
2678 - Made XHTML-compatible (switched to lowercase element & attribute
2679 names; empty tag format).
2680 - Escape double-dashes in comment text.
2681 - Improved boilerplate & modularity of output.
2682 - Exposed modular output in Writer class.
2683 - Added a "generator" meta tag to <head>.
2684 - Added support for the ``--stylesheet`` option.
2685 - Added support for ``decoration``, ``header``, and ``footer``
2687 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2688 translation table to regexp; restores Python 2.0 compatibility
2690 - Added the translator class as instance variable to the Writer, to
2691 make it easily subclassable.
2692 - Improved option list spacing (thanks to Richard Jones).
2693 - Modified field list output.
2694 - Added backlinks to footnotes & citations.
2695 - Added percentage widths to "<col>" tags (from colspec).
2696 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2697 "<span>" changed to "<var>".
2698 - Inline literals: "<code>" changed to "<tt>".
2699 - Many changes to optimize vertical space: compact simple lists etc.
2700 - Add a command-line options & directive attributes to control TOC
2701 and footnote/citation backlinks.
2702 - Added support for optional footnote/citation backlinks.
2703 - Added support for generic bibliographic fields.
2704 - Identify backrefs.
2705 - Relative URLs for stylesheet links.
2707 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2708 PEPs (subclass of ``html4css1.Writer``).
2710 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2712 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2713 of the Docutils internal doctree in XML.
2715 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2719 - Changed the title to "The Docutils Document Tree".
2720 - Added "Hyperlink Bookkeeping" section.
2722 * spec/docutils.dtd:
2724 - Added ``decoration``, ``header``, and ``footer`` elements.
2725 - Brought ``interpreted`` element in line with the parser: changed
2726 attribute "type" to "role", added "position".
2727 - Added support for generic bibliographic fields.
2729 * spec/notes.txt: Continual updates. Added "Project Policies".
2731 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2734 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2736 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2737 mailing list discussions.
2739 * spec/pep-0287.txt:
2741 - Renamed to "reStructuredText Docstring Format".
2743 - Reworked Q&A as an enumerated list.
2744 - Converted to reStructuredText format.
2746 * spec/pysource.dtd:
2748 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2750 * spec/pysource.txt: Removed from project. Moved much of its contents
2753 * spec/rst/alternatives.txt:
2755 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2756 - Added "Inline External Targets" section.
2758 * spec/rst/directives.txt:
2760 - Added "backlinks" attribute to "contents" directive.
2762 * spec/rst/problems.txt:
2764 - Updated the Enumerated List Markup discussion.
2765 - Added new alternative table markup syntaxes.
2767 * spec/rst/reStructuredText.txt:
2769 - Clarified field list usage.
2770 - Updated enumerated list description.
2771 - Clarified purpose of directives.
2772 - Added ``-/:`` characters to inline markup's start string prefix,
2773 ``/`` to end string suffix.
2774 - Updated "Authors" bibliographic field behavior.
2775 - Changed "inline hyperlink targets" to "inline internal targets".
2776 - Added "simple table" syntax to supplement the existing but
2777 newly-renamed "grid tables".
2778 - Added cautions for anonymous hyperlink use.
2779 - Added "Dedication" and generic bibliographic fields.
2781 * test: Made test modules standalone (subdirectories became packages).
2783 * test/DocutilsTestSupport.py:
2785 - Added support for PEP extensions to reStructuredText.
2786 - Added support for simple tables.
2787 - Refactored naming.
2789 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2791 - Now supports true packages containing test modules
2792 (``__init__.py`` files required); fixes duplicate module name bug.
2794 * test/test_pep/: Subpackage added to project; PEP testing.
2796 * test/test_rst/test_SimpleTableParser.py: Added to project.
2800 - Updated html.py and publish.py front-end tools to use the new
2801 command-line processing facilities of ``docutils.frontend``
2802 (exposed in ``docutils.core.Publisher``), reducing each to just a
2804 - Added ``locale.setlocale()`` calls to front-end tools.
2806 * tools/buildhtml.py: Added to project; batch-generates .html from all
2807 the .txt files in directories and subdirectories.
2809 * tools/default.css:
2811 - Added support for ``header`` and ``footer`` elements.
2812 - Added styles for "Dedication" topics (biblio fields).
2814 * tools/docutils.conf: A configuration file; added to project.
2816 * tools/docutils-xml.py: Added to project.
2818 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2820 * tools/pep-html-template: Added to project.
2822 * tools/pep2html.py: Added to project from Python (nondist/peps).
2823 Added support for Docutils (reStructuredText PEPs).
2825 * tools/quicktest.py:
2827 - Added the ``--attributes`` option, hacked a bit.
2828 - Added a second command-line argument (output file); cleaned up.
2830 * tools/stylesheets/: Subdirectory added to project.
2832 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2835 Release 0.1 (2002-04-20)
2836 ========================
2838 This is the first release of Docutils, merged from the now inactive
2839 reStructuredText__ and `Docstring Processing System`__ projects. For
2840 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2841 `DPS HISTORY`__ files.
2843 __ http://structuredtext.sourceforge.net/
2844 __ http://docstring.sourceforge.net/
2845 __ http://structuredtext.sourceforge.net/HISTORY.html
2846 __ http://docstring.sourceforge.net/HISTORY.html
2848 General changes: renamed 'dps' package to 'docutils'; renamed
2849 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2850 the test suites (reStructuredText's test/test_states renamed to
2851 test/test_rst); and all modifications required to make it all work.
2853 * docutils/parsers/rst/states.py:
2855 - Improved diagnostic system messages for missing blank lines.
2856 - Fixed substitution_reference bug.
2862 indent-tabs-mode: nil
2863 sentence-end-double-space: t