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/frontend.py:
22 - Configuration files are now assumed and required to be
24 - Paths of applied configuration files are now recorded in the
25 runtime setting ``_config_files`` (accessible via
30 - Added code to determine the input encoding from data: encoding
31 declarations or the presence of byte order marks (UTF-8 & UTF-16).
32 - Added support for IronPython 1.0.
36 - Added ``document.__getstate__`` method, for pickling.
38 * docutils/parsers/rst/states.py:
40 - Unquoted targets beginning with an underscore (``.. __target:
41 URI``) are no longer accepted.
42 - Added support for multiple attributions in a physical block quote
43 (indented text block), dividing it into multiple logical block
45 - Added support for unicode bullets in bullet lists: "•", "‣", and
47 - Added support for new object-oriented directive interface,
48 retaining compatibility to the old functional interface.
49 - Added support for throwing ``DirectiveError``'s from within
52 * docutils/parsers/rst/__init__.py:
54 - Added ``Directive`` base class.
55 - Added ``DirectiveError`` base class.
56 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
59 * docutils/parsers/directives/:
61 - Refactored all reStructuredText directives to use the new
62 object-oriented directive interface. Errors are now (mostly)
63 thrown using the new ``DirectiveError`` class.
65 * docutils/transforms/writer_aux/:
67 - Added ``Admonitions`` transform to transform specific admonitions
68 (like ``note``, ``warning``, etc.) into generic admonitions with a
71 * docutils/writers/html4css1/__init__.py:
73 - Moved template functionality from the PEP/HTML writer here.
74 - Expanded the fragments available in the ``parts`` attribute.
76 * docutils/writers/html4css1/template.txt: Added to project.
78 * docutils/writers/pep_html/:
80 - Moved template functionality to the HTML writer.
82 * docutils/writers/s5_html/__init__.py:
84 - Added ``view_mode`` & ``hidden_controls`` settings
85 (``--view-mode`` & ``--hidden-controls/--visible-controls``
88 * docutils/writers/latex2e/__init__.py:
90 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
91 - Add option --use-latex-abstract.
92 - Image width unit ``px`` is translated to ``pt``.
93 - Add image height support.
94 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
96 - Fix: Do not escape underscores in citation reference labels if
97 use-latex-citations is set.
98 - Use centering instead of center for figure contents, to avoid vertical
100 - Recognize table class: borderless, nolines, booktabs, standard.
101 - Fix: Renaming contents section does not work with latex writer; SF
103 - Applied patch for custom roles with classes from Edward Loper.
104 - Fixed bug that caused crashes with more than 256 lists.
106 * docutils/writers/pep_html/__init__.py:
108 - Changed to support new python.org website structure and
111 * docs/howto/security.txt: "Deploying Docutils Securely", added to
114 * tools/editors/emacs/rst.el:
116 - Changed license to "GPL".
117 - Added ``rst-straighten-decorations`` function.
118 - The ``compile`` module is now always loaded.
119 - Added ``rst-toggle-line-block`` function.
120 - Headings consisting only of non-ASCII characters are now
121 recognized by ``rst-toc`` and ``rst-adjust``.
122 - Added font-lock support for multi-line comments where the first
123 comment line is empty.
124 - Added ``(require 'font-lock)``.
128 - Provide descriptive error message if distutils is missing.
131 Release 0.4 (2006-01-09)
132 ========================
136 - Updated the project policies for trunk/branch development &
139 * docutils/__init__.py:
141 - Added ``__version_details__`` attribute to describe code source
142 (repository/snapshot/release).
143 - Replaced ``default_transforms`` attribute of TransformSpec with
144 ``get_transforms()`` method.
148 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
149 functions, for document tree extraction and reprocessing.
153 - Added ``DocTreeInput`` class, for reprocessing existing documents.
154 - Added support for non-Unicode (e.g. binary) writer output.
158 - Re-introduced ``Targetable.indirect_reference_name``, for
159 MoinMoin/reST compatibility (removed in r3124/r3129).
160 - Added ``serial_escape`` function; escapes string values that are
161 elements of a list, for serialization. Modified Docutils-XML
162 writing (``Element._dom_node``) and pseudo-XML writing
163 (``Element.starttag``) to use ``serial_escape``.
164 - Added ``Node.deepcopy()`` method.
165 - Removed the internal lists ``document.substitution_refs``,
166 ``document.anonymous_refs``, and ``document.anonymous_targets``.
167 - Added a "container" element.
168 - Fixed bug where values of list-valued attributes of elements
169 originating from custom interpreted text roles (i.e., with custom
170 classes) were being shared between element instances. Reported by
173 * docutils/statemachine.py:
175 - Added trailing whitespace stripping to ``string2lines()``.
176 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
177 Asian double-width character support.
181 - Added ``east_asian_column_width()`` for double-width character
184 * docutils/languages/ja.py: Added to project: Japanese mappings by
187 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
188 mappings by Panjunyong.
190 * docutils/parsers/null.py: Added to project; a do-nothing parser.
192 * docutils/parsers/rst/__init__.py:
194 - Added validator to tab_width setting, with test. Closes SF bug
195 #1212515, report from Wu Wei.
197 * docutils/parsers/rst/states.py:
199 - Fixed bug with escaped colons indicating a literal block.
200 - Fixed bug with enumerated lists (SF#1254145).
201 - Backslash-escaped colons inside of field names are now allowed.
202 - Targets (implicit and explicit), anonymous hyperlink references
203 and auto-numbered footnote references inside of substitution
204 definitions are now disallowed.
205 - Fixed bug: list items with blank first lines.
206 - Fixed bug: block quote attributions with indented second lines.
207 - Added East Asian double-width character support (Python 2.4 only).
209 * docutils/parsers/rst/tableparser.py:
211 - Added East Asian double-width character support (Python 2.4 only).
213 * docutils/parsers/rst/directives/body.py:
215 - Added the "container" directive.
217 * docutils/parsers/rst/directives/misc.py:
219 - Added the "default-role", "title", and "date" directives.
220 - Added standard data file syntax to the "include" directive.
221 - Added support for "class" directive content.
223 * docutils/parsers/rst/directives/images.py:
225 - Added ``indirect_reference_name`` support for images with a target
227 - Added support for image width and height units.
228 - Fixed bug with image "target" options.
230 * docutils/parsers/rst/directives/references.py:
232 - Added "class" attribute to "target-notes" directive, for
233 footnote_reference classes.
235 * docutils/parsers/rst/include/: Directory added to project; contains
236 standard data files for the "include" directive. Initial contents:
237 character entity substitution definition sets, and a set of
238 definitions for S5/HTML presentations.
240 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
241 mappings by David Goodger.
243 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
244 Simplified Chinese mappings by Panjunyong.
246 * docutils/readers/__init__.py:
248 - Added universal.Decorations and universal.ExposeInternals
249 transforms as default transforms for all readers.
250 - Added ``ReReader`` base class for readers that reread an existing
253 * docutils/readers/doctree.py: Added to project; a reader for existing
256 * docutils/transforms/frontmatter.py:
258 - Fixed the DocInfo transform to handle SVN-style expansion of the
260 - In ``DocInfo.extract_authors``, treat the contents of "authors"
263 * docutils/transforms/misc.py:
265 - Added misc.Transitions transform, extracted from
266 universal.FinalChecks.
268 * docutils/transforms/references.py:
270 - Added references.DanglingReferences transform, extracted from
271 universal.FinalChecks.
272 - Fixed bug with doubly-indirect substitutions.
273 - Added footnote_reference classes attribute to "TargetNotes".
274 - Fixed bug with circular substitution definitions that put Docutils
275 into an infinite loop.
277 * docutils/transforms/universal.py:
279 - Added universal.ExposeInternals transform, extracted from
280 universal.FinalChecks.
281 - Removed universal.FinalChecks transform (logic has been moved to
282 several new transforms).
283 - Fixed bug with the "expose_internals" setting and Text nodes
284 (exposed by the "rawsource" internal attribute).
285 - Added the universal.StripComments transform, implementation of the
286 "strip_comments" setting.
288 * docutils/transforms/writer_aux.py: Added to project; auxiliary
289 transforms for writers.
291 - Added ``Compound`` transform, which flattens compound paragraphs.
293 * docutils/writers/: Several writer modules (html4css1.py) were
294 converted into packages. Support modules and data files have been
295 moved into the packages. The stylesheets for the HTML writers are
296 now installed along with the code, the code knows where to find
297 them, and the default is to use them (actually, to embed them).
298 Some adjustments to configuration files may be necessary. The
299 easiest way to obtain the new default behavior is to remove all
300 settings whose name includes "stylesheet".
302 * docutils/writers/__init__.py:
304 - Added universal.Messages and universal.FilterMessages transforms
305 as default transforms for all writers.
306 - Added ``UnfilteredWriter`` base class for writers that pass the
307 document tree on unchanged.
309 * docutils/writers/docutils_xml.py:
311 - Made ``xmlcharrefreplace`` the default output encoding error
314 * docutils/writers/html4css1/:
316 - Added support for image width and height units.
317 - Made ``xmlcharrefreplace`` the default output encoding error
319 - Made ``--embed-stylesheet`` the default rather than
320 ``--link-stylesheet``.
321 - Moved "id" attribute from container (section etc.) to title's <a>
322 tag, to be on the same tag as "name".
323 (!!! To be reverted in Docutils 0.5.)
324 - Added vertical space between fields of field lists.
325 - Added ``--compact-field-lists`` option to remove vertical space in
327 - Made cloaking of email addresses with ``--cloak-email-addresses``
329 - Fixed support for centered images.
330 - Added support for class="compact" & class="open" lists.
332 * docutils/writers/latex2e/:
334 - Underscores in citekeys are no longer escaped.
336 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
337 mapping of Unicode characters to LaTeX equivalents.
339 * docutils/writers/s5_html/: Package added to project; writer for
342 * docs/dev/distributing.txt: Added to project; guide for distributors
343 (package maintainers).
345 * docs/dev/hacking.txt: Added to project; guide for developers.
347 * docs/ref/doctree.txt:
349 - Updated for plural attributes "classes", "ids", "names",
351 - Added the "container" element.
353 * docs/ref/docutils.dtd:
355 - Updated for plural attributes "classes", "ids", "names",
358 * docs/user/emacs.txt: Added to project; a document about Emacs
359 support for reStructuredText and Docutils.
361 * docs/user/links.txt: Added to project; lists of Docutils-related
364 * docs/user/mailing-lists.txt: Added to project; information about
365 Docutils-related mailing lists and how to access them.
367 * docs/user/slide-shows.txt: Added to project; example of and docs for
368 the S5/HTML writer (``rst2s5.py`` front end).
370 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
371 Files", added to project.
373 * test/coverage.sh: Added to project; test coverage script.
375 * test/DocutilsTestSupport.py:
377 - Added support for specifying runtime settings at the suite level.
379 * test/test_functional.py:
381 - Added the ``clear_output_directory`` function.
382 - Added support for ``_test_more`` functions in functional test
385 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
387 * tools/rstpep2html.py: Renamed from pep.py.
389 * tools/dev/create_unimap.py: Added to project; script to create the
390 docutils/writers/unimap_latex.py mapping file.
392 * tools/dev/profile_docutils.py: Added to project; profiler script.
394 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
396 * tools/editors/emacs/restructuredtext.el,
397 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
398 Removed from project; the functionality is now contained in rst.el.
400 * tools/editors/emacs/rst.el: Added to project. Added many features
401 and fixed many bugs. See docs/user/emacs.txt for details.
403 * tools/stylesheets: Removed from project. Stylesheets have been
404 renamed and moved into writer packages.
407 Release 0.3.9 (2005-05-26)
408 ==========================
412 - Eliminated and replaced all uses of the old string attributes
413 ``id``, ``name``, ``dupname`` and ``class`` with references to the
414 new list attributes ``ids``, ``names``, ``dupnames`` and
415 ``classes`` throughout the whole source tree.
419 - Enabled ``--dump-*`` options when ``--traceback`` specified,
420 allowing for easier debugging.
421 - In ``Publisher.publish()``, expanded the generic top-level
424 * docutils/examples.py:
426 - Added ``internals`` function for exploration.
430 - Fixed ``Input.decode`` method to apply heuristics only if no
431 encoding is explicitly given, and to provide better reporting of
433 - The ``Input.decode`` method now removes byte order marks (BOMs)
438 - ``image`` element class changed to subclass of Element, not
439 TextElement (it's an empty element, and cannot contain text).
440 - Added ``attr_defaults`` dictionary for default attribute values.
441 - Added empty list as default value for the following attributes:
442 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
443 - Added ``document.decoration`` attribute,
444 ``document.get_decoration`` method, and ``decoration.get_header``
445 & ``.get_footer`` methods.
446 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
451 - Removed ``docutils.utils.Reporter.categories``,
452 ``docutils.utils.ConditionSet``, and all references to them, to
453 simplify error reporting.
455 * docutils/languages/nl.py: Added to project; Dutch mappings by
458 * docutils/parsers/rst/__init__.py:
460 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
462 * docutils/parsers/rst/states.py:
464 - Added check for escaped at-mark to prevent email address recognition.
465 - Fixed option lists to allow spaces inside ``<angle-bracketed option
467 - Allowed whitespace in paths and URLs.
468 - Added auto-enumerated list items.
469 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
471 - Added support for table stub columns.
473 * docutils/parsers/rst/directives/__init__.py:
475 - Allowed whitespace in paths (``path`` function).
476 - Added ``uri`` directive option conversion function.
478 * docutils/parsers/rst/directives/body.py:
480 - Fixed illegal context bug with "topic" directive (allowed within
481 sidebars; not within body elements).
483 * docutils/parsers/rst/directives/images.py:
485 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
486 - Added support for the ``file_insertion_enabled`` setting in the
487 "figure" directive (disables "figwidth" option).
488 - "image" directive: added checks for valid values of "align" option,
489 depending on context. "figure" directive: added specialized
490 "align" option and attribute on "figure" element.
491 - Made ":figwidth: image" option of "figure" directive work again.
492 - Fixed bug with reference names containing uppercase letters
493 (e.g. ``Name_``) in "target" option of "image" directive.
495 * docutils/parsers/rst/directives/misc.py:
497 - Fixed "include" and "raw" directives to catch text decoding
499 - Allowed whitespace in "include" & "raw" directive paths.
500 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
501 settings in "include" & "raw" directives.
503 * docutils/parsers/rst/directives/parts.py:
505 - Added "header" & "footer" directives.
506 - Fixed illegal context bug with "contents" directive (topics
507 allowed within sidebars; not within body elements).
509 * docutils/parsers/rst/directives/tables.py:
511 - Added "list-table" directive.
512 - Caught empty CSV table bug.
513 - Added support for the ``file_insertion_enabled`` setting in the
514 "csv-table" directive.
515 - Added ``stub-columns`` option to "csv-table" and "list-table"
518 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
519 mappings by Martijn Pieters.
521 * docutils/readers/standalone.py:
523 - Added ``--section-subtitles`` and ``--no-section-subtitles``
524 options to activate or deactivate the SectSubTitle transform.
526 * docutils/transforms/frontmatter.py:
528 - Added SectSubTitle transform to promote titles of lone
529 subsections to subtitles.
531 * docutils/transforms/references.py:
533 - Fixed mislocated internal targets bug, by propagating internal
534 targets to the next node, making use of the newly added support
535 for multiple names and IDs.
536 - Fixed duplicate footnote label bug.
537 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
540 * docutils/writers/html4css1.py:
542 - Fixed unencoded stylesheet reference bug (characters like "&" in
543 stylesheet references).
544 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
546 - Added support for multiple IDs per node by creating empty ``span``
548 - Added the ``field_name_limit`` & ``option_limit`` settings &
550 - Added support for table stub columns.
551 - Added support for the ``align`` attribute on ``figure`` elements.
552 - Added the ``cloak_email_addresses`` setting & support.
553 - Added ``html_prolog``, ``html_head``, ``html_body``,
554 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
555 ``docutils.core.publish_parts``.
556 - Added support for section subtitles.
558 * docutils/writers/latex2e.py:
560 - Fixed tables starting with more than one multirow cell.
561 - Improved --use-latex-docinfo so that organization/contact/address
562 fields are lumped with the last author field and appear on the
564 - Made sure the titlepage is always shown with --use-latex-docinfo,
565 even if the document has no title.
566 - Made sure that latex doesn't fill in today's date if no date field
568 - Added support for section subtitles.
570 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
573 * docutils/writers/null.py: Added to project; a do-nothing Writer.
575 * docs/api/publisher.txt:
577 - Added "``publish_parts`` Details" section.
579 * docutils/dev/repository.txt: Added to project; information about the
580 Docutils Subversion repository.
582 * docs/ref/docutils.dtd:
584 - Added a ``stub`` attribute to the ``colspec`` element via the
585 ``tbl.colspec.att`` parameter entity.
586 - Allowed topic elements within sidebars
587 - Added an ``align`` attribute to the ``figure`` element.
589 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
593 Release 0.3.7 (2004-12-24)
594 ==========================
596 * docutils/frontend.py:
598 - Added options: --input-encoding-error-handler,
599 --record-dependencies, --leave-footnote-reference-space,
601 - Added command-line and config file support for "overrides" setting
606 - Added support for input encoding error handler.
610 - Added dispatch_visit and dispatch_departure methods to
611 NodeVisitor; useful as a hook for Visitors.
612 - Changed structure of ``line_block``; added ``line``.
613 - Added ``compound`` node class.
614 - Added a mechanism for Visitors to transitionally ignore new node
619 - Moved ``escape2null`` and ``unescape`` functions from
620 docutils/parsers/rst/states.py.
622 * docutils/parsers/rst/roles.py:
625 - Changed role function API: the "text" parameter now takes
626 null-escaped interpreted text content.
628 * docutils/parsers/rst/states.py:
630 - Fixed bug where a "role" directive in a nested parse would crash
631 the parser; the state machine's "language" attribute was not being
633 - Added support for line block syntax.
634 - Fixed directive parsing bug: argument-less directives didn't
635 notice that arguments were present.
636 - Removed error checking for transitions.
637 - Added support for multiple classifiers in definition list items.
638 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
639 - Changed role function API: the "text" parameter now takes
640 null-escaped interpreted text content.
641 - Empty sections and documents are allowed now.
643 * docutils/parsers/rst/directives/__init__.py:
645 - Added ``encoding`` directive option conversion function.
646 - Allow multiple class names in class_option conversion function.
648 * docutils/parsers/rst/directives/body.py:
650 - Converted the line-block directive to use the new structure.
651 - Extracted the old line-block functionality to the ``block``
652 function (still used).
653 - Added ``compound`` directive (thanks to Felix Wiemann).
655 * docutils/parsers/rst/directives/misc.py:
657 - Added "encoding" option to "include" and "raw" directives.
658 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
659 - Allow multiple class names in the "class" directive.
661 * docutils/parsers/rst/directives/parts.py:
663 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
664 options. Thanks to Lele Gaifax.
666 * docutils/parsers/rst/directives/tables.py:
668 - Added "encoding" directive to "csv-table" directive.
669 - Added workaround for lack of Unicode support in csv.py, for
672 * docutils/transforms/misc.py:
674 - Fixed bug when multiple "class" directives are applied to a single
676 - Enabled multiple format names for "raw" directive.
678 * docutils/transforms/references.py:
680 - Added support for trimming whitespace from beside substitution
683 * docutils/transforms/universal.py:
685 - FinalChecks now checks for illegal transitions and moves
686 transitions between sections.
688 * docutils/writers/html4css1.py:
690 - HTMLTranslator.encode now converts U+00A0 to " ".
691 - "stylesheet" and "stylesheet_path" settings are now mutually
693 - Added support for the new line_block/line structure.
694 - --footnote-references now overrides
695 --trim-footnote-reference-space, if applicable.
696 - Added support for ``compound`` elements.
697 - Enabled multiple format names for "raw" directive.
698 - ``<p>`` tags of a paragraph which is the only visible child of the
699 document node are no longer stripped.
700 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
701 new method ``should_be_compact_paragraph()``.
702 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
704 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
705 the output if they have their ``class`` attribute set.
706 - The whole document is now surrounded by a ``<div
707 class="document">`` element.
708 - Body-level images are now wrapped by their own ``<div>`` elements,
709 with image classes copied to the wrapper, and for images which
710 have the ``:align:`` option set, the surrounding ``<div>`` now
711 receives a class attribute (like ``class="align-left"``).
713 * docutils/writers/latex2e.py:
715 - no newline after depart_term.
716 - Added translations for some Unicode quotes.
717 - Added option "font-encoding", made package AE the default.
718 - "stylesheet" and "stylesheet_path" settings are now mutually
720 - --footnote-references now overrides
721 --trim-footnote-reference-space, if applicable.
722 - The footnote label style now matches the footnote reference style
723 ("brackets" or "superscript").
724 - Added support for ``compound`` elements.
725 - Enabled multiple format names for "raw" directive.
727 * docs/ref/docutils.dtd:
729 - Changed structure of the ``line_block`` element; added ``line``.
730 - Added ``compound`` element.
731 - Added "ltrim" and "rtrim" attributes to
732 ``substitution_definition`` element.
733 - Enabled multiple format names for ``raw`` element.
734 - Enabled multiple classifiers in ``definition_list_item`` elements.
736 * docs/ref/rst/directives.txt
738 - Marked "line-block" as deprecated.
739 - "Class" directive now allows multiple class names.
740 - Added "Rationale for Class Attribute Value Conversion".
741 - Added warning about "raw" overuse/abuse.
743 * docs/ref/rst/restructuredtext.txt:
745 - Added syntax for line blocks.
746 - Definition list items may have multiple classifiers.
748 * docs/ref/rst/roles.txt:
752 * tools/stylesheets/default.css:
754 - Added support for the new line_block structure.
755 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
758 Release 0.3.5 (2004-07-29)
759 ==========================
763 * _`Documentation cleanup/reorganization`.
765 - Created new subdirectories of docs/:
767 * ``docs/user/``: introductory/tutorial material for end-users
768 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
769 * ``docs/api/``: API reference material for client-developers
770 * ``docs/ref/``: reference material for all groups
771 * ``docs/howto/``: for component-developers and core-developers
772 * ``docs/peps/``: Python Enhancement Proposals
774 - Moved ``docs/*`` to ``docs/user/``.
775 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
776 ``spec/`` to ``docs/dev``.
777 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
778 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
779 - Moved ``alternatives.txt``, and ``problems.txt`` from
780 ``spec/rst/`` to ``docs/dev/rst/``.
781 - Moved ``reStructuredText.txt``, ``directives.txt``,
782 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
783 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
784 ``roles.txt``, ``reStructuredText.txt`` to
785 ``restructuredtext.txt``.
786 - Moved ``spec/howto/`` to ``docs/howto``.
788 In order to keep the CVS history of moved files, we supplied
789 SourceForge with a `script for modifying the Docutils CVS
792 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
794 After running the cleanup script:
796 - Added ``docs/index.txt``.
797 - Added a ``.htaccess`` file to the ``web`` module, containing
798 redirects for all old paths to new paths. They'll preserve
799 fragments (the "#name" part of a URL), and won't clutter up the
800 file system, and will correct the URL in the user's browser.
801 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
802 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
803 the "To Do" list itself in ``docs/dev/todo.txt``.
804 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
805 section of ``docs/dev/todo.txt``.
806 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
807 - Added "How To Report Bugs" to ``BUGS.txt``.
808 - Went through all the sources and docs (including under web/) and
809 updated links. Mostly done by Felix Wiemann; thanks Felix!
810 (Still need to update links in the sandboxes.)
814 * BUGS.txt: Added to project.
816 * THANKS.txt: Added to project.
818 * docutils/__init__.py:
820 - 0.3.4: Post-release.
824 - Added special error handling & advice for UnicodeEncodeError.
825 - Refactored Publisher.publish (simplified exception handling &
826 extracted debug dumps).
827 - Renamed "enable_exit" parameter of convenience functions to
828 "enable_exit_status".
829 - Enabled traceback (exception propagation) by default in
830 programmatic convenience functions.
831 - Now publish_file and publish_cmdline convenience functions return
832 the encoded string results in addition to their regular I/O.
833 - Extracted common code from publish_file, publish_string, and
834 publish_parts, into new publish_programmatically. Extracted
835 settings code to ``Publisher.process_programmatic_settings``.
836 - In Publisher.publish, disabled ``settings_overrides`` when
837 ``settings`` is supplied; redundant.
839 * docutils/frontend.py:
841 - Added help text for "--output-encoding-error-handler" and
842 "--error-encoding-error-handler".
843 - Renamed "--exit" to "--exit-status".
844 - Simplified default-setting code.
846 * docutils/parsers/rst/__init__.py:
848 - Added "--pep-base-url" and "--rfc-base-url" options.
850 * docutils/parsers/rst/states.py:
852 - Made URI recognition more aggressive and intelligent.
854 * docutils/parsers/rst/directives/__init__.py:
856 - Added several directive option conversion functions.
858 * docutils/parsers/rst/directives/body.py:
860 - Moved "table" directive to tables.py.
862 * docutils/parsers/rst/directives/tables.py: Table-related directives,
865 * docutils/writers/latex2e.py:
867 - Added "--table-style=(standard|booktabs|nolines)"
868 - figures get "here" option (LaTeX per default puts them at bottom),
869 and figure content is centered.
870 - Rowspan support for tables.
871 - Fix: admonition titles before first section.
872 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
873 - Replave ``_`` in literal by an underlined blank, because it has the correct
875 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
876 - A few unicode replacements, if output_encoding != utf
877 - Add "--graphicx-option".
878 - Indent literal-blocks.
879 - Fix: omit ``\maketitle`` when there is no document title.
881 * docs/index.txt: "Docutils Project Documentation Overview", added to
884 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
885 Tool", added to project.
887 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
889 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
891 * docs/dev/policies.txt: Added to project (extracted from
892 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
894 * docs/dev/release.txt: Added to project (extracted from
895 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
897 * docs/dev/testing.txt: Added to project.
899 * docs/dev/website.txt: Added to project (extracted from
900 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
902 * docs/ref/rst/directives.txt:
904 - Added directives: "table", "csv-table".
906 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
907 added to project. 1 page for syntax, and a 1 page reference for
908 directives and roles. Source text to be used as-is; not meant to be
911 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
912 with a change of title.
914 * test/functional/, contents, and test/test_functional.py: Added to
917 * tools/buildhtml.py: Fixed bug with config file handling.
919 * tools/html.py: Removed from project (duplicate of rst2html.py).
921 * tools/pep2html.py: Removed from project (duplicate of Python's
922 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
923 Docutils-related PEPs in docs/peps/).
925 * tools/rst2pseudoxml.py: Renamed from publish.py.
927 * tools/rst2xml.py: Renamed from docutils-xml.py.
929 * tools/test.txt: Removed from project; moved to
930 docs/user/rst/demo.txt.
932 * setup.py: Now also installs ``rst2latex.py``.
935 Release 0.3.3 (2004-05-09)
936 ==========================
938 * docutils/__init__.py:
940 - 0.3.1: Reorganized config file format (multiple sections); see
942 - Added unknown_reference_resolvers attribute to TransformSpec.
943 - 0.3.2: Interpreted text reorganization.
948 - Catch system messages to stop tracebacks from parsing errors.
949 - Catch exceptions during processing report & exit without
950 tracebacks, except when "--traceback" used.
951 - Reordered components for OptionParser; application comes last.
952 - Added "config_section" parameter to several methods and functions,
953 allowing front ends to easily specify their config file sections.
954 - Added publish_parts convenience function to allow access to individual
957 * docutils/examples.py: Added to project; practical examples of
958 Docutils client code, to be used as-is or as models for variations.
960 * docutils/frontend.py:
962 - Added "--traceback" & "--no-traceback" options ("traceback"
964 - Implemented support for config file reorganization:
965 ``standard_config_files`` moved from ``ConfigParser`` to
966 ``OptionParser``; added
967 ``OptionParser.get_config_file_settings()`` and
968 ``.get_standard_config_settings()``; support for old "[options]"
969 section (with deprecation warning) and mapping from old to new
971 - Reimplemented setting validation.
972 - Enabled flexible boolean values: yes/no, true/false, on/off.
973 - Added ``Values``, a subclass of ``optparse.Values``, with support
974 for list setting attributes.
975 - Added support for new ``DOCUTILSCONFIG`` environment variable;
976 thanks to Beni Cherniavsky.
977 - Added "--no-section-numbering" option.
981 - Catch IOErrors when opening source & destination files, report &
982 exit without tracebacks. Added ``handle_io_errors`` parameter to
983 ``FileInput`` & ``FileOutput`` to enable caller error handling.
987 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
988 method definitions (via ``exec``) to dynamic assignments (via
989 ``setattr``); thanks to Roman Suzi.
990 - Encapsulated visitor dynamic assignments in a function; thanks to
992 - Added indirect_reference_name attribute to the Targetable
993 class. This attribute holds the whitespace_normalized_name
994 (contains mixed case) of a target.
996 * docutils/statemachine.py:
998 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
999 - Added ``StringList.get_2D_block``.
1001 * docutils/utils.py:
1003 - Added "level" attribute to SystemMessage exceptions.
1005 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1008 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1011 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1012 Marcelo Huerta San Martin.
1014 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1015 mappings by Lalo Martins.
1017 * docutils/languages/ru.py: Added to project; Russian mappings by
1020 * docutils/parsers/rst/roles.py: Added to project. Contains
1021 interpreted text role functions, a registry for interpreted text
1022 roles, and an API for adding to and retrieving from the registry.
1023 Contributed by Edward Loper.
1025 * docutils/parsers/rst/states.py:
1027 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1028 - Allowed true em-dash character and "---" as block quote
1030 - Added support for <angle-bracketed> complex option arguments
1032 - Fixed handling of backslashes in substitution definitions.
1033 - Fixed off-by-1 error with extra whitespace after substitution
1034 definition directive.
1035 - Added inline markup parsing to field lists' field names.
1036 - Added support for quoted (and unindented) literal blocks.
1037 Driven in part by a bribe from Frank Siebenlist (thanks!).
1038 - Parser now handles escapes in URIs correctly.
1039 - Made embedded-URIs' reference text omittable. Idea from Beni
1041 - Refactored explicit target processing code.
1042 - Added name attribute to references containing the reference name only
1043 through whitespace_normalize_name (no case changes).
1044 - parse_target no longer returns the refname after going through
1045 normalize_name. This is now handled in make_target.
1046 - Fixed bug relating to role-less interpreted text in non-English
1048 - Reorganized interpreted text processing; moved code into the new
1049 roles.py module. Contributed by Edward Loper.
1050 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1051 ``parse_directive_block``.
1053 * docutils/parsers/rst/tableparser.py:
1055 - Reworked for ``StringList``, to support "include" directives in
1058 * docutils/parsers/rst/directives/__init__.py:
1060 - Renamed ``unchanged()`` directive option conversion function to
1061 ``unchanged_required``, and added a new ``unchanged``.
1062 - Catch unicode value too high error; fixes bug 781766.
1063 - Beefed up directive error reporting.
1065 * docutils/parsers/rst/directives/body.py:
1067 - Added basic "table" directive.
1069 * docutils/parsers/rst/directives/images.py:
1071 - Added "target" option to "image" directive.
1072 - Added name attribute to references containing the reference name only
1073 through whitespace_normalize_name (no case changes).
1075 * docutils/parsers/rst/directives/misc.py:
1077 - Isolated the import of the ``urllib2`` module; was causing
1078 problems on SourceForge (``libssl.so.2`` unavailable?).
1079 - Added the "role" directive for declaring custom interpreted text
1082 * docutils/parsers/rst/directives/parts.py:
1084 - The "contents" directive does more work up-front, creating the
1085 "topic" and "title", and leaving the "pending" node for the
1086 transform. Allows earlier reference resolution; fixes subtle bug.
1088 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1089 mappings by Jannie Hofmeyr.
1091 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1092 mappings by Marek Blaha.
1094 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1095 mappings by Marcelo Huerta San Martin.
1097 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1098 Portuguese mappings by Lalo Martins.
1100 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1101 mappings by Roman Suzi.
1103 * docutils/transforms/parts.py:
1105 - The "contents" directive does more work up-front, creating the
1106 "topic" and "title", and leaving the "pending" node for the
1107 transform. Allows earlier reference resolution; fixes subtle bug.
1108 - Added support for disabling of section numbering.
1110 * docutils/transforms/references.py:
1112 - Verifying that external targets are truly targets and not indirect
1113 references. This is because we are now adding a "name" attribute to
1114 references in addition to targets. Note sure if this is correct!
1115 - Added code to hook into the unknown_reference_resolvers list for a
1116 transformer in resolve_indirect_target. This allows the
1117 unknown_reference_resolvers to keep around indirect targets which
1118 docutils doesn't know about.
1119 - Added specific error message for duplicate targets.
1121 * docutils/transforms/universal.py:
1123 - Added FilterMessages transform (removes system messages below the
1124 verbosity threshold).
1125 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1126 to FinalCheckVisitor for application-specific handling of
1127 unresolvable references.
1128 - Added specific error message for duplicate targets.
1130 * docutils/writers/__init__.py:
1132 - Added assemble_parts method to the Writer class to allow for
1133 access to a documents individual parts.
1134 - Documented & set default for ``Writer.output`` attribute.
1136 * docutils/writers/html4css1.py:
1138 - Fixed unicode handling of attribute values (bug 760673).
1139 - Prevent duplication of "class" attribute values (bug report from
1141 - Improved table grid/border handling (prompted by report from Bob
1143 - Added support for table titles.
1144 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1146 - Added functionality to keep track of individual parts of a document
1147 and store them in a dictionary as the "parts" attribute of the writer.
1148 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1149 - Added proper support for the "scale" attribute of the "image"
1150 element. Contributed by Brent Cook.
1151 - Added ``--initial-header-level`` option.
1152 - Fixed bug: the body_pre_docinfo segment depended on there being a
1153 docinfo; if no docinfo, the document title was incorporated into
1154 the body segment. Adversely affected the publish_parts interface.
1156 * docutils/writers/latex2e.py:
1158 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1159 about a missing file.
1160 - Added options and support: ``--compound-enumerators``,
1161 ``--section-prefix-for-enumerators``, and
1162 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1164 - Added option ``--use-verbatim-when-possible``, to avoid
1165 problematic characters (eg, '~' in italian) in literal blocks.
1166 - It's now possible to use four section levels in the `book` and
1167 `report` LaTeX classes. The default `article` class still has
1170 * docs/config.txt: "Docutils Configuration Files", added to project.
1171 Moved config file entry descriptions from tools.txt.
1175 - Moved config file entry descriptions to config.txt.
1177 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1180 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1181 Text Roles", added to project.
1183 * spec/rst/reStructuredText.txt:
1185 - Added description of support for <angle-bracketed> complex option
1186 arguments to option lists.
1187 - Added subsections for indented and quoted literal blocks.
1189 * test: Continually adding & updating tests.
1191 - Added test/test_settings.py & test/data/config_*.txt support
1193 - Added test/test_writers/test_htmlfragment.py.
1195 * test/DocutilsTestSupport.py:
1197 - Refactored LaTeX publisher test suite/case class names to make
1198 testing other writers easier.
1199 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1200 to test the processing of HTML fragments which use the new
1201 publish_parts convenience function.
1203 * tools/buildhtml.py:
1205 - Added support for the "--prune" option.
1206 - Removed dependency on pep2html.py; plaintext PEPs no longer
1209 * tools/docutils.conf:
1211 - Updated for configuration file reorganization.
1213 * tools/rst2html.py:
1215 - copied from tools/html.py
1219 - added a 'scripts' section to configuration
1220 - added 'tools/rst2html.py' to the scripts section
1223 Release 0.3 (2003-06-24)
1224 ========================
1228 * Renamed "attribute" to "option" for directives/extensions.
1230 * Renamed transform method "transform" to "apply".
1232 * Renamed "options" to "settings" for runtime settings (as set by
1233 command-line options). Sometimes "option" (singular) became
1234 "settings" (plural). Some variations below:
1236 - document.options -> document.settings (stored in other objects as
1238 - option_spec -> settings_spec (not directives though)
1239 - OptionSpec -> SettingsSpec
1240 - cmdline_options -> settings_spec
1241 - relative_path_options -> relative_path_settings
1242 - option_default_overrides -> settings_default_overrides
1243 - Publisher.set_options -> Publisher.get_settings
1247 * COPYING.txt: Added "Public Domain Dedication".
1249 * FAQ.txt: Frequently asked questions, added to project.
1253 - Updated with PyPI Trove classifiers.
1254 - Conditional installation of third-party modules.
1256 * docutils/__init__.py:
1258 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1259 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1260 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1261 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1262 option and its effect on the PEP template & writer.
1263 - Bumped version to 0.2.4 due to changes to the PEP template &
1265 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1266 - Added ``TransformSpec`` class for new transform system.
1267 - Bumped version to 0.2.6 for API changes (renaming).
1268 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1269 convenience functions.
1270 - Added ``Component.component_type`` attribute.
1271 - Bumped version to 0.2.8 because of the internal parser switch from
1272 plain lists to the docutils.statemachine.StringList objects.
1273 - Bumped version to 0.2.9 because of the frontend.py API changes.
1274 - Bumped version to 0.2.10 due to changes to the project layout
1275 (third-party modules removed from the "docutils" package), and
1276 signature changes in ``io.Input``/``io.Output``.
1277 - Changed version to 0.3.0 for release.
1281 - Made ``publish()`` a bit more convenient.
1282 - Generalized ``Publisher.set_io``.
1283 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1284 parameters; improved its docstring.
1285 - Added ``publish_file()`` and ``publish_string()``.
1286 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1288 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1289 "--dump-transforms" hidden options.
1290 - Added ``Publisher.apply_transforms()`` method.
1291 - Added ``Publisher.set_components()`` method; support for
1292 ``publish_*()`` conveninece functions.
1293 - Moved config file processing to docutils/frontend.py.
1294 - Added support for exit status ("exit_level" setting &
1295 ``enable_exit`` parameter for Publisher.publish() and convenience
1298 * docutils/frontend.py:
1300 - Check for & exit on identical source & destination paths.
1301 - Fixed bug with absolute paths & "--config".
1302 - Set non-command-line defaults in ``OptionParser.__init__()``:
1303 ``_source`` & ``_destination``.
1304 - Distributed ``relative_path_settings`` to components; updated
1305 ``OptionParser.populate_from_components()`` to combine it all.
1306 - Require list of keys in ``make_paths_absolute`` (was implicit in
1307 global ``relative_path_settings``).
1308 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1309 "--dump-settings", and "--dump-transforms" hidden options.
1310 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1311 code, replaced with correct code.
1312 - Added validation functionality for config files.
1313 - Added "--error-encoding" option/setting, "_disable_config"
1315 - Added encoding validation; updated "--input-encoding" and
1316 "--output-encoding"; added "--error-encoding-error-handler" and
1317 "--output-encoding-error-handler".
1318 - Moved config file processing from docutils/core.py.
1319 - Updated ``OptionParser.populate_from_components`` to handle new
1320 ``SettingsSpec.settings_defaults`` dict.
1321 - Added support for "-" => stdin/stdout.
1322 - Added "exit_level" setting ("--exit" option).
1326 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1327 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1328 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1329 - ``FileOutput.write()`` now returns the encoded output string.
1330 - Try to get path/stream name automatically in ``FileInput`` &
1332 - Added defaults for source & destination paths.
1333 - Allow for Unicode I/O with an explicit "unicode" encoding.
1334 - Added ``Output.encode()``.
1335 - Removed dependency on runtime settings; pass encoding directly.
1336 - Recognize Unicode strings in ``Input.decode()``.
1337 - Added support for output encoding error handlers.
1339 * docutils/nodes.py:
1341 - Added "Invisible" element category class.
1342 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1343 modification during a traversal.
1344 - Added element classes: ``line_block``, ``generated``, ``address``,
1345 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1346 ``superscript``, ``subscript``, ``inline``
1347 - Added support for lists of nodes to ``Element.insert()``.
1348 - Fixed parent linking in ``Element.replace()``.
1349 - Added new abstract superclass ``FixedTextElement``; adds
1350 "xml:space" attribute.
1351 - Added support for "line" attribute of ``system_message`` nodes.
1352 - Added support for the observer pattern from ``utils.Reporter``.
1353 Added ``parse_messages`` and ``transform_messages`` attributes to
1354 ``document``, removed ``messages``. Added ``note_parse_message``
1355 and ``note_transform_message`` methods.
1356 - Added support for improved diagnostics:
1358 - Added "document", "source", and "line" internal attributes to
1359 ``Node``, set by ``Node.setup_child()``.
1360 - Converted variations on ``node.parent = self`` to
1361 ``self.setup_child(node)``.
1362 - Added ``document.current_source`` & ``.current_line``
1363 attributes, and ``.note_source`` observer method.
1364 - Changed "system_message" output to GNU-Tools format.
1366 - Added a "rawsource" attribute to the ``Text`` class, for text
1367 before backslash-escape resolution.
1368 - Support for new transform system.
1369 - Reworked ``pending`` element.
1370 - Fixed XML DOM bug (SF #660611).
1371 - Removed the ``interpeted`` element class and added
1372 ``title_reference``, ``abbreviation``, ``acronym``.
1373 - Made substitutions case-sensitive-but-forgiving; moved some code
1375 - Fixed Unicode bug on element attributes (report: William Dode).
1377 * docutils/optik.py: Removed from project; replaced with
1378 extras/optparse.py and extras/textwrap.py. These will be installed
1379 only if they're not already present in the Python installation.
1381 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1382 only if it's not already present in the Python installation.
1384 * docutils/statemachine.py:
1386 - Factored out ``State.add_initial_transitions()`` so it can be
1388 - Converted whitespace-specific "blank" and "indent" transitions
1389 from special-case code to ordinary transitions: removed
1390 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1391 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1392 ``ws_initial_transitions`` attributes.
1393 - Removed ``State.match_transition()`` after merging it into
1395 - Added ``StateCorrection`` exception.
1396 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1397 (moved ``TransitionCorrection`` support there too.)
1398 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1399 ``EOFError`` instead of ``IndexError``.
1400 - Added ``State.no_match`` method.
1401 - Added support for the Observer pattern, triggered by input line
1403 - Added ``strip_top`` parameter to
1404 ``StateMachineWS.get_first_known_indented``.
1405 - Made ``context`` a parameter to ``StateMachine.run()``.
1406 - Added ``ViewList`` & ``StringList`` classes;
1407 ``extract_indented()`` becomes ``StringList.get_indented()``.
1408 - Added ``StateMachine.insert_input()``.
1409 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1410 thanks to) Fred Drake.
1412 * docutils/utils.py:
1414 - Added a ``source`` attribute to Reporter instances and
1415 ``system_message`` elements.
1416 - Added an observer pattern to ``utils.Reporter`` to keep track of
1418 - Fixed bugs in ``relative_path()``.
1419 - Added support for improved diagnostics.
1420 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1421 - Added support for encoding Reporter stderr output, and encoding
1423 - Reporter keeps track of the highest level system message yet
1426 * docutils/languages: Fixed bibliographic field language lookups.
1428 * docutils/languages/es.py: Added to project; Spanish mappings by
1429 Marcelo Huerta San Martin.
1431 * docutils/languages/fr.py: Added to project; French mappings by
1434 * docutils/languages/it.py: Added to project; Italian mappings by
1437 * docutils/languages/sk.py: Added to project; Slovak mappings by
1440 * docutils/parser/__init__.py:
1442 - Added ``Parser.finish_parse()`` method.
1444 * docutils/parser/rst/__init__.py:
1446 - Added options: "--pep-references", "--rfc-references",
1447 "--tab-width", "--trim-footnote-reference-space".
1449 * docutils/parsers/rst/states.py:
1451 - Changed "title under/overline too short" system messages from INFO
1452 to WARNING, and fixed its insertion location.
1453 - Fixed enumerated list item parsing to allow paragraphs & section
1454 titles to begin with enumerators.
1455 - Converted system messages to use the new "line" attribute.
1456 - Fixed a substitution reference edge case.
1457 - Added support for "--pep-references" and "--rfc-references"
1458 options; reworked ``Inliner`` code to make customization easier.
1459 - Removed field argument parsing.
1460 - Added support for short section title over/underlines.
1461 - Fixed "simple reference name" regexp to ignore text like
1462 "object.__method__"; not an anonymous reference.
1463 - Added support for improved diagnostics.
1464 - Reworked directive API, based on Dethe Elza's contribution. Added
1465 ``Body.parse_directive()``, ``.parse_directive_options()``,
1466 ``.parse_directive_arguments()`` methods.
1467 - Added ``ExtensionOptions`` class, to parse directive options
1468 without parsing field bodies. Factored
1469 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1470 ``ExtensionOptions``.
1471 - Improved definition list term/classifier parsing.
1472 - Added warnings for unknown directives.
1473 - Renamed ``Stuff`` to ``Struct``.
1474 - Now flagged as errors: transitions at the beginning or end of
1475 sections, empty sections (except title), and empty documents.
1476 - Updated for ``statemachine.StringList``.
1477 - Enabled recognition of schemeless email addresses in targets.
1478 - Added support for embedded URIs in hyperlink references.
1479 - Added backslash-escapes to inline markup end-string suffix.
1480 - Added support for correct interpreted text processing.
1481 - Fixed nested title parsing (topic, sidebar directives).
1482 - Added special processing of backslash-escaped whitespace (idea
1483 from David Abrahams).
1484 - Made substitutions case-sensitive-but-forgiving; moved some code
1485 to ``docutils.nodes``.
1486 - Added support for block quote attributions.
1487 - Added a kludge to work-around a conflict between the bubble-up
1488 parser strategy and short titles (<= 3 char-long over- &
1489 underlines). Fixes SF bug #738803 "infinite loop with multiple
1490 titles" submitted by Jason Diamond.
1491 - Added explicit interpreted text roles for standard inline markup:
1492 "emphasis", "strong", "literal".
1493 - Implemented "superscript" and "subscript" interpreted text roles.
1494 - Added initial support for "abbreviation" and "acronym" roles;
1496 - Added support for "--trim-footnote-reference-space" option.
1497 - Optional space before colons in directives & hyperlink targets.
1499 * docutils/parsers/rst/tableparser.py:
1501 - Fixed a bug that was producing unwanted empty rows in "simple"
1503 - Detect bad column spans in "simple" tables.
1505 * docutils/parsers/rst/directives: Updated all directive functions to
1508 * docutils/parsers/rst/directives/__init__.py:
1510 - Added ``flag()``, ``unchanged()``, ``path()``,
1511 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1512 directive option helper functions.
1513 - Added warnings for unknown directives.
1514 - Return ``None`` for missing directives.
1515 - Added ``register_directive()``, thanks to William Dode and Paul
1518 * docutils/parsers/rst/directives/admonitions.py:
1520 - Added "admonition" directive.
1522 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1523 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1524 "parsed-literal", "rubric", "epigraph", "highlights" and
1525 "pull-quote" directives.
1527 * docutils/parsers/rst/directives/images.py:
1529 - Added an "align" attribute to the "image" & "figure" directives
1530 (by Adam Chodorowski).
1531 - Added "class" option to "image", and "figclass" to "figure".
1533 * docutils/parsers/rst/directives/misc.py:
1535 - Added "include", "raw", and "replace" directives, courtesy of
1537 - Added "unicode" and "class" directives.
1539 * docutils/parsers/rst/directives/parts.py:
1541 - Added the "sectnum" directive; by Dmitry Jemerov.
1542 - Added "class" option to "contents" directive.
1544 * docutils/parsers/rst/directives/references.py: Added to project.
1545 Contains the "target-notes" directive.
1547 * docutils/parsers/rst/languages/__init__.py:
1549 - Return ``None`` from get_language() for missing language modules.
1551 * docutils/parsers/rst/languages/de.py: Added to project; German
1552 mappings by Engelbert Gruber.
1554 * docutils/parsers/rst/languages/en.py:
1556 - Added interpreted text roles mapping.
1558 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1559 mappings by Marcelo Huerta San Martin.
1561 * docutils/parsers/rst/languages/fr.py: Added to project; French
1562 mappings by William Dode.
1564 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1565 mappings by Nicola Larosa.
1567 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1568 mappings by Miroslav Vasko.
1570 * docutils/readers/__init__.py:
1572 - Added support for the observer pattern from ``utils.Reporter``, in
1573 ``Reader.parse`` and ``Reader.transform``.
1574 - Removed ``Reader.transform()`` method.
1575 - Added default parameter values to ``Reader.__init__()`` to make
1576 instantiation easier.
1577 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1579 * docutils/readers/pep.py:
1581 - Added the ``peps.TargetNotes`` transform to the Reader.
1582 - Removed PEP & RFC reference detection code; moved to
1583 parsers/rst/states.py as options (enabled here by default).
1584 - Added support for pre-acceptance PEPs (no PEP number yet).
1585 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1588 * docutils/readers/python: Python Source Reader subpackage added to
1589 project, including preliminary versions of:
1592 - moduleparser.py: Parser for Python modules.
1594 * docutils/transforms/__init__.py:
1596 - Added ``Transformer`` class and completed transform reform.
1597 - Added unknown_reference_resolvers list for each transformer. This list holds
1598 the list of functions provided by each component of the transformer that
1599 help resolve references.
1601 * docutils/transforms/frontmatter.py:
1603 - Improved support for generic fields.
1604 - Fixed bibliographic field language lookups.
1606 * docutils/transforms/misc.py: Added to project. Miscellaneous
1609 * docutils/transforms/parts.py:
1611 - Moved the "id" attribute from TOC list items to the references
1612 (``Contents.build_contents()``).
1613 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1614 - Added "class" attribute support to ``Contents``.
1616 * docutils/transforms/peps.py:
1618 - Added ``mask_email()`` function, updating to pep2html.py's
1620 - Linked "Content-Type: text/x-rst" to PEP 12.
1621 - Added the ``TargetNotes`` PEP-specific transform.
1622 - Added ``TargetNotes.cleanup_callback``.
1623 - Added title check to ``Headers``.
1625 * docutils/transforms/references.py:
1627 - Added the ``TargetNotes`` generic transform.
1628 - Split ``Hyperlinks`` into multiple transforms.
1629 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1630 - Added check for circular indirect references.
1631 - Made substitutions case-sensitive-but-forgiving.
1633 * docutils/transforms/universal.py:
1635 - Added support for the "--expose-internal-attributes" option.
1636 - Removed ``Pending`` transform classes & data.
1638 * docutils/writers/__init__.py:
1640 - Removed ``Writer.transform()`` method.
1642 * docutils/writers/docutils-xml.py:
1644 - Added XML and doctype declarations.
1645 - Added "--no-doctype" and "--no-xml-declaration" options.
1647 * docutils/writers/html4css1.py:
1649 - "name" attributes only on these tags: a, applet, form, frame,
1651 - Added "name" attribute to <a> in section titles for Netscape 4
1652 support (bug report: Pearu Peterson).
1653 - Fixed targets (names) on footnote, citation, topic title,
1654 problematic, and system_message nodes (for Netscape 4).
1655 - Changed field names from "<td>" to "<th>".
1656 - Added "@" to "@" encoding to thwart address harvesters.
1657 - Improved the vertical whitespace optimization; ignore "invisible"
1658 nodes (targets, comments, etc.).
1659 - Improved inline literals with ``<span class="pre">`` around chunks
1660 of text and `` `` for runs of spaces.
1661 - Improved modularity of output; added ``self.body_pre_docinfo`` and
1662 ``self.docinfo`` segments.
1663 - Added support for "line_block", "address" elements.
1664 - Improved backlinks (footnotes & system_messages).
1665 - Improved system_message output.
1666 - Redefined "--stylesheet" as containing an invariant URL, used
1667 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
1669 - Added "--footnote-references" option (superscript or brackets).
1670 - Added "--compact-lists" and "--no-compact-lists" options.
1671 - Added "--embed-stylesheet" and "--link-stylesheet" options;
1672 factored out ``HTMLTranslator.get_stylesheet_reference()``.
1673 - Improved field list rendering.
1674 - Added Docutils version to "generator" meta tag.
1675 - Fixed a bug with images; they must be inline, so wrapped in <p>.
1676 - Improved layout of <pre> HTML source.
1677 - Fixed attribute typo on <colspec>.
1678 - Refined XML prologue.
1679 - Support for no stylesheet.
1680 - Removed "interpreted" element support.
1681 - Added support for "title_reference", "sidebar", "attribution",
1682 "rubric", and generic "admonition" elements.
1683 - Added "--attribution" option.
1684 - Added support for "inline", "subscript", "superscript" elements.
1685 - Added initial support for "abbreviation" and "acronym";
1688 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
1692 - Double quotes in literal blocks (special treatment for de/ngerman).
1693 - Added '--hyperlink-color' option ('0' turns off coloring of links).
1694 - Added "--attribution" option.
1695 - Right align attributions.
1697 * docutils/writers/pep_html.py:
1699 - Parameterized output encoding in PEP template.
1700 - Reworked substitutions from ``locals()`` into ``subs`` dict.
1701 - Redefined "--pep-stylesheet" as containing an invariant URL, used
1702 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
1704 - Added an override on the "--footnote-references" option.
1705 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
1706 - Added Docutils version to "generator" meta tag.
1707 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1711 - Added a "silent" setting for ``buildhtml.py``.
1712 - Added a "Getting Help" section.
1713 - Rearranged the structure.
1714 - Kept up to date, with new settings, command-line options etc.
1715 - Added section for ``rst2latex.py`` (Engelbert Gruber).
1716 - Converted settings table into a definition list.
1718 * docs/rst/quickstart.txt:
1720 - Added a table of contents.
1721 - Added feedback information.
1722 - Added mention of minimum section title underline lengths.
1723 - Removed the 4-character minimum for section title underlines.
1725 * docs/rst/quickref.html:
1727 - Added a "Getting Help" section.
1728 - Added a style to make section title backlinks more subtle.
1729 - Added mention of minimum section title underline lengths.
1730 - Removed the 4-character minimum for section title underlines.
1732 * extras: Directory added to project; contains third-party modules
1733 that Docutils depends on (optparse, textwrap, roman). These are
1734 only installed if they're not already present.
1736 * licenses: Directory added to project; contains copies of license
1737 files for non-public-domain files.
1741 - Changed the focus. It's about DTD elements: structural
1742 relationships, semantics, and external (public) attributes. Not
1743 about the element class library.
1744 - Moved some implementation-specific stuff into ``docutils.nodes``
1746 - Wrote descriptions of all common attributes and parameter
1747 entities. Filled in introductory material.
1748 - Working through the element descriptions: 55 down, 37 to go.
1749 - Removed "Representation of Horizontal Rules" to
1750 spec/rst/alternatives.txt.
1752 * spec/docutils.dtd:
1754 - Added "generated" inline element.
1755 - Added "line_block" body element.
1756 - Added "auto" attribute to "title".
1757 - Changed content models of "literal_block" and "doctest_block" to
1759 - Added ``%number;`` attribute type parameter entity.
1760 - Changed ``%structural.elements;`` to ``%section.elements``.
1761 - Updated attribute types; made more specific.
1762 - Added "address" bibliographic element.
1763 - Added "line" attribute to ``system_message`` element.
1764 - Removed "field_argument" element; "field_name" may contain
1765 multiple words and whitespace.
1766 - Changed public identifier to docutils.sf.net.
1767 - Removed "interpreted" element; added "title_reference",
1768 "abbreviation", "acronym".
1769 - Removed "refuri" attribute from "footnote_reference" and
1770 "citation_reference".
1771 - Added "sidebar", "rubric", "attribution", "admonition",
1772 "superscript", "subscript", and "inline" elements.
1774 * spec/pep-0256.txt: Converted to reStructuredText & updated.
1776 * spec/pep-0257.txt: Converted to reStructuredText & updated.
1778 * spec/pep-0258.txt: Converted to reStructuredText & updated.
1780 * spec/semantics.txt: Updated with text from a Doc-SIG response to
1783 * spec/transforms.txt: Added to project.
1785 * spec/howto: Added subdirectory, for developer how-to docs.
1787 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
1788 Elza, edited & extended by David Goodger.
1790 * spec/howto/i18n.txt: Docutils Internationalization. Added to
1793 * spec/rst/alternatives.txt:
1795 - Added "Doctree Representation of Transitions" from
1797 - Updated "Inline External Targets" & closed the debate.
1798 - Added ideas for interpreted text syntax extensions.
1799 - Added "Nested Inline Markup" section.
1801 * spec/rst/directives.txt:
1803 - Added directives: "topic", "sectnum", "target-notes",
1804 "line-block", "parsed-literal", "include", "replace", "sidebar",
1805 "admonition", "rubric", "epigraph", "highlights", "unicode" and
1807 - Formalized descriptions of directive details.
1808 - Added an "align" attribute to the "image" & "figure" directives
1809 (by Adam Chodorowski).
1810 - Added "class" options to "topic", "sidebar", "line-block",
1811 "parsed-literal", "contents", and "image"; and "figclass" to
1814 * spec/rst/interpreted.txt: Added to project. Descriptions of
1815 interpreted text roles.
1817 * spec/rst/introduction.txt:
1819 - Added pointers to material for new users.
1821 * spec/rst/reStructuredText.txt:
1823 - Disambiguated comments (just add a newline after the "::").
1824 - Updated enumerated list description; added a discussion of the
1825 second-line validity checking.
1826 - Updated directive description.
1827 - Added a note redirecting newbies to the user docs.
1828 - Expanded description of inline markup start-strings in non-markup
1830 - Removed field arguments and made field lists a generic construct.
1831 - Removed the 4-character minimum for section title underlines.
1832 - Clarified term/classifier delimiter & inline markup ambiguity
1834 - Added "Embedded URIs".
1835 - Updated "Interpreted Text" section.
1836 - Added "Character-Level Inline Markup" section.
1838 * test: Continually adding & updating tests.
1840 - Moved test/test_rst/ to test/test_parsers/test_rst/.
1841 - Moved test/test_pep/ to test/test_readers/test_pep/.
1842 - Added test/test_readers/test_python/.
1843 - Added test/test_writers/ (Engelbert Gruber).
1847 - Made the ``locale.setlocale()`` calls in front ends
1850 * tools/buildhtml.py:
1852 - Added "--silent" option.
1853 - Fixed bug with absolute paths & "--config".
1854 - Updated for new I/O classes.
1855 - Added some exception handling.
1856 - Separated publishers' setting defaults; prevents interference.
1857 - Updated for new ``publish_file()`` convenience function.
1859 * tools/pep-html-template:
1861 - Allow for "--embed-stylesheet".
1862 - Added Docutils version to "generator" meta tag.
1863 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1864 - Conform to XHTML spec.
1866 * tools/pep2html.py:
1868 - Made ``argv`` a parameter to ``main()``.
1869 - Added support for "Content-Type:" header & arbitrary PEP formats.
1870 - Linked "Content-Type: text/plain" to PEP 9.
1871 - Files skipped (due to an error) are not pushed onto the server.
1872 - Updated for new I/O classes.
1873 - Added ``check_requirements()`` & ``pep_type_error()``.
1874 - Added some exception handling.
1875 - Updated for new ``publish_string()`` convenience function.
1876 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1878 * tools/quicktest.py:
1880 - Added "-V"/"--version" option.
1882 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
1884 * tools/unicode2rstsubs.py: Added to project. Produces character
1885 entity files (reSructuredText substitutions) from the MathML master
1888 * tools/editors: Support code for editors, added to project. Contains
1889 ``emacs/restructuredtext.el``.
1891 * tools/stylesheets/default.css: Moved into the stylesheets directory.
1893 - Added style for chunks of inline literals.
1894 - Removed margin for first child of table cells.
1895 - Right-aligned field list names.
1896 - Support for auto-numbered section titles in TOCs.
1897 - Increased the size of inline literals (<tt>) in titles.
1898 - Restored the light gray background for inline literals.
1899 - Added support for "line_block" elements.
1900 - Added style for "address" elements.
1901 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
1902 - Improved field list rendering.
1903 - Vertical whitespace improvements.
1904 - Removed "a.target" style.
1906 * tools/stylesheets/pep.css:
1908 - Fixed nested section margins.
1909 - Other changes parallel those of ``../default.css``.
1912 Release 0.2 (2002-07-31)
1913 ========================
1917 - The word "component" was being used ambiguously. From now on,
1918 "component" will be used to mean "Docutils component", as in Reader,
1919 Writer, Parser, or Transform. Portions of documents (Table of
1920 Contents, sections, etc.) will be called "document parts".
1921 - Did a grand renaming: a lot of ``verylongnames`` became
1922 ``very_long_names``.
1923 - Cleaned up imports: no more relative package imports or
1924 comma-separated lists of top-level modules.
1925 - Added support for an option values object which carries default
1926 settings and overrides (from command-line options and library use).
1927 - Added internal Unicode support, and support for both input and
1929 - Added support for the ``docutils.io.IO`` class & subclasses.
1933 * docutils/__init__.py:
1935 - Added ``ApplicationError`` and ``DataError``, for use throughout
1937 - Added ``Component`` base class for Docutils components; implements
1938 the ``supports`` method.
1939 - Added ``__version__`` (thus, ``docutils.__version__``).
1943 - Removed many keyword parameters to ``Publisher.__init__()`` and
1944 ``publish()``; bundled into an option values object. Added
1945 "argv", "usage", "description", and "option_spec" parameters for
1946 command-line support.
1947 - Added ``Publisher.process_command_line()`` and ``.set_options()``
1949 - Reworked I/O model for ``docutils.io`` wrappers.
1950 - Updated ``Publisher.set_options()``; now returns option values
1952 - Added support for configuration files (/etc/docutils.conf,
1953 ./docutils.conf, ~/.docutils).
1954 - Added ``Publisher.setup_option_parser()``.
1955 - Added default usage message and description.
1957 * docutils/frontend.py: Added to project; support for front-end
1958 (command-line) scripts. Option specifications may be augmented by
1959 components. Requires Optik (http://optik.sf.net/) for option
1960 processing (installed locally as docutils/optik.py).
1962 * docutils/io.py: Added to project; uniform API for a variety of input
1965 * docutils/nodes.py:
1967 - Added ``TreeCopyVisitor`` class.
1968 - Added a ``copy`` method to ``Node`` and subclasses.
1969 - Added a ``SkipDeparture`` exception for visitors.
1970 - Renamed ``TreePruningException`` from ``VisitorException``.
1971 - Added docstrings to ``TreePruningException``, subclasses, and
1973 - Improved docstrings.
1974 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
1975 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
1977 - Added ``decoration``, ``header``, and ``footer`` node classes, and
1978 ``PreDecorative`` mixin.
1979 - Reworked the name/id bookkeeping; to ``document``, removed
1980 ``explicit_targets`` and ``implicit_targets`` attributes, added
1981 ``nametypes`` attribute and ``set_name_id_map`` method.
1982 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
1984 - Added ``document.has_name()`` method.
1985 - Fixed DOM generation for list-attributes.
1986 - Added category class ``Labeled`` (used by footnotes & citations).
1987 - Added ``Element.set_class()`` method (sets "class" attribute).
1989 * docutils/optik.py: Added to project. Combined from the Optik
1990 package, with added option groups and other modifications. The use
1991 of this module is probably only temporary.
1993 * docutils/statemachine.py:
1995 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
1996 - Added underscores to improve many awkward names.
1997 - In ``string2lines()``, changed whitespace normalizing translation
1998 table to regexp; restores Python 2.0 compatibility with Unicode.
2000 * docutils/urischemes.py:
2002 - Filled in some descriptions.
2003 - Added "shttp" scheme.
2005 * docutils/utils.py:
2007 - Added ``clean_rcs_keywords`` function (moved from
2008 docutils/transforms/frontmatter.py
2009 ``DocInfo.filter_rcs_keywords``).
2010 - Added underscores to improve many awkward names.
2011 - Changed names of Reporter's thresholds:
2012 warning_level -> report_level; error_level -> halt_level.
2013 - Moved ``utils.id()`` to ``nodes.make_id()``.
2014 - Added ``relative_path(source, target)``.
2016 * docutils/languages/de.py: German mappings; added to project. Thanks
2017 to Gunnar Schwant for the translations.
2019 * docutils/languages/en.py: Added "Dedication" bibliographic field
2022 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2025 * docutils/parsers/rst/states.py:
2027 - Added underscores to improve many awkward names.
2028 - Added RFC-2822 header support.
2029 - Extracted the inline parsing code from ``RSTState`` to a separate
2030 class, ``Inliner``, which will allow easy subclassing.
2031 - Made local bindings for ``memo`` container & often-used contents
2032 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2033 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2034 - Added ``MarkupMismatch`` exception; for late corrections.
2035 - Added ``-/:`` characters to inline markup's start string prefix,
2036 ``/`` to end string suffix.
2037 - Fixed a footnote bug.
2038 - Fixed a bug with literal blocks.
2039 - Applied patch from Simon Budig: simplified regexps with symbolic
2040 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2041 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2042 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2043 - Allowed non-ASCII in "simple names" (directive names, field names,
2045 - Converted ``Inliner.patterns.initial`` to be dynamically built
2046 from parts with ``build_regexp()`` function.
2047 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2048 - Updated docstrings.
2049 - Changed "table" to "grid_table"; added "simple_table" support.
2051 * docutils/parsers/rst/tableparser.py:
2053 - Changed ``TableParser`` to ``GridTableParser``.
2054 - Added ``SimpleTableParser``.
2055 - Refactored naming.
2057 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2058 a fallback language for directive names.
2060 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2061 directive to use a ``pending`` element, used only by HTML writers.
2063 * docutils/parsers/rst/directives/parts.py: Renamed from
2066 - Added "backlinks" attribute to "contents" directive.
2068 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2069 project by Adam Chodorowski.
2071 * docutils/readers/__init__.py: Gave Readers more control over
2072 choosing and instantiating Parsers.
2074 * docutils/readers/pep.py: Added to project; for PEP processing.
2076 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2077 requires a ``component`` parameter.
2079 * docutils/transforms/components.py: Added to project; transforms
2080 related to Docutils components.
2082 * docutils/transforms/frontmatter.py:
2084 - In ``DocInfo.extract_authors``, check for a single "author" in an
2085 "authors" group, and convert it to a single "author" element.
2086 - Added support for "Dedication" and generic bibliographic fields.
2088 * docutils/transforms/peps.py: Added to project; PEP-specific.
2090 * docutils/transforms/parts.py: Renamed from old components.py.
2092 - Added filter for `Contents`, to use alt-text for inline images,
2093 and to remove inline markup that doesn't make sense in the ToC.
2094 - Added "name" attribute to TOC topic depending on its title.
2095 - Added support for optional TOC backlinks.
2097 * docutils/transforms/references.py: Fixed indirect target resolution
2098 in ``Hyperlinks`` transform.
2100 * docutils/transforms/universal.py:
2102 - Changed ``Messages`` transform to properly filter out system
2103 messages below the warning threshold.
2104 - Added ``Decorations`` transform (support for ``--generator``,
2105 ``--date``, ``--time``, ``--source-link`` options).
2107 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2108 Engelbert Gruber's PDF writer.
2110 * docutils/writers/html4css1.py:
2112 - Made XHTML-compatible (switched to lowercase element & attribute
2113 names; empty tag format).
2114 - Escape double-dashes in comment text.
2115 - Improved boilerplate & modularity of output.
2116 - Exposed modular output in Writer class.
2117 - Added a "generator" meta tag to <head>.
2118 - Added support for the ``--stylesheet`` option.
2119 - Added support for ``decoration``, ``header``, and ``footer``
2121 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2122 translation table to regexp; restores Python 2.0 compatibility
2124 - Added the translator class as instance variable to the Writer, to
2125 make it easily subclassable.
2126 - Improved option list spacing (thanks to Richard Jones).
2127 - Modified field list output.
2128 - Added backlinks to footnotes & citations.
2129 - Added percentage widths to "<col>" tags (from colspec).
2130 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2131 "<span>" changed to "<var>".
2132 - Inline literals: "<code>" changed to "<tt>".
2133 - Many changes to optimize vertical space: compact simple lists etc.
2134 - Add a command-line options & directive attributes to control TOC
2135 and footnote/citation backlinks.
2136 - Added support for optional footnote/citation backlinks.
2137 - Added support for generic bibliographic fields.
2138 - Identify backrefs.
2139 - Relative URLs for stylesheet links.
2141 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2142 PEPs (subclass of ``html4css1.Writer``).
2144 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2146 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2147 of the Docutils internal doctree in XML.
2149 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2153 - Changed the title to "The Docutils Document Tree".
2154 - Added "Hyperlink Bookkeeping" section.
2156 * spec/docutils.dtd:
2158 - Added ``decoration``, ``header``, and ``footer`` elements.
2159 - Brought ``interpreted`` element in line with the parser: changed
2160 attribute "type" to "role", added "position".
2161 - Added support for generic bibliographic fields.
2163 * spec/notes.txt: Continual updates. Added "Project Policies".
2165 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2168 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2170 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2171 mailing list discussions.
2173 * spec/pep-0287.txt:
2175 - Renamed to "reStructuredText Docstring Format".
2177 - Reworked Q&A as an enumerated list.
2178 - Converted to reStructuredText format.
2180 * spec/pysource.dtd:
2182 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2184 * spec/pysource.txt: Removed from project. Moved much of its contents
2187 * spec/rst/alternatives.txt:
2189 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2190 - Added "Inline External Targets" section.
2192 * spec/rst/directives.txt:
2194 - Added "backlinks" attribute to "contents" directive.
2196 * spec/rst/problems.txt:
2198 - Updated the Enumerated List Markup discussion.
2199 - Added new alternative table markup syntaxes.
2201 * spec/rst/reStructuredText.txt:
2203 - Clarified field list usage.
2204 - Updated enumerated list description.
2205 - Clarified purpose of directives.
2206 - Added ``-/:`` characters to inline markup's start string prefix,
2207 ``/`` to end string suffix.
2208 - Updated "Authors" bibliographic field behavior.
2209 - Changed "inline hyperlink targets" to "inline internal targets".
2210 - Added "simple table" syntax to supplement the existing but
2211 newly-renamed "grid tables".
2212 - Added cautions for anonymous hyperlink use.
2213 - Added "Dedication" and generic bibliographic fields.
2215 * test: Made test modules standalone (subdirectories became packages).
2217 * test/DocutilsTestSupport.py:
2219 - Added support for PEP extensions to reStructuredText.
2220 - Added support for simple tables.
2221 - Refactored naming.
2223 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2225 - Now supports true packages containing test modules
2226 (``__init__.py`` files required); fixes duplicate module name bug.
2228 * test/test_pep/: Subpackage added to project; PEP testing.
2230 * test/test_rst/test_SimpleTableParser.py: Added to project.
2234 - Updated html.py and publish.py front-end tools to use the new
2235 command-line processing facilities of ``docutils.frontend``
2236 (exposed in ``docutils.core.Publisher``), reducing each to just a
2238 - Added ``locale.setlocale()`` calls to front-end tools.
2240 * tools/buildhtml.py: Added to project; batch-generates .html from all
2241 the .txt files in directories and subdirectories.
2243 * tools/default.css:
2245 - Added support for ``header`` and ``footer`` elements.
2246 - Added styles for "Dedication" topics (biblio fields).
2248 * tools/docutils.conf: A configuration file; added to project.
2250 * tools/docutils-xml.py: Added to project.
2252 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2254 * tools/pep-html-template: Added to project.
2256 * tools/pep2html.py: Added to project from Python (nondist/peps).
2257 Added support for Docutils (reStructuredText PEPs).
2259 * tools/quicktest.py:
2261 - Added the ``--attributes`` option, hacked a bit.
2262 - Added a second command-line argument (output file); cleaned up.
2264 * tools/stylesheets/: Subdirectory added to project.
2266 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2269 Release 0.1 (2002-04-20)
2270 ========================
2272 This is the first release of Docutils, merged from the now inactive
2273 reStructuredText__ and `Docstring Processing System`__ projects. For
2274 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2275 `DPS HISTORY`__ files.
2277 __ http://structuredtext.sourceforge.net/
2278 __ http://docstring.sourceforge.net/
2279 __ http://structuredtext.sourceforge.net/HISTORY.html
2280 __ http://docstring.sourceforge.net/HISTORY.html
2282 General changes: renamed 'dps' package to 'docutils'; renamed
2283 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2284 the test suites (reStructuredText's test/test_states renamed to
2285 test/test_rst); and all modifications required to make it all work.
2287 * docutils/parsers/rst/states.py:
2289 - Improved diagnostic system messages for missing blank lines.
2290 - Fixed substitution_reference bug.
2296 indent-tabs-mode: nil
2297 sentence-end-double-space: t