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.
20 * docutils/languages/he.py: Added to project: Hebrew mappings by
23 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
24 mappings by Meir Kriheli.
26 * docutils/frontend.py:
28 - Configuration files are now assumed and required to be
30 - Paths of applied configuration files are now recorded in the
31 runtime setting ``_config_files`` (accessible via
33 - Added ``--strip-elements-with-class`` and ``--strip-class``
34 options (``strip_elements_with_classes`` and ``strip_classes``
39 - Added code to determine the input encoding from data: encoding
40 declarations or the presence of byte order marks (UTF-8 & UTF-16).
41 - Added support for IronPython 1.0.
45 - Added ``document.__getstate__`` method, for pickling.
47 * docutils/parsers/rst/states.py:
49 - Unquoted targets beginning with an underscore (``.. __target:
50 URI``) are no longer accepted.
51 - Added support for multiple attributions in a physical block quote
52 (indented text block), dividing it into multiple logical block
54 - Added support for unicode bullets in bullet lists: "•", "‣", and
56 - Added support for new object-oriented directive interface,
57 retaining compatibility to the old functional interface.
58 - Added support for throwing ``DirectiveError``'s from within
61 * docutils/parsers/rst/__init__.py:
63 - Added ``Directive`` base class.
64 - Added ``DirectiveError`` base class.
65 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
68 * docutils/parsers/directives/:
70 - Refactored all reStructuredText directives to use the new
71 object-oriented directive interface. Errors are now (mostly)
72 thrown using the new ``DirectiveError`` class.
74 * docutils/parsers/directives/misc.py:
76 - Added ``start-after`` and ``end-before`` options to ``include``
77 directive; thanks to Stefan Rank.
79 * docutils/transforms/universal.py:
81 - Added ``StripClassesAndElements`` transform to remove from the
82 document tree all elements with classes in
83 ``settings.strip_elements_with_classes`` and all "classes"
84 attribute values in ``self.document.settings.strip_classes``.
86 * docutils/transforms/writer_aux.py:
88 - Added ``Admonitions`` transform to transform specific admonitions
89 (like ``note``, ``warning``, etc.) into generic admonitions with a
92 * docutils/writers/html4css1/__init__.py:
94 - Moved template functionality from the PEP/HTML writer here.
95 - Expanded the fragments available in the ``parts`` attribute.
96 - Moved ``id`` attributes from titles to surrounding ``div``
98 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
99 universally supported now).
100 - ``template.txt`` is now opened in text mode instead of binary mode
101 (to ensure Windows compatibility).
102 - ``a`` elements now have an "internal" or "external" class,
103 depending on reference type.
105 * docutils/writers/html4css1/template.txt: Added to project.
107 * docutils/writers/pep_html/:
109 - Moved template functionality to the HTML writer.
111 * docutils/writers/s5_html/__init__.py:
113 - Added ``view_mode`` & ``hidden_controls`` settings
114 (``--view-mode`` & ``--hidden-controls/--visible-controls``
117 * docutils/writers/latex2e/__init__.py:
119 - Add ``use-part-section``.
120 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
121 - Using leavemode optoin_list no longer needs to check if parent
122 is a definition list.
123 - Append ``\leavemode`` to definition list terms.
124 - No longer write visit\_/depart_definition_list_item comments to
126 - Table column width with 3 decimal places.
127 - Add table stubs support (boldfont).
128 - Add assemble_parts to writer.
129 - Add simply support for nested tables.
130 - Fix verbatim in tables if use-verbatim-when-possible.
131 - Use section commands down to subparagraph.
132 - Put ensuremath around some latin1 chars.
133 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
134 - New option ``--use-bibtex=style,db1,db2``.
135 - New option ``--reference-label`` to allow usage of LaTeX ref for
136 labels in section references.
137 - Add a label after every section to support sectionnumbers as reference
139 - Fix: bug# 1605376 rst2latex: bad options group list
140 - Remove inactive code for use_optionlist_for_option_list.
141 - Remove latex comments from option_list output.
142 - Fix: bug# 1612270 double qoutes in italian literal.
143 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
144 - Add option --use-latex-abstract.
145 - Image width unit ``px`` is translated to ``pt``.
146 - Add image height support.
147 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
149 - Fix: Do not escape underscores in citation reference labels if
150 use-latex-citations is set.
151 - Use centering instead of center for figure contents, to avoid vertical
153 - Recognize table class: borderless, nolines, booktabs, standard.
154 - Fix: Renaming contents section does not work with latex writer; SF
156 - Applied patch for custom roles with classes from Edward Loper.
157 - Fixed bug that caused crashes with more than 256 lists.
159 * docutils/writers/pep_html/__init__.py:
161 - Changed to support new python.org website structure and
164 * docs/howto/security.txt: "Deploying Docutils Securely", added to
167 * tools/buildhtml.py:
169 -- Added ``ignore`` setting to exclude a list of shell patterns
170 (default: ``.svn:CVS``).
172 * tools/editors/emacs/rst.el:
174 - Changed license to "GPL".
175 - Added ``rst-straighten-decorations`` function.
176 - The ``compile`` module is now always loaded.
177 - Added ``rst-toggle-line-block`` function.
178 - Headings consisting only of non-ASCII characters are now
179 recognized by ``rst-toc`` and ``rst-adjust``.
180 - Added font-lock support for multi-line comments where the first
181 comment line is empty.
182 - Added ``(require 'font-lock)``.
186 - Provide descriptive error message if distutils is missing.
189 Release 0.4 (2006-01-09)
190 ========================
194 - Updated the project policies for trunk/branch development &
197 * docutils/__init__.py:
199 - Added ``__version_details__`` attribute to describe code source
200 (repository/snapshot/release).
201 - Replaced ``default_transforms`` attribute of TransformSpec with
202 ``get_transforms()`` method.
206 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
207 functions, for document tree extraction and reprocessing.
211 - Added ``DocTreeInput`` class, for reprocessing existing documents.
212 - Added support for non-Unicode (e.g. binary) writer output.
216 - Re-introduced ``Targetable.indirect_reference_name``, for
217 MoinMoin/reST compatibility (removed in r3124/r3129).
218 - Added ``serial_escape`` function; escapes string values that are
219 elements of a list, for serialization. Modified Docutils-XML
220 writing (``Element._dom_node``) and pseudo-XML writing
221 (``Element.starttag``) to use ``serial_escape``.
222 - Added ``Node.deepcopy()`` method.
223 - Removed the internal lists ``document.substitution_refs``,
224 ``document.anonymous_refs``, and ``document.anonymous_targets``.
225 - Added a "container" element.
226 - Fixed bug where values of list-valued attributes of elements
227 originating from custom interpreted text roles (i.e., with custom
228 classes) were being shared between element instances. Reported by
231 * docutils/statemachine.py:
233 - Added trailing whitespace stripping to ``string2lines()``.
234 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
235 Asian double-width character support.
239 - Added ``east_asian_column_width()`` for double-width character
242 * docutils/languages/ja.py: Added to project: Japanese mappings by
245 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
246 mappings by Panjunyong.
248 * docutils/parsers/null.py: Added to project; a do-nothing parser.
250 * docutils/parsers/rst/__init__.py:
252 - Added validator to tab_width setting, with test. Closes SF bug
253 #1212515, report from Wu Wei.
255 * docutils/parsers/rst/states.py:
257 - Fixed bug with escaped colons indicating a literal block.
258 - Fixed bug with enumerated lists (SF#1254145).
259 - Backslash-escaped colons inside of field names are now allowed.
260 - Targets (implicit and explicit), anonymous hyperlink references
261 and auto-numbered footnote references inside of substitution
262 definitions are now disallowed.
263 - Fixed bug: list items with blank first lines.
264 - Fixed bug: block quote attributions with indented second lines.
265 - Added East Asian double-width character support (Python 2.4 only).
267 * docutils/parsers/rst/tableparser.py:
269 - Added East Asian double-width character support (Python 2.4 only).
271 * docutils/parsers/rst/directives/body.py:
273 - Added the "container" directive.
275 * docutils/parsers/rst/directives/misc.py:
277 - Added the "default-role", "title", and "date" directives.
278 - Added standard data file syntax to the "include" directive.
279 - Added support for "class" directive content.
281 * docutils/parsers/rst/directives/images.py:
283 - Added ``indirect_reference_name`` support for images with a target
285 - Added support for image width and height units.
286 - Fixed bug with image "target" options.
288 * docutils/parsers/rst/directives/references.py:
290 - Added "class" attribute to "target-notes" directive, for
291 footnote_reference classes.
293 * docutils/parsers/rst/include/: Directory added to project; contains
294 standard data files for the "include" directive. Initial contents:
295 character entity substitution definition sets, and a set of
296 definitions for S5/HTML presentations.
298 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
299 mappings by David Goodger.
301 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
302 Simplified Chinese mappings by Panjunyong.
304 * docutils/readers/__init__.py:
306 - Added universal.Decorations and universal.ExposeInternals
307 transforms as default transforms for all readers.
308 - Added ``ReReader`` base class for readers that reread an existing
311 * docutils/readers/doctree.py: Added to project; a reader for existing
314 * docutils/transforms/frontmatter.py:
316 - Fixed the DocInfo transform to handle SVN-style expansion of the
318 - In ``DocInfo.extract_authors``, treat the contents of "authors"
321 * docutils/transforms/misc.py:
323 - Added misc.Transitions transform, extracted from
324 universal.FinalChecks.
326 * docutils/transforms/references.py:
328 - Added references.DanglingReferences transform, extracted from
329 universal.FinalChecks.
330 - Fixed bug with doubly-indirect substitutions.
331 - Added footnote_reference classes attribute to "TargetNotes".
332 - Fixed bug with circular substitution definitions that put Docutils
333 into an infinite loop.
335 * docutils/transforms/universal.py:
337 - Added universal.ExposeInternals transform, extracted from
338 universal.FinalChecks.
339 - Removed universal.FinalChecks transform (logic has been moved to
340 several new transforms).
341 - Fixed bug with the "expose_internals" setting and Text nodes
342 (exposed by the "rawsource" internal attribute).
343 - Added the universal.StripComments transform, implementation of the
344 "strip_comments" setting.
346 * docutils/transforms/writer_aux.py: Added to project; auxiliary
347 transforms for writers.
349 - Added ``Compound`` transform, which flattens compound paragraphs.
351 * docutils/writers/: Several writer modules (html4css1.py) were
352 converted into packages. Support modules and data files have been
353 moved into the packages. The stylesheets for the HTML writers are
354 now installed along with the code, the code knows where to find
355 them, and the default is to use them (actually, to embed them).
356 Some adjustments to configuration files may be necessary. The
357 easiest way to obtain the new default behavior is to remove all
358 settings whose name includes "stylesheet".
360 * docutils/writers/__init__.py:
362 - Added universal.Messages and universal.FilterMessages transforms
363 as default transforms for all writers.
364 - Added ``UnfilteredWriter`` base class for writers that pass the
365 document tree on unchanged.
367 * docutils/writers/docutils_xml.py:
369 - Made ``xmlcharrefreplace`` the default output encoding error
372 * docutils/writers/html4css1/:
374 - Added support for image width and height units.
375 - Made ``xmlcharrefreplace`` the default output encoding error
377 - Made ``--embed-stylesheet`` the default rather than
378 ``--link-stylesheet``.
379 - Moved "id" attribute from container (section etc.) to title's <a>
380 tag, to be on the same tag as "name".
381 (!!! To be reverted in Docutils 0.5.)
382 - Added vertical space between fields of field lists.
383 - Added ``--compact-field-lists`` option to remove vertical space in
385 - Made cloaking of email addresses with ``--cloak-email-addresses``
387 - Fixed support for centered images.
388 - Added support for class="compact" & class="open" lists.
390 * docutils/writers/latex2e/:
392 - Underscores in citekeys are no longer escaped.
394 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
395 mapping of Unicode characters to LaTeX equivalents.
397 * docutils/writers/s5_html/: Package added to project; writer for
400 * docs/dev/distributing.txt: Added to project; guide for distributors
401 (package maintainers).
403 * docs/dev/hacking.txt: Added to project; guide for developers.
405 * docs/ref/doctree.txt:
407 - Updated for plural attributes "classes", "ids", "names",
409 - Added the "container" element.
411 * docs/ref/docutils.dtd:
413 - Updated for plural attributes "classes", "ids", "names",
416 * docs/user/emacs.txt: Added to project; a document about Emacs
417 support for reStructuredText and Docutils.
419 * docs/user/links.txt: Added to project; lists of Docutils-related
422 * docs/user/mailing-lists.txt: Added to project; information about
423 Docutils-related mailing lists and how to access them.
425 * docs/user/slide-shows.txt: Added to project; example of and docs for
426 the S5/HTML writer (``rst2s5.py`` front end).
428 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
429 Files", added to project.
431 * test/coverage.sh: Added to project; test coverage script.
433 * test/DocutilsTestSupport.py:
435 - Added support for specifying runtime settings at the suite level.
437 * test/test_functional.py:
439 - Added the ``clear_output_directory`` function.
440 - Added support for ``_test_more`` functions in functional test
443 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
445 * tools/rstpep2html.py: Renamed from pep.py.
447 * tools/dev/create_unimap.py: Added to project; script to create the
448 docutils/writers/unimap_latex.py mapping file.
450 * tools/dev/profile_docutils.py: Added to project; profiler script.
452 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
454 * tools/editors/emacs/restructuredtext.el,
455 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
456 Removed from project; the functionality is now contained in rst.el.
458 * tools/editors/emacs/rst.el: Added to project. Added many features
459 and fixed many bugs. See docs/user/emacs.txt for details.
461 * tools/stylesheets: Removed from project. Stylesheets have been
462 renamed and moved into writer packages.
465 Release 0.3.9 (2005-05-26)
466 ==========================
470 - Eliminated and replaced all uses of the old string attributes
471 ``id``, ``name``, ``dupname`` and ``class`` with references to the
472 new list attributes ``ids``, ``names``, ``dupnames`` and
473 ``classes`` throughout the whole source tree.
477 - Enabled ``--dump-*`` options when ``--traceback`` specified,
478 allowing for easier debugging.
479 - In ``Publisher.publish()``, expanded the generic top-level
482 * docutils/examples.py:
484 - Added ``internals`` function for exploration.
488 - Fixed ``Input.decode`` method to apply heuristics only if no
489 encoding is explicitly given, and to provide better reporting of
491 - The ``Input.decode`` method now removes byte order marks (BOMs)
496 - ``image`` element class changed to subclass of Element, not
497 TextElement (it's an empty element, and cannot contain text).
498 - Added ``attr_defaults`` dictionary for default attribute values.
499 - Added empty list as default value for the following attributes:
500 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
501 - Added ``document.decoration`` attribute,
502 ``document.get_decoration`` method, and ``decoration.get_header``
503 & ``.get_footer`` methods.
504 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
509 - Removed ``docutils.utils.Reporter.categories``,
510 ``docutils.utils.ConditionSet``, and all references to them, to
511 simplify error reporting.
513 * docutils/languages/nl.py: Added to project; Dutch mappings by
516 * docutils/parsers/rst/__init__.py:
518 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
520 * docutils/parsers/rst/states.py:
522 - Added check for escaped at-mark to prevent email address recognition.
523 - Fixed option lists to allow spaces inside ``<angle-bracketed option
525 - Allowed whitespace in paths and URLs.
526 - Added auto-enumerated list items.
527 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
529 - Added support for table stub columns.
531 * docutils/parsers/rst/directives/__init__.py:
533 - Allowed whitespace in paths (``path`` function).
534 - Added ``uri`` directive option conversion function.
536 * docutils/parsers/rst/directives/body.py:
538 - Fixed illegal context bug with "topic" directive (allowed within
539 sidebars; not within body elements).
541 * docutils/parsers/rst/directives/images.py:
543 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
544 - Added support for the ``file_insertion_enabled`` setting in the
545 "figure" directive (disables "figwidth" option).
546 - "image" directive: added checks for valid values of "align" option,
547 depending on context. "figure" directive: added specialized
548 "align" option and attribute on "figure" element.
549 - Made ":figwidth: image" option of "figure" directive work again.
550 - Fixed bug with reference names containing uppercase letters
551 (e.g. ``Name_``) in "target" option of "image" directive.
553 * docutils/parsers/rst/directives/misc.py:
555 - Fixed "include" and "raw" directives to catch text decoding
557 - Allowed whitespace in "include" & "raw" directive paths.
558 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
559 settings in "include" & "raw" directives.
561 * docutils/parsers/rst/directives/parts.py:
563 - Added "header" & "footer" directives.
564 - Fixed illegal context bug with "contents" directive (topics
565 allowed within sidebars; not within body elements).
567 * docutils/parsers/rst/directives/tables.py:
569 - Added "list-table" directive.
570 - Caught empty CSV table bug.
571 - Added support for the ``file_insertion_enabled`` setting in the
572 "csv-table" directive.
573 - Added ``stub-columns`` option to "csv-table" and "list-table"
576 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
577 mappings by Martijn Pieters.
579 * docutils/readers/standalone.py:
581 - Added ``--section-subtitles`` and ``--no-section-subtitles``
582 options to activate or deactivate the SectSubTitle transform.
584 * docutils/transforms/frontmatter.py:
586 - Added SectSubTitle transform to promote titles of lone
587 subsections to subtitles.
589 * docutils/transforms/references.py:
591 - Fixed mislocated internal targets bug, by propagating internal
592 targets to the next node, making use of the newly added support
593 for multiple names and IDs.
594 - Fixed duplicate footnote label bug.
595 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
598 * docutils/writers/html4css1.py:
600 - Fixed unencoded stylesheet reference bug (characters like "&" in
601 stylesheet references).
602 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
604 - Added support for multiple IDs per node by creating empty ``span``
606 - Added the ``field_name_limit`` & ``option_limit`` settings &
608 - Added support for table stub columns.
609 - Added support for the ``align`` attribute on ``figure`` elements.
610 - Added the ``cloak_email_addresses`` setting & support.
611 - Added ``html_prolog``, ``html_head``, ``html_body``,
612 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
613 ``docutils.core.publish_parts``.
614 - Added support for section subtitles.
616 * docutils/writers/latex2e.py:
618 - Fixed tables starting with more than one multirow cell.
619 - Improved --use-latex-docinfo so that organization/contact/address
620 fields are lumped with the last author field and appear on the
622 - Made sure the titlepage is always shown with --use-latex-docinfo,
623 even if the document has no title.
624 - Made sure that latex doesn't fill in today's date if no date field
626 - Added support for section subtitles.
628 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
631 * docutils/writers/null.py: Added to project; a do-nothing Writer.
633 * docs/api/publisher.txt:
635 - Added "``publish_parts`` Details" section.
637 * docutils/dev/repository.txt: Added to project; information about the
638 Docutils Subversion repository.
640 * docs/ref/docutils.dtd:
642 - Added a ``stub`` attribute to the ``colspec`` element via the
643 ``tbl.colspec.att`` parameter entity.
644 - Allowed topic elements within sidebars
645 - Added an ``align`` attribute to the ``figure`` element.
647 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
651 Release 0.3.7 (2004-12-24)
652 ==========================
654 * docutils/frontend.py:
656 - Added options: --input-encoding-error-handler,
657 --record-dependencies, --leave-footnote-reference-space,
659 - Added command-line and config file support for "overrides" setting
664 - Added support for input encoding error handler.
668 - Added dispatch_visit and dispatch_departure methods to
669 NodeVisitor; useful as a hook for Visitors.
670 - Changed structure of ``line_block``; added ``line``.
671 - Added ``compound`` node class.
672 - Added a mechanism for Visitors to transitionally ignore new node
677 - Moved ``escape2null`` and ``unescape`` functions from
678 docutils/parsers/rst/states.py.
680 * docutils/parsers/rst/roles.py:
683 - Changed role function API: the "text" parameter now takes
684 null-escaped interpreted text content.
686 * docutils/parsers/rst/states.py:
688 - Fixed bug where a "role" directive in a nested parse would crash
689 the parser; the state machine's "language" attribute was not being
691 - Added support for line block syntax.
692 - Fixed directive parsing bug: argument-less directives didn't
693 notice that arguments were present.
694 - Removed error checking for transitions.
695 - Added support for multiple classifiers in definition list items.
696 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
697 - Changed role function API: the "text" parameter now takes
698 null-escaped interpreted text content.
699 - Empty sections and documents are allowed now.
701 * docutils/parsers/rst/directives/__init__.py:
703 - Added ``encoding`` directive option conversion function.
704 - Allow multiple class names in class_option conversion function.
706 * docutils/parsers/rst/directives/body.py:
708 - Converted the line-block directive to use the new structure.
709 - Extracted the old line-block functionality to the ``block``
710 function (still used).
711 - Added ``compound`` directive (thanks to Lea Wiemann).
713 * docutils/parsers/rst/directives/misc.py:
715 - Added "encoding" option to "include" and "raw" directives.
716 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
717 - Allow multiple class names in the "class" directive.
719 * docutils/parsers/rst/directives/parts.py:
721 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
722 options. Thanks to Lele Gaifax.
724 * docutils/parsers/rst/directives/tables.py:
726 - Added "encoding" directive to "csv-table" directive.
727 - Added workaround for lack of Unicode support in csv.py, for
730 * docutils/transforms/misc.py:
732 - Fixed bug when multiple "class" directives are applied to a single
734 - Enabled multiple format names for "raw" directive.
736 * docutils/transforms/references.py:
738 - Added support for trimming whitespace from beside substitution
741 * docutils/transforms/universal.py:
743 - FinalChecks now checks for illegal transitions and moves
744 transitions between sections.
746 * docutils/writers/html4css1.py:
748 - HTMLTranslator.encode now converts U+00A0 to " ".
749 - "stylesheet" and "stylesheet_path" settings are now mutually
751 - Added support for the new line_block/line structure.
752 - --footnote-references now overrides
753 --trim-footnote-reference-space, if applicable.
754 - Added support for ``compound`` elements.
755 - Enabled multiple format names for "raw" directive.
756 - ``<p>`` tags of a paragraph which is the only visible child of the
757 document node are no longer stripped.
758 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
759 new method ``should_be_compact_paragraph()``.
760 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
762 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
763 the output if they have their ``class`` attribute set.
764 - The whole document is now surrounded by a ``<div
765 class="document">`` element.
766 - Body-level images are now wrapped by their own ``<div>`` elements,
767 with image classes copied to the wrapper, and for images which
768 have the ``:align:`` option set, the surrounding ``<div>`` now
769 receives a class attribute (like ``class="align-left"``).
771 * docutils/writers/latex2e.py:
773 - no newline after depart_term.
774 - Added translations for some Unicode quotes.
775 - Added option "font-encoding", made package AE the default.
776 - "stylesheet" and "stylesheet_path" settings are now mutually
778 - --footnote-references now overrides
779 --trim-footnote-reference-space, if applicable.
780 - The footnote label style now matches the footnote reference style
781 ("brackets" or "superscript").
782 - Added support for ``compound`` elements.
783 - Enabled multiple format names for "raw" directive.
785 * docs/ref/docutils.dtd:
787 - Changed structure of the ``line_block`` element; added ``line``.
788 - Added ``compound`` element.
789 - Added "ltrim" and "rtrim" attributes to
790 ``substitution_definition`` element.
791 - Enabled multiple format names for ``raw`` element.
792 - Enabled multiple classifiers in ``definition_list_item`` elements.
794 * docs/ref/rst/directives.txt
796 - Marked "line-block" as deprecated.
797 - "Class" directive now allows multiple class names.
798 - Added "Rationale for Class Attribute Value Conversion".
799 - Added warning about "raw" overuse/abuse.
801 * docs/ref/rst/restructuredtext.txt:
803 - Added syntax for line blocks.
804 - Definition list items may have multiple classifiers.
806 * docs/ref/rst/roles.txt:
810 * tools/stylesheets/default.css:
812 - Added support for the new line_block structure.
813 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
816 Release 0.3.5 (2004-07-29)
817 ==========================
821 * _`Documentation cleanup/reorganization`.
823 - Created new subdirectories of docs/:
825 * ``docs/user/``: introductory/tutorial material for end-users
826 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
827 * ``docs/api/``: API reference material for client-developers
828 * ``docs/ref/``: reference material for all groups
829 * ``docs/howto/``: for component-developers and core-developers
830 * ``docs/peps/``: Python Enhancement Proposals
832 - Moved ``docs/*`` to ``docs/user/``.
833 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
834 ``spec/`` to ``docs/dev``.
835 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
836 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
837 - Moved ``alternatives.txt``, and ``problems.txt`` from
838 ``spec/rst/`` to ``docs/dev/rst/``.
839 - Moved ``reStructuredText.txt``, ``directives.txt``,
840 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
841 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
842 ``roles.txt``, ``reStructuredText.txt`` to
843 ``restructuredtext.txt``.
844 - Moved ``spec/howto/`` to ``docs/howto``.
846 In order to keep the CVS history of moved files, we supplied
847 SourceForge with a `script for modifying the Docutils CVS
850 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
852 After running the cleanup script:
854 - Added ``docs/index.txt``.
855 - Added a ``.htaccess`` file to the ``web`` module, containing
856 redirects for all old paths to new paths. They'll preserve
857 fragments (the "#name" part of a URL), and won't clutter up the
858 file system, and will correct the URL in the user's browser.
859 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
860 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
861 the "To Do" list itself in ``docs/dev/todo.txt``.
862 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
863 section of ``docs/dev/todo.txt``.
864 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
865 - Added "How To Report Bugs" to ``BUGS.txt``.
866 - Went through all the sources and docs (including under web/) and
867 updated links. Mostly done by Lea Wiemann; thanks Lea!
868 (Still need to update links in the sandboxes.)
872 * BUGS.txt: Added to project.
874 * THANKS.txt: Added to project.
876 * docutils/__init__.py:
878 - 0.3.4: Post-release.
882 - Added special error handling & advice for UnicodeEncodeError.
883 - Refactored Publisher.publish (simplified exception handling &
884 extracted debug dumps).
885 - Renamed "enable_exit" parameter of convenience functions to
886 "enable_exit_status".
887 - Enabled traceback (exception propagation) by default in
888 programmatic convenience functions.
889 - Now publish_file and publish_cmdline convenience functions return
890 the encoded string results in addition to their regular I/O.
891 - Extracted common code from publish_file, publish_string, and
892 publish_parts, into new publish_programmatically. Extracted
893 settings code to ``Publisher.process_programmatic_settings``.
894 - In Publisher.publish, disabled ``settings_overrides`` when
895 ``settings`` is supplied; redundant.
897 * docutils/frontend.py:
899 - Added help text for "--output-encoding-error-handler" and
900 "--error-encoding-error-handler".
901 - Renamed "--exit" to "--exit-status".
902 - Simplified default-setting code.
904 * docutils/parsers/rst/__init__.py:
906 - Added "--pep-base-url" and "--rfc-base-url" options.
908 * docutils/parsers/rst/states.py:
910 - Made URI recognition more aggressive and intelligent.
912 * docutils/parsers/rst/directives/__init__.py:
914 - Added several directive option conversion functions.
916 * docutils/parsers/rst/directives/body.py:
918 - Moved "table" directive to tables.py.
920 * docutils/parsers/rst/directives/tables.py: Table-related directives,
923 * docutils/writers/latex2e.py:
925 - Added "--table-style=(standard|booktabs|nolines)"
926 - figures get "here" option (LaTeX per default puts them at bottom),
927 and figure content is centered.
928 - Rowspan support for tables.
929 - Fix: admonition titles before first section.
930 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
931 - Replave ``_`` in literal by an underlined blank, because it has the correct
933 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
934 - A few unicode replacements, if output_encoding != utf
935 - Add "--graphicx-option".
936 - Indent literal-blocks.
937 - Fix: omit ``\maketitle`` when there is no document title.
939 * docs/index.txt: "Docutils Project Documentation Overview", added to
942 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
943 Tool", added to project.
945 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
947 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
949 * docs/dev/policies.txt: Added to project (extracted from
950 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
952 * docs/dev/release.txt: Added to project (extracted from
953 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
955 * docs/dev/testing.txt: Added to project.
957 * docs/dev/website.txt: Added to project (extracted from
958 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
960 * docs/ref/rst/directives.txt:
962 - Added directives: "table", "csv-table".
964 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
965 added to project. 1 page for syntax, and a 1 page reference for
966 directives and roles. Source text to be used as-is; not meant to be
969 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
970 with a change of title.
972 * test/functional/, contents, and test/test_functional.py: Added to
975 * tools/buildhtml.py: Fixed bug with config file handling.
977 * tools/html.py: Removed from project (duplicate of rst2html.py).
979 * tools/pep2html.py: Removed from project (duplicate of Python's
980 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
981 Docutils-related PEPs in docs/peps/).
983 * tools/rst2pseudoxml.py: Renamed from publish.py.
985 * tools/rst2xml.py: Renamed from docutils-xml.py.
987 * tools/test.txt: Removed from project; moved to
988 docs/user/rst/demo.txt.
990 * setup.py: Now also installs ``rst2latex.py``.
993 Release 0.3.3 (2004-05-09)
994 ==========================
996 * docutils/__init__.py:
998 - 0.3.1: Reorganized config file format (multiple sections); see
1000 - Added unknown_reference_resolvers attribute to TransformSpec.
1001 - 0.3.2: Interpreted text reorganization.
1006 - Catch system messages to stop tracebacks from parsing errors.
1007 - Catch exceptions during processing report & exit without
1008 tracebacks, except when "--traceback" used.
1009 - Reordered components for OptionParser; application comes last.
1010 - Added "config_section" parameter to several methods and functions,
1011 allowing front ends to easily specify their config file sections.
1012 - Added publish_parts convenience function to allow access to individual
1013 parts of a document.
1015 * docutils/examples.py: Added to project; practical examples of
1016 Docutils client code, to be used as-is or as models for variations.
1018 * docutils/frontend.py:
1020 - Added "--traceback" & "--no-traceback" options ("traceback"
1022 - Implemented support for config file reorganization:
1023 ``standard_config_files`` moved from ``ConfigParser`` to
1024 ``OptionParser``; added
1025 ``OptionParser.get_config_file_settings()`` and
1026 ``.get_standard_config_settings()``; support for old "[options]"
1027 section (with deprecation warning) and mapping from old to new
1029 - Reimplemented setting validation.
1030 - Enabled flexible boolean values: yes/no, true/false, on/off.
1031 - Added ``Values``, a subclass of ``optparse.Values``, with support
1032 for list setting attributes.
1033 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1034 thanks to Beni Cherniavsky.
1035 - Added "--no-section-numbering" option.
1039 - Catch IOErrors when opening source & destination files, report &
1040 exit without tracebacks. Added ``handle_io_errors`` parameter to
1041 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1043 * docutils/nodes.py:
1045 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1046 method definitions (via ``exec``) to dynamic assignments (via
1047 ``setattr``); thanks to Roman Suzi.
1048 - Encapsulated visitor dynamic assignments in a function; thanks to
1050 - Added indirect_reference_name attribute to the Targetable
1051 class. This attribute holds the whitespace_normalized_name
1052 (contains mixed case) of a target.
1054 * docutils/statemachine.py:
1056 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1057 - Added ``StringList.get_2D_block``.
1059 * docutils/utils.py:
1061 - Added "level" attribute to SystemMessage exceptions.
1063 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1066 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1069 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1070 Marcelo Huerta San Martin.
1072 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1073 mappings by Lalo Martins.
1075 * docutils/languages/ru.py: Added to project; Russian mappings by
1078 * docutils/parsers/rst/roles.py: Added to project. Contains
1079 interpreted text role functions, a registry for interpreted text
1080 roles, and an API for adding to and retrieving from the registry.
1081 Contributed by Edward Loper.
1083 * docutils/parsers/rst/states.py:
1085 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1086 - Allowed true em-dash character and "---" as block quote
1088 - Added support for <angle-bracketed> complex option arguments
1090 - Fixed handling of backslashes in substitution definitions.
1091 - Fixed off-by-1 error with extra whitespace after substitution
1092 definition directive.
1093 - Added inline markup parsing to field lists' field names.
1094 - Added support for quoted (and unindented) literal blocks.
1095 Driven in part by a bribe from Frank Siebenlist (thanks!).
1096 - Parser now handles escapes in URIs correctly.
1097 - Made embedded-URIs' reference text omittable. Idea from Beni
1099 - Refactored explicit target processing code.
1100 - Added name attribute to references containing the reference name only
1101 through whitespace_normalize_name (no case changes).
1102 - parse_target no longer returns the refname after going through
1103 normalize_name. This is now handled in make_target.
1104 - Fixed bug relating to role-less interpreted text in non-English
1106 - Reorganized interpreted text processing; moved code into the new
1107 roles.py module. Contributed by Edward Loper.
1108 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1109 ``parse_directive_block``.
1111 * docutils/parsers/rst/tableparser.py:
1113 - Reworked for ``StringList``, to support "include" directives in
1116 * docutils/parsers/rst/directives/__init__.py:
1118 - Renamed ``unchanged()`` directive option conversion function to
1119 ``unchanged_required``, and added a new ``unchanged``.
1120 - Catch unicode value too high error; fixes bug 781766.
1121 - Beefed up directive error reporting.
1123 * docutils/parsers/rst/directives/body.py:
1125 - Added basic "table" directive.
1127 * docutils/parsers/rst/directives/images.py:
1129 - Added "target" option to "image" directive.
1130 - Added name attribute to references containing the reference name only
1131 through whitespace_normalize_name (no case changes).
1133 * docutils/parsers/rst/directives/misc.py:
1135 - Isolated the import of the ``urllib2`` module; was causing
1136 problems on SourceForge (``libssl.so.2`` unavailable?).
1137 - Added the "role" directive for declaring custom interpreted text
1140 * docutils/parsers/rst/directives/parts.py:
1142 - The "contents" directive does more work up-front, creating the
1143 "topic" and "title", and leaving the "pending" node for the
1144 transform. Allows earlier reference resolution; fixes subtle bug.
1146 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1147 mappings by Jannie Hofmeyr.
1149 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1150 mappings by Marek Blaha.
1152 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1153 mappings by Marcelo Huerta San Martin.
1155 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1156 Portuguese mappings by Lalo Martins.
1158 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1159 mappings by Roman Suzi.
1161 * docutils/transforms/parts.py:
1163 - The "contents" directive does more work up-front, creating the
1164 "topic" and "title", and leaving the "pending" node for the
1165 transform. Allows earlier reference resolution; fixes subtle bug.
1166 - Added support for disabling of section numbering.
1168 * docutils/transforms/references.py:
1170 - Verifying that external targets are truly targets and not indirect
1171 references. This is because we are now adding a "name" attribute to
1172 references in addition to targets. Note sure if this is correct!
1173 - Added code to hook into the unknown_reference_resolvers list for a
1174 transformer in resolve_indirect_target. This allows the
1175 unknown_reference_resolvers to keep around indirect targets which
1176 docutils doesn't know about.
1177 - Added specific error message for duplicate targets.
1179 * docutils/transforms/universal.py:
1181 - Added FilterMessages transform (removes system messages below the
1182 verbosity threshold).
1183 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1184 to FinalCheckVisitor for application-specific handling of
1185 unresolvable references.
1186 - Added specific error message for duplicate targets.
1188 * docutils/writers/__init__.py:
1190 - Added assemble_parts method to the Writer class to allow for
1191 access to a documents individual parts.
1192 - Documented & set default for ``Writer.output`` attribute.
1194 * docutils/writers/html4css1.py:
1196 - Fixed unicode handling of attribute values (bug 760673).
1197 - Prevent duplication of "class" attribute values (bug report from
1199 - Improved table grid/border handling (prompted by report from Bob
1201 - Added support for table titles.
1202 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1204 - Added functionality to keep track of individual parts of a document
1205 and store them in a dictionary as the "parts" attribute of the writer.
1206 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1207 - Added proper support for the "scale" attribute of the "image"
1208 element. Contributed by Brent Cook.
1209 - Added ``--initial-header-level`` option.
1210 - Fixed bug: the body_pre_docinfo segment depended on there being a
1211 docinfo; if no docinfo, the document title was incorporated into
1212 the body segment. Adversely affected the publish_parts interface.
1214 * docutils/writers/latex2e.py:
1216 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1217 about a missing file.
1218 - Added options and support: ``--compound-enumerators``,
1219 ``--section-prefix-for-enumerators``, and
1220 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1222 - Added option ``--use-verbatim-when-possible``, to avoid
1223 problematic characters (eg, '~' in italian) in literal blocks.
1224 - It's now possible to use four section levels in the `book` and
1225 `report` LaTeX classes. The default `article` class still has
1228 * docs/config.txt: "Docutils Configuration Files", added to project.
1229 Moved config file entry descriptions from tools.txt.
1233 - Moved config file entry descriptions to config.txt.
1235 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1238 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1239 Text Roles", added to project.
1241 * spec/rst/reStructuredText.txt:
1243 - Added description of support for <angle-bracketed> complex option
1244 arguments to option lists.
1245 - Added subsections for indented and quoted literal blocks.
1247 * test: Continually adding & updating tests.
1249 - Added test/test_settings.py & test/data/config_*.txt support
1251 - Added test/test_writers/test_htmlfragment.py.
1253 * test/DocutilsTestSupport.py:
1255 - Refactored LaTeX publisher test suite/case class names to make
1256 testing other writers easier.
1257 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1258 to test the processing of HTML fragments which use the new
1259 publish_parts convenience function.
1261 * tools/buildhtml.py:
1263 - Added support for the "--prune" option.
1264 - Removed dependency on pep2html.py; plaintext PEPs no longer
1267 * tools/docutils.conf:
1269 - Updated for configuration file reorganization.
1271 * tools/rst2html.py:
1273 - copied from tools/html.py
1277 - added a 'scripts' section to configuration
1278 - added 'tools/rst2html.py' to the scripts section
1281 Release 0.3 (2003-06-24)
1282 ========================
1286 * Renamed "attribute" to "option" for directives/extensions.
1288 * Renamed transform method "transform" to "apply".
1290 * Renamed "options" to "settings" for runtime settings (as set by
1291 command-line options). Sometimes "option" (singular) became
1292 "settings" (plural). Some variations below:
1294 - document.options -> document.settings (stored in other objects as
1296 - option_spec -> settings_spec (not directives though)
1297 - OptionSpec -> SettingsSpec
1298 - cmdline_options -> settings_spec
1299 - relative_path_options -> relative_path_settings
1300 - option_default_overrides -> settings_default_overrides
1301 - Publisher.set_options -> Publisher.get_settings
1305 * COPYING.txt: Added "Public Domain Dedication".
1307 * FAQ.txt: Frequently asked questions, added to project.
1311 - Updated with PyPI Trove classifiers.
1312 - Conditional installation of third-party modules.
1314 * docutils/__init__.py:
1316 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1317 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1318 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1319 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1320 option and its effect on the PEP template & writer.
1321 - Bumped version to 0.2.4 due to changes to the PEP template &
1323 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1324 - Added ``TransformSpec`` class for new transform system.
1325 - Bumped version to 0.2.6 for API changes (renaming).
1326 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1327 convenience functions.
1328 - Added ``Component.component_type`` attribute.
1329 - Bumped version to 0.2.8 because of the internal parser switch from
1330 plain lists to the docutils.statemachine.StringList objects.
1331 - Bumped version to 0.2.9 because of the frontend.py API changes.
1332 - Bumped version to 0.2.10 due to changes to the project layout
1333 (third-party modules removed from the "docutils" package), and
1334 signature changes in ``io.Input``/``io.Output``.
1335 - Changed version to 0.3.0 for release.
1339 - Made ``publish()`` a bit more convenient.
1340 - Generalized ``Publisher.set_io``.
1341 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1342 parameters; improved its docstring.
1343 - Added ``publish_file()`` and ``publish_string()``.
1344 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1346 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1347 "--dump-transforms" hidden options.
1348 - Added ``Publisher.apply_transforms()`` method.
1349 - Added ``Publisher.set_components()`` method; support for
1350 ``publish_*()`` conveninece functions.
1351 - Moved config file processing to docutils/frontend.py.
1352 - Added support for exit status ("exit_level" setting &
1353 ``enable_exit`` parameter for Publisher.publish() and convenience
1356 * docutils/frontend.py:
1358 - Check for & exit on identical source & destination paths.
1359 - Fixed bug with absolute paths & "--config".
1360 - Set non-command-line defaults in ``OptionParser.__init__()``:
1361 ``_source`` & ``_destination``.
1362 - Distributed ``relative_path_settings`` to components; updated
1363 ``OptionParser.populate_from_components()`` to combine it all.
1364 - Require list of keys in ``make_paths_absolute`` (was implicit in
1365 global ``relative_path_settings``).
1366 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1367 "--dump-settings", and "--dump-transforms" hidden options.
1368 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1369 code, replaced with correct code.
1370 - Added validation functionality for config files.
1371 - Added "--error-encoding" option/setting, "_disable_config"
1373 - Added encoding validation; updated "--input-encoding" and
1374 "--output-encoding"; added "--error-encoding-error-handler" and
1375 "--output-encoding-error-handler".
1376 - Moved config file processing from docutils/core.py.
1377 - Updated ``OptionParser.populate_from_components`` to handle new
1378 ``SettingsSpec.settings_defaults`` dict.
1379 - Added support for "-" => stdin/stdout.
1380 - Added "exit_level" setting ("--exit" option).
1384 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1385 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1386 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1387 - ``FileOutput.write()`` now returns the encoded output string.
1388 - Try to get path/stream name automatically in ``FileInput`` &
1390 - Added defaults for source & destination paths.
1391 - Allow for Unicode I/O with an explicit "unicode" encoding.
1392 - Added ``Output.encode()``.
1393 - Removed dependency on runtime settings; pass encoding directly.
1394 - Recognize Unicode strings in ``Input.decode()``.
1395 - Added support for output encoding error handlers.
1397 * docutils/nodes.py:
1399 - Added "Invisible" element category class.
1400 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1401 modification during a traversal.
1402 - Added element classes: ``line_block``, ``generated``, ``address``,
1403 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1404 ``superscript``, ``subscript``, ``inline``
1405 - Added support for lists of nodes to ``Element.insert()``.
1406 - Fixed parent linking in ``Element.replace()``.
1407 - Added new abstract superclass ``FixedTextElement``; adds
1408 "xml:space" attribute.
1409 - Added support for "line" attribute of ``system_message`` nodes.
1410 - Added support for the observer pattern from ``utils.Reporter``.
1411 Added ``parse_messages`` and ``transform_messages`` attributes to
1412 ``document``, removed ``messages``. Added ``note_parse_message``
1413 and ``note_transform_message`` methods.
1414 - Added support for improved diagnostics:
1416 - Added "document", "source", and "line" internal attributes to
1417 ``Node``, set by ``Node.setup_child()``.
1418 - Converted variations on ``node.parent = self`` to
1419 ``self.setup_child(node)``.
1420 - Added ``document.current_source`` & ``.current_line``
1421 attributes, and ``.note_source`` observer method.
1422 - Changed "system_message" output to GNU-Tools format.
1424 - Added a "rawsource" attribute to the ``Text`` class, for text
1425 before backslash-escape resolution.
1426 - Support for new transform system.
1427 - Reworked ``pending`` element.
1428 - Fixed XML DOM bug (SF #660611).
1429 - Removed the ``interpeted`` element class and added
1430 ``title_reference``, ``abbreviation``, ``acronym``.
1431 - Made substitutions case-sensitive-but-forgiving; moved some code
1433 - Fixed Unicode bug on element attributes (report: William Dode).
1435 * docutils/optik.py: Removed from project; replaced with
1436 extras/optparse.py and extras/textwrap.py. These will be installed
1437 only if they're not already present in the Python installation.
1439 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1440 only if it's not already present in the Python installation.
1442 * docutils/statemachine.py:
1444 - Factored out ``State.add_initial_transitions()`` so it can be
1446 - Converted whitespace-specific "blank" and "indent" transitions
1447 from special-case code to ordinary transitions: removed
1448 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1449 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1450 ``ws_initial_transitions`` attributes.
1451 - Removed ``State.match_transition()`` after merging it into
1453 - Added ``StateCorrection`` exception.
1454 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1455 (moved ``TransitionCorrection`` support there too.)
1456 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1457 ``EOFError`` instead of ``IndexError``.
1458 - Added ``State.no_match`` method.
1459 - Added support for the Observer pattern, triggered by input line
1461 - Added ``strip_top`` parameter to
1462 ``StateMachineWS.get_first_known_indented``.
1463 - Made ``context`` a parameter to ``StateMachine.run()``.
1464 - Added ``ViewList`` & ``StringList`` classes;
1465 ``extract_indented()`` becomes ``StringList.get_indented()``.
1466 - Added ``StateMachine.insert_input()``.
1467 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1468 thanks to) Fred Drake.
1470 * docutils/utils.py:
1472 - Added a ``source`` attribute to Reporter instances and
1473 ``system_message`` elements.
1474 - Added an observer pattern to ``utils.Reporter`` to keep track of
1476 - Fixed bugs in ``relative_path()``.
1477 - Added support for improved diagnostics.
1478 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1479 - Added support for encoding Reporter stderr output, and encoding
1481 - Reporter keeps track of the highest level system message yet
1484 * docutils/languages: Fixed bibliographic field language lookups.
1486 * docutils/languages/es.py: Added to project; Spanish mappings by
1487 Marcelo Huerta San Martin.
1489 * docutils/languages/fr.py: Added to project; French mappings by
1492 * docutils/languages/it.py: Added to project; Italian mappings by
1495 * docutils/languages/sk.py: Added to project; Slovak mappings by
1498 * docutils/parser/__init__.py:
1500 - Added ``Parser.finish_parse()`` method.
1502 * docutils/parser/rst/__init__.py:
1504 - Added options: "--pep-references", "--rfc-references",
1505 "--tab-width", "--trim-footnote-reference-space".
1507 * docutils/parsers/rst/states.py:
1509 - Changed "title under/overline too short" system messages from INFO
1510 to WARNING, and fixed its insertion location.
1511 - Fixed enumerated list item parsing to allow paragraphs & section
1512 titles to begin with enumerators.
1513 - Converted system messages to use the new "line" attribute.
1514 - Fixed a substitution reference edge case.
1515 - Added support for "--pep-references" and "--rfc-references"
1516 options; reworked ``Inliner`` code to make customization easier.
1517 - Removed field argument parsing.
1518 - Added support for short section title over/underlines.
1519 - Fixed "simple reference name" regexp to ignore text like
1520 "object.__method__"; not an anonymous reference.
1521 - Added support for improved diagnostics.
1522 - Reworked directive API, based on Dethe Elza's contribution. Added
1523 ``Body.parse_directive()``, ``.parse_directive_options()``,
1524 ``.parse_directive_arguments()`` methods.
1525 - Added ``ExtensionOptions`` class, to parse directive options
1526 without parsing field bodies. Factored
1527 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1528 ``ExtensionOptions``.
1529 - Improved definition list term/classifier parsing.
1530 - Added warnings for unknown directives.
1531 - Renamed ``Stuff`` to ``Struct``.
1532 - Now flagged as errors: transitions at the beginning or end of
1533 sections, empty sections (except title), and empty documents.
1534 - Updated for ``statemachine.StringList``.
1535 - Enabled recognition of schemeless email addresses in targets.
1536 - Added support for embedded URIs in hyperlink references.
1537 - Added backslash-escapes to inline markup end-string suffix.
1538 - Added support for correct interpreted text processing.
1539 - Fixed nested title parsing (topic, sidebar directives).
1540 - Added special processing of backslash-escaped whitespace (idea
1541 from David Abrahams).
1542 - Made substitutions case-sensitive-but-forgiving; moved some code
1543 to ``docutils.nodes``.
1544 - Added support for block quote attributions.
1545 - Added a kludge to work-around a conflict between the bubble-up
1546 parser strategy and short titles (<= 3 char-long over- &
1547 underlines). Fixes SF bug #738803 "infinite loop with multiple
1548 titles" submitted by Jason Diamond.
1549 - Added explicit interpreted text roles for standard inline markup:
1550 "emphasis", "strong", "literal".
1551 - Implemented "superscript" and "subscript" interpreted text roles.
1552 - Added initial support for "abbreviation" and "acronym" roles;
1554 - Added support for "--trim-footnote-reference-space" option.
1555 - Optional space before colons in directives & hyperlink targets.
1557 * docutils/parsers/rst/tableparser.py:
1559 - Fixed a bug that was producing unwanted empty rows in "simple"
1561 - Detect bad column spans in "simple" tables.
1563 * docutils/parsers/rst/directives: Updated all directive functions to
1566 * docutils/parsers/rst/directives/__init__.py:
1568 - Added ``flag()``, ``unchanged()``, ``path()``,
1569 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1570 directive option helper functions.
1571 - Added warnings for unknown directives.
1572 - Return ``None`` for missing directives.
1573 - Added ``register_directive()``, thanks to William Dode and Paul
1576 * docutils/parsers/rst/directives/admonitions.py:
1578 - Added "admonition" directive.
1580 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1581 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1582 "parsed-literal", "rubric", "epigraph", "highlights" and
1583 "pull-quote" directives.
1585 * docutils/parsers/rst/directives/images.py:
1587 - Added an "align" attribute to the "image" & "figure" directives
1588 (by Adam Chodorowski).
1589 - Added "class" option to "image", and "figclass" to "figure".
1591 * docutils/parsers/rst/directives/misc.py:
1593 - Added "include", "raw", and "replace" directives, courtesy of
1595 - Added "unicode" and "class" directives.
1597 * docutils/parsers/rst/directives/parts.py:
1599 - Added the "sectnum" directive; by Dmitry Jemerov.
1600 - Added "class" option to "contents" directive.
1602 * docutils/parsers/rst/directives/references.py: Added to project.
1603 Contains the "target-notes" directive.
1605 * docutils/parsers/rst/languages/__init__.py:
1607 - Return ``None`` from get_language() for missing language modules.
1609 * docutils/parsers/rst/languages/de.py: Added to project; German
1610 mappings by Engelbert Gruber.
1612 * docutils/parsers/rst/languages/en.py:
1614 - Added interpreted text roles mapping.
1616 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1617 mappings by Marcelo Huerta San Martin.
1619 * docutils/parsers/rst/languages/fr.py: Added to project; French
1620 mappings by William Dode.
1622 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1623 mappings by Nicola Larosa.
1625 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1626 mappings by Miroslav Vasko.
1628 * docutils/readers/__init__.py:
1630 - Added support for the observer pattern from ``utils.Reporter``, in
1631 ``Reader.parse`` and ``Reader.transform``.
1632 - Removed ``Reader.transform()`` method.
1633 - Added default parameter values to ``Reader.__init__()`` to make
1634 instantiation easier.
1635 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1637 * docutils/readers/pep.py:
1639 - Added the ``peps.TargetNotes`` transform to the Reader.
1640 - Removed PEP & RFC reference detection code; moved to
1641 parsers/rst/states.py as options (enabled here by default).
1642 - Added support for pre-acceptance PEPs (no PEP number yet).
1643 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1646 * docutils/readers/python: Python Source Reader subpackage added to
1647 project, including preliminary versions of:
1650 - moduleparser.py: Parser for Python modules.
1652 * docutils/transforms/__init__.py:
1654 - Added ``Transformer`` class and completed transform reform.
1655 - Added unknown_reference_resolvers list for each transformer. This list holds
1656 the list of functions provided by each component of the transformer that
1657 help resolve references.
1659 * docutils/transforms/frontmatter.py:
1661 - Improved support for generic fields.
1662 - Fixed bibliographic field language lookups.
1664 * docutils/transforms/misc.py: Added to project. Miscellaneous
1667 * docutils/transforms/parts.py:
1669 - Moved the "id" attribute from TOC list items to the references
1670 (``Contents.build_contents()``).
1671 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1672 - Added "class" attribute support to ``Contents``.
1674 * docutils/transforms/peps.py:
1676 - Added ``mask_email()`` function, updating to pep2html.py's
1678 - Linked "Content-Type: text/x-rst" to PEP 12.
1679 - Added the ``TargetNotes`` PEP-specific transform.
1680 - Added ``TargetNotes.cleanup_callback``.
1681 - Added title check to ``Headers``.
1683 * docutils/transforms/references.py:
1685 - Added the ``TargetNotes`` generic transform.
1686 - Split ``Hyperlinks`` into multiple transforms.
1687 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1688 - Added check for circular indirect references.
1689 - Made substitutions case-sensitive-but-forgiving.
1691 * docutils/transforms/universal.py:
1693 - Added support for the "--expose-internal-attributes" option.
1694 - Removed ``Pending`` transform classes & data.
1696 * docutils/writers/__init__.py:
1698 - Removed ``Writer.transform()`` method.
1700 * docutils/writers/docutils-xml.py:
1702 - Added XML and doctype declarations.
1703 - Added "--no-doctype" and "--no-xml-declaration" options.
1705 * docutils/writers/html4css1.py:
1707 - "name" attributes only on these tags: a, applet, form, frame,
1709 - Added "name" attribute to <a> in section titles for Netscape 4
1710 support (bug report: Pearu Peterson).
1711 - Fixed targets (names) on footnote, citation, topic title,
1712 problematic, and system_message nodes (for Netscape 4).
1713 - Changed field names from "<td>" to "<th>".
1714 - Added "@" to "@" encoding to thwart address harvesters.
1715 - Improved the vertical whitespace optimization; ignore "invisible"
1716 nodes (targets, comments, etc.).
1717 - Improved inline literals with ``<span class="pre">`` around chunks
1718 of text and `` `` for runs of spaces.
1719 - Improved modularity of output; added ``self.body_pre_docinfo`` and
1720 ``self.docinfo`` segments.
1721 - Added support for "line_block", "address" elements.
1722 - Improved backlinks (footnotes & system_messages).
1723 - Improved system_message output.
1724 - Redefined "--stylesheet" as containing an invariant URL, used
1725 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
1727 - Added "--footnote-references" option (superscript or brackets).
1728 - Added "--compact-lists" and "--no-compact-lists" options.
1729 - Added "--embed-stylesheet" and "--link-stylesheet" options;
1730 factored out ``HTMLTranslator.get_stylesheet_reference()``.
1731 - Improved field list rendering.
1732 - Added Docutils version to "generator" meta tag.
1733 - Fixed a bug with images; they must be inline, so wrapped in <p>.
1734 - Improved layout of <pre> HTML source.
1735 - Fixed attribute typo on <colspec>.
1736 - Refined XML prologue.
1737 - Support for no stylesheet.
1738 - Removed "interpreted" element support.
1739 - Added support for "title_reference", "sidebar", "attribution",
1740 "rubric", and generic "admonition" elements.
1741 - Added "--attribution" option.
1742 - Added support for "inline", "subscript", "superscript" elements.
1743 - Added initial support for "abbreviation" and "acronym";
1746 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
1750 - Double quotes in literal blocks (special treatment for de/ngerman).
1751 - Added '--hyperlink-color' option ('0' turns off coloring of links).
1752 - Added "--attribution" option.
1753 - Right align attributions.
1755 * docutils/writers/pep_html.py:
1757 - Parameterized output encoding in PEP template.
1758 - Reworked substitutions from ``locals()`` into ``subs`` dict.
1759 - Redefined "--pep-stylesheet" as containing an invariant URL, used
1760 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
1762 - Added an override on the "--footnote-references" option.
1763 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
1764 - Added Docutils version to "generator" meta tag.
1765 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1769 - Added a "silent" setting for ``buildhtml.py``.
1770 - Added a "Getting Help" section.
1771 - Rearranged the structure.
1772 - Kept up to date, with new settings, command-line options etc.
1773 - Added section for ``rst2latex.py`` (Engelbert Gruber).
1774 - Converted settings table into a definition list.
1776 * docs/rst/quickstart.txt:
1778 - Added a table of contents.
1779 - Added feedback information.
1780 - Added mention of minimum section title underline lengths.
1781 - Removed the 4-character minimum for section title underlines.
1783 * docs/rst/quickref.html:
1785 - Added a "Getting Help" section.
1786 - Added a style to make section title backlinks more subtle.
1787 - Added mention of minimum section title underline lengths.
1788 - Removed the 4-character minimum for section title underlines.
1790 * extras: Directory added to project; contains third-party modules
1791 that Docutils depends on (optparse, textwrap, roman). These are
1792 only installed if they're not already present.
1794 * licenses: Directory added to project; contains copies of license
1795 files for non-public-domain files.
1799 - Changed the focus. It's about DTD elements: structural
1800 relationships, semantics, and external (public) attributes. Not
1801 about the element class library.
1802 - Moved some implementation-specific stuff into ``docutils.nodes``
1804 - Wrote descriptions of all common attributes and parameter
1805 entities. Filled in introductory material.
1806 - Working through the element descriptions: 55 down, 37 to go.
1807 - Removed "Representation of Horizontal Rules" to
1808 spec/rst/alternatives.txt.
1810 * spec/docutils.dtd:
1812 - Added "generated" inline element.
1813 - Added "line_block" body element.
1814 - Added "auto" attribute to "title".
1815 - Changed content models of "literal_block" and "doctest_block" to
1817 - Added ``%number;`` attribute type parameter entity.
1818 - Changed ``%structural.elements;`` to ``%section.elements``.
1819 - Updated attribute types; made more specific.
1820 - Added "address" bibliographic element.
1821 - Added "line" attribute to ``system_message`` element.
1822 - Removed "field_argument" element; "field_name" may contain
1823 multiple words and whitespace.
1824 - Changed public identifier to docutils.sf.net.
1825 - Removed "interpreted" element; added "title_reference",
1826 "abbreviation", "acronym".
1827 - Removed "refuri" attribute from "footnote_reference" and
1828 "citation_reference".
1829 - Added "sidebar", "rubric", "attribution", "admonition",
1830 "superscript", "subscript", and "inline" elements.
1832 * spec/pep-0256.txt: Converted to reStructuredText & updated.
1834 * spec/pep-0257.txt: Converted to reStructuredText & updated.
1836 * spec/pep-0258.txt: Converted to reStructuredText & updated.
1838 * spec/semantics.txt: Updated with text from a Doc-SIG response to
1841 * spec/transforms.txt: Added to project.
1843 * spec/howto: Added subdirectory, for developer how-to docs.
1845 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
1846 Elza, edited & extended by David Goodger.
1848 * spec/howto/i18n.txt: Docutils Internationalization. Added to
1851 * spec/rst/alternatives.txt:
1853 - Added "Doctree Representation of Transitions" from
1855 - Updated "Inline External Targets" & closed the debate.
1856 - Added ideas for interpreted text syntax extensions.
1857 - Added "Nested Inline Markup" section.
1859 * spec/rst/directives.txt:
1861 - Added directives: "topic", "sectnum", "target-notes",
1862 "line-block", "parsed-literal", "include", "replace", "sidebar",
1863 "admonition", "rubric", "epigraph", "highlights", "unicode" and
1865 - Formalized descriptions of directive details.
1866 - Added an "align" attribute to the "image" & "figure" directives
1867 (by Adam Chodorowski).
1868 - Added "class" options to "topic", "sidebar", "line-block",
1869 "parsed-literal", "contents", and "image"; and "figclass" to
1872 * spec/rst/interpreted.txt: Added to project. Descriptions of
1873 interpreted text roles.
1875 * spec/rst/introduction.txt:
1877 - Added pointers to material for new users.
1879 * spec/rst/reStructuredText.txt:
1881 - Disambiguated comments (just add a newline after the "::").
1882 - Updated enumerated list description; added a discussion of the
1883 second-line validity checking.
1884 - Updated directive description.
1885 - Added a note redirecting newbies to the user docs.
1886 - Expanded description of inline markup start-strings in non-markup
1888 - Removed field arguments and made field lists a generic construct.
1889 - Removed the 4-character minimum for section title underlines.
1890 - Clarified term/classifier delimiter & inline markup ambiguity
1892 - Added "Embedded URIs".
1893 - Updated "Interpreted Text" section.
1894 - Added "Character-Level Inline Markup" section.
1896 * test: Continually adding & updating tests.
1898 - Moved test/test_rst/ to test/test_parsers/test_rst/.
1899 - Moved test/test_pep/ to test/test_readers/test_pep/.
1900 - Added test/test_readers/test_python/.
1901 - Added test/test_writers/ (Engelbert Gruber).
1905 - Made the ``locale.setlocale()`` calls in front ends
1908 * tools/buildhtml.py:
1910 - Added "--silent" option.
1911 - Fixed bug with absolute paths & "--config".
1912 - Updated for new I/O classes.
1913 - Added some exception handling.
1914 - Separated publishers' setting defaults; prevents interference.
1915 - Updated for new ``publish_file()`` convenience function.
1917 * tools/pep-html-template:
1919 - Allow for "--embed-stylesheet".
1920 - Added Docutils version to "generator" meta tag.
1921 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1922 - Conform to XHTML spec.
1924 * tools/pep2html.py:
1926 - Made ``argv`` a parameter to ``main()``.
1927 - Added support for "Content-Type:" header & arbitrary PEP formats.
1928 - Linked "Content-Type: text/plain" to PEP 9.
1929 - Files skipped (due to an error) are not pushed onto the server.
1930 - Updated for new I/O classes.
1931 - Added ``check_requirements()`` & ``pep_type_error()``.
1932 - Added some exception handling.
1933 - Updated for new ``publish_string()`` convenience function.
1934 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1936 * tools/quicktest.py:
1938 - Added "-V"/"--version" option.
1940 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
1942 * tools/unicode2rstsubs.py: Added to project. Produces character
1943 entity files (reSructuredText substitutions) from the MathML master
1946 * tools/editors: Support code for editors, added to project. Contains
1947 ``emacs/restructuredtext.el``.
1949 * tools/stylesheets/default.css: Moved into the stylesheets directory.
1951 - Added style for chunks of inline literals.
1952 - Removed margin for first child of table cells.
1953 - Right-aligned field list names.
1954 - Support for auto-numbered section titles in TOCs.
1955 - Increased the size of inline literals (<tt>) in titles.
1956 - Restored the light gray background for inline literals.
1957 - Added support for "line_block" elements.
1958 - Added style for "address" elements.
1959 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
1960 - Improved field list rendering.
1961 - Vertical whitespace improvements.
1962 - Removed "a.target" style.
1964 * tools/stylesheets/pep.css:
1966 - Fixed nested section margins.
1967 - Other changes parallel those of ``../default.css``.
1970 Release 0.2 (2002-07-31)
1971 ========================
1975 - The word "component" was being used ambiguously. From now on,
1976 "component" will be used to mean "Docutils component", as in Reader,
1977 Writer, Parser, or Transform. Portions of documents (Table of
1978 Contents, sections, etc.) will be called "document parts".
1979 - Did a grand renaming: a lot of ``verylongnames`` became
1980 ``very_long_names``.
1981 - Cleaned up imports: no more relative package imports or
1982 comma-separated lists of top-level modules.
1983 - Added support for an option values object which carries default
1984 settings and overrides (from command-line options and library use).
1985 - Added internal Unicode support, and support for both input and
1987 - Added support for the ``docutils.io.IO`` class & subclasses.
1991 * docutils/__init__.py:
1993 - Added ``ApplicationError`` and ``DataError``, for use throughout
1995 - Added ``Component`` base class for Docutils components; implements
1996 the ``supports`` method.
1997 - Added ``__version__`` (thus, ``docutils.__version__``).
2001 - Removed many keyword parameters to ``Publisher.__init__()`` and
2002 ``publish()``; bundled into an option values object. Added
2003 "argv", "usage", "description", and "option_spec" parameters for
2004 command-line support.
2005 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2007 - Reworked I/O model for ``docutils.io`` wrappers.
2008 - Updated ``Publisher.set_options()``; now returns option values
2010 - Added support for configuration files (/etc/docutils.conf,
2011 ./docutils.conf, ~/.docutils).
2012 - Added ``Publisher.setup_option_parser()``.
2013 - Added default usage message and description.
2015 * docutils/frontend.py: Added to project; support for front-end
2016 (command-line) scripts. Option specifications may be augmented by
2017 components. Requires Optik (http://optik.sf.net/) for option
2018 processing (installed locally as docutils/optik.py).
2020 * docutils/io.py: Added to project; uniform API for a variety of input
2023 * docutils/nodes.py:
2025 - Added ``TreeCopyVisitor`` class.
2026 - Added a ``copy`` method to ``Node`` and subclasses.
2027 - Added a ``SkipDeparture`` exception for visitors.
2028 - Renamed ``TreePruningException`` from ``VisitorException``.
2029 - Added docstrings to ``TreePruningException``, subclasses, and
2031 - Improved docstrings.
2032 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2033 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2035 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2036 ``PreDecorative`` mixin.
2037 - Reworked the name/id bookkeeping; to ``document``, removed
2038 ``explicit_targets`` and ``implicit_targets`` attributes, added
2039 ``nametypes`` attribute and ``set_name_id_map`` method.
2040 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2042 - Added ``document.has_name()`` method.
2043 - Fixed DOM generation for list-attributes.
2044 - Added category class ``Labeled`` (used by footnotes & citations).
2045 - Added ``Element.set_class()`` method (sets "class" attribute).
2047 * docutils/optik.py: Added to project. Combined from the Optik
2048 package, with added option groups and other modifications. The use
2049 of this module is probably only temporary.
2051 * docutils/statemachine.py:
2053 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2054 - Added underscores to improve many awkward names.
2055 - In ``string2lines()``, changed whitespace normalizing translation
2056 table to regexp; restores Python 2.0 compatibility with Unicode.
2058 * docutils/urischemes.py:
2060 - Filled in some descriptions.
2061 - Added "shttp" scheme.
2063 * docutils/utils.py:
2065 - Added ``clean_rcs_keywords`` function (moved from
2066 docutils/transforms/frontmatter.py
2067 ``DocInfo.filter_rcs_keywords``).
2068 - Added underscores to improve many awkward names.
2069 - Changed names of Reporter's thresholds:
2070 warning_level -> report_level; error_level -> halt_level.
2071 - Moved ``utils.id()`` to ``nodes.make_id()``.
2072 - Added ``relative_path(source, target)``.
2074 * docutils/languages/de.py: German mappings; added to project. Thanks
2075 to Gunnar Schwant for the translations.
2077 * docutils/languages/en.py: Added "Dedication" bibliographic field
2080 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2083 * docutils/parsers/rst/states.py:
2085 - Added underscores to improve many awkward names.
2086 - Added RFC-2822 header support.
2087 - Extracted the inline parsing code from ``RSTState`` to a separate
2088 class, ``Inliner``, which will allow easy subclassing.
2089 - Made local bindings for ``memo`` container & often-used contents
2090 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2091 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2092 - Added ``MarkupMismatch`` exception; for late corrections.
2093 - Added ``-/:`` characters to inline markup's start string prefix,
2094 ``/`` to end string suffix.
2095 - Fixed a footnote bug.
2096 - Fixed a bug with literal blocks.
2097 - Applied patch from Simon Budig: simplified regexps with symbolic
2098 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2099 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2100 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2101 - Allowed non-ASCII in "simple names" (directive names, field names,
2103 - Converted ``Inliner.patterns.initial`` to be dynamically built
2104 from parts with ``build_regexp()`` function.
2105 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2106 - Updated docstrings.
2107 - Changed "table" to "grid_table"; added "simple_table" support.
2109 * docutils/parsers/rst/tableparser.py:
2111 - Changed ``TableParser`` to ``GridTableParser``.
2112 - Added ``SimpleTableParser``.
2113 - Refactored naming.
2115 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2116 a fallback language for directive names.
2118 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2119 directive to use a ``pending`` element, used only by HTML writers.
2121 * docutils/parsers/rst/directives/parts.py: Renamed from
2124 - Added "backlinks" attribute to "contents" directive.
2126 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2127 project by Adam Chodorowski.
2129 * docutils/readers/__init__.py: Gave Readers more control over
2130 choosing and instantiating Parsers.
2132 * docutils/readers/pep.py: Added to project; for PEP processing.
2134 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2135 requires a ``component`` parameter.
2137 * docutils/transforms/components.py: Added to project; transforms
2138 related to Docutils components.
2140 * docutils/transforms/frontmatter.py:
2142 - In ``DocInfo.extract_authors``, check for a single "author" in an
2143 "authors" group, and convert it to a single "author" element.
2144 - Added support for "Dedication" and generic bibliographic fields.
2146 * docutils/transforms/peps.py: Added to project; PEP-specific.
2148 * docutils/transforms/parts.py: Renamed from old components.py.
2150 - Added filter for `Contents`, to use alt-text for inline images,
2151 and to remove inline markup that doesn't make sense in the ToC.
2152 - Added "name" attribute to TOC topic depending on its title.
2153 - Added support for optional TOC backlinks.
2155 * docutils/transforms/references.py: Fixed indirect target resolution
2156 in ``Hyperlinks`` transform.
2158 * docutils/transforms/universal.py:
2160 - Changed ``Messages`` transform to properly filter out system
2161 messages below the warning threshold.
2162 - Added ``Decorations`` transform (support for ``--generator``,
2163 ``--date``, ``--time``, ``--source-link`` options).
2165 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2166 Engelbert Gruber's PDF writer.
2168 * docutils/writers/html4css1.py:
2170 - Made XHTML-compatible (switched to lowercase element & attribute
2171 names; empty tag format).
2172 - Escape double-dashes in comment text.
2173 - Improved boilerplate & modularity of output.
2174 - Exposed modular output in Writer class.
2175 - Added a "generator" meta tag to <head>.
2176 - Added support for the ``--stylesheet`` option.
2177 - Added support for ``decoration``, ``header``, and ``footer``
2179 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2180 translation table to regexp; restores Python 2.0 compatibility
2182 - Added the translator class as instance variable to the Writer, to
2183 make it easily subclassable.
2184 - Improved option list spacing (thanks to Richard Jones).
2185 - Modified field list output.
2186 - Added backlinks to footnotes & citations.
2187 - Added percentage widths to "<col>" tags (from colspec).
2188 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2189 "<span>" changed to "<var>".
2190 - Inline literals: "<code>" changed to "<tt>".
2191 - Many changes to optimize vertical space: compact simple lists etc.
2192 - Add a command-line options & directive attributes to control TOC
2193 and footnote/citation backlinks.
2194 - Added support for optional footnote/citation backlinks.
2195 - Added support for generic bibliographic fields.
2196 - Identify backrefs.
2197 - Relative URLs for stylesheet links.
2199 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2200 PEPs (subclass of ``html4css1.Writer``).
2202 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2204 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2205 of the Docutils internal doctree in XML.
2207 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2211 - Changed the title to "The Docutils Document Tree".
2212 - Added "Hyperlink Bookkeeping" section.
2214 * spec/docutils.dtd:
2216 - Added ``decoration``, ``header``, and ``footer`` elements.
2217 - Brought ``interpreted`` element in line with the parser: changed
2218 attribute "type" to "role", added "position".
2219 - Added support for generic bibliographic fields.
2221 * spec/notes.txt: Continual updates. Added "Project Policies".
2223 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2226 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2228 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2229 mailing list discussions.
2231 * spec/pep-0287.txt:
2233 - Renamed to "reStructuredText Docstring Format".
2235 - Reworked Q&A as an enumerated list.
2236 - Converted to reStructuredText format.
2238 * spec/pysource.dtd:
2240 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2242 * spec/pysource.txt: Removed from project. Moved much of its contents
2245 * spec/rst/alternatives.txt:
2247 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2248 - Added "Inline External Targets" section.
2250 * spec/rst/directives.txt:
2252 - Added "backlinks" attribute to "contents" directive.
2254 * spec/rst/problems.txt:
2256 - Updated the Enumerated List Markup discussion.
2257 - Added new alternative table markup syntaxes.
2259 * spec/rst/reStructuredText.txt:
2261 - Clarified field list usage.
2262 - Updated enumerated list description.
2263 - Clarified purpose of directives.
2264 - Added ``-/:`` characters to inline markup's start string prefix,
2265 ``/`` to end string suffix.
2266 - Updated "Authors" bibliographic field behavior.
2267 - Changed "inline hyperlink targets" to "inline internal targets".
2268 - Added "simple table" syntax to supplement the existing but
2269 newly-renamed "grid tables".
2270 - Added cautions for anonymous hyperlink use.
2271 - Added "Dedication" and generic bibliographic fields.
2273 * test: Made test modules standalone (subdirectories became packages).
2275 * test/DocutilsTestSupport.py:
2277 - Added support for PEP extensions to reStructuredText.
2278 - Added support for simple tables.
2279 - Refactored naming.
2281 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2283 - Now supports true packages containing test modules
2284 (``__init__.py`` files required); fixes duplicate module name bug.
2286 * test/test_pep/: Subpackage added to project; PEP testing.
2288 * test/test_rst/test_SimpleTableParser.py: Added to project.
2292 - Updated html.py and publish.py front-end tools to use the new
2293 command-line processing facilities of ``docutils.frontend``
2294 (exposed in ``docutils.core.Publisher``), reducing each to just a
2296 - Added ``locale.setlocale()`` calls to front-end tools.
2298 * tools/buildhtml.py: Added to project; batch-generates .html from all
2299 the .txt files in directories and subdirectories.
2301 * tools/default.css:
2303 - Added support for ``header`` and ``footer`` elements.
2304 - Added styles for "Dedication" topics (biblio fields).
2306 * tools/docutils.conf: A configuration file; added to project.
2308 * tools/docutils-xml.py: Added to project.
2310 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2312 * tools/pep-html-template: Added to project.
2314 * tools/pep2html.py: Added to project from Python (nondist/peps).
2315 Added support for Docutils (reStructuredText PEPs).
2317 * tools/quicktest.py:
2319 - Added the ``--attributes`` option, hacked a bit.
2320 - Added a second command-line argument (output file); cleaned up.
2322 * tools/stylesheets/: Subdirectory added to project.
2324 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2327 Release 0.1 (2002-04-20)
2328 ========================
2330 This is the first release of Docutils, merged from the now inactive
2331 reStructuredText__ and `Docstring Processing System`__ projects. For
2332 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2333 `DPS HISTORY`__ files.
2335 __ http://structuredtext.sourceforge.net/
2336 __ http://docstring.sourceforge.net/
2337 __ http://structuredtext.sourceforge.net/HISTORY.html
2338 __ http://docstring.sourceforge.net/HISTORY.html
2340 General changes: renamed 'dps' package to 'docutils'; renamed
2341 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2342 the test suites (reStructuredText's test/test_states renamed to
2343 test/test_rst); and all modifications required to make it all work.
2345 * docutils/parsers/rst/states.py:
2347 - Improved diagnostic system messages for missing blank lines.
2348 - Fixed substitution_reference bug.
2354 indent-tabs-mode: nil
2355 sentence-end-double-space: t