1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: goodger@python.org
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
22 - Prepare for python 3.0: Node.__nonzero__ returns True instead of 1.
23 - Prepare for python 3.0: use os.walk instead os.path.walk.
24 - Prepare for python 3.0: minimize "types" module where possible.
25 - Apply [ 1878977 ] make_id(): deaccent characters.
26 - Backwards-compatible changes to remove python2.6 -3 deprecation warnings
27 - Text nodes now subclass unicode rather than UserString
28 (which is gone in python 3.0)
29 - Apply [ 1719345 ] Galician translation
30 - Apply [ 1905741 ] polish-translation
34 - Added ``Element.__contains__`` method, for the in-operator.
36 * docutils/parsers/rst/states.py:
38 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
39 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
40 " " (non-breaking space), and "¡ ¿" openers.
44 - Added ``get_stylesheet_list`` function.
46 * docutils/writers/html4css1/__init__.py:
48 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
49 separated list of stylesheets.
51 * docutils/writers/newlatex2e/__init__.py:
53 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
55 * docutils/writers/latex2e/__init__.py:
57 - Add option ``--use-titlepage-env``.
58 - Add option ``--embed-stylesheet``.
59 - Apply [ 1474017 ] image vertical alignment is reversed.
60 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
61 - Fix: for spanish ``~n`` is ``n`` with tilde above, change to ``~{}n``.
62 - Change: has_key for dictionaries (not Nodes) to in-operator.
63 - Merge adjacent citations into one latex cite command.
64 - Failsave implementation of custom roles.
66 * docs/ref/rst/restructuredtext.txt:
68 - Documented Unicode characters allowed as inline markup openers,
69 closers, and delimiters.
72 Release 0.5 (2008-06-25)
73 ========================
75 * docutils/languages/he.py: Added to project: Hebrew mappings by
78 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
79 mappings by Meir Kriheli.
81 * docutils/frontend.py:
83 - Configuration files are now assumed and required to be
85 - Paths of applied configuration files are now recorded in the
86 runtime setting ``_config_files`` (accessible via
88 - Added ``--strip-elements-with-class`` and ``--strip-class``
89 options (``strip_elements_with_classes`` and ``strip_classes``
94 - Added code to determine the input encoding from data: encoding
95 declarations or the presence of byte order marks (UTF-8 & UTF-16).
96 - Added support for IronPython 1.0.
100 - Added ``document.__getstate__`` method, for pickling.
102 * docutils/parsers/rst/states.py:
104 - Allow ``+`` and ``:`` in reference names.
105 - Unquoted targets beginning with an underscore (``.. __target:
106 URI``) are no longer accepted.
107 - Added support for multiple attributions in a physical block quote
108 (indented text block), dividing it into multiple logical block
110 - Added support for unicode bullets in bullet lists: "•", "‣", and
112 - Added support for new object-oriented directive interface,
113 retaining compatibility to the old functional interface.
114 - Added support for throwing ``DirectiveError``'s from within
117 * docutils/parsers/rst/__init__.py:
119 - Added ``Directive`` base class.
120 - Added ``DirectiveError`` base class.
121 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
124 * docutils/parsers/directives/:
126 - Refactored all reStructuredText directives to use the new
127 object-oriented directive interface. Errors are now (mostly)
128 thrown using the new ``DirectiveError`` class.
130 * docutils/parsers/directives/misc.py:
132 - Added ``start-after`` and ``end-before`` options to ``include``
133 directive; thanks to Stefan Rank.
135 * docutils/transforms/universal.py:
137 - Added ``StripClassesAndElements`` transform to remove from the
138 document tree all elements with classes in
139 ``settings.strip_elements_with_classes`` and all "classes"
140 attribute values in ``self.document.settings.strip_classes``.
142 * docutils/transforms/writer_aux.py:
144 - Added ``Admonitions`` transform to transform specific admonitions
145 (like ``note``, ``warning``, etc.) into generic admonitions with a
148 * docutils/writers/html4css1/__init__.py:
150 - Moved template functionality from the PEP/HTML writer here.
151 - Expanded the fragments available in the ``parts`` attribute.
152 - Moved ``id`` attributes from titles to surrounding ``div``
154 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
155 universally supported now).
156 - ``template.txt`` is now opened in text mode instead of binary mode
157 (to ensure Windows compatibility).
158 - ``a`` elements now have an "internal" or "external" class,
159 depending on reference type.
161 * docutils/writers/html4css1/template.txt: Added to project.
163 * docutils/writers/pep_html/:
165 - Moved template functionality to the HTML writer.
167 * docutils/writers/s5_html/__init__.py:
169 - Added ``view_mode`` & ``hidden_controls`` settings
170 (``--view-mode`` & ``--hidden-controls/--visible-controls``
173 * docutils/writers/latex2e/__init__.py:
175 - Add ``--literal-block-env``
176 - Fix: escaping ``%`` in href urls.
177 - Move usepackage hyperref after stylesheet inclusion.
178 - Fix: scrartcl does not have chapter but scrreprt.
179 - Add newline after ``\end{verbatim}``.
180 - Merge smaller differences from latex2e_adaptive_preamble.
181 - Add ``use-part-section``.
182 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
183 - Using leavemode option_list no longer needs to check if parent
184 is a definition list.
185 - Append ``\leavemode`` to definition list terms.
186 - No longer write visit\_/depart_definition_list_item comments to
188 - Table column width with 3 decimal places.
189 - Add table stubs support (boldfont).
190 - Add assemble_parts to writer.
191 - Add simply support for nested tables.
192 - Fix verbatim in tables if use-verbatim-when-possible.
193 - Use section commands down to subparagraph.
194 - Put ensuremath around some latin1 chars.
195 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
196 - New option ``--use-bibtex=style,db1,db2``.
197 - New option ``--reference-label`` to allow usage of LaTeX ref for
198 labels in section references.
199 - Add a label after every section to support sectionnumbers as reference
201 - Fix: bug# 1605376 rst2latex: bad options group list
202 - Remove inactive code for use_optionlist_for_option_list.
203 - Remove latex comments from option_list output.
204 - Fix: bug# 1612270 double qoutes in italian literal.
205 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
206 - Add option --use-latex-abstract.
207 - Image width unit ``px`` is translated to ``pt``.
208 - Add image height support.
209 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
211 - Fix: Do not escape underscores in citation reference labels if
212 use-latex-citations is set.
213 - Use centering instead of center for figure contents, to avoid vertical
215 - Recognize table class: borderless, nolines, booktabs, standard.
216 - Fix: Renaming contents section does not work with latex writer; SF
218 - Applied patch for custom roles with classes from Edward Loper.
219 - Fixed bug that caused crashes with more than 256 lists.
221 * docutils/writers/pep_html/__init__.py:
223 - Changed to support new python.org website structure and
226 * docs/howto/security.txt: "Deploying Docutils Securely", added to
229 * tools/buildhtml.py:
231 -- Added ``ignore`` setting to exclude a list of shell patterns
232 (default: ``.svn:CVS``).
234 * tools/editors/emacs/rst.el:
236 - Changed license to "GPL".
237 - Added ``rst-straighten-decorations`` function.
238 - The ``compile`` module is now always loaded.
239 - Added ``rst-toggle-line-block`` function.
240 - Headings consisting only of non-ASCII characters are now
241 recognized by ``rst-toc`` and ``rst-adjust``.
242 - Added font-lock support for multi-line comments where the first
243 comment line is empty.
244 - Added ``(require 'font-lock)``.
248 - Provide descriptive error message if distutils is missing.
251 Release 0.4 (2006-01-09)
252 ========================
256 - Updated the project policies for trunk/branch development &
259 * docutils/__init__.py:
261 - Added ``__version_details__`` attribute to describe code source
262 (repository/snapshot/release).
263 - Replaced ``default_transforms`` attribute of TransformSpec with
264 ``get_transforms()`` method.
268 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
269 functions, for document tree extraction and reprocessing.
273 - Added ``DocTreeInput`` class, for reprocessing existing documents.
274 - Added support for non-Unicode (e.g. binary) writer output.
278 - Re-introduced ``Targetable.indirect_reference_name``, for
279 MoinMoin/reST compatibility (removed in r3124/r3129).
280 - Added ``serial_escape`` function; escapes string values that are
281 elements of a list, for serialization. Modified Docutils-XML
282 writing (``Element._dom_node``) and pseudo-XML writing
283 (``Element.starttag``) to use ``serial_escape``.
284 - Added ``Node.deepcopy()`` method.
285 - Removed the internal lists ``document.substitution_refs``,
286 ``document.anonymous_refs``, and ``document.anonymous_targets``.
287 - Added a "container" element.
288 - Fixed bug where values of list-valued attributes of elements
289 originating from custom interpreted text roles (i.e., with custom
290 classes) were being shared between element instances. Reported by
293 * docutils/statemachine.py:
295 - Added trailing whitespace stripping to ``string2lines()``.
296 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
297 Asian double-width character support.
301 - Added ``east_asian_column_width()`` for double-width character
304 * docutils/languages/ja.py: Added to project: Japanese mappings by
307 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
308 mappings by Panjunyong.
310 * docutils/parsers/null.py: Added to project; a do-nothing parser.
312 * docutils/parsers/rst/__init__.py:
314 - Added validator to tab_width setting, with test. Closes SF bug
315 #1212515, report from Wu Wei.
317 * docutils/parsers/rst/states.py:
319 - Fixed bug with escaped colons indicating a literal block.
320 - Fixed bug with enumerated lists (SF#1254145).
321 - Backslash-escaped colons inside of field names are now allowed.
322 - Targets (implicit and explicit), anonymous hyperlink references
323 and auto-numbered footnote references inside of substitution
324 definitions are now disallowed.
325 - Fixed bug: list items with blank first lines.
326 - Fixed bug: block quote attributions with indented second lines.
327 - Added East Asian double-width character support (Python 2.4 only).
329 * docutils/parsers/rst/tableparser.py:
331 - Added East Asian double-width character support (Python 2.4 only).
333 * docutils/parsers/rst/directives/body.py:
335 - Added the "container" directive.
337 * docutils/parsers/rst/directives/misc.py:
339 - Added the "default-role", "title", and "date" directives.
340 - Added standard data file syntax to the "include" directive.
341 - Added support for "class" directive content.
343 * docutils/parsers/rst/directives/images.py:
345 - Added ``indirect_reference_name`` support for images with a target
347 - Added support for image width and height units.
348 - Fixed bug with image "target" options.
350 * docutils/parsers/rst/directives/references.py:
352 - Added "class" attribute to "target-notes" directive, for
353 footnote_reference classes.
355 * docutils/parsers/rst/include/: Directory added to project; contains
356 standard data files for the "include" directive. Initial contents:
357 character entity substitution definition sets, and a set of
358 definitions for S5/HTML presentations.
360 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
361 mappings by David Goodger.
363 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
364 Simplified Chinese mappings by Panjunyong.
366 * docutils/readers/__init__.py:
368 - Added universal.Decorations and universal.ExposeInternals
369 transforms as default transforms for all readers.
370 - Added ``ReReader`` base class for readers that reread an existing
373 * docutils/readers/doctree.py: Added to project; a reader for existing
376 * docutils/transforms/frontmatter.py:
378 - Fixed the DocInfo transform to handle SVN-style expansion of the
380 - In ``DocInfo.extract_authors``, treat the contents of "authors"
383 * docutils/transforms/misc.py:
385 - Added misc.Transitions transform, extracted from
386 universal.FinalChecks.
388 * docutils/transforms/references.py:
390 - Added references.DanglingReferences transform, extracted from
391 universal.FinalChecks.
392 - Fixed bug with doubly-indirect substitutions.
393 - Added footnote_reference classes attribute to "TargetNotes".
394 - Fixed bug with circular substitution definitions that put Docutils
395 into an infinite loop.
397 * docutils/transforms/universal.py:
399 - Added universal.ExposeInternals transform, extracted from
400 universal.FinalChecks.
401 - Removed universal.FinalChecks transform (logic has been moved to
402 several new transforms).
403 - Fixed bug with the "expose_internals" setting and Text nodes
404 (exposed by the "rawsource" internal attribute).
405 - Added the universal.StripComments transform, implementation of the
406 "strip_comments" setting.
408 * docutils/transforms/writer_aux.py: Added to project; auxiliary
409 transforms for writers.
411 - Added ``Compound`` transform, which flattens compound paragraphs.
413 * docutils/writers/: Several writer modules (html4css1.py) were
414 converted into packages. Support modules and data files have been
415 moved into the packages. The stylesheets for the HTML writers are
416 now installed along with the code, the code knows where to find
417 them, and the default is to use them (actually, to embed them).
418 Some adjustments to configuration files may be necessary. The
419 easiest way to obtain the new default behavior is to remove all
420 settings whose name includes "stylesheet".
422 * docutils/writers/__init__.py:
424 - Added universal.Messages and universal.FilterMessages transforms
425 as default transforms for all writers.
426 - Added ``UnfilteredWriter`` base class for writers that pass the
427 document tree on unchanged.
429 * docutils/writers/docutils_xml.py:
431 - Made ``xmlcharrefreplace`` the default output encoding error
434 * docutils/writers/html4css1/:
436 - Added support for image width and height units.
437 - Made ``xmlcharrefreplace`` the default output encoding error
439 - Made ``--embed-stylesheet`` the default rather than
440 ``--link-stylesheet``.
441 - Moved "id" attribute from container (section etc.) to title's <a>
442 tag, to be on the same tag as "name".
443 (!!! To be reverted in Docutils 0.5.)
444 - Added vertical space between fields of field lists.
445 - Added ``--compact-field-lists`` option to remove vertical space in
447 - Made cloaking of email addresses with ``--cloak-email-addresses``
449 - Fixed support for centered images.
450 - Added support for class="compact" & class="open" lists.
452 * docutils/writers/latex2e/:
454 - Underscores in citekeys are no longer escaped.
456 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
457 mapping of Unicode characters to LaTeX equivalents.
459 * docutils/writers/s5_html/: Package added to project; writer for
462 * docs/dev/distributing.txt: Added to project; guide for distributors
463 (package maintainers).
465 * docs/dev/hacking.txt: Added to project; guide for developers.
467 * docs/ref/doctree.txt:
469 - Updated for plural attributes "classes", "ids", "names",
471 - Added the "container" element.
473 * docs/ref/docutils.dtd:
475 - Updated for plural attributes "classes", "ids", "names",
478 * docs/user/emacs.txt: Added to project; a document about Emacs
479 support for reStructuredText and Docutils.
481 * docs/user/links.txt: Added to project; lists of Docutils-related
484 * docs/user/mailing-lists.txt: Added to project; information about
485 Docutils-related mailing lists and how to access them.
487 * docs/user/slide-shows.txt: Added to project; example of and docs for
488 the S5/HTML writer (``rst2s5.py`` front end).
490 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
491 Files", added to project.
493 * test/coverage.sh: Added to project; test coverage script.
495 * test/DocutilsTestSupport.py:
497 - Added support for specifying runtime settings at the suite level.
499 * test/test_functional.py:
501 - Added the ``clear_output_directory`` function.
502 - Added support for ``_test_more`` functions in functional test
505 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
507 * tools/rstpep2html.py: Renamed from pep.py.
509 * tools/dev/create_unimap.py: Added to project; script to create the
510 docutils/writers/unimap_latex.py mapping file.
512 * tools/dev/profile_docutils.py: Added to project; profiler script.
514 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
516 * tools/editors/emacs/restructuredtext.el,
517 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
518 Removed from project; the functionality is now contained in rst.el.
520 * tools/editors/emacs/rst.el: Added to project. Added many features
521 and fixed many bugs. See docs/user/emacs.txt for details.
523 * tools/stylesheets: Removed from project. Stylesheets have been
524 renamed and moved into writer packages.
527 Release 0.3.9 (2005-05-26)
528 ==========================
532 - Eliminated and replaced all uses of the old string attributes
533 ``id``, ``name``, ``dupname`` and ``class`` with references to the
534 new list attributes ``ids``, ``names``, ``dupnames`` and
535 ``classes`` throughout the whole source tree.
539 - Enabled ``--dump-*`` options when ``--traceback`` specified,
540 allowing for easier debugging.
541 - In ``Publisher.publish()``, expanded the generic top-level
544 * docutils/examples.py:
546 - Added ``internals`` function for exploration.
550 - Fixed ``Input.decode`` method to apply heuristics only if no
551 encoding is explicitly given, and to provide better reporting of
553 - The ``Input.decode`` method now removes byte order marks (BOMs)
558 - ``image`` element class changed to subclass of Element, not
559 TextElement (it's an empty element, and cannot contain text).
560 - Added ``attr_defaults`` dictionary for default attribute values.
561 - Added empty list as default value for the following attributes:
562 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
563 - Added ``document.decoration`` attribute,
564 ``document.get_decoration`` method, and ``decoration.get_header``
565 & ``.get_footer`` methods.
566 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
571 - Removed ``docutils.utils.Reporter.categories``,
572 ``docutils.utils.ConditionSet``, and all references to them, to
573 simplify error reporting.
575 * docutils/languages/nl.py: Added to project; Dutch mappings by
578 * docutils/parsers/rst/__init__.py:
580 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
582 * docutils/parsers/rst/states.py:
584 - Added check for escaped at-mark to prevent email address recognition.
585 - Fixed option lists to allow spaces inside ``<angle-bracketed option
587 - Allowed whitespace in paths and URLs.
588 - Added auto-enumerated list items.
589 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
591 - Added support for table stub columns.
593 * docutils/parsers/rst/directives/__init__.py:
595 - Allowed whitespace in paths (``path`` function).
596 - Added ``uri`` directive option conversion function.
598 * docutils/parsers/rst/directives/body.py:
600 - Fixed illegal context bug with "topic" directive (allowed within
601 sidebars; not within body elements).
603 * docutils/parsers/rst/directives/images.py:
605 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
606 - Added support for the ``file_insertion_enabled`` setting in the
607 "figure" directive (disables "figwidth" option).
608 - "image" directive: added checks for valid values of "align" option,
609 depending on context. "figure" directive: added specialized
610 "align" option and attribute on "figure" element.
611 - Made ":figwidth: image" option of "figure" directive work again.
612 - Fixed bug with reference names containing uppercase letters
613 (e.g. ``Name_``) in "target" option of "image" directive.
615 * docutils/parsers/rst/directives/misc.py:
617 - Fixed "include" and "raw" directives to catch text decoding
619 - Allowed whitespace in "include" & "raw" directive paths.
620 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
621 settings in "include" & "raw" directives.
623 * docutils/parsers/rst/directives/parts.py:
625 - Added "header" & "footer" directives.
626 - Fixed illegal context bug with "contents" directive (topics
627 allowed within sidebars; not within body elements).
629 * docutils/parsers/rst/directives/tables.py:
631 - Added "list-table" directive.
632 - Caught empty CSV table bug.
633 - Added support for the ``file_insertion_enabled`` setting in the
634 "csv-table" directive.
635 - Added ``stub-columns`` option to "csv-table" and "list-table"
638 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
639 mappings by Martijn Pieters.
641 * docutils/readers/standalone.py:
643 - Added ``--section-subtitles`` and ``--no-section-subtitles``
644 options to activate or deactivate the SectSubTitle transform.
646 * docutils/transforms/frontmatter.py:
648 - Added SectSubTitle transform to promote titles of lone
649 subsections to subtitles.
651 * docutils/transforms/references.py:
653 - Fixed mislocated internal targets bug, by propagating internal
654 targets to the next node, making use of the newly added support
655 for multiple names and IDs.
656 - Fixed duplicate footnote label bug.
657 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
660 * docutils/writers/html4css1.py:
662 - Fixed unencoded stylesheet reference bug (characters like "&" in
663 stylesheet references).
664 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
666 - Added support for multiple IDs per node by creating empty ``span``
668 - Added the ``field_name_limit`` & ``option_limit`` settings &
670 - Added support for table stub columns.
671 - Added support for the ``align`` attribute on ``figure`` elements.
672 - Added the ``cloak_email_addresses`` setting & support.
673 - Added ``html_prolog``, ``html_head``, ``html_body``,
674 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
675 ``docutils.core.publish_parts``.
676 - Added support for section subtitles.
678 * docutils/writers/latex2e.py:
680 - Fixed tables starting with more than one multirow cell.
681 - Improved --use-latex-docinfo so that organization/contact/address
682 fields are lumped with the last author field and appear on the
684 - Made sure the titlepage is always shown with --use-latex-docinfo,
685 even if the document has no title.
686 - Made sure that latex doesn't fill in today's date if no date field
688 - Added support for section subtitles.
690 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
693 * docutils/writers/null.py: Added to project; a do-nothing Writer.
695 * docs/api/publisher.txt:
697 - Added "``publish_parts`` Details" section.
699 * docutils/dev/repository.txt: Added to project; information about the
700 Docutils Subversion repository.
702 * docs/ref/docutils.dtd:
704 - Added a ``stub`` attribute to the ``colspec`` element via the
705 ``tbl.colspec.att`` parameter entity.
706 - Allowed topic elements within sidebars
707 - Added an ``align`` attribute to the ``figure`` element.
709 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
713 Release 0.3.7 (2004-12-24)
714 ==========================
716 * docutils/frontend.py:
718 - Added options: --input-encoding-error-handler,
719 --record-dependencies, --leave-footnote-reference-space,
721 - Added command-line and config file support for "overrides" setting
726 - Added support for input encoding error handler.
730 - Added dispatch_visit and dispatch_departure methods to
731 NodeVisitor; useful as a hook for Visitors.
732 - Changed structure of ``line_block``; added ``line``.
733 - Added ``compound`` node class.
734 - Added a mechanism for Visitors to transitionally ignore new node
739 - Moved ``escape2null`` and ``unescape`` functions from
740 docutils/parsers/rst/states.py.
742 * docutils/parsers/rst/roles.py:
745 - Changed role function API: the "text" parameter now takes
746 null-escaped interpreted text content.
748 * docutils/parsers/rst/states.py:
750 - Fixed bug where a "role" directive in a nested parse would crash
751 the parser; the state machine's "language" attribute was not being
753 - Added support for line block syntax.
754 - Fixed directive parsing bug: argument-less directives didn't
755 notice that arguments were present.
756 - Removed error checking for transitions.
757 - Added support for multiple classifiers in definition list items.
758 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
759 - Changed role function API: the "text" parameter now takes
760 null-escaped interpreted text content.
761 - Empty sections and documents are allowed now.
763 * docutils/parsers/rst/directives/__init__.py:
765 - Added ``encoding`` directive option conversion function.
766 - Allow multiple class names in class_option conversion function.
768 * docutils/parsers/rst/directives/body.py:
770 - Converted the line-block directive to use the new structure.
771 - Extracted the old line-block functionality to the ``block``
772 function (still used).
773 - Added ``compound`` directive (thanks to Lea Wiemann).
775 * docutils/parsers/rst/directives/misc.py:
777 - Added "encoding" option to "include" and "raw" directives.
778 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
779 - Allow multiple class names in the "class" directive.
781 * docutils/parsers/rst/directives/parts.py:
783 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
784 options. Thanks to Lele Gaifax.
786 * docutils/parsers/rst/directives/tables.py:
788 - Added "encoding" directive to "csv-table" directive.
789 - Added workaround for lack of Unicode support in csv.py, for
792 * docutils/transforms/misc.py:
794 - Fixed bug when multiple "class" directives are applied to a single
796 - Enabled multiple format names for "raw" directive.
798 * docutils/transforms/references.py:
800 - Added support for trimming whitespace from beside substitution
803 * docutils/transforms/universal.py:
805 - FinalChecks now checks for illegal transitions and moves
806 transitions between sections.
808 * docutils/writers/html4css1.py:
810 - HTMLTranslator.encode now converts U+00A0 to " ".
811 - "stylesheet" and "stylesheet_path" settings are now mutually
813 - Added support for the new line_block/line structure.
814 - --footnote-references now overrides
815 --trim-footnote-reference-space, if applicable.
816 - Added support for ``compound`` elements.
817 - Enabled multiple format names for "raw" directive.
818 - ``<p>`` tags of a paragraph which is the only visible child of the
819 document node are no longer stripped.
820 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
821 new method ``should_be_compact_paragraph()``.
822 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
824 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
825 the output if they have their ``class`` attribute set.
826 - The whole document is now surrounded by a ``<div
827 class="document">`` element.
828 - Body-level images are now wrapped by their own ``<div>`` elements,
829 with image classes copied to the wrapper, and for images which
830 have the ``:align:`` option set, the surrounding ``<div>`` now
831 receives a class attribute (like ``class="align-left"``).
833 * docutils/writers/latex2e.py:
835 - no newline after depart_term.
836 - Added translations for some Unicode quotes.
837 - Added option "font-encoding", made package AE the default.
838 - "stylesheet" and "stylesheet_path" settings are now mutually
840 - --footnote-references now overrides
841 --trim-footnote-reference-space, if applicable.
842 - The footnote label style now matches the footnote reference style
843 ("brackets" or "superscript").
844 - Added support for ``compound`` elements.
845 - Enabled multiple format names for "raw" directive.
847 * docs/ref/docutils.dtd:
849 - Changed structure of the ``line_block`` element; added ``line``.
850 - Added ``compound`` element.
851 - Added "ltrim" and "rtrim" attributes to
852 ``substitution_definition`` element.
853 - Enabled multiple format names for ``raw`` element.
854 - Enabled multiple classifiers in ``definition_list_item`` elements.
856 * docs/ref/rst/directives.txt
858 - Marked "line-block" as deprecated.
859 - "Class" directive now allows multiple class names.
860 - Added "Rationale for Class Attribute Value Conversion".
861 - Added warning about "raw" overuse/abuse.
863 * docs/ref/rst/restructuredtext.txt:
865 - Added syntax for line blocks.
866 - Definition list items may have multiple classifiers.
868 * docs/ref/rst/roles.txt:
872 * tools/stylesheets/default.css:
874 - Added support for the new line_block structure.
875 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
878 Release 0.3.5 (2004-07-29)
879 ==========================
883 * _`Documentation cleanup/reorganization`.
885 - Created new subdirectories of docs/:
887 * ``docs/user/``: introductory/tutorial material for end-users
888 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
889 * ``docs/api/``: API reference material for client-developers
890 * ``docs/ref/``: reference material for all groups
891 * ``docs/howto/``: for component-developers and core-developers
892 * ``docs/peps/``: Python Enhancement Proposals
894 - Moved ``docs/*`` to ``docs/user/``.
895 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
896 ``spec/`` to ``docs/dev``.
897 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
898 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
899 - Moved ``alternatives.txt``, and ``problems.txt`` from
900 ``spec/rst/`` to ``docs/dev/rst/``.
901 - Moved ``reStructuredText.txt``, ``directives.txt``,
902 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
903 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
904 ``roles.txt``, ``reStructuredText.txt`` to
905 ``restructuredtext.txt``.
906 - Moved ``spec/howto/`` to ``docs/howto``.
908 In order to keep the CVS history of moved files, we supplied
909 SourceForge with a `script for modifying the Docutils CVS
912 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
914 After running the cleanup script:
916 - Added ``docs/index.txt``.
917 - Added a ``.htaccess`` file to the ``web`` module, containing
918 redirects for all old paths to new paths. They'll preserve
919 fragments (the "#name" part of a URL), and won't clutter up the
920 file system, and will correct the URL in the user's browser.
921 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
922 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
923 the "To Do" list itself in ``docs/dev/todo.txt``.
924 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
925 section of ``docs/dev/todo.txt``.
926 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
927 - Added "How To Report Bugs" to ``BUGS.txt``.
928 - Went through all the sources and docs (including under web/) and
929 updated links. Mostly done by Lea Wiemann; thanks Lea!
930 (Still need to update links in the sandboxes.)
934 * BUGS.txt: Added to project.
936 * THANKS.txt: Added to project.
938 * docutils/__init__.py:
940 - 0.3.4: Post-release.
944 - Added special error handling & advice for UnicodeEncodeError.
945 - Refactored Publisher.publish (simplified exception handling &
946 extracted debug dumps).
947 - Renamed "enable_exit" parameter of convenience functions to
948 "enable_exit_status".
949 - Enabled traceback (exception propagation) by default in
950 programmatic convenience functions.
951 - Now publish_file and publish_cmdline convenience functions return
952 the encoded string results in addition to their regular I/O.
953 - Extracted common code from publish_file, publish_string, and
954 publish_parts, into new publish_programmatically. Extracted
955 settings code to ``Publisher.process_programmatic_settings``.
956 - In Publisher.publish, disabled ``settings_overrides`` when
957 ``settings`` is supplied; redundant.
959 * docutils/frontend.py:
961 - Added help text for "--output-encoding-error-handler" and
962 "--error-encoding-error-handler".
963 - Renamed "--exit" to "--exit-status".
964 - Simplified default-setting code.
966 * docutils/parsers/rst/__init__.py:
968 - Added "--pep-base-url" and "--rfc-base-url" options.
970 * docutils/parsers/rst/states.py:
972 - Made URI recognition more aggressive and intelligent.
974 * docutils/parsers/rst/directives/__init__.py:
976 - Added several directive option conversion functions.
978 * docutils/parsers/rst/directives/body.py:
980 - Moved "table" directive to tables.py.
982 * docutils/parsers/rst/directives/tables.py: Table-related directives,
985 * docutils/writers/latex2e.py:
987 - Added "--table-style=(standard|booktabs|nolines)"
988 - figures get "here" option (LaTeX per default puts them at bottom),
989 and figure content is centered.
990 - Rowspan support for tables.
991 - Fix: admonition titles before first section.
992 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
993 - Replave ``_`` in literal by an underlined blank, because it has the correct
995 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
996 - A few unicode replacements, if output_encoding != utf
997 - Add "--graphicx-option".
998 - Indent literal-blocks.
999 - Fix: omit ``\maketitle`` when there is no document title.
1001 * docs/index.txt: "Docutils Project Documentation Overview", added to
1004 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1005 Tool", added to project.
1007 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1009 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1011 * docs/dev/policies.txt: Added to project (extracted from
1012 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1014 * docs/dev/release.txt: Added to project (extracted from
1015 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1017 * docs/dev/testing.txt: Added to project.
1019 * docs/dev/website.txt: Added to project (extracted from
1020 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1022 * docs/ref/rst/directives.txt:
1024 - Added directives: "table", "csv-table".
1026 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1027 added to project. 1 page for syntax, and a 1 page reference for
1028 directives and roles. Source text to be used as-is; not meant to be
1031 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1032 with a change of title.
1034 * test/functional/, contents, and test/test_functional.py: Added to
1037 * tools/buildhtml.py: Fixed bug with config file handling.
1039 * tools/html.py: Removed from project (duplicate of rst2html.py).
1041 * tools/pep2html.py: Removed from project (duplicate of Python's
1042 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1043 Docutils-related PEPs in docs/peps/).
1045 * tools/rst2pseudoxml.py: Renamed from publish.py.
1047 * tools/rst2xml.py: Renamed from docutils-xml.py.
1049 * tools/test.txt: Removed from project; moved to
1050 docs/user/rst/demo.txt.
1052 * setup.py: Now also installs ``rst2latex.py``.
1055 Release 0.3.3 (2004-05-09)
1056 ==========================
1058 * docutils/__init__.py:
1060 - 0.3.1: Reorganized config file format (multiple sections); see
1062 - Added unknown_reference_resolvers attribute to TransformSpec.
1063 - 0.3.2: Interpreted text reorganization.
1068 - Catch system messages to stop tracebacks from parsing errors.
1069 - Catch exceptions during processing report & exit without
1070 tracebacks, except when "--traceback" used.
1071 - Reordered components for OptionParser; application comes last.
1072 - Added "config_section" parameter to several methods and functions,
1073 allowing front ends to easily specify their config file sections.
1074 - Added publish_parts convenience function to allow access to individual
1075 parts of a document.
1077 * docutils/examples.py: Added to project; practical examples of
1078 Docutils client code, to be used as-is or as models for variations.
1080 * docutils/frontend.py:
1082 - Added "--traceback" & "--no-traceback" options ("traceback"
1084 - Implemented support for config file reorganization:
1085 ``standard_config_files`` moved from ``ConfigParser`` to
1086 ``OptionParser``; added
1087 ``OptionParser.get_config_file_settings()`` and
1088 ``.get_standard_config_settings()``; support for old "[options]"
1089 section (with deprecation warning) and mapping from old to new
1091 - Reimplemented setting validation.
1092 - Enabled flexible boolean values: yes/no, true/false, on/off.
1093 - Added ``Values``, a subclass of ``optparse.Values``, with support
1094 for list setting attributes.
1095 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1096 thanks to Beni Cherniavsky.
1097 - Added "--no-section-numbering" option.
1101 - Catch IOErrors when opening source & destination files, report &
1102 exit without tracebacks. Added ``handle_io_errors`` parameter to
1103 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1105 * docutils/nodes.py:
1107 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1108 method definitions (via ``exec``) to dynamic assignments (via
1109 ``setattr``); thanks to Roman Suzi.
1110 - Encapsulated visitor dynamic assignments in a function; thanks to
1112 - Added indirect_reference_name attribute to the Targetable
1113 class. This attribute holds the whitespace_normalized_name
1114 (contains mixed case) of a target.
1116 * docutils/statemachine.py:
1118 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1119 - Added ``StringList.get_2D_block``.
1121 * docutils/utils.py:
1123 - Added "level" attribute to SystemMessage exceptions.
1125 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1128 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1131 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1132 Marcelo Huerta San Martin.
1134 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1135 mappings by Lalo Martins.
1137 * docutils/languages/ru.py: Added to project; Russian mappings by
1140 * docutils/parsers/rst/roles.py: Added to project. Contains
1141 interpreted text role functions, a registry for interpreted text
1142 roles, and an API for adding to and retrieving from the registry.
1143 Contributed by Edward Loper.
1145 * docutils/parsers/rst/states.py:
1147 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1148 - Allowed true em-dash character and "---" as block quote
1150 - Added support for <angle-bracketed> complex option arguments
1152 - Fixed handling of backslashes in substitution definitions.
1153 - Fixed off-by-1 error with extra whitespace after substitution
1154 definition directive.
1155 - Added inline markup parsing to field lists' field names.
1156 - Added support for quoted (and unindented) literal blocks.
1157 Driven in part by a bribe from Frank Siebenlist (thanks!).
1158 - Parser now handles escapes in URIs correctly.
1159 - Made embedded-URIs' reference text omittable. Idea from Beni
1161 - Refactored explicit target processing code.
1162 - Added name attribute to references containing the reference name only
1163 through whitespace_normalize_name (no case changes).
1164 - parse_target no longer returns the refname after going through
1165 normalize_name. This is now handled in make_target.
1166 - Fixed bug relating to role-less interpreted text in non-English
1168 - Reorganized interpreted text processing; moved code into the new
1169 roles.py module. Contributed by Edward Loper.
1170 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1171 ``parse_directive_block``.
1173 * docutils/parsers/rst/tableparser.py:
1175 - Reworked for ``StringList``, to support "include" directives in
1178 * docutils/parsers/rst/directives/__init__.py:
1180 - Renamed ``unchanged()`` directive option conversion function to
1181 ``unchanged_required``, and added a new ``unchanged``.
1182 - Catch unicode value too high error; fixes bug 781766.
1183 - Beefed up directive error reporting.
1185 * docutils/parsers/rst/directives/body.py:
1187 - Added basic "table" directive.
1189 * docutils/parsers/rst/directives/images.py:
1191 - Added "target" option to "image" directive.
1192 - Added name attribute to references containing the reference name only
1193 through whitespace_normalize_name (no case changes).
1195 * docutils/parsers/rst/directives/misc.py:
1197 - Isolated the import of the ``urllib2`` module; was causing
1198 problems on SourceForge (``libssl.so.2`` unavailable?).
1199 - Added the "role" directive for declaring custom interpreted text
1202 * docutils/parsers/rst/directives/parts.py:
1204 - The "contents" directive does more work up-front, creating the
1205 "topic" and "title", and leaving the "pending" node for the
1206 transform. Allows earlier reference resolution; fixes subtle bug.
1208 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1209 mappings by Jannie Hofmeyr.
1211 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1212 mappings by Marek Blaha.
1214 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1215 mappings by Marcelo Huerta San Martin.
1217 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1218 Portuguese mappings by Lalo Martins.
1220 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1221 mappings by Roman Suzi.
1223 * docutils/transforms/parts.py:
1225 - The "contents" directive does more work up-front, creating the
1226 "topic" and "title", and leaving the "pending" node for the
1227 transform. Allows earlier reference resolution; fixes subtle bug.
1228 - Added support for disabling of section numbering.
1230 * docutils/transforms/references.py:
1232 - Verifying that external targets are truly targets and not indirect
1233 references. This is because we are now adding a "name" attribute to
1234 references in addition to targets. Note sure if this is correct!
1235 - Added code to hook into the unknown_reference_resolvers list for a
1236 transformer in resolve_indirect_target. This allows the
1237 unknown_reference_resolvers to keep around indirect targets which
1238 docutils doesn't know about.
1239 - Added specific error message for duplicate targets.
1241 * docutils/transforms/universal.py:
1243 - Added FilterMessages transform (removes system messages below the
1244 verbosity threshold).
1245 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1246 to FinalCheckVisitor for application-specific handling of
1247 unresolvable references.
1248 - Added specific error message for duplicate targets.
1250 * docutils/writers/__init__.py:
1252 - Added assemble_parts method to the Writer class to allow for
1253 access to a documents individual parts.
1254 - Documented & set default for ``Writer.output`` attribute.
1256 * docutils/writers/html4css1.py:
1258 - Fixed unicode handling of attribute values (bug 760673).
1259 - Prevent duplication of "class" attribute values (bug report from
1261 - Improved table grid/border handling (prompted by report from Bob
1263 - Added support for table titles.
1264 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1266 - Added functionality to keep track of individual parts of a document
1267 and store them in a dictionary as the "parts" attribute of the writer.
1268 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1269 - Added proper support for the "scale" attribute of the "image"
1270 element. Contributed by Brent Cook.
1271 - Added ``--initial-header-level`` option.
1272 - Fixed bug: the body_pre_docinfo segment depended on there being a
1273 docinfo; if no docinfo, the document title was incorporated into
1274 the body segment. Adversely affected the publish_parts interface.
1276 * docutils/writers/latex2e.py:
1278 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1279 about a missing file.
1280 - Added options and support: ``--compound-enumerators``,
1281 ``--section-prefix-for-enumerators``, and
1282 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1284 - Added option ``--use-verbatim-when-possible``, to avoid
1285 problematic characters (eg, '~' in italian) in literal blocks.
1286 - It's now possible to use four section levels in the `book` and
1287 `report` LaTeX classes. The default `article` class still has
1290 * docs/config.txt: "Docutils Configuration Files", added to project.
1291 Moved config file entry descriptions from tools.txt.
1295 - Moved config file entry descriptions to config.txt.
1297 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1300 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1301 Text Roles", added to project.
1303 * spec/rst/reStructuredText.txt:
1305 - Added description of support for <angle-bracketed> complex option
1306 arguments to option lists.
1307 - Added subsections for indented and quoted literal blocks.
1309 * test: Continually adding & updating tests.
1311 - Added test/test_settings.py & test/data/config_*.txt support
1313 - Added test/test_writers/test_htmlfragment.py.
1315 * test/DocutilsTestSupport.py:
1317 - Refactored LaTeX publisher test suite/case class names to make
1318 testing other writers easier.
1319 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1320 to test the processing of HTML fragments which use the new
1321 publish_parts convenience function.
1323 * tools/buildhtml.py:
1325 - Added support for the "--prune" option.
1326 - Removed dependency on pep2html.py; plaintext PEPs no longer
1329 * tools/docutils.conf:
1331 - Updated for configuration file reorganization.
1333 * tools/rst2html.py:
1335 - copied from tools/html.py
1339 - added a 'scripts' section to configuration
1340 - added 'tools/rst2html.py' to the scripts section
1343 Release 0.3 (2003-06-24)
1344 ========================
1348 * Renamed "attribute" to "option" for directives/extensions.
1350 * Renamed transform method "transform" to "apply".
1352 * Renamed "options" to "settings" for runtime settings (as set by
1353 command-line options). Sometimes "option" (singular) became
1354 "settings" (plural). Some variations below:
1356 - document.options -> document.settings (stored in other objects as
1358 - option_spec -> settings_spec (not directives though)
1359 - OptionSpec -> SettingsSpec
1360 - cmdline_options -> settings_spec
1361 - relative_path_options -> relative_path_settings
1362 - option_default_overrides -> settings_default_overrides
1363 - Publisher.set_options -> Publisher.get_settings
1367 * COPYING.txt: Added "Public Domain Dedication".
1369 * FAQ.txt: Frequently asked questions, added to project.
1373 - Updated with PyPI Trove classifiers.
1374 - Conditional installation of third-party modules.
1376 * docutils/__init__.py:
1378 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1379 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1380 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1381 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1382 option and its effect on the PEP template & writer.
1383 - Bumped version to 0.2.4 due to changes to the PEP template &
1385 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1386 - Added ``TransformSpec`` class for new transform system.
1387 - Bumped version to 0.2.6 for API changes (renaming).
1388 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1389 convenience functions.
1390 - Added ``Component.component_type`` attribute.
1391 - Bumped version to 0.2.8 because of the internal parser switch from
1392 plain lists to the docutils.statemachine.StringList objects.
1393 - Bumped version to 0.2.9 because of the frontend.py API changes.
1394 - Bumped version to 0.2.10 due to changes to the project layout
1395 (third-party modules removed from the "docutils" package), and
1396 signature changes in ``io.Input``/``io.Output``.
1397 - Changed version to 0.3.0 for release.
1401 - Made ``publish()`` a bit more convenient.
1402 - Generalized ``Publisher.set_io``.
1403 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1404 parameters; improved its docstring.
1405 - Added ``publish_file()`` and ``publish_string()``.
1406 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1408 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1409 "--dump-transforms" hidden options.
1410 - Added ``Publisher.apply_transforms()`` method.
1411 - Added ``Publisher.set_components()`` method; support for
1412 ``publish_*()`` conveninece functions.
1413 - Moved config file processing to docutils/frontend.py.
1414 - Added support for exit status ("exit_level" setting &
1415 ``enable_exit`` parameter for Publisher.publish() and convenience
1418 * docutils/frontend.py:
1420 - Check for & exit on identical source & destination paths.
1421 - Fixed bug with absolute paths & "--config".
1422 - Set non-command-line defaults in ``OptionParser.__init__()``:
1423 ``_source`` & ``_destination``.
1424 - Distributed ``relative_path_settings`` to components; updated
1425 ``OptionParser.populate_from_components()`` to combine it all.
1426 - Require list of keys in ``make_paths_absolute`` (was implicit in
1427 global ``relative_path_settings``).
1428 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1429 "--dump-settings", and "--dump-transforms" hidden options.
1430 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1431 code, replaced with correct code.
1432 - Added validation functionality for config files.
1433 - Added "--error-encoding" option/setting, "_disable_config"
1435 - Added encoding validation; updated "--input-encoding" and
1436 "--output-encoding"; added "--error-encoding-error-handler" and
1437 "--output-encoding-error-handler".
1438 - Moved config file processing from docutils/core.py.
1439 - Updated ``OptionParser.populate_from_components`` to handle new
1440 ``SettingsSpec.settings_defaults`` dict.
1441 - Added support for "-" => stdin/stdout.
1442 - Added "exit_level" setting ("--exit" option).
1446 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1447 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1448 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1449 - ``FileOutput.write()`` now returns the encoded output string.
1450 - Try to get path/stream name automatically in ``FileInput`` &
1452 - Added defaults for source & destination paths.
1453 - Allow for Unicode I/O with an explicit "unicode" encoding.
1454 - Added ``Output.encode()``.
1455 - Removed dependency on runtime settings; pass encoding directly.
1456 - Recognize Unicode strings in ``Input.decode()``.
1457 - Added support for output encoding error handlers.
1459 * docutils/nodes.py:
1461 - Added "Invisible" element category class.
1462 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1463 modification during a traversal.
1464 - Added element classes: ``line_block``, ``generated``, ``address``,
1465 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1466 ``superscript``, ``subscript``, ``inline``
1467 - Added support for lists of nodes to ``Element.insert()``.
1468 - Fixed parent linking in ``Element.replace()``.
1469 - Added new abstract superclass ``FixedTextElement``; adds
1470 "xml:space" attribute.
1471 - Added support for "line" attribute of ``system_message`` nodes.
1472 - Added support for the observer pattern from ``utils.Reporter``.
1473 Added ``parse_messages`` and ``transform_messages`` attributes to
1474 ``document``, removed ``messages``. Added ``note_parse_message``
1475 and ``note_transform_message`` methods.
1476 - Added support for improved diagnostics:
1478 - Added "document", "source", and "line" internal attributes to
1479 ``Node``, set by ``Node.setup_child()``.
1480 - Converted variations on ``node.parent = self`` to
1481 ``self.setup_child(node)``.
1482 - Added ``document.current_source`` & ``.current_line``
1483 attributes, and ``.note_source`` observer method.
1484 - Changed "system_message" output to GNU-Tools format.
1486 - Added a "rawsource" attribute to the ``Text`` class, for text
1487 before backslash-escape resolution.
1488 - Support for new transform system.
1489 - Reworked ``pending`` element.
1490 - Fixed XML DOM bug (SF #660611).
1491 - Removed the ``interpeted`` element class and added
1492 ``title_reference``, ``abbreviation``, ``acronym``.
1493 - Made substitutions case-sensitive-but-forgiving; moved some code
1495 - Fixed Unicode bug on element attributes (report: William Dode).
1497 * docutils/optik.py: Removed from project; replaced with
1498 extras/optparse.py and extras/textwrap.py. These will be installed
1499 only if they're not already present in the Python installation.
1501 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1502 only if it's not already present in the Python installation.
1504 * docutils/statemachine.py:
1506 - Factored out ``State.add_initial_transitions()`` so it can be
1508 - Converted whitespace-specific "blank" and "indent" transitions
1509 from special-case code to ordinary transitions: removed
1510 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1511 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1512 ``ws_initial_transitions`` attributes.
1513 - Removed ``State.match_transition()`` after merging it into
1515 - Added ``StateCorrection`` exception.
1516 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1517 (moved ``TransitionCorrection`` support there too.)
1518 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1519 ``EOFError`` instead of ``IndexError``.
1520 - Added ``State.no_match`` method.
1521 - Added support for the Observer pattern, triggered by input line
1523 - Added ``strip_top`` parameter to
1524 ``StateMachineWS.get_first_known_indented``.
1525 - Made ``context`` a parameter to ``StateMachine.run()``.
1526 - Added ``ViewList`` & ``StringList`` classes;
1527 ``extract_indented()`` becomes ``StringList.get_indented()``.
1528 - Added ``StateMachine.insert_input()``.
1529 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1530 thanks to) Fred Drake.
1532 * docutils/utils.py:
1534 - Added a ``source`` attribute to Reporter instances and
1535 ``system_message`` elements.
1536 - Added an observer pattern to ``utils.Reporter`` to keep track of
1538 - Fixed bugs in ``relative_path()``.
1539 - Added support for improved diagnostics.
1540 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1541 - Added support for encoding Reporter stderr output, and encoding
1543 - Reporter keeps track of the highest level system message yet
1546 * docutils/languages: Fixed bibliographic field language lookups.
1548 * docutils/languages/es.py: Added to project; Spanish mappings by
1549 Marcelo Huerta San Martin.
1551 * docutils/languages/fr.py: Added to project; French mappings by
1554 * docutils/languages/it.py: Added to project; Italian mappings by
1557 * docutils/languages/sk.py: Added to project; Slovak mappings by
1560 * docutils/parser/__init__.py:
1562 - Added ``Parser.finish_parse()`` method.
1564 * docutils/parser/rst/__init__.py:
1566 - Added options: "--pep-references", "--rfc-references",
1567 "--tab-width", "--trim-footnote-reference-space".
1569 * docutils/parsers/rst/states.py:
1571 - Changed "title under/overline too short" system messages from INFO
1572 to WARNING, and fixed its insertion location.
1573 - Fixed enumerated list item parsing to allow paragraphs & section
1574 titles to begin with enumerators.
1575 - Converted system messages to use the new "line" attribute.
1576 - Fixed a substitution reference edge case.
1577 - Added support for "--pep-references" and "--rfc-references"
1578 options; reworked ``Inliner`` code to make customization easier.
1579 - Removed field argument parsing.
1580 - Added support for short section title over/underlines.
1581 - Fixed "simple reference name" regexp to ignore text like
1582 "object.__method__"; not an anonymous reference.
1583 - Added support for improved diagnostics.
1584 - Reworked directive API, based on Dethe Elza's contribution. Added
1585 ``Body.parse_directive()``, ``.parse_directive_options()``,
1586 ``.parse_directive_arguments()`` methods.
1587 - Added ``ExtensionOptions`` class, to parse directive options
1588 without parsing field bodies. Factored
1589 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1590 ``ExtensionOptions``.
1591 - Improved definition list term/classifier parsing.
1592 - Added warnings for unknown directives.
1593 - Renamed ``Stuff`` to ``Struct``.
1594 - Now flagged as errors: transitions at the beginning or end of
1595 sections, empty sections (except title), and empty documents.
1596 - Updated for ``statemachine.StringList``.
1597 - Enabled recognition of schemeless email addresses in targets.
1598 - Added support for embedded URIs in hyperlink references.
1599 - Added backslash-escapes to inline markup end-string suffix.
1600 - Added support for correct interpreted text processing.
1601 - Fixed nested title parsing (topic, sidebar directives).
1602 - Added special processing of backslash-escaped whitespace (idea
1603 from David Abrahams).
1604 - Made substitutions case-sensitive-but-forgiving; moved some code
1605 to ``docutils.nodes``.
1606 - Added support for block quote attributions.
1607 - Added a kludge to work-around a conflict between the bubble-up
1608 parser strategy and short titles (<= 3 char-long over- &
1609 underlines). Fixes SF bug #738803 "infinite loop with multiple
1610 titles" submitted by Jason Diamond.
1611 - Added explicit interpreted text roles for standard inline markup:
1612 "emphasis", "strong", "literal".
1613 - Implemented "superscript" and "subscript" interpreted text roles.
1614 - Added initial support for "abbreviation" and "acronym" roles;
1616 - Added support for "--trim-footnote-reference-space" option.
1617 - Optional space before colons in directives & hyperlink targets.
1619 * docutils/parsers/rst/tableparser.py:
1621 - Fixed a bug that was producing unwanted empty rows in "simple"
1623 - Detect bad column spans in "simple" tables.
1625 * docutils/parsers/rst/directives: Updated all directive functions to
1628 * docutils/parsers/rst/directives/__init__.py:
1630 - Added ``flag()``, ``unchanged()``, ``path()``,
1631 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1632 directive option helper functions.
1633 - Added warnings for unknown directives.
1634 - Return ``None`` for missing directives.
1635 - Added ``register_directive()``, thanks to William Dode and Paul
1638 * docutils/parsers/rst/directives/admonitions.py:
1640 - Added "admonition" directive.
1642 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1643 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1644 "parsed-literal", "rubric", "epigraph", "highlights" and
1645 "pull-quote" directives.
1647 * docutils/parsers/rst/directives/images.py:
1649 - Added an "align" attribute to the "image" & "figure" directives
1650 (by Adam Chodorowski).
1651 - Added "class" option to "image", and "figclass" to "figure".
1653 * docutils/parsers/rst/directives/misc.py:
1655 - Added "include", "raw", and "replace" directives, courtesy of
1657 - Added "unicode" and "class" directives.
1659 * docutils/parsers/rst/directives/parts.py:
1661 - Added the "sectnum" directive; by Dmitry Jemerov.
1662 - Added "class" option to "contents" directive.
1664 * docutils/parsers/rst/directives/references.py: Added to project.
1665 Contains the "target-notes" directive.
1667 * docutils/parsers/rst/languages/__init__.py:
1669 - Return ``None`` from get_language() for missing language modules.
1671 * docutils/parsers/rst/languages/de.py: Added to project; German
1672 mappings by Engelbert Gruber.
1674 * docutils/parsers/rst/languages/en.py:
1676 - Added interpreted text roles mapping.
1678 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1679 mappings by Marcelo Huerta San Martin.
1681 * docutils/parsers/rst/languages/fr.py: Added to project; French
1682 mappings by William Dode.
1684 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1685 mappings by Nicola Larosa.
1687 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1688 mappings by Miroslav Vasko.
1690 * docutils/readers/__init__.py:
1692 - Added support for the observer pattern from ``utils.Reporter``, in
1693 ``Reader.parse`` and ``Reader.transform``.
1694 - Removed ``Reader.transform()`` method.
1695 - Added default parameter values to ``Reader.__init__()`` to make
1696 instantiation easier.
1697 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1699 * docutils/readers/pep.py:
1701 - Added the ``peps.TargetNotes`` transform to the Reader.
1702 - Removed PEP & RFC reference detection code; moved to
1703 parsers/rst/states.py as options (enabled here by default).
1704 - Added support for pre-acceptance PEPs (no PEP number yet).
1705 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1708 * docutils/readers/python: Python Source Reader subpackage added to
1709 project, including preliminary versions of:
1712 - moduleparser.py: Parser for Python modules.
1714 * docutils/transforms/__init__.py:
1716 - Added ``Transformer`` class and completed transform reform.
1717 - Added unknown_reference_resolvers list for each transformer. This list holds
1718 the list of functions provided by each component of the transformer that
1719 help resolve references.
1721 * docutils/transforms/frontmatter.py:
1723 - Improved support for generic fields.
1724 - Fixed bibliographic field language lookups.
1726 * docutils/transforms/misc.py: Added to project. Miscellaneous
1729 * docutils/transforms/parts.py:
1731 - Moved the "id" attribute from TOC list items to the references
1732 (``Contents.build_contents()``).
1733 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1734 - Added "class" attribute support to ``Contents``.
1736 * docutils/transforms/peps.py:
1738 - Added ``mask_email()`` function, updating to pep2html.py's
1740 - Linked "Content-Type: text/x-rst" to PEP 12.
1741 - Added the ``TargetNotes`` PEP-specific transform.
1742 - Added ``TargetNotes.cleanup_callback``.
1743 - Added title check to ``Headers``.
1745 * docutils/transforms/references.py:
1747 - Added the ``TargetNotes`` generic transform.
1748 - Split ``Hyperlinks`` into multiple transforms.
1749 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1750 - Added check for circular indirect references.
1751 - Made substitutions case-sensitive-but-forgiving.
1753 * docutils/transforms/universal.py:
1755 - Added support for the "--expose-internal-attributes" option.
1756 - Removed ``Pending`` transform classes & data.
1758 * docutils/writers/__init__.py:
1760 - Removed ``Writer.transform()`` method.
1762 * docutils/writers/docutils-xml.py:
1764 - Added XML and doctype declarations.
1765 - Added "--no-doctype" and "--no-xml-declaration" options.
1767 * docutils/writers/html4css1.py:
1769 - "name" attributes only on these tags: a, applet, form, frame,
1771 - Added "name" attribute to <a> in section titles for Netscape 4
1772 support (bug report: Pearu Peterson).
1773 - Fixed targets (names) on footnote, citation, topic title,
1774 problematic, and system_message nodes (for Netscape 4).
1775 - Changed field names from "<td>" to "<th>".
1776 - Added "@" to "@" encoding to thwart address harvesters.
1777 - Improved the vertical whitespace optimization; ignore "invisible"
1778 nodes (targets, comments, etc.).
1779 - Improved inline literals with ``<span class="pre">`` around chunks
1780 of text and `` `` for runs of spaces.
1781 - Improved modularity of output; added ``self.body_pre_docinfo`` and
1782 ``self.docinfo`` segments.
1783 - Added support for "line_block", "address" elements.
1784 - Improved backlinks (footnotes & system_messages).
1785 - Improved system_message output.
1786 - Redefined "--stylesheet" as containing an invariant URL, used
1787 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
1789 - Added "--footnote-references" option (superscript or brackets).
1790 - Added "--compact-lists" and "--no-compact-lists" options.
1791 - Added "--embed-stylesheet" and "--link-stylesheet" options;
1792 factored out ``HTMLTranslator.get_stylesheet_reference()``.
1793 - Improved field list rendering.
1794 - Added Docutils version to "generator" meta tag.
1795 - Fixed a bug with images; they must be inline, so wrapped in <p>.
1796 - Improved layout of <pre> HTML source.
1797 - Fixed attribute typo on <colspec>.
1798 - Refined XML prologue.
1799 - Support for no stylesheet.
1800 - Removed "interpreted" element support.
1801 - Added support for "title_reference", "sidebar", "attribution",
1802 "rubric", and generic "admonition" elements.
1803 - Added "--attribution" option.
1804 - Added support for "inline", "subscript", "superscript" elements.
1805 - Added initial support for "abbreviation" and "acronym";
1808 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
1812 - Double quotes in literal blocks (special treatment for de/ngerman).
1813 - Added '--hyperlink-color' option ('0' turns off coloring of links).
1814 - Added "--attribution" option.
1815 - Right align attributions.
1817 * docutils/writers/pep_html.py:
1819 - Parameterized output encoding in PEP template.
1820 - Reworked substitutions from ``locals()`` into ``subs`` dict.
1821 - Redefined "--pep-stylesheet" as containing an invariant URL, used
1822 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
1824 - Added an override on the "--footnote-references" option.
1825 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
1826 - Added Docutils version to "generator" meta tag.
1827 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1831 - Added a "silent" setting for ``buildhtml.py``.
1832 - Added a "Getting Help" section.
1833 - Rearranged the structure.
1834 - Kept up to date, with new settings, command-line options etc.
1835 - Added section for ``rst2latex.py`` (Engelbert Gruber).
1836 - Converted settings table into a definition list.
1838 * docs/rst/quickstart.txt:
1840 - Added a table of contents.
1841 - Added feedback information.
1842 - Added mention of minimum section title underline lengths.
1843 - Removed the 4-character minimum for section title underlines.
1845 * docs/rst/quickref.html:
1847 - Added a "Getting Help" section.
1848 - Added a style to make section title backlinks more subtle.
1849 - Added mention of minimum section title underline lengths.
1850 - Removed the 4-character minimum for section title underlines.
1852 * extras: Directory added to project; contains third-party modules
1853 that Docutils depends on (optparse, textwrap, roman). These are
1854 only installed if they're not already present.
1856 * licenses: Directory added to project; contains copies of license
1857 files for non-public-domain files.
1861 - Changed the focus. It's about DTD elements: structural
1862 relationships, semantics, and external (public) attributes. Not
1863 about the element class library.
1864 - Moved some implementation-specific stuff into ``docutils.nodes``
1866 - Wrote descriptions of all common attributes and parameter
1867 entities. Filled in introductory material.
1868 - Working through the element descriptions: 55 down, 37 to go.
1869 - Removed "Representation of Horizontal Rules" to
1870 spec/rst/alternatives.txt.
1872 * spec/docutils.dtd:
1874 - Added "generated" inline element.
1875 - Added "line_block" body element.
1876 - Added "auto" attribute to "title".
1877 - Changed content models of "literal_block" and "doctest_block" to
1879 - Added ``%number;`` attribute type parameter entity.
1880 - Changed ``%structural.elements;`` to ``%section.elements``.
1881 - Updated attribute types; made more specific.
1882 - Added "address" bibliographic element.
1883 - Added "line" attribute to ``system_message`` element.
1884 - Removed "field_argument" element; "field_name" may contain
1885 multiple words and whitespace.
1886 - Changed public identifier to docutils.sf.net.
1887 - Removed "interpreted" element; added "title_reference",
1888 "abbreviation", "acronym".
1889 - Removed "refuri" attribute from "footnote_reference" and
1890 "citation_reference".
1891 - Added "sidebar", "rubric", "attribution", "admonition",
1892 "superscript", "subscript", and "inline" elements.
1894 * spec/pep-0256.txt: Converted to reStructuredText & updated.
1896 * spec/pep-0257.txt: Converted to reStructuredText & updated.
1898 * spec/pep-0258.txt: Converted to reStructuredText & updated.
1900 * spec/semantics.txt: Updated with text from a Doc-SIG response to
1903 * spec/transforms.txt: Added to project.
1905 * spec/howto: Added subdirectory, for developer how-to docs.
1907 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
1908 Elza, edited & extended by David Goodger.
1910 * spec/howto/i18n.txt: Docutils Internationalization. Added to
1913 * spec/rst/alternatives.txt:
1915 - Added "Doctree Representation of Transitions" from
1917 - Updated "Inline External Targets" & closed the debate.
1918 - Added ideas for interpreted text syntax extensions.
1919 - Added "Nested Inline Markup" section.
1921 * spec/rst/directives.txt:
1923 - Added directives: "topic", "sectnum", "target-notes",
1924 "line-block", "parsed-literal", "include", "replace", "sidebar",
1925 "admonition", "rubric", "epigraph", "highlights", "unicode" and
1927 - Formalized descriptions of directive details.
1928 - Added an "align" attribute to the "image" & "figure" directives
1929 (by Adam Chodorowski).
1930 - Added "class" options to "topic", "sidebar", "line-block",
1931 "parsed-literal", "contents", and "image"; and "figclass" to
1934 * spec/rst/interpreted.txt: Added to project. Descriptions of
1935 interpreted text roles.
1937 * spec/rst/introduction.txt:
1939 - Added pointers to material for new users.
1941 * spec/rst/reStructuredText.txt:
1943 - Disambiguated comments (just add a newline after the "::").
1944 - Updated enumerated list description; added a discussion of the
1945 second-line validity checking.
1946 - Updated directive description.
1947 - Added a note redirecting newbies to the user docs.
1948 - Expanded description of inline markup start-strings in non-markup
1950 - Removed field arguments and made field lists a generic construct.
1951 - Removed the 4-character minimum for section title underlines.
1952 - Clarified term/classifier delimiter & inline markup ambiguity
1954 - Added "Embedded URIs".
1955 - Updated "Interpreted Text" section.
1956 - Added "Character-Level Inline Markup" section.
1958 * test: Continually adding & updating tests.
1960 - Moved test/test_rst/ to test/test_parsers/test_rst/.
1961 - Moved test/test_pep/ to test/test_readers/test_pep/.
1962 - Added test/test_readers/test_python/.
1963 - Added test/test_writers/ (Engelbert Gruber).
1967 - Made the ``locale.setlocale()`` calls in front ends
1970 * tools/buildhtml.py:
1972 - Added "--silent" option.
1973 - Fixed bug with absolute paths & "--config".
1974 - Updated for new I/O classes.
1975 - Added some exception handling.
1976 - Separated publishers' setting defaults; prevents interference.
1977 - Updated for new ``publish_file()`` convenience function.
1979 * tools/pep-html-template:
1981 - Allow for "--embed-stylesheet".
1982 - Added Docutils version to "generator" meta tag.
1983 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1984 - Conform to XHTML spec.
1986 * tools/pep2html.py:
1988 - Made ``argv`` a parameter to ``main()``.
1989 - Added support for "Content-Type:" header & arbitrary PEP formats.
1990 - Linked "Content-Type: text/plain" to PEP 9.
1991 - Files skipped (due to an error) are not pushed onto the server.
1992 - Updated for new I/O classes.
1993 - Added ``check_requirements()`` & ``pep_type_error()``.
1994 - Added some exception handling.
1995 - Updated for new ``publish_string()`` convenience function.
1996 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1998 * tools/quicktest.py:
2000 - Added "-V"/"--version" option.
2002 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2004 * tools/unicode2rstsubs.py: Added to project. Produces character
2005 entity files (reSructuredText substitutions) from the MathML master
2008 * tools/editors: Support code for editors, added to project. Contains
2009 ``emacs/restructuredtext.el``.
2011 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2013 - Added style for chunks of inline literals.
2014 - Removed margin for first child of table cells.
2015 - Right-aligned field list names.
2016 - Support for auto-numbered section titles in TOCs.
2017 - Increased the size of inline literals (<tt>) in titles.
2018 - Restored the light gray background for inline literals.
2019 - Added support for "line_block" elements.
2020 - Added style for "address" elements.
2021 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2022 - Improved field list rendering.
2023 - Vertical whitespace improvements.
2024 - Removed "a.target" style.
2026 * tools/stylesheets/pep.css:
2028 - Fixed nested section margins.
2029 - Other changes parallel those of ``../default.css``.
2032 Release 0.2 (2002-07-31)
2033 ========================
2037 - The word "component" was being used ambiguously. From now on,
2038 "component" will be used to mean "Docutils component", as in Reader,
2039 Writer, Parser, or Transform. Portions of documents (Table of
2040 Contents, sections, etc.) will be called "document parts".
2041 - Did a grand renaming: a lot of ``verylongnames`` became
2042 ``very_long_names``.
2043 - Cleaned up imports: no more relative package imports or
2044 comma-separated lists of top-level modules.
2045 - Added support for an option values object which carries default
2046 settings and overrides (from command-line options and library use).
2047 - Added internal Unicode support, and support for both input and
2049 - Added support for the ``docutils.io.IO`` class & subclasses.
2053 * docutils/__init__.py:
2055 - Added ``ApplicationError`` and ``DataError``, for use throughout
2057 - Added ``Component`` base class for Docutils components; implements
2058 the ``supports`` method.
2059 - Added ``__version__`` (thus, ``docutils.__version__``).
2063 - Removed many keyword parameters to ``Publisher.__init__()`` and
2064 ``publish()``; bundled into an option values object. Added
2065 "argv", "usage", "description", and "option_spec" parameters for
2066 command-line support.
2067 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2069 - Reworked I/O model for ``docutils.io`` wrappers.
2070 - Updated ``Publisher.set_options()``; now returns option values
2072 - Added support for configuration files (/etc/docutils.conf,
2073 ./docutils.conf, ~/.docutils).
2074 - Added ``Publisher.setup_option_parser()``.
2075 - Added default usage message and description.
2077 * docutils/frontend.py: Added to project; support for front-end
2078 (command-line) scripts. Option specifications may be augmented by
2079 components. Requires Optik (http://optik.sf.net/) for option
2080 processing (installed locally as docutils/optik.py).
2082 * docutils/io.py: Added to project; uniform API for a variety of input
2085 * docutils/nodes.py:
2087 - Added ``TreeCopyVisitor`` class.
2088 - Added a ``copy`` method to ``Node`` and subclasses.
2089 - Added a ``SkipDeparture`` exception for visitors.
2090 - Renamed ``TreePruningException`` from ``VisitorException``.
2091 - Added docstrings to ``TreePruningException``, subclasses, and
2093 - Improved docstrings.
2094 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2095 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2097 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2098 ``PreDecorative`` mixin.
2099 - Reworked the name/id bookkeeping; to ``document``, removed
2100 ``explicit_targets`` and ``implicit_targets`` attributes, added
2101 ``nametypes`` attribute and ``set_name_id_map`` method.
2102 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2104 - Added ``document.has_name()`` method.
2105 - Fixed DOM generation for list-attributes.
2106 - Added category class ``Labeled`` (used by footnotes & citations).
2107 - Added ``Element.set_class()`` method (sets "class" attribute).
2109 * docutils/optik.py: Added to project. Combined from the Optik
2110 package, with added option groups and other modifications. The use
2111 of this module is probably only temporary.
2113 * docutils/statemachine.py:
2115 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2116 - Added underscores to improve many awkward names.
2117 - In ``string2lines()``, changed whitespace normalizing translation
2118 table to regexp; restores Python 2.0 compatibility with Unicode.
2120 * docutils/urischemes.py:
2122 - Filled in some descriptions.
2123 - Added "shttp" scheme.
2125 * docutils/utils.py:
2127 - Added ``clean_rcs_keywords`` function (moved from
2128 docutils/transforms/frontmatter.py
2129 ``DocInfo.filter_rcs_keywords``).
2130 - Added underscores to improve many awkward names.
2131 - Changed names of Reporter's thresholds:
2132 warning_level -> report_level; error_level -> halt_level.
2133 - Moved ``utils.id()`` to ``nodes.make_id()``.
2134 - Added ``relative_path(source, target)``.
2136 * docutils/languages/de.py: German mappings; added to project. Thanks
2137 to Gunnar Schwant for the translations.
2139 * docutils/languages/en.py: Added "Dedication" bibliographic field
2142 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2145 * docutils/parsers/rst/states.py:
2147 - Added underscores to improve many awkward names.
2148 - Added RFC-2822 header support.
2149 - Extracted the inline parsing code from ``RSTState`` to a separate
2150 class, ``Inliner``, which will allow easy subclassing.
2151 - Made local bindings for ``memo`` container & often-used contents
2152 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2153 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2154 - Added ``MarkupMismatch`` exception; for late corrections.
2155 - Added ``-/:`` characters to inline markup's start string prefix,
2156 ``/`` to end string suffix.
2157 - Fixed a footnote bug.
2158 - Fixed a bug with literal blocks.
2159 - Applied patch from Simon Budig: simplified regexps with symbolic
2160 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2161 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2162 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2163 - Allowed non-ASCII in "simple names" (directive names, field names,
2165 - Converted ``Inliner.patterns.initial`` to be dynamically built
2166 from parts with ``build_regexp()`` function.
2167 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2168 - Updated docstrings.
2169 - Changed "table" to "grid_table"; added "simple_table" support.
2171 * docutils/parsers/rst/tableparser.py:
2173 - Changed ``TableParser`` to ``GridTableParser``.
2174 - Added ``SimpleTableParser``.
2175 - Refactored naming.
2177 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2178 a fallback language for directive names.
2180 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2181 directive to use a ``pending`` element, used only by HTML writers.
2183 * docutils/parsers/rst/directives/parts.py: Renamed from
2186 - Added "backlinks" attribute to "contents" directive.
2188 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2189 project by Adam Chodorowski.
2191 * docutils/readers/__init__.py: Gave Readers more control over
2192 choosing and instantiating Parsers.
2194 * docutils/readers/pep.py: Added to project; for PEP processing.
2196 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2197 requires a ``component`` parameter.
2199 * docutils/transforms/components.py: Added to project; transforms
2200 related to Docutils components.
2202 * docutils/transforms/frontmatter.py:
2204 - In ``DocInfo.extract_authors``, check for a single "author" in an
2205 "authors" group, and convert it to a single "author" element.
2206 - Added support for "Dedication" and generic bibliographic fields.
2208 * docutils/transforms/peps.py: Added to project; PEP-specific.
2210 * docutils/transforms/parts.py: Renamed from old components.py.
2212 - Added filter for `Contents`, to use alt-text for inline images,
2213 and to remove inline markup that doesn't make sense in the ToC.
2214 - Added "name" attribute to TOC topic depending on its title.
2215 - Added support for optional TOC backlinks.
2217 * docutils/transforms/references.py: Fixed indirect target resolution
2218 in ``Hyperlinks`` transform.
2220 * docutils/transforms/universal.py:
2222 - Changed ``Messages`` transform to properly filter out system
2223 messages below the warning threshold.
2224 - Added ``Decorations`` transform (support for ``--generator``,
2225 ``--date``, ``--time``, ``--source-link`` options).
2227 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2228 Engelbert Gruber's PDF writer.
2230 * docutils/writers/html4css1.py:
2232 - Made XHTML-compatible (switched to lowercase element & attribute
2233 names; empty tag format).
2234 - Escape double-dashes in comment text.
2235 - Improved boilerplate & modularity of output.
2236 - Exposed modular output in Writer class.
2237 - Added a "generator" meta tag to <head>.
2238 - Added support for the ``--stylesheet`` option.
2239 - Added support for ``decoration``, ``header``, and ``footer``
2241 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2242 translation table to regexp; restores Python 2.0 compatibility
2244 - Added the translator class as instance variable to the Writer, to
2245 make it easily subclassable.
2246 - Improved option list spacing (thanks to Richard Jones).
2247 - Modified field list output.
2248 - Added backlinks to footnotes & citations.
2249 - Added percentage widths to "<col>" tags (from colspec).
2250 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2251 "<span>" changed to "<var>".
2252 - Inline literals: "<code>" changed to "<tt>".
2253 - Many changes to optimize vertical space: compact simple lists etc.
2254 - Add a command-line options & directive attributes to control TOC
2255 and footnote/citation backlinks.
2256 - Added support for optional footnote/citation backlinks.
2257 - Added support for generic bibliographic fields.
2258 - Identify backrefs.
2259 - Relative URLs for stylesheet links.
2261 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2262 PEPs (subclass of ``html4css1.Writer``).
2264 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2266 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2267 of the Docutils internal doctree in XML.
2269 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2273 - Changed the title to "The Docutils Document Tree".
2274 - Added "Hyperlink Bookkeeping" section.
2276 * spec/docutils.dtd:
2278 - Added ``decoration``, ``header``, and ``footer`` elements.
2279 - Brought ``interpreted`` element in line with the parser: changed
2280 attribute "type" to "role", added "position".
2281 - Added support for generic bibliographic fields.
2283 * spec/notes.txt: Continual updates. Added "Project Policies".
2285 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2288 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2290 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2291 mailing list discussions.
2293 * spec/pep-0287.txt:
2295 - Renamed to "reStructuredText Docstring Format".
2297 - Reworked Q&A as an enumerated list.
2298 - Converted to reStructuredText format.
2300 * spec/pysource.dtd:
2302 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2304 * spec/pysource.txt: Removed from project. Moved much of its contents
2307 * spec/rst/alternatives.txt:
2309 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2310 - Added "Inline External Targets" section.
2312 * spec/rst/directives.txt:
2314 - Added "backlinks" attribute to "contents" directive.
2316 * spec/rst/problems.txt:
2318 - Updated the Enumerated List Markup discussion.
2319 - Added new alternative table markup syntaxes.
2321 * spec/rst/reStructuredText.txt:
2323 - Clarified field list usage.
2324 - Updated enumerated list description.
2325 - Clarified purpose of directives.
2326 - Added ``-/:`` characters to inline markup's start string prefix,
2327 ``/`` to end string suffix.
2328 - Updated "Authors" bibliographic field behavior.
2329 - Changed "inline hyperlink targets" to "inline internal targets".
2330 - Added "simple table" syntax to supplement the existing but
2331 newly-renamed "grid tables".
2332 - Added cautions for anonymous hyperlink use.
2333 - Added "Dedication" and generic bibliographic fields.
2335 * test: Made test modules standalone (subdirectories became packages).
2337 * test/DocutilsTestSupport.py:
2339 - Added support for PEP extensions to reStructuredText.
2340 - Added support for simple tables.
2341 - Refactored naming.
2343 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2345 - Now supports true packages containing test modules
2346 (``__init__.py`` files required); fixes duplicate module name bug.
2348 * test/test_pep/: Subpackage added to project; PEP testing.
2350 * test/test_rst/test_SimpleTableParser.py: Added to project.
2354 - Updated html.py and publish.py front-end tools to use the new
2355 command-line processing facilities of ``docutils.frontend``
2356 (exposed in ``docutils.core.Publisher``), reducing each to just a
2358 - Added ``locale.setlocale()`` calls to front-end tools.
2360 * tools/buildhtml.py: Added to project; batch-generates .html from all
2361 the .txt files in directories and subdirectories.
2363 * tools/default.css:
2365 - Added support for ``header`` and ``footer`` elements.
2366 - Added styles for "Dedication" topics (biblio fields).
2368 * tools/docutils.conf: A configuration file; added to project.
2370 * tools/docutils-xml.py: Added to project.
2372 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2374 * tools/pep-html-template: Added to project.
2376 * tools/pep2html.py: Added to project from Python (nondist/peps).
2377 Added support for Docutils (reStructuredText PEPs).
2379 * tools/quicktest.py:
2381 - Added the ``--attributes`` option, hacked a bit.
2382 - Added a second command-line argument (output file); cleaned up.
2384 * tools/stylesheets/: Subdirectory added to project.
2386 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2389 Release 0.1 (2002-04-20)
2390 ========================
2392 This is the first release of Docutils, merged from the now inactive
2393 reStructuredText__ and `Docstring Processing System`__ projects. For
2394 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2395 `DPS HISTORY`__ files.
2397 __ http://structuredtext.sourceforge.net/
2398 __ http://docstring.sourceforge.net/
2399 __ http://structuredtext.sourceforge.net/HISTORY.html
2400 __ http://docstring.sourceforge.net/HISTORY.html
2402 General changes: renamed 'dps' package to 'docutils'; renamed
2403 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2404 the test suites (reStructuredText's test/test_states renamed to
2405 test/test_rst); and all modifications required to make it all work.
2407 * docutils/parsers/rst/states.py:
2409 - Improved diagnostic system messages for missing blank lines.
2410 - Fixed substitution_reference bug.
2416 indent-tabs-mode: nil
2417 sentence-end-double-space: t