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 - (partially) Fix reporting for problems in included files.
26 - FileInput opens files as text files with universal newline support
27 (mode "rU", configurable with the new optional argument "mode").
31 - Fix [ 2923723 ] let decode_path() tolerate path == None
33 * docutils/writers/latex2e/__init__.py
35 - Use `transforms.writer_aux.Admonitions` to "normalize" special
37 - Use the ``\url`` command for URLs (breaks long URLs instead of
38 writing into the margin).
39 - Preserve runs of spaces in `inline literals`__.
40 - Deprecate ``figure_footnotes`` setting.
41 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
42 - New ``latex_preamble`` setting.
43 - PDF standard fonts (Times/Helvetica/Courier) as default.
45 __ docs/ref/restructuredtext.html#inline-literals
46 __ docs/user/config.html#docutils-footnotes
48 * docutils/writers/manpage.py
50 - Fix: supported attribute (thanks to peter2108).
51 - Remove trailing blanks in code (keep in sync with mercurial version).
52 - Titles level 1, that is ``.SH``, always uppercase.
53 - Apply patch from mg: literal text should be bold in man-pages.
57 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
60 Release 0.6 (2009-10-11)
61 ========================
65 - Docutils is now compatible with Python versions from 2.3 up to 2.6
66 and convertible to 3.1 code.
68 + Node.__nonzero__ returns True instead of 1.
69 + use os.walk instead os.path.walk.
70 + minimize "types" module where possible.
71 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
72 + Text nodes now subclass unicode rather than UserString
73 (which is gone in python 3.0).
74 + 3.0 compatibility module docutils._compat
76 + Drop 2.2 compatibility workarounds.
77 + Drop extras/optparse.py and extras/textwrap.py
78 (stdlib modules since 2.3).
80 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
81 - Unix man page export: manpage writer moved from sandbox to Doctutils
84 - Apply [ 1719345 ] Galician translation
85 - Apply [ 1905741 ] Polish translation
86 - Apply [ 1878977 ] make_id(): deaccent characters.
87 - Apply [ 2029251 ] return nonzero when tests fail.
88 - Fix [ 1692788 ] allow UTF-8 in style sheets.
89 - Fix [ 2781629 ] support non-ASCII chars in file names.
90 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
91 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
92 - Fix [ 2821266 ] --strict option works now like --halt=info.
93 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
94 - Fix [ 1627229 ] hyperlink references in substitutions.
96 - The "newlatex" writer is orphaned.
100 - Documented Unicode characters allowed as inline markup openers,
101 closers, and delimiters.
102 - Allow units for all length specifications.
103 - Allow percent sign in "scale" argument of "figure" and "image" directives.
104 - Bugfix: The "figalign" argument of a figure now works as intended
105 (aligning the figure, not its contents).
106 - Align images with class "align-[right|center|left]"
107 (allows setting the alignment of an image in a figure).
111 - Added ``Element.__contains__`` method, for the in-operator.
113 * docutils/parsers/rst/states.py:
115 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
116 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
117 " " (non-breaking space), and "¡ ¿" openers.
119 * docutils/parsers/directives/misc.py:
121 - Added ``start-line`` and ``end-line`` options to "include"
122 directive to select a range of lines.
123 - Hard tabs in literal inclusions are replaced by spaces. This is
124 configurable via the new ``tab-width`` option of the "include" directive
125 (a negative tab-width prevents tab expansion).
129 - Add ``get_stylesheet_list`` function.
130 - Apply [ 2834836 ] print info at halt
132 * docutils/transforms/universal.py:
134 - Raise default priority of StripClasses to exclude stripped classes from
137 * docutils/writers/html4css1/__init__.py:
139 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
140 separated list of stylesheets.
141 - Address [ 1938891 ] Inline literal text creates "pre" span only when
142 needed to prevent inter-word line wraps.
143 - Use `translate` method instead of repeated `replace` calls.
144 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
145 classes to allow CSS styling that does not interfere with other
146 table-using constructs (field lists, citations, ...).
148 * docutils/writers/newlatex2e/__init__.py:
150 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
152 * docutils/writers/latex2e/__init__.py (see also
153 `<docs/user/docutils-05-compat.sty.html>`__) :
155 - Add ``--embed-stylesheet`` option.
156 - Apply [ 1474017 ] image vertical alignment is reversed.
157 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
158 - Change: has_key for dictionaries (not Nodes) to in-operator.
159 - Merge adjacent citations into one latex cite command.
160 - Failsave implementation of custom roles. LaTeX compilation now ignores
161 unknown classes instead of aborting with an error.
162 - Support custom roles based on standard roles.
163 - LaTeX packages can be used as ``--stylesheet`` arguments without
164 restriction. (A style sheet is now referenced with the ``\usepackage``
165 command, if it ends with ``.sty`` or has no extension.)
166 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
167 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
168 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
169 2005-02-04 as a configurable length unit).
170 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
171 if font-encoding is set to ''. LaTeX defaults to OT1 then.
172 - Set sub- and superscript role argument in text mode not as math.
173 Use a custom role based on sub-/superscript if you want italic shape.
174 - Shorter preamble and less dependencies: Load packages and define macros
175 only if required in the document.
176 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
177 - New custom environments and commands with optional "classes" argument.
178 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
179 - Better conformance to Docutils specifications with ``--use-latex-toc``.
180 Support for LaTeX generated ToC also with unnumbered sections.
181 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
182 section numbering by LaTeX.
183 - Use default font in admonitions and sidebar.
184 - Align of image in a figure defaults to 'center'.
185 - Bugfix: Newlines around targets and references prevent run-together
187 - Fix internal hyperlinks.
188 - Use class defaults for page margins ('typearea' now optional).
189 - Float placement made configurable, default changed to "here definitely".
190 - Typeset generic topic as "quote block with title".
191 - Use template (file and configuration option).
192 - In the default template, load cmap.sty (fix text extraction in PDF) and
193 fixltx2e.sty (LaTeX patches, \textsubscript).
194 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
195 - Use `translate` instead of repeated `replace` calls for text encoding.
196 - Hyperlinked footnotes and support for symbol footnotes and
197 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
198 - Complete pairs of binary options
199 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
200 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
202 - font-encoding: "T1" (formerly implicitely set by 'ae').
203 - use-latex-toc: true (ToC with page numbers).
204 - use-latex-footnotes: true (no mixup with figures).
206 * docutils/writers/manpage.py
208 - Do not print version at document end, this is done by the viewer.
209 - Do not print date at document end, this is done by the viewer.
210 - Fix storage of docinfo fields for none standard fields.
212 * docutils/tools/rst2man.py
214 Release 0.5 (2008-06-25)
215 ========================
217 * docutils/languages/he.py: Added to project: Hebrew mappings by
220 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
221 mappings by Meir Kriheli.
223 * docutils/frontend.py:
225 - Configuration files are now assumed and required to be
227 - Paths of applied configuration files are now recorded in the
228 runtime setting ``_config_files`` (accessible via
229 ``--dump-settings``).
230 - Added ``--strip-elements-with-class`` and ``--strip-class``
231 options (``strip_elements_with_classes`` and ``strip_classes``
236 - Added code to determine the input encoding from data: encoding
237 declarations or the presence of byte order marks (UTF-8 & UTF-16).
238 - Added support for IronPython 1.0.
242 - Added ``document.__getstate__`` method, for pickling.
244 * docutils/parsers/rst/states.py:
246 - Allow ``+`` and ``:`` in reference names.
247 - Unquoted targets beginning with an underscore (``.. __target:
248 URI``) are no longer accepted.
249 - Added support for multiple attributions in a physical block quote
250 (indented text block), dividing it into multiple logical block
252 - Added support for unicode bullets in bullet lists: "•", "‣", and
254 - Added support for new object-oriented directive interface,
255 retaining compatibility to the old functional interface.
256 - Added support for throwing ``DirectiveError``'s from within
259 * docutils/parsers/rst/__init__.py:
261 - Added ``Directive`` base class.
262 - Added ``DirectiveError`` base class.
263 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
266 * docutils/parsers/directives/:
268 - Refactored all reStructuredText directives to use the new
269 object-oriented directive interface. Errors are now (mostly)
270 thrown using the new ``DirectiveError`` class.
272 * docutils/parsers/directives/misc.py:
274 - Added ``start-after`` and ``end-before`` options to ``include``
275 directive; thanks to Stefan Rank.
277 * docutils/transforms/universal.py:
279 - Added ``StripClassesAndElements`` transform to remove from the
280 document tree all elements with classes in
281 ``settings.strip_elements_with_classes`` and all "classes"
282 attribute values in ``self.document.settings.strip_classes``.
284 * docutils/transforms/writer_aux.py:
286 - Added ``Admonitions`` transform to transform specific admonitions
287 (like ``note``, ``warning``, etc.) into generic admonitions with a
290 * docutils/writers/html4css1/__init__.py:
292 - Moved template functionality from the PEP/HTML writer here.
293 - Expanded the fragments available in the ``parts`` attribute.
294 - Moved ``id`` attributes from titles to surrounding ``div``
296 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
297 universally supported now).
298 - ``template.txt`` is now opened in text mode instead of binary mode
299 (to ensure Windows compatibility).
300 - ``a`` elements now have an "internal" or "external" class,
301 depending on reference type.
303 * docutils/writers/html4css1/template.txt: Added to project.
305 * docutils/writers/pep_html/:
307 - Moved template functionality to the HTML writer.
309 * docutils/writers/s5_html/__init__.py:
311 - Added ``view_mode`` & ``hidden_controls`` settings
312 (``--view-mode`` & ``--hidden-controls/--visible-controls``
315 * docutils/writers/latex2e/__init__.py:
317 - Add ``--literal-block-env``
318 - Fix: escaping ``%`` in href urls.
319 - Move usepackage hyperref after stylesheet inclusion.
320 - Fix: scrartcl does not have chapter but scrreprt.
321 - Add newline after ``\end{verbatim}``.
322 - Merge smaller differences from latex2e_adaptive_preamble.
323 - Add ``use-part-section``.
324 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
325 - Using leavemode option_list no longer needs to check if parent
326 is a definition list.
327 - Append ``\leavemode`` to definition list terms.
328 - No longer write visit\_/depart_definition_list_item comments to
330 - Table column width with 3 decimal places.
331 - Add table stubs support (boldfont).
332 - Add assemble_parts to writer.
333 - Add simply support for nested tables.
334 - Fix verbatim in tables if use-verbatim-when-possible.
335 - Use section commands down to subparagraph.
336 - Put ensuremath around some latin1 chars.
337 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
338 - New option ``--use-bibtex=style,db1,db2``.
339 - New option ``--reference-label`` to allow usage of LaTeX ref for
340 labels in section references.
341 - Add a label after every section to support sectionnumbers as reference
343 - Fix: bug# 1605376 rst2latex: bad options group list
344 - Remove inactive code for use_optionlist_for_option_list.
345 - Remove latex comments from option_list output.
346 - Fix: bug# 1612270 double qoutes in italian literal.
347 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
348 - Add option --use-latex-abstract.
349 - Image width unit ``px`` is translated to ``pt``.
350 - Add image height support.
351 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
353 - Fix: Do not escape underscores in citation reference labels if
354 use-latex-citations is set.
355 - Use centering instead of center for figure contents, to avoid vertical
357 - Recognize table class: borderless, nolines, booktabs, standard.
358 - Fix: Renaming contents section does not work with latex writer; SF
360 - Applied patch for custom roles with classes from Edward Loper.
361 - Fixed bug that caused crashes with more than 256 lists.
363 * docutils/writers/pep_html/__init__.py:
365 - Changed to support new python.org website structure and
368 * docs/howto/security.txt: "Deploying Docutils Securely", added to
371 * tools/buildhtml.py:
373 -- Added ``ignore`` setting to exclude a list of shell patterns
374 (default: ``.svn:CVS``).
376 * tools/editors/emacs/rst.el:
378 - Changed license to "GPL".
379 - Added ``rst-straighten-decorations`` function.
380 - The ``compile`` module is now always loaded.
381 - Added ``rst-toggle-line-block`` function.
382 - Headings consisting only of non-ASCII characters are now
383 recognized by ``rst-toc`` and ``rst-adjust``.
384 - Added font-lock support for multi-line comments where the first
385 comment line is empty.
386 - Added ``(require 'font-lock)``.
390 - Provide descriptive error message if distutils is missing.
393 Release 0.4 (2006-01-09)
394 ========================
398 - Updated the project policies for trunk/branch development &
401 * docutils/__init__.py:
403 - Added ``__version_details__`` attribute to describe code source
404 (repository/snapshot/release).
405 - Replaced ``default_transforms`` attribute of TransformSpec with
406 ``get_transforms()`` method.
410 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
411 functions, for document tree extraction and reprocessing.
415 - Added ``DocTreeInput`` class, for reprocessing existing documents.
416 - Added support for non-Unicode (e.g. binary) writer output.
420 - Re-introduced ``Targetable.indirect_reference_name``, for
421 MoinMoin/reST compatibility (removed in r3124/r3129).
422 - Added ``serial_escape`` function; escapes string values that are
423 elements of a list, for serialization. Modified Docutils-XML
424 writing (``Element._dom_node``) and pseudo-XML writing
425 (``Element.starttag``) to use ``serial_escape``.
426 - Added ``Node.deepcopy()`` method.
427 - Removed the internal lists ``document.substitution_refs``,
428 ``document.anonymous_refs``, and ``document.anonymous_targets``.
429 - Added a "container" element.
430 - Fixed bug where values of list-valued attributes of elements
431 originating from custom interpreted text roles (i.e., with custom
432 classes) were being shared between element instances. Reported by
435 * docutils/statemachine.py:
437 - Added trailing whitespace stripping to ``string2lines()``.
438 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
439 Asian double-width character support.
443 - Added ``east_asian_column_width()`` for double-width character
446 * docutils/languages/ja.py: Added to project: Japanese mappings by
449 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
450 mappings by Panjunyong.
452 * docutils/parsers/null.py: Added to project; a do-nothing parser.
454 * docutils/parsers/rst/__init__.py:
456 - Added validator to tab_width setting, with test. Closes SF bug
457 #1212515, report from Wu Wei.
459 * docutils/parsers/rst/states.py:
461 - Fixed bug with escaped colons indicating a literal block.
462 - Fixed bug with enumerated lists (SF#1254145).
463 - Backslash-escaped colons inside of field names are now allowed.
464 - Targets (implicit and explicit), anonymous hyperlink references
465 and auto-numbered footnote references inside of substitution
466 definitions are now disallowed.
467 - Fixed bug: list items with blank first lines.
468 - Fixed bug: block quote attributions with indented second lines.
469 - Added East Asian double-width character support (Python 2.4 only).
471 * docutils/parsers/rst/tableparser.py:
473 - Added East Asian double-width character support (Python 2.4 only).
475 * docutils/parsers/rst/directives/body.py:
477 - Added the "container" directive.
479 * docutils/parsers/rst/directives/misc.py:
481 - Added the "default-role", "title", and "date" directives.
482 - Added standard data file syntax to the "include" directive.
483 - Added support for "class" directive content.
485 * docutils/parsers/rst/directives/images.py:
487 - Added ``indirect_reference_name`` support for images with a target
489 - Added support for image width and height units.
490 - Fixed bug with image "target" options.
492 * docutils/parsers/rst/directives/references.py:
494 - Added "class" attribute to "target-notes" directive, for
495 footnote_reference classes.
497 * docutils/parsers/rst/include/: Directory added to project; contains
498 standard data files for the "include" directive. Initial contents:
499 character entity substitution definition sets, and a set of
500 definitions for S5/HTML presentations.
502 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
503 mappings by David Goodger.
505 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
506 Simplified Chinese mappings by Panjunyong.
508 * docutils/readers/__init__.py:
510 - Added universal.Decorations and universal.ExposeInternals
511 transforms as default transforms for all readers.
512 - Added ``ReReader`` base class for readers that reread an existing
515 * docutils/readers/doctree.py: Added to project; a reader for existing
518 * docutils/transforms/frontmatter.py:
520 - Fixed the DocInfo transform to handle SVN-style expansion of the
522 - In ``DocInfo.extract_authors``, treat the contents of "authors"
525 * docutils/transforms/misc.py:
527 - Added misc.Transitions transform, extracted from
528 universal.FinalChecks.
530 * docutils/transforms/references.py:
532 - Added references.DanglingReferences transform, extracted from
533 universal.FinalChecks.
534 - Fixed bug with doubly-indirect substitutions.
535 - Added footnote_reference classes attribute to "TargetNotes".
536 - Fixed bug with circular substitution definitions that put Docutils
537 into an infinite loop.
539 * docutils/transforms/universal.py:
541 - Added universal.ExposeInternals transform, extracted from
542 universal.FinalChecks.
543 - Removed universal.FinalChecks transform (logic has been moved to
544 several new transforms).
545 - Fixed bug with the "expose_internals" setting and Text nodes
546 (exposed by the "rawsource" internal attribute).
547 - Added the universal.StripComments transform, implementation of the
548 "strip_comments" setting.
550 * docutils/transforms/writer_aux.py: Added to project; auxiliary
551 transforms for writers.
553 - Added ``Compound`` transform, which flattens compound paragraphs.
555 * docutils/writers/: Several writer modules (html4css1.py) were
556 converted into packages. Support modules and data files have been
557 moved into the packages. The stylesheets for the HTML writers are
558 now installed along with the code, the code knows where to find
559 them, and the default is to use them (actually, to embed them).
560 Some adjustments to configuration files may be necessary. The
561 easiest way to obtain the new default behavior is to remove all
562 settings whose name includes "stylesheet".
564 * docutils/writers/__init__.py:
566 - Added universal.Messages and universal.FilterMessages transforms
567 as default transforms for all writers.
568 - Added ``UnfilteredWriter`` base class for writers that pass the
569 document tree on unchanged.
571 * docutils/writers/docutils_xml.py:
573 - Made ``xmlcharrefreplace`` the default output encoding error
576 * docutils/writers/html4css1/:
578 - Added support for image width and height units.
579 - Made ``xmlcharrefreplace`` the default output encoding error
581 - Made ``--embed-stylesheet`` the default rather than
582 ``--link-stylesheet``.
583 - Moved "id" attribute from container (section etc.) to title's <a>
584 tag, to be on the same tag as "name".
585 (!!! To be reverted in Docutils 0.5.)
586 - Added vertical space between fields of field lists.
587 - Added ``--compact-field-lists`` option to remove vertical space in
589 - Made cloaking of email addresses with ``--cloak-email-addresses``
591 - Fixed support for centered images.
592 - Added support for class="compact" & class="open" lists.
594 * docutils/writers/latex2e/:
596 - Underscores in citekeys are no longer escaped.
598 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
599 mapping of Unicode characters to LaTeX equivalents.
601 * docutils/writers/s5_html/: Package added to project; writer for
604 * docs/dev/distributing.txt: Added to project; guide for distributors
605 (package maintainers).
607 * docs/dev/hacking.txt: Added to project; guide for developers.
609 * docs/ref/doctree.txt:
611 - Updated for plural attributes "classes", "ids", "names",
613 - Added the "container" element.
615 * docs/ref/docutils.dtd:
617 - Updated for plural attributes "classes", "ids", "names",
620 * docs/user/emacs.txt: Added to project; a document about Emacs
621 support for reStructuredText and Docutils.
623 * docs/user/links.txt: Added to project; lists of Docutils-related
626 * docs/user/mailing-lists.txt: Added to project; information about
627 Docutils-related mailing lists and how to access them.
629 * docs/user/slide-shows.txt: Added to project; example of and docs for
630 the S5/HTML writer (``rst2s5.py`` front end).
632 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
633 Files", added to project.
635 * test/coverage.sh: Added to project; test coverage script.
637 * test/DocutilsTestSupport.py:
639 - Added support for specifying runtime settings at the suite level.
641 * test/test_functional.py:
643 - Added the ``clear_output_directory`` function.
644 - Added support for ``_test_more`` functions in functional test
647 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
649 * tools/rstpep2html.py: Renamed from pep.py.
651 * tools/dev/create_unimap.py: Added to project; script to create the
652 docutils/writers/unimap_latex.py mapping file.
654 * tools/dev/profile_docutils.py: Added to project; profiler script.
656 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
658 * tools/editors/emacs/restructuredtext.el,
659 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
660 Removed from project; the functionality is now contained in rst.el.
662 * tools/editors/emacs/rst.el: Added to project. Added many features
663 and fixed many bugs. See docs/user/emacs.txt for details.
665 * tools/stylesheets: Removed from project. Stylesheets have been
666 renamed and moved into writer packages.
669 Release 0.3.9 (2005-05-26)
670 ==========================
674 - Eliminated and replaced all uses of the old string attributes
675 ``id``, ``name``, ``dupname`` and ``class`` with references to the
676 new list attributes ``ids``, ``names``, ``dupnames`` and
677 ``classes`` throughout the whole source tree.
681 - Enabled ``--dump-*`` options when ``--traceback`` specified,
682 allowing for easier debugging.
683 - In ``Publisher.publish()``, expanded the generic top-level
686 * docutils/examples.py:
688 - Added ``internals`` function for exploration.
692 - Fixed ``Input.decode`` method to apply heuristics only if no
693 encoding is explicitly given, and to provide better reporting of
695 - The ``Input.decode`` method now removes byte order marks (BOMs)
700 - ``image`` element class changed to subclass of Element, not
701 TextElement (it's an empty element, and cannot contain text).
702 - Added ``attr_defaults`` dictionary for default attribute values.
703 - Added empty list as default value for the following attributes:
704 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
705 - Added ``document.decoration`` attribute,
706 ``document.get_decoration`` method, and ``decoration.get_header``
707 & ``.get_footer`` methods.
708 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
713 - Removed ``docutils.utils.Reporter.categories``,
714 ``docutils.utils.ConditionSet``, and all references to them, to
715 simplify error reporting.
717 * docutils/languages/nl.py: Added to project; Dutch mappings by
720 * docutils/parsers/rst/__init__.py:
722 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
724 * docutils/parsers/rst/states.py:
726 - Added check for escaped at-mark to prevent email address recognition.
727 - Fixed option lists to allow spaces inside ``<angle-bracketed option
729 - Allowed whitespace in paths and URLs.
730 - Added auto-enumerated list items.
731 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
733 - Added support for table stub columns.
735 * docutils/parsers/rst/directives/__init__.py:
737 - Allowed whitespace in paths (``path`` function).
738 - Added ``uri`` directive option conversion function.
740 * docutils/parsers/rst/directives/body.py:
742 - Fixed illegal context bug with "topic" directive (allowed within
743 sidebars; not within body elements).
745 * docutils/parsers/rst/directives/images.py:
747 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
748 - Added support for the ``file_insertion_enabled`` setting in the
749 "figure" directive (disables "figwidth" option).
750 - "image" directive: added checks for valid values of "align" option,
751 depending on context. "figure" directive: added specialized
752 "align" option and attribute on "figure" element.
753 - Made ":figwidth: image" option of "figure" directive work again.
754 - Fixed bug with reference names containing uppercase letters
755 (e.g. ``Name_``) in "target" option of "image" directive.
757 * docutils/parsers/rst/directives/misc.py:
759 - Fixed "include" and "raw" directives to catch text decoding
761 - Allowed whitespace in "include" & "raw" directive paths.
762 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
763 settings in "include" & "raw" directives.
765 * docutils/parsers/rst/directives/parts.py:
767 - Added "header" & "footer" directives.
768 - Fixed illegal context bug with "contents" directive (topics
769 allowed within sidebars; not within body elements).
771 * docutils/parsers/rst/directives/tables.py:
773 - Added "list-table" directive.
774 - Caught empty CSV table bug.
775 - Added support for the ``file_insertion_enabled`` setting in the
776 "csv-table" directive.
777 - Added ``stub-columns`` option to "csv-table" and "list-table"
780 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
781 mappings by Martijn Pieters.
783 * docutils/readers/standalone.py:
785 - Added ``--section-subtitles`` and ``--no-section-subtitles``
786 options to activate or deactivate the SectSubTitle transform.
788 * docutils/transforms/frontmatter.py:
790 - Added SectSubTitle transform to promote titles of lone
791 subsections to subtitles.
793 * docutils/transforms/references.py:
795 - Fixed mislocated internal targets bug, by propagating internal
796 targets to the next node, making use of the newly added support
797 for multiple names and IDs.
798 - Fixed duplicate footnote label bug.
799 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
802 * docutils/writers/html4css1.py:
804 - Fixed unencoded stylesheet reference bug (characters like "&" in
805 stylesheet references).
806 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
808 - Added support for multiple IDs per node by creating empty ``span``
810 - Added the ``field_name_limit`` & ``option_limit`` settings &
812 - Added support for table stub columns.
813 - Added support for the ``align`` attribute on ``figure`` elements.
814 - Added the ``cloak_email_addresses`` setting & support.
815 - Added ``html_prolog``, ``html_head``, ``html_body``,
816 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
817 ``docutils.core.publish_parts``.
818 - Added support for section subtitles.
820 * docutils/writers/latex2e.py:
822 - Fixed tables starting with more than one multirow cell.
823 - Improved --use-latex-docinfo so that organization/contact/address
824 fields are lumped with the last author field and appear on the
826 - Made sure the titlepage is always shown with --use-latex-docinfo,
827 even if the document has no title.
828 - Made sure that latex doesn't fill in today's date if no date field
830 - Added support for section subtitles.
832 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
835 * docutils/writers/null.py: Added to project; a do-nothing Writer.
837 * docs/api/publisher.txt:
839 - Added "``publish_parts`` Details" section.
841 * docutils/dev/repository.txt: Added to project; information about the
842 Docutils Subversion repository.
844 * docs/ref/docutils.dtd:
846 - Added a ``stub`` attribute to the ``colspec`` element via the
847 ``tbl.colspec.att`` parameter entity.
848 - Allowed topic elements within sidebars
849 - Added an ``align`` attribute to the ``figure`` element.
851 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
855 Release 0.3.7 (2004-12-24)
856 ==========================
858 * docutils/frontend.py:
860 - Added options: --input-encoding-error-handler,
861 --record-dependencies, --leave-footnote-reference-space,
863 - Added command-line and config file support for "overrides" setting
868 - Added support for input encoding error handler.
872 - Added dispatch_visit and dispatch_departure methods to
873 NodeVisitor; useful as a hook for Visitors.
874 - Changed structure of ``line_block``; added ``line``.
875 - Added ``compound`` node class.
876 - Added a mechanism for Visitors to transitionally ignore new node
881 - Moved ``escape2null`` and ``unescape`` functions from
882 docutils/parsers/rst/states.py.
884 * docutils/parsers/rst/roles.py:
887 - Changed role function API: the "text" parameter now takes
888 null-escaped interpreted text content.
890 * docutils/parsers/rst/states.py:
892 - Fixed bug where a "role" directive in a nested parse would crash
893 the parser; the state machine's "language" attribute was not being
895 - Added support for line block syntax.
896 - Fixed directive parsing bug: argument-less directives didn't
897 notice that arguments were present.
898 - Removed error checking for transitions.
899 - Added support for multiple classifiers in definition list items.
900 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
901 - Changed role function API: the "text" parameter now takes
902 null-escaped interpreted text content.
903 - Empty sections and documents are allowed now.
905 * docutils/parsers/rst/directives/__init__.py:
907 - Added ``encoding`` directive option conversion function.
908 - Allow multiple class names in class_option conversion function.
910 * docutils/parsers/rst/directives/body.py:
912 - Converted the line-block directive to use the new structure.
913 - Extracted the old line-block functionality to the ``block``
914 function (still used).
915 - Added ``compound`` directive (thanks to Lea Wiemann).
917 * docutils/parsers/rst/directives/misc.py:
919 - Added "encoding" option to "include" and "raw" directives.
920 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
921 - Allow multiple class names in the "class" directive.
923 * docutils/parsers/rst/directives/parts.py:
925 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
926 options. Thanks to Lele Gaifax.
928 * docutils/parsers/rst/directives/tables.py:
930 - Added "encoding" directive to "csv-table" directive.
931 - Added workaround for lack of Unicode support in csv.py, for
934 * docutils/transforms/misc.py:
936 - Fixed bug when multiple "class" directives are applied to a single
938 - Enabled multiple format names for "raw" directive.
940 * docutils/transforms/references.py:
942 - Added support for trimming whitespace from beside substitution
945 * docutils/transforms/universal.py:
947 - FinalChecks now checks for illegal transitions and moves
948 transitions between sections.
950 * docutils/writers/html4css1.py:
952 - HTMLTranslator.encode now converts U+00A0 to " ".
953 - "stylesheet" and "stylesheet_path" settings are now mutually
955 - Added support for the new line_block/line structure.
956 - --footnote-references now overrides
957 --trim-footnote-reference-space, if applicable.
958 - Added support for ``compound`` elements.
959 - Enabled multiple format names for "raw" directive.
960 - ``<p>`` tags of a paragraph which is the only visible child of the
961 document node are no longer stripped.
962 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
963 new method ``should_be_compact_paragraph()``.
964 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
966 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
967 the output if they have their ``class`` attribute set.
968 - The whole document is now surrounded by a ``<div
969 class="document">`` element.
970 - Body-level images are now wrapped by their own ``<div>`` elements,
971 with image classes copied to the wrapper, and for images which
972 have the ``:align:`` option set, the surrounding ``<div>`` now
973 receives a class attribute (like ``class="align-left"``).
975 * docutils/writers/latex2e.py:
977 - no newline after depart_term.
978 - Added translations for some Unicode quotes.
979 - Added option "font-encoding", made package AE the default.
980 - "stylesheet" and "stylesheet_path" settings are now mutually
982 - --footnote-references now overrides
983 --trim-footnote-reference-space, if applicable.
984 - The footnote label style now matches the footnote reference style
985 ("brackets" or "superscript").
986 - Added support for ``compound`` elements.
987 - Enabled multiple format names for "raw" directive.
989 * docs/ref/docutils.dtd:
991 - Changed structure of the ``line_block`` element; added ``line``.
992 - Added ``compound`` element.
993 - Added "ltrim" and "rtrim" attributes to
994 ``substitution_definition`` element.
995 - Enabled multiple format names for ``raw`` element.
996 - Enabled multiple classifiers in ``definition_list_item`` elements.
998 * docs/ref/rst/directives.txt
1000 - Marked "line-block" as deprecated.
1001 - "Class" directive now allows multiple class names.
1002 - Added "Rationale for Class Attribute Value Conversion".
1003 - Added warning about "raw" overuse/abuse.
1005 * docs/ref/rst/restructuredtext.txt:
1007 - Added syntax for line blocks.
1008 - Definition list items may have multiple classifiers.
1010 * docs/ref/rst/roles.txt:
1014 * tools/stylesheets/default.css:
1016 - Added support for the new line_block structure.
1017 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1020 Release 0.3.5 (2004-07-29)
1021 ==========================
1025 * _`Documentation cleanup/reorganization`.
1027 - Created new subdirectories of docs/:
1029 * ``docs/user/``: introductory/tutorial material for end-users
1030 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1031 * ``docs/api/``: API reference material for client-developers
1032 * ``docs/ref/``: reference material for all groups
1033 * ``docs/howto/``: for component-developers and core-developers
1034 * ``docs/peps/``: Python Enhancement Proposals
1036 - Moved ``docs/*`` to ``docs/user/``.
1037 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1038 ``spec/`` to ``docs/dev``.
1039 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1040 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1041 - Moved ``alternatives.txt``, and ``problems.txt`` from
1042 ``spec/rst/`` to ``docs/dev/rst/``.
1043 - Moved ``reStructuredText.txt``, ``directives.txt``,
1044 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1045 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1046 ``roles.txt``, ``reStructuredText.txt`` to
1047 ``restructuredtext.txt``.
1048 - Moved ``spec/howto/`` to ``docs/howto``.
1050 In order to keep the CVS history of moved files, we supplied
1051 SourceForge with a `script for modifying the Docutils CVS
1054 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1056 After running the cleanup script:
1058 - Added ``docs/index.txt``.
1059 - Added a ``.htaccess`` file to the ``web`` module, containing
1060 redirects for all old paths to new paths. They'll preserve
1061 fragments (the "#name" part of a URL), and won't clutter up the
1062 file system, and will correct the URL in the user's browser.
1063 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1064 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1065 the "To Do" list itself in ``docs/dev/todo.txt``.
1066 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1067 section of ``docs/dev/todo.txt``.
1068 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1069 - Added "How To Report Bugs" to ``BUGS.txt``.
1070 - Went through all the sources and docs (including under web/) and
1071 updated links. Mostly done by Lea Wiemann; thanks Lea!
1072 (Still need to update links in the sandboxes.)
1076 * BUGS.txt: Added to project.
1078 * THANKS.txt: Added to project.
1080 * docutils/__init__.py:
1082 - 0.3.4: Post-release.
1086 - Added special error handling & advice for UnicodeEncodeError.
1087 - Refactored Publisher.publish (simplified exception handling &
1088 extracted debug dumps).
1089 - Renamed "enable_exit" parameter of convenience functions to
1090 "enable_exit_status".
1091 - Enabled traceback (exception propagation) by default in
1092 programmatic convenience functions.
1093 - Now publish_file and publish_cmdline convenience functions return
1094 the encoded string results in addition to their regular I/O.
1095 - Extracted common code from publish_file, publish_string, and
1096 publish_parts, into new publish_programmatically. Extracted
1097 settings code to ``Publisher.process_programmatic_settings``.
1098 - In Publisher.publish, disabled ``settings_overrides`` when
1099 ``settings`` is supplied; redundant.
1101 * docutils/frontend.py:
1103 - Added help text for "--output-encoding-error-handler" and
1104 "--error-encoding-error-handler".
1105 - Renamed "--exit" to "--exit-status".
1106 - Simplified default-setting code.
1108 * docutils/parsers/rst/__init__.py:
1110 - Added "--pep-base-url" and "--rfc-base-url" options.
1112 * docutils/parsers/rst/states.py:
1114 - Made URI recognition more aggressive and intelligent.
1116 * docutils/parsers/rst/directives/__init__.py:
1118 - Added several directive option conversion functions.
1120 * docutils/parsers/rst/directives/body.py:
1122 - Moved "table" directive to tables.py.
1124 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1127 * docutils/writers/latex2e.py:
1129 - Added "--table-style=(standard|booktabs|nolines)"
1130 - figures get "here" option (LaTeX per default puts them at bottom),
1131 and figure content is centered.
1132 - Rowspan support for tables.
1133 - Fix: admonition titles before first section.
1134 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1135 - Replave ``_`` in literal by an underlined blank, because it has the correct
1137 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1138 - A few unicode replacements, if output_encoding != utf
1139 - Add "--graphicx-option".
1140 - Indent literal-blocks.
1141 - Fix: omit ``\maketitle`` when there is no document title.
1143 * docs/index.txt: "Docutils Project Documentation Overview", added to
1146 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1147 Tool", added to project.
1149 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1151 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1153 * docs/dev/policies.txt: Added to project (extracted from
1154 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1156 * docs/dev/release.txt: Added to project (extracted from
1157 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1159 * docs/dev/testing.txt: Added to project.
1161 * docs/dev/website.txt: Added to project (extracted from
1162 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1164 * docs/ref/rst/directives.txt:
1166 - Added directives: "table", "csv-table".
1168 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1169 added to project. 1 page for syntax, and a 1 page reference for
1170 directives and roles. Source text to be used as-is; not meant to be
1173 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1174 with a change of title.
1176 * test/functional/, contents, and test/test_functional.py: Added to
1179 * tools/buildhtml.py: Fixed bug with config file handling.
1181 * tools/html.py: Removed from project (duplicate of rst2html.py).
1183 * tools/pep2html.py: Removed from project (duplicate of Python's
1184 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1185 Docutils-related PEPs in docs/peps/).
1187 * tools/rst2pseudoxml.py: Renamed from publish.py.
1189 * tools/rst2xml.py: Renamed from docutils-xml.py.
1191 * tools/test.txt: Removed from project; moved to
1192 docs/user/rst/demo.txt.
1194 * setup.py: Now also installs ``rst2latex.py``.
1197 Release 0.3.3 (2004-05-09)
1198 ==========================
1200 * docutils/__init__.py:
1202 - 0.3.1: Reorganized config file format (multiple sections); see
1204 - Added unknown_reference_resolvers attribute to TransformSpec.
1205 - 0.3.2: Interpreted text reorganization.
1210 - Catch system messages to stop tracebacks from parsing errors.
1211 - Catch exceptions during processing report & exit without
1212 tracebacks, except when "--traceback" used.
1213 - Reordered components for OptionParser; application comes last.
1214 - Added "config_section" parameter to several methods and functions,
1215 allowing front ends to easily specify their config file sections.
1216 - Added publish_parts convenience function to allow access to individual
1217 parts of a document.
1219 * docutils/examples.py: Added to project; practical examples of
1220 Docutils client code, to be used as-is or as models for variations.
1222 * docutils/frontend.py:
1224 - Added "--traceback" & "--no-traceback" options ("traceback"
1226 - Implemented support for config file reorganization:
1227 ``standard_config_files`` moved from ``ConfigParser`` to
1228 ``OptionParser``; added
1229 ``OptionParser.get_config_file_settings()`` and
1230 ``.get_standard_config_settings()``; support for old "[options]"
1231 section (with deprecation warning) and mapping from old to new
1233 - Reimplemented setting validation.
1234 - Enabled flexible boolean values: yes/no, true/false, on/off.
1235 - Added ``Values``, a subclass of ``optparse.Values``, with support
1236 for list setting attributes.
1237 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1238 thanks to Beni Cherniavsky.
1239 - Added "--no-section-numbering" option.
1243 - Catch IOErrors when opening source & destination files, report &
1244 exit without tracebacks. Added ``handle_io_errors`` parameter to
1245 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1247 * docutils/nodes.py:
1249 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1250 method definitions (via ``exec``) to dynamic assignments (via
1251 ``setattr``); thanks to Roman Suzi.
1252 - Encapsulated visitor dynamic assignments in a function; thanks to
1254 - Added indirect_reference_name attribute to the Targetable
1255 class. This attribute holds the whitespace_normalized_name
1256 (contains mixed case) of a target.
1258 * docutils/statemachine.py:
1260 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1261 - Added ``StringList.get_2D_block``.
1263 * docutils/utils.py:
1265 - Added "level" attribute to SystemMessage exceptions.
1267 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1270 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1273 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1274 Marcelo Huerta San Martin.
1276 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1277 mappings by Lalo Martins.
1279 * docutils/languages/ru.py: Added to project; Russian mappings by
1282 * docutils/parsers/rst/roles.py: Added to project. Contains
1283 interpreted text role functions, a registry for interpreted text
1284 roles, and an API for adding to and retrieving from the registry.
1285 Contributed by Edward Loper.
1287 * docutils/parsers/rst/states.py:
1289 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1290 - Allowed true em-dash character and "---" as block quote
1292 - Added support for <angle-bracketed> complex option arguments
1294 - Fixed handling of backslashes in substitution definitions.
1295 - Fixed off-by-1 error with extra whitespace after substitution
1296 definition directive.
1297 - Added inline markup parsing to field lists' field names.
1298 - Added support for quoted (and unindented) literal blocks.
1299 Driven in part by a bribe from Frank Siebenlist (thanks!).
1300 - Parser now handles escapes in URIs correctly.
1301 - Made embedded-URIs' reference text omittable. Idea from Beni
1303 - Refactored explicit target processing code.
1304 - Added name attribute to references containing the reference name only
1305 through whitespace_normalize_name (no case changes).
1306 - parse_target no longer returns the refname after going through
1307 normalize_name. This is now handled in make_target.
1308 - Fixed bug relating to role-less interpreted text in non-English
1310 - Reorganized interpreted text processing; moved code into the new
1311 roles.py module. Contributed by Edward Loper.
1312 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1313 ``parse_directive_block``.
1315 * docutils/parsers/rst/tableparser.py:
1317 - Reworked for ``StringList``, to support "include" directives in
1320 * docutils/parsers/rst/directives/__init__.py:
1322 - Renamed ``unchanged()`` directive option conversion function to
1323 ``unchanged_required``, and added a new ``unchanged``.
1324 - Catch unicode value too high error; fixes bug 781766.
1325 - Beefed up directive error reporting.
1327 * docutils/parsers/rst/directives/body.py:
1329 - Added basic "table" directive.
1331 * docutils/parsers/rst/directives/images.py:
1333 - Added "target" option to "image" directive.
1334 - Added name attribute to references containing the reference name only
1335 through whitespace_normalize_name (no case changes).
1337 * docutils/parsers/rst/directives/misc.py:
1339 - Isolated the import of the ``urllib2`` module; was causing
1340 problems on SourceForge (``libssl.so.2`` unavailable?).
1341 - Added the "role" directive for declaring custom interpreted text
1344 * docutils/parsers/rst/directives/parts.py:
1346 - The "contents" directive does more work up-front, creating the
1347 "topic" and "title", and leaving the "pending" node for the
1348 transform. Allows earlier reference resolution; fixes subtle bug.
1350 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1351 mappings by Jannie Hofmeyr.
1353 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1354 mappings by Marek Blaha.
1356 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1357 mappings by Marcelo Huerta San Martin.
1359 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1360 Portuguese mappings by Lalo Martins.
1362 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1363 mappings by Roman Suzi.
1365 * docutils/transforms/parts.py:
1367 - The "contents" directive does more work up-front, creating the
1368 "topic" and "title", and leaving the "pending" node for the
1369 transform. Allows earlier reference resolution; fixes subtle bug.
1370 - Added support for disabling of section numbering.
1372 * docutils/transforms/references.py:
1374 - Verifying that external targets are truly targets and not indirect
1375 references. This is because we are now adding a "name" attribute to
1376 references in addition to targets. Note sure if this is correct!
1377 - Added code to hook into the unknown_reference_resolvers list for a
1378 transformer in resolve_indirect_target. This allows the
1379 unknown_reference_resolvers to keep around indirect targets which
1380 docutils doesn't know about.
1381 - Added specific error message for duplicate targets.
1383 * docutils/transforms/universal.py:
1385 - Added FilterMessages transform (removes system messages below the
1386 verbosity threshold).
1387 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1388 to FinalCheckVisitor for application-specific handling of
1389 unresolvable references.
1390 - Added specific error message for duplicate targets.
1392 * docutils/writers/__init__.py:
1394 - Added assemble_parts method to the Writer class to allow for
1395 access to a documents individual parts.
1396 - Documented & set default for ``Writer.output`` attribute.
1398 * docutils/writers/html4css1.py:
1400 - Fixed unicode handling of attribute values (bug 760673).
1401 - Prevent duplication of "class" attribute values (bug report from
1403 - Improved table grid/border handling (prompted by report from Bob
1405 - Added support for table titles.
1406 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1408 - Added functionality to keep track of individual parts of a document
1409 and store them in a dictionary as the "parts" attribute of the writer.
1410 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1411 - Added proper support for the "scale" attribute of the "image"
1412 element. Contributed by Brent Cook.
1413 - Added ``--initial-header-level`` option.
1414 - Fixed bug: the body_pre_docinfo segment depended on there being a
1415 docinfo; if no docinfo, the document title was incorporated into
1416 the body segment. Adversely affected the publish_parts interface.
1418 * docutils/writers/latex2e.py:
1420 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1421 about a missing file.
1422 - Added options and support: ``--compound-enumerators``,
1423 ``--section-prefix-for-enumerators``, and
1424 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1426 - Added option ``--use-verbatim-when-possible``, to avoid
1427 problematic characters (eg, '~' in italian) in literal blocks.
1428 - It's now possible to use four section levels in the `book` and
1429 `report` LaTeX classes. The default `article` class still has
1432 * docs/config.txt: "Docutils Configuration Files", added to project.
1433 Moved config file entry descriptions from tools.txt.
1437 - Moved config file entry descriptions to config.txt.
1439 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1442 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1443 Text Roles", added to project.
1445 * spec/rst/reStructuredText.txt:
1447 - Added description of support for <angle-bracketed> complex option
1448 arguments to option lists.
1449 - Added subsections for indented and quoted literal blocks.
1451 * test: Continually adding & updating tests.
1453 - Added test/test_settings.py & test/data/config_*.txt support
1455 - Added test/test_writers/test_htmlfragment.py.
1457 * test/DocutilsTestSupport.py:
1459 - Refactored LaTeX publisher test suite/case class names to make
1460 testing other writers easier.
1461 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1462 to test the processing of HTML fragments which use the new
1463 publish_parts convenience function.
1465 * tools/buildhtml.py:
1467 - Added support for the "--prune" option.
1468 - Removed dependency on pep2html.py; plaintext PEPs no longer
1471 * tools/docutils.conf:
1473 - Updated for configuration file reorganization.
1475 * tools/rst2html.py:
1477 - copied from tools/html.py
1481 - added a 'scripts' section to configuration
1482 - added 'tools/rst2html.py' to the scripts section
1485 Release 0.3 (2003-06-24)
1486 ========================
1490 * Renamed "attribute" to "option" for directives/extensions.
1492 * Renamed transform method "transform" to "apply".
1494 * Renamed "options" to "settings" for runtime settings (as set by
1495 command-line options). Sometimes "option" (singular) became
1496 "settings" (plural). Some variations below:
1498 - document.options -> document.settings (stored in other objects as
1500 - option_spec -> settings_spec (not directives though)
1501 - OptionSpec -> SettingsSpec
1502 - cmdline_options -> settings_spec
1503 - relative_path_options -> relative_path_settings
1504 - option_default_overrides -> settings_default_overrides
1505 - Publisher.set_options -> Publisher.get_settings
1509 * COPYING.txt: Added "Public Domain Dedication".
1511 * FAQ.txt: Frequently asked questions, added to project.
1515 - Updated with PyPI Trove classifiers.
1516 - Conditional installation of third-party modules.
1518 * docutils/__init__.py:
1520 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1521 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1522 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1523 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1524 option and its effect on the PEP template & writer.
1525 - Bumped version to 0.2.4 due to changes to the PEP template &
1527 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1528 - Added ``TransformSpec`` class for new transform system.
1529 - Bumped version to 0.2.6 for API changes (renaming).
1530 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1531 convenience functions.
1532 - Added ``Component.component_type`` attribute.
1533 - Bumped version to 0.2.8 because of the internal parser switch from
1534 plain lists to the docutils.statemachine.StringList objects.
1535 - Bumped version to 0.2.9 because of the frontend.py API changes.
1536 - Bumped version to 0.2.10 due to changes to the project layout
1537 (third-party modules removed from the "docutils" package), and
1538 signature changes in ``io.Input``/``io.Output``.
1539 - Changed version to 0.3.0 for release.
1543 - Made ``publish()`` a bit more convenient.
1544 - Generalized ``Publisher.set_io``.
1545 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1546 parameters; improved its docstring.
1547 - Added ``publish_file()`` and ``publish_string()``.
1548 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1550 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1551 "--dump-transforms" hidden options.
1552 - Added ``Publisher.apply_transforms()`` method.
1553 - Added ``Publisher.set_components()`` method; support for
1554 ``publish_*()`` conveninece functions.
1555 - Moved config file processing to docutils/frontend.py.
1556 - Added support for exit status ("exit_level" setting &
1557 ``enable_exit`` parameter for Publisher.publish() and convenience
1560 * docutils/frontend.py:
1562 - Check for & exit on identical source & destination paths.
1563 - Fixed bug with absolute paths & "--config".
1564 - Set non-command-line defaults in ``OptionParser.__init__()``:
1565 ``_source`` & ``_destination``.
1566 - Distributed ``relative_path_settings`` to components; updated
1567 ``OptionParser.populate_from_components()`` to combine it all.
1568 - Require list of keys in ``make_paths_absolute`` (was implicit in
1569 global ``relative_path_settings``).
1570 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1571 "--dump-settings", and "--dump-transforms" hidden options.
1572 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1573 code, replaced with correct code.
1574 - Added validation functionality for config files.
1575 - Added "--error-encoding" option/setting, "_disable_config"
1577 - Added encoding validation; updated "--input-encoding" and
1578 "--output-encoding"; added "--error-encoding-error-handler" and
1579 "--output-encoding-error-handler".
1580 - Moved config file processing from docutils/core.py.
1581 - Updated ``OptionParser.populate_from_components`` to handle new
1582 ``SettingsSpec.settings_defaults`` dict.
1583 - Added support for "-" => stdin/stdout.
1584 - Added "exit_level" setting ("--exit" option).
1588 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1589 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1590 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1591 - ``FileOutput.write()`` now returns the encoded output string.
1592 - Try to get path/stream name automatically in ``FileInput`` &
1594 - Added defaults for source & destination paths.
1595 - Allow for Unicode I/O with an explicit "unicode" encoding.
1596 - Added ``Output.encode()``.
1597 - Removed dependency on runtime settings; pass encoding directly.
1598 - Recognize Unicode strings in ``Input.decode()``.
1599 - Added support for output encoding error handlers.
1601 * docutils/nodes.py:
1603 - Added "Invisible" element category class.
1604 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1605 modification during a traversal.
1606 - Added element classes: ``line_block``, ``generated``, ``address``,
1607 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1608 ``superscript``, ``subscript``, ``inline``
1609 - Added support for lists of nodes to ``Element.insert()``.
1610 - Fixed parent linking in ``Element.replace()``.
1611 - Added new abstract superclass ``FixedTextElement``; adds
1612 "xml:space" attribute.
1613 - Added support for "line" attribute of ``system_message`` nodes.
1614 - Added support for the observer pattern from ``utils.Reporter``.
1615 Added ``parse_messages`` and ``transform_messages`` attributes to
1616 ``document``, removed ``messages``. Added ``note_parse_message``
1617 and ``note_transform_message`` methods.
1618 - Added support for improved diagnostics:
1620 - Added "document", "source", and "line" internal attributes to
1621 ``Node``, set by ``Node.setup_child()``.
1622 - Converted variations on ``node.parent = self`` to
1623 ``self.setup_child(node)``.
1624 - Added ``document.current_source`` & ``.current_line``
1625 attributes, and ``.note_source`` observer method.
1626 - Changed "system_message" output to GNU-Tools format.
1628 - Added a "rawsource" attribute to the ``Text`` class, for text
1629 before backslash-escape resolution.
1630 - Support for new transform system.
1631 - Reworked ``pending`` element.
1632 - Fixed XML DOM bug (SF #660611).
1633 - Removed the ``interpeted`` element class and added
1634 ``title_reference``, ``abbreviation``, ``acronym``.
1635 - Made substitutions case-sensitive-but-forgiving; moved some code
1637 - Fixed Unicode bug on element attributes (report: William Dode).
1639 * docutils/optik.py: Removed from project; replaced with
1640 extras/optparse.py and extras/textwrap.py. These will be installed
1641 only if they're not already present in the Python installation.
1643 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1644 only if it's not already present in the Python installation.
1646 * docutils/statemachine.py:
1648 - Factored out ``State.add_initial_transitions()`` so it can be
1650 - Converted whitespace-specific "blank" and "indent" transitions
1651 from special-case code to ordinary transitions: removed
1652 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1653 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1654 ``ws_initial_transitions`` attributes.
1655 - Removed ``State.match_transition()`` after merging it into
1657 - Added ``StateCorrection`` exception.
1658 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1659 (moved ``TransitionCorrection`` support there too.)
1660 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1661 ``EOFError`` instead of ``IndexError``.
1662 - Added ``State.no_match`` method.
1663 - Added support for the Observer pattern, triggered by input line
1665 - Added ``strip_top`` parameter to
1666 ``StateMachineWS.get_first_known_indented``.
1667 - Made ``context`` a parameter to ``StateMachine.run()``.
1668 - Added ``ViewList`` & ``StringList`` classes;
1669 ``extract_indented()`` becomes ``StringList.get_indented()``.
1670 - Added ``StateMachine.insert_input()``.
1671 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1672 thanks to) Fred Drake.
1674 * docutils/utils.py:
1676 - Added a ``source`` attribute to Reporter instances and
1677 ``system_message`` elements.
1678 - Added an observer pattern to ``utils.Reporter`` to keep track of
1680 - Fixed bugs in ``relative_path()``.
1681 - Added support for improved diagnostics.
1682 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1683 - Added support for encoding Reporter stderr output, and encoding
1685 - Reporter keeps track of the highest level system message yet
1688 * docutils/languages: Fixed bibliographic field language lookups.
1690 * docutils/languages/es.py: Added to project; Spanish mappings by
1691 Marcelo Huerta San Martin.
1693 * docutils/languages/fr.py: Added to project; French mappings by
1696 * docutils/languages/it.py: Added to project; Italian mappings by
1699 * docutils/languages/sk.py: Added to project; Slovak mappings by
1702 * docutils/parser/__init__.py:
1704 - Added ``Parser.finish_parse()`` method.
1706 * docutils/parser/rst/__init__.py:
1708 - Added options: "--pep-references", "--rfc-references",
1709 "--tab-width", "--trim-footnote-reference-space".
1711 * docutils/parsers/rst/states.py:
1713 - Changed "title under/overline too short" system messages from INFO
1714 to WARNING, and fixed its insertion location.
1715 - Fixed enumerated list item parsing to allow paragraphs & section
1716 titles to begin with enumerators.
1717 - Converted system messages to use the new "line" attribute.
1718 - Fixed a substitution reference edge case.
1719 - Added support for "--pep-references" and "--rfc-references"
1720 options; reworked ``Inliner`` code to make customization easier.
1721 - Removed field argument parsing.
1722 - Added support for short section title over/underlines.
1723 - Fixed "simple reference name" regexp to ignore text like
1724 "object.__method__"; not an anonymous reference.
1725 - Added support for improved diagnostics.
1726 - Reworked directive API, based on Dethe Elza's contribution. Added
1727 ``Body.parse_directive()``, ``.parse_directive_options()``,
1728 ``.parse_directive_arguments()`` methods.
1729 - Added ``ExtensionOptions`` class, to parse directive options
1730 without parsing field bodies. Factored
1731 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1732 ``ExtensionOptions``.
1733 - Improved definition list term/classifier parsing.
1734 - Added warnings for unknown directives.
1735 - Renamed ``Stuff`` to ``Struct``.
1736 - Now flagged as errors: transitions at the beginning or end of
1737 sections, empty sections (except title), and empty documents.
1738 - Updated for ``statemachine.StringList``.
1739 - Enabled recognition of schemeless email addresses in targets.
1740 - Added support for embedded URIs in hyperlink references.
1741 - Added backslash-escapes to inline markup end-string suffix.
1742 - Added support for correct interpreted text processing.
1743 - Fixed nested title parsing (topic, sidebar directives).
1744 - Added special processing of backslash-escaped whitespace (idea
1745 from David Abrahams).
1746 - Made substitutions case-sensitive-but-forgiving; moved some code
1747 to ``docutils.nodes``.
1748 - Added support for block quote attributions.
1749 - Added a kludge to work-around a conflict between the bubble-up
1750 parser strategy and short titles (<= 3 char-long over- &
1751 underlines). Fixes SF bug #738803 "infinite loop with multiple
1752 titles" submitted by Jason Diamond.
1753 - Added explicit interpreted text roles for standard inline markup:
1754 "emphasis", "strong", "literal".
1755 - Implemented "superscript" and "subscript" interpreted text roles.
1756 - Added initial support for "abbreviation" and "acronym" roles;
1758 - Added support for "--trim-footnote-reference-space" option.
1759 - Optional space before colons in directives & hyperlink targets.
1761 * docutils/parsers/rst/tableparser.py:
1763 - Fixed a bug that was producing unwanted empty rows in "simple"
1765 - Detect bad column spans in "simple" tables.
1767 * docutils/parsers/rst/directives: Updated all directive functions to
1770 * docutils/parsers/rst/directives/__init__.py:
1772 - Added ``flag()``, ``unchanged()``, ``path()``,
1773 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1774 directive option helper functions.
1775 - Added warnings for unknown directives.
1776 - Return ``None`` for missing directives.
1777 - Added ``register_directive()``, thanks to William Dode and Paul
1780 * docutils/parsers/rst/directives/admonitions.py:
1782 - Added "admonition" directive.
1784 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1785 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1786 "parsed-literal", "rubric", "epigraph", "highlights" and
1787 "pull-quote" directives.
1789 * docutils/parsers/rst/directives/images.py:
1791 - Added an "align" attribute to the "image" & "figure" directives
1792 (by Adam Chodorowski).
1793 - Added "class" option to "image", and "figclass" to "figure".
1795 * docutils/parsers/rst/directives/misc.py:
1797 - Added "include", "raw", and "replace" directives, courtesy of
1799 - Added "unicode" and "class" directives.
1801 * docutils/parsers/rst/directives/parts.py:
1803 - Added the "sectnum" directive; by Dmitry Jemerov.
1804 - Added "class" option to "contents" directive.
1806 * docutils/parsers/rst/directives/references.py: Added to project.
1807 Contains the "target-notes" directive.
1809 * docutils/parsers/rst/languages/__init__.py:
1811 - Return ``None`` from get_language() for missing language modules.
1813 * docutils/parsers/rst/languages/de.py: Added to project; German
1814 mappings by Engelbert Gruber.
1816 * docutils/parsers/rst/languages/en.py:
1818 - Added interpreted text roles mapping.
1820 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1821 mappings by Marcelo Huerta San Martin.
1823 * docutils/parsers/rst/languages/fr.py: Added to project; French
1824 mappings by William Dode.
1826 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1827 mappings by Nicola Larosa.
1829 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1830 mappings by Miroslav Vasko.
1832 * docutils/readers/__init__.py:
1834 - Added support for the observer pattern from ``utils.Reporter``, in
1835 ``Reader.parse`` and ``Reader.transform``.
1836 - Removed ``Reader.transform()`` method.
1837 - Added default parameter values to ``Reader.__init__()`` to make
1838 instantiation easier.
1839 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1841 * docutils/readers/pep.py:
1843 - Added the ``peps.TargetNotes`` transform to the Reader.
1844 - Removed PEP & RFC reference detection code; moved to
1845 parsers/rst/states.py as options (enabled here by default).
1846 - Added support for pre-acceptance PEPs (no PEP number yet).
1847 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1850 * docutils/readers/python: Python Source Reader subpackage added to
1851 project, including preliminary versions of:
1854 - moduleparser.py: Parser for Python modules.
1856 * docutils/transforms/__init__.py:
1858 - Added ``Transformer`` class and completed transform reform.
1859 - Added unknown_reference_resolvers list for each transformer. This list holds
1860 the list of functions provided by each component of the transformer that
1861 help resolve references.
1863 * docutils/transforms/frontmatter.py:
1865 - Improved support for generic fields.
1866 - Fixed bibliographic field language lookups.
1868 * docutils/transforms/misc.py: Added to project. Miscellaneous
1871 * docutils/transforms/parts.py:
1873 - Moved the "id" attribute from TOC list items to the references
1874 (``Contents.build_contents()``).
1875 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1876 - Added "class" attribute support to ``Contents``.
1878 * docutils/transforms/peps.py:
1880 - Added ``mask_email()`` function, updating to pep2html.py's
1882 - Linked "Content-Type: text/x-rst" to PEP 12.
1883 - Added the ``TargetNotes`` PEP-specific transform.
1884 - Added ``TargetNotes.cleanup_callback``.
1885 - Added title check to ``Headers``.
1887 * docutils/transforms/references.py:
1889 - Added the ``TargetNotes`` generic transform.
1890 - Split ``Hyperlinks`` into multiple transforms.
1891 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1892 - Added check for circular indirect references.
1893 - Made substitutions case-sensitive-but-forgiving.
1895 * docutils/transforms/universal.py:
1897 - Added support for the "--expose-internal-attributes" option.
1898 - Removed ``Pending`` transform classes & data.
1900 * docutils/writers/__init__.py:
1902 - Removed ``Writer.transform()`` method.
1904 * docutils/writers/docutils-xml.py:
1906 - Added XML and doctype declarations.
1907 - Added "--no-doctype" and "--no-xml-declaration" options.
1909 * docutils/writers/html4css1.py:
1911 - "name" attributes only on these tags: a, applet, form, frame,
1913 - Added "name" attribute to <a> in section titles for Netscape 4
1914 support (bug report: Pearu Peterson).
1915 - Fixed targets (names) on footnote, citation, topic title,
1916 problematic, and system_message nodes (for Netscape 4).
1917 - Changed field names from "<td>" to "<th>".
1918 - Added "@" to "@" encoding to thwart address harvesters.
1919 - Improved the vertical whitespace optimization; ignore "invisible"
1920 nodes (targets, comments, etc.).
1921 - Improved inline literals with ``<span class="pre">`` around chunks
1922 of text and `` `` for runs of spaces.
1923 - Improved modularity of output; added ``self.body_pre_docinfo`` and
1924 ``self.docinfo`` segments.
1925 - Added support for "line_block", "address" elements.
1926 - Improved backlinks (footnotes & system_messages).
1927 - Improved system_message output.
1928 - Redefined "--stylesheet" as containing an invariant URL, used
1929 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
1931 - Added "--footnote-references" option (superscript or brackets).
1932 - Added "--compact-lists" and "--no-compact-lists" options.
1933 - Added "--embed-stylesheet" and "--link-stylesheet" options;
1934 factored out ``HTMLTranslator.get_stylesheet_reference()``.
1935 - Improved field list rendering.
1936 - Added Docutils version to "generator" meta tag.
1937 - Fixed a bug with images; they must be inline, so wrapped in <p>.
1938 - Improved layout of <pre> HTML source.
1939 - Fixed attribute typo on <colspec>.
1940 - Refined XML prologue.
1941 - Support for no stylesheet.
1942 - Removed "interpreted" element support.
1943 - Added support for "title_reference", "sidebar", "attribution",
1944 "rubric", and generic "admonition" elements.
1945 - Added "--attribution" option.
1946 - Added support for "inline", "subscript", "superscript" elements.
1947 - Added initial support for "abbreviation" and "acronym";
1950 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
1954 - Double quotes in literal blocks (special treatment for de/ngerman).
1955 - Added '--hyperlink-color' option ('0' turns off coloring of links).
1956 - Added "--attribution" option.
1957 - Right align attributions.
1959 * docutils/writers/pep_html.py:
1961 - Parameterized output encoding in PEP template.
1962 - Reworked substitutions from ``locals()`` into ``subs`` dict.
1963 - Redefined "--pep-stylesheet" as containing an invariant URL, used
1964 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
1966 - Added an override on the "--footnote-references" option.
1967 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
1968 - Added Docutils version to "generator" meta tag.
1969 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1973 - Added a "silent" setting for ``buildhtml.py``.
1974 - Added a "Getting Help" section.
1975 - Rearranged the structure.
1976 - Kept up to date, with new settings, command-line options etc.
1977 - Added section for ``rst2latex.py`` (Engelbert Gruber).
1978 - Converted settings table into a definition list.
1980 * docs/rst/quickstart.txt:
1982 - Added a table of contents.
1983 - Added feedback information.
1984 - Added mention of minimum section title underline lengths.
1985 - Removed the 4-character minimum for section title underlines.
1987 * docs/rst/quickref.html:
1989 - Added a "Getting Help" section.
1990 - Added a style to make section title backlinks more subtle.
1991 - Added mention of minimum section title underline lengths.
1992 - Removed the 4-character minimum for section title underlines.
1994 * extras: Directory added to project; contains third-party modules
1995 that Docutils depends on (optparse, textwrap, roman). These are
1996 only installed if they're not already present.
1998 * licenses: Directory added to project; contains copies of license
1999 files for non-public-domain files.
2003 - Changed the focus. It's about DTD elements: structural
2004 relationships, semantics, and external (public) attributes. Not
2005 about the element class library.
2006 - Moved some implementation-specific stuff into ``docutils.nodes``
2008 - Wrote descriptions of all common attributes and parameter
2009 entities. Filled in introductory material.
2010 - Working through the element descriptions: 55 down, 37 to go.
2011 - Removed "Representation of Horizontal Rules" to
2012 spec/rst/alternatives.txt.
2014 * spec/docutils.dtd:
2016 - Added "generated" inline element.
2017 - Added "line_block" body element.
2018 - Added "auto" attribute to "title".
2019 - Changed content models of "literal_block" and "doctest_block" to
2021 - Added ``%number;`` attribute type parameter entity.
2022 - Changed ``%structural.elements;`` to ``%section.elements``.
2023 - Updated attribute types; made more specific.
2024 - Added "address" bibliographic element.
2025 - Added "line" attribute to ``system_message`` element.
2026 - Removed "field_argument" element; "field_name" may contain
2027 multiple words and whitespace.
2028 - Changed public identifier to docutils.sf.net.
2029 - Removed "interpreted" element; added "title_reference",
2030 "abbreviation", "acronym".
2031 - Removed "refuri" attribute from "footnote_reference" and
2032 "citation_reference".
2033 - Added "sidebar", "rubric", "attribution", "admonition",
2034 "superscript", "subscript", and "inline" elements.
2036 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2038 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2040 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2042 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2045 * spec/transforms.txt: Added to project.
2047 * spec/howto: Added subdirectory, for developer how-to docs.
2049 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2050 Elza, edited & extended by David Goodger.
2052 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2055 * spec/rst/alternatives.txt:
2057 - Added "Doctree Representation of Transitions" from
2059 - Updated "Inline External Targets" & closed the debate.
2060 - Added ideas for interpreted text syntax extensions.
2061 - Added "Nested Inline Markup" section.
2063 * spec/rst/directives.txt:
2065 - Added directives: "topic", "sectnum", "target-notes",
2066 "line-block", "parsed-literal", "include", "replace", "sidebar",
2067 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2069 - Formalized descriptions of directive details.
2070 - Added an "align" attribute to the "image" & "figure" directives
2071 (by Adam Chodorowski).
2072 - Added "class" options to "topic", "sidebar", "line-block",
2073 "parsed-literal", "contents", and "image"; and "figclass" to
2076 * spec/rst/interpreted.txt: Added to project. Descriptions of
2077 interpreted text roles.
2079 * spec/rst/introduction.txt:
2081 - Added pointers to material for new users.
2083 * spec/rst/reStructuredText.txt:
2085 - Disambiguated comments (just add a newline after the "::").
2086 - Updated enumerated list description; added a discussion of the
2087 second-line validity checking.
2088 - Updated directive description.
2089 - Added a note redirecting newbies to the user docs.
2090 - Expanded description of inline markup start-strings in non-markup
2092 - Removed field arguments and made field lists a generic construct.
2093 - Removed the 4-character minimum for section title underlines.
2094 - Clarified term/classifier delimiter & inline markup ambiguity
2096 - Added "Embedded URIs".
2097 - Updated "Interpreted Text" section.
2098 - Added "Character-Level Inline Markup" section.
2100 * test: Continually adding & updating tests.
2102 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2103 - Moved test/test_pep/ to test/test_readers/test_pep/.
2104 - Added test/test_readers/test_python/.
2105 - Added test/test_writers/ (Engelbert Gruber).
2109 - Made the ``locale.setlocale()`` calls in front ends
2112 * tools/buildhtml.py:
2114 - Added "--silent" option.
2115 - Fixed bug with absolute paths & "--config".
2116 - Updated for new I/O classes.
2117 - Added some exception handling.
2118 - Separated publishers' setting defaults; prevents interference.
2119 - Updated for new ``publish_file()`` convenience function.
2121 * tools/pep-html-template:
2123 - Allow for "--embed-stylesheet".
2124 - Added Docutils version to "generator" meta tag.
2125 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2126 - Conform to XHTML spec.
2128 * tools/pep2html.py:
2130 - Made ``argv`` a parameter to ``main()``.
2131 - Added support for "Content-Type:" header & arbitrary PEP formats.
2132 - Linked "Content-Type: text/plain" to PEP 9.
2133 - Files skipped (due to an error) are not pushed onto the server.
2134 - Updated for new I/O classes.
2135 - Added ``check_requirements()`` & ``pep_type_error()``.
2136 - Added some exception handling.
2137 - Updated for new ``publish_string()`` convenience function.
2138 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2140 * tools/quicktest.py:
2142 - Added "-V"/"--version" option.
2144 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2146 * tools/unicode2rstsubs.py: Added to project. Produces character
2147 entity files (reSructuredText substitutions) from the MathML master
2150 * tools/editors: Support code for editors, added to project. Contains
2151 ``emacs/restructuredtext.el``.
2153 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2155 - Added style for chunks of inline literals.
2156 - Removed margin for first child of table cells.
2157 - Right-aligned field list names.
2158 - Support for auto-numbered section titles in TOCs.
2159 - Increased the size of inline literals (<tt>) in titles.
2160 - Restored the light gray background for inline literals.
2161 - Added support for "line_block" elements.
2162 - Added style for "address" elements.
2163 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2164 - Improved field list rendering.
2165 - Vertical whitespace improvements.
2166 - Removed "a.target" style.
2168 * tools/stylesheets/pep.css:
2170 - Fixed nested section margins.
2171 - Other changes parallel those of ``../default.css``.
2174 Release 0.2 (2002-07-31)
2175 ========================
2179 - The word "component" was being used ambiguously. From now on,
2180 "component" will be used to mean "Docutils component", as in Reader,
2181 Writer, Parser, or Transform. Portions of documents (Table of
2182 Contents, sections, etc.) will be called "document parts".
2183 - Did a grand renaming: a lot of ``verylongnames`` became
2184 ``very_long_names``.
2185 - Cleaned up imports: no more relative package imports or
2186 comma-separated lists of top-level modules.
2187 - Added support for an option values object which carries default
2188 settings and overrides (from command-line options and library use).
2189 - Added internal Unicode support, and support for both input and
2191 - Added support for the ``docutils.io.IO`` class & subclasses.
2195 * docutils/__init__.py:
2197 - Added ``ApplicationError`` and ``DataError``, for use throughout
2199 - Added ``Component`` base class for Docutils components; implements
2200 the ``supports`` method.
2201 - Added ``__version__`` (thus, ``docutils.__version__``).
2205 - Removed many keyword parameters to ``Publisher.__init__()`` and
2206 ``publish()``; bundled into an option values object. Added
2207 "argv", "usage", "description", and "option_spec" parameters for
2208 command-line support.
2209 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2211 - Reworked I/O model for ``docutils.io`` wrappers.
2212 - Updated ``Publisher.set_options()``; now returns option values
2214 - Added support for configuration files (/etc/docutils.conf,
2215 ./docutils.conf, ~/.docutils).
2216 - Added ``Publisher.setup_option_parser()``.
2217 - Added default usage message and description.
2219 * docutils/frontend.py: Added to project; support for front-end
2220 (command-line) scripts. Option specifications may be augmented by
2221 components. Requires Optik (http://optik.sf.net/) for option
2222 processing (installed locally as docutils/optik.py).
2224 * docutils/io.py: Added to project; uniform API for a variety of input
2227 * docutils/nodes.py:
2229 - Added ``TreeCopyVisitor`` class.
2230 - Added a ``copy`` method to ``Node`` and subclasses.
2231 - Added a ``SkipDeparture`` exception for visitors.
2232 - Renamed ``TreePruningException`` from ``VisitorException``.
2233 - Added docstrings to ``TreePruningException``, subclasses, and
2235 - Improved docstrings.
2236 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2237 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2239 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2240 ``PreDecorative`` mixin.
2241 - Reworked the name/id bookkeeping; to ``document``, removed
2242 ``explicit_targets`` and ``implicit_targets`` attributes, added
2243 ``nametypes`` attribute and ``set_name_id_map`` method.
2244 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2246 - Added ``document.has_name()`` method.
2247 - Fixed DOM generation for list-attributes.
2248 - Added category class ``Labeled`` (used by footnotes & citations).
2249 - Added ``Element.set_class()`` method (sets "class" attribute).
2251 * docutils/optik.py: Added to project. Combined from the Optik
2252 package, with added option groups and other modifications. The use
2253 of this module is probably only temporary.
2255 * docutils/statemachine.py:
2257 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2258 - Added underscores to improve many awkward names.
2259 - In ``string2lines()``, changed whitespace normalizing translation
2260 table to regexp; restores Python 2.0 compatibility with Unicode.
2262 * docutils/urischemes.py:
2264 - Filled in some descriptions.
2265 - Added "shttp" scheme.
2267 * docutils/utils.py:
2269 - Added ``clean_rcs_keywords`` function (moved from
2270 docutils/transforms/frontmatter.py
2271 ``DocInfo.filter_rcs_keywords``).
2272 - Added underscores to improve many awkward names.
2273 - Changed names of Reporter's thresholds:
2274 warning_level -> report_level; error_level -> halt_level.
2275 - Moved ``utils.id()`` to ``nodes.make_id()``.
2276 - Added ``relative_path(source, target)``.
2278 * docutils/languages/de.py: German mappings; added to project. Thanks
2279 to Gunnar Schwant for the translations.
2281 * docutils/languages/en.py: Added "Dedication" bibliographic field
2284 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2287 * docutils/parsers/rst/states.py:
2289 - Added underscores to improve many awkward names.
2290 - Added RFC-2822 header support.
2291 - Extracted the inline parsing code from ``RSTState`` to a separate
2292 class, ``Inliner``, which will allow easy subclassing.
2293 - Made local bindings for ``memo`` container & often-used contents
2294 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2295 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2296 - Added ``MarkupMismatch`` exception; for late corrections.
2297 - Added ``-/:`` characters to inline markup's start string prefix,
2298 ``/`` to end string suffix.
2299 - Fixed a footnote bug.
2300 - Fixed a bug with literal blocks.
2301 - Applied patch from Simon Budig: simplified regexps with symbolic
2302 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2303 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2304 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2305 - Allowed non-ASCII in "simple names" (directive names, field names,
2307 - Converted ``Inliner.patterns.initial`` to be dynamically built
2308 from parts with ``build_regexp()`` function.
2309 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2310 - Updated docstrings.
2311 - Changed "table" to "grid_table"; added "simple_table" support.
2313 * docutils/parsers/rst/tableparser.py:
2315 - Changed ``TableParser`` to ``GridTableParser``.
2316 - Added ``SimpleTableParser``.
2317 - Refactored naming.
2319 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2320 a fallback language for directive names.
2322 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2323 directive to use a ``pending`` element, used only by HTML writers.
2325 * docutils/parsers/rst/directives/parts.py: Renamed from
2328 - Added "backlinks" attribute to "contents" directive.
2330 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2331 project by Adam Chodorowski.
2333 * docutils/readers/__init__.py: Gave Readers more control over
2334 choosing and instantiating Parsers.
2336 * docutils/readers/pep.py: Added to project; for PEP processing.
2338 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2339 requires a ``component`` parameter.
2341 * docutils/transforms/components.py: Added to project; transforms
2342 related to Docutils components.
2344 * docutils/transforms/frontmatter.py:
2346 - In ``DocInfo.extract_authors``, check for a single "author" in an
2347 "authors" group, and convert it to a single "author" element.
2348 - Added support for "Dedication" and generic bibliographic fields.
2350 * docutils/transforms/peps.py: Added to project; PEP-specific.
2352 * docutils/transforms/parts.py: Renamed from old components.py.
2354 - Added filter for `Contents`, to use alt-text for inline images,
2355 and to remove inline markup that doesn't make sense in the ToC.
2356 - Added "name" attribute to TOC topic depending on its title.
2357 - Added support for optional TOC backlinks.
2359 * docutils/transforms/references.py: Fixed indirect target resolution
2360 in ``Hyperlinks`` transform.
2362 * docutils/transforms/universal.py:
2364 - Changed ``Messages`` transform to properly filter out system
2365 messages below the warning threshold.
2366 - Added ``Decorations`` transform (support for ``--generator``,
2367 ``--date``, ``--time``, ``--source-link`` options).
2369 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2370 Engelbert Gruber's PDF writer.
2372 * docutils/writers/html4css1.py:
2374 - Made XHTML-compatible (switched to lowercase element & attribute
2375 names; empty tag format).
2376 - Escape double-dashes in comment text.
2377 - Improved boilerplate & modularity of output.
2378 - Exposed modular output in Writer class.
2379 - Added a "generator" meta tag to <head>.
2380 - Added support for the ``--stylesheet`` option.
2381 - Added support for ``decoration``, ``header``, and ``footer``
2383 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2384 translation table to regexp; restores Python 2.0 compatibility
2386 - Added the translator class as instance variable to the Writer, to
2387 make it easily subclassable.
2388 - Improved option list spacing (thanks to Richard Jones).
2389 - Modified field list output.
2390 - Added backlinks to footnotes & citations.
2391 - Added percentage widths to "<col>" tags (from colspec).
2392 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2393 "<span>" changed to "<var>".
2394 - Inline literals: "<code>" changed to "<tt>".
2395 - Many changes to optimize vertical space: compact simple lists etc.
2396 - Add a command-line options & directive attributes to control TOC
2397 and footnote/citation backlinks.
2398 - Added support for optional footnote/citation backlinks.
2399 - Added support for generic bibliographic fields.
2400 - Identify backrefs.
2401 - Relative URLs for stylesheet links.
2403 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2404 PEPs (subclass of ``html4css1.Writer``).
2406 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2408 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2409 of the Docutils internal doctree in XML.
2411 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2415 - Changed the title to "The Docutils Document Tree".
2416 - Added "Hyperlink Bookkeeping" section.
2418 * spec/docutils.dtd:
2420 - Added ``decoration``, ``header``, and ``footer`` elements.
2421 - Brought ``interpreted`` element in line with the parser: changed
2422 attribute "type" to "role", added "position".
2423 - Added support for generic bibliographic fields.
2425 * spec/notes.txt: Continual updates. Added "Project Policies".
2427 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2430 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2432 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2433 mailing list discussions.
2435 * spec/pep-0287.txt:
2437 - Renamed to "reStructuredText Docstring Format".
2439 - Reworked Q&A as an enumerated list.
2440 - Converted to reStructuredText format.
2442 * spec/pysource.dtd:
2444 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2446 * spec/pysource.txt: Removed from project. Moved much of its contents
2449 * spec/rst/alternatives.txt:
2451 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2452 - Added "Inline External Targets" section.
2454 * spec/rst/directives.txt:
2456 - Added "backlinks" attribute to "contents" directive.
2458 * spec/rst/problems.txt:
2460 - Updated the Enumerated List Markup discussion.
2461 - Added new alternative table markup syntaxes.
2463 * spec/rst/reStructuredText.txt:
2465 - Clarified field list usage.
2466 - Updated enumerated list description.
2467 - Clarified purpose of directives.
2468 - Added ``-/:`` characters to inline markup's start string prefix,
2469 ``/`` to end string suffix.
2470 - Updated "Authors" bibliographic field behavior.
2471 - Changed "inline hyperlink targets" to "inline internal targets".
2472 - Added "simple table" syntax to supplement the existing but
2473 newly-renamed "grid tables".
2474 - Added cautions for anonymous hyperlink use.
2475 - Added "Dedication" and generic bibliographic fields.
2477 * test: Made test modules standalone (subdirectories became packages).
2479 * test/DocutilsTestSupport.py:
2481 - Added support for PEP extensions to reStructuredText.
2482 - Added support for simple tables.
2483 - Refactored naming.
2485 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2487 - Now supports true packages containing test modules
2488 (``__init__.py`` files required); fixes duplicate module name bug.
2490 * test/test_pep/: Subpackage added to project; PEP testing.
2492 * test/test_rst/test_SimpleTableParser.py: Added to project.
2496 - Updated html.py and publish.py front-end tools to use the new
2497 command-line processing facilities of ``docutils.frontend``
2498 (exposed in ``docutils.core.Publisher``), reducing each to just a
2500 - Added ``locale.setlocale()`` calls to front-end tools.
2502 * tools/buildhtml.py: Added to project; batch-generates .html from all
2503 the .txt files in directories and subdirectories.
2505 * tools/default.css:
2507 - Added support for ``header`` and ``footer`` elements.
2508 - Added styles for "Dedication" topics (biblio fields).
2510 * tools/docutils.conf: A configuration file; added to project.
2512 * tools/docutils-xml.py: Added to project.
2514 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2516 * tools/pep-html-template: Added to project.
2518 * tools/pep2html.py: Added to project from Python (nondist/peps).
2519 Added support for Docutils (reStructuredText PEPs).
2521 * tools/quicktest.py:
2523 - Added the ``--attributes`` option, hacked a bit.
2524 - Added a second command-line argument (output file); cleaned up.
2526 * tools/stylesheets/: Subdirectory added to project.
2528 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2531 Release 0.1 (2002-04-20)
2532 ========================
2534 This is the first release of Docutils, merged from the now inactive
2535 reStructuredText__ and `Docstring Processing System`__ projects. For
2536 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2537 `DPS HISTORY`__ files.
2539 __ http://structuredtext.sourceforge.net/
2540 __ http://docstring.sourceforge.net/
2541 __ http://structuredtext.sourceforge.net/HISTORY.html
2542 __ http://docstring.sourceforge.net/HISTORY.html
2544 General changes: renamed 'dps' package to 'docutils'; renamed
2545 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2546 the test suites (reStructuredText's test/test_states renamed to
2547 test/test_rst); and all modifications required to make it all work.
2549 * docutils/parsers/rst/states.py:
2551 - Improved diagnostic system messages for missing blank lines.
2552 - Fixed substitution_reference bug.
2558 indent-tabs-mode: nil
2559 sentence-end-double-space: t