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 - Allow ``+`` and ``:`` in reference names.
50 - Unquoted targets beginning with an underscore (``.. __target:
51 URI``) are no longer accepted.
52 - Added support for multiple attributions in a physical block quote
53 (indented text block), dividing it into multiple logical block
55 - Added support for unicode bullets in bullet lists: "•", "‣", and
57 - Added support for new object-oriented directive interface,
58 retaining compatibility to the old functional interface.
59 - Added support for throwing ``DirectiveError``'s from within
62 * docutils/parsers/rst/__init__.py:
64 - Added ``Directive`` base class.
65 - Added ``DirectiveError`` base class.
66 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
69 * docutils/parsers/directives/:
71 - Refactored all reStructuredText directives to use the new
72 object-oriented directive interface. Errors are now (mostly)
73 thrown using the new ``DirectiveError`` class.
75 * docutils/parsers/directives/misc.py:
77 - Added ``start-after`` and ``end-before`` options to ``include``
78 directive; thanks to Stefan Rank.
80 * docutils/transforms/universal.py:
82 - Added ``StripClassesAndElements`` transform to remove from the
83 document tree all elements with classes in
84 ``settings.strip_elements_with_classes`` and all "classes"
85 attribute values in ``self.document.settings.strip_classes``.
87 * docutils/transforms/writer_aux.py:
89 - Added ``Admonitions`` transform to transform specific admonitions
90 (like ``note``, ``warning``, etc.) into generic admonitions with a
93 * docutils/writers/html4css1/__init__.py:
95 - Moved template functionality from the PEP/HTML writer here.
96 - Expanded the fragments available in the ``parts`` attribute.
97 - Moved ``id`` attributes from titles to surrounding ``div``
99 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
100 universally supported now).
101 - ``template.txt`` is now opened in text mode instead of binary mode
102 (to ensure Windows compatibility).
103 - ``a`` elements now have an "internal" or "external" class,
104 depending on reference type.
106 * docutils/writers/html4css1/template.txt: Added to project.
108 * docutils/writers/pep_html/:
110 - Moved template functionality to the HTML writer.
112 * docutils/writers/s5_html/__init__.py:
114 - Added ``view_mode`` & ``hidden_controls`` settings
115 (``--view-mode`` & ``--hidden-controls/--visible-controls``
118 * docutils/writers/latex2e/__init__.py:
120 - Add ``--literal-block-env``
121 - Fix: escaping ``%`` in href urls.
122 - Move usepackage hyperref after stylesheet inclusion.
123 - Fix: scrartcl does not have chapter but scrreprt.
124 - Add newline after ``\end{verbatim}``.
125 - Merge smaller differences from latex2e_adaptive_preamble.
126 - Add ``use-part-section``.
127 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
128 - Using leavemode optoin_list no longer needs to check if parent
129 is a definition list.
130 - Append ``\leavemode`` to definition list terms.
131 - No longer write visit\_/depart_definition_list_item comments to
133 - Table column width with 3 decimal places.
134 - Add table stubs support (boldfont).
135 - Add assemble_parts to writer.
136 - Add simply support for nested tables.
137 - Fix verbatim in tables if use-verbatim-when-possible.
138 - Use section commands down to subparagraph.
139 - Put ensuremath around some latin1 chars.
140 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
141 - New option ``--use-bibtex=style,db1,db2``.
142 - New option ``--reference-label`` to allow usage of LaTeX ref for
143 labels in section references.
144 - Add a label after every section to support sectionnumbers as reference
146 - Fix: bug# 1605376 rst2latex: bad options group list
147 - Remove inactive code for use_optionlist_for_option_list.
148 - Remove latex comments from option_list output.
149 - Fix: bug# 1612270 double qoutes in italian literal.
150 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
151 - Add option --use-latex-abstract.
152 - Image width unit ``px`` is translated to ``pt``.
153 - Add image height support.
154 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
156 - Fix: Do not escape underscores in citation reference labels if
157 use-latex-citations is set.
158 - Use centering instead of center for figure contents, to avoid vertical
160 - Recognize table class: borderless, nolines, booktabs, standard.
161 - Fix: Renaming contents section does not work with latex writer; SF
163 - Applied patch for custom roles with classes from Edward Loper.
164 - Fixed bug that caused crashes with more than 256 lists.
166 * docutils/writers/pep_html/__init__.py:
168 - Changed to support new python.org website structure and
171 * docs/howto/security.txt: "Deploying Docutils Securely", added to
174 * tools/buildhtml.py:
176 -- Added ``ignore`` setting to exclude a list of shell patterns
177 (default: ``.svn:CVS``).
179 * tools/editors/emacs/rst.el:
181 - Changed license to "GPL".
182 - Added ``rst-straighten-decorations`` function.
183 - The ``compile`` module is now always loaded.
184 - Added ``rst-toggle-line-block`` function.
185 - Headings consisting only of non-ASCII characters are now
186 recognized by ``rst-toc`` and ``rst-adjust``.
187 - Added font-lock support for multi-line comments where the first
188 comment line is empty.
189 - Added ``(require 'font-lock)``.
193 - Provide descriptive error message if distutils is missing.
196 Release 0.4 (2006-01-09)
197 ========================
201 - Updated the project policies for trunk/branch development &
204 * docutils/__init__.py:
206 - Added ``__version_details__`` attribute to describe code source
207 (repository/snapshot/release).
208 - Replaced ``default_transforms`` attribute of TransformSpec with
209 ``get_transforms()`` method.
213 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
214 functions, for document tree extraction and reprocessing.
218 - Added ``DocTreeInput`` class, for reprocessing existing documents.
219 - Added support for non-Unicode (e.g. binary) writer output.
223 - Re-introduced ``Targetable.indirect_reference_name``, for
224 MoinMoin/reST compatibility (removed in r3124/r3129).
225 - Added ``serial_escape`` function; escapes string values that are
226 elements of a list, for serialization. Modified Docutils-XML
227 writing (``Element._dom_node``) and pseudo-XML writing
228 (``Element.starttag``) to use ``serial_escape``.
229 - Added ``Node.deepcopy()`` method.
230 - Removed the internal lists ``document.substitution_refs``,
231 ``document.anonymous_refs``, and ``document.anonymous_targets``.
232 - Added a "container" element.
233 - Fixed bug where values of list-valued attributes of elements
234 originating from custom interpreted text roles (i.e., with custom
235 classes) were being shared between element instances. Reported by
238 * docutils/statemachine.py:
240 - Added trailing whitespace stripping to ``string2lines()``.
241 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
242 Asian double-width character support.
246 - Added ``east_asian_column_width()`` for double-width character
249 * docutils/languages/ja.py: Added to project: Japanese mappings by
252 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
253 mappings by Panjunyong.
255 * docutils/parsers/null.py: Added to project; a do-nothing parser.
257 * docutils/parsers/rst/__init__.py:
259 - Added validator to tab_width setting, with test. Closes SF bug
260 #1212515, report from Wu Wei.
262 * docutils/parsers/rst/states.py:
264 - Fixed bug with escaped colons indicating a literal block.
265 - Fixed bug with enumerated lists (SF#1254145).
266 - Backslash-escaped colons inside of field names are now allowed.
267 - Targets (implicit and explicit), anonymous hyperlink references
268 and auto-numbered footnote references inside of substitution
269 definitions are now disallowed.
270 - Fixed bug: list items with blank first lines.
271 - Fixed bug: block quote attributions with indented second lines.
272 - Added East Asian double-width character support (Python 2.4 only).
274 * docutils/parsers/rst/tableparser.py:
276 - Added East Asian double-width character support (Python 2.4 only).
278 * docutils/parsers/rst/directives/body.py:
280 - Added the "container" directive.
282 * docutils/parsers/rst/directives/misc.py:
284 - Added the "default-role", "title", and "date" directives.
285 - Added standard data file syntax to the "include" directive.
286 - Added support for "class" directive content.
288 * docutils/parsers/rst/directives/images.py:
290 - Added ``indirect_reference_name`` support for images with a target
292 - Added support for image width and height units.
293 - Fixed bug with image "target" options.
295 * docutils/parsers/rst/directives/references.py:
297 - Added "class" attribute to "target-notes" directive, for
298 footnote_reference classes.
300 * docutils/parsers/rst/include/: Directory added to project; contains
301 standard data files for the "include" directive. Initial contents:
302 character entity substitution definition sets, and a set of
303 definitions for S5/HTML presentations.
305 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
306 mappings by David Goodger.
308 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
309 Simplified Chinese mappings by Panjunyong.
311 * docutils/readers/__init__.py:
313 - Added universal.Decorations and universal.ExposeInternals
314 transforms as default transforms for all readers.
315 - Added ``ReReader`` base class for readers that reread an existing
318 * docutils/readers/doctree.py: Added to project; a reader for existing
321 * docutils/transforms/frontmatter.py:
323 - Fixed the DocInfo transform to handle SVN-style expansion of the
325 - In ``DocInfo.extract_authors``, treat the contents of "authors"
328 * docutils/transforms/misc.py:
330 - Added misc.Transitions transform, extracted from
331 universal.FinalChecks.
333 * docutils/transforms/references.py:
335 - Added references.DanglingReferences transform, extracted from
336 universal.FinalChecks.
337 - Fixed bug with doubly-indirect substitutions.
338 - Added footnote_reference classes attribute to "TargetNotes".
339 - Fixed bug with circular substitution definitions that put Docutils
340 into an infinite loop.
342 * docutils/transforms/universal.py:
344 - Added universal.ExposeInternals transform, extracted from
345 universal.FinalChecks.
346 - Removed universal.FinalChecks transform (logic has been moved to
347 several new transforms).
348 - Fixed bug with the "expose_internals" setting and Text nodes
349 (exposed by the "rawsource" internal attribute).
350 - Added the universal.StripComments transform, implementation of the
351 "strip_comments" setting.
353 * docutils/transforms/writer_aux.py: Added to project; auxiliary
354 transforms for writers.
356 - Added ``Compound`` transform, which flattens compound paragraphs.
358 * docutils/writers/: Several writer modules (html4css1.py) were
359 converted into packages. Support modules and data files have been
360 moved into the packages. The stylesheets for the HTML writers are
361 now installed along with the code, the code knows where to find
362 them, and the default is to use them (actually, to embed them).
363 Some adjustments to configuration files may be necessary. The
364 easiest way to obtain the new default behavior is to remove all
365 settings whose name includes "stylesheet".
367 * docutils/writers/__init__.py:
369 - Added universal.Messages and universal.FilterMessages transforms
370 as default transforms for all writers.
371 - Added ``UnfilteredWriter`` base class for writers that pass the
372 document tree on unchanged.
374 * docutils/writers/docutils_xml.py:
376 - Made ``xmlcharrefreplace`` the default output encoding error
379 * docutils/writers/html4css1/:
381 - Added support for image width and height units.
382 - Made ``xmlcharrefreplace`` the default output encoding error
384 - Made ``--embed-stylesheet`` the default rather than
385 ``--link-stylesheet``.
386 - Moved "id" attribute from container (section etc.) to title's <a>
387 tag, to be on the same tag as "name".
388 (!!! To be reverted in Docutils 0.5.)
389 - Added vertical space between fields of field lists.
390 - Added ``--compact-field-lists`` option to remove vertical space in
392 - Made cloaking of email addresses with ``--cloak-email-addresses``
394 - Fixed support for centered images.
395 - Added support for class="compact" & class="open" lists.
397 * docutils/writers/latex2e/:
399 - Underscores in citekeys are no longer escaped.
401 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
402 mapping of Unicode characters to LaTeX equivalents.
404 * docutils/writers/s5_html/: Package added to project; writer for
407 * docs/dev/distributing.txt: Added to project; guide for distributors
408 (package maintainers).
410 * docs/dev/hacking.txt: Added to project; guide for developers.
412 * docs/ref/doctree.txt:
414 - Updated for plural attributes "classes", "ids", "names",
416 - Added the "container" element.
418 * docs/ref/docutils.dtd:
420 - Updated for plural attributes "classes", "ids", "names",
423 * docs/user/emacs.txt: Added to project; a document about Emacs
424 support for reStructuredText and Docutils.
426 * docs/user/links.txt: Added to project; lists of Docutils-related
429 * docs/user/mailing-lists.txt: Added to project; information about
430 Docutils-related mailing lists and how to access them.
432 * docs/user/slide-shows.txt: Added to project; example of and docs for
433 the S5/HTML writer (``rst2s5.py`` front end).
435 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
436 Files", added to project.
438 * test/coverage.sh: Added to project; test coverage script.
440 * test/DocutilsTestSupport.py:
442 - Added support for specifying runtime settings at the suite level.
444 * test/test_functional.py:
446 - Added the ``clear_output_directory`` function.
447 - Added support for ``_test_more`` functions in functional test
450 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
452 * tools/rstpep2html.py: Renamed from pep.py.
454 * tools/dev/create_unimap.py: Added to project; script to create the
455 docutils/writers/unimap_latex.py mapping file.
457 * tools/dev/profile_docutils.py: Added to project; profiler script.
459 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
461 * tools/editors/emacs/restructuredtext.el,
462 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
463 Removed from project; the functionality is now contained in rst.el.
465 * tools/editors/emacs/rst.el: Added to project. Added many features
466 and fixed many bugs. See docs/user/emacs.txt for details.
468 * tools/stylesheets: Removed from project. Stylesheets have been
469 renamed and moved into writer packages.
472 Release 0.3.9 (2005-05-26)
473 ==========================
477 - Eliminated and replaced all uses of the old string attributes
478 ``id``, ``name``, ``dupname`` and ``class`` with references to the
479 new list attributes ``ids``, ``names``, ``dupnames`` and
480 ``classes`` throughout the whole source tree.
484 - Enabled ``--dump-*`` options when ``--traceback`` specified,
485 allowing for easier debugging.
486 - In ``Publisher.publish()``, expanded the generic top-level
489 * docutils/examples.py:
491 - Added ``internals`` function for exploration.
495 - Fixed ``Input.decode`` method to apply heuristics only if no
496 encoding is explicitly given, and to provide better reporting of
498 - The ``Input.decode`` method now removes byte order marks (BOMs)
503 - ``image`` element class changed to subclass of Element, not
504 TextElement (it's an empty element, and cannot contain text).
505 - Added ``attr_defaults`` dictionary for default attribute values.
506 - Added empty list as default value for the following attributes:
507 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
508 - Added ``document.decoration`` attribute,
509 ``document.get_decoration`` method, and ``decoration.get_header``
510 & ``.get_footer`` methods.
511 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
516 - Removed ``docutils.utils.Reporter.categories``,
517 ``docutils.utils.ConditionSet``, and all references to them, to
518 simplify error reporting.
520 * docutils/languages/nl.py: Added to project; Dutch mappings by
523 * docutils/parsers/rst/__init__.py:
525 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
527 * docutils/parsers/rst/states.py:
529 - Added check for escaped at-mark to prevent email address recognition.
530 - Fixed option lists to allow spaces inside ``<angle-bracketed option
532 - Allowed whitespace in paths and URLs.
533 - Added auto-enumerated list items.
534 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
536 - Added support for table stub columns.
538 * docutils/parsers/rst/directives/__init__.py:
540 - Allowed whitespace in paths (``path`` function).
541 - Added ``uri`` directive option conversion function.
543 * docutils/parsers/rst/directives/body.py:
545 - Fixed illegal context bug with "topic" directive (allowed within
546 sidebars; not within body elements).
548 * docutils/parsers/rst/directives/images.py:
550 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
551 - Added support for the ``file_insertion_enabled`` setting in the
552 "figure" directive (disables "figwidth" option).
553 - "image" directive: added checks for valid values of "align" option,
554 depending on context. "figure" directive: added specialized
555 "align" option and attribute on "figure" element.
556 - Made ":figwidth: image" option of "figure" directive work again.
557 - Fixed bug with reference names containing uppercase letters
558 (e.g. ``Name_``) in "target" option of "image" directive.
560 * docutils/parsers/rst/directives/misc.py:
562 - Fixed "include" and "raw" directives to catch text decoding
564 - Allowed whitespace in "include" & "raw" directive paths.
565 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
566 settings in "include" & "raw" directives.
568 * docutils/parsers/rst/directives/parts.py:
570 - Added "header" & "footer" directives.
571 - Fixed illegal context bug with "contents" directive (topics
572 allowed within sidebars; not within body elements).
574 * docutils/parsers/rst/directives/tables.py:
576 - Added "list-table" directive.
577 - Caught empty CSV table bug.
578 - Added support for the ``file_insertion_enabled`` setting in the
579 "csv-table" directive.
580 - Added ``stub-columns`` option to "csv-table" and "list-table"
583 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
584 mappings by Martijn Pieters.
586 * docutils/readers/standalone.py:
588 - Added ``--section-subtitles`` and ``--no-section-subtitles``
589 options to activate or deactivate the SectSubTitle transform.
591 * docutils/transforms/frontmatter.py:
593 - Added SectSubTitle transform to promote titles of lone
594 subsections to subtitles.
596 * docutils/transforms/references.py:
598 - Fixed mislocated internal targets bug, by propagating internal
599 targets to the next node, making use of the newly added support
600 for multiple names and IDs.
601 - Fixed duplicate footnote label bug.
602 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
605 * docutils/writers/html4css1.py:
607 - Fixed unencoded stylesheet reference bug (characters like "&" in
608 stylesheet references).
609 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
611 - Added support for multiple IDs per node by creating empty ``span``
613 - Added the ``field_name_limit`` & ``option_limit`` settings &
615 - Added support for table stub columns.
616 - Added support for the ``align`` attribute on ``figure`` elements.
617 - Added the ``cloak_email_addresses`` setting & support.
618 - Added ``html_prolog``, ``html_head``, ``html_body``,
619 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
620 ``docutils.core.publish_parts``.
621 - Added support for section subtitles.
623 * docutils/writers/latex2e.py:
625 - Fixed tables starting with more than one multirow cell.
626 - Improved --use-latex-docinfo so that organization/contact/address
627 fields are lumped with the last author field and appear on the
629 - Made sure the titlepage is always shown with --use-latex-docinfo,
630 even if the document has no title.
631 - Made sure that latex doesn't fill in today's date if no date field
633 - Added support for section subtitles.
635 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
638 * docutils/writers/null.py: Added to project; a do-nothing Writer.
640 * docs/api/publisher.txt:
642 - Added "``publish_parts`` Details" section.
644 * docutils/dev/repository.txt: Added to project; information about the
645 Docutils Subversion repository.
647 * docs/ref/docutils.dtd:
649 - Added a ``stub`` attribute to the ``colspec`` element via the
650 ``tbl.colspec.att`` parameter entity.
651 - Allowed topic elements within sidebars
652 - Added an ``align`` attribute to the ``figure`` element.
654 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
658 Release 0.3.7 (2004-12-24)
659 ==========================
661 * docutils/frontend.py:
663 - Added options: --input-encoding-error-handler,
664 --record-dependencies, --leave-footnote-reference-space,
666 - Added command-line and config file support for "overrides" setting
671 - Added support for input encoding error handler.
675 - Added dispatch_visit and dispatch_departure methods to
676 NodeVisitor; useful as a hook for Visitors.
677 - Changed structure of ``line_block``; added ``line``.
678 - Added ``compound`` node class.
679 - Added a mechanism for Visitors to transitionally ignore new node
684 - Moved ``escape2null`` and ``unescape`` functions from
685 docutils/parsers/rst/states.py.
687 * docutils/parsers/rst/roles.py:
690 - Changed role function API: the "text" parameter now takes
691 null-escaped interpreted text content.
693 * docutils/parsers/rst/states.py:
695 - Fixed bug where a "role" directive in a nested parse would crash
696 the parser; the state machine's "language" attribute was not being
698 - Added support for line block syntax.
699 - Fixed directive parsing bug: argument-less directives didn't
700 notice that arguments were present.
701 - Removed error checking for transitions.
702 - Added support for multiple classifiers in definition list items.
703 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
704 - Changed role function API: the "text" parameter now takes
705 null-escaped interpreted text content.
706 - Empty sections and documents are allowed now.
708 * docutils/parsers/rst/directives/__init__.py:
710 - Added ``encoding`` directive option conversion function.
711 - Allow multiple class names in class_option conversion function.
713 * docutils/parsers/rst/directives/body.py:
715 - Converted the line-block directive to use the new structure.
716 - Extracted the old line-block functionality to the ``block``
717 function (still used).
718 - Added ``compound`` directive (thanks to Lea Wiemann).
720 * docutils/parsers/rst/directives/misc.py:
722 - Added "encoding" option to "include" and "raw" directives.
723 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
724 - Allow multiple class names in the "class" directive.
726 * docutils/parsers/rst/directives/parts.py:
728 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
729 options. Thanks to Lele Gaifax.
731 * docutils/parsers/rst/directives/tables.py:
733 - Added "encoding" directive to "csv-table" directive.
734 - Added workaround for lack of Unicode support in csv.py, for
737 * docutils/transforms/misc.py:
739 - Fixed bug when multiple "class" directives are applied to a single
741 - Enabled multiple format names for "raw" directive.
743 * docutils/transforms/references.py:
745 - Added support for trimming whitespace from beside substitution
748 * docutils/transforms/universal.py:
750 - FinalChecks now checks for illegal transitions and moves
751 transitions between sections.
753 * docutils/writers/html4css1.py:
755 - HTMLTranslator.encode now converts U+00A0 to " ".
756 - "stylesheet" and "stylesheet_path" settings are now mutually
758 - Added support for the new line_block/line structure.
759 - --footnote-references now overrides
760 --trim-footnote-reference-space, if applicable.
761 - Added support for ``compound`` elements.
762 - Enabled multiple format names for "raw" directive.
763 - ``<p>`` tags of a paragraph which is the only visible child of the
764 document node are no longer stripped.
765 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
766 new method ``should_be_compact_paragraph()``.
767 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
769 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
770 the output if they have their ``class`` attribute set.
771 - The whole document is now surrounded by a ``<div
772 class="document">`` element.
773 - Body-level images are now wrapped by their own ``<div>`` elements,
774 with image classes copied to the wrapper, and for images which
775 have the ``:align:`` option set, the surrounding ``<div>`` now
776 receives a class attribute (like ``class="align-left"``).
778 * docutils/writers/latex2e.py:
780 - no newline after depart_term.
781 - Added translations for some Unicode quotes.
782 - Added option "font-encoding", made package AE the default.
783 - "stylesheet" and "stylesheet_path" settings are now mutually
785 - --footnote-references now overrides
786 --trim-footnote-reference-space, if applicable.
787 - The footnote label style now matches the footnote reference style
788 ("brackets" or "superscript").
789 - Added support for ``compound`` elements.
790 - Enabled multiple format names for "raw" directive.
792 * docs/ref/docutils.dtd:
794 - Changed structure of the ``line_block`` element; added ``line``.
795 - Added ``compound`` element.
796 - Added "ltrim" and "rtrim" attributes to
797 ``substitution_definition`` element.
798 - Enabled multiple format names for ``raw`` element.
799 - Enabled multiple classifiers in ``definition_list_item`` elements.
801 * docs/ref/rst/directives.txt
803 - Marked "line-block" as deprecated.
804 - "Class" directive now allows multiple class names.
805 - Added "Rationale for Class Attribute Value Conversion".
806 - Added warning about "raw" overuse/abuse.
808 * docs/ref/rst/restructuredtext.txt:
810 - Added syntax for line blocks.
811 - Definition list items may have multiple classifiers.
813 * docs/ref/rst/roles.txt:
817 * tools/stylesheets/default.css:
819 - Added support for the new line_block structure.
820 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
823 Release 0.3.5 (2004-07-29)
824 ==========================
828 * _`Documentation cleanup/reorganization`.
830 - Created new subdirectories of docs/:
832 * ``docs/user/``: introductory/tutorial material for end-users
833 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
834 * ``docs/api/``: API reference material for client-developers
835 * ``docs/ref/``: reference material for all groups
836 * ``docs/howto/``: for component-developers and core-developers
837 * ``docs/peps/``: Python Enhancement Proposals
839 - Moved ``docs/*`` to ``docs/user/``.
840 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
841 ``spec/`` to ``docs/dev``.
842 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
843 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
844 - Moved ``alternatives.txt``, and ``problems.txt`` from
845 ``spec/rst/`` to ``docs/dev/rst/``.
846 - Moved ``reStructuredText.txt``, ``directives.txt``,
847 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
848 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
849 ``roles.txt``, ``reStructuredText.txt`` to
850 ``restructuredtext.txt``.
851 - Moved ``spec/howto/`` to ``docs/howto``.
853 In order to keep the CVS history of moved files, we supplied
854 SourceForge with a `script for modifying the Docutils CVS
857 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
859 After running the cleanup script:
861 - Added ``docs/index.txt``.
862 - Added a ``.htaccess`` file to the ``web`` module, containing
863 redirects for all old paths to new paths. They'll preserve
864 fragments (the "#name" part of a URL), and won't clutter up the
865 file system, and will correct the URL in the user's browser.
866 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
867 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
868 the "To Do" list itself in ``docs/dev/todo.txt``.
869 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
870 section of ``docs/dev/todo.txt``.
871 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
872 - Added "How To Report Bugs" to ``BUGS.txt``.
873 - Went through all the sources and docs (including under web/) and
874 updated links. Mostly done by Lea Wiemann; thanks Lea!
875 (Still need to update links in the sandboxes.)
879 * BUGS.txt: Added to project.
881 * THANKS.txt: Added to project.
883 * docutils/__init__.py:
885 - 0.3.4: Post-release.
889 - Added special error handling & advice for UnicodeEncodeError.
890 - Refactored Publisher.publish (simplified exception handling &
891 extracted debug dumps).
892 - Renamed "enable_exit" parameter of convenience functions to
893 "enable_exit_status".
894 - Enabled traceback (exception propagation) by default in
895 programmatic convenience functions.
896 - Now publish_file and publish_cmdline convenience functions return
897 the encoded string results in addition to their regular I/O.
898 - Extracted common code from publish_file, publish_string, and
899 publish_parts, into new publish_programmatically. Extracted
900 settings code to ``Publisher.process_programmatic_settings``.
901 - In Publisher.publish, disabled ``settings_overrides`` when
902 ``settings`` is supplied; redundant.
904 * docutils/frontend.py:
906 - Added help text for "--output-encoding-error-handler" and
907 "--error-encoding-error-handler".
908 - Renamed "--exit" to "--exit-status".
909 - Simplified default-setting code.
911 * docutils/parsers/rst/__init__.py:
913 - Added "--pep-base-url" and "--rfc-base-url" options.
915 * docutils/parsers/rst/states.py:
917 - Made URI recognition more aggressive and intelligent.
919 * docutils/parsers/rst/directives/__init__.py:
921 - Added several directive option conversion functions.
923 * docutils/parsers/rst/directives/body.py:
925 - Moved "table" directive to tables.py.
927 * docutils/parsers/rst/directives/tables.py: Table-related directives,
930 * docutils/writers/latex2e.py:
932 - Added "--table-style=(standard|booktabs|nolines)"
933 - figures get "here" option (LaTeX per default puts them at bottom),
934 and figure content is centered.
935 - Rowspan support for tables.
936 - Fix: admonition titles before first section.
937 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
938 - Replave ``_`` in literal by an underlined blank, because it has the correct
940 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
941 - A few unicode replacements, if output_encoding != utf
942 - Add "--graphicx-option".
943 - Indent literal-blocks.
944 - Fix: omit ``\maketitle`` when there is no document title.
946 * docs/index.txt: "Docutils Project Documentation Overview", added to
949 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
950 Tool", added to project.
952 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
954 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
956 * docs/dev/policies.txt: Added to project (extracted from
957 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
959 * docs/dev/release.txt: Added to project (extracted from
960 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
962 * docs/dev/testing.txt: Added to project.
964 * docs/dev/website.txt: Added to project (extracted from
965 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
967 * docs/ref/rst/directives.txt:
969 - Added directives: "table", "csv-table".
971 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
972 added to project. 1 page for syntax, and a 1 page reference for
973 directives and roles. Source text to be used as-is; not meant to be
976 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
977 with a change of title.
979 * test/functional/, contents, and test/test_functional.py: Added to
982 * tools/buildhtml.py: Fixed bug with config file handling.
984 * tools/html.py: Removed from project (duplicate of rst2html.py).
986 * tools/pep2html.py: Removed from project (duplicate of Python's
987 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
988 Docutils-related PEPs in docs/peps/).
990 * tools/rst2pseudoxml.py: Renamed from publish.py.
992 * tools/rst2xml.py: Renamed from docutils-xml.py.
994 * tools/test.txt: Removed from project; moved to
995 docs/user/rst/demo.txt.
997 * setup.py: Now also installs ``rst2latex.py``.
1000 Release 0.3.3 (2004-05-09)
1001 ==========================
1003 * docutils/__init__.py:
1005 - 0.3.1: Reorganized config file format (multiple sections); see
1007 - Added unknown_reference_resolvers attribute to TransformSpec.
1008 - 0.3.2: Interpreted text reorganization.
1013 - Catch system messages to stop tracebacks from parsing errors.
1014 - Catch exceptions during processing report & exit without
1015 tracebacks, except when "--traceback" used.
1016 - Reordered components for OptionParser; application comes last.
1017 - Added "config_section" parameter to several methods and functions,
1018 allowing front ends to easily specify their config file sections.
1019 - Added publish_parts convenience function to allow access to individual
1020 parts of a document.
1022 * docutils/examples.py: Added to project; practical examples of
1023 Docutils client code, to be used as-is or as models for variations.
1025 * docutils/frontend.py:
1027 - Added "--traceback" & "--no-traceback" options ("traceback"
1029 - Implemented support for config file reorganization:
1030 ``standard_config_files`` moved from ``ConfigParser`` to
1031 ``OptionParser``; added
1032 ``OptionParser.get_config_file_settings()`` and
1033 ``.get_standard_config_settings()``; support for old "[options]"
1034 section (with deprecation warning) and mapping from old to new
1036 - Reimplemented setting validation.
1037 - Enabled flexible boolean values: yes/no, true/false, on/off.
1038 - Added ``Values``, a subclass of ``optparse.Values``, with support
1039 for list setting attributes.
1040 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1041 thanks to Beni Cherniavsky.
1042 - Added "--no-section-numbering" option.
1046 - Catch IOErrors when opening source & destination files, report &
1047 exit without tracebacks. Added ``handle_io_errors`` parameter to
1048 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1050 * docutils/nodes.py:
1052 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1053 method definitions (via ``exec``) to dynamic assignments (via
1054 ``setattr``); thanks to Roman Suzi.
1055 - Encapsulated visitor dynamic assignments in a function; thanks to
1057 - Added indirect_reference_name attribute to the Targetable
1058 class. This attribute holds the whitespace_normalized_name
1059 (contains mixed case) of a target.
1061 * docutils/statemachine.py:
1063 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1064 - Added ``StringList.get_2D_block``.
1066 * docutils/utils.py:
1068 - Added "level" attribute to SystemMessage exceptions.
1070 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1073 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1076 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1077 Marcelo Huerta San Martin.
1079 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1080 mappings by Lalo Martins.
1082 * docutils/languages/ru.py: Added to project; Russian mappings by
1085 * docutils/parsers/rst/roles.py: Added to project. Contains
1086 interpreted text role functions, a registry for interpreted text
1087 roles, and an API for adding to and retrieving from the registry.
1088 Contributed by Edward Loper.
1090 * docutils/parsers/rst/states.py:
1092 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1093 - Allowed true em-dash character and "---" as block quote
1095 - Added support for <angle-bracketed> complex option arguments
1097 - Fixed handling of backslashes in substitution definitions.
1098 - Fixed off-by-1 error with extra whitespace after substitution
1099 definition directive.
1100 - Added inline markup parsing to field lists' field names.
1101 - Added support for quoted (and unindented) literal blocks.
1102 Driven in part by a bribe from Frank Siebenlist (thanks!).
1103 - Parser now handles escapes in URIs correctly.
1104 - Made embedded-URIs' reference text omittable. Idea from Beni
1106 - Refactored explicit target processing code.
1107 - Added name attribute to references containing the reference name only
1108 through whitespace_normalize_name (no case changes).
1109 - parse_target no longer returns the refname after going through
1110 normalize_name. This is now handled in make_target.
1111 - Fixed bug relating to role-less interpreted text in non-English
1113 - Reorganized interpreted text processing; moved code into the new
1114 roles.py module. Contributed by Edward Loper.
1115 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1116 ``parse_directive_block``.
1118 * docutils/parsers/rst/tableparser.py:
1120 - Reworked for ``StringList``, to support "include" directives in
1123 * docutils/parsers/rst/directives/__init__.py:
1125 - Renamed ``unchanged()`` directive option conversion function to
1126 ``unchanged_required``, and added a new ``unchanged``.
1127 - Catch unicode value too high error; fixes bug 781766.
1128 - Beefed up directive error reporting.
1130 * docutils/parsers/rst/directives/body.py:
1132 - Added basic "table" directive.
1134 * docutils/parsers/rst/directives/images.py:
1136 - Added "target" option to "image" directive.
1137 - Added name attribute to references containing the reference name only
1138 through whitespace_normalize_name (no case changes).
1140 * docutils/parsers/rst/directives/misc.py:
1142 - Isolated the import of the ``urllib2`` module; was causing
1143 problems on SourceForge (``libssl.so.2`` unavailable?).
1144 - Added the "role" directive for declaring custom interpreted text
1147 * docutils/parsers/rst/directives/parts.py:
1149 - The "contents" directive does more work up-front, creating the
1150 "topic" and "title", and leaving the "pending" node for the
1151 transform. Allows earlier reference resolution; fixes subtle bug.
1153 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1154 mappings by Jannie Hofmeyr.
1156 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1157 mappings by Marek Blaha.
1159 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1160 mappings by Marcelo Huerta San Martin.
1162 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1163 Portuguese mappings by Lalo Martins.
1165 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1166 mappings by Roman Suzi.
1168 * docutils/transforms/parts.py:
1170 - The "contents" directive does more work up-front, creating the
1171 "topic" and "title", and leaving the "pending" node for the
1172 transform. Allows earlier reference resolution; fixes subtle bug.
1173 - Added support for disabling of section numbering.
1175 * docutils/transforms/references.py:
1177 - Verifying that external targets are truly targets and not indirect
1178 references. This is because we are now adding a "name" attribute to
1179 references in addition to targets. Note sure if this is correct!
1180 - Added code to hook into the unknown_reference_resolvers list for a
1181 transformer in resolve_indirect_target. This allows the
1182 unknown_reference_resolvers to keep around indirect targets which
1183 docutils doesn't know about.
1184 - Added specific error message for duplicate targets.
1186 * docutils/transforms/universal.py:
1188 - Added FilterMessages transform (removes system messages below the
1189 verbosity threshold).
1190 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1191 to FinalCheckVisitor for application-specific handling of
1192 unresolvable references.
1193 - Added specific error message for duplicate targets.
1195 * docutils/writers/__init__.py:
1197 - Added assemble_parts method to the Writer class to allow for
1198 access to a documents individual parts.
1199 - Documented & set default for ``Writer.output`` attribute.
1201 * docutils/writers/html4css1.py:
1203 - Fixed unicode handling of attribute values (bug 760673).
1204 - Prevent duplication of "class" attribute values (bug report from
1206 - Improved table grid/border handling (prompted by report from Bob
1208 - Added support for table titles.
1209 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1211 - Added functionality to keep track of individual parts of a document
1212 and store them in a dictionary as the "parts" attribute of the writer.
1213 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1214 - Added proper support for the "scale" attribute of the "image"
1215 element. Contributed by Brent Cook.
1216 - Added ``--initial-header-level`` option.
1217 - Fixed bug: the body_pre_docinfo segment depended on there being a
1218 docinfo; if no docinfo, the document title was incorporated into
1219 the body segment. Adversely affected the publish_parts interface.
1221 * docutils/writers/latex2e.py:
1223 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1224 about a missing file.
1225 - Added options and support: ``--compound-enumerators``,
1226 ``--section-prefix-for-enumerators``, and
1227 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1229 - Added option ``--use-verbatim-when-possible``, to avoid
1230 problematic characters (eg, '~' in italian) in literal blocks.
1231 - It's now possible to use four section levels in the `book` and
1232 `report` LaTeX classes. The default `article` class still has
1235 * docs/config.txt: "Docutils Configuration Files", added to project.
1236 Moved config file entry descriptions from tools.txt.
1240 - Moved config file entry descriptions to config.txt.
1242 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1245 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1246 Text Roles", added to project.
1248 * spec/rst/reStructuredText.txt:
1250 - Added description of support for <angle-bracketed> complex option
1251 arguments to option lists.
1252 - Added subsections for indented and quoted literal blocks.
1254 * test: Continually adding & updating tests.
1256 - Added test/test_settings.py & test/data/config_*.txt support
1258 - Added test/test_writers/test_htmlfragment.py.
1260 * test/DocutilsTestSupport.py:
1262 - Refactored LaTeX publisher test suite/case class names to make
1263 testing other writers easier.
1264 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1265 to test the processing of HTML fragments which use the new
1266 publish_parts convenience function.
1268 * tools/buildhtml.py:
1270 - Added support for the "--prune" option.
1271 - Removed dependency on pep2html.py; plaintext PEPs no longer
1274 * tools/docutils.conf:
1276 - Updated for configuration file reorganization.
1278 * tools/rst2html.py:
1280 - copied from tools/html.py
1284 - added a 'scripts' section to configuration
1285 - added 'tools/rst2html.py' to the scripts section
1288 Release 0.3 (2003-06-24)
1289 ========================
1293 * Renamed "attribute" to "option" for directives/extensions.
1295 * Renamed transform method "transform" to "apply".
1297 * Renamed "options" to "settings" for runtime settings (as set by
1298 command-line options). Sometimes "option" (singular) became
1299 "settings" (plural). Some variations below:
1301 - document.options -> document.settings (stored in other objects as
1303 - option_spec -> settings_spec (not directives though)
1304 - OptionSpec -> SettingsSpec
1305 - cmdline_options -> settings_spec
1306 - relative_path_options -> relative_path_settings
1307 - option_default_overrides -> settings_default_overrides
1308 - Publisher.set_options -> Publisher.get_settings
1312 * COPYING.txt: Added "Public Domain Dedication".
1314 * FAQ.txt: Frequently asked questions, added to project.
1318 - Updated with PyPI Trove classifiers.
1319 - Conditional installation of third-party modules.
1321 * docutils/__init__.py:
1323 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1324 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1325 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1326 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1327 option and its effect on the PEP template & writer.
1328 - Bumped version to 0.2.4 due to changes to the PEP template &
1330 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1331 - Added ``TransformSpec`` class for new transform system.
1332 - Bumped version to 0.2.6 for API changes (renaming).
1333 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1334 convenience functions.
1335 - Added ``Component.component_type`` attribute.
1336 - Bumped version to 0.2.8 because of the internal parser switch from
1337 plain lists to the docutils.statemachine.StringList objects.
1338 - Bumped version to 0.2.9 because of the frontend.py API changes.
1339 - Bumped version to 0.2.10 due to changes to the project layout
1340 (third-party modules removed from the "docutils" package), and
1341 signature changes in ``io.Input``/``io.Output``.
1342 - Changed version to 0.3.0 for release.
1346 - Made ``publish()`` a bit more convenient.
1347 - Generalized ``Publisher.set_io``.
1348 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1349 parameters; improved its docstring.
1350 - Added ``publish_file()`` and ``publish_string()``.
1351 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1353 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1354 "--dump-transforms" hidden options.
1355 - Added ``Publisher.apply_transforms()`` method.
1356 - Added ``Publisher.set_components()`` method; support for
1357 ``publish_*()`` conveninece functions.
1358 - Moved config file processing to docutils/frontend.py.
1359 - Added support for exit status ("exit_level" setting &
1360 ``enable_exit`` parameter for Publisher.publish() and convenience
1363 * docutils/frontend.py:
1365 - Check for & exit on identical source & destination paths.
1366 - Fixed bug with absolute paths & "--config".
1367 - Set non-command-line defaults in ``OptionParser.__init__()``:
1368 ``_source`` & ``_destination``.
1369 - Distributed ``relative_path_settings`` to components; updated
1370 ``OptionParser.populate_from_components()`` to combine it all.
1371 - Require list of keys in ``make_paths_absolute`` (was implicit in
1372 global ``relative_path_settings``).
1373 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1374 "--dump-settings", and "--dump-transforms" hidden options.
1375 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1376 code, replaced with correct code.
1377 - Added validation functionality for config files.
1378 - Added "--error-encoding" option/setting, "_disable_config"
1380 - Added encoding validation; updated "--input-encoding" and
1381 "--output-encoding"; added "--error-encoding-error-handler" and
1382 "--output-encoding-error-handler".
1383 - Moved config file processing from docutils/core.py.
1384 - Updated ``OptionParser.populate_from_components`` to handle new
1385 ``SettingsSpec.settings_defaults`` dict.
1386 - Added support for "-" => stdin/stdout.
1387 - Added "exit_level" setting ("--exit" option).
1391 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1392 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1393 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1394 - ``FileOutput.write()`` now returns the encoded output string.
1395 - Try to get path/stream name automatically in ``FileInput`` &
1397 - Added defaults for source & destination paths.
1398 - Allow for Unicode I/O with an explicit "unicode" encoding.
1399 - Added ``Output.encode()``.
1400 - Removed dependency on runtime settings; pass encoding directly.
1401 - Recognize Unicode strings in ``Input.decode()``.
1402 - Added support for output encoding error handlers.
1404 * docutils/nodes.py:
1406 - Added "Invisible" element category class.
1407 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1408 modification during a traversal.
1409 - Added element classes: ``line_block``, ``generated``, ``address``,
1410 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1411 ``superscript``, ``subscript``, ``inline``
1412 - Added support for lists of nodes to ``Element.insert()``.
1413 - Fixed parent linking in ``Element.replace()``.
1414 - Added new abstract superclass ``FixedTextElement``; adds
1415 "xml:space" attribute.
1416 - Added support for "line" attribute of ``system_message`` nodes.
1417 - Added support for the observer pattern from ``utils.Reporter``.
1418 Added ``parse_messages`` and ``transform_messages`` attributes to
1419 ``document``, removed ``messages``. Added ``note_parse_message``
1420 and ``note_transform_message`` methods.
1421 - Added support for improved diagnostics:
1423 - Added "document", "source", and "line" internal attributes to
1424 ``Node``, set by ``Node.setup_child()``.
1425 - Converted variations on ``node.parent = self`` to
1426 ``self.setup_child(node)``.
1427 - Added ``document.current_source`` & ``.current_line``
1428 attributes, and ``.note_source`` observer method.
1429 - Changed "system_message" output to GNU-Tools format.
1431 - Added a "rawsource" attribute to the ``Text`` class, for text
1432 before backslash-escape resolution.
1433 - Support for new transform system.
1434 - Reworked ``pending`` element.
1435 - Fixed XML DOM bug (SF #660611).
1436 - Removed the ``interpeted`` element class and added
1437 ``title_reference``, ``abbreviation``, ``acronym``.
1438 - Made substitutions case-sensitive-but-forgiving; moved some code
1440 - Fixed Unicode bug on element attributes (report: William Dode).
1442 * docutils/optik.py: Removed from project; replaced with
1443 extras/optparse.py and extras/textwrap.py. These will be installed
1444 only if they're not already present in the Python installation.
1446 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1447 only if it's not already present in the Python installation.
1449 * docutils/statemachine.py:
1451 - Factored out ``State.add_initial_transitions()`` so it can be
1453 - Converted whitespace-specific "blank" and "indent" transitions
1454 from special-case code to ordinary transitions: removed
1455 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1456 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1457 ``ws_initial_transitions`` attributes.
1458 - Removed ``State.match_transition()`` after merging it into
1460 - Added ``StateCorrection`` exception.
1461 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1462 (moved ``TransitionCorrection`` support there too.)
1463 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1464 ``EOFError`` instead of ``IndexError``.
1465 - Added ``State.no_match`` method.
1466 - Added support for the Observer pattern, triggered by input line
1468 - Added ``strip_top`` parameter to
1469 ``StateMachineWS.get_first_known_indented``.
1470 - Made ``context`` a parameter to ``StateMachine.run()``.
1471 - Added ``ViewList`` & ``StringList`` classes;
1472 ``extract_indented()`` becomes ``StringList.get_indented()``.
1473 - Added ``StateMachine.insert_input()``.
1474 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1475 thanks to) Fred Drake.
1477 * docutils/utils.py:
1479 - Added a ``source`` attribute to Reporter instances and
1480 ``system_message`` elements.
1481 - Added an observer pattern to ``utils.Reporter`` to keep track of
1483 - Fixed bugs in ``relative_path()``.
1484 - Added support for improved diagnostics.
1485 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1486 - Added support for encoding Reporter stderr output, and encoding
1488 - Reporter keeps track of the highest level system message yet
1491 * docutils/languages: Fixed bibliographic field language lookups.
1493 * docutils/languages/es.py: Added to project; Spanish mappings by
1494 Marcelo Huerta San Martin.
1496 * docutils/languages/fr.py: Added to project; French mappings by
1499 * docutils/languages/it.py: Added to project; Italian mappings by
1502 * docutils/languages/sk.py: Added to project; Slovak mappings by
1505 * docutils/parser/__init__.py:
1507 - Added ``Parser.finish_parse()`` method.
1509 * docutils/parser/rst/__init__.py:
1511 - Added options: "--pep-references", "--rfc-references",
1512 "--tab-width", "--trim-footnote-reference-space".
1514 * docutils/parsers/rst/states.py:
1516 - Changed "title under/overline too short" system messages from INFO
1517 to WARNING, and fixed its insertion location.
1518 - Fixed enumerated list item parsing to allow paragraphs & section
1519 titles to begin with enumerators.
1520 - Converted system messages to use the new "line" attribute.
1521 - Fixed a substitution reference edge case.
1522 - Added support for "--pep-references" and "--rfc-references"
1523 options; reworked ``Inliner`` code to make customization easier.
1524 - Removed field argument parsing.
1525 - Added support for short section title over/underlines.
1526 - Fixed "simple reference name" regexp to ignore text like
1527 "object.__method__"; not an anonymous reference.
1528 - Added support for improved diagnostics.
1529 - Reworked directive API, based on Dethe Elza's contribution. Added
1530 ``Body.parse_directive()``, ``.parse_directive_options()``,
1531 ``.parse_directive_arguments()`` methods.
1532 - Added ``ExtensionOptions`` class, to parse directive options
1533 without parsing field bodies. Factored
1534 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1535 ``ExtensionOptions``.
1536 - Improved definition list term/classifier parsing.
1537 - Added warnings for unknown directives.
1538 - Renamed ``Stuff`` to ``Struct``.
1539 - Now flagged as errors: transitions at the beginning or end of
1540 sections, empty sections (except title), and empty documents.
1541 - Updated for ``statemachine.StringList``.
1542 - Enabled recognition of schemeless email addresses in targets.
1543 - Added support for embedded URIs in hyperlink references.
1544 - Added backslash-escapes to inline markup end-string suffix.
1545 - Added support for correct interpreted text processing.
1546 - Fixed nested title parsing (topic, sidebar directives).
1547 - Added special processing of backslash-escaped whitespace (idea
1548 from David Abrahams).
1549 - Made substitutions case-sensitive-but-forgiving; moved some code
1550 to ``docutils.nodes``.
1551 - Added support for block quote attributions.
1552 - Added a kludge to work-around a conflict between the bubble-up
1553 parser strategy and short titles (<= 3 char-long over- &
1554 underlines). Fixes SF bug #738803 "infinite loop with multiple
1555 titles" submitted by Jason Diamond.
1556 - Added explicit interpreted text roles for standard inline markup:
1557 "emphasis", "strong", "literal".
1558 - Implemented "superscript" and "subscript" interpreted text roles.
1559 - Added initial support for "abbreviation" and "acronym" roles;
1561 - Added support for "--trim-footnote-reference-space" option.
1562 - Optional space before colons in directives & hyperlink targets.
1564 * docutils/parsers/rst/tableparser.py:
1566 - Fixed a bug that was producing unwanted empty rows in "simple"
1568 - Detect bad column spans in "simple" tables.
1570 * docutils/parsers/rst/directives: Updated all directive functions to
1573 * docutils/parsers/rst/directives/__init__.py:
1575 - Added ``flag()``, ``unchanged()``, ``path()``,
1576 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1577 directive option helper functions.
1578 - Added warnings for unknown directives.
1579 - Return ``None`` for missing directives.
1580 - Added ``register_directive()``, thanks to William Dode and Paul
1583 * docutils/parsers/rst/directives/admonitions.py:
1585 - Added "admonition" directive.
1587 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1588 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1589 "parsed-literal", "rubric", "epigraph", "highlights" and
1590 "pull-quote" directives.
1592 * docutils/parsers/rst/directives/images.py:
1594 - Added an "align" attribute to the "image" & "figure" directives
1595 (by Adam Chodorowski).
1596 - Added "class" option to "image", and "figclass" to "figure".
1598 * docutils/parsers/rst/directives/misc.py:
1600 - Added "include", "raw", and "replace" directives, courtesy of
1602 - Added "unicode" and "class" directives.
1604 * docutils/parsers/rst/directives/parts.py:
1606 - Added the "sectnum" directive; by Dmitry Jemerov.
1607 - Added "class" option to "contents" directive.
1609 * docutils/parsers/rst/directives/references.py: Added to project.
1610 Contains the "target-notes" directive.
1612 * docutils/parsers/rst/languages/__init__.py:
1614 - Return ``None`` from get_language() for missing language modules.
1616 * docutils/parsers/rst/languages/de.py: Added to project; German
1617 mappings by Engelbert Gruber.
1619 * docutils/parsers/rst/languages/en.py:
1621 - Added interpreted text roles mapping.
1623 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1624 mappings by Marcelo Huerta San Martin.
1626 * docutils/parsers/rst/languages/fr.py: Added to project; French
1627 mappings by William Dode.
1629 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1630 mappings by Nicola Larosa.
1632 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1633 mappings by Miroslav Vasko.
1635 * docutils/readers/__init__.py:
1637 - Added support for the observer pattern from ``utils.Reporter``, in
1638 ``Reader.parse`` and ``Reader.transform``.
1639 - Removed ``Reader.transform()`` method.
1640 - Added default parameter values to ``Reader.__init__()`` to make
1641 instantiation easier.
1642 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1644 * docutils/readers/pep.py:
1646 - Added the ``peps.TargetNotes`` transform to the Reader.
1647 - Removed PEP & RFC reference detection code; moved to
1648 parsers/rst/states.py as options (enabled here by default).
1649 - Added support for pre-acceptance PEPs (no PEP number yet).
1650 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1653 * docutils/readers/python: Python Source Reader subpackage added to
1654 project, including preliminary versions of:
1657 - moduleparser.py: Parser for Python modules.
1659 * docutils/transforms/__init__.py:
1661 - Added ``Transformer`` class and completed transform reform.
1662 - Added unknown_reference_resolvers list for each transformer. This list holds
1663 the list of functions provided by each component of the transformer that
1664 help resolve references.
1666 * docutils/transforms/frontmatter.py:
1668 - Improved support for generic fields.
1669 - Fixed bibliographic field language lookups.
1671 * docutils/transforms/misc.py: Added to project. Miscellaneous
1674 * docutils/transforms/parts.py:
1676 - Moved the "id" attribute from TOC list items to the references
1677 (``Contents.build_contents()``).
1678 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1679 - Added "class" attribute support to ``Contents``.
1681 * docutils/transforms/peps.py:
1683 - Added ``mask_email()`` function, updating to pep2html.py's
1685 - Linked "Content-Type: text/x-rst" to PEP 12.
1686 - Added the ``TargetNotes`` PEP-specific transform.
1687 - Added ``TargetNotes.cleanup_callback``.
1688 - Added title check to ``Headers``.
1690 * docutils/transforms/references.py:
1692 - Added the ``TargetNotes`` generic transform.
1693 - Split ``Hyperlinks`` into multiple transforms.
1694 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1695 - Added check for circular indirect references.
1696 - Made substitutions case-sensitive-but-forgiving.
1698 * docutils/transforms/universal.py:
1700 - Added support for the "--expose-internal-attributes" option.
1701 - Removed ``Pending`` transform classes & data.
1703 * docutils/writers/__init__.py:
1705 - Removed ``Writer.transform()`` method.
1707 * docutils/writers/docutils-xml.py:
1709 - Added XML and doctype declarations.
1710 - Added "--no-doctype" and "--no-xml-declaration" options.
1712 * docutils/writers/html4css1.py:
1714 - "name" attributes only on these tags: a, applet, form, frame,
1716 - Added "name" attribute to <a> in section titles for Netscape 4
1717 support (bug report: Pearu Peterson).
1718 - Fixed targets (names) on footnote, citation, topic title,
1719 problematic, and system_message nodes (for Netscape 4).
1720 - Changed field names from "<td>" to "<th>".
1721 - Added "@" to "@" encoding to thwart address harvesters.
1722 - Improved the vertical whitespace optimization; ignore "invisible"
1723 nodes (targets, comments, etc.).
1724 - Improved inline literals with ``<span class="pre">`` around chunks
1725 of text and `` `` for runs of spaces.
1726 - Improved modularity of output; added ``self.body_pre_docinfo`` and
1727 ``self.docinfo`` segments.
1728 - Added support for "line_block", "address" elements.
1729 - Improved backlinks (footnotes & system_messages).
1730 - Improved system_message output.
1731 - Redefined "--stylesheet" as containing an invariant URL, used
1732 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
1734 - Added "--footnote-references" option (superscript or brackets).
1735 - Added "--compact-lists" and "--no-compact-lists" options.
1736 - Added "--embed-stylesheet" and "--link-stylesheet" options;
1737 factored out ``HTMLTranslator.get_stylesheet_reference()``.
1738 - Improved field list rendering.
1739 - Added Docutils version to "generator" meta tag.
1740 - Fixed a bug with images; they must be inline, so wrapped in <p>.
1741 - Improved layout of <pre> HTML source.
1742 - Fixed attribute typo on <colspec>.
1743 - Refined XML prologue.
1744 - Support for no stylesheet.
1745 - Removed "interpreted" element support.
1746 - Added support for "title_reference", "sidebar", "attribution",
1747 "rubric", and generic "admonition" elements.
1748 - Added "--attribution" option.
1749 - Added support for "inline", "subscript", "superscript" elements.
1750 - Added initial support for "abbreviation" and "acronym";
1753 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
1757 - Double quotes in literal blocks (special treatment for de/ngerman).
1758 - Added '--hyperlink-color' option ('0' turns off coloring of links).
1759 - Added "--attribution" option.
1760 - Right align attributions.
1762 * docutils/writers/pep_html.py:
1764 - Parameterized output encoding in PEP template.
1765 - Reworked substitutions from ``locals()`` into ``subs`` dict.
1766 - Redefined "--pep-stylesheet" as containing an invariant URL, used
1767 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
1769 - Added an override on the "--footnote-references" option.
1770 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
1771 - Added Docutils version to "generator" meta tag.
1772 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1776 - Added a "silent" setting for ``buildhtml.py``.
1777 - Added a "Getting Help" section.
1778 - Rearranged the structure.
1779 - Kept up to date, with new settings, command-line options etc.
1780 - Added section for ``rst2latex.py`` (Engelbert Gruber).
1781 - Converted settings table into a definition list.
1783 * docs/rst/quickstart.txt:
1785 - Added a table of contents.
1786 - Added feedback information.
1787 - Added mention of minimum section title underline lengths.
1788 - Removed the 4-character minimum for section title underlines.
1790 * docs/rst/quickref.html:
1792 - Added a "Getting Help" section.
1793 - Added a style to make section title backlinks more subtle.
1794 - Added mention of minimum section title underline lengths.
1795 - Removed the 4-character minimum for section title underlines.
1797 * extras: Directory added to project; contains third-party modules
1798 that Docutils depends on (optparse, textwrap, roman). These are
1799 only installed if they're not already present.
1801 * licenses: Directory added to project; contains copies of license
1802 files for non-public-domain files.
1806 - Changed the focus. It's about DTD elements: structural
1807 relationships, semantics, and external (public) attributes. Not
1808 about the element class library.
1809 - Moved some implementation-specific stuff into ``docutils.nodes``
1811 - Wrote descriptions of all common attributes and parameter
1812 entities. Filled in introductory material.
1813 - Working through the element descriptions: 55 down, 37 to go.
1814 - Removed "Representation of Horizontal Rules" to
1815 spec/rst/alternatives.txt.
1817 * spec/docutils.dtd:
1819 - Added "generated" inline element.
1820 - Added "line_block" body element.
1821 - Added "auto" attribute to "title".
1822 - Changed content models of "literal_block" and "doctest_block" to
1824 - Added ``%number;`` attribute type parameter entity.
1825 - Changed ``%structural.elements;`` to ``%section.elements``.
1826 - Updated attribute types; made more specific.
1827 - Added "address" bibliographic element.
1828 - Added "line" attribute to ``system_message`` element.
1829 - Removed "field_argument" element; "field_name" may contain
1830 multiple words and whitespace.
1831 - Changed public identifier to docutils.sf.net.
1832 - Removed "interpreted" element; added "title_reference",
1833 "abbreviation", "acronym".
1834 - Removed "refuri" attribute from "footnote_reference" and
1835 "citation_reference".
1836 - Added "sidebar", "rubric", "attribution", "admonition",
1837 "superscript", "subscript", and "inline" elements.
1839 * spec/pep-0256.txt: Converted to reStructuredText & updated.
1841 * spec/pep-0257.txt: Converted to reStructuredText & updated.
1843 * spec/pep-0258.txt: Converted to reStructuredText & updated.
1845 * spec/semantics.txt: Updated with text from a Doc-SIG response to
1848 * spec/transforms.txt: Added to project.
1850 * spec/howto: Added subdirectory, for developer how-to docs.
1852 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
1853 Elza, edited & extended by David Goodger.
1855 * spec/howto/i18n.txt: Docutils Internationalization. Added to
1858 * spec/rst/alternatives.txt:
1860 - Added "Doctree Representation of Transitions" from
1862 - Updated "Inline External Targets" & closed the debate.
1863 - Added ideas for interpreted text syntax extensions.
1864 - Added "Nested Inline Markup" section.
1866 * spec/rst/directives.txt:
1868 - Added directives: "topic", "sectnum", "target-notes",
1869 "line-block", "parsed-literal", "include", "replace", "sidebar",
1870 "admonition", "rubric", "epigraph", "highlights", "unicode" and
1872 - Formalized descriptions of directive details.
1873 - Added an "align" attribute to the "image" & "figure" directives
1874 (by Adam Chodorowski).
1875 - Added "class" options to "topic", "sidebar", "line-block",
1876 "parsed-literal", "contents", and "image"; and "figclass" to
1879 * spec/rst/interpreted.txt: Added to project. Descriptions of
1880 interpreted text roles.
1882 * spec/rst/introduction.txt:
1884 - Added pointers to material for new users.
1886 * spec/rst/reStructuredText.txt:
1888 - Disambiguated comments (just add a newline after the "::").
1889 - Updated enumerated list description; added a discussion of the
1890 second-line validity checking.
1891 - Updated directive description.
1892 - Added a note redirecting newbies to the user docs.
1893 - Expanded description of inline markup start-strings in non-markup
1895 - Removed field arguments and made field lists a generic construct.
1896 - Removed the 4-character minimum for section title underlines.
1897 - Clarified term/classifier delimiter & inline markup ambiguity
1899 - Added "Embedded URIs".
1900 - Updated "Interpreted Text" section.
1901 - Added "Character-Level Inline Markup" section.
1903 * test: Continually adding & updating tests.
1905 - Moved test/test_rst/ to test/test_parsers/test_rst/.
1906 - Moved test/test_pep/ to test/test_readers/test_pep/.
1907 - Added test/test_readers/test_python/.
1908 - Added test/test_writers/ (Engelbert Gruber).
1912 - Made the ``locale.setlocale()`` calls in front ends
1915 * tools/buildhtml.py:
1917 - Added "--silent" option.
1918 - Fixed bug with absolute paths & "--config".
1919 - Updated for new I/O classes.
1920 - Added some exception handling.
1921 - Separated publishers' setting defaults; prevents interference.
1922 - Updated for new ``publish_file()`` convenience function.
1924 * tools/pep-html-template:
1926 - Allow for "--embed-stylesheet".
1927 - Added Docutils version to "generator" meta tag.
1928 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1929 - Conform to XHTML spec.
1931 * tools/pep2html.py:
1933 - Made ``argv`` a parameter to ``main()``.
1934 - Added support for "Content-Type:" header & arbitrary PEP formats.
1935 - Linked "Content-Type: text/plain" to PEP 9.
1936 - Files skipped (due to an error) are not pushed onto the server.
1937 - Updated for new I/O classes.
1938 - Added ``check_requirements()`` & ``pep_type_error()``.
1939 - Added some exception handling.
1940 - Updated for new ``publish_string()`` convenience function.
1941 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1943 * tools/quicktest.py:
1945 - Added "-V"/"--version" option.
1947 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
1949 * tools/unicode2rstsubs.py: Added to project. Produces character
1950 entity files (reSructuredText substitutions) from the MathML master
1953 * tools/editors: Support code for editors, added to project. Contains
1954 ``emacs/restructuredtext.el``.
1956 * tools/stylesheets/default.css: Moved into the stylesheets directory.
1958 - Added style for chunks of inline literals.
1959 - Removed margin for first child of table cells.
1960 - Right-aligned field list names.
1961 - Support for auto-numbered section titles in TOCs.
1962 - Increased the size of inline literals (<tt>) in titles.
1963 - Restored the light gray background for inline literals.
1964 - Added support for "line_block" elements.
1965 - Added style for "address" elements.
1966 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
1967 - Improved field list rendering.
1968 - Vertical whitespace improvements.
1969 - Removed "a.target" style.
1971 * tools/stylesheets/pep.css:
1973 - Fixed nested section margins.
1974 - Other changes parallel those of ``../default.css``.
1977 Release 0.2 (2002-07-31)
1978 ========================
1982 - The word "component" was being used ambiguously. From now on,
1983 "component" will be used to mean "Docutils component", as in Reader,
1984 Writer, Parser, or Transform. Portions of documents (Table of
1985 Contents, sections, etc.) will be called "document parts".
1986 - Did a grand renaming: a lot of ``verylongnames`` became
1987 ``very_long_names``.
1988 - Cleaned up imports: no more relative package imports or
1989 comma-separated lists of top-level modules.
1990 - Added support for an option values object which carries default
1991 settings and overrides (from command-line options and library use).
1992 - Added internal Unicode support, and support for both input and
1994 - Added support for the ``docutils.io.IO`` class & subclasses.
1998 * docutils/__init__.py:
2000 - Added ``ApplicationError`` and ``DataError``, for use throughout
2002 - Added ``Component`` base class for Docutils components; implements
2003 the ``supports`` method.
2004 - Added ``__version__`` (thus, ``docutils.__version__``).
2008 - Removed many keyword parameters to ``Publisher.__init__()`` and
2009 ``publish()``; bundled into an option values object. Added
2010 "argv", "usage", "description", and "option_spec" parameters for
2011 command-line support.
2012 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2014 - Reworked I/O model for ``docutils.io`` wrappers.
2015 - Updated ``Publisher.set_options()``; now returns option values
2017 - Added support for configuration files (/etc/docutils.conf,
2018 ./docutils.conf, ~/.docutils).
2019 - Added ``Publisher.setup_option_parser()``.
2020 - Added default usage message and description.
2022 * docutils/frontend.py: Added to project; support for front-end
2023 (command-line) scripts. Option specifications may be augmented by
2024 components. Requires Optik (http://optik.sf.net/) for option
2025 processing (installed locally as docutils/optik.py).
2027 * docutils/io.py: Added to project; uniform API for a variety of input
2030 * docutils/nodes.py:
2032 - Added ``TreeCopyVisitor`` class.
2033 - Added a ``copy`` method to ``Node`` and subclasses.
2034 - Added a ``SkipDeparture`` exception for visitors.
2035 - Renamed ``TreePruningException`` from ``VisitorException``.
2036 - Added docstrings to ``TreePruningException``, subclasses, and
2038 - Improved docstrings.
2039 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2040 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2042 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2043 ``PreDecorative`` mixin.
2044 - Reworked the name/id bookkeeping; to ``document``, removed
2045 ``explicit_targets`` and ``implicit_targets`` attributes, added
2046 ``nametypes`` attribute and ``set_name_id_map`` method.
2047 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2049 - Added ``document.has_name()`` method.
2050 - Fixed DOM generation for list-attributes.
2051 - Added category class ``Labeled`` (used by footnotes & citations).
2052 - Added ``Element.set_class()`` method (sets "class" attribute).
2054 * docutils/optik.py: Added to project. Combined from the Optik
2055 package, with added option groups and other modifications. The use
2056 of this module is probably only temporary.
2058 * docutils/statemachine.py:
2060 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2061 - Added underscores to improve many awkward names.
2062 - In ``string2lines()``, changed whitespace normalizing translation
2063 table to regexp; restores Python 2.0 compatibility with Unicode.
2065 * docutils/urischemes.py:
2067 - Filled in some descriptions.
2068 - Added "shttp" scheme.
2070 * docutils/utils.py:
2072 - Added ``clean_rcs_keywords`` function (moved from
2073 docutils/transforms/frontmatter.py
2074 ``DocInfo.filter_rcs_keywords``).
2075 - Added underscores to improve many awkward names.
2076 - Changed names of Reporter's thresholds:
2077 warning_level -> report_level; error_level -> halt_level.
2078 - Moved ``utils.id()`` to ``nodes.make_id()``.
2079 - Added ``relative_path(source, target)``.
2081 * docutils/languages/de.py: German mappings; added to project. Thanks
2082 to Gunnar Schwant for the translations.
2084 * docutils/languages/en.py: Added "Dedication" bibliographic field
2087 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2090 * docutils/parsers/rst/states.py:
2092 - Added underscores to improve many awkward names.
2093 - Added RFC-2822 header support.
2094 - Extracted the inline parsing code from ``RSTState`` to a separate
2095 class, ``Inliner``, which will allow easy subclassing.
2096 - Made local bindings for ``memo`` container & often-used contents
2097 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2098 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2099 - Added ``MarkupMismatch`` exception; for late corrections.
2100 - Added ``-/:`` characters to inline markup's start string prefix,
2101 ``/`` to end string suffix.
2102 - Fixed a footnote bug.
2103 - Fixed a bug with literal blocks.
2104 - Applied patch from Simon Budig: simplified regexps with symbolic
2105 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2106 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2107 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2108 - Allowed non-ASCII in "simple names" (directive names, field names,
2110 - Converted ``Inliner.patterns.initial`` to be dynamically built
2111 from parts with ``build_regexp()`` function.
2112 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2113 - Updated docstrings.
2114 - Changed "table" to "grid_table"; added "simple_table" support.
2116 * docutils/parsers/rst/tableparser.py:
2118 - Changed ``TableParser`` to ``GridTableParser``.
2119 - Added ``SimpleTableParser``.
2120 - Refactored naming.
2122 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2123 a fallback language for directive names.
2125 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2126 directive to use a ``pending`` element, used only by HTML writers.
2128 * docutils/parsers/rst/directives/parts.py: Renamed from
2131 - Added "backlinks" attribute to "contents" directive.
2133 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2134 project by Adam Chodorowski.
2136 * docutils/readers/__init__.py: Gave Readers more control over
2137 choosing and instantiating Parsers.
2139 * docutils/readers/pep.py: Added to project; for PEP processing.
2141 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2142 requires a ``component`` parameter.
2144 * docutils/transforms/components.py: Added to project; transforms
2145 related to Docutils components.
2147 * docutils/transforms/frontmatter.py:
2149 - In ``DocInfo.extract_authors``, check for a single "author" in an
2150 "authors" group, and convert it to a single "author" element.
2151 - Added support for "Dedication" and generic bibliographic fields.
2153 * docutils/transforms/peps.py: Added to project; PEP-specific.
2155 * docutils/transforms/parts.py: Renamed from old components.py.
2157 - Added filter for `Contents`, to use alt-text for inline images,
2158 and to remove inline markup that doesn't make sense in the ToC.
2159 - Added "name" attribute to TOC topic depending on its title.
2160 - Added support for optional TOC backlinks.
2162 * docutils/transforms/references.py: Fixed indirect target resolution
2163 in ``Hyperlinks`` transform.
2165 * docutils/transforms/universal.py:
2167 - Changed ``Messages`` transform to properly filter out system
2168 messages below the warning threshold.
2169 - Added ``Decorations`` transform (support for ``--generator``,
2170 ``--date``, ``--time``, ``--source-link`` options).
2172 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2173 Engelbert Gruber's PDF writer.
2175 * docutils/writers/html4css1.py:
2177 - Made XHTML-compatible (switched to lowercase element & attribute
2178 names; empty tag format).
2179 - Escape double-dashes in comment text.
2180 - Improved boilerplate & modularity of output.
2181 - Exposed modular output in Writer class.
2182 - Added a "generator" meta tag to <head>.
2183 - Added support for the ``--stylesheet`` option.
2184 - Added support for ``decoration``, ``header``, and ``footer``
2186 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2187 translation table to regexp; restores Python 2.0 compatibility
2189 - Added the translator class as instance variable to the Writer, to
2190 make it easily subclassable.
2191 - Improved option list spacing (thanks to Richard Jones).
2192 - Modified field list output.
2193 - Added backlinks to footnotes & citations.
2194 - Added percentage widths to "<col>" tags (from colspec).
2195 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2196 "<span>" changed to "<var>".
2197 - Inline literals: "<code>" changed to "<tt>".
2198 - Many changes to optimize vertical space: compact simple lists etc.
2199 - Add a command-line options & directive attributes to control TOC
2200 and footnote/citation backlinks.
2201 - Added support for optional footnote/citation backlinks.
2202 - Added support for generic bibliographic fields.
2203 - Identify backrefs.
2204 - Relative URLs for stylesheet links.
2206 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2207 PEPs (subclass of ``html4css1.Writer``).
2209 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2211 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2212 of the Docutils internal doctree in XML.
2214 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2218 - Changed the title to "The Docutils Document Tree".
2219 - Added "Hyperlink Bookkeeping" section.
2221 * spec/docutils.dtd:
2223 - Added ``decoration``, ``header``, and ``footer`` elements.
2224 - Brought ``interpreted`` element in line with the parser: changed
2225 attribute "type" to "role", added "position".
2226 - Added support for generic bibliographic fields.
2228 * spec/notes.txt: Continual updates. Added "Project Policies".
2230 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2233 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2235 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2236 mailing list discussions.
2238 * spec/pep-0287.txt:
2240 - Renamed to "reStructuredText Docstring Format".
2242 - Reworked Q&A as an enumerated list.
2243 - Converted to reStructuredText format.
2245 * spec/pysource.dtd:
2247 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2249 * spec/pysource.txt: Removed from project. Moved much of its contents
2252 * spec/rst/alternatives.txt:
2254 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2255 - Added "Inline External Targets" section.
2257 * spec/rst/directives.txt:
2259 - Added "backlinks" attribute to "contents" directive.
2261 * spec/rst/problems.txt:
2263 - Updated the Enumerated List Markup discussion.
2264 - Added new alternative table markup syntaxes.
2266 * spec/rst/reStructuredText.txt:
2268 - Clarified field list usage.
2269 - Updated enumerated list description.
2270 - Clarified purpose of directives.
2271 - Added ``-/:`` characters to inline markup's start string prefix,
2272 ``/`` to end string suffix.
2273 - Updated "Authors" bibliographic field behavior.
2274 - Changed "inline hyperlink targets" to "inline internal targets".
2275 - Added "simple table" syntax to supplement the existing but
2276 newly-renamed "grid tables".
2277 - Added cautions for anonymous hyperlink use.
2278 - Added "Dedication" and generic bibliographic fields.
2280 * test: Made test modules standalone (subdirectories became packages).
2282 * test/DocutilsTestSupport.py:
2284 - Added support for PEP extensions to reStructuredText.
2285 - Added support for simple tables.
2286 - Refactored naming.
2288 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2290 - Now supports true packages containing test modules
2291 (``__init__.py`` files required); fixes duplicate module name bug.
2293 * test/test_pep/: Subpackage added to project; PEP testing.
2295 * test/test_rst/test_SimpleTableParser.py: Added to project.
2299 - Updated html.py and publish.py front-end tools to use the new
2300 command-line processing facilities of ``docutils.frontend``
2301 (exposed in ``docutils.core.Publisher``), reducing each to just a
2303 - Added ``locale.setlocale()`` calls to front-end tools.
2305 * tools/buildhtml.py: Added to project; batch-generates .html from all
2306 the .txt files in directories and subdirectories.
2308 * tools/default.css:
2310 - Added support for ``header`` and ``footer`` elements.
2311 - Added styles for "Dedication" topics (biblio fields).
2313 * tools/docutils.conf: A configuration file; added to project.
2315 * tools/docutils-xml.py: Added to project.
2317 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2319 * tools/pep-html-template: Added to project.
2321 * tools/pep2html.py: Added to project from Python (nondist/peps).
2322 Added support for Docutils (reStructuredText PEPs).
2324 * tools/quicktest.py:
2326 - Added the ``--attributes`` option, hacked a bit.
2327 - Added a second command-line argument (output file); cleaned up.
2329 * tools/stylesheets/: Subdirectory added to project.
2331 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2334 Release 0.1 (2002-04-20)
2335 ========================
2337 This is the first release of Docutils, merged from the now inactive
2338 reStructuredText__ and `Docstring Processing System`__ projects. For
2339 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2340 `DPS HISTORY`__ files.
2342 __ http://structuredtext.sourceforge.net/
2343 __ http://docstring.sourceforge.net/
2344 __ http://structuredtext.sourceforge.net/HISTORY.html
2345 __ http://docstring.sourceforge.net/HISTORY.html
2347 General changes: renamed 'dps' package to 'docutils'; renamed
2348 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2349 the test suites (reStructuredText's test/test_states renamed to
2350 test/test_rst); and all modifications required to make it all work.
2352 * docutils/parsers/rst/states.py:
2354 - Improved diagnostic system messages for missing blank lines.
2355 - Fixed substitution_reference bug.
2361 indent-tabs-mode: nil
2362 sentence-end-double-space: t