1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: docutils-develop@lists.sourceforge.net
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
21 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
22 - Support embedded aliases within hyperlink references.
23 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
24 language module) before global search.
28 - Fix [ 3601607 ] node.__repr__() must return `str` instance.
30 * docutils/parsers/rst/directives/__init__.py
32 - Fix [ 3606028 ] ``assert`` is skipped with ``python -O``.
34 * docutils/parsers/rst/directives/images.py
36 - Apply [ 3599485 ] node source/line information for sphinx translation.
38 * docutils/parsers/rst/states.py
40 - Fix [ 157 ] Line block parsing doesn't like system message.
41 - Always import our local copy of roman.py (report Larry Hastings).
43 * docutils/transforms/references.py
45 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
47 * docutils/utils/__init__.py
49 - Fix [ 3596884 ] exception importing ``docutils.io``.
51 * docutils/writers/html4css1/__init__.py
53 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
54 - New setting `stylesheet_dirs`: Comma-separated list of directories
55 where stylesheets are found. Used by `stylesheet_path` when expanding
56 relative path arguments.
57 - New default for math-output_: ``HTML math.css``.
59 .. _math-output: docs/user/config.html#math-output
61 * docutils/writers/latex2e/__init__.py
63 - Drop the simple algorithm replacing straight double quotes with
64 English typographic ones.
65 Activate the SmartQuotes_ transform if you want this feature.
66 - Fix literal use of babel shorthands (straight quote, tilde, ...).
67 - Fix [ 3603246 ] Bug in option "--graphicx-option=auto".
68 - New setting `stylesheet_dirs`.
70 .. _SmartQuotes: docs/user/config.html#smart-quotes
72 * docutils/writers/manpage.py
74 - Fix [3607063] handle lines starting with a period.
75 - Fix option separating comma was bold (thanks to Bill Morris).
77 Release 0.10 (2012-12-16)
78 =========================
82 - Dropped support for Python 2.3.
83 - ``docutils/math``, ``docutils/error_reporting.py``, and
84 ``docutils/urischemes.py`` moved to the utils package.
85 - Fix [3541369] Relative __import__ also with Python 3.3.
86 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
87 and parsers for Python 2.7 up.
88 - Fix import of PIL.Image.
89 - Change default of "syntax highlight" option to "long",
90 basic syntax highlight styles for LaTeX and HTML.
94 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
95 option is ignored and will be removed in a future release.
96 - Fix Py3k error writing to stdout with encoding differing from default.
97 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
99 * docutils/parsers/rst/directives/misc.py
101 - Fix [ 3546533 ] Unicode error with `date` directive.
103 * docutils/transforms/universal.py
105 - SmartQuotes transform for typographic quotes and dashes.
107 * docutils/utils/__init__.py
109 - normalize_language_tag() now returns `BCP 47`_ conformant tags
110 with subtags separated by ``-``.
112 * docutils/writers/html4css1/__init__.py
114 - Use ``<code>`` tag for inline "code",
115 do not drop nested inline nodes (syntax highlight tokens).
116 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
117 - No line break after opening inline math tag.
119 * docutils/writers/manpage.py
121 - Apply [ 3527401 ] addmonition's don't preserve indentation
122 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
124 , docutils/writers/xetex/__init__.py
126 - Apply [ 3555160 ] ensure order of "otherlanguages".
127 - Fix section numbering by LaTeX.
129 * docutils/writers/s5_html/__init__.py
131 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
133 * docutils/writers/s5_html/docutils_xml.py
135 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
139 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
141 * tools/test/test_buildhtml.py
143 - Fix [ 3521167 ] allow running in any directory.
144 - Fix [ 3521168 ] allow running with Python 3.
147 Release 0.9.1 (2012-06-17)
148 ==========================
152 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
153 installed in the PYTHONPATH. Converted tests are now
154 stored in ``test3/``, tools no longer need conversion.
156 If you installed one of Docutils versions 0.7 ... 0.9 with
157 ``setup.py install`` under Python 3, remove the spurious
158 ``test/`` and ``tools/`` directories in the site library root.
162 - Make tests independent from the location of the ``test/`` directory.
163 - Use converted sources (from the ``build/`` directory) for tests under
168 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
172 - Fix writing binary data to sys.stdout under Python 3 (allows
173 ``rst2odt.py`` to be used with output redirection).
175 * docutils/parsers/rst/directives/misc.py
177 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
178 ``locale == C`` and 8-bit char in path argument of `include` directive.
182 - class `Tee`: catch UnicodeError when writing to "ascii" stream or
185 Release 0.9 (2012-05-02)
186 ========================
190 - New reStructuredText "code" role and directive and "code" option
191 of the "include" directive with syntax highlighting by Pygments_.
192 - Fix parse_option_marker for option arguments containing ``=``.
193 - Fix [ 2993756 ]: import Python Imaging Library's Image module
194 via ``import PIL`` as starting with PIL 1.2,
195 "PIL lives in the PIL namespace only" (announcement__).
197 .. _Pygments: http://pygments.org/
198 __ http://mail.python.org/pipermail/image-sig/2011-January/006650.html
202 - Fix [ 2971827 ] and [ 3442827 ]
203 extras/roman.py moved to docutils/utils/roman.py
205 * docutils/frontend.py
207 - Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().
211 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
212 - `mode` argument for FileOutput avoids code replication in
214 - New exceptions InputError and OutputError for IO errors in
215 FileInput/FileOutput.
219 - No "hard" system exit on file IO errors: catch and report them in
220 `Publisher.reportException` instead. Allows handling by a calling
221 application if the configuration setting `traceback` is True.
223 * docutils/utils.py -> docutils/utils/__init__.py
225 - docutils.utils is now a package (providing a place for sub-modules)
227 .. note:: docutils/math, docutils/error_reporting.py, and
228 docutils/urischemes.py will move to the utils package in the next
229 release, too. See RELEASE-NOTES__
231 __ RELEASE-NOTES.html
233 - DependencyList uses io.FileOutput and 'utf8' encoding to prevent
234 errors recording non-ASCII filenames (fixes [ 3434355 ]).
236 - Fix relative_path() with source=None and `unicode` target.
238 * docutils/parsers/rst/states.py
240 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
241 characters and "international" quotes around inline markup.
242 - Use `field_marker` pattern to look for start of a
243 directive option block (fixes [ 3484857 ]).
245 * docutils/parsers/rst/tableparser.py
247 - Fix [ 2926161 ] for simple tables.
248 (Combining chars in grid tables still contribute to cell width.)
250 * docutils/writers/latex2e/__init__.py
252 - Support the `abbreviation` and `acronym` standard roles.
253 - Record only files required to generate the LaTeX source as dependencies.
254 - Fix handling of missing stylesheets.
255 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
256 when suppressing LaTeX section numbering.
257 - Use ``\DUtitle`` for unsupported section levels
258 - Apply [ 3512791 ] do not compare string literals with "is"
260 * docutils/writers/xetex/__init__.py
262 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
264 * docutils/writers/html4css1/__init__.py
266 - Change default for `math-output` setting to MathJax.
267 - Fix handling of missing stylesheets.
269 * docutils/writers/docutils_xml.py
271 - Use the visitor pattern with default_visit()/default_depart() methods
272 instead of minidom to facilitate special handling of selected nodes.
273 - Support raw XML (inserted as-is inside a <raw></raw> node).
275 * docutils/writers/manpage.py
277 - Do not emit comment line with trailing blank. Problematic for VCS.
279 Release 0.8.1 (2011-08-30)
280 ==========================
284 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
285 and [ 3395920 ] (correct copyright info for rst.el).
289 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
291 * docutils/writers/latex2e/__init__.py
293 - Clean up Babel language setting. Restores Sphinx compatibility.
295 Release 0.8 (2011-07-07)
296 ========================
300 - Handle language codes according to `BCP 47`_.
301 - If the specified language is not supported by Docutils,
302 warn and fall back to English.
303 - Math support: reStructuredText "math" role and directive,
304 ``math`` and ``math_block`` doctree elements.
305 - Decode command line arguments with the locale's preferred encoding
306 (to allow, e.g., ``--title=Dornröschen``).
307 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
308 - New sub-module `error_reporting`: handle encoding/decoding errors
309 when reporting exceptions.
310 - Some additions to the Docutils core are released under the 2-Clause BSD
311 license, see COPYING_ for details.
313 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
314 .. _COPYING: COPYING.html
318 - Most directives now support a "name" option that attaches a
321 - Directive content may start on the first line also when the directive
322 type accepts options.
324 * docs/dev/policies.txt:
326 - Recommend the 2-Clause BSD license
327 (http://www.spdx.org/licenses/BSD-2-Clause)
328 for code that is kept under the author's copyright.
330 * tools/buildhtml.py:
332 - Fix ``--local`` switch.
334 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
336 * docutils/writers/html4css1/__init__.py
338 - Set "lang" argument for objects with class argument
339 "language-<language tag>".
340 - New setting "math-output" with support for HTML, MathML, and LaTeX.
342 * docutils/writers/latex2e/__init__.py
344 - Fix [ 3043986 ] AttributeError using :local: with table of content.
345 - Place title data in the document preamble.
346 - Load `babel` package only if required.
347 - Update list of supported languages.
348 - New config setting "hyperref-options".
349 No hard-coded "unicode" hyperref option (clash with xetex).
350 - Set language for custom roles, paragraphs, block-quotes, and
351 line-quotes with class argument "language-<language tag>".
352 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
353 - Convert image URI to a local file path.
354 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
355 has more than one paragraph (Wolfgang Scherer).
356 - \leavevmode before longtable only when needed (prevents spurious vspace)
357 - do not advance table counter for tables without caption
359 * docutils/writers/xetex/__init__.py
361 - New writer generating LaTeX code for compiling with ``xelatex``.
363 A separate writer (inheriting from latex2e) instead of a ``--xetex``
364 option allows separate config options for XeTeX vs. LaTeX2e.
366 * docutils/writers/manpage.py
368 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
369 - Fix: vertical space cleaning for option group ``.``.
371 * tools/editors/emacs/rst.el:
373 - Fix [ 3001100 ] does not handle spaces in filenames
374 (thanks to Jakub Wilk)
378 - strip whitespace from stylesheet arguments
379 - exclude combining chars from column_width()
380 (partial fix for [ 2926161 ])
382 * docutils/parsers/rst/directives/misc.py:
384 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
389 - Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents
390 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
392 Release 0.7 (2010-07-07)
393 ========================
397 - Fix [ 2881769 ] setup configuration.
398 - Fix [ 2788716 ] reporting problems in included files.
402 - FileInput opens files as text files with universal newline support
403 (mode "rU", configurable with the new optional argument "mode").
407 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
411 - Fix [ 2923723 ] let decode_path() tolerate path == None
413 * docutils/writers/html4css1/__init__.py
415 - Support SVG and SWF images (thanks to Stefan Rank).
416 - Generate valid XHTML for centered images with targets.
417 Use CSS classes instead of "align" tags for image alignment.
419 * docutils/writers/latex2e/__init__.py
421 - Use `transforms.writer_aux.Admonitions` to "normalize" special
423 - Use the ``\url`` command for URLs (breaks long URLs instead of
424 writing into the margin).
425 - Preserve runs of spaces in `inline literals`__.
426 - Deprecate ``figure_footnotes`` setting.
427 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
428 - New ``latex_preamble`` setting.
429 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
430 - Fix hyperlink targets (labels) for images, figures, and tables.
431 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
432 - Apply [ 2961991 ] Call hyperref with unicode option.
433 - Drop the special `output_encoding`__ default ("latin-1").
434 The Docutils wide default (usually "UTF-8") is used instead.
435 - Render inline markup in document title and subtitle.
436 - Fix numbering depth with LaTeX section numbering.
437 - Update Unicode -> LaTeX translations.
438 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
440 __ docs/ref/restructuredtext.html#inline-literals
441 __ docs/user/config.html#docutils-footnotes
442 __ docs/user/config.html#output_encoding
444 * docutils/writers/manpage.py
446 - Fix: supported attribute (thanks to peter2108).
447 - Remove trailing blanks in code (keep in sync with mercurial version).
448 - Titles level 1, that is ``.SH``, always uppercase.
449 - Apply patch from mg: literal text should be bold in man-pages.
453 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
458 - Python 3 support: copy test/ and tools/ to the build-dir
459 and convert Python sources with 2to3.
462 Release 0.6 (2009-10-11)
463 ========================
467 - Docutils is now compatible with Python versions from 2.3 up to 2.6
468 and convertible to 3.1 code.
470 + Node.__nonzero__ returns True instead of 1.
471 + use os.walk instead os.path.walk.
472 + minimize "types" module where possible.
473 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
474 + Text nodes now subclass unicode rather than UserString
475 (which is gone in python 3.0).
476 + 3.0 compatibility module docutils._compat
478 + Drop 2.2 compatibility workarounds.
479 + Drop extras/optparse.py and extras/textwrap.py
480 (stdlib modules since 2.3).
482 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
483 - Unix man page export: manpage writer moved from sandbox to Doctutils
486 - Apply [ 1719345 ] Galician translation
487 - Apply [ 1905741 ] Polish translation
488 - Apply [ 1878977 ] make_id(): deaccent characters.
489 - Apply [ 2029251 ] return nonzero when tests fail.
490 - Fix [ 1692788 ] allow UTF-8 in style sheets.
491 - Fix [ 2781629 ] support non-ASCII chars in file names.
492 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
493 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
494 - Fix [ 2821266 ] --strict option works now like --halt=info.
495 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
496 - Fix [ 1627229 ] hyperlink references in substitutions.
498 - The "newlatex" writer is orphaned.
502 - Documented Unicode characters allowed as inline markup openers,
503 closers, and delimiters.
504 - Allow units for all length specifications.
505 - Allow percent sign in "scale" argument of "figure" and "image" directives.
506 - Bugfix: The "figalign" argument of a figure now works as intended
507 (aligning the figure, not its contents).
508 - Align images with class "align-[right|center|left]"
509 (allows setting the alignment of an image in a figure).
513 - Added ``Element.__contains__`` method, for the in-operator.
515 * docutils/parsers/rst/states.py:
517 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
518 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
519 " " (non-breaking space), and "¡ ¿" openers.
521 * docutils/parsers/directives/misc.py:
523 - Added ``start-line`` and ``end-line`` options to "include"
524 directive to select a range of lines.
525 - Hard tabs in literal inclusions are replaced by spaces. This is
526 configurable via the new ``tab-width`` option of the "include" directive
527 (a negative tab-width prevents tab expansion).
531 - Add ``get_stylesheet_list`` function.
532 - Apply [ 2834836 ] print info at halt
534 * docutils/transforms/universal.py:
536 - Raise default priority of StripClasses to exclude stripped classes from
539 * docutils/writers/html4css1/__init__.py:
541 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
542 separated list of stylesheets.
543 - Address [ 1938891 ] Inline literal text creates "pre" span only when
544 needed to prevent inter-word line wraps.
545 - Use `translate` method instead of repeated `replace` calls.
546 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
547 classes to allow CSS styling that does not interfere with other
548 table-using constructs (field lists, citations, ...).
550 * docutils/writers/newlatex2e/__init__.py:
552 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
554 * docutils/writers/latex2e/__init__.py (see also
555 `<docs/user/docutils-05-compat.sty.html>`__) :
557 - Add ``--embed-stylesheet`` option.
558 - Apply [ 1474017 ] image vertical alignment is reversed.
559 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
560 - Change: has_key for dictionaries (not Nodes) to in-operator.
561 - Merge adjacent citations into one latex cite command.
562 - Failsave implementation of custom roles. LaTeX compilation now ignores
563 unknown classes instead of aborting with an error.
564 - Support custom roles based on standard roles.
565 - LaTeX packages can be used as ``--stylesheet`` arguments without
566 restriction. (A style sheet is now referenced with the ``\usepackage``
567 command, if it ends with ``.sty`` or has no extension.)
568 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
569 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
570 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
571 2005-02-04 as a configurable length unit).
572 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
573 if font-encoding is set to ''. LaTeX defaults to OT1 then.
574 - Set sub- and superscript role argument in text mode not as math.
575 Use a custom role based on sub-/superscript if you want italic shape.
576 - Shorter preamble and less dependencies: Load packages and define macros
577 only if required in the document.
578 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
579 - New custom environments and commands with optional "classes" argument.
580 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
581 - Better conformance to Docutils specifications with ``--use-latex-toc``.
582 Support for LaTeX generated ToC also with unnumbered sections.
583 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
584 section numbering by LaTeX.
585 - Use default font in admonitions and sidebar.
586 - Align of image in a figure defaults to 'center'.
587 - Bugfix: Newlines around targets and references prevent run-together
589 - Fix internal hyperlinks.
590 - Use class defaults for page margins ('typearea' now optional).
591 - Float placement made configurable, default changed to "here definitely".
592 - Typeset generic topic as "quote block with title".
593 - Use template (file and configuration option).
594 - In the default template, load cmap.sty (fix text extraction in PDF) and
595 fixltx2e.sty (LaTeX patches, \textsubscript).
596 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
597 - Use `translate` instead of repeated `replace` calls for text encoding.
598 - Hyperlinked footnotes and support for symbol footnotes and
599 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
600 - Complete pairs of binary options
601 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
602 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
604 - font-encoding: "T1" (formerly implicitely set by 'ae').
605 - use-latex-toc: true (ToC with page numbers).
606 - use-latex-footnotes: true (no mixup with figures).
608 * docutils/writers/manpage.py
610 - Do not print version at document end, this is done by the viewer.
611 - Do not print date at document end, this is done by the viewer.
612 - Fix storage of docinfo fields for none standard fields.
614 * docutils/tools/rst2man.py
616 Release 0.5 (2008-06-25)
617 ========================
619 * docutils/languages/he.py: Added to project: Hebrew mappings by
622 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
623 mappings by Meir Kriheli.
625 * docutils/frontend.py:
627 - Configuration files are now assumed and required to be
629 - Paths of applied configuration files are now recorded in the
630 runtime setting ``_config_files`` (accessible via
631 ``--dump-settings``).
632 - Added ``--strip-elements-with-class`` and ``--strip-class``
633 options (``strip_elements_with_classes`` and ``strip_classes``
638 - Added code to determine the input encoding from data: encoding
639 declarations or the presence of byte order marks (UTF-8 & UTF-16).
640 - Added support for IronPython 1.0.
644 - Added ``document.__getstate__`` method, for pickling.
646 * docutils/parsers/rst/states.py:
648 - Allow ``+`` and ``:`` in reference names.
649 - Unquoted targets beginning with an underscore (``.. __target:
650 URI``) are no longer accepted.
651 - Added support for multiple attributions in a physical block quote
652 (indented text block), dividing it into multiple logical block
654 - Added support for unicode bullets in bullet lists: "•", "‣", and
656 - Added support for new object-oriented directive interface,
657 retaining compatibility to the old functional interface.
658 - Added support for throwing ``DirectiveError``'s from within
661 * docutils/parsers/rst/__init__.py:
663 - Added ``Directive`` base class.
664 - Added ``DirectiveError`` base class.
665 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
668 * docutils/parsers/directives/:
670 - Refactored all reStructuredText directives to use the new
671 object-oriented directive interface. Errors are now (mostly)
672 thrown using the new ``DirectiveError`` class.
674 * docutils/parsers/directives/misc.py:
676 - Added ``start-after`` and ``end-before`` options to ``include``
677 directive; thanks to Stefan Rank.
679 * docutils/transforms/universal.py:
681 - Added ``StripClassesAndElements`` transform to remove from the
682 document tree all elements with classes in
683 ``settings.strip_elements_with_classes`` and all "classes"
684 attribute values in ``self.document.settings.strip_classes``.
686 * docutils/transforms/writer_aux.py:
688 - Added ``Admonitions`` transform to transform specific admonitions
689 (like ``note``, ``warning``, etc.) into generic admonitions with a
692 * docutils/writers/html4css1/__init__.py:
694 - Moved template functionality from the PEP/HTML writer here.
695 - Expanded the fragments available in the ``parts`` attribute.
696 - Moved ``id`` attributes from titles to surrounding ``div``
698 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
699 universally supported now).
700 - ``template.txt`` is now opened in text mode instead of binary mode
701 (to ensure Windows compatibility).
702 - ``a`` elements now have an "internal" or "external" class,
703 depending on reference type.
705 * docutils/writers/html4css1/template.txt: Added to project.
707 * docutils/writers/pep_html/:
709 - Moved template functionality to the HTML writer.
711 * docutils/writers/s5_html/__init__.py:
713 - Added ``view_mode`` & ``hidden_controls`` settings
714 (``--view-mode`` & ``--hidden-controls/--visible-controls``
717 * docutils/writers/latex2e/__init__.py:
719 - Add ``--literal-block-env``
720 - Fix: escaping ``%`` in href urls.
721 - Move usepackage hyperref after stylesheet inclusion.
722 - Fix: scrartcl does not have chapter but scrreprt.
723 - Add newline after ``\end{verbatim}``.
724 - Merge smaller differences from latex2e_adaptive_preamble.
725 - Add ``use-part-section``.
726 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
727 - Using leavemode option_list no longer needs to check if parent
728 is a definition list.
729 - Append ``\leavemode`` to definition list terms.
730 - No longer write visit\_/depart_definition_list_item comments to
732 - Table column width with 3 decimal places.
733 - Add table stubs support (boldfont).
734 - Add assemble_parts to writer.
735 - Add simply support for nested tables.
736 - Fix verbatim in tables if use-verbatim-when-possible.
737 - Use section commands down to subparagraph.
738 - Put ensuremath around some latin1 chars.
739 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
740 - New option ``--use-bibtex=style,db1,db2``.
741 - New option ``--reference-label`` to allow usage of LaTeX ref for
742 labels in section references.
743 - Add a label after every section to support sectionnumbers as reference
745 - Fix: bug# 1605376 rst2latex: bad options group list
746 - Remove inactive code for use_optionlist_for_option_list.
747 - Remove latex comments from option_list output.
748 - Fix: bug# 1612270 double qoutes in italian literal.
749 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
750 - Add option --use-latex-abstract.
751 - Image width unit ``px`` is translated to ``pt``.
752 - Add image height support.
753 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
755 - Fix: Do not escape underscores in citation reference labels if
756 use-latex-citations is set.
757 - Use centering instead of center for figure contents, to avoid vertical
759 - Recognize table class: borderless, nolines, booktabs, standard.
760 - Fix: Renaming contents section does not work with latex writer; SF
762 - Applied patch for custom roles with classes from Edward Loper.
763 - Fixed bug that caused crashes with more than 256 lists.
765 * docutils/writers/pep_html/__init__.py:
767 - Changed to support new python.org website structure and
770 * docs/howto/security.txt: "Deploying Docutils Securely", added to
773 * tools/buildhtml.py:
775 -- Added ``ignore`` setting to exclude a list of shell patterns
776 (default: ``.svn:CVS``).
778 * tools/editors/emacs/rst.el:
780 - Changed license to "GPL".
781 - Added ``rst-straighten-decorations`` function.
782 - The ``compile`` module is now always loaded.
783 - Added ``rst-toggle-line-block`` function.
784 - Headings consisting only of non-ASCII characters are now
785 recognized by ``rst-toc`` and ``rst-adjust``.
786 - Added font-lock support for multi-line comments where the first
787 comment line is empty.
788 - Added ``(require 'font-lock)``.
792 - Provide descriptive error message if distutils is missing.
795 Release 0.4 (2006-01-09)
796 ========================
800 - Updated the project policies for trunk/branch development &
803 * docutils/__init__.py:
805 - Added ``__version_details__`` attribute to describe code source
806 (repository/snapshot/release).
807 - Replaced ``default_transforms`` attribute of TransformSpec with
808 ``get_transforms()`` method.
812 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
813 functions, for document tree extraction and reprocessing.
817 - Added ``DocTreeInput`` class, for reprocessing existing documents.
818 - Added support for non-Unicode (e.g. binary) writer output.
822 - Re-introduced ``Targetable.indirect_reference_name``, for
823 MoinMoin/reST compatibility (removed in r3124/r3129).
824 - Added ``serial_escape`` function; escapes string values that are
825 elements of a list, for serialization. Modified Docutils-XML
826 writing (``Element._dom_node``) and pseudo-XML writing
827 (``Element.starttag``) to use ``serial_escape``.
828 - Added ``Node.deepcopy()`` method.
829 - Removed the internal lists ``document.substitution_refs``,
830 ``document.anonymous_refs``, and ``document.anonymous_targets``.
831 - Added a "container" element.
832 - Fixed bug where values of list-valued attributes of elements
833 originating from custom interpreted text roles (i.e., with custom
834 classes) were being shared between element instances. Reported by
837 * docutils/statemachine.py:
839 - Added trailing whitespace stripping to ``string2lines()``.
840 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
841 Asian double-width character support.
845 - Added ``east_asian_column_width()`` for double-width character
848 * docutils/languages/ja.py: Added to project: Japanese mappings by
851 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
852 mappings by Panjunyong.
854 * docutils/parsers/null.py: Added to project; a do-nothing parser.
856 * docutils/parsers/rst/__init__.py:
858 - Added validator to tab_width setting, with test. Closes SF bug
859 #1212515, report from Wu Wei.
861 * docutils/parsers/rst/states.py:
863 - Fixed bug with escaped colons indicating a literal block.
864 - Fixed bug with enumerated lists (SF#1254145).
865 - Backslash-escaped colons inside of field names are now allowed.
866 - Targets (implicit and explicit), anonymous hyperlink references
867 and auto-numbered footnote references inside of substitution
868 definitions are now disallowed.
869 - Fixed bug: list items with blank first lines.
870 - Fixed bug: block quote attributions with indented second lines.
871 - Added East Asian double-width character support (Python 2.4 only).
873 * docutils/parsers/rst/tableparser.py:
875 - Added East Asian double-width character support (Python 2.4 only).
877 * docutils/parsers/rst/directives/body.py:
879 - Added the "container" directive.
881 * docutils/parsers/rst/directives/misc.py:
883 - Added the "default-role", "title", and "date" directives.
884 - Added standard data file syntax to the "include" directive.
885 - Added support for "class" directive content.
887 * docutils/parsers/rst/directives/images.py:
889 - Added ``indirect_reference_name`` support for images with a target
891 - Added support for image width and height units.
892 - Fixed bug with image "target" options.
894 * docutils/parsers/rst/directives/references.py:
896 - Added "class" attribute to "target-notes" directive, for
897 footnote_reference classes.
899 * docutils/parsers/rst/include/: Directory added to project; contains
900 standard data files for the "include" directive. Initial contents:
901 character entity substitution definition sets, and a set of
902 definitions for S5/HTML presentations.
904 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
905 mappings by David Goodger.
907 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
908 Simplified Chinese mappings by Panjunyong.
910 * docutils/readers/__init__.py:
912 - Added universal.Decorations and universal.ExposeInternals
913 transforms as default transforms for all readers.
914 - Added ``ReReader`` base class for readers that reread an existing
917 * docutils/readers/doctree.py: Added to project; a reader for existing
920 * docutils/transforms/frontmatter.py:
922 - Fixed the DocInfo transform to handle SVN-style expansion of the
924 - In ``DocInfo.extract_authors``, treat the contents of "authors"
927 * docutils/transforms/misc.py:
929 - Added misc.Transitions transform, extracted from
930 universal.FinalChecks.
932 * docutils/transforms/references.py:
934 - Added references.DanglingReferences transform, extracted from
935 universal.FinalChecks.
936 - Fixed bug with doubly-indirect substitutions.
937 - Added footnote_reference classes attribute to "TargetNotes".
938 - Fixed bug with circular substitution definitions that put Docutils
939 into an infinite loop.
941 * docutils/transforms/universal.py:
943 - Added universal.ExposeInternals transform, extracted from
944 universal.FinalChecks.
945 - Removed universal.FinalChecks transform (logic has been moved to
946 several new transforms).
947 - Fixed bug with the "expose_internals" setting and Text nodes
948 (exposed by the "rawsource" internal attribute).
949 - Added the universal.StripComments transform, implementation of the
950 "strip_comments" setting.
952 * docutils/transforms/writer_aux.py: Added to project; auxiliary
953 transforms for writers.
955 - Added ``Compound`` transform, which flattens compound paragraphs.
957 * docutils/writers/: Several writer modules (html4css1.py) were
958 converted into packages. Support modules and data files have been
959 moved into the packages. The stylesheets for the HTML writers are
960 now installed along with the code, the code knows where to find
961 them, and the default is to use them (actually, to embed them).
962 Some adjustments to configuration files may be necessary. The
963 easiest way to obtain the new default behavior is to remove all
964 settings whose name includes "stylesheet".
966 * docutils/writers/__init__.py:
968 - Added universal.Messages and universal.FilterMessages transforms
969 as default transforms for all writers.
970 - Added ``UnfilteredWriter`` base class for writers that pass the
971 document tree on unchanged.
973 * docutils/writers/docutils_xml.py:
975 - Made ``xmlcharrefreplace`` the default output encoding error
978 * docutils/writers/html4css1/:
980 - Added support for image width and height units.
981 - Made ``xmlcharrefreplace`` the default output encoding error
983 - Made ``--embed-stylesheet`` the default rather than
984 ``--link-stylesheet``.
985 - Moved "id" attribute from container (section etc.) to title's <a>
986 tag, to be on the same tag as "name".
987 (!!! To be reverted in Docutils 0.5.)
988 - Added vertical space between fields of field lists.
989 - Added ``--compact-field-lists`` option to remove vertical space in
991 - Made cloaking of email addresses with ``--cloak-email-addresses``
993 - Fixed support for centered images.
994 - Added support for class="compact" & class="open" lists.
996 * docutils/writers/latex2e/:
998 - Underscores in citekeys are no longer escaped.
1000 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
1001 mapping of Unicode characters to LaTeX equivalents.
1003 * docutils/writers/s5_html/: Package added to project; writer for
1004 S5/HTML slide shows.
1006 * docs/dev/distributing.txt: Added to project; guide for distributors
1007 (package maintainers).
1009 * docs/dev/hacking.txt: Added to project; guide for developers.
1011 * docs/ref/doctree.txt:
1013 - Updated for plural attributes "classes", "ids", "names",
1015 - Added the "container" element.
1017 * docs/ref/docutils.dtd:
1019 - Updated for plural attributes "classes", "ids", "names",
1022 * docs/user/emacs.txt: Added to project; a document about Emacs
1023 support for reStructuredText and Docutils.
1025 * docs/user/links.txt: Added to project; lists of Docutils-related
1028 * docs/user/mailing-lists.txt: Added to project; information about
1029 Docutils-related mailing lists and how to access them.
1031 * docs/user/slide-shows.txt: Added to project; example of and docs for
1032 the S5/HTML writer (``rst2s5.py`` front end).
1034 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
1035 Files", added to project.
1037 * test/coverage.sh: Added to project; test coverage script.
1039 * test/DocutilsTestSupport.py:
1041 - Added support for specifying runtime settings at the suite level.
1043 * test/test_functional.py:
1045 - Added the ``clear_output_directory`` function.
1046 - Added support for ``_test_more`` functions in functional test
1049 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
1051 * tools/rstpep2html.py: Renamed from pep.py.
1053 * tools/dev/create_unimap.py: Added to project; script to create the
1054 docutils/writers/unimap_latex.py mapping file.
1056 * tools/dev/profile_docutils.py: Added to project; profiler script.
1058 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
1060 * tools/editors/emacs/restructuredtext.el,
1061 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
1062 Removed from project; the functionality is now contained in rst.el.
1064 * tools/editors/emacs/rst.el: Added to project. Added many features
1065 and fixed many bugs. See docs/user/emacs.txt for details.
1067 * tools/stylesheets: Removed from project. Stylesheets have been
1068 renamed and moved into writer packages.
1071 Release 0.3.9 (2005-05-26)
1072 ==========================
1076 - Eliminated and replaced all uses of the old string attributes
1077 ``id``, ``name``, ``dupname`` and ``class`` with references to the
1078 new list attributes ``ids``, ``names``, ``dupnames`` and
1079 ``classes`` throughout the whole source tree.
1083 - Enabled ``--dump-*`` options when ``--traceback`` specified,
1084 allowing for easier debugging.
1085 - In ``Publisher.publish()``, expanded the generic top-level
1088 * docutils/examples.py:
1090 - Added ``internals`` function for exploration.
1094 - Fixed ``Input.decode`` method to apply heuristics only if no
1095 encoding is explicitly given, and to provide better reporting of
1097 - The ``Input.decode`` method now removes byte order marks (BOMs)
1100 * docutils/nodes.py:
1102 - ``image`` element class changed to subclass of Element, not
1103 TextElement (it's an empty element, and cannot contain text).
1104 - Added ``attr_defaults`` dictionary for default attribute values.
1105 - Added empty list as default value for the following attributes:
1106 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
1107 - Added ``document.decoration`` attribute,
1108 ``document.get_decoration`` method, and ``decoration.get_header``
1109 & ``.get_footer`` methods.
1110 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
1113 * docutils/utils.py:
1115 - Removed ``docutils.utils.Reporter.categories``,
1116 ``docutils.utils.ConditionSet``, and all references to them, to
1117 simplify error reporting.
1119 * docutils/languages/nl.py: Added to project; Dutch mappings by
1122 * docutils/parsers/rst/__init__.py:
1124 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
1126 * docutils/parsers/rst/states.py:
1128 - Added check for escaped at-mark to prevent email address recognition.
1129 - Fixed option lists to allow spaces inside ``<angle-bracketed option
1131 - Allowed whitespace in paths and URLs.
1132 - Added auto-enumerated list items.
1133 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
1135 - Added support for table stub columns.
1137 * docutils/parsers/rst/directives/__init__.py:
1139 - Allowed whitespace in paths (``path`` function).
1140 - Added ``uri`` directive option conversion function.
1142 * docutils/parsers/rst/directives/body.py:
1144 - Fixed illegal context bug with "topic" directive (allowed within
1145 sidebars; not within body elements).
1147 * docutils/parsers/rst/directives/images.py:
1149 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
1150 - Added support for the ``file_insertion_enabled`` setting in the
1151 "figure" directive (disables "figwidth" option).
1152 - "image" directive: added checks for valid values of "align" option,
1153 depending on context. "figure" directive: added specialized
1154 "align" option and attribute on "figure" element.
1155 - Made ":figwidth: image" option of "figure" directive work again.
1156 - Fixed bug with reference names containing uppercase letters
1157 (e.g. ``Name_``) in "target" option of "image" directive.
1159 * docutils/parsers/rst/directives/misc.py:
1161 - Fixed "include" and "raw" directives to catch text decoding
1163 - Allowed whitespace in "include" & "raw" directive paths.
1164 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
1165 settings in "include" & "raw" directives.
1167 * docutils/parsers/rst/directives/parts.py:
1169 - Added "header" & "footer" directives.
1170 - Fixed illegal context bug with "contents" directive (topics
1171 allowed within sidebars; not within body elements).
1173 * docutils/parsers/rst/directives/tables.py:
1175 - Added "list-table" directive.
1176 - Caught empty CSV table bug.
1177 - Added support for the ``file_insertion_enabled`` setting in the
1178 "csv-table" directive.
1179 - Added ``stub-columns`` option to "csv-table" and "list-table"
1182 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
1183 mappings by Martijn Pieters.
1185 * docutils/readers/standalone.py:
1187 - Added ``--section-subtitles`` and ``--no-section-subtitles``
1188 options to activate or deactivate the SectSubTitle transform.
1190 * docutils/transforms/frontmatter.py:
1192 - Added SectSubTitle transform to promote titles of lone
1193 subsections to subtitles.
1195 * docutils/transforms/references.py:
1197 - Fixed mislocated internal targets bug, by propagating internal
1198 targets to the next node, making use of the newly added support
1199 for multiple names and IDs.
1200 - Fixed duplicate footnote label bug.
1201 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
1204 * docutils/writers/html4css1.py:
1206 - Fixed unencoded stylesheet reference bug (characters like "&" in
1207 stylesheet references).
1208 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
1210 - Added support for multiple IDs per node by creating empty ``span``
1212 - Added the ``field_name_limit`` & ``option_limit`` settings &
1214 - Added support for table stub columns.
1215 - Added support for the ``align`` attribute on ``figure`` elements.
1216 - Added the ``cloak_email_addresses`` setting & support.
1217 - Added ``html_prolog``, ``html_head``, ``html_body``,
1218 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
1219 ``docutils.core.publish_parts``.
1220 - Added support for section subtitles.
1222 * docutils/writers/latex2e.py:
1224 - Fixed tables starting with more than one multirow cell.
1225 - Improved --use-latex-docinfo so that organization/contact/address
1226 fields are lumped with the last author field and appear on the
1228 - Made sure the titlepage is always shown with --use-latex-docinfo,
1229 even if the document has no title.
1230 - Made sure that latex doesn't fill in today's date if no date field
1232 - Added support for section subtitles.
1234 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
1235 (under development).
1237 * docutils/writers/null.py: Added to project; a do-nothing Writer.
1239 * docs/api/publisher.txt:
1241 - Added "``publish_parts`` Details" section.
1243 * docutils/dev/repository.txt: Added to project; information about the
1244 Docutils Subversion repository.
1246 * docs/ref/docutils.dtd:
1248 - Added a ``stub`` attribute to the ``colspec`` element via the
1249 ``tbl.colspec.att`` parameter entity.
1250 - Allowed topic elements within sidebars
1251 - Added an ``align`` attribute to the ``figure`` element.
1253 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
1257 Release 0.3.7 (2004-12-24)
1258 ==========================
1260 * docutils/frontend.py:
1262 - Added options: --input-encoding-error-handler,
1263 --record-dependencies, --leave-footnote-reference-space,
1265 - Added command-line and config file support for "overrides" setting
1270 - Added support for input encoding error handler.
1272 * docutils/nodes.py:
1274 - Added dispatch_visit and dispatch_departure methods to
1275 NodeVisitor; useful as a hook for Visitors.
1276 - Changed structure of ``line_block``; added ``line``.
1277 - Added ``compound`` node class.
1278 - Added a mechanism for Visitors to transitionally ignore new node
1281 * docutils/utils.py:
1283 - Moved ``escape2null`` and ``unescape`` functions from
1284 docutils/parsers/rst/states.py.
1286 * docutils/parsers/rst/roles.py:
1289 - Changed role function API: the "text" parameter now takes
1290 null-escaped interpreted text content.
1292 * docutils/parsers/rst/states.py:
1294 - Fixed bug where a "role" directive in a nested parse would crash
1295 the parser; the state machine's "language" attribute was not being
1297 - Added support for line block syntax.
1298 - Fixed directive parsing bug: argument-less directives didn't
1299 notice that arguments were present.
1300 - Removed error checking for transitions.
1301 - Added support for multiple classifiers in definition list items.
1302 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
1303 - Changed role function API: the "text" parameter now takes
1304 null-escaped interpreted text content.
1305 - Empty sections and documents are allowed now.
1307 * docutils/parsers/rst/directives/__init__.py:
1309 - Added ``encoding`` directive option conversion function.
1310 - Allow multiple class names in class_option conversion function.
1312 * docutils/parsers/rst/directives/body.py:
1314 - Converted the line-block directive to use the new structure.
1315 - Extracted the old line-block functionality to the ``block``
1316 function (still used).
1317 - Added ``compound`` directive (thanks to Lea Wiemann).
1319 * docutils/parsers/rst/directives/misc.py:
1321 - Added "encoding" option to "include" and "raw" directives.
1322 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1323 - Allow multiple class names in the "class" directive.
1325 * docutils/parsers/rst/directives/parts.py:
1327 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1328 options. Thanks to Lele Gaifax.
1330 * docutils/parsers/rst/directives/tables.py:
1332 - Added "encoding" directive to "csv-table" directive.
1333 - Added workaround for lack of Unicode support in csv.py, for
1334 non-ASCII CSV input.
1336 * docutils/transforms/misc.py:
1338 - Fixed bug when multiple "class" directives are applied to a single
1340 - Enabled multiple format names for "raw" directive.
1342 * docutils/transforms/references.py:
1344 - Added support for trimming whitespace from beside substitution
1347 * docutils/transforms/universal.py:
1349 - FinalChecks now checks for illegal transitions and moves
1350 transitions between sections.
1352 * docutils/writers/html4css1.py:
1354 - HTMLTranslator.encode now converts U+00A0 to " ".
1355 - "stylesheet" and "stylesheet_path" settings are now mutually
1357 - Added support for the new line_block/line structure.
1358 - --footnote-references now overrides
1359 --trim-footnote-reference-space, if applicable.
1360 - Added support for ``compound`` elements.
1361 - Enabled multiple format names for "raw" directive.
1362 - ``<p>`` tags of a paragraph which is the only visible child of the
1363 document node are no longer stripped.
1364 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1365 new method ``should_be_compact_paragraph()``.
1366 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1368 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1369 the output if they have their ``class`` attribute set.
1370 - The whole document is now surrounded by a ``<div
1371 class="document">`` element.
1372 - Body-level images are now wrapped by their own ``<div>`` elements,
1373 with image classes copied to the wrapper, and for images which
1374 have the ``:align:`` option set, the surrounding ``<div>`` now
1375 receives a class attribute (like ``class="align-left"``).
1377 * docutils/writers/latex2e.py:
1379 - no newline after depart_term.
1380 - Added translations for some Unicode quotes.
1381 - Added option "font-encoding", made package AE the default.
1382 - "stylesheet" and "stylesheet_path" settings are now mutually
1384 - --footnote-references now overrides
1385 --trim-footnote-reference-space, if applicable.
1386 - The footnote label style now matches the footnote reference style
1387 ("brackets" or "superscript").
1388 - Added support for ``compound`` elements.
1389 - Enabled multiple format names for "raw" directive.
1391 * docs/ref/docutils.dtd:
1393 - Changed structure of the ``line_block`` element; added ``line``.
1394 - Added ``compound`` element.
1395 - Added "ltrim" and "rtrim" attributes to
1396 ``substitution_definition`` element.
1397 - Enabled multiple format names for ``raw`` element.
1398 - Enabled multiple classifiers in ``definition_list_item`` elements.
1400 * docs/ref/rst/directives.txt
1402 - Marked "line-block" as deprecated.
1403 - "Class" directive now allows multiple class names.
1404 - Added "Rationale for Class Attribute Value Conversion".
1405 - Added warning about "raw" overuse/abuse.
1407 * docs/ref/rst/restructuredtext.txt:
1409 - Added syntax for line blocks.
1410 - Definition list items may have multiple classifiers.
1412 * docs/ref/rst/roles.txt:
1416 * tools/stylesheets/default.css:
1418 - Added support for the new line_block structure.
1419 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1422 Release 0.3.5 (2004-07-29)
1423 ==========================
1427 * _`Documentation cleanup/reorganization`.
1429 - Created new subdirectories of docs/:
1431 * ``docs/user/``: introductory/tutorial material for end-users
1432 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1433 * ``docs/api/``: API reference material for client-developers
1434 * ``docs/ref/``: reference material for all groups
1435 * ``docs/howto/``: for component-developers and core-developers
1436 * ``docs/peps/``: Python Enhancement Proposals
1438 - Moved ``docs/*`` to ``docs/user/``.
1439 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1440 ``spec/`` to ``docs/dev``.
1441 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1442 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1443 - Moved ``alternatives.txt``, and ``problems.txt`` from
1444 ``spec/rst/`` to ``docs/dev/rst/``.
1445 - Moved ``reStructuredText.txt``, ``directives.txt``,
1446 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1447 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1448 ``roles.txt``, ``reStructuredText.txt`` to
1449 ``restructuredtext.txt``.
1450 - Moved ``spec/howto/`` to ``docs/howto``.
1452 In order to keep the CVS history of moved files, we supplied
1453 SourceForge with a `script for modifying the Docutils CVS
1456 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1458 After running the cleanup script:
1460 - Added ``docs/index.txt``.
1461 - Added a ``.htaccess`` file to the ``web`` module, containing
1462 redirects for all old paths to new paths. They'll preserve
1463 fragments (the "#name" part of a URL), and won't clutter up the
1464 file system, and will correct the URL in the user's browser.
1465 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1466 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1467 the "To Do" list itself in ``docs/dev/todo.txt``.
1468 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1469 section of ``docs/dev/todo.txt``.
1470 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1471 - Added "How To Report Bugs" to ``BUGS.txt``.
1472 - Went through all the sources and docs (including under web/) and
1473 updated links. Mostly done by Lea Wiemann; thanks Lea!
1474 (Still need to update links in the sandboxes.)
1478 * BUGS.txt: Added to project.
1480 * THANKS.txt: Added to project.
1482 * docutils/__init__.py:
1484 - 0.3.4: Post-release.
1488 - Added special error handling & advice for UnicodeEncodeError.
1489 - Refactored Publisher.publish (simplified exception handling &
1490 extracted debug dumps).
1491 - Renamed "enable_exit" parameter of convenience functions to
1492 "enable_exit_status".
1493 - Enabled traceback (exception propagation) by default in
1494 programmatic convenience functions.
1495 - Now publish_file and publish_cmdline convenience functions return
1496 the encoded string results in addition to their regular I/O.
1497 - Extracted common code from publish_file, publish_string, and
1498 publish_parts, into new publish_programmatically. Extracted
1499 settings code to ``Publisher.process_programmatic_settings``.
1500 - In Publisher.publish, disabled ``settings_overrides`` when
1501 ``settings`` is supplied; redundant.
1503 * docutils/frontend.py:
1505 - Added help text for "--output-encoding-error-handler" and
1506 "--error-encoding-error-handler".
1507 - Renamed "--exit" to "--exit-status".
1508 - Simplified default-setting code.
1510 * docutils/parsers/rst/__init__.py:
1512 - Added "--pep-base-url" and "--rfc-base-url" options.
1514 * docutils/parsers/rst/states.py:
1516 - Made URI recognition more aggressive and intelligent.
1518 * docutils/parsers/rst/directives/__init__.py:
1520 - Added several directive option conversion functions.
1522 * docutils/parsers/rst/directives/body.py:
1524 - Moved "table" directive to tables.py.
1526 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1529 * docutils/writers/latex2e.py:
1531 - Added "--table-style=(standard|booktabs|nolines)"
1532 - figures get "here" option (LaTeX per default puts them at bottom),
1533 and figure content is centered.
1534 - Rowspan support for tables.
1535 - Fix: admonition titles before first section.
1536 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1537 - Replave ``_`` in literal by an underlined blank, because it has the correct
1539 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1540 - A few unicode replacements, if output_encoding != utf
1541 - Add "--graphicx-option".
1542 - Indent literal-blocks.
1543 - Fix: omit ``\maketitle`` when there is no document title.
1545 * docs/index.txt: "Docutils Project Documentation Overview", added to
1548 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1549 Tool", added to project.
1551 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1553 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1555 * docs/dev/policies.txt: Added to project (extracted from
1556 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1558 * docs/dev/release.txt: Added to project (extracted from
1559 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1561 * docs/dev/testing.txt: Added to project.
1563 * docs/dev/website.txt: Added to project (extracted from
1564 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1566 * docs/ref/rst/directives.txt:
1568 - Added directives: "table", "csv-table".
1570 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1571 added to project. 1 page for syntax, and a 1 page reference for
1572 directives and roles. Source text to be used as-is; not meant to be
1575 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1576 with a change of title.
1578 * test/functional/, contents, and test/test_functional.py: Added to
1581 * tools/buildhtml.py: Fixed bug with config file handling.
1583 * tools/html.py: Removed from project (duplicate of rst2html.py).
1585 * tools/pep2html.py: Removed from project (duplicate of Python's
1586 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1587 Docutils-related PEPs in docs/peps/).
1589 * tools/rst2pseudoxml.py: Renamed from publish.py.
1591 * tools/rst2xml.py: Renamed from docutils-xml.py.
1593 * tools/test.txt: Removed from project; moved to
1594 docs/user/rst/demo.txt.
1596 * setup.py: Now also installs ``rst2latex.py``.
1599 Release 0.3.3 (2004-05-09)
1600 ==========================
1602 * docutils/__init__.py:
1604 - 0.3.1: Reorganized config file format (multiple sections); see
1606 - Added unknown_reference_resolvers attribute to TransformSpec.
1607 - 0.3.2: Interpreted text reorganization.
1612 - Catch system messages to stop tracebacks from parsing errors.
1613 - Catch exceptions during processing report & exit without
1614 tracebacks, except when "--traceback" used.
1615 - Reordered components for OptionParser; application comes last.
1616 - Added "config_section" parameter to several methods and functions,
1617 allowing front ends to easily specify their config file sections.
1618 - Added publish_parts convenience function to allow access to individual
1619 parts of a document.
1621 * docutils/examples.py: Added to project; practical examples of
1622 Docutils client code, to be used as-is or as models for variations.
1624 * docutils/frontend.py:
1626 - Added "--traceback" & "--no-traceback" options ("traceback"
1628 - Implemented support for config file reorganization:
1629 ``standard_config_files`` moved from ``ConfigParser`` to
1630 ``OptionParser``; added
1631 ``OptionParser.get_config_file_settings()`` and
1632 ``.get_standard_config_settings()``; support for old "[options]"
1633 section (with deprecation warning) and mapping from old to new
1635 - Reimplemented setting validation.
1636 - Enabled flexible boolean values: yes/no, true/false, on/off.
1637 - Added ``Values``, a subclass of ``optparse.Values``, with support
1638 for list setting attributes.
1639 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1640 thanks to Beni Cherniavsky.
1641 - Added "--no-section-numbering" option.
1645 - Catch IOErrors when opening source & destination files, report &
1646 exit without tracebacks. Added ``handle_io_errors`` parameter to
1647 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1649 * docutils/nodes.py:
1651 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1652 method definitions (via ``exec``) to dynamic assignments (via
1653 ``setattr``); thanks to Roman Suzi.
1654 - Encapsulated visitor dynamic assignments in a function; thanks to
1656 - Added indirect_reference_name attribute to the Targetable
1657 class. This attribute holds the whitespace_normalized_name
1658 (contains mixed case) of a target.
1660 * docutils/statemachine.py:
1662 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1663 - Added ``StringList.get_2D_block``.
1665 * docutils/utils.py:
1667 - Added "level" attribute to SystemMessage exceptions.
1669 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1672 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1675 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1676 Marcelo Huerta San Martin.
1678 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1679 mappings by Lalo Martins.
1681 * docutils/languages/ru.py: Added to project; Russian mappings by
1684 * docutils/parsers/rst/roles.py: Added to project. Contains
1685 interpreted text role functions, a registry for interpreted text
1686 roles, and an API for adding to and retrieving from the registry.
1687 Contributed by Edward Loper.
1689 * docutils/parsers/rst/states.py:
1691 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1692 - Allowed true em-dash character and "---" as block quote
1694 - Added support for <angle-bracketed> complex option arguments
1696 - Fixed handling of backslashes in substitution definitions.
1697 - Fixed off-by-1 error with extra whitespace after substitution
1698 definition directive.
1699 - Added inline markup parsing to field lists' field names.
1700 - Added support for quoted (and unindented) literal blocks.
1701 Driven in part by a bribe from Frank Siebenlist (thanks!).
1702 - Parser now handles escapes in URIs correctly.
1703 - Made embedded-URIs' reference text omittable. Idea from Beni
1705 - Refactored explicit target processing code.
1706 - Added name attribute to references containing the reference name only
1707 through whitespace_normalize_name (no case changes).
1708 - parse_target no longer returns the refname after going through
1709 normalize_name. This is now handled in make_target.
1710 - Fixed bug relating to role-less interpreted text in non-English
1712 - Reorganized interpreted text processing; moved code into the new
1713 roles.py module. Contributed by Edward Loper.
1714 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1715 ``parse_directive_block``.
1717 * docutils/parsers/rst/tableparser.py:
1719 - Reworked for ``StringList``, to support "include" directives in
1722 * docutils/parsers/rst/directives/__init__.py:
1724 - Renamed ``unchanged()`` directive option conversion function to
1725 ``unchanged_required``, and added a new ``unchanged``.
1726 - Catch unicode value too high error; fixes bug 781766.
1727 - Beefed up directive error reporting.
1729 * docutils/parsers/rst/directives/body.py:
1731 - Added basic "table" directive.
1733 * docutils/parsers/rst/directives/images.py:
1735 - Added "target" option to "image" directive.
1736 - Added name attribute to references containing the reference name only
1737 through whitespace_normalize_name (no case changes).
1739 * docutils/parsers/rst/directives/misc.py:
1741 - Isolated the import of the ``urllib2`` module; was causing
1742 problems on SourceForge (``libssl.so.2`` unavailable?).
1743 - Added the "role" directive for declaring custom interpreted text
1746 * docutils/parsers/rst/directives/parts.py:
1748 - The "contents" directive does more work up-front, creating the
1749 "topic" and "title", and leaving the "pending" node for the
1750 transform. Allows earlier reference resolution; fixes subtle bug.
1752 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1753 mappings by Jannie Hofmeyr.
1755 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1756 mappings by Marek Blaha.
1758 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1759 mappings by Marcelo Huerta San Martin.
1761 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1762 Portuguese mappings by Lalo Martins.
1764 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1765 mappings by Roman Suzi.
1767 * docutils/transforms/parts.py:
1769 - The "contents" directive does more work up-front, creating the
1770 "topic" and "title", and leaving the "pending" node for the
1771 transform. Allows earlier reference resolution; fixes subtle bug.
1772 - Added support for disabling of section numbering.
1774 * docutils/transforms/references.py:
1776 - Verifying that external targets are truly targets and not indirect
1777 references. This is because we are now adding a "name" attribute to
1778 references in addition to targets. Note sure if this is correct!
1779 - Added code to hook into the unknown_reference_resolvers list for a
1780 transformer in resolve_indirect_target. This allows the
1781 unknown_reference_resolvers to keep around indirect targets which
1782 docutils doesn't know about.
1783 - Added specific error message for duplicate targets.
1785 * docutils/transforms/universal.py:
1787 - Added FilterMessages transform (removes system messages below the
1788 verbosity threshold).
1789 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1790 to FinalCheckVisitor for application-specific handling of
1791 unresolvable references.
1792 - Added specific error message for duplicate targets.
1794 * docutils/writers/__init__.py:
1796 - Added assemble_parts method to the Writer class to allow for
1797 access to a documents individual parts.
1798 - Documented & set default for ``Writer.output`` attribute.
1800 * docutils/writers/html4css1.py:
1802 - Fixed unicode handling of attribute values (bug 760673).
1803 - Prevent duplication of "class" attribute values (bug report from
1805 - Improved table grid/border handling (prompted by report from Bob
1807 - Added support for table titles.
1808 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1810 - Added functionality to keep track of individual parts of a document
1811 and store them in a dictionary as the "parts" attribute of the writer.
1812 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1813 - Added proper support for the "scale" attribute of the "image"
1814 element. Contributed by Brent Cook.
1815 - Added ``--initial-header-level`` option.
1816 - Fixed bug: the body_pre_docinfo segment depended on there being a
1817 docinfo; if no docinfo, the document title was incorporated into
1818 the body segment. Adversely affected the publish_parts interface.
1820 * docutils/writers/latex2e.py:
1822 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1823 about a missing file.
1824 - Added options and support: ``--compound-enumerators``,
1825 ``--section-prefix-for-enumerators``, and
1826 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1828 - Added option ``--use-verbatim-when-possible``, to avoid
1829 problematic characters (eg, '~' in italian) in literal blocks.
1830 - It's now possible to use four section levels in the `book` and
1831 `report` LaTeX classes. The default `article` class still has
1834 * docs/config.txt: "Docutils Configuration Files", added to project.
1835 Moved config file entry descriptions from tools.txt.
1839 - Moved config file entry descriptions to config.txt.
1841 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1844 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1845 Text Roles", added to project.
1847 * spec/rst/reStructuredText.txt:
1849 - Added description of support for <angle-bracketed> complex option
1850 arguments to option lists.
1851 - Added subsections for indented and quoted literal blocks.
1853 * test: Continually adding & updating tests.
1855 - Added test/test_settings.py & test/data/config_*.txt support
1857 - Added test/test_writers/test_htmlfragment.py.
1859 * test/DocutilsTestSupport.py:
1861 - Refactored LaTeX publisher test suite/case class names to make
1862 testing other writers easier.
1863 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1864 to test the processing of HTML fragments which use the new
1865 publish_parts convenience function.
1867 * tools/buildhtml.py:
1869 - Added support for the "--prune" option.
1870 - Removed dependency on pep2html.py; plaintext PEPs no longer
1873 * tools/docutils.conf:
1875 - Updated for configuration file reorganization.
1877 * tools/rst2html.py:
1879 - copied from tools/html.py
1883 - added a 'scripts' section to configuration
1884 - added 'tools/rst2html.py' to the scripts section
1887 Release 0.3 (2003-06-24)
1888 ========================
1892 * Renamed "attribute" to "option" for directives/extensions.
1894 * Renamed transform method "transform" to "apply".
1896 * Renamed "options" to "settings" for runtime settings (as set by
1897 command-line options). Sometimes "option" (singular) became
1898 "settings" (plural). Some variations below:
1900 - document.options -> document.settings (stored in other objects as
1902 - option_spec -> settings_spec (not directives though)
1903 - OptionSpec -> SettingsSpec
1904 - cmdline_options -> settings_spec
1905 - relative_path_options -> relative_path_settings
1906 - option_default_overrides -> settings_default_overrides
1907 - Publisher.set_options -> Publisher.get_settings
1911 * COPYING.txt: Added "Public Domain Dedication".
1913 * FAQ.txt: Frequently asked questions, added to project.
1917 - Updated with PyPI Trove classifiers.
1918 - Conditional installation of third-party modules.
1920 * docutils/__init__.py:
1922 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1923 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1924 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1925 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1926 option and its effect on the PEP template & writer.
1927 - Bumped version to 0.2.4 due to changes to the PEP template &
1929 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1930 - Added ``TransformSpec`` class for new transform system.
1931 - Bumped version to 0.2.6 for API changes (renaming).
1932 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1933 convenience functions.
1934 - Added ``Component.component_type`` attribute.
1935 - Bumped version to 0.2.8 because of the internal parser switch from
1936 plain lists to the docutils.statemachine.StringList objects.
1937 - Bumped version to 0.2.9 because of the frontend.py API changes.
1938 - Bumped version to 0.2.10 due to changes to the project layout
1939 (third-party modules removed from the "docutils" package), and
1940 signature changes in ``io.Input``/``io.Output``.
1941 - Changed version to 0.3.0 for release.
1945 - Made ``publish()`` a bit more convenient.
1946 - Generalized ``Publisher.set_io``.
1947 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1948 parameters; improved its docstring.
1949 - Added ``publish_file()`` and ``publish_string()``.
1950 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1952 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1953 "--dump-transforms" hidden options.
1954 - Added ``Publisher.apply_transforms()`` method.
1955 - Added ``Publisher.set_components()`` method; support for
1956 ``publish_*()`` conveninece functions.
1957 - Moved config file processing to docutils/frontend.py.
1958 - Added support for exit status ("exit_level" setting &
1959 ``enable_exit`` parameter for Publisher.publish() and convenience
1962 * docutils/frontend.py:
1964 - Check for & exit on identical source & destination paths.
1965 - Fixed bug with absolute paths & "--config".
1966 - Set non-command-line defaults in ``OptionParser.__init__()``:
1967 ``_source`` & ``_destination``.
1968 - Distributed ``relative_path_settings`` to components; updated
1969 ``OptionParser.populate_from_components()`` to combine it all.
1970 - Require list of keys in ``make_paths_absolute`` (was implicit in
1971 global ``relative_path_settings``).
1972 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1973 "--dump-settings", and "--dump-transforms" hidden options.
1974 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1975 code, replaced with correct code.
1976 - Added validation functionality for config files.
1977 - Added "--error-encoding" option/setting, "_disable_config"
1979 - Added encoding validation; updated "--input-encoding" and
1980 "--output-encoding"; added "--error-encoding-error-handler" and
1981 "--output-encoding-error-handler".
1982 - Moved config file processing from docutils/core.py.
1983 - Updated ``OptionParser.populate_from_components`` to handle new
1984 ``SettingsSpec.settings_defaults`` dict.
1985 - Added support for "-" => stdin/stdout.
1986 - Added "exit_level" setting ("--exit" option).
1990 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1991 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1992 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1993 - ``FileOutput.write()`` now returns the encoded output string.
1994 - Try to get path/stream name automatically in ``FileInput`` &
1996 - Added defaults for source & destination paths.
1997 - Allow for Unicode I/O with an explicit "unicode" encoding.
1998 - Added ``Output.encode()``.
1999 - Removed dependency on runtime settings; pass encoding directly.
2000 - Recognize Unicode strings in ``Input.decode()``.
2001 - Added support for output encoding error handlers.
2003 * docutils/nodes.py:
2005 - Added "Invisible" element category class.
2006 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
2007 modification during a traversal.
2008 - Added element classes: ``line_block``, ``generated``, ``address``,
2009 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
2010 ``superscript``, ``subscript``, ``inline``
2011 - Added support for lists of nodes to ``Element.insert()``.
2012 - Fixed parent linking in ``Element.replace()``.
2013 - Added new abstract superclass ``FixedTextElement``; adds
2014 "xml:space" attribute.
2015 - Added support for "line" attribute of ``system_message`` nodes.
2016 - Added support for the observer pattern from ``utils.Reporter``.
2017 Added ``parse_messages`` and ``transform_messages`` attributes to
2018 ``document``, removed ``messages``. Added ``note_parse_message``
2019 and ``note_transform_message`` methods.
2020 - Added support for improved diagnostics:
2022 - Added "document", "source", and "line" internal attributes to
2023 ``Node``, set by ``Node.setup_child()``.
2024 - Converted variations on ``node.parent = self`` to
2025 ``self.setup_child(node)``.
2026 - Added ``document.current_source`` & ``.current_line``
2027 attributes, and ``.note_source`` observer method.
2028 - Changed "system_message" output to GNU-Tools format.
2030 - Added a "rawsource" attribute to the ``Text`` class, for text
2031 before backslash-escape resolution.
2032 - Support for new transform system.
2033 - Reworked ``pending`` element.
2034 - Fixed XML DOM bug (SF #660611).
2035 - Removed the ``interpeted`` element class and added
2036 ``title_reference``, ``abbreviation``, ``acronym``.
2037 - Made substitutions case-sensitive-but-forgiving; moved some code
2039 - Fixed Unicode bug on element attributes (report: William Dode).
2041 * docutils/optik.py: Removed from project; replaced with
2042 extras/optparse.py and extras/textwrap.py. These will be installed
2043 only if they're not already present in the Python installation.
2045 * docutils/roman.py: Moved to extras/roman.py; this will be installed
2046 only if it's not already present in the Python installation.
2048 * docutils/statemachine.py:
2050 - Factored out ``State.add_initial_transitions()`` so it can be
2052 - Converted whitespace-specific "blank" and "indent" transitions
2053 from special-case code to ordinary transitions: removed
2054 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
2055 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
2056 ``ws_initial_transitions`` attributes.
2057 - Removed ``State.match_transition()`` after merging it into
2059 - Added ``StateCorrection`` exception.
2060 - Added support for ``StateCorrection`` in ``StateMachine.run()``
2061 (moved ``TransitionCorrection`` support there too.)
2062 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
2063 ``EOFError`` instead of ``IndexError``.
2064 - Added ``State.no_match`` method.
2065 - Added support for the Observer pattern, triggered by input line
2067 - Added ``strip_top`` parameter to
2068 ``StateMachineWS.get_first_known_indented``.
2069 - Made ``context`` a parameter to ``StateMachine.run()``.
2070 - Added ``ViewList`` & ``StringList`` classes;
2071 ``extract_indented()`` becomes ``StringList.get_indented()``.
2072 - Added ``StateMachine.insert_input()``.
2073 - Fixed ViewList slice handling for Python 2.3. Patch from (and
2074 thanks to) Fred Drake.
2076 * docutils/utils.py:
2078 - Added a ``source`` attribute to Reporter instances and
2079 ``system_message`` elements.
2080 - Added an observer pattern to ``utils.Reporter`` to keep track of
2082 - Fixed bugs in ``relative_path()``.
2083 - Added support for improved diagnostics.
2084 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
2085 - Added support for encoding Reporter stderr output, and encoding
2087 - Reporter keeps track of the highest level system message yet
2090 * docutils/languages: Fixed bibliographic field language lookups.
2092 * docutils/languages/es.py: Added to project; Spanish mappings by
2093 Marcelo Huerta San Martin.
2095 * docutils/languages/fr.py: Added to project; French mappings by
2098 * docutils/languages/it.py: Added to project; Italian mappings by
2101 * docutils/languages/sk.py: Added to project; Slovak mappings by
2104 * docutils/parser/__init__.py:
2106 - Added ``Parser.finish_parse()`` method.
2108 * docutils/parser/rst/__init__.py:
2110 - Added options: "--pep-references", "--rfc-references",
2111 "--tab-width", "--trim-footnote-reference-space".
2113 * docutils/parsers/rst/states.py:
2115 - Changed "title under/overline too short" system messages from INFO
2116 to WARNING, and fixed its insertion location.
2117 - Fixed enumerated list item parsing to allow paragraphs & section
2118 titles to begin with enumerators.
2119 - Converted system messages to use the new "line" attribute.
2120 - Fixed a substitution reference edge case.
2121 - Added support for "--pep-references" and "--rfc-references"
2122 options; reworked ``Inliner`` code to make customization easier.
2123 - Removed field argument parsing.
2124 - Added support for short section title over/underlines.
2125 - Fixed "simple reference name" regexp to ignore text like
2126 "object.__method__"; not an anonymous reference.
2127 - Added support for improved diagnostics.
2128 - Reworked directive API, based on Dethe Elza's contribution. Added
2129 ``Body.parse_directive()``, ``.parse_directive_options()``,
2130 ``.parse_directive_arguments()`` methods.
2131 - Added ``ExtensionOptions`` class, to parse directive options
2132 without parsing field bodies. Factored
2133 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
2134 ``ExtensionOptions``.
2135 - Improved definition list term/classifier parsing.
2136 - Added warnings for unknown directives.
2137 - Renamed ``Stuff`` to ``Struct``.
2138 - Now flagged as errors: transitions at the beginning or end of
2139 sections, empty sections (except title), and empty documents.
2140 - Updated for ``statemachine.StringList``.
2141 - Enabled recognition of schemeless email addresses in targets.
2142 - Added support for embedded URIs in hyperlink references.
2143 - Added backslash-escapes to inline markup end-string suffix.
2144 - Added support for correct interpreted text processing.
2145 - Fixed nested title parsing (topic, sidebar directives).
2146 - Added special processing of backslash-escaped whitespace (idea
2147 from David Abrahams).
2148 - Made substitutions case-sensitive-but-forgiving; moved some code
2149 to ``docutils.nodes``.
2150 - Added support for block quote attributions.
2151 - Added a kludge to work-around a conflict between the bubble-up
2152 parser strategy and short titles (<= 3 char-long over- &
2153 underlines). Fixes SF bug #738803 "infinite loop with multiple
2154 titles" submitted by Jason Diamond.
2155 - Added explicit interpreted text roles for standard inline markup:
2156 "emphasis", "strong", "literal".
2157 - Implemented "superscript" and "subscript" interpreted text roles.
2158 - Added initial support for "abbreviation" and "acronym" roles;
2160 - Added support for "--trim-footnote-reference-space" option.
2161 - Optional space before colons in directives & hyperlink targets.
2163 * docutils/parsers/rst/tableparser.py:
2165 - Fixed a bug that was producing unwanted empty rows in "simple"
2167 - Detect bad column spans in "simple" tables.
2169 * docutils/parsers/rst/directives: Updated all directive functions to
2172 * docutils/parsers/rst/directives/__init__.py:
2174 - Added ``flag()``, ``unchanged()``, ``path()``,
2175 ``nonnegative_int()``, ``choice()``, and ``class_option()``
2176 directive option helper functions.
2177 - Added warnings for unknown directives.
2178 - Return ``None`` for missing directives.
2179 - Added ``register_directive()``, thanks to William Dode and Paul
2182 * docutils/parsers/rst/directives/admonitions.py:
2184 - Added "admonition" directive.
2186 * docutils/parsers/rst/directives/body.py: Added to project. Contains
2187 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
2188 "parsed-literal", "rubric", "epigraph", "highlights" and
2189 "pull-quote" directives.
2191 * docutils/parsers/rst/directives/images.py:
2193 - Added an "align" attribute to the "image" & "figure" directives
2194 (by Adam Chodorowski).
2195 - Added "class" option to "image", and "figclass" to "figure".
2197 * docutils/parsers/rst/directives/misc.py:
2199 - Added "include", "raw", and "replace" directives, courtesy of
2201 - Added "unicode" and "class" directives.
2203 * docutils/parsers/rst/directives/parts.py:
2205 - Added the "sectnum" directive; by Dmitry Jemerov.
2206 - Added "class" option to "contents" directive.
2208 * docutils/parsers/rst/directives/references.py: Added to project.
2209 Contains the "target-notes" directive.
2211 * docutils/parsers/rst/languages/__init__.py:
2213 - Return ``None`` from get_language() for missing language modules.
2215 * docutils/parsers/rst/languages/de.py: Added to project; German
2216 mappings by Engelbert Gruber.
2218 * docutils/parsers/rst/languages/en.py:
2220 - Added interpreted text roles mapping.
2222 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
2223 mappings by Marcelo Huerta San Martin.
2225 * docutils/parsers/rst/languages/fr.py: Added to project; French
2226 mappings by William Dode.
2228 * docutils/parsers/rst/languages/it.py: Added to project; Italian
2229 mappings by Nicola Larosa.
2231 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
2232 mappings by Miroslav Vasko.
2234 * docutils/readers/__init__.py:
2236 - Added support for the observer pattern from ``utils.Reporter``, in
2237 ``Reader.parse`` and ``Reader.transform``.
2238 - Removed ``Reader.transform()`` method.
2239 - Added default parameter values to ``Reader.__init__()`` to make
2240 instantiation easier.
2241 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
2243 * docutils/readers/pep.py:
2245 - Added the ``peps.TargetNotes`` transform to the Reader.
2246 - Removed PEP & RFC reference detection code; moved to
2247 parsers/rst/states.py as options (enabled here by default).
2248 - Added support for pre-acceptance PEPs (no PEP number yet).
2249 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
2252 * docutils/readers/python: Python Source Reader subpackage added to
2253 project, including preliminary versions of:
2256 - moduleparser.py: Parser for Python modules.
2258 * docutils/transforms/__init__.py:
2260 - Added ``Transformer`` class and completed transform reform.
2261 - Added unknown_reference_resolvers list for each transformer. This list holds
2262 the list of functions provided by each component of the transformer that
2263 help resolve references.
2265 * docutils/transforms/frontmatter.py:
2267 - Improved support for generic fields.
2268 - Fixed bibliographic field language lookups.
2270 * docutils/transforms/misc.py: Added to project. Miscellaneous
2273 * docutils/transforms/parts.py:
2275 - Moved the "id" attribute from TOC list items to the references
2276 (``Contents.build_contents()``).
2277 - Added the ``SectNum`` transform; by Dmitry Jemerov.
2278 - Added "class" attribute support to ``Contents``.
2280 * docutils/transforms/peps.py:
2282 - Added ``mask_email()`` function, updating to pep2html.py's
2284 - Linked "Content-Type: text/x-rst" to PEP 12.
2285 - Added the ``TargetNotes`` PEP-specific transform.
2286 - Added ``TargetNotes.cleanup_callback``.
2287 - Added title check to ``Headers``.
2289 * docutils/transforms/references.py:
2291 - Added the ``TargetNotes`` generic transform.
2292 - Split ``Hyperlinks`` into multiple transforms.
2293 - Fixed bug with multiply-indirect references (report: Bruce Smith).
2294 - Added check for circular indirect references.
2295 - Made substitutions case-sensitive-but-forgiving.
2297 * docutils/transforms/universal.py:
2299 - Added support for the "--expose-internal-attributes" option.
2300 - Removed ``Pending`` transform classes & data.
2302 * docutils/writers/__init__.py:
2304 - Removed ``Writer.transform()`` method.
2306 * docutils/writers/docutils-xml.py:
2308 - Added XML and doctype declarations.
2309 - Added "--no-doctype" and "--no-xml-declaration" options.
2311 * docutils/writers/html4css1.py:
2313 - "name" attributes only on these tags: a, applet, form, frame,
2315 - Added "name" attribute to <a> in section titles for Netscape 4
2316 support (bug report: Pearu Peterson).
2317 - Fixed targets (names) on footnote, citation, topic title,
2318 problematic, and system_message nodes (for Netscape 4).
2319 - Changed field names from "<td>" to "<th>".
2320 - Added "@" to "@" encoding to thwart address harvesters.
2321 - Improved the vertical whitespace optimization; ignore "invisible"
2322 nodes (targets, comments, etc.).
2323 - Improved inline literals with ``<span class="pre">`` around chunks
2324 of text and `` `` for runs of spaces.
2325 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2326 ``self.docinfo`` segments.
2327 - Added support for "line_block", "address" elements.
2328 - Improved backlinks (footnotes & system_messages).
2329 - Improved system_message output.
2330 - Redefined "--stylesheet" as containing an invariant URL, used
2331 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2333 - Added "--footnote-references" option (superscript or brackets).
2334 - Added "--compact-lists" and "--no-compact-lists" options.
2335 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2336 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2337 - Improved field list rendering.
2338 - Added Docutils version to "generator" meta tag.
2339 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2340 - Improved layout of <pre> HTML source.
2341 - Fixed attribute typo on <colspec>.
2342 - Refined XML prologue.
2343 - Support for no stylesheet.
2344 - Removed "interpreted" element support.
2345 - Added support for "title_reference", "sidebar", "attribution",
2346 "rubric", and generic "admonition" elements.
2347 - Added "--attribution" option.
2348 - Added support for "inline", "subscript", "superscript" elements.
2349 - Added initial support for "abbreviation" and "acronym";
2352 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2356 - Double quotes in literal blocks (special treatment for de/ngerman).
2357 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2358 - Added "--attribution" option.
2359 - Right align attributions.
2361 * docutils/writers/pep_html.py:
2363 - Parameterized output encoding in PEP template.
2364 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2365 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2366 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2368 - Added an override on the "--footnote-references" option.
2369 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2370 - Added Docutils version to "generator" meta tag.
2371 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2375 - Added a "silent" setting for ``buildhtml.py``.
2376 - Added a "Getting Help" section.
2377 - Rearranged the structure.
2378 - Kept up to date, with new settings, command-line options etc.
2379 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2380 - Converted settings table into a definition list.
2382 * docs/rst/quickstart.txt:
2384 - Added a table of contents.
2385 - Added feedback information.
2386 - Added mention of minimum section title underline lengths.
2387 - Removed the 4-character minimum for section title underlines.
2389 * docs/rst/quickref.html:
2391 - Added a "Getting Help" section.
2392 - Added a style to make section title backlinks more subtle.
2393 - Added mention of minimum section title underline lengths.
2394 - Removed the 4-character minimum for section title underlines.
2396 * extras: Directory added to project; contains third-party modules
2397 that Docutils depends on (optparse, textwrap, roman). These are
2398 only installed if they're not already present.
2400 * licenses: Directory added to project; contains copies of license
2401 files for non-public-domain files.
2405 - Changed the focus. It's about DTD elements: structural
2406 relationships, semantics, and external (public) attributes. Not
2407 about the element class library.
2408 - Moved some implementation-specific stuff into ``docutils.nodes``
2410 - Wrote descriptions of all common attributes and parameter
2411 entities. Filled in introductory material.
2412 - Working through the element descriptions: 55 down, 37 to go.
2413 - Removed "Representation of Horizontal Rules" to
2414 spec/rst/alternatives.txt.
2416 * spec/docutils.dtd:
2418 - Added "generated" inline element.
2419 - Added "line_block" body element.
2420 - Added "auto" attribute to "title".
2421 - Changed content models of "literal_block" and "doctest_block" to
2423 - Added ``%number;`` attribute type parameter entity.
2424 - Changed ``%structural.elements;`` to ``%section.elements``.
2425 - Updated attribute types; made more specific.
2426 - Added "address" bibliographic element.
2427 - Added "line" attribute to ``system_message`` element.
2428 - Removed "field_argument" element; "field_name" may contain
2429 multiple words and whitespace.
2430 - Changed public identifier to docutils.sf.net.
2431 - Removed "interpreted" element; added "title_reference",
2432 "abbreviation", "acronym".
2433 - Removed "refuri" attribute from "footnote_reference" and
2434 "citation_reference".
2435 - Added "sidebar", "rubric", "attribution", "admonition",
2436 "superscript", "subscript", and "inline" elements.
2438 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2440 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2442 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2444 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2447 * spec/transforms.txt: Added to project.
2449 * spec/howto: Added subdirectory, for developer how-to docs.
2451 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2452 Elza, edited & extended by David Goodger.
2454 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2457 * spec/rst/alternatives.txt:
2459 - Added "Doctree Representation of Transitions" from
2461 - Updated "Inline External Targets" & closed the debate.
2462 - Added ideas for interpreted text syntax extensions.
2463 - Added "Nested Inline Markup" section.
2465 * spec/rst/directives.txt:
2467 - Added directives: "topic", "sectnum", "target-notes",
2468 "line-block", "parsed-literal", "include", "replace", "sidebar",
2469 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2471 - Formalized descriptions of directive details.
2472 - Added an "align" attribute to the "image" & "figure" directives
2473 (by Adam Chodorowski).
2474 - Added "class" options to "topic", "sidebar", "line-block",
2475 "parsed-literal", "contents", and "image"; and "figclass" to
2478 * spec/rst/interpreted.txt: Added to project. Descriptions of
2479 interpreted text roles.
2481 * spec/rst/introduction.txt:
2483 - Added pointers to material for new users.
2485 * spec/rst/reStructuredText.txt:
2487 - Disambiguated comments (just add a newline after the "::").
2488 - Updated enumerated list description; added a discussion of the
2489 second-line validity checking.
2490 - Updated directive description.
2491 - Added a note redirecting newbies to the user docs.
2492 - Expanded description of inline markup start-strings in non-markup
2494 - Removed field arguments and made field lists a generic construct.
2495 - Removed the 4-character minimum for section title underlines.
2496 - Clarified term/classifier delimiter & inline markup ambiguity
2498 - Added "Embedded URIs".
2499 - Updated "Interpreted Text" section.
2500 - Added "Character-Level Inline Markup" section.
2502 * test: Continually adding & updating tests.
2504 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2505 - Moved test/test_pep/ to test/test_readers/test_pep/.
2506 - Added test/test_readers/test_python/.
2507 - Added test/test_writers/ (Engelbert Gruber).
2511 - Made the ``locale.setlocale()`` calls in front ends
2514 * tools/buildhtml.py:
2516 - Added "--silent" option.
2517 - Fixed bug with absolute paths & "--config".
2518 - Updated for new I/O classes.
2519 - Added some exception handling.
2520 - Separated publishers' setting defaults; prevents interference.
2521 - Updated for new ``publish_file()`` convenience function.
2523 * tools/pep-html-template:
2525 - Allow for "--embed-stylesheet".
2526 - Added Docutils version to "generator" meta tag.
2527 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2528 - Conform to XHTML spec.
2530 * tools/pep2html.py:
2532 - Made ``argv`` a parameter to ``main()``.
2533 - Added support for "Content-Type:" header & arbitrary PEP formats.
2534 - Linked "Content-Type: text/plain" to PEP 9.
2535 - Files skipped (due to an error) are not pushed onto the server.
2536 - Updated for new I/O classes.
2537 - Added ``check_requirements()`` & ``pep_type_error()``.
2538 - Added some exception handling.
2539 - Updated for new ``publish_string()`` convenience function.
2540 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2542 * tools/quicktest.py:
2544 - Added "-V"/"--version" option.
2546 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2548 * tools/unicode2rstsubs.py: Added to project. Produces character
2549 entity files (reSructuredText substitutions) from the MathML master
2552 * tools/editors: Support code for editors, added to project. Contains
2553 ``emacs/restructuredtext.el``.
2555 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2557 - Added style for chunks of inline literals.
2558 - Removed margin for first child of table cells.
2559 - Right-aligned field list names.
2560 - Support for auto-numbered section titles in TOCs.
2561 - Increased the size of inline literals (<tt>) in titles.
2562 - Restored the light gray background for inline literals.
2563 - Added support for "line_block" elements.
2564 - Added style for "address" elements.
2565 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2566 - Improved field list rendering.
2567 - Vertical whitespace improvements.
2568 - Removed "a.target" style.
2570 * tools/stylesheets/pep.css:
2572 - Fixed nested section margins.
2573 - Other changes parallel those of ``../default.css``.
2576 Release 0.2 (2002-07-31)
2577 ========================
2581 - The word "component" was being used ambiguously. From now on,
2582 "component" will be used to mean "Docutils component", as in Reader,
2583 Writer, Parser, or Transform. Portions of documents (Table of
2584 Contents, sections, etc.) will be called "document parts".
2585 - Did a grand renaming: a lot of ``verylongnames`` became
2586 ``very_long_names``.
2587 - Cleaned up imports: no more relative package imports or
2588 comma-separated lists of top-level modules.
2589 - Added support for an option values object which carries default
2590 settings and overrides (from command-line options and library use).
2591 - Added internal Unicode support, and support for both input and
2593 - Added support for the ``docutils.io.IO`` class & subclasses.
2597 * docutils/__init__.py:
2599 - Added ``ApplicationError`` and ``DataError``, for use throughout
2601 - Added ``Component`` base class for Docutils components; implements
2602 the ``supports`` method.
2603 - Added ``__version__`` (thus, ``docutils.__version__``).
2607 - Removed many keyword parameters to ``Publisher.__init__()`` and
2608 ``publish()``; bundled into an option values object. Added
2609 "argv", "usage", "description", and "option_spec" parameters for
2610 command-line support.
2611 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2613 - Reworked I/O model for ``docutils.io`` wrappers.
2614 - Updated ``Publisher.set_options()``; now returns option values
2616 - Added support for configuration files (/etc/docutils.conf,
2617 ./docutils.conf, ~/.docutils).
2618 - Added ``Publisher.setup_option_parser()``.
2619 - Added default usage message and description.
2621 * docutils/frontend.py: Added to project; support for front-end
2622 (command-line) scripts. Option specifications may be augmented by
2623 components. Requires Optik (http://optik.sf.net/) for option
2624 processing (installed locally as docutils/optik.py).
2626 * docutils/io.py: Added to project; uniform API for a variety of input
2629 * docutils/nodes.py:
2631 - Added ``TreeCopyVisitor`` class.
2632 - Added a ``copy`` method to ``Node`` and subclasses.
2633 - Added a ``SkipDeparture`` exception for visitors.
2634 - Renamed ``TreePruningException`` from ``VisitorException``.
2635 - Added docstrings to ``TreePruningException``, subclasses, and
2637 - Improved docstrings.
2638 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2639 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2641 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2642 ``PreDecorative`` mixin.
2643 - Reworked the name/id bookkeeping; to ``document``, removed
2644 ``explicit_targets`` and ``implicit_targets`` attributes, added
2645 ``nametypes`` attribute and ``set_name_id_map`` method.
2646 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2648 - Added ``document.has_name()`` method.
2649 - Fixed DOM generation for list-attributes.
2650 - Added category class ``Labeled`` (used by footnotes & citations).
2651 - Added ``Element.set_class()`` method (sets "class" attribute).
2653 * docutils/optik.py: Added to project. Combined from the Optik
2654 package, with added option groups and other modifications. The use
2655 of this module is probably only temporary.
2657 * docutils/statemachine.py:
2659 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2660 - Added underscores to improve many awkward names.
2661 - In ``string2lines()``, changed whitespace normalizing translation
2662 table to regexp; restores Python 2.0 compatibility with Unicode.
2664 * docutils/urischemes.py:
2666 - Filled in some descriptions.
2667 - Added "shttp" scheme.
2669 * docutils/utils.py:
2671 - Added ``clean_rcs_keywords`` function (moved from
2672 docutils/transforms/frontmatter.py
2673 ``DocInfo.filter_rcs_keywords``).
2674 - Added underscores to improve many awkward names.
2675 - Changed names of Reporter's thresholds:
2676 warning_level -> report_level; error_level -> halt_level.
2677 - Moved ``utils.id()`` to ``nodes.make_id()``.
2678 - Added ``relative_path(source, target)``.
2680 * docutils/languages/de.py: German mappings; added to project. Thanks
2681 to Gunnar Schwant for the translations.
2683 * docutils/languages/en.py: Added "Dedication" bibliographic field
2686 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2689 * docutils/parsers/rst/states.py:
2691 - Added underscores to improve many awkward names.
2692 - Added RFC-2822 header support.
2693 - Extracted the inline parsing code from ``RSTState`` to a separate
2694 class, ``Inliner``, which will allow easy subclassing.
2695 - Made local bindings for ``memo`` container & often-used contents
2696 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2697 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2698 - Added ``MarkupMismatch`` exception; for late corrections.
2699 - Added ``-/:`` characters to inline markup's start string prefix,
2700 ``/`` to end string suffix.
2701 - Fixed a footnote bug.
2702 - Fixed a bug with literal blocks.
2703 - Applied patch from Simon Budig: simplified regexps with symbolic
2704 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2705 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2706 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2707 - Allowed non-ASCII in "simple names" (directive names, field names,
2709 - Converted ``Inliner.patterns.initial`` to be dynamically built
2710 from parts with ``build_regexp()`` function.
2711 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2712 - Updated docstrings.
2713 - Changed "table" to "grid_table"; added "simple_table" support.
2715 * docutils/parsers/rst/tableparser.py:
2717 - Changed ``TableParser`` to ``GridTableParser``.
2718 - Added ``SimpleTableParser``.
2719 - Refactored naming.
2721 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2722 a fallback language for directive names.
2724 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2725 directive to use a ``pending`` element, used only by HTML writers.
2727 * docutils/parsers/rst/directives/parts.py: Renamed from
2730 - Added "backlinks" attribute to "contents" directive.
2732 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2733 project by Adam Chodorowski.
2735 * docutils/readers/__init__.py: Gave Readers more control over
2736 choosing and instantiating Parsers.
2738 * docutils/readers/pep.py: Added to project; for PEP processing.
2740 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2741 requires a ``component`` parameter.
2743 * docutils/transforms/components.py: Added to project; transforms
2744 related to Docutils components.
2746 * docutils/transforms/frontmatter.py:
2748 - In ``DocInfo.extract_authors``, check for a single "author" in an
2749 "authors" group, and convert it to a single "author" element.
2750 - Added support for "Dedication" and generic bibliographic fields.
2752 * docutils/transforms/peps.py: Added to project; PEP-specific.
2754 * docutils/transforms/parts.py: Renamed from old components.py.
2756 - Added filter for `Contents`, to use alt-text for inline images,
2757 and to remove inline markup that doesn't make sense in the ToC.
2758 - Added "name" attribute to TOC topic depending on its title.
2759 - Added support for optional TOC backlinks.
2761 * docutils/transforms/references.py: Fixed indirect target resolution
2762 in ``Hyperlinks`` transform.
2764 * docutils/transforms/universal.py:
2766 - Changed ``Messages`` transform to properly filter out system
2767 messages below the warning threshold.
2768 - Added ``Decorations`` transform (support for ``--generator``,
2769 ``--date``, ``--time``, ``--source-link`` options).
2771 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2772 Engelbert Gruber's PDF writer.
2774 * docutils/writers/html4css1.py:
2776 - Made XHTML-compatible (switched to lowercase element & attribute
2777 names; empty tag format).
2778 - Escape double-dashes in comment text.
2779 - Improved boilerplate & modularity of output.
2780 - Exposed modular output in Writer class.
2781 - Added a "generator" meta tag to <head>.
2782 - Added support for the ``--stylesheet`` option.
2783 - Added support for ``decoration``, ``header``, and ``footer``
2785 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2786 translation table to regexp; restores Python 2.0 compatibility
2788 - Added the translator class as instance variable to the Writer, to
2789 make it easily subclassable.
2790 - Improved option list spacing (thanks to Richard Jones).
2791 - Modified field list output.
2792 - Added backlinks to footnotes & citations.
2793 - Added percentage widths to "<col>" tags (from colspec).
2794 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2795 "<span>" changed to "<var>".
2796 - Inline literals: "<code>" changed to "<tt>".
2797 - Many changes to optimize vertical space: compact simple lists etc.
2798 - Add a command-line options & directive attributes to control TOC
2799 and footnote/citation backlinks.
2800 - Added support for optional footnote/citation backlinks.
2801 - Added support for generic bibliographic fields.
2802 - Identify backrefs.
2803 - Relative URLs for stylesheet links.
2805 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2806 PEPs (subclass of ``html4css1.Writer``).
2808 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2810 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2811 of the Docutils internal doctree in XML.
2813 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2817 - Changed the title to "The Docutils Document Tree".
2818 - Added "Hyperlink Bookkeeping" section.
2820 * spec/docutils.dtd:
2822 - Added ``decoration``, ``header``, and ``footer`` elements.
2823 - Brought ``interpreted`` element in line with the parser: changed
2824 attribute "type" to "role", added "position".
2825 - Added support for generic bibliographic fields.
2827 * spec/notes.txt: Continual updates. Added "Project Policies".
2829 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2832 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2834 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2835 mailing list discussions.
2837 * spec/pep-0287.txt:
2839 - Renamed to "reStructuredText Docstring Format".
2841 - Reworked Q&A as an enumerated list.
2842 - Converted to reStructuredText format.
2844 * spec/pysource.dtd:
2846 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2848 * spec/pysource.txt: Removed from project. Moved much of its contents
2851 * spec/rst/alternatives.txt:
2853 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2854 - Added "Inline External Targets" section.
2856 * spec/rst/directives.txt:
2858 - Added "backlinks" attribute to "contents" directive.
2860 * spec/rst/problems.txt:
2862 - Updated the Enumerated List Markup discussion.
2863 - Added new alternative table markup syntaxes.
2865 * spec/rst/reStructuredText.txt:
2867 - Clarified field list usage.
2868 - Updated enumerated list description.
2869 - Clarified purpose of directives.
2870 - Added ``-/:`` characters to inline markup's start string prefix,
2871 ``/`` to end string suffix.
2872 - Updated "Authors" bibliographic field behavior.
2873 - Changed "inline hyperlink targets" to "inline internal targets".
2874 - Added "simple table" syntax to supplement the existing but
2875 newly-renamed "grid tables".
2876 - Added cautions for anonymous hyperlink use.
2877 - Added "Dedication" and generic bibliographic fields.
2879 * test: Made test modules standalone (subdirectories became packages).
2881 * test/DocutilsTestSupport.py:
2883 - Added support for PEP extensions to reStructuredText.
2884 - Added support for simple tables.
2885 - Refactored naming.
2887 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2889 - Now supports true packages containing test modules
2890 (``__init__.py`` files required); fixes duplicate module name bug.
2892 * test/test_pep/: Subpackage added to project; PEP testing.
2894 * test/test_rst/test_SimpleTableParser.py: Added to project.
2898 - Updated html.py and publish.py front-end tools to use the new
2899 command-line processing facilities of ``docutils.frontend``
2900 (exposed in ``docutils.core.Publisher``), reducing each to just a
2902 - Added ``locale.setlocale()`` calls to front-end tools.
2904 * tools/buildhtml.py: Added to project; batch-generates .html from all
2905 the .txt files in directories and subdirectories.
2907 * tools/default.css:
2909 - Added support for ``header`` and ``footer`` elements.
2910 - Added styles for "Dedication" topics (biblio fields).
2912 * tools/docutils.conf: A configuration file; added to project.
2914 * tools/docutils-xml.py: Added to project.
2916 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2918 * tools/pep-html-template: Added to project.
2920 * tools/pep2html.py: Added to project from Python (nondist/peps).
2921 Added support for Docutils (reStructuredText PEPs).
2923 * tools/quicktest.py:
2925 - Added the ``--attributes`` option, hacked a bit.
2926 - Added a second command-line argument (output file); cleaned up.
2928 * tools/stylesheets/: Subdirectory added to project.
2930 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2933 Release 0.1 (2002-04-20)
2934 ========================
2936 This is the first release of Docutils, merged from the now inactive
2937 reStructuredText__ and `Docstring Processing System`__ projects. For
2938 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2939 `DPS HISTORY`__ files.
2941 __ http://structuredtext.sourceforge.net/
2942 __ http://docstring.sourceforge.net/
2943 __ http://structuredtext.sourceforge.net/HISTORY.html
2944 __ http://docstring.sourceforge.net/HISTORY.html
2946 General changes: renamed 'dps' package to 'docutils'; renamed
2947 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2948 the test suites (reStructuredText's test/test_states renamed to
2949 test/test_rst); and all modifications required to make it all work.
2951 * docutils/parsers/rst/states.py:
2953 - Improved diagnostic system messages for missing blank lines.
2954 - Fixed substitution_reference bug.
2960 indent-tabs-mode: nil
2961 sentence-end-double-space: t