1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: goodger@python.org
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
22 - Fix [ 2881769 ] setup configuration.
23 - Fix [ 2788716 ] reporting problems in included files.
27 - FileInput opens files as text files with universal newline support
28 (mode "rU", configurable with the new optional argument "mode").
32 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
36 - Fix [ 2923723 ] let decode_path() tolerate path == None
38 * docutils/writers/html4css1/__init__.py
40 - Support SVG and SWF images (thanks to Stefan Rank).
41 - Generate valid XHTML for centered images with targets.
42 Use CSS classes instead of "align" tags for image alignment.
44 * docutils/writers/latex2e/__init__.py
46 - Use `transforms.writer_aux.Admonitions` to "normalize" special
48 - Use the ``\url`` command for URLs (breaks long URLs instead of
49 writing into the margin).
50 - Preserve runs of spaces in `inline literals`__.
51 - Deprecate ``figure_footnotes`` setting.
52 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
53 - New ``latex_preamble`` setting.
54 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
55 - Fix hyperlink targets (labels) for images, figures, and tables.
56 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
57 - Apply [ 2961991 ] Call hyperref with unicode option.
58 - Drop the special `output_encoding`_ default ("latin-1").
59 The Docutils wide default (usually "UTF-8") is used instead.
60 - Render inline markup in document title and subtitle
62 __ docs/ref/restructuredtext.html#inline-literals
63 __ docs/user/config.html#docutils-footnotes
64 __ docs/user/config.html#output_encoding
66 * docutils/writers/manpage.py
68 - Fix: supported attribute (thanks to peter2108).
69 - Remove trailing blanks in code (keep in sync with mercurial version).
70 - Titles level 1, that is ``.SH``, always uppercase.
71 - Apply patch from mg: literal text should be bold in man-pages.
75 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
80 - Python 3 support: copy test/ and tools/ to the build-dir
81 and convert Python sources with 2to3.
84 Release 0.6 (2009-10-11)
85 ========================
89 - Docutils is now compatible with Python versions from 2.3 up to 2.6
90 and convertible to 3.1 code.
92 + Node.__nonzero__ returns True instead of 1.
93 + use os.walk instead os.path.walk.
94 + minimize "types" module where possible.
95 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
96 + Text nodes now subclass unicode rather than UserString
97 (which is gone in python 3.0).
98 + 3.0 compatibility module docutils._compat
100 + Drop 2.2 compatibility workarounds.
101 + Drop extras/optparse.py and extras/textwrap.py
102 (stdlib modules since 2.3).
104 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
105 - Unix man page export: manpage writer moved from sandbox to Doctutils
108 - Apply [ 1719345 ] Galician translation
109 - Apply [ 1905741 ] Polish translation
110 - Apply [ 1878977 ] make_id(): deaccent characters.
111 - Apply [ 2029251 ] return nonzero when tests fail.
112 - Fix [ 1692788 ] allow UTF-8 in style sheets.
113 - Fix [ 2781629 ] support non-ASCII chars in file names.
114 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
115 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
116 - Fix [ 2821266 ] --strict option works now like --halt=info.
117 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
118 - Fix [ 1627229 ] hyperlink references in substitutions.
120 - The "newlatex" writer is orphaned.
124 - Documented Unicode characters allowed as inline markup openers,
125 closers, and delimiters.
126 - Allow units for all length specifications.
127 - Allow percent sign in "scale" argument of "figure" and "image" directives.
128 - Bugfix: The "figalign" argument of a figure now works as intended
129 (aligning the figure, not its contents).
130 - Align images with class "align-[right|center|left]"
131 (allows setting the alignment of an image in a figure).
135 - Added ``Element.__contains__`` method, for the in-operator.
137 * docutils/parsers/rst/states.py:
139 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
140 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
141 " " (non-breaking space), and "¡ ¿" openers.
143 * docutils/parsers/directives/misc.py:
145 - Added ``start-line`` and ``end-line`` options to "include"
146 directive to select a range of lines.
147 - Hard tabs in literal inclusions are replaced by spaces. This is
148 configurable via the new ``tab-width`` option of the "include" directive
149 (a negative tab-width prevents tab expansion).
153 - Add ``get_stylesheet_list`` function.
154 - Apply [ 2834836 ] print info at halt
156 * docutils/transforms/universal.py:
158 - Raise default priority of StripClasses to exclude stripped classes from
161 * docutils/writers/html4css1/__init__.py:
163 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
164 separated list of stylesheets.
165 - Address [ 1938891 ] Inline literal text creates "pre" span only when
166 needed to prevent inter-word line wraps.
167 - Use `translate` method instead of repeated `replace` calls.
168 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
169 classes to allow CSS styling that does not interfere with other
170 table-using constructs (field lists, citations, ...).
172 * docutils/writers/newlatex2e/__init__.py:
174 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
176 * docutils/writers/latex2e/__init__.py (see also
177 `<docs/user/docutils-05-compat.sty.html>`__) :
179 - Add ``--embed-stylesheet`` option.
180 - Apply [ 1474017 ] image vertical alignment is reversed.
181 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
182 - Change: has_key for dictionaries (not Nodes) to in-operator.
183 - Merge adjacent citations into one latex cite command.
184 - Failsave implementation of custom roles. LaTeX compilation now ignores
185 unknown classes instead of aborting with an error.
186 - Support custom roles based on standard roles.
187 - LaTeX packages can be used as ``--stylesheet`` arguments without
188 restriction. (A style sheet is now referenced with the ``\usepackage``
189 command, if it ends with ``.sty`` or has no extension.)
190 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
191 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
192 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
193 2005-02-04 as a configurable length unit).
194 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
195 if font-encoding is set to ''. LaTeX defaults to OT1 then.
196 - Set sub- and superscript role argument in text mode not as math.
197 Use a custom role based on sub-/superscript if you want italic shape.
198 - Shorter preamble and less dependencies: Load packages and define macros
199 only if required in the document.
200 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
201 - New custom environments and commands with optional "classes" argument.
202 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
203 - Better conformance to Docutils specifications with ``--use-latex-toc``.
204 Support for LaTeX generated ToC also with unnumbered sections.
205 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
206 section numbering by LaTeX.
207 - Use default font in admonitions and sidebar.
208 - Align of image in a figure defaults to 'center'.
209 - Bugfix: Newlines around targets and references prevent run-together
211 - Fix internal hyperlinks.
212 - Use class defaults for page margins ('typearea' now optional).
213 - Float placement made configurable, default changed to "here definitely".
214 - Typeset generic topic as "quote block with title".
215 - Use template (file and configuration option).
216 - In the default template, load cmap.sty (fix text extraction in PDF) and
217 fixltx2e.sty (LaTeX patches, \textsubscript).
218 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
219 - Use `translate` instead of repeated `replace` calls for text encoding.
220 - Hyperlinked footnotes and support for symbol footnotes and
221 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
222 - Complete pairs of binary options
223 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
224 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
226 - font-encoding: "T1" (formerly implicitely set by 'ae').
227 - use-latex-toc: true (ToC with page numbers).
228 - use-latex-footnotes: true (no mixup with figures).
230 * docutils/writers/manpage.py
232 - Do not print version at document end, this is done by the viewer.
233 - Do not print date at document end, this is done by the viewer.
234 - Fix storage of docinfo fields for none standard fields.
236 * docutils/tools/rst2man.py
238 Release 0.5 (2008-06-25)
239 ========================
241 * docutils/languages/he.py: Added to project: Hebrew mappings by
244 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
245 mappings by Meir Kriheli.
247 * docutils/frontend.py:
249 - Configuration files are now assumed and required to be
251 - Paths of applied configuration files are now recorded in the
252 runtime setting ``_config_files`` (accessible via
253 ``--dump-settings``).
254 - Added ``--strip-elements-with-class`` and ``--strip-class``
255 options (``strip_elements_with_classes`` and ``strip_classes``
260 - Added code to determine the input encoding from data: encoding
261 declarations or the presence of byte order marks (UTF-8 & UTF-16).
262 - Added support for IronPython 1.0.
266 - Added ``document.__getstate__`` method, for pickling.
268 * docutils/parsers/rst/states.py:
270 - Allow ``+`` and ``:`` in reference names.
271 - Unquoted targets beginning with an underscore (``.. __target:
272 URI``) are no longer accepted.
273 - Added support for multiple attributions in a physical block quote
274 (indented text block), dividing it into multiple logical block
276 - Added support for unicode bullets in bullet lists: "•", "‣", and
278 - Added support for new object-oriented directive interface,
279 retaining compatibility to the old functional interface.
280 - Added support for throwing ``DirectiveError``'s from within
283 * docutils/parsers/rst/__init__.py:
285 - Added ``Directive`` base class.
286 - Added ``DirectiveError`` base class.
287 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
290 * docutils/parsers/directives/:
292 - Refactored all reStructuredText directives to use the new
293 object-oriented directive interface. Errors are now (mostly)
294 thrown using the new ``DirectiveError`` class.
296 * docutils/parsers/directives/misc.py:
298 - Added ``start-after`` and ``end-before`` options to ``include``
299 directive; thanks to Stefan Rank.
301 * docutils/transforms/universal.py:
303 - Added ``StripClassesAndElements`` transform to remove from the
304 document tree all elements with classes in
305 ``settings.strip_elements_with_classes`` and all "classes"
306 attribute values in ``self.document.settings.strip_classes``.
308 * docutils/transforms/writer_aux.py:
310 - Added ``Admonitions`` transform to transform specific admonitions
311 (like ``note``, ``warning``, etc.) into generic admonitions with a
314 * docutils/writers/html4css1/__init__.py:
316 - Moved template functionality from the PEP/HTML writer here.
317 - Expanded the fragments available in the ``parts`` attribute.
318 - Moved ``id`` attributes from titles to surrounding ``div``
320 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
321 universally supported now).
322 - ``template.txt`` is now opened in text mode instead of binary mode
323 (to ensure Windows compatibility).
324 - ``a`` elements now have an "internal" or "external" class,
325 depending on reference type.
327 * docutils/writers/html4css1/template.txt: Added to project.
329 * docutils/writers/pep_html/:
331 - Moved template functionality to the HTML writer.
333 * docutils/writers/s5_html/__init__.py:
335 - Added ``view_mode`` & ``hidden_controls`` settings
336 (``--view-mode`` & ``--hidden-controls/--visible-controls``
339 * docutils/writers/latex2e/__init__.py:
341 - Add ``--literal-block-env``
342 - Fix: escaping ``%`` in href urls.
343 - Move usepackage hyperref after stylesheet inclusion.
344 - Fix: scrartcl does not have chapter but scrreprt.
345 - Add newline after ``\end{verbatim}``.
346 - Merge smaller differences from latex2e_adaptive_preamble.
347 - Add ``use-part-section``.
348 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
349 - Using leavemode option_list no longer needs to check if parent
350 is a definition list.
351 - Append ``\leavemode`` to definition list terms.
352 - No longer write visit\_/depart_definition_list_item comments to
354 - Table column width with 3 decimal places.
355 - Add table stubs support (boldfont).
356 - Add assemble_parts to writer.
357 - Add simply support for nested tables.
358 - Fix verbatim in tables if use-verbatim-when-possible.
359 - Use section commands down to subparagraph.
360 - Put ensuremath around some latin1 chars.
361 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
362 - New option ``--use-bibtex=style,db1,db2``.
363 - New option ``--reference-label`` to allow usage of LaTeX ref for
364 labels in section references.
365 - Add a label after every section to support sectionnumbers as reference
367 - Fix: bug# 1605376 rst2latex: bad options group list
368 - Remove inactive code for use_optionlist_for_option_list.
369 - Remove latex comments from option_list output.
370 - Fix: bug# 1612270 double qoutes in italian literal.
371 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
372 - Add option --use-latex-abstract.
373 - Image width unit ``px`` is translated to ``pt``.
374 - Add image height support.
375 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
377 - Fix: Do not escape underscores in citation reference labels if
378 use-latex-citations is set.
379 - Use centering instead of center for figure contents, to avoid vertical
381 - Recognize table class: borderless, nolines, booktabs, standard.
382 - Fix: Renaming contents section does not work with latex writer; SF
384 - Applied patch for custom roles with classes from Edward Loper.
385 - Fixed bug that caused crashes with more than 256 lists.
387 * docutils/writers/pep_html/__init__.py:
389 - Changed to support new python.org website structure and
392 * docs/howto/security.txt: "Deploying Docutils Securely", added to
395 * tools/buildhtml.py:
397 -- Added ``ignore`` setting to exclude a list of shell patterns
398 (default: ``.svn:CVS``).
400 * tools/editors/emacs/rst.el:
402 - Changed license to "GPL".
403 - Added ``rst-straighten-decorations`` function.
404 - The ``compile`` module is now always loaded.
405 - Added ``rst-toggle-line-block`` function.
406 - Headings consisting only of non-ASCII characters are now
407 recognized by ``rst-toc`` and ``rst-adjust``.
408 - Added font-lock support for multi-line comments where the first
409 comment line is empty.
410 - Added ``(require 'font-lock)``.
414 - Provide descriptive error message if distutils is missing.
417 Release 0.4 (2006-01-09)
418 ========================
422 - Updated the project policies for trunk/branch development &
425 * docutils/__init__.py:
427 - Added ``__version_details__`` attribute to describe code source
428 (repository/snapshot/release).
429 - Replaced ``default_transforms`` attribute of TransformSpec with
430 ``get_transforms()`` method.
434 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
435 functions, for document tree extraction and reprocessing.
439 - Added ``DocTreeInput`` class, for reprocessing existing documents.
440 - Added support for non-Unicode (e.g. binary) writer output.
444 - Re-introduced ``Targetable.indirect_reference_name``, for
445 MoinMoin/reST compatibility (removed in r3124/r3129).
446 - Added ``serial_escape`` function; escapes string values that are
447 elements of a list, for serialization. Modified Docutils-XML
448 writing (``Element._dom_node``) and pseudo-XML writing
449 (``Element.starttag``) to use ``serial_escape``.
450 - Added ``Node.deepcopy()`` method.
451 - Removed the internal lists ``document.substitution_refs``,
452 ``document.anonymous_refs``, and ``document.anonymous_targets``.
453 - Added a "container" element.
454 - Fixed bug where values of list-valued attributes of elements
455 originating from custom interpreted text roles (i.e., with custom
456 classes) were being shared between element instances. Reported by
459 * docutils/statemachine.py:
461 - Added trailing whitespace stripping to ``string2lines()``.
462 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
463 Asian double-width character support.
467 - Added ``east_asian_column_width()`` for double-width character
470 * docutils/languages/ja.py: Added to project: Japanese mappings by
473 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
474 mappings by Panjunyong.
476 * docutils/parsers/null.py: Added to project; a do-nothing parser.
478 * docutils/parsers/rst/__init__.py:
480 - Added validator to tab_width setting, with test. Closes SF bug
481 #1212515, report from Wu Wei.
483 * docutils/parsers/rst/states.py:
485 - Fixed bug with escaped colons indicating a literal block.
486 - Fixed bug with enumerated lists (SF#1254145).
487 - Backslash-escaped colons inside of field names are now allowed.
488 - Targets (implicit and explicit), anonymous hyperlink references
489 and auto-numbered footnote references inside of substitution
490 definitions are now disallowed.
491 - Fixed bug: list items with blank first lines.
492 - Fixed bug: block quote attributions with indented second lines.
493 - Added East Asian double-width character support (Python 2.4 only).
495 * docutils/parsers/rst/tableparser.py:
497 - Added East Asian double-width character support (Python 2.4 only).
499 * docutils/parsers/rst/directives/body.py:
501 - Added the "container" directive.
503 * docutils/parsers/rst/directives/misc.py:
505 - Added the "default-role", "title", and "date" directives.
506 - Added standard data file syntax to the "include" directive.
507 - Added support for "class" directive content.
509 * docutils/parsers/rst/directives/images.py:
511 - Added ``indirect_reference_name`` support for images with a target
513 - Added support for image width and height units.
514 - Fixed bug with image "target" options.
516 * docutils/parsers/rst/directives/references.py:
518 - Added "class" attribute to "target-notes" directive, for
519 footnote_reference classes.
521 * docutils/parsers/rst/include/: Directory added to project; contains
522 standard data files for the "include" directive. Initial contents:
523 character entity substitution definition sets, and a set of
524 definitions for S5/HTML presentations.
526 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
527 mappings by David Goodger.
529 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
530 Simplified Chinese mappings by Panjunyong.
532 * docutils/readers/__init__.py:
534 - Added universal.Decorations and universal.ExposeInternals
535 transforms as default transforms for all readers.
536 - Added ``ReReader`` base class for readers that reread an existing
539 * docutils/readers/doctree.py: Added to project; a reader for existing
542 * docutils/transforms/frontmatter.py:
544 - Fixed the DocInfo transform to handle SVN-style expansion of the
546 - In ``DocInfo.extract_authors``, treat the contents of "authors"
549 * docutils/transforms/misc.py:
551 - Added misc.Transitions transform, extracted from
552 universal.FinalChecks.
554 * docutils/transforms/references.py:
556 - Added references.DanglingReferences transform, extracted from
557 universal.FinalChecks.
558 - Fixed bug with doubly-indirect substitutions.
559 - Added footnote_reference classes attribute to "TargetNotes".
560 - Fixed bug with circular substitution definitions that put Docutils
561 into an infinite loop.
563 * docutils/transforms/universal.py:
565 - Added universal.ExposeInternals transform, extracted from
566 universal.FinalChecks.
567 - Removed universal.FinalChecks transform (logic has been moved to
568 several new transforms).
569 - Fixed bug with the "expose_internals" setting and Text nodes
570 (exposed by the "rawsource" internal attribute).
571 - Added the universal.StripComments transform, implementation of the
572 "strip_comments" setting.
574 * docutils/transforms/writer_aux.py: Added to project; auxiliary
575 transforms for writers.
577 - Added ``Compound`` transform, which flattens compound paragraphs.
579 * docutils/writers/: Several writer modules (html4css1.py) were
580 converted into packages. Support modules and data files have been
581 moved into the packages. The stylesheets for the HTML writers are
582 now installed along with the code, the code knows where to find
583 them, and the default is to use them (actually, to embed them).
584 Some adjustments to configuration files may be necessary. The
585 easiest way to obtain the new default behavior is to remove all
586 settings whose name includes "stylesheet".
588 * docutils/writers/__init__.py:
590 - Added universal.Messages and universal.FilterMessages transforms
591 as default transforms for all writers.
592 - Added ``UnfilteredWriter`` base class for writers that pass the
593 document tree on unchanged.
595 * docutils/writers/docutils_xml.py:
597 - Made ``xmlcharrefreplace`` the default output encoding error
600 * docutils/writers/html4css1/:
602 - Added support for image width and height units.
603 - Made ``xmlcharrefreplace`` the default output encoding error
605 - Made ``--embed-stylesheet`` the default rather than
606 ``--link-stylesheet``.
607 - Moved "id" attribute from container (section etc.) to title's <a>
608 tag, to be on the same tag as "name".
609 (!!! To be reverted in Docutils 0.5.)
610 - Added vertical space between fields of field lists.
611 - Added ``--compact-field-lists`` option to remove vertical space in
613 - Made cloaking of email addresses with ``--cloak-email-addresses``
615 - Fixed support for centered images.
616 - Added support for class="compact" & class="open" lists.
618 * docutils/writers/latex2e/:
620 - Underscores in citekeys are no longer escaped.
622 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
623 mapping of Unicode characters to LaTeX equivalents.
625 * docutils/writers/s5_html/: Package added to project; writer for
628 * docs/dev/distributing.txt: Added to project; guide for distributors
629 (package maintainers).
631 * docs/dev/hacking.txt: Added to project; guide for developers.
633 * docs/ref/doctree.txt:
635 - Updated for plural attributes "classes", "ids", "names",
637 - Added the "container" element.
639 * docs/ref/docutils.dtd:
641 - Updated for plural attributes "classes", "ids", "names",
644 * docs/user/emacs.txt: Added to project; a document about Emacs
645 support for reStructuredText and Docutils.
647 * docs/user/links.txt: Added to project; lists of Docutils-related
650 * docs/user/mailing-lists.txt: Added to project; information about
651 Docutils-related mailing lists and how to access them.
653 * docs/user/slide-shows.txt: Added to project; example of and docs for
654 the S5/HTML writer (``rst2s5.py`` front end).
656 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
657 Files", added to project.
659 * test/coverage.sh: Added to project; test coverage script.
661 * test/DocutilsTestSupport.py:
663 - Added support for specifying runtime settings at the suite level.
665 * test/test_functional.py:
667 - Added the ``clear_output_directory`` function.
668 - Added support for ``_test_more`` functions in functional test
671 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
673 * tools/rstpep2html.py: Renamed from pep.py.
675 * tools/dev/create_unimap.py: Added to project; script to create the
676 docutils/writers/unimap_latex.py mapping file.
678 * tools/dev/profile_docutils.py: Added to project; profiler script.
680 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
682 * tools/editors/emacs/restructuredtext.el,
683 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
684 Removed from project; the functionality is now contained in rst.el.
686 * tools/editors/emacs/rst.el: Added to project. Added many features
687 and fixed many bugs. See docs/user/emacs.txt for details.
689 * tools/stylesheets: Removed from project. Stylesheets have been
690 renamed and moved into writer packages.
693 Release 0.3.9 (2005-05-26)
694 ==========================
698 - Eliminated and replaced all uses of the old string attributes
699 ``id``, ``name``, ``dupname`` and ``class`` with references to the
700 new list attributes ``ids``, ``names``, ``dupnames`` and
701 ``classes`` throughout the whole source tree.
705 - Enabled ``--dump-*`` options when ``--traceback`` specified,
706 allowing for easier debugging.
707 - In ``Publisher.publish()``, expanded the generic top-level
710 * docutils/examples.py:
712 - Added ``internals`` function for exploration.
716 - Fixed ``Input.decode`` method to apply heuristics only if no
717 encoding is explicitly given, and to provide better reporting of
719 - The ``Input.decode`` method now removes byte order marks (BOMs)
724 - ``image`` element class changed to subclass of Element, not
725 TextElement (it's an empty element, and cannot contain text).
726 - Added ``attr_defaults`` dictionary for default attribute values.
727 - Added empty list as default value for the following attributes:
728 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
729 - Added ``document.decoration`` attribute,
730 ``document.get_decoration`` method, and ``decoration.get_header``
731 & ``.get_footer`` methods.
732 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
737 - Removed ``docutils.utils.Reporter.categories``,
738 ``docutils.utils.ConditionSet``, and all references to them, to
739 simplify error reporting.
741 * docutils/languages/nl.py: Added to project; Dutch mappings by
744 * docutils/parsers/rst/__init__.py:
746 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
748 * docutils/parsers/rst/states.py:
750 - Added check for escaped at-mark to prevent email address recognition.
751 - Fixed option lists to allow spaces inside ``<angle-bracketed option
753 - Allowed whitespace in paths and URLs.
754 - Added auto-enumerated list items.
755 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
757 - Added support for table stub columns.
759 * docutils/parsers/rst/directives/__init__.py:
761 - Allowed whitespace in paths (``path`` function).
762 - Added ``uri`` directive option conversion function.
764 * docutils/parsers/rst/directives/body.py:
766 - Fixed illegal context bug with "topic" directive (allowed within
767 sidebars; not within body elements).
769 * docutils/parsers/rst/directives/images.py:
771 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
772 - Added support for the ``file_insertion_enabled`` setting in the
773 "figure" directive (disables "figwidth" option).
774 - "image" directive: added checks for valid values of "align" option,
775 depending on context. "figure" directive: added specialized
776 "align" option and attribute on "figure" element.
777 - Made ":figwidth: image" option of "figure" directive work again.
778 - Fixed bug with reference names containing uppercase letters
779 (e.g. ``Name_``) in "target" option of "image" directive.
781 * docutils/parsers/rst/directives/misc.py:
783 - Fixed "include" and "raw" directives to catch text decoding
785 - Allowed whitespace in "include" & "raw" directive paths.
786 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
787 settings in "include" & "raw" directives.
789 * docutils/parsers/rst/directives/parts.py:
791 - Added "header" & "footer" directives.
792 - Fixed illegal context bug with "contents" directive (topics
793 allowed within sidebars; not within body elements).
795 * docutils/parsers/rst/directives/tables.py:
797 - Added "list-table" directive.
798 - Caught empty CSV table bug.
799 - Added support for the ``file_insertion_enabled`` setting in the
800 "csv-table" directive.
801 - Added ``stub-columns`` option to "csv-table" and "list-table"
804 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
805 mappings by Martijn Pieters.
807 * docutils/readers/standalone.py:
809 - Added ``--section-subtitles`` and ``--no-section-subtitles``
810 options to activate or deactivate the SectSubTitle transform.
812 * docutils/transforms/frontmatter.py:
814 - Added SectSubTitle transform to promote titles of lone
815 subsections to subtitles.
817 * docutils/transforms/references.py:
819 - Fixed mislocated internal targets bug, by propagating internal
820 targets to the next node, making use of the newly added support
821 for multiple names and IDs.
822 - Fixed duplicate footnote label bug.
823 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
826 * docutils/writers/html4css1.py:
828 - Fixed unencoded stylesheet reference bug (characters like "&" in
829 stylesheet references).
830 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
832 - Added support for multiple IDs per node by creating empty ``span``
834 - Added the ``field_name_limit`` & ``option_limit`` settings &
836 - Added support for table stub columns.
837 - Added support for the ``align`` attribute on ``figure`` elements.
838 - Added the ``cloak_email_addresses`` setting & support.
839 - Added ``html_prolog``, ``html_head``, ``html_body``,
840 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
841 ``docutils.core.publish_parts``.
842 - Added support for section subtitles.
844 * docutils/writers/latex2e.py:
846 - Fixed tables starting with more than one multirow cell.
847 - Improved --use-latex-docinfo so that organization/contact/address
848 fields are lumped with the last author field and appear on the
850 - Made sure the titlepage is always shown with --use-latex-docinfo,
851 even if the document has no title.
852 - Made sure that latex doesn't fill in today's date if no date field
854 - Added support for section subtitles.
856 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
859 * docutils/writers/null.py: Added to project; a do-nothing Writer.
861 * docs/api/publisher.txt:
863 - Added "``publish_parts`` Details" section.
865 * docutils/dev/repository.txt: Added to project; information about the
866 Docutils Subversion repository.
868 * docs/ref/docutils.dtd:
870 - Added a ``stub`` attribute to the ``colspec`` element via the
871 ``tbl.colspec.att`` parameter entity.
872 - Allowed topic elements within sidebars
873 - Added an ``align`` attribute to the ``figure`` element.
875 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
879 Release 0.3.7 (2004-12-24)
880 ==========================
882 * docutils/frontend.py:
884 - Added options: --input-encoding-error-handler,
885 --record-dependencies, --leave-footnote-reference-space,
887 - Added command-line and config file support for "overrides" setting
892 - Added support for input encoding error handler.
896 - Added dispatch_visit and dispatch_departure methods to
897 NodeVisitor; useful as a hook for Visitors.
898 - Changed structure of ``line_block``; added ``line``.
899 - Added ``compound`` node class.
900 - Added a mechanism for Visitors to transitionally ignore new node
905 - Moved ``escape2null`` and ``unescape`` functions from
906 docutils/parsers/rst/states.py.
908 * docutils/parsers/rst/roles.py:
911 - Changed role function API: the "text" parameter now takes
912 null-escaped interpreted text content.
914 * docutils/parsers/rst/states.py:
916 - Fixed bug where a "role" directive in a nested parse would crash
917 the parser; the state machine's "language" attribute was not being
919 - Added support for line block syntax.
920 - Fixed directive parsing bug: argument-less directives didn't
921 notice that arguments were present.
922 - Removed error checking for transitions.
923 - Added support for multiple classifiers in definition list items.
924 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
925 - Changed role function API: the "text" parameter now takes
926 null-escaped interpreted text content.
927 - Empty sections and documents are allowed now.
929 * docutils/parsers/rst/directives/__init__.py:
931 - Added ``encoding`` directive option conversion function.
932 - Allow multiple class names in class_option conversion function.
934 * docutils/parsers/rst/directives/body.py:
936 - Converted the line-block directive to use the new structure.
937 - Extracted the old line-block functionality to the ``block``
938 function (still used).
939 - Added ``compound`` directive (thanks to Lea Wiemann).
941 * docutils/parsers/rst/directives/misc.py:
943 - Added "encoding" option to "include" and "raw" directives.
944 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
945 - Allow multiple class names in the "class" directive.
947 * docutils/parsers/rst/directives/parts.py:
949 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
950 options. Thanks to Lele Gaifax.
952 * docutils/parsers/rst/directives/tables.py:
954 - Added "encoding" directive to "csv-table" directive.
955 - Added workaround for lack of Unicode support in csv.py, for
958 * docutils/transforms/misc.py:
960 - Fixed bug when multiple "class" directives are applied to a single
962 - Enabled multiple format names for "raw" directive.
964 * docutils/transforms/references.py:
966 - Added support for trimming whitespace from beside substitution
969 * docutils/transforms/universal.py:
971 - FinalChecks now checks for illegal transitions and moves
972 transitions between sections.
974 * docutils/writers/html4css1.py:
976 - HTMLTranslator.encode now converts U+00A0 to " ".
977 - "stylesheet" and "stylesheet_path" settings are now mutually
979 - Added support for the new line_block/line structure.
980 - --footnote-references now overrides
981 --trim-footnote-reference-space, if applicable.
982 - Added support for ``compound`` elements.
983 - Enabled multiple format names for "raw" directive.
984 - ``<p>`` tags of a paragraph which is the only visible child of the
985 document node are no longer stripped.
986 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
987 new method ``should_be_compact_paragraph()``.
988 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
990 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
991 the output if they have their ``class`` attribute set.
992 - The whole document is now surrounded by a ``<div
993 class="document">`` element.
994 - Body-level images are now wrapped by their own ``<div>`` elements,
995 with image classes copied to the wrapper, and for images which
996 have the ``:align:`` option set, the surrounding ``<div>`` now
997 receives a class attribute (like ``class="align-left"``).
999 * docutils/writers/latex2e.py:
1001 - no newline after depart_term.
1002 - Added translations for some Unicode quotes.
1003 - Added option "font-encoding", made package AE the default.
1004 - "stylesheet" and "stylesheet_path" settings are now mutually
1006 - --footnote-references now overrides
1007 --trim-footnote-reference-space, if applicable.
1008 - The footnote label style now matches the footnote reference style
1009 ("brackets" or "superscript").
1010 - Added support for ``compound`` elements.
1011 - Enabled multiple format names for "raw" directive.
1013 * docs/ref/docutils.dtd:
1015 - Changed structure of the ``line_block`` element; added ``line``.
1016 - Added ``compound`` element.
1017 - Added "ltrim" and "rtrim" attributes to
1018 ``substitution_definition`` element.
1019 - Enabled multiple format names for ``raw`` element.
1020 - Enabled multiple classifiers in ``definition_list_item`` elements.
1022 * docs/ref/rst/directives.txt
1024 - Marked "line-block" as deprecated.
1025 - "Class" directive now allows multiple class names.
1026 - Added "Rationale for Class Attribute Value Conversion".
1027 - Added warning about "raw" overuse/abuse.
1029 * docs/ref/rst/restructuredtext.txt:
1031 - Added syntax for line blocks.
1032 - Definition list items may have multiple classifiers.
1034 * docs/ref/rst/roles.txt:
1038 * tools/stylesheets/default.css:
1040 - Added support for the new line_block structure.
1041 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1044 Release 0.3.5 (2004-07-29)
1045 ==========================
1049 * _`Documentation cleanup/reorganization`.
1051 - Created new subdirectories of docs/:
1053 * ``docs/user/``: introductory/tutorial material for end-users
1054 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1055 * ``docs/api/``: API reference material for client-developers
1056 * ``docs/ref/``: reference material for all groups
1057 * ``docs/howto/``: for component-developers and core-developers
1058 * ``docs/peps/``: Python Enhancement Proposals
1060 - Moved ``docs/*`` to ``docs/user/``.
1061 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1062 ``spec/`` to ``docs/dev``.
1063 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1064 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1065 - Moved ``alternatives.txt``, and ``problems.txt`` from
1066 ``spec/rst/`` to ``docs/dev/rst/``.
1067 - Moved ``reStructuredText.txt``, ``directives.txt``,
1068 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1069 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1070 ``roles.txt``, ``reStructuredText.txt`` to
1071 ``restructuredtext.txt``.
1072 - Moved ``spec/howto/`` to ``docs/howto``.
1074 In order to keep the CVS history of moved files, we supplied
1075 SourceForge with a `script for modifying the Docutils CVS
1078 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1080 After running the cleanup script:
1082 - Added ``docs/index.txt``.
1083 - Added a ``.htaccess`` file to the ``web`` module, containing
1084 redirects for all old paths to new paths. They'll preserve
1085 fragments (the "#name" part of a URL), and won't clutter up the
1086 file system, and will correct the URL in the user's browser.
1087 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1088 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1089 the "To Do" list itself in ``docs/dev/todo.txt``.
1090 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1091 section of ``docs/dev/todo.txt``.
1092 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1093 - Added "How To Report Bugs" to ``BUGS.txt``.
1094 - Went through all the sources and docs (including under web/) and
1095 updated links. Mostly done by Lea Wiemann; thanks Lea!
1096 (Still need to update links in the sandboxes.)
1100 * BUGS.txt: Added to project.
1102 * THANKS.txt: Added to project.
1104 * docutils/__init__.py:
1106 - 0.3.4: Post-release.
1110 - Added special error handling & advice for UnicodeEncodeError.
1111 - Refactored Publisher.publish (simplified exception handling &
1112 extracted debug dumps).
1113 - Renamed "enable_exit" parameter of convenience functions to
1114 "enable_exit_status".
1115 - Enabled traceback (exception propagation) by default in
1116 programmatic convenience functions.
1117 - Now publish_file and publish_cmdline convenience functions return
1118 the encoded string results in addition to their regular I/O.
1119 - Extracted common code from publish_file, publish_string, and
1120 publish_parts, into new publish_programmatically. Extracted
1121 settings code to ``Publisher.process_programmatic_settings``.
1122 - In Publisher.publish, disabled ``settings_overrides`` when
1123 ``settings`` is supplied; redundant.
1125 * docutils/frontend.py:
1127 - Added help text for "--output-encoding-error-handler" and
1128 "--error-encoding-error-handler".
1129 - Renamed "--exit" to "--exit-status".
1130 - Simplified default-setting code.
1132 * docutils/parsers/rst/__init__.py:
1134 - Added "--pep-base-url" and "--rfc-base-url" options.
1136 * docutils/parsers/rst/states.py:
1138 - Made URI recognition more aggressive and intelligent.
1140 * docutils/parsers/rst/directives/__init__.py:
1142 - Added several directive option conversion functions.
1144 * docutils/parsers/rst/directives/body.py:
1146 - Moved "table" directive to tables.py.
1148 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1151 * docutils/writers/latex2e.py:
1153 - Added "--table-style=(standard|booktabs|nolines)"
1154 - figures get "here" option (LaTeX per default puts them at bottom),
1155 and figure content is centered.
1156 - Rowspan support for tables.
1157 - Fix: admonition titles before first section.
1158 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1159 - Replave ``_`` in literal by an underlined blank, because it has the correct
1161 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1162 - A few unicode replacements, if output_encoding != utf
1163 - Add "--graphicx-option".
1164 - Indent literal-blocks.
1165 - Fix: omit ``\maketitle`` when there is no document title.
1167 * docs/index.txt: "Docutils Project Documentation Overview", added to
1170 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1171 Tool", added to project.
1173 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1175 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1177 * docs/dev/policies.txt: Added to project (extracted from
1178 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1180 * docs/dev/release.txt: Added to project (extracted from
1181 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1183 * docs/dev/testing.txt: Added to project.
1185 * docs/dev/website.txt: Added to project (extracted from
1186 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1188 * docs/ref/rst/directives.txt:
1190 - Added directives: "table", "csv-table".
1192 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1193 added to project. 1 page for syntax, and a 1 page reference for
1194 directives and roles. Source text to be used as-is; not meant to be
1197 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1198 with a change of title.
1200 * test/functional/, contents, and test/test_functional.py: Added to
1203 * tools/buildhtml.py: Fixed bug with config file handling.
1205 * tools/html.py: Removed from project (duplicate of rst2html.py).
1207 * tools/pep2html.py: Removed from project (duplicate of Python's
1208 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1209 Docutils-related PEPs in docs/peps/).
1211 * tools/rst2pseudoxml.py: Renamed from publish.py.
1213 * tools/rst2xml.py: Renamed from docutils-xml.py.
1215 * tools/test.txt: Removed from project; moved to
1216 docs/user/rst/demo.txt.
1218 * setup.py: Now also installs ``rst2latex.py``.
1221 Release 0.3.3 (2004-05-09)
1222 ==========================
1224 * docutils/__init__.py:
1226 - 0.3.1: Reorganized config file format (multiple sections); see
1228 - Added unknown_reference_resolvers attribute to TransformSpec.
1229 - 0.3.2: Interpreted text reorganization.
1234 - Catch system messages to stop tracebacks from parsing errors.
1235 - Catch exceptions during processing report & exit without
1236 tracebacks, except when "--traceback" used.
1237 - Reordered components for OptionParser; application comes last.
1238 - Added "config_section" parameter to several methods and functions,
1239 allowing front ends to easily specify their config file sections.
1240 - Added publish_parts convenience function to allow access to individual
1241 parts of a document.
1243 * docutils/examples.py: Added to project; practical examples of
1244 Docutils client code, to be used as-is or as models for variations.
1246 * docutils/frontend.py:
1248 - Added "--traceback" & "--no-traceback" options ("traceback"
1250 - Implemented support for config file reorganization:
1251 ``standard_config_files`` moved from ``ConfigParser`` to
1252 ``OptionParser``; added
1253 ``OptionParser.get_config_file_settings()`` and
1254 ``.get_standard_config_settings()``; support for old "[options]"
1255 section (with deprecation warning) and mapping from old to new
1257 - Reimplemented setting validation.
1258 - Enabled flexible boolean values: yes/no, true/false, on/off.
1259 - Added ``Values``, a subclass of ``optparse.Values``, with support
1260 for list setting attributes.
1261 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1262 thanks to Beni Cherniavsky.
1263 - Added "--no-section-numbering" option.
1267 - Catch IOErrors when opening source & destination files, report &
1268 exit without tracebacks. Added ``handle_io_errors`` parameter to
1269 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1271 * docutils/nodes.py:
1273 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1274 method definitions (via ``exec``) to dynamic assignments (via
1275 ``setattr``); thanks to Roman Suzi.
1276 - Encapsulated visitor dynamic assignments in a function; thanks to
1278 - Added indirect_reference_name attribute to the Targetable
1279 class. This attribute holds the whitespace_normalized_name
1280 (contains mixed case) of a target.
1282 * docutils/statemachine.py:
1284 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1285 - Added ``StringList.get_2D_block``.
1287 * docutils/utils.py:
1289 - Added "level" attribute to SystemMessage exceptions.
1291 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1294 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1297 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1298 Marcelo Huerta San Martin.
1300 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1301 mappings by Lalo Martins.
1303 * docutils/languages/ru.py: Added to project; Russian mappings by
1306 * docutils/parsers/rst/roles.py: Added to project. Contains
1307 interpreted text role functions, a registry for interpreted text
1308 roles, and an API for adding to and retrieving from the registry.
1309 Contributed by Edward Loper.
1311 * docutils/parsers/rst/states.py:
1313 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1314 - Allowed true em-dash character and "---" as block quote
1316 - Added support for <angle-bracketed> complex option arguments
1318 - Fixed handling of backslashes in substitution definitions.
1319 - Fixed off-by-1 error with extra whitespace after substitution
1320 definition directive.
1321 - Added inline markup parsing to field lists' field names.
1322 - Added support for quoted (and unindented) literal blocks.
1323 Driven in part by a bribe from Frank Siebenlist (thanks!).
1324 - Parser now handles escapes in URIs correctly.
1325 - Made embedded-URIs' reference text omittable. Idea from Beni
1327 - Refactored explicit target processing code.
1328 - Added name attribute to references containing the reference name only
1329 through whitespace_normalize_name (no case changes).
1330 - parse_target no longer returns the refname after going through
1331 normalize_name. This is now handled in make_target.
1332 - Fixed bug relating to role-less interpreted text in non-English
1334 - Reorganized interpreted text processing; moved code into the new
1335 roles.py module. Contributed by Edward Loper.
1336 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1337 ``parse_directive_block``.
1339 * docutils/parsers/rst/tableparser.py:
1341 - Reworked for ``StringList``, to support "include" directives in
1344 * docutils/parsers/rst/directives/__init__.py:
1346 - Renamed ``unchanged()`` directive option conversion function to
1347 ``unchanged_required``, and added a new ``unchanged``.
1348 - Catch unicode value too high error; fixes bug 781766.
1349 - Beefed up directive error reporting.
1351 * docutils/parsers/rst/directives/body.py:
1353 - Added basic "table" directive.
1355 * docutils/parsers/rst/directives/images.py:
1357 - Added "target" option to "image" directive.
1358 - Added name attribute to references containing the reference name only
1359 through whitespace_normalize_name (no case changes).
1361 * docutils/parsers/rst/directives/misc.py:
1363 - Isolated the import of the ``urllib2`` module; was causing
1364 problems on SourceForge (``libssl.so.2`` unavailable?).
1365 - Added the "role" directive for declaring custom interpreted text
1368 * docutils/parsers/rst/directives/parts.py:
1370 - The "contents" directive does more work up-front, creating the
1371 "topic" and "title", and leaving the "pending" node for the
1372 transform. Allows earlier reference resolution; fixes subtle bug.
1374 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1375 mappings by Jannie Hofmeyr.
1377 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1378 mappings by Marek Blaha.
1380 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1381 mappings by Marcelo Huerta San Martin.
1383 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1384 Portuguese mappings by Lalo Martins.
1386 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1387 mappings by Roman Suzi.
1389 * docutils/transforms/parts.py:
1391 - The "contents" directive does more work up-front, creating the
1392 "topic" and "title", and leaving the "pending" node for the
1393 transform. Allows earlier reference resolution; fixes subtle bug.
1394 - Added support for disabling of section numbering.
1396 * docutils/transforms/references.py:
1398 - Verifying that external targets are truly targets and not indirect
1399 references. This is because we are now adding a "name" attribute to
1400 references in addition to targets. Note sure if this is correct!
1401 - Added code to hook into the unknown_reference_resolvers list for a
1402 transformer in resolve_indirect_target. This allows the
1403 unknown_reference_resolvers to keep around indirect targets which
1404 docutils doesn't know about.
1405 - Added specific error message for duplicate targets.
1407 * docutils/transforms/universal.py:
1409 - Added FilterMessages transform (removes system messages below the
1410 verbosity threshold).
1411 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1412 to FinalCheckVisitor for application-specific handling of
1413 unresolvable references.
1414 - Added specific error message for duplicate targets.
1416 * docutils/writers/__init__.py:
1418 - Added assemble_parts method to the Writer class to allow for
1419 access to a documents individual parts.
1420 - Documented & set default for ``Writer.output`` attribute.
1422 * docutils/writers/html4css1.py:
1424 - Fixed unicode handling of attribute values (bug 760673).
1425 - Prevent duplication of "class" attribute values (bug report from
1427 - Improved table grid/border handling (prompted by report from Bob
1429 - Added support for table titles.
1430 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1432 - Added functionality to keep track of individual parts of a document
1433 and store them in a dictionary as the "parts" attribute of the writer.
1434 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1435 - Added proper support for the "scale" attribute of the "image"
1436 element. Contributed by Brent Cook.
1437 - Added ``--initial-header-level`` option.
1438 - Fixed bug: the body_pre_docinfo segment depended on there being a
1439 docinfo; if no docinfo, the document title was incorporated into
1440 the body segment. Adversely affected the publish_parts interface.
1442 * docutils/writers/latex2e.py:
1444 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1445 about a missing file.
1446 - Added options and support: ``--compound-enumerators``,
1447 ``--section-prefix-for-enumerators``, and
1448 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1450 - Added option ``--use-verbatim-when-possible``, to avoid
1451 problematic characters (eg, '~' in italian) in literal blocks.
1452 - It's now possible to use four section levels in the `book` and
1453 `report` LaTeX classes. The default `article` class still has
1456 * docs/config.txt: "Docutils Configuration Files", added to project.
1457 Moved config file entry descriptions from tools.txt.
1461 - Moved config file entry descriptions to config.txt.
1463 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1466 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1467 Text Roles", added to project.
1469 * spec/rst/reStructuredText.txt:
1471 - Added description of support for <angle-bracketed> complex option
1472 arguments to option lists.
1473 - Added subsections for indented and quoted literal blocks.
1475 * test: Continually adding & updating tests.
1477 - Added test/test_settings.py & test/data/config_*.txt support
1479 - Added test/test_writers/test_htmlfragment.py.
1481 * test/DocutilsTestSupport.py:
1483 - Refactored LaTeX publisher test suite/case class names to make
1484 testing other writers easier.
1485 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1486 to test the processing of HTML fragments which use the new
1487 publish_parts convenience function.
1489 * tools/buildhtml.py:
1491 - Added support for the "--prune" option.
1492 - Removed dependency on pep2html.py; plaintext PEPs no longer
1495 * tools/docutils.conf:
1497 - Updated for configuration file reorganization.
1499 * tools/rst2html.py:
1501 - copied from tools/html.py
1505 - added a 'scripts' section to configuration
1506 - added 'tools/rst2html.py' to the scripts section
1509 Release 0.3 (2003-06-24)
1510 ========================
1514 * Renamed "attribute" to "option" for directives/extensions.
1516 * Renamed transform method "transform" to "apply".
1518 * Renamed "options" to "settings" for runtime settings (as set by
1519 command-line options). Sometimes "option" (singular) became
1520 "settings" (plural). Some variations below:
1522 - document.options -> document.settings (stored in other objects as
1524 - option_spec -> settings_spec (not directives though)
1525 - OptionSpec -> SettingsSpec
1526 - cmdline_options -> settings_spec
1527 - relative_path_options -> relative_path_settings
1528 - option_default_overrides -> settings_default_overrides
1529 - Publisher.set_options -> Publisher.get_settings
1533 * COPYING.txt: Added "Public Domain Dedication".
1535 * FAQ.txt: Frequently asked questions, added to project.
1539 - Updated with PyPI Trove classifiers.
1540 - Conditional installation of third-party modules.
1542 * docutils/__init__.py:
1544 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1545 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1546 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1547 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1548 option and its effect on the PEP template & writer.
1549 - Bumped version to 0.2.4 due to changes to the PEP template &
1551 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1552 - Added ``TransformSpec`` class for new transform system.
1553 - Bumped version to 0.2.6 for API changes (renaming).
1554 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1555 convenience functions.
1556 - Added ``Component.component_type`` attribute.
1557 - Bumped version to 0.2.8 because of the internal parser switch from
1558 plain lists to the docutils.statemachine.StringList objects.
1559 - Bumped version to 0.2.9 because of the frontend.py API changes.
1560 - Bumped version to 0.2.10 due to changes to the project layout
1561 (third-party modules removed from the "docutils" package), and
1562 signature changes in ``io.Input``/``io.Output``.
1563 - Changed version to 0.3.0 for release.
1567 - Made ``publish()`` a bit more convenient.
1568 - Generalized ``Publisher.set_io``.
1569 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1570 parameters; improved its docstring.
1571 - Added ``publish_file()`` and ``publish_string()``.
1572 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1574 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1575 "--dump-transforms" hidden options.
1576 - Added ``Publisher.apply_transforms()`` method.
1577 - Added ``Publisher.set_components()`` method; support for
1578 ``publish_*()`` conveninece functions.
1579 - Moved config file processing to docutils/frontend.py.
1580 - Added support for exit status ("exit_level" setting &
1581 ``enable_exit`` parameter for Publisher.publish() and convenience
1584 * docutils/frontend.py:
1586 - Check for & exit on identical source & destination paths.
1587 - Fixed bug with absolute paths & "--config".
1588 - Set non-command-line defaults in ``OptionParser.__init__()``:
1589 ``_source`` & ``_destination``.
1590 - Distributed ``relative_path_settings`` to components; updated
1591 ``OptionParser.populate_from_components()`` to combine it all.
1592 - Require list of keys in ``make_paths_absolute`` (was implicit in
1593 global ``relative_path_settings``).
1594 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1595 "--dump-settings", and "--dump-transforms" hidden options.
1596 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1597 code, replaced with correct code.
1598 - Added validation functionality for config files.
1599 - Added "--error-encoding" option/setting, "_disable_config"
1601 - Added encoding validation; updated "--input-encoding" and
1602 "--output-encoding"; added "--error-encoding-error-handler" and
1603 "--output-encoding-error-handler".
1604 - Moved config file processing from docutils/core.py.
1605 - Updated ``OptionParser.populate_from_components`` to handle new
1606 ``SettingsSpec.settings_defaults`` dict.
1607 - Added support for "-" => stdin/stdout.
1608 - Added "exit_level" setting ("--exit" option).
1612 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1613 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1614 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1615 - ``FileOutput.write()`` now returns the encoded output string.
1616 - Try to get path/stream name automatically in ``FileInput`` &
1618 - Added defaults for source & destination paths.
1619 - Allow for Unicode I/O with an explicit "unicode" encoding.
1620 - Added ``Output.encode()``.
1621 - Removed dependency on runtime settings; pass encoding directly.
1622 - Recognize Unicode strings in ``Input.decode()``.
1623 - Added support for output encoding error handlers.
1625 * docutils/nodes.py:
1627 - Added "Invisible" element category class.
1628 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1629 modification during a traversal.
1630 - Added element classes: ``line_block``, ``generated``, ``address``,
1631 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1632 ``superscript``, ``subscript``, ``inline``
1633 - Added support for lists of nodes to ``Element.insert()``.
1634 - Fixed parent linking in ``Element.replace()``.
1635 - Added new abstract superclass ``FixedTextElement``; adds
1636 "xml:space" attribute.
1637 - Added support for "line" attribute of ``system_message`` nodes.
1638 - Added support for the observer pattern from ``utils.Reporter``.
1639 Added ``parse_messages`` and ``transform_messages`` attributes to
1640 ``document``, removed ``messages``. Added ``note_parse_message``
1641 and ``note_transform_message`` methods.
1642 - Added support for improved diagnostics:
1644 - Added "document", "source", and "line" internal attributes to
1645 ``Node``, set by ``Node.setup_child()``.
1646 - Converted variations on ``node.parent = self`` to
1647 ``self.setup_child(node)``.
1648 - Added ``document.current_source`` & ``.current_line``
1649 attributes, and ``.note_source`` observer method.
1650 - Changed "system_message" output to GNU-Tools format.
1652 - Added a "rawsource" attribute to the ``Text`` class, for text
1653 before backslash-escape resolution.
1654 - Support for new transform system.
1655 - Reworked ``pending`` element.
1656 - Fixed XML DOM bug (SF #660611).
1657 - Removed the ``interpeted`` element class and added
1658 ``title_reference``, ``abbreviation``, ``acronym``.
1659 - Made substitutions case-sensitive-but-forgiving; moved some code
1661 - Fixed Unicode bug on element attributes (report: William Dode).
1663 * docutils/optik.py: Removed from project; replaced with
1664 extras/optparse.py and extras/textwrap.py. These will be installed
1665 only if they're not already present in the Python installation.
1667 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1668 only if it's not already present in the Python installation.
1670 * docutils/statemachine.py:
1672 - Factored out ``State.add_initial_transitions()`` so it can be
1674 - Converted whitespace-specific "blank" and "indent" transitions
1675 from special-case code to ordinary transitions: removed
1676 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1677 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1678 ``ws_initial_transitions`` attributes.
1679 - Removed ``State.match_transition()`` after merging it into
1681 - Added ``StateCorrection`` exception.
1682 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1683 (moved ``TransitionCorrection`` support there too.)
1684 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1685 ``EOFError`` instead of ``IndexError``.
1686 - Added ``State.no_match`` method.
1687 - Added support for the Observer pattern, triggered by input line
1689 - Added ``strip_top`` parameter to
1690 ``StateMachineWS.get_first_known_indented``.
1691 - Made ``context`` a parameter to ``StateMachine.run()``.
1692 - Added ``ViewList`` & ``StringList`` classes;
1693 ``extract_indented()`` becomes ``StringList.get_indented()``.
1694 - Added ``StateMachine.insert_input()``.
1695 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1696 thanks to) Fred Drake.
1698 * docutils/utils.py:
1700 - Added a ``source`` attribute to Reporter instances and
1701 ``system_message`` elements.
1702 - Added an observer pattern to ``utils.Reporter`` to keep track of
1704 - Fixed bugs in ``relative_path()``.
1705 - Added support for improved diagnostics.
1706 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1707 - Added support for encoding Reporter stderr output, and encoding
1709 - Reporter keeps track of the highest level system message yet
1712 * docutils/languages: Fixed bibliographic field language lookups.
1714 * docutils/languages/es.py: Added to project; Spanish mappings by
1715 Marcelo Huerta San Martin.
1717 * docutils/languages/fr.py: Added to project; French mappings by
1720 * docutils/languages/it.py: Added to project; Italian mappings by
1723 * docutils/languages/sk.py: Added to project; Slovak mappings by
1726 * docutils/parser/__init__.py:
1728 - Added ``Parser.finish_parse()`` method.
1730 * docutils/parser/rst/__init__.py:
1732 - Added options: "--pep-references", "--rfc-references",
1733 "--tab-width", "--trim-footnote-reference-space".
1735 * docutils/parsers/rst/states.py:
1737 - Changed "title under/overline too short" system messages from INFO
1738 to WARNING, and fixed its insertion location.
1739 - Fixed enumerated list item parsing to allow paragraphs & section
1740 titles to begin with enumerators.
1741 - Converted system messages to use the new "line" attribute.
1742 - Fixed a substitution reference edge case.
1743 - Added support for "--pep-references" and "--rfc-references"
1744 options; reworked ``Inliner`` code to make customization easier.
1745 - Removed field argument parsing.
1746 - Added support for short section title over/underlines.
1747 - Fixed "simple reference name" regexp to ignore text like
1748 "object.__method__"; not an anonymous reference.
1749 - Added support for improved diagnostics.
1750 - Reworked directive API, based on Dethe Elza's contribution. Added
1751 ``Body.parse_directive()``, ``.parse_directive_options()``,
1752 ``.parse_directive_arguments()`` methods.
1753 - Added ``ExtensionOptions`` class, to parse directive options
1754 without parsing field bodies. Factored
1755 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1756 ``ExtensionOptions``.
1757 - Improved definition list term/classifier parsing.
1758 - Added warnings for unknown directives.
1759 - Renamed ``Stuff`` to ``Struct``.
1760 - Now flagged as errors: transitions at the beginning or end of
1761 sections, empty sections (except title), and empty documents.
1762 - Updated for ``statemachine.StringList``.
1763 - Enabled recognition of schemeless email addresses in targets.
1764 - Added support for embedded URIs in hyperlink references.
1765 - Added backslash-escapes to inline markup end-string suffix.
1766 - Added support for correct interpreted text processing.
1767 - Fixed nested title parsing (topic, sidebar directives).
1768 - Added special processing of backslash-escaped whitespace (idea
1769 from David Abrahams).
1770 - Made substitutions case-sensitive-but-forgiving; moved some code
1771 to ``docutils.nodes``.
1772 - Added support for block quote attributions.
1773 - Added a kludge to work-around a conflict between the bubble-up
1774 parser strategy and short titles (<= 3 char-long over- &
1775 underlines). Fixes SF bug #738803 "infinite loop with multiple
1776 titles" submitted by Jason Diamond.
1777 - Added explicit interpreted text roles for standard inline markup:
1778 "emphasis", "strong", "literal".
1779 - Implemented "superscript" and "subscript" interpreted text roles.
1780 - Added initial support for "abbreviation" and "acronym" roles;
1782 - Added support for "--trim-footnote-reference-space" option.
1783 - Optional space before colons in directives & hyperlink targets.
1785 * docutils/parsers/rst/tableparser.py:
1787 - Fixed a bug that was producing unwanted empty rows in "simple"
1789 - Detect bad column spans in "simple" tables.
1791 * docutils/parsers/rst/directives: Updated all directive functions to
1794 * docutils/parsers/rst/directives/__init__.py:
1796 - Added ``flag()``, ``unchanged()``, ``path()``,
1797 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1798 directive option helper functions.
1799 - Added warnings for unknown directives.
1800 - Return ``None`` for missing directives.
1801 - Added ``register_directive()``, thanks to William Dode and Paul
1804 * docutils/parsers/rst/directives/admonitions.py:
1806 - Added "admonition" directive.
1808 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1809 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1810 "parsed-literal", "rubric", "epigraph", "highlights" and
1811 "pull-quote" directives.
1813 * docutils/parsers/rst/directives/images.py:
1815 - Added an "align" attribute to the "image" & "figure" directives
1816 (by Adam Chodorowski).
1817 - Added "class" option to "image", and "figclass" to "figure".
1819 * docutils/parsers/rst/directives/misc.py:
1821 - Added "include", "raw", and "replace" directives, courtesy of
1823 - Added "unicode" and "class" directives.
1825 * docutils/parsers/rst/directives/parts.py:
1827 - Added the "sectnum" directive; by Dmitry Jemerov.
1828 - Added "class" option to "contents" directive.
1830 * docutils/parsers/rst/directives/references.py: Added to project.
1831 Contains the "target-notes" directive.
1833 * docutils/parsers/rst/languages/__init__.py:
1835 - Return ``None`` from get_language() for missing language modules.
1837 * docutils/parsers/rst/languages/de.py: Added to project; German
1838 mappings by Engelbert Gruber.
1840 * docutils/parsers/rst/languages/en.py:
1842 - Added interpreted text roles mapping.
1844 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1845 mappings by Marcelo Huerta San Martin.
1847 * docutils/parsers/rst/languages/fr.py: Added to project; French
1848 mappings by William Dode.
1850 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1851 mappings by Nicola Larosa.
1853 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1854 mappings by Miroslav Vasko.
1856 * docutils/readers/__init__.py:
1858 - Added support for the observer pattern from ``utils.Reporter``, in
1859 ``Reader.parse`` and ``Reader.transform``.
1860 - Removed ``Reader.transform()`` method.
1861 - Added default parameter values to ``Reader.__init__()`` to make
1862 instantiation easier.
1863 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1865 * docutils/readers/pep.py:
1867 - Added the ``peps.TargetNotes`` transform to the Reader.
1868 - Removed PEP & RFC reference detection code; moved to
1869 parsers/rst/states.py as options (enabled here by default).
1870 - Added support for pre-acceptance PEPs (no PEP number yet).
1871 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1874 * docutils/readers/python: Python Source Reader subpackage added to
1875 project, including preliminary versions of:
1878 - moduleparser.py: Parser for Python modules.
1880 * docutils/transforms/__init__.py:
1882 - Added ``Transformer`` class and completed transform reform.
1883 - Added unknown_reference_resolvers list for each transformer. This list holds
1884 the list of functions provided by each component of the transformer that
1885 help resolve references.
1887 * docutils/transforms/frontmatter.py:
1889 - Improved support for generic fields.
1890 - Fixed bibliographic field language lookups.
1892 * docutils/transforms/misc.py: Added to project. Miscellaneous
1895 * docutils/transforms/parts.py:
1897 - Moved the "id" attribute from TOC list items to the references
1898 (``Contents.build_contents()``).
1899 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1900 - Added "class" attribute support to ``Contents``.
1902 * docutils/transforms/peps.py:
1904 - Added ``mask_email()`` function, updating to pep2html.py's
1906 - Linked "Content-Type: text/x-rst" to PEP 12.
1907 - Added the ``TargetNotes`` PEP-specific transform.
1908 - Added ``TargetNotes.cleanup_callback``.
1909 - Added title check to ``Headers``.
1911 * docutils/transforms/references.py:
1913 - Added the ``TargetNotes`` generic transform.
1914 - Split ``Hyperlinks`` into multiple transforms.
1915 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1916 - Added check for circular indirect references.
1917 - Made substitutions case-sensitive-but-forgiving.
1919 * docutils/transforms/universal.py:
1921 - Added support for the "--expose-internal-attributes" option.
1922 - Removed ``Pending`` transform classes & data.
1924 * docutils/writers/__init__.py:
1926 - Removed ``Writer.transform()`` method.
1928 * docutils/writers/docutils-xml.py:
1930 - Added XML and doctype declarations.
1931 - Added "--no-doctype" and "--no-xml-declaration" options.
1933 * docutils/writers/html4css1.py:
1935 - "name" attributes only on these tags: a, applet, form, frame,
1937 - Added "name" attribute to <a> in section titles for Netscape 4
1938 support (bug report: Pearu Peterson).
1939 - Fixed targets (names) on footnote, citation, topic title,
1940 problematic, and system_message nodes (for Netscape 4).
1941 - Changed field names from "<td>" to "<th>".
1942 - Added "@" to "@" encoding to thwart address harvesters.
1943 - Improved the vertical whitespace optimization; ignore "invisible"
1944 nodes (targets, comments, etc.).
1945 - Improved inline literals with ``<span class="pre">`` around chunks
1946 of text and `` `` for runs of spaces.
1947 - Improved modularity of output; added ``self.body_pre_docinfo`` and
1948 ``self.docinfo`` segments.
1949 - Added support for "line_block", "address" elements.
1950 - Improved backlinks (footnotes & system_messages).
1951 - Improved system_message output.
1952 - Redefined "--stylesheet" as containing an invariant URL, used
1953 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
1955 - Added "--footnote-references" option (superscript or brackets).
1956 - Added "--compact-lists" and "--no-compact-lists" options.
1957 - Added "--embed-stylesheet" and "--link-stylesheet" options;
1958 factored out ``HTMLTranslator.get_stylesheet_reference()``.
1959 - Improved field list rendering.
1960 - Added Docutils version to "generator" meta tag.
1961 - Fixed a bug with images; they must be inline, so wrapped in <p>.
1962 - Improved layout of <pre> HTML source.
1963 - Fixed attribute typo on <colspec>.
1964 - Refined XML prologue.
1965 - Support for no stylesheet.
1966 - Removed "interpreted" element support.
1967 - Added support for "title_reference", "sidebar", "attribution",
1968 "rubric", and generic "admonition" elements.
1969 - Added "--attribution" option.
1970 - Added support for "inline", "subscript", "superscript" elements.
1971 - Added initial support for "abbreviation" and "acronym";
1974 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
1978 - Double quotes in literal blocks (special treatment for de/ngerman).
1979 - Added '--hyperlink-color' option ('0' turns off coloring of links).
1980 - Added "--attribution" option.
1981 - Right align attributions.
1983 * docutils/writers/pep_html.py:
1985 - Parameterized output encoding in PEP template.
1986 - Reworked substitutions from ``locals()`` into ``subs`` dict.
1987 - Redefined "--pep-stylesheet" as containing an invariant URL, used
1988 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
1990 - Added an override on the "--footnote-references" option.
1991 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
1992 - Added Docutils version to "generator" meta tag.
1993 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1997 - Added a "silent" setting for ``buildhtml.py``.
1998 - Added a "Getting Help" section.
1999 - Rearranged the structure.
2000 - Kept up to date, with new settings, command-line options etc.
2001 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2002 - Converted settings table into a definition list.
2004 * docs/rst/quickstart.txt:
2006 - Added a table of contents.
2007 - Added feedback information.
2008 - Added mention of minimum section title underline lengths.
2009 - Removed the 4-character minimum for section title underlines.
2011 * docs/rst/quickref.html:
2013 - Added a "Getting Help" section.
2014 - Added a style to make section title backlinks more subtle.
2015 - Added mention of minimum section title underline lengths.
2016 - Removed the 4-character minimum for section title underlines.
2018 * extras: Directory added to project; contains third-party modules
2019 that Docutils depends on (optparse, textwrap, roman). These are
2020 only installed if they're not already present.
2022 * licenses: Directory added to project; contains copies of license
2023 files for non-public-domain files.
2027 - Changed the focus. It's about DTD elements: structural
2028 relationships, semantics, and external (public) attributes. Not
2029 about the element class library.
2030 - Moved some implementation-specific stuff into ``docutils.nodes``
2032 - Wrote descriptions of all common attributes and parameter
2033 entities. Filled in introductory material.
2034 - Working through the element descriptions: 55 down, 37 to go.
2035 - Removed "Representation of Horizontal Rules" to
2036 spec/rst/alternatives.txt.
2038 * spec/docutils.dtd:
2040 - Added "generated" inline element.
2041 - Added "line_block" body element.
2042 - Added "auto" attribute to "title".
2043 - Changed content models of "literal_block" and "doctest_block" to
2045 - Added ``%number;`` attribute type parameter entity.
2046 - Changed ``%structural.elements;`` to ``%section.elements``.
2047 - Updated attribute types; made more specific.
2048 - Added "address" bibliographic element.
2049 - Added "line" attribute to ``system_message`` element.
2050 - Removed "field_argument" element; "field_name" may contain
2051 multiple words and whitespace.
2052 - Changed public identifier to docutils.sf.net.
2053 - Removed "interpreted" element; added "title_reference",
2054 "abbreviation", "acronym".
2055 - Removed "refuri" attribute from "footnote_reference" and
2056 "citation_reference".
2057 - Added "sidebar", "rubric", "attribution", "admonition",
2058 "superscript", "subscript", and "inline" elements.
2060 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2062 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2064 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2066 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2069 * spec/transforms.txt: Added to project.
2071 * spec/howto: Added subdirectory, for developer how-to docs.
2073 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2074 Elza, edited & extended by David Goodger.
2076 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2079 * spec/rst/alternatives.txt:
2081 - Added "Doctree Representation of Transitions" from
2083 - Updated "Inline External Targets" & closed the debate.
2084 - Added ideas for interpreted text syntax extensions.
2085 - Added "Nested Inline Markup" section.
2087 * spec/rst/directives.txt:
2089 - Added directives: "topic", "sectnum", "target-notes",
2090 "line-block", "parsed-literal", "include", "replace", "sidebar",
2091 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2093 - Formalized descriptions of directive details.
2094 - Added an "align" attribute to the "image" & "figure" directives
2095 (by Adam Chodorowski).
2096 - Added "class" options to "topic", "sidebar", "line-block",
2097 "parsed-literal", "contents", and "image"; and "figclass" to
2100 * spec/rst/interpreted.txt: Added to project. Descriptions of
2101 interpreted text roles.
2103 * spec/rst/introduction.txt:
2105 - Added pointers to material for new users.
2107 * spec/rst/reStructuredText.txt:
2109 - Disambiguated comments (just add a newline after the "::").
2110 - Updated enumerated list description; added a discussion of the
2111 second-line validity checking.
2112 - Updated directive description.
2113 - Added a note redirecting newbies to the user docs.
2114 - Expanded description of inline markup start-strings in non-markup
2116 - Removed field arguments and made field lists a generic construct.
2117 - Removed the 4-character minimum for section title underlines.
2118 - Clarified term/classifier delimiter & inline markup ambiguity
2120 - Added "Embedded URIs".
2121 - Updated "Interpreted Text" section.
2122 - Added "Character-Level Inline Markup" section.
2124 * test: Continually adding & updating tests.
2126 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2127 - Moved test/test_pep/ to test/test_readers/test_pep/.
2128 - Added test/test_readers/test_python/.
2129 - Added test/test_writers/ (Engelbert Gruber).
2133 - Made the ``locale.setlocale()`` calls in front ends
2136 * tools/buildhtml.py:
2138 - Added "--silent" option.
2139 - Fixed bug with absolute paths & "--config".
2140 - Updated for new I/O classes.
2141 - Added some exception handling.
2142 - Separated publishers' setting defaults; prevents interference.
2143 - Updated for new ``publish_file()`` convenience function.
2145 * tools/pep-html-template:
2147 - Allow for "--embed-stylesheet".
2148 - Added Docutils version to "generator" meta tag.
2149 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2150 - Conform to XHTML spec.
2152 * tools/pep2html.py:
2154 - Made ``argv`` a parameter to ``main()``.
2155 - Added support for "Content-Type:" header & arbitrary PEP formats.
2156 - Linked "Content-Type: text/plain" to PEP 9.
2157 - Files skipped (due to an error) are not pushed onto the server.
2158 - Updated for new I/O classes.
2159 - Added ``check_requirements()`` & ``pep_type_error()``.
2160 - Added some exception handling.
2161 - Updated for new ``publish_string()`` convenience function.
2162 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2164 * tools/quicktest.py:
2166 - Added "-V"/"--version" option.
2168 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2170 * tools/unicode2rstsubs.py: Added to project. Produces character
2171 entity files (reSructuredText substitutions) from the MathML master
2174 * tools/editors: Support code for editors, added to project. Contains
2175 ``emacs/restructuredtext.el``.
2177 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2179 - Added style for chunks of inline literals.
2180 - Removed margin for first child of table cells.
2181 - Right-aligned field list names.
2182 - Support for auto-numbered section titles in TOCs.
2183 - Increased the size of inline literals (<tt>) in titles.
2184 - Restored the light gray background for inline literals.
2185 - Added support for "line_block" elements.
2186 - Added style for "address" elements.
2187 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2188 - Improved field list rendering.
2189 - Vertical whitespace improvements.
2190 - Removed "a.target" style.
2192 * tools/stylesheets/pep.css:
2194 - Fixed nested section margins.
2195 - Other changes parallel those of ``../default.css``.
2198 Release 0.2 (2002-07-31)
2199 ========================
2203 - The word "component" was being used ambiguously. From now on,
2204 "component" will be used to mean "Docutils component", as in Reader,
2205 Writer, Parser, or Transform. Portions of documents (Table of
2206 Contents, sections, etc.) will be called "document parts".
2207 - Did a grand renaming: a lot of ``verylongnames`` became
2208 ``very_long_names``.
2209 - Cleaned up imports: no more relative package imports or
2210 comma-separated lists of top-level modules.
2211 - Added support for an option values object which carries default
2212 settings and overrides (from command-line options and library use).
2213 - Added internal Unicode support, and support for both input and
2215 - Added support for the ``docutils.io.IO`` class & subclasses.
2219 * docutils/__init__.py:
2221 - Added ``ApplicationError`` and ``DataError``, for use throughout
2223 - Added ``Component`` base class for Docutils components; implements
2224 the ``supports`` method.
2225 - Added ``__version__`` (thus, ``docutils.__version__``).
2229 - Removed many keyword parameters to ``Publisher.__init__()`` and
2230 ``publish()``; bundled into an option values object. Added
2231 "argv", "usage", "description", and "option_spec" parameters for
2232 command-line support.
2233 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2235 - Reworked I/O model for ``docutils.io`` wrappers.
2236 - Updated ``Publisher.set_options()``; now returns option values
2238 - Added support for configuration files (/etc/docutils.conf,
2239 ./docutils.conf, ~/.docutils).
2240 - Added ``Publisher.setup_option_parser()``.
2241 - Added default usage message and description.
2243 * docutils/frontend.py: Added to project; support for front-end
2244 (command-line) scripts. Option specifications may be augmented by
2245 components. Requires Optik (http://optik.sf.net/) for option
2246 processing (installed locally as docutils/optik.py).
2248 * docutils/io.py: Added to project; uniform API for a variety of input
2251 * docutils/nodes.py:
2253 - Added ``TreeCopyVisitor`` class.
2254 - Added a ``copy`` method to ``Node`` and subclasses.
2255 - Added a ``SkipDeparture`` exception for visitors.
2256 - Renamed ``TreePruningException`` from ``VisitorException``.
2257 - Added docstrings to ``TreePruningException``, subclasses, and
2259 - Improved docstrings.
2260 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2261 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2263 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2264 ``PreDecorative`` mixin.
2265 - Reworked the name/id bookkeeping; to ``document``, removed
2266 ``explicit_targets`` and ``implicit_targets`` attributes, added
2267 ``nametypes`` attribute and ``set_name_id_map`` method.
2268 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2270 - Added ``document.has_name()`` method.
2271 - Fixed DOM generation for list-attributes.
2272 - Added category class ``Labeled`` (used by footnotes & citations).
2273 - Added ``Element.set_class()`` method (sets "class" attribute).
2275 * docutils/optik.py: Added to project. Combined from the Optik
2276 package, with added option groups and other modifications. The use
2277 of this module is probably only temporary.
2279 * docutils/statemachine.py:
2281 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2282 - Added underscores to improve many awkward names.
2283 - In ``string2lines()``, changed whitespace normalizing translation
2284 table to regexp; restores Python 2.0 compatibility with Unicode.
2286 * docutils/urischemes.py:
2288 - Filled in some descriptions.
2289 - Added "shttp" scheme.
2291 * docutils/utils.py:
2293 - Added ``clean_rcs_keywords`` function (moved from
2294 docutils/transforms/frontmatter.py
2295 ``DocInfo.filter_rcs_keywords``).
2296 - Added underscores to improve many awkward names.
2297 - Changed names of Reporter's thresholds:
2298 warning_level -> report_level; error_level -> halt_level.
2299 - Moved ``utils.id()`` to ``nodes.make_id()``.
2300 - Added ``relative_path(source, target)``.
2302 * docutils/languages/de.py: German mappings; added to project. Thanks
2303 to Gunnar Schwant for the translations.
2305 * docutils/languages/en.py: Added "Dedication" bibliographic field
2308 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2311 * docutils/parsers/rst/states.py:
2313 - Added underscores to improve many awkward names.
2314 - Added RFC-2822 header support.
2315 - Extracted the inline parsing code from ``RSTState`` to a separate
2316 class, ``Inliner``, which will allow easy subclassing.
2317 - Made local bindings for ``memo`` container & often-used contents
2318 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2319 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2320 - Added ``MarkupMismatch`` exception; for late corrections.
2321 - Added ``-/:`` characters to inline markup's start string prefix,
2322 ``/`` to end string suffix.
2323 - Fixed a footnote bug.
2324 - Fixed a bug with literal blocks.
2325 - Applied patch from Simon Budig: simplified regexps with symbolic
2326 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2327 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2328 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2329 - Allowed non-ASCII in "simple names" (directive names, field names,
2331 - Converted ``Inliner.patterns.initial`` to be dynamically built
2332 from parts with ``build_regexp()`` function.
2333 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2334 - Updated docstrings.
2335 - Changed "table" to "grid_table"; added "simple_table" support.
2337 * docutils/parsers/rst/tableparser.py:
2339 - Changed ``TableParser`` to ``GridTableParser``.
2340 - Added ``SimpleTableParser``.
2341 - Refactored naming.
2343 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2344 a fallback language for directive names.
2346 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2347 directive to use a ``pending`` element, used only by HTML writers.
2349 * docutils/parsers/rst/directives/parts.py: Renamed from
2352 - Added "backlinks" attribute to "contents" directive.
2354 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2355 project by Adam Chodorowski.
2357 * docutils/readers/__init__.py: Gave Readers more control over
2358 choosing and instantiating Parsers.
2360 * docutils/readers/pep.py: Added to project; for PEP processing.
2362 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2363 requires a ``component`` parameter.
2365 * docutils/transforms/components.py: Added to project; transforms
2366 related to Docutils components.
2368 * docutils/transforms/frontmatter.py:
2370 - In ``DocInfo.extract_authors``, check for a single "author" in an
2371 "authors" group, and convert it to a single "author" element.
2372 - Added support for "Dedication" and generic bibliographic fields.
2374 * docutils/transforms/peps.py: Added to project; PEP-specific.
2376 * docutils/transforms/parts.py: Renamed from old components.py.
2378 - Added filter for `Contents`, to use alt-text for inline images,
2379 and to remove inline markup that doesn't make sense in the ToC.
2380 - Added "name" attribute to TOC topic depending on its title.
2381 - Added support for optional TOC backlinks.
2383 * docutils/transforms/references.py: Fixed indirect target resolution
2384 in ``Hyperlinks`` transform.
2386 * docutils/transforms/universal.py:
2388 - Changed ``Messages`` transform to properly filter out system
2389 messages below the warning threshold.
2390 - Added ``Decorations`` transform (support for ``--generator``,
2391 ``--date``, ``--time``, ``--source-link`` options).
2393 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2394 Engelbert Gruber's PDF writer.
2396 * docutils/writers/html4css1.py:
2398 - Made XHTML-compatible (switched to lowercase element & attribute
2399 names; empty tag format).
2400 - Escape double-dashes in comment text.
2401 - Improved boilerplate & modularity of output.
2402 - Exposed modular output in Writer class.
2403 - Added a "generator" meta tag to <head>.
2404 - Added support for the ``--stylesheet`` option.
2405 - Added support for ``decoration``, ``header``, and ``footer``
2407 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2408 translation table to regexp; restores Python 2.0 compatibility
2410 - Added the translator class as instance variable to the Writer, to
2411 make it easily subclassable.
2412 - Improved option list spacing (thanks to Richard Jones).
2413 - Modified field list output.
2414 - Added backlinks to footnotes & citations.
2415 - Added percentage widths to "<col>" tags (from colspec).
2416 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2417 "<span>" changed to "<var>".
2418 - Inline literals: "<code>" changed to "<tt>".
2419 - Many changes to optimize vertical space: compact simple lists etc.
2420 - Add a command-line options & directive attributes to control TOC
2421 and footnote/citation backlinks.
2422 - Added support for optional footnote/citation backlinks.
2423 - Added support for generic bibliographic fields.
2424 - Identify backrefs.
2425 - Relative URLs for stylesheet links.
2427 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2428 PEPs (subclass of ``html4css1.Writer``).
2430 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2432 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2433 of the Docutils internal doctree in XML.
2435 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2439 - Changed the title to "The Docutils Document Tree".
2440 - Added "Hyperlink Bookkeeping" section.
2442 * spec/docutils.dtd:
2444 - Added ``decoration``, ``header``, and ``footer`` elements.
2445 - Brought ``interpreted`` element in line with the parser: changed
2446 attribute "type" to "role", added "position".
2447 - Added support for generic bibliographic fields.
2449 * spec/notes.txt: Continual updates. Added "Project Policies".
2451 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2454 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2456 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2457 mailing list discussions.
2459 * spec/pep-0287.txt:
2461 - Renamed to "reStructuredText Docstring Format".
2463 - Reworked Q&A as an enumerated list.
2464 - Converted to reStructuredText format.
2466 * spec/pysource.dtd:
2468 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2470 * spec/pysource.txt: Removed from project. Moved much of its contents
2473 * spec/rst/alternatives.txt:
2475 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2476 - Added "Inline External Targets" section.
2478 * spec/rst/directives.txt:
2480 - Added "backlinks" attribute to "contents" directive.
2482 * spec/rst/problems.txt:
2484 - Updated the Enumerated List Markup discussion.
2485 - Added new alternative table markup syntaxes.
2487 * spec/rst/reStructuredText.txt:
2489 - Clarified field list usage.
2490 - Updated enumerated list description.
2491 - Clarified purpose of directives.
2492 - Added ``-/:`` characters to inline markup's start string prefix,
2493 ``/`` to end string suffix.
2494 - Updated "Authors" bibliographic field behavior.
2495 - Changed "inline hyperlink targets" to "inline internal targets".
2496 - Added "simple table" syntax to supplement the existing but
2497 newly-renamed "grid tables".
2498 - Added cautions for anonymous hyperlink use.
2499 - Added "Dedication" and generic bibliographic fields.
2501 * test: Made test modules standalone (subdirectories became packages).
2503 * test/DocutilsTestSupport.py:
2505 - Added support for PEP extensions to reStructuredText.
2506 - Added support for simple tables.
2507 - Refactored naming.
2509 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2511 - Now supports true packages containing test modules
2512 (``__init__.py`` files required); fixes duplicate module name bug.
2514 * test/test_pep/: Subpackage added to project; PEP testing.
2516 * test/test_rst/test_SimpleTableParser.py: Added to project.
2520 - Updated html.py and publish.py front-end tools to use the new
2521 command-line processing facilities of ``docutils.frontend``
2522 (exposed in ``docutils.core.Publisher``), reducing each to just a
2524 - Added ``locale.setlocale()`` calls to front-end tools.
2526 * tools/buildhtml.py: Added to project; batch-generates .html from all
2527 the .txt files in directories and subdirectories.
2529 * tools/default.css:
2531 - Added support for ``header`` and ``footer`` elements.
2532 - Added styles for "Dedication" topics (biblio fields).
2534 * tools/docutils.conf: A configuration file; added to project.
2536 * tools/docutils-xml.py: Added to project.
2538 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2540 * tools/pep-html-template: Added to project.
2542 * tools/pep2html.py: Added to project from Python (nondist/peps).
2543 Added support for Docutils (reStructuredText PEPs).
2545 * tools/quicktest.py:
2547 - Added the ``--attributes`` option, hacked a bit.
2548 - Added a second command-line argument (output file); cleaned up.
2550 * tools/stylesheets/: Subdirectory added to project.
2552 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2555 Release 0.1 (2002-04-20)
2556 ========================
2558 This is the first release of Docutils, merged from the now inactive
2559 reStructuredText__ and `Docstring Processing System`__ projects. For
2560 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2561 `DPS HISTORY`__ files.
2563 __ http://structuredtext.sourceforge.net/
2564 __ http://docstring.sourceforge.net/
2565 __ http://structuredtext.sourceforge.net/HISTORY.html
2566 __ http://docstring.sourceforge.net/HISTORY.html
2568 General changes: renamed 'dps' package to 'docutils'; renamed
2569 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2570 the test suites (reStructuredText's test/test_states renamed to
2571 test/test_rst); and all modifications required to make it all work.
2573 * docutils/parsers/rst/states.py:
2575 - Improved diagnostic system messages for missing blank lines.
2576 - Fixed substitution_reference bug.
2582 indent-tabs-mode: nil
2583 sentence-end-double-space: t