1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: goodger@python.org
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
22 - (partially) Fix reporting for problems in included files.
26 - FileInput opens files as text files with universal newline support
27 (mode "rU", configurable with the new optional argument "mode").
31 - Fix [ 2923723 ] let decode_path() tolerate path == None
33 * docutils/writers/html4css1/__init__.py
35 - Support SVG and SWF images (thanks to Stefan Rank).
37 * docutils/writers/latex2e/__init__.py
39 - Use `transforms.writer_aux.Admonitions` to "normalize" special
41 - Use the ``\url`` command for URLs (breaks long URLs instead of
42 writing into the margin).
43 - Preserve runs of spaces in `inline literals`__.
44 - Deprecate ``figure_footnotes`` setting.
45 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
46 - New ``latex_preamble`` setting.
47 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
48 - Fix hyperlink targets (labels) for images, figures, and tables.
50 __ docs/ref/restructuredtext.html#inline-literals
51 __ docs/user/config.html#docutils-footnotes
53 * docutils/writers/manpage.py
55 - Fix: supported attribute (thanks to peter2108).
56 - Remove trailing blanks in code (keep in sync with mercurial version).
57 - Titles level 1, that is ``.SH``, always uppercase.
58 - Apply patch from mg: literal text should be bold in man-pages.
62 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
65 Release 0.6 (2009-10-11)
66 ========================
70 - Docutils is now compatible with Python versions from 2.3 up to 2.6
71 and convertible to 3.1 code.
73 + Node.__nonzero__ returns True instead of 1.
74 + use os.walk instead os.path.walk.
75 + minimize "types" module where possible.
76 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
77 + Text nodes now subclass unicode rather than UserString
78 (which is gone in python 3.0).
79 + 3.0 compatibility module docutils._compat
81 + Drop 2.2 compatibility workarounds.
82 + Drop extras/optparse.py and extras/textwrap.py
83 (stdlib modules since 2.3).
85 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
86 - Unix man page export: manpage writer moved from sandbox to Doctutils
89 - Apply [ 1719345 ] Galician translation
90 - Apply [ 1905741 ] Polish translation
91 - Apply [ 1878977 ] make_id(): deaccent characters.
92 - Apply [ 2029251 ] return nonzero when tests fail.
93 - Fix [ 1692788 ] allow UTF-8 in style sheets.
94 - Fix [ 2781629 ] support non-ASCII chars in file names.
95 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
96 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
97 - Fix [ 2821266 ] --strict option works now like --halt=info.
98 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
99 - Fix [ 1627229 ] hyperlink references in substitutions.
101 - The "newlatex" writer is orphaned.
105 - Documented Unicode characters allowed as inline markup openers,
106 closers, and delimiters.
107 - Allow units for all length specifications.
108 - Allow percent sign in "scale" argument of "figure" and "image" directives.
109 - Bugfix: The "figalign" argument of a figure now works as intended
110 (aligning the figure, not its contents).
111 - Align images with class "align-[right|center|left]"
112 (allows setting the alignment of an image in a figure).
116 - Added ``Element.__contains__`` method, for the in-operator.
118 * docutils/parsers/rst/states.py:
120 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
121 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
122 " " (non-breaking space), and "¡ ¿" openers.
124 * docutils/parsers/directives/misc.py:
126 - Added ``start-line`` and ``end-line`` options to "include"
127 directive to select a range of lines.
128 - Hard tabs in literal inclusions are replaced by spaces. This is
129 configurable via the new ``tab-width`` option of the "include" directive
130 (a negative tab-width prevents tab expansion).
134 - Add ``get_stylesheet_list`` function.
135 - Apply [ 2834836 ] print info at halt
137 * docutils/transforms/universal.py:
139 - Raise default priority of StripClasses to exclude stripped classes from
142 * docutils/writers/html4css1/__init__.py:
144 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
145 separated list of stylesheets.
146 - Address [ 1938891 ] Inline literal text creates "pre" span only when
147 needed to prevent inter-word line wraps.
148 - Use `translate` method instead of repeated `replace` calls.
149 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
150 classes to allow CSS styling that does not interfere with other
151 table-using constructs (field lists, citations, ...).
153 * docutils/writers/newlatex2e/__init__.py:
155 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
157 * docutils/writers/latex2e/__init__.py (see also
158 `<docs/user/docutils-05-compat.sty.html>`__) :
160 - Add ``--embed-stylesheet`` option.
161 - Apply [ 1474017 ] image vertical alignment is reversed.
162 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
163 - Change: has_key for dictionaries (not Nodes) to in-operator.
164 - Merge adjacent citations into one latex cite command.
165 - Failsave implementation of custom roles. LaTeX compilation now ignores
166 unknown classes instead of aborting with an error.
167 - Support custom roles based on standard roles.
168 - LaTeX packages can be used as ``--stylesheet`` arguments without
169 restriction. (A style sheet is now referenced with the ``\usepackage``
170 command, if it ends with ``.sty`` or has no extension.)
171 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
172 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
173 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
174 2005-02-04 as a configurable length unit).
175 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
176 if font-encoding is set to ''. LaTeX defaults to OT1 then.
177 - Set sub- and superscript role argument in text mode not as math.
178 Use a custom role based on sub-/superscript if you want italic shape.
179 - Shorter preamble and less dependencies: Load packages and define macros
180 only if required in the document.
181 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
182 - New custom environments and commands with optional "classes" argument.
183 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
184 - Better conformance to Docutils specifications with ``--use-latex-toc``.
185 Support for LaTeX generated ToC also with unnumbered sections.
186 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
187 section numbering by LaTeX.
188 - Use default font in admonitions and sidebar.
189 - Align of image in a figure defaults to 'center'.
190 - Bugfix: Newlines around targets and references prevent run-together
192 - Fix internal hyperlinks.
193 - Use class defaults for page margins ('typearea' now optional).
194 - Float placement made configurable, default changed to "here definitely".
195 - Typeset generic topic as "quote block with title".
196 - Use template (file and configuration option).
197 - In the default template, load cmap.sty (fix text extraction in PDF) and
198 fixltx2e.sty (LaTeX patches, \textsubscript).
199 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
200 - Use `translate` instead of repeated `replace` calls for text encoding.
201 - Hyperlinked footnotes and support for symbol footnotes and
202 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
203 - Complete pairs of binary options
204 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
205 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
207 - font-encoding: "T1" (formerly implicitely set by 'ae').
208 - use-latex-toc: true (ToC with page numbers).
209 - use-latex-footnotes: true (no mixup with figures).
211 * docutils/writers/manpage.py
213 - Do not print version at document end, this is done by the viewer.
214 - Do not print date at document end, this is done by the viewer.
215 - Fix storage of docinfo fields for none standard fields.
217 * docutils/tools/rst2man.py
219 Release 0.5 (2008-06-25)
220 ========================
222 * docutils/languages/he.py: Added to project: Hebrew mappings by
225 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
226 mappings by Meir Kriheli.
228 * docutils/frontend.py:
230 - Configuration files are now assumed and required to be
232 - Paths of applied configuration files are now recorded in the
233 runtime setting ``_config_files`` (accessible via
234 ``--dump-settings``).
235 - Added ``--strip-elements-with-class`` and ``--strip-class``
236 options (``strip_elements_with_classes`` and ``strip_classes``
241 - Added code to determine the input encoding from data: encoding
242 declarations or the presence of byte order marks (UTF-8 & UTF-16).
243 - Added support for IronPython 1.0.
247 - Added ``document.__getstate__`` method, for pickling.
249 * docutils/parsers/rst/states.py:
251 - Allow ``+`` and ``:`` in reference names.
252 - Unquoted targets beginning with an underscore (``.. __target:
253 URI``) are no longer accepted.
254 - Added support for multiple attributions in a physical block quote
255 (indented text block), dividing it into multiple logical block
257 - Added support for unicode bullets in bullet lists: "•", "‣", and
259 - Added support for new object-oriented directive interface,
260 retaining compatibility to the old functional interface.
261 - Added support for throwing ``DirectiveError``'s from within
264 * docutils/parsers/rst/__init__.py:
266 - Added ``Directive`` base class.
267 - Added ``DirectiveError`` base class.
268 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
271 * docutils/parsers/directives/:
273 - Refactored all reStructuredText directives to use the new
274 object-oriented directive interface. Errors are now (mostly)
275 thrown using the new ``DirectiveError`` class.
277 * docutils/parsers/directives/misc.py:
279 - Added ``start-after`` and ``end-before`` options to ``include``
280 directive; thanks to Stefan Rank.
282 * docutils/transforms/universal.py:
284 - Added ``StripClassesAndElements`` transform to remove from the
285 document tree all elements with classes in
286 ``settings.strip_elements_with_classes`` and all "classes"
287 attribute values in ``self.document.settings.strip_classes``.
289 * docutils/transforms/writer_aux.py:
291 - Added ``Admonitions`` transform to transform specific admonitions
292 (like ``note``, ``warning``, etc.) into generic admonitions with a
295 * docutils/writers/html4css1/__init__.py:
297 - Moved template functionality from the PEP/HTML writer here.
298 - Expanded the fragments available in the ``parts`` attribute.
299 - Moved ``id`` attributes from titles to surrounding ``div``
301 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
302 universally supported now).
303 - ``template.txt`` is now opened in text mode instead of binary mode
304 (to ensure Windows compatibility).
305 - ``a`` elements now have an "internal" or "external" class,
306 depending on reference type.
308 * docutils/writers/html4css1/template.txt: Added to project.
310 * docutils/writers/pep_html/:
312 - Moved template functionality to the HTML writer.
314 * docutils/writers/s5_html/__init__.py:
316 - Added ``view_mode`` & ``hidden_controls`` settings
317 (``--view-mode`` & ``--hidden-controls/--visible-controls``
320 * docutils/writers/latex2e/__init__.py:
322 - Add ``--literal-block-env``
323 - Fix: escaping ``%`` in href urls.
324 - Move usepackage hyperref after stylesheet inclusion.
325 - Fix: scrartcl does not have chapter but scrreprt.
326 - Add newline after ``\end{verbatim}``.
327 - Merge smaller differences from latex2e_adaptive_preamble.
328 - Add ``use-part-section``.
329 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
330 - Using leavemode option_list no longer needs to check if parent
331 is a definition list.
332 - Append ``\leavemode`` to definition list terms.
333 - No longer write visit\_/depart_definition_list_item comments to
335 - Table column width with 3 decimal places.
336 - Add table stubs support (boldfont).
337 - Add assemble_parts to writer.
338 - Add simply support for nested tables.
339 - Fix verbatim in tables if use-verbatim-when-possible.
340 - Use section commands down to subparagraph.
341 - Put ensuremath around some latin1 chars.
342 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
343 - New option ``--use-bibtex=style,db1,db2``.
344 - New option ``--reference-label`` to allow usage of LaTeX ref for
345 labels in section references.
346 - Add a label after every section to support sectionnumbers as reference
348 - Fix: bug# 1605376 rst2latex: bad options group list
349 - Remove inactive code for use_optionlist_for_option_list.
350 - Remove latex comments from option_list output.
351 - Fix: bug# 1612270 double qoutes in italian literal.
352 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
353 - Add option --use-latex-abstract.
354 - Image width unit ``px`` is translated to ``pt``.
355 - Add image height support.
356 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
358 - Fix: Do not escape underscores in citation reference labels if
359 use-latex-citations is set.
360 - Use centering instead of center for figure contents, to avoid vertical
362 - Recognize table class: borderless, nolines, booktabs, standard.
363 - Fix: Renaming contents section does not work with latex writer; SF
365 - Applied patch for custom roles with classes from Edward Loper.
366 - Fixed bug that caused crashes with more than 256 lists.
368 * docutils/writers/pep_html/__init__.py:
370 - Changed to support new python.org website structure and
373 * docs/howto/security.txt: "Deploying Docutils Securely", added to
376 * tools/buildhtml.py:
378 -- Added ``ignore`` setting to exclude a list of shell patterns
379 (default: ``.svn:CVS``).
381 * tools/editors/emacs/rst.el:
383 - Changed license to "GPL".
384 - Added ``rst-straighten-decorations`` function.
385 - The ``compile`` module is now always loaded.
386 - Added ``rst-toggle-line-block`` function.
387 - Headings consisting only of non-ASCII characters are now
388 recognized by ``rst-toc`` and ``rst-adjust``.
389 - Added font-lock support for multi-line comments where the first
390 comment line is empty.
391 - Added ``(require 'font-lock)``.
395 - Provide descriptive error message if distutils is missing.
398 Release 0.4 (2006-01-09)
399 ========================
403 - Updated the project policies for trunk/branch development &
406 * docutils/__init__.py:
408 - Added ``__version_details__`` attribute to describe code source
409 (repository/snapshot/release).
410 - Replaced ``default_transforms`` attribute of TransformSpec with
411 ``get_transforms()`` method.
415 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
416 functions, for document tree extraction and reprocessing.
420 - Added ``DocTreeInput`` class, for reprocessing existing documents.
421 - Added support for non-Unicode (e.g. binary) writer output.
425 - Re-introduced ``Targetable.indirect_reference_name``, for
426 MoinMoin/reST compatibility (removed in r3124/r3129).
427 - Added ``serial_escape`` function; escapes string values that are
428 elements of a list, for serialization. Modified Docutils-XML
429 writing (``Element._dom_node``) and pseudo-XML writing
430 (``Element.starttag``) to use ``serial_escape``.
431 - Added ``Node.deepcopy()`` method.
432 - Removed the internal lists ``document.substitution_refs``,
433 ``document.anonymous_refs``, and ``document.anonymous_targets``.
434 - Added a "container" element.
435 - Fixed bug where values of list-valued attributes of elements
436 originating from custom interpreted text roles (i.e., with custom
437 classes) were being shared between element instances. Reported by
440 * docutils/statemachine.py:
442 - Added trailing whitespace stripping to ``string2lines()``.
443 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
444 Asian double-width character support.
448 - Added ``east_asian_column_width()`` for double-width character
451 * docutils/languages/ja.py: Added to project: Japanese mappings by
454 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
455 mappings by Panjunyong.
457 * docutils/parsers/null.py: Added to project; a do-nothing parser.
459 * docutils/parsers/rst/__init__.py:
461 - Added validator to tab_width setting, with test. Closes SF bug
462 #1212515, report from Wu Wei.
464 * docutils/parsers/rst/states.py:
466 - Fixed bug with escaped colons indicating a literal block.
467 - Fixed bug with enumerated lists (SF#1254145).
468 - Backslash-escaped colons inside of field names are now allowed.
469 - Targets (implicit and explicit), anonymous hyperlink references
470 and auto-numbered footnote references inside of substitution
471 definitions are now disallowed.
472 - Fixed bug: list items with blank first lines.
473 - Fixed bug: block quote attributions with indented second lines.
474 - Added East Asian double-width character support (Python 2.4 only).
476 * docutils/parsers/rst/tableparser.py:
478 - Added East Asian double-width character support (Python 2.4 only).
480 * docutils/parsers/rst/directives/body.py:
482 - Added the "container" directive.
484 * docutils/parsers/rst/directives/misc.py:
486 - Added the "default-role", "title", and "date" directives.
487 - Added standard data file syntax to the "include" directive.
488 - Added support for "class" directive content.
490 * docutils/parsers/rst/directives/images.py:
492 - Added ``indirect_reference_name`` support for images with a target
494 - Added support for image width and height units.
495 - Fixed bug with image "target" options.
497 * docutils/parsers/rst/directives/references.py:
499 - Added "class" attribute to "target-notes" directive, for
500 footnote_reference classes.
502 * docutils/parsers/rst/include/: Directory added to project; contains
503 standard data files for the "include" directive. Initial contents:
504 character entity substitution definition sets, and a set of
505 definitions for S5/HTML presentations.
507 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
508 mappings by David Goodger.
510 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
511 Simplified Chinese mappings by Panjunyong.
513 * docutils/readers/__init__.py:
515 - Added universal.Decorations and universal.ExposeInternals
516 transforms as default transforms for all readers.
517 - Added ``ReReader`` base class for readers that reread an existing
520 * docutils/readers/doctree.py: Added to project; a reader for existing
523 * docutils/transforms/frontmatter.py:
525 - Fixed the DocInfo transform to handle SVN-style expansion of the
527 - In ``DocInfo.extract_authors``, treat the contents of "authors"
530 * docutils/transforms/misc.py:
532 - Added misc.Transitions transform, extracted from
533 universal.FinalChecks.
535 * docutils/transforms/references.py:
537 - Added references.DanglingReferences transform, extracted from
538 universal.FinalChecks.
539 - Fixed bug with doubly-indirect substitutions.
540 - Added footnote_reference classes attribute to "TargetNotes".
541 - Fixed bug with circular substitution definitions that put Docutils
542 into an infinite loop.
544 * docutils/transforms/universal.py:
546 - Added universal.ExposeInternals transform, extracted from
547 universal.FinalChecks.
548 - Removed universal.FinalChecks transform (logic has been moved to
549 several new transforms).
550 - Fixed bug with the "expose_internals" setting and Text nodes
551 (exposed by the "rawsource" internal attribute).
552 - Added the universal.StripComments transform, implementation of the
553 "strip_comments" setting.
555 * docutils/transforms/writer_aux.py: Added to project; auxiliary
556 transforms for writers.
558 - Added ``Compound`` transform, which flattens compound paragraphs.
560 * docutils/writers/: Several writer modules (html4css1.py) were
561 converted into packages. Support modules and data files have been
562 moved into the packages. The stylesheets for the HTML writers are
563 now installed along with the code, the code knows where to find
564 them, and the default is to use them (actually, to embed them).
565 Some adjustments to configuration files may be necessary. The
566 easiest way to obtain the new default behavior is to remove all
567 settings whose name includes "stylesheet".
569 * docutils/writers/__init__.py:
571 - Added universal.Messages and universal.FilterMessages transforms
572 as default transforms for all writers.
573 - Added ``UnfilteredWriter`` base class for writers that pass the
574 document tree on unchanged.
576 * docutils/writers/docutils_xml.py:
578 - Made ``xmlcharrefreplace`` the default output encoding error
581 * docutils/writers/html4css1/:
583 - Added support for image width and height units.
584 - Made ``xmlcharrefreplace`` the default output encoding error
586 - Made ``--embed-stylesheet`` the default rather than
587 ``--link-stylesheet``.
588 - Moved "id" attribute from container (section etc.) to title's <a>
589 tag, to be on the same tag as "name".
590 (!!! To be reverted in Docutils 0.5.)
591 - Added vertical space between fields of field lists.
592 - Added ``--compact-field-lists`` option to remove vertical space in
594 - Made cloaking of email addresses with ``--cloak-email-addresses``
596 - Fixed support for centered images.
597 - Added support for class="compact" & class="open" lists.
599 * docutils/writers/latex2e/:
601 - Underscores in citekeys are no longer escaped.
603 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
604 mapping of Unicode characters to LaTeX equivalents.
606 * docutils/writers/s5_html/: Package added to project; writer for
609 * docs/dev/distributing.txt: Added to project; guide for distributors
610 (package maintainers).
612 * docs/dev/hacking.txt: Added to project; guide for developers.
614 * docs/ref/doctree.txt:
616 - Updated for plural attributes "classes", "ids", "names",
618 - Added the "container" element.
620 * docs/ref/docutils.dtd:
622 - Updated for plural attributes "classes", "ids", "names",
625 * docs/user/emacs.txt: Added to project; a document about Emacs
626 support for reStructuredText and Docutils.
628 * docs/user/links.txt: Added to project; lists of Docutils-related
631 * docs/user/mailing-lists.txt: Added to project; information about
632 Docutils-related mailing lists and how to access them.
634 * docs/user/slide-shows.txt: Added to project; example of and docs for
635 the S5/HTML writer (``rst2s5.py`` front end).
637 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
638 Files", added to project.
640 * test/coverage.sh: Added to project; test coverage script.
642 * test/DocutilsTestSupport.py:
644 - Added support for specifying runtime settings at the suite level.
646 * test/test_functional.py:
648 - Added the ``clear_output_directory`` function.
649 - Added support for ``_test_more`` functions in functional test
652 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
654 * tools/rstpep2html.py: Renamed from pep.py.
656 * tools/dev/create_unimap.py: Added to project; script to create the
657 docutils/writers/unimap_latex.py mapping file.
659 * tools/dev/profile_docutils.py: Added to project; profiler script.
661 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
663 * tools/editors/emacs/restructuredtext.el,
664 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
665 Removed from project; the functionality is now contained in rst.el.
667 * tools/editors/emacs/rst.el: Added to project. Added many features
668 and fixed many bugs. See docs/user/emacs.txt for details.
670 * tools/stylesheets: Removed from project. Stylesheets have been
671 renamed and moved into writer packages.
674 Release 0.3.9 (2005-05-26)
675 ==========================
679 - Eliminated and replaced all uses of the old string attributes
680 ``id``, ``name``, ``dupname`` and ``class`` with references to the
681 new list attributes ``ids``, ``names``, ``dupnames`` and
682 ``classes`` throughout the whole source tree.
686 - Enabled ``--dump-*`` options when ``--traceback`` specified,
687 allowing for easier debugging.
688 - In ``Publisher.publish()``, expanded the generic top-level
691 * docutils/examples.py:
693 - Added ``internals`` function for exploration.
697 - Fixed ``Input.decode`` method to apply heuristics only if no
698 encoding is explicitly given, and to provide better reporting of
700 - The ``Input.decode`` method now removes byte order marks (BOMs)
705 - ``image`` element class changed to subclass of Element, not
706 TextElement (it's an empty element, and cannot contain text).
707 - Added ``attr_defaults`` dictionary for default attribute values.
708 - Added empty list as default value for the following attributes:
709 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
710 - Added ``document.decoration`` attribute,
711 ``document.get_decoration`` method, and ``decoration.get_header``
712 & ``.get_footer`` methods.
713 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
718 - Removed ``docutils.utils.Reporter.categories``,
719 ``docutils.utils.ConditionSet``, and all references to them, to
720 simplify error reporting.
722 * docutils/languages/nl.py: Added to project; Dutch mappings by
725 * docutils/parsers/rst/__init__.py:
727 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
729 * docutils/parsers/rst/states.py:
731 - Added check for escaped at-mark to prevent email address recognition.
732 - Fixed option lists to allow spaces inside ``<angle-bracketed option
734 - Allowed whitespace in paths and URLs.
735 - Added auto-enumerated list items.
736 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
738 - Added support for table stub columns.
740 * docutils/parsers/rst/directives/__init__.py:
742 - Allowed whitespace in paths (``path`` function).
743 - Added ``uri`` directive option conversion function.
745 * docutils/parsers/rst/directives/body.py:
747 - Fixed illegal context bug with "topic" directive (allowed within
748 sidebars; not within body elements).
750 * docutils/parsers/rst/directives/images.py:
752 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
753 - Added support for the ``file_insertion_enabled`` setting in the
754 "figure" directive (disables "figwidth" option).
755 - "image" directive: added checks for valid values of "align" option,
756 depending on context. "figure" directive: added specialized
757 "align" option and attribute on "figure" element.
758 - Made ":figwidth: image" option of "figure" directive work again.
759 - Fixed bug with reference names containing uppercase letters
760 (e.g. ``Name_``) in "target" option of "image" directive.
762 * docutils/parsers/rst/directives/misc.py:
764 - Fixed "include" and "raw" directives to catch text decoding
766 - Allowed whitespace in "include" & "raw" directive paths.
767 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
768 settings in "include" & "raw" directives.
770 * docutils/parsers/rst/directives/parts.py:
772 - Added "header" & "footer" directives.
773 - Fixed illegal context bug with "contents" directive (topics
774 allowed within sidebars; not within body elements).
776 * docutils/parsers/rst/directives/tables.py:
778 - Added "list-table" directive.
779 - Caught empty CSV table bug.
780 - Added support for the ``file_insertion_enabled`` setting in the
781 "csv-table" directive.
782 - Added ``stub-columns`` option to "csv-table" and "list-table"
785 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
786 mappings by Martijn Pieters.
788 * docutils/readers/standalone.py:
790 - Added ``--section-subtitles`` and ``--no-section-subtitles``
791 options to activate or deactivate the SectSubTitle transform.
793 * docutils/transforms/frontmatter.py:
795 - Added SectSubTitle transform to promote titles of lone
796 subsections to subtitles.
798 * docutils/transforms/references.py:
800 - Fixed mislocated internal targets bug, by propagating internal
801 targets to the next node, making use of the newly added support
802 for multiple names and IDs.
803 - Fixed duplicate footnote label bug.
804 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
807 * docutils/writers/html4css1.py:
809 - Fixed unencoded stylesheet reference bug (characters like "&" in
810 stylesheet references).
811 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
813 - Added support for multiple IDs per node by creating empty ``span``
815 - Added the ``field_name_limit`` & ``option_limit`` settings &
817 - Added support for table stub columns.
818 - Added support for the ``align`` attribute on ``figure`` elements.
819 - Added the ``cloak_email_addresses`` setting & support.
820 - Added ``html_prolog``, ``html_head``, ``html_body``,
821 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
822 ``docutils.core.publish_parts``.
823 - Added support for section subtitles.
825 * docutils/writers/latex2e.py:
827 - Fixed tables starting with more than one multirow cell.
828 - Improved --use-latex-docinfo so that organization/contact/address
829 fields are lumped with the last author field and appear on the
831 - Made sure the titlepage is always shown with --use-latex-docinfo,
832 even if the document has no title.
833 - Made sure that latex doesn't fill in today's date if no date field
835 - Added support for section subtitles.
837 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
840 * docutils/writers/null.py: Added to project; a do-nothing Writer.
842 * docs/api/publisher.txt:
844 - Added "``publish_parts`` Details" section.
846 * docutils/dev/repository.txt: Added to project; information about the
847 Docutils Subversion repository.
849 * docs/ref/docutils.dtd:
851 - Added a ``stub`` attribute to the ``colspec`` element via the
852 ``tbl.colspec.att`` parameter entity.
853 - Allowed topic elements within sidebars
854 - Added an ``align`` attribute to the ``figure`` element.
856 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
860 Release 0.3.7 (2004-12-24)
861 ==========================
863 * docutils/frontend.py:
865 - Added options: --input-encoding-error-handler,
866 --record-dependencies, --leave-footnote-reference-space,
868 - Added command-line and config file support for "overrides" setting
873 - Added support for input encoding error handler.
877 - Added dispatch_visit and dispatch_departure methods to
878 NodeVisitor; useful as a hook for Visitors.
879 - Changed structure of ``line_block``; added ``line``.
880 - Added ``compound`` node class.
881 - Added a mechanism for Visitors to transitionally ignore new node
886 - Moved ``escape2null`` and ``unescape`` functions from
887 docutils/parsers/rst/states.py.
889 * docutils/parsers/rst/roles.py:
892 - Changed role function API: the "text" parameter now takes
893 null-escaped interpreted text content.
895 * docutils/parsers/rst/states.py:
897 - Fixed bug where a "role" directive in a nested parse would crash
898 the parser; the state machine's "language" attribute was not being
900 - Added support for line block syntax.
901 - Fixed directive parsing bug: argument-less directives didn't
902 notice that arguments were present.
903 - Removed error checking for transitions.
904 - Added support for multiple classifiers in definition list items.
905 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
906 - Changed role function API: the "text" parameter now takes
907 null-escaped interpreted text content.
908 - Empty sections and documents are allowed now.
910 * docutils/parsers/rst/directives/__init__.py:
912 - Added ``encoding`` directive option conversion function.
913 - Allow multiple class names in class_option conversion function.
915 * docutils/parsers/rst/directives/body.py:
917 - Converted the line-block directive to use the new structure.
918 - Extracted the old line-block functionality to the ``block``
919 function (still used).
920 - Added ``compound`` directive (thanks to Lea Wiemann).
922 * docutils/parsers/rst/directives/misc.py:
924 - Added "encoding" option to "include" and "raw" directives.
925 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
926 - Allow multiple class names in the "class" directive.
928 * docutils/parsers/rst/directives/parts.py:
930 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
931 options. Thanks to Lele Gaifax.
933 * docutils/parsers/rst/directives/tables.py:
935 - Added "encoding" directive to "csv-table" directive.
936 - Added workaround for lack of Unicode support in csv.py, for
939 * docutils/transforms/misc.py:
941 - Fixed bug when multiple "class" directives are applied to a single
943 - Enabled multiple format names for "raw" directive.
945 * docutils/transforms/references.py:
947 - Added support for trimming whitespace from beside substitution
950 * docutils/transforms/universal.py:
952 - FinalChecks now checks for illegal transitions and moves
953 transitions between sections.
955 * docutils/writers/html4css1.py:
957 - HTMLTranslator.encode now converts U+00A0 to " ".
958 - "stylesheet" and "stylesheet_path" settings are now mutually
960 - Added support for the new line_block/line structure.
961 - --footnote-references now overrides
962 --trim-footnote-reference-space, if applicable.
963 - Added support for ``compound`` elements.
964 - Enabled multiple format names for "raw" directive.
965 - ``<p>`` tags of a paragraph which is the only visible child of the
966 document node are no longer stripped.
967 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
968 new method ``should_be_compact_paragraph()``.
969 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
971 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
972 the output if they have their ``class`` attribute set.
973 - The whole document is now surrounded by a ``<div
974 class="document">`` element.
975 - Body-level images are now wrapped by their own ``<div>`` elements,
976 with image classes copied to the wrapper, and for images which
977 have the ``:align:`` option set, the surrounding ``<div>`` now
978 receives a class attribute (like ``class="align-left"``).
980 * docutils/writers/latex2e.py:
982 - no newline after depart_term.
983 - Added translations for some Unicode quotes.
984 - Added option "font-encoding", made package AE the default.
985 - "stylesheet" and "stylesheet_path" settings are now mutually
987 - --footnote-references now overrides
988 --trim-footnote-reference-space, if applicable.
989 - The footnote label style now matches the footnote reference style
990 ("brackets" or "superscript").
991 - Added support for ``compound`` elements.
992 - Enabled multiple format names for "raw" directive.
994 * docs/ref/docutils.dtd:
996 - Changed structure of the ``line_block`` element; added ``line``.
997 - Added ``compound`` element.
998 - Added "ltrim" and "rtrim" attributes to
999 ``substitution_definition`` element.
1000 - Enabled multiple format names for ``raw`` element.
1001 - Enabled multiple classifiers in ``definition_list_item`` elements.
1003 * docs/ref/rst/directives.txt
1005 - Marked "line-block" as deprecated.
1006 - "Class" directive now allows multiple class names.
1007 - Added "Rationale for Class Attribute Value Conversion".
1008 - Added warning about "raw" overuse/abuse.
1010 * docs/ref/rst/restructuredtext.txt:
1012 - Added syntax for line blocks.
1013 - Definition list items may have multiple classifiers.
1015 * docs/ref/rst/roles.txt:
1019 * tools/stylesheets/default.css:
1021 - Added support for the new line_block structure.
1022 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1025 Release 0.3.5 (2004-07-29)
1026 ==========================
1030 * _`Documentation cleanup/reorganization`.
1032 - Created new subdirectories of docs/:
1034 * ``docs/user/``: introductory/tutorial material for end-users
1035 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1036 * ``docs/api/``: API reference material for client-developers
1037 * ``docs/ref/``: reference material for all groups
1038 * ``docs/howto/``: for component-developers and core-developers
1039 * ``docs/peps/``: Python Enhancement Proposals
1041 - Moved ``docs/*`` to ``docs/user/``.
1042 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1043 ``spec/`` to ``docs/dev``.
1044 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1045 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1046 - Moved ``alternatives.txt``, and ``problems.txt`` from
1047 ``spec/rst/`` to ``docs/dev/rst/``.
1048 - Moved ``reStructuredText.txt``, ``directives.txt``,
1049 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1050 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1051 ``roles.txt``, ``reStructuredText.txt`` to
1052 ``restructuredtext.txt``.
1053 - Moved ``spec/howto/`` to ``docs/howto``.
1055 In order to keep the CVS history of moved files, we supplied
1056 SourceForge with a `script for modifying the Docutils CVS
1059 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1061 After running the cleanup script:
1063 - Added ``docs/index.txt``.
1064 - Added a ``.htaccess`` file to the ``web`` module, containing
1065 redirects for all old paths to new paths. They'll preserve
1066 fragments (the "#name" part of a URL), and won't clutter up the
1067 file system, and will correct the URL in the user's browser.
1068 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1069 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1070 the "To Do" list itself in ``docs/dev/todo.txt``.
1071 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1072 section of ``docs/dev/todo.txt``.
1073 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1074 - Added "How To Report Bugs" to ``BUGS.txt``.
1075 - Went through all the sources and docs (including under web/) and
1076 updated links. Mostly done by Lea Wiemann; thanks Lea!
1077 (Still need to update links in the sandboxes.)
1081 * BUGS.txt: Added to project.
1083 * THANKS.txt: Added to project.
1085 * docutils/__init__.py:
1087 - 0.3.4: Post-release.
1091 - Added special error handling & advice for UnicodeEncodeError.
1092 - Refactored Publisher.publish (simplified exception handling &
1093 extracted debug dumps).
1094 - Renamed "enable_exit" parameter of convenience functions to
1095 "enable_exit_status".
1096 - Enabled traceback (exception propagation) by default in
1097 programmatic convenience functions.
1098 - Now publish_file and publish_cmdline convenience functions return
1099 the encoded string results in addition to their regular I/O.
1100 - Extracted common code from publish_file, publish_string, and
1101 publish_parts, into new publish_programmatically. Extracted
1102 settings code to ``Publisher.process_programmatic_settings``.
1103 - In Publisher.publish, disabled ``settings_overrides`` when
1104 ``settings`` is supplied; redundant.
1106 * docutils/frontend.py:
1108 - Added help text for "--output-encoding-error-handler" and
1109 "--error-encoding-error-handler".
1110 - Renamed "--exit" to "--exit-status".
1111 - Simplified default-setting code.
1113 * docutils/parsers/rst/__init__.py:
1115 - Added "--pep-base-url" and "--rfc-base-url" options.
1117 * docutils/parsers/rst/states.py:
1119 - Made URI recognition more aggressive and intelligent.
1121 * docutils/parsers/rst/directives/__init__.py:
1123 - Added several directive option conversion functions.
1125 * docutils/parsers/rst/directives/body.py:
1127 - Moved "table" directive to tables.py.
1129 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1132 * docutils/writers/latex2e.py:
1134 - Added "--table-style=(standard|booktabs|nolines)"
1135 - figures get "here" option (LaTeX per default puts them at bottom),
1136 and figure content is centered.
1137 - Rowspan support for tables.
1138 - Fix: admonition titles before first section.
1139 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1140 - Replave ``_`` in literal by an underlined blank, because it has the correct
1142 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1143 - A few unicode replacements, if output_encoding != utf
1144 - Add "--graphicx-option".
1145 - Indent literal-blocks.
1146 - Fix: omit ``\maketitle`` when there is no document title.
1148 * docs/index.txt: "Docutils Project Documentation Overview", added to
1151 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1152 Tool", added to project.
1154 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1156 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1158 * docs/dev/policies.txt: Added to project (extracted from
1159 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1161 * docs/dev/release.txt: Added to project (extracted from
1162 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1164 * docs/dev/testing.txt: Added to project.
1166 * docs/dev/website.txt: Added to project (extracted from
1167 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1169 * docs/ref/rst/directives.txt:
1171 - Added directives: "table", "csv-table".
1173 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1174 added to project. 1 page for syntax, and a 1 page reference for
1175 directives and roles. Source text to be used as-is; not meant to be
1178 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1179 with a change of title.
1181 * test/functional/, contents, and test/test_functional.py: Added to
1184 * tools/buildhtml.py: Fixed bug with config file handling.
1186 * tools/html.py: Removed from project (duplicate of rst2html.py).
1188 * tools/pep2html.py: Removed from project (duplicate of Python's
1189 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1190 Docutils-related PEPs in docs/peps/).
1192 * tools/rst2pseudoxml.py: Renamed from publish.py.
1194 * tools/rst2xml.py: Renamed from docutils-xml.py.
1196 * tools/test.txt: Removed from project; moved to
1197 docs/user/rst/demo.txt.
1199 * setup.py: Now also installs ``rst2latex.py``.
1202 Release 0.3.3 (2004-05-09)
1203 ==========================
1205 * docutils/__init__.py:
1207 - 0.3.1: Reorganized config file format (multiple sections); see
1209 - Added unknown_reference_resolvers attribute to TransformSpec.
1210 - 0.3.2: Interpreted text reorganization.
1215 - Catch system messages to stop tracebacks from parsing errors.
1216 - Catch exceptions during processing report & exit without
1217 tracebacks, except when "--traceback" used.
1218 - Reordered components for OptionParser; application comes last.
1219 - Added "config_section" parameter to several methods and functions,
1220 allowing front ends to easily specify their config file sections.
1221 - Added publish_parts convenience function to allow access to individual
1222 parts of a document.
1224 * docutils/examples.py: Added to project; practical examples of
1225 Docutils client code, to be used as-is or as models for variations.
1227 * docutils/frontend.py:
1229 - Added "--traceback" & "--no-traceback" options ("traceback"
1231 - Implemented support for config file reorganization:
1232 ``standard_config_files`` moved from ``ConfigParser`` to
1233 ``OptionParser``; added
1234 ``OptionParser.get_config_file_settings()`` and
1235 ``.get_standard_config_settings()``; support for old "[options]"
1236 section (with deprecation warning) and mapping from old to new
1238 - Reimplemented setting validation.
1239 - Enabled flexible boolean values: yes/no, true/false, on/off.
1240 - Added ``Values``, a subclass of ``optparse.Values``, with support
1241 for list setting attributes.
1242 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1243 thanks to Beni Cherniavsky.
1244 - Added "--no-section-numbering" option.
1248 - Catch IOErrors when opening source & destination files, report &
1249 exit without tracebacks. Added ``handle_io_errors`` parameter to
1250 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1252 * docutils/nodes.py:
1254 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1255 method definitions (via ``exec``) to dynamic assignments (via
1256 ``setattr``); thanks to Roman Suzi.
1257 - Encapsulated visitor dynamic assignments in a function; thanks to
1259 - Added indirect_reference_name attribute to the Targetable
1260 class. This attribute holds the whitespace_normalized_name
1261 (contains mixed case) of a target.
1263 * docutils/statemachine.py:
1265 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1266 - Added ``StringList.get_2D_block``.
1268 * docutils/utils.py:
1270 - Added "level" attribute to SystemMessage exceptions.
1272 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1275 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1278 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1279 Marcelo Huerta San Martin.
1281 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1282 mappings by Lalo Martins.
1284 * docutils/languages/ru.py: Added to project; Russian mappings by
1287 * docutils/parsers/rst/roles.py: Added to project. Contains
1288 interpreted text role functions, a registry for interpreted text
1289 roles, and an API for adding to and retrieving from the registry.
1290 Contributed by Edward Loper.
1292 * docutils/parsers/rst/states.py:
1294 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1295 - Allowed true em-dash character and "---" as block quote
1297 - Added support for <angle-bracketed> complex option arguments
1299 - Fixed handling of backslashes in substitution definitions.
1300 - Fixed off-by-1 error with extra whitespace after substitution
1301 definition directive.
1302 - Added inline markup parsing to field lists' field names.
1303 - Added support for quoted (and unindented) literal blocks.
1304 Driven in part by a bribe from Frank Siebenlist (thanks!).
1305 - Parser now handles escapes in URIs correctly.
1306 - Made embedded-URIs' reference text omittable. Idea from Beni
1308 - Refactored explicit target processing code.
1309 - Added name attribute to references containing the reference name only
1310 through whitespace_normalize_name (no case changes).
1311 - parse_target no longer returns the refname after going through
1312 normalize_name. This is now handled in make_target.
1313 - Fixed bug relating to role-less interpreted text in non-English
1315 - Reorganized interpreted text processing; moved code into the new
1316 roles.py module. Contributed by Edward Loper.
1317 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1318 ``parse_directive_block``.
1320 * docutils/parsers/rst/tableparser.py:
1322 - Reworked for ``StringList``, to support "include" directives in
1325 * docutils/parsers/rst/directives/__init__.py:
1327 - Renamed ``unchanged()`` directive option conversion function to
1328 ``unchanged_required``, and added a new ``unchanged``.
1329 - Catch unicode value too high error; fixes bug 781766.
1330 - Beefed up directive error reporting.
1332 * docutils/parsers/rst/directives/body.py:
1334 - Added basic "table" directive.
1336 * docutils/parsers/rst/directives/images.py:
1338 - Added "target" option to "image" directive.
1339 - Added name attribute to references containing the reference name only
1340 through whitespace_normalize_name (no case changes).
1342 * docutils/parsers/rst/directives/misc.py:
1344 - Isolated the import of the ``urllib2`` module; was causing
1345 problems on SourceForge (``libssl.so.2`` unavailable?).
1346 - Added the "role" directive for declaring custom interpreted text
1349 * docutils/parsers/rst/directives/parts.py:
1351 - The "contents" directive does more work up-front, creating the
1352 "topic" and "title", and leaving the "pending" node for the
1353 transform. Allows earlier reference resolution; fixes subtle bug.
1355 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1356 mappings by Jannie Hofmeyr.
1358 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1359 mappings by Marek Blaha.
1361 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1362 mappings by Marcelo Huerta San Martin.
1364 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1365 Portuguese mappings by Lalo Martins.
1367 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1368 mappings by Roman Suzi.
1370 * docutils/transforms/parts.py:
1372 - The "contents" directive does more work up-front, creating the
1373 "topic" and "title", and leaving the "pending" node for the
1374 transform. Allows earlier reference resolution; fixes subtle bug.
1375 - Added support for disabling of section numbering.
1377 * docutils/transforms/references.py:
1379 - Verifying that external targets are truly targets and not indirect
1380 references. This is because we are now adding a "name" attribute to
1381 references in addition to targets. Note sure if this is correct!
1382 - Added code to hook into the unknown_reference_resolvers list for a
1383 transformer in resolve_indirect_target. This allows the
1384 unknown_reference_resolvers to keep around indirect targets which
1385 docutils doesn't know about.
1386 - Added specific error message for duplicate targets.
1388 * docutils/transforms/universal.py:
1390 - Added FilterMessages transform (removes system messages below the
1391 verbosity threshold).
1392 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1393 to FinalCheckVisitor for application-specific handling of
1394 unresolvable references.
1395 - Added specific error message for duplicate targets.
1397 * docutils/writers/__init__.py:
1399 - Added assemble_parts method to the Writer class to allow for
1400 access to a documents individual parts.
1401 - Documented & set default for ``Writer.output`` attribute.
1403 * docutils/writers/html4css1.py:
1405 - Fixed unicode handling of attribute values (bug 760673).
1406 - Prevent duplication of "class" attribute values (bug report from
1408 - Improved table grid/border handling (prompted by report from Bob
1410 - Added support for table titles.
1411 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1413 - Added functionality to keep track of individual parts of a document
1414 and store them in a dictionary as the "parts" attribute of the writer.
1415 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1416 - Added proper support for the "scale" attribute of the "image"
1417 element. Contributed by Brent Cook.
1418 - Added ``--initial-header-level`` option.
1419 - Fixed bug: the body_pre_docinfo segment depended on there being a
1420 docinfo; if no docinfo, the document title was incorporated into
1421 the body segment. Adversely affected the publish_parts interface.
1423 * docutils/writers/latex2e.py:
1425 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1426 about a missing file.
1427 - Added options and support: ``--compound-enumerators``,
1428 ``--section-prefix-for-enumerators``, and
1429 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1431 - Added option ``--use-verbatim-when-possible``, to avoid
1432 problematic characters (eg, '~' in italian) in literal blocks.
1433 - It's now possible to use four section levels in the `book` and
1434 `report` LaTeX classes. The default `article` class still has
1437 * docs/config.txt: "Docutils Configuration Files", added to project.
1438 Moved config file entry descriptions from tools.txt.
1442 - Moved config file entry descriptions to config.txt.
1444 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1447 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1448 Text Roles", added to project.
1450 * spec/rst/reStructuredText.txt:
1452 - Added description of support for <angle-bracketed> complex option
1453 arguments to option lists.
1454 - Added subsections for indented and quoted literal blocks.
1456 * test: Continually adding & updating tests.
1458 - Added test/test_settings.py & test/data/config_*.txt support
1460 - Added test/test_writers/test_htmlfragment.py.
1462 * test/DocutilsTestSupport.py:
1464 - Refactored LaTeX publisher test suite/case class names to make
1465 testing other writers easier.
1466 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1467 to test the processing of HTML fragments which use the new
1468 publish_parts convenience function.
1470 * tools/buildhtml.py:
1472 - Added support for the "--prune" option.
1473 - Removed dependency on pep2html.py; plaintext PEPs no longer
1476 * tools/docutils.conf:
1478 - Updated for configuration file reorganization.
1480 * tools/rst2html.py:
1482 - copied from tools/html.py
1486 - added a 'scripts' section to configuration
1487 - added 'tools/rst2html.py' to the scripts section
1490 Release 0.3 (2003-06-24)
1491 ========================
1495 * Renamed "attribute" to "option" for directives/extensions.
1497 * Renamed transform method "transform" to "apply".
1499 * Renamed "options" to "settings" for runtime settings (as set by
1500 command-line options). Sometimes "option" (singular) became
1501 "settings" (plural). Some variations below:
1503 - document.options -> document.settings (stored in other objects as
1505 - option_spec -> settings_spec (not directives though)
1506 - OptionSpec -> SettingsSpec
1507 - cmdline_options -> settings_spec
1508 - relative_path_options -> relative_path_settings
1509 - option_default_overrides -> settings_default_overrides
1510 - Publisher.set_options -> Publisher.get_settings
1514 * COPYING.txt: Added "Public Domain Dedication".
1516 * FAQ.txt: Frequently asked questions, added to project.
1520 - Updated with PyPI Trove classifiers.
1521 - Conditional installation of third-party modules.
1523 * docutils/__init__.py:
1525 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1526 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1527 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1528 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1529 option and its effect on the PEP template & writer.
1530 - Bumped version to 0.2.4 due to changes to the PEP template &
1532 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1533 - Added ``TransformSpec`` class for new transform system.
1534 - Bumped version to 0.2.6 for API changes (renaming).
1535 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1536 convenience functions.
1537 - Added ``Component.component_type`` attribute.
1538 - Bumped version to 0.2.8 because of the internal parser switch from
1539 plain lists to the docutils.statemachine.StringList objects.
1540 - Bumped version to 0.2.9 because of the frontend.py API changes.
1541 - Bumped version to 0.2.10 due to changes to the project layout
1542 (third-party modules removed from the "docutils" package), and
1543 signature changes in ``io.Input``/``io.Output``.
1544 - Changed version to 0.3.0 for release.
1548 - Made ``publish()`` a bit more convenient.
1549 - Generalized ``Publisher.set_io``.
1550 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1551 parameters; improved its docstring.
1552 - Added ``publish_file()`` and ``publish_string()``.
1553 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1555 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1556 "--dump-transforms" hidden options.
1557 - Added ``Publisher.apply_transforms()`` method.
1558 - Added ``Publisher.set_components()`` method; support for
1559 ``publish_*()`` conveninece functions.
1560 - Moved config file processing to docutils/frontend.py.
1561 - Added support for exit status ("exit_level" setting &
1562 ``enable_exit`` parameter for Publisher.publish() and convenience
1565 * docutils/frontend.py:
1567 - Check for & exit on identical source & destination paths.
1568 - Fixed bug with absolute paths & "--config".
1569 - Set non-command-line defaults in ``OptionParser.__init__()``:
1570 ``_source`` & ``_destination``.
1571 - Distributed ``relative_path_settings`` to components; updated
1572 ``OptionParser.populate_from_components()`` to combine it all.
1573 - Require list of keys in ``make_paths_absolute`` (was implicit in
1574 global ``relative_path_settings``).
1575 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1576 "--dump-settings", and "--dump-transforms" hidden options.
1577 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1578 code, replaced with correct code.
1579 - Added validation functionality for config files.
1580 - Added "--error-encoding" option/setting, "_disable_config"
1582 - Added encoding validation; updated "--input-encoding" and
1583 "--output-encoding"; added "--error-encoding-error-handler" and
1584 "--output-encoding-error-handler".
1585 - Moved config file processing from docutils/core.py.
1586 - Updated ``OptionParser.populate_from_components`` to handle new
1587 ``SettingsSpec.settings_defaults`` dict.
1588 - Added support for "-" => stdin/stdout.
1589 - Added "exit_level" setting ("--exit" option).
1593 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1594 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1595 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1596 - ``FileOutput.write()`` now returns the encoded output string.
1597 - Try to get path/stream name automatically in ``FileInput`` &
1599 - Added defaults for source & destination paths.
1600 - Allow for Unicode I/O with an explicit "unicode" encoding.
1601 - Added ``Output.encode()``.
1602 - Removed dependency on runtime settings; pass encoding directly.
1603 - Recognize Unicode strings in ``Input.decode()``.
1604 - Added support for output encoding error handlers.
1606 * docutils/nodes.py:
1608 - Added "Invisible" element category class.
1609 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1610 modification during a traversal.
1611 - Added element classes: ``line_block``, ``generated``, ``address``,
1612 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1613 ``superscript``, ``subscript``, ``inline``
1614 - Added support for lists of nodes to ``Element.insert()``.
1615 - Fixed parent linking in ``Element.replace()``.
1616 - Added new abstract superclass ``FixedTextElement``; adds
1617 "xml:space" attribute.
1618 - Added support for "line" attribute of ``system_message`` nodes.
1619 - Added support for the observer pattern from ``utils.Reporter``.
1620 Added ``parse_messages`` and ``transform_messages`` attributes to
1621 ``document``, removed ``messages``. Added ``note_parse_message``
1622 and ``note_transform_message`` methods.
1623 - Added support for improved diagnostics:
1625 - Added "document", "source", and "line" internal attributes to
1626 ``Node``, set by ``Node.setup_child()``.
1627 - Converted variations on ``node.parent = self`` to
1628 ``self.setup_child(node)``.
1629 - Added ``document.current_source`` & ``.current_line``
1630 attributes, and ``.note_source`` observer method.
1631 - Changed "system_message" output to GNU-Tools format.
1633 - Added a "rawsource" attribute to the ``Text`` class, for text
1634 before backslash-escape resolution.
1635 - Support for new transform system.
1636 - Reworked ``pending`` element.
1637 - Fixed XML DOM bug (SF #660611).
1638 - Removed the ``interpeted`` element class and added
1639 ``title_reference``, ``abbreviation``, ``acronym``.
1640 - Made substitutions case-sensitive-but-forgiving; moved some code
1642 - Fixed Unicode bug on element attributes (report: William Dode).
1644 * docutils/optik.py: Removed from project; replaced with
1645 extras/optparse.py and extras/textwrap.py. These will be installed
1646 only if they're not already present in the Python installation.
1648 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1649 only if it's not already present in the Python installation.
1651 * docutils/statemachine.py:
1653 - Factored out ``State.add_initial_transitions()`` so it can be
1655 - Converted whitespace-specific "blank" and "indent" transitions
1656 from special-case code to ordinary transitions: removed
1657 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1658 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1659 ``ws_initial_transitions`` attributes.
1660 - Removed ``State.match_transition()`` after merging it into
1662 - Added ``StateCorrection`` exception.
1663 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1664 (moved ``TransitionCorrection`` support there too.)
1665 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1666 ``EOFError`` instead of ``IndexError``.
1667 - Added ``State.no_match`` method.
1668 - Added support for the Observer pattern, triggered by input line
1670 - Added ``strip_top`` parameter to
1671 ``StateMachineWS.get_first_known_indented``.
1672 - Made ``context`` a parameter to ``StateMachine.run()``.
1673 - Added ``ViewList`` & ``StringList`` classes;
1674 ``extract_indented()`` becomes ``StringList.get_indented()``.
1675 - Added ``StateMachine.insert_input()``.
1676 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1677 thanks to) Fred Drake.
1679 * docutils/utils.py:
1681 - Added a ``source`` attribute to Reporter instances and
1682 ``system_message`` elements.
1683 - Added an observer pattern to ``utils.Reporter`` to keep track of
1685 - Fixed bugs in ``relative_path()``.
1686 - Added support for improved diagnostics.
1687 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1688 - Added support for encoding Reporter stderr output, and encoding
1690 - Reporter keeps track of the highest level system message yet
1693 * docutils/languages: Fixed bibliographic field language lookups.
1695 * docutils/languages/es.py: Added to project; Spanish mappings by
1696 Marcelo Huerta San Martin.
1698 * docutils/languages/fr.py: Added to project; French mappings by
1701 * docutils/languages/it.py: Added to project; Italian mappings by
1704 * docutils/languages/sk.py: Added to project; Slovak mappings by
1707 * docutils/parser/__init__.py:
1709 - Added ``Parser.finish_parse()`` method.
1711 * docutils/parser/rst/__init__.py:
1713 - Added options: "--pep-references", "--rfc-references",
1714 "--tab-width", "--trim-footnote-reference-space".
1716 * docutils/parsers/rst/states.py:
1718 - Changed "title under/overline too short" system messages from INFO
1719 to WARNING, and fixed its insertion location.
1720 - Fixed enumerated list item parsing to allow paragraphs & section
1721 titles to begin with enumerators.
1722 - Converted system messages to use the new "line" attribute.
1723 - Fixed a substitution reference edge case.
1724 - Added support for "--pep-references" and "--rfc-references"
1725 options; reworked ``Inliner`` code to make customization easier.
1726 - Removed field argument parsing.
1727 - Added support for short section title over/underlines.
1728 - Fixed "simple reference name" regexp to ignore text like
1729 "object.__method__"; not an anonymous reference.
1730 - Added support for improved diagnostics.
1731 - Reworked directive API, based on Dethe Elza's contribution. Added
1732 ``Body.parse_directive()``, ``.parse_directive_options()``,
1733 ``.parse_directive_arguments()`` methods.
1734 - Added ``ExtensionOptions`` class, to parse directive options
1735 without parsing field bodies. Factored
1736 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1737 ``ExtensionOptions``.
1738 - Improved definition list term/classifier parsing.
1739 - Added warnings for unknown directives.
1740 - Renamed ``Stuff`` to ``Struct``.
1741 - Now flagged as errors: transitions at the beginning or end of
1742 sections, empty sections (except title), and empty documents.
1743 - Updated for ``statemachine.StringList``.
1744 - Enabled recognition of schemeless email addresses in targets.
1745 - Added support for embedded URIs in hyperlink references.
1746 - Added backslash-escapes to inline markup end-string suffix.
1747 - Added support for correct interpreted text processing.
1748 - Fixed nested title parsing (topic, sidebar directives).
1749 - Added special processing of backslash-escaped whitespace (idea
1750 from David Abrahams).
1751 - Made substitutions case-sensitive-but-forgiving; moved some code
1752 to ``docutils.nodes``.
1753 - Added support for block quote attributions.
1754 - Added a kludge to work-around a conflict between the bubble-up
1755 parser strategy and short titles (<= 3 char-long over- &
1756 underlines). Fixes SF bug #738803 "infinite loop with multiple
1757 titles" submitted by Jason Diamond.
1758 - Added explicit interpreted text roles for standard inline markup:
1759 "emphasis", "strong", "literal".
1760 - Implemented "superscript" and "subscript" interpreted text roles.
1761 - Added initial support for "abbreviation" and "acronym" roles;
1763 - Added support for "--trim-footnote-reference-space" option.
1764 - Optional space before colons in directives & hyperlink targets.
1766 * docutils/parsers/rst/tableparser.py:
1768 - Fixed a bug that was producing unwanted empty rows in "simple"
1770 - Detect bad column spans in "simple" tables.
1772 * docutils/parsers/rst/directives: Updated all directive functions to
1775 * docutils/parsers/rst/directives/__init__.py:
1777 - Added ``flag()``, ``unchanged()``, ``path()``,
1778 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1779 directive option helper functions.
1780 - Added warnings for unknown directives.
1781 - Return ``None`` for missing directives.
1782 - Added ``register_directive()``, thanks to William Dode and Paul
1785 * docutils/parsers/rst/directives/admonitions.py:
1787 - Added "admonition" directive.
1789 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1790 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1791 "parsed-literal", "rubric", "epigraph", "highlights" and
1792 "pull-quote" directives.
1794 * docutils/parsers/rst/directives/images.py:
1796 - Added an "align" attribute to the "image" & "figure" directives
1797 (by Adam Chodorowski).
1798 - Added "class" option to "image", and "figclass" to "figure".
1800 * docutils/parsers/rst/directives/misc.py:
1802 - Added "include", "raw", and "replace" directives, courtesy of
1804 - Added "unicode" and "class" directives.
1806 * docutils/parsers/rst/directives/parts.py:
1808 - Added the "sectnum" directive; by Dmitry Jemerov.
1809 - Added "class" option to "contents" directive.
1811 * docutils/parsers/rst/directives/references.py: Added to project.
1812 Contains the "target-notes" directive.
1814 * docutils/parsers/rst/languages/__init__.py:
1816 - Return ``None`` from get_language() for missing language modules.
1818 * docutils/parsers/rst/languages/de.py: Added to project; German
1819 mappings by Engelbert Gruber.
1821 * docutils/parsers/rst/languages/en.py:
1823 - Added interpreted text roles mapping.
1825 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1826 mappings by Marcelo Huerta San Martin.
1828 * docutils/parsers/rst/languages/fr.py: Added to project; French
1829 mappings by William Dode.
1831 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1832 mappings by Nicola Larosa.
1834 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1835 mappings by Miroslav Vasko.
1837 * docutils/readers/__init__.py:
1839 - Added support for the observer pattern from ``utils.Reporter``, in
1840 ``Reader.parse`` and ``Reader.transform``.
1841 - Removed ``Reader.transform()`` method.
1842 - Added default parameter values to ``Reader.__init__()`` to make
1843 instantiation easier.
1844 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1846 * docutils/readers/pep.py:
1848 - Added the ``peps.TargetNotes`` transform to the Reader.
1849 - Removed PEP & RFC reference detection code; moved to
1850 parsers/rst/states.py as options (enabled here by default).
1851 - Added support for pre-acceptance PEPs (no PEP number yet).
1852 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1855 * docutils/readers/python: Python Source Reader subpackage added to
1856 project, including preliminary versions of:
1859 - moduleparser.py: Parser for Python modules.
1861 * docutils/transforms/__init__.py:
1863 - Added ``Transformer`` class and completed transform reform.
1864 - Added unknown_reference_resolvers list for each transformer. This list holds
1865 the list of functions provided by each component of the transformer that
1866 help resolve references.
1868 * docutils/transforms/frontmatter.py:
1870 - Improved support for generic fields.
1871 - Fixed bibliographic field language lookups.
1873 * docutils/transforms/misc.py: Added to project. Miscellaneous
1876 * docutils/transforms/parts.py:
1878 - Moved the "id" attribute from TOC list items to the references
1879 (``Contents.build_contents()``).
1880 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1881 - Added "class" attribute support to ``Contents``.
1883 * docutils/transforms/peps.py:
1885 - Added ``mask_email()`` function, updating to pep2html.py's
1887 - Linked "Content-Type: text/x-rst" to PEP 12.
1888 - Added the ``TargetNotes`` PEP-specific transform.
1889 - Added ``TargetNotes.cleanup_callback``.
1890 - Added title check to ``Headers``.
1892 * docutils/transforms/references.py:
1894 - Added the ``TargetNotes`` generic transform.
1895 - Split ``Hyperlinks`` into multiple transforms.
1896 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1897 - Added check for circular indirect references.
1898 - Made substitutions case-sensitive-but-forgiving.
1900 * docutils/transforms/universal.py:
1902 - Added support for the "--expose-internal-attributes" option.
1903 - Removed ``Pending`` transform classes & data.
1905 * docutils/writers/__init__.py:
1907 - Removed ``Writer.transform()`` method.
1909 * docutils/writers/docutils-xml.py:
1911 - Added XML and doctype declarations.
1912 - Added "--no-doctype" and "--no-xml-declaration" options.
1914 * docutils/writers/html4css1.py:
1916 - "name" attributes only on these tags: a, applet, form, frame,
1918 - Added "name" attribute to <a> in section titles for Netscape 4
1919 support (bug report: Pearu Peterson).
1920 - Fixed targets (names) on footnote, citation, topic title,
1921 problematic, and system_message nodes (for Netscape 4).
1922 - Changed field names from "<td>" to "<th>".
1923 - Added "@" to "@" encoding to thwart address harvesters.
1924 - Improved the vertical whitespace optimization; ignore "invisible"
1925 nodes (targets, comments, etc.).
1926 - Improved inline literals with ``<span class="pre">`` around chunks
1927 of text and `` `` for runs of spaces.
1928 - Improved modularity of output; added ``self.body_pre_docinfo`` and
1929 ``self.docinfo`` segments.
1930 - Added support for "line_block", "address" elements.
1931 - Improved backlinks (footnotes & system_messages).
1932 - Improved system_message output.
1933 - Redefined "--stylesheet" as containing an invariant URL, used
1934 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
1936 - Added "--footnote-references" option (superscript or brackets).
1937 - Added "--compact-lists" and "--no-compact-lists" options.
1938 - Added "--embed-stylesheet" and "--link-stylesheet" options;
1939 factored out ``HTMLTranslator.get_stylesheet_reference()``.
1940 - Improved field list rendering.
1941 - Added Docutils version to "generator" meta tag.
1942 - Fixed a bug with images; they must be inline, so wrapped in <p>.
1943 - Improved layout of <pre> HTML source.
1944 - Fixed attribute typo on <colspec>.
1945 - Refined XML prologue.
1946 - Support for no stylesheet.
1947 - Removed "interpreted" element support.
1948 - Added support for "title_reference", "sidebar", "attribution",
1949 "rubric", and generic "admonition" elements.
1950 - Added "--attribution" option.
1951 - Added support for "inline", "subscript", "superscript" elements.
1952 - Added initial support for "abbreviation" and "acronym";
1955 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
1959 - Double quotes in literal blocks (special treatment for de/ngerman).
1960 - Added '--hyperlink-color' option ('0' turns off coloring of links).
1961 - Added "--attribution" option.
1962 - Right align attributions.
1964 * docutils/writers/pep_html.py:
1966 - Parameterized output encoding in PEP template.
1967 - Reworked substitutions from ``locals()`` into ``subs`` dict.
1968 - Redefined "--pep-stylesheet" as containing an invariant URL, used
1969 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
1971 - Added an override on the "--footnote-references" option.
1972 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
1973 - Added Docutils version to "generator" meta tag.
1974 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1978 - Added a "silent" setting for ``buildhtml.py``.
1979 - Added a "Getting Help" section.
1980 - Rearranged the structure.
1981 - Kept up to date, with new settings, command-line options etc.
1982 - Added section for ``rst2latex.py`` (Engelbert Gruber).
1983 - Converted settings table into a definition list.
1985 * docs/rst/quickstart.txt:
1987 - Added a table of contents.
1988 - Added feedback information.
1989 - Added mention of minimum section title underline lengths.
1990 - Removed the 4-character minimum for section title underlines.
1992 * docs/rst/quickref.html:
1994 - Added a "Getting Help" section.
1995 - Added a style to make section title backlinks more subtle.
1996 - Added mention of minimum section title underline lengths.
1997 - Removed the 4-character minimum for section title underlines.
1999 * extras: Directory added to project; contains third-party modules
2000 that Docutils depends on (optparse, textwrap, roman). These are
2001 only installed if they're not already present.
2003 * licenses: Directory added to project; contains copies of license
2004 files for non-public-domain files.
2008 - Changed the focus. It's about DTD elements: structural
2009 relationships, semantics, and external (public) attributes. Not
2010 about the element class library.
2011 - Moved some implementation-specific stuff into ``docutils.nodes``
2013 - Wrote descriptions of all common attributes and parameter
2014 entities. Filled in introductory material.
2015 - Working through the element descriptions: 55 down, 37 to go.
2016 - Removed "Representation of Horizontal Rules" to
2017 spec/rst/alternatives.txt.
2019 * spec/docutils.dtd:
2021 - Added "generated" inline element.
2022 - Added "line_block" body element.
2023 - Added "auto" attribute to "title".
2024 - Changed content models of "literal_block" and "doctest_block" to
2026 - Added ``%number;`` attribute type parameter entity.
2027 - Changed ``%structural.elements;`` to ``%section.elements``.
2028 - Updated attribute types; made more specific.
2029 - Added "address" bibliographic element.
2030 - Added "line" attribute to ``system_message`` element.
2031 - Removed "field_argument" element; "field_name" may contain
2032 multiple words and whitespace.
2033 - Changed public identifier to docutils.sf.net.
2034 - Removed "interpreted" element; added "title_reference",
2035 "abbreviation", "acronym".
2036 - Removed "refuri" attribute from "footnote_reference" and
2037 "citation_reference".
2038 - Added "sidebar", "rubric", "attribution", "admonition",
2039 "superscript", "subscript", and "inline" elements.
2041 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2043 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2045 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2047 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2050 * spec/transforms.txt: Added to project.
2052 * spec/howto: Added subdirectory, for developer how-to docs.
2054 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2055 Elza, edited & extended by David Goodger.
2057 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2060 * spec/rst/alternatives.txt:
2062 - Added "Doctree Representation of Transitions" from
2064 - Updated "Inline External Targets" & closed the debate.
2065 - Added ideas for interpreted text syntax extensions.
2066 - Added "Nested Inline Markup" section.
2068 * spec/rst/directives.txt:
2070 - Added directives: "topic", "sectnum", "target-notes",
2071 "line-block", "parsed-literal", "include", "replace", "sidebar",
2072 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2074 - Formalized descriptions of directive details.
2075 - Added an "align" attribute to the "image" & "figure" directives
2076 (by Adam Chodorowski).
2077 - Added "class" options to "topic", "sidebar", "line-block",
2078 "parsed-literal", "contents", and "image"; and "figclass" to
2081 * spec/rst/interpreted.txt: Added to project. Descriptions of
2082 interpreted text roles.
2084 * spec/rst/introduction.txt:
2086 - Added pointers to material for new users.
2088 * spec/rst/reStructuredText.txt:
2090 - Disambiguated comments (just add a newline after the "::").
2091 - Updated enumerated list description; added a discussion of the
2092 second-line validity checking.
2093 - Updated directive description.
2094 - Added a note redirecting newbies to the user docs.
2095 - Expanded description of inline markup start-strings in non-markup
2097 - Removed field arguments and made field lists a generic construct.
2098 - Removed the 4-character minimum for section title underlines.
2099 - Clarified term/classifier delimiter & inline markup ambiguity
2101 - Added "Embedded URIs".
2102 - Updated "Interpreted Text" section.
2103 - Added "Character-Level Inline Markup" section.
2105 * test: Continually adding & updating tests.
2107 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2108 - Moved test/test_pep/ to test/test_readers/test_pep/.
2109 - Added test/test_readers/test_python/.
2110 - Added test/test_writers/ (Engelbert Gruber).
2114 - Made the ``locale.setlocale()`` calls in front ends
2117 * tools/buildhtml.py:
2119 - Added "--silent" option.
2120 - Fixed bug with absolute paths & "--config".
2121 - Updated for new I/O classes.
2122 - Added some exception handling.
2123 - Separated publishers' setting defaults; prevents interference.
2124 - Updated for new ``publish_file()`` convenience function.
2126 * tools/pep-html-template:
2128 - Allow for "--embed-stylesheet".
2129 - Added Docutils version to "generator" meta tag.
2130 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2131 - Conform to XHTML spec.
2133 * tools/pep2html.py:
2135 - Made ``argv`` a parameter to ``main()``.
2136 - Added support for "Content-Type:" header & arbitrary PEP formats.
2137 - Linked "Content-Type: text/plain" to PEP 9.
2138 - Files skipped (due to an error) are not pushed onto the server.
2139 - Updated for new I/O classes.
2140 - Added ``check_requirements()`` & ``pep_type_error()``.
2141 - Added some exception handling.
2142 - Updated for new ``publish_string()`` convenience function.
2143 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2145 * tools/quicktest.py:
2147 - Added "-V"/"--version" option.
2149 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2151 * tools/unicode2rstsubs.py: Added to project. Produces character
2152 entity files (reSructuredText substitutions) from the MathML master
2155 * tools/editors: Support code for editors, added to project. Contains
2156 ``emacs/restructuredtext.el``.
2158 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2160 - Added style for chunks of inline literals.
2161 - Removed margin for first child of table cells.
2162 - Right-aligned field list names.
2163 - Support for auto-numbered section titles in TOCs.
2164 - Increased the size of inline literals (<tt>) in titles.
2165 - Restored the light gray background for inline literals.
2166 - Added support for "line_block" elements.
2167 - Added style for "address" elements.
2168 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2169 - Improved field list rendering.
2170 - Vertical whitespace improvements.
2171 - Removed "a.target" style.
2173 * tools/stylesheets/pep.css:
2175 - Fixed nested section margins.
2176 - Other changes parallel those of ``../default.css``.
2179 Release 0.2 (2002-07-31)
2180 ========================
2184 - The word "component" was being used ambiguously. From now on,
2185 "component" will be used to mean "Docutils component", as in Reader,
2186 Writer, Parser, or Transform. Portions of documents (Table of
2187 Contents, sections, etc.) will be called "document parts".
2188 - Did a grand renaming: a lot of ``verylongnames`` became
2189 ``very_long_names``.
2190 - Cleaned up imports: no more relative package imports or
2191 comma-separated lists of top-level modules.
2192 - Added support for an option values object which carries default
2193 settings and overrides (from command-line options and library use).
2194 - Added internal Unicode support, and support for both input and
2196 - Added support for the ``docutils.io.IO`` class & subclasses.
2200 * docutils/__init__.py:
2202 - Added ``ApplicationError`` and ``DataError``, for use throughout
2204 - Added ``Component`` base class for Docutils components; implements
2205 the ``supports`` method.
2206 - Added ``__version__`` (thus, ``docutils.__version__``).
2210 - Removed many keyword parameters to ``Publisher.__init__()`` and
2211 ``publish()``; bundled into an option values object. Added
2212 "argv", "usage", "description", and "option_spec" parameters for
2213 command-line support.
2214 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2216 - Reworked I/O model for ``docutils.io`` wrappers.
2217 - Updated ``Publisher.set_options()``; now returns option values
2219 - Added support for configuration files (/etc/docutils.conf,
2220 ./docutils.conf, ~/.docutils).
2221 - Added ``Publisher.setup_option_parser()``.
2222 - Added default usage message and description.
2224 * docutils/frontend.py: Added to project; support for front-end
2225 (command-line) scripts. Option specifications may be augmented by
2226 components. Requires Optik (http://optik.sf.net/) for option
2227 processing (installed locally as docutils/optik.py).
2229 * docutils/io.py: Added to project; uniform API for a variety of input
2232 * docutils/nodes.py:
2234 - Added ``TreeCopyVisitor`` class.
2235 - Added a ``copy`` method to ``Node`` and subclasses.
2236 - Added a ``SkipDeparture`` exception for visitors.
2237 - Renamed ``TreePruningException`` from ``VisitorException``.
2238 - Added docstrings to ``TreePruningException``, subclasses, and
2240 - Improved docstrings.
2241 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2242 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2244 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2245 ``PreDecorative`` mixin.
2246 - Reworked the name/id bookkeeping; to ``document``, removed
2247 ``explicit_targets`` and ``implicit_targets`` attributes, added
2248 ``nametypes`` attribute and ``set_name_id_map`` method.
2249 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2251 - Added ``document.has_name()`` method.
2252 - Fixed DOM generation for list-attributes.
2253 - Added category class ``Labeled`` (used by footnotes & citations).
2254 - Added ``Element.set_class()`` method (sets "class" attribute).
2256 * docutils/optik.py: Added to project. Combined from the Optik
2257 package, with added option groups and other modifications. The use
2258 of this module is probably only temporary.
2260 * docutils/statemachine.py:
2262 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2263 - Added underscores to improve many awkward names.
2264 - In ``string2lines()``, changed whitespace normalizing translation
2265 table to regexp; restores Python 2.0 compatibility with Unicode.
2267 * docutils/urischemes.py:
2269 - Filled in some descriptions.
2270 - Added "shttp" scheme.
2272 * docutils/utils.py:
2274 - Added ``clean_rcs_keywords`` function (moved from
2275 docutils/transforms/frontmatter.py
2276 ``DocInfo.filter_rcs_keywords``).
2277 - Added underscores to improve many awkward names.
2278 - Changed names of Reporter's thresholds:
2279 warning_level -> report_level; error_level -> halt_level.
2280 - Moved ``utils.id()`` to ``nodes.make_id()``.
2281 - Added ``relative_path(source, target)``.
2283 * docutils/languages/de.py: German mappings; added to project. Thanks
2284 to Gunnar Schwant for the translations.
2286 * docutils/languages/en.py: Added "Dedication" bibliographic field
2289 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2292 * docutils/parsers/rst/states.py:
2294 - Added underscores to improve many awkward names.
2295 - Added RFC-2822 header support.
2296 - Extracted the inline parsing code from ``RSTState`` to a separate
2297 class, ``Inliner``, which will allow easy subclassing.
2298 - Made local bindings for ``memo`` container & often-used contents
2299 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2300 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2301 - Added ``MarkupMismatch`` exception; for late corrections.
2302 - Added ``-/:`` characters to inline markup's start string prefix,
2303 ``/`` to end string suffix.
2304 - Fixed a footnote bug.
2305 - Fixed a bug with literal blocks.
2306 - Applied patch from Simon Budig: simplified regexps with symbolic
2307 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2308 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2309 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2310 - Allowed non-ASCII in "simple names" (directive names, field names,
2312 - Converted ``Inliner.patterns.initial`` to be dynamically built
2313 from parts with ``build_regexp()`` function.
2314 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2315 - Updated docstrings.
2316 - Changed "table" to "grid_table"; added "simple_table" support.
2318 * docutils/parsers/rst/tableparser.py:
2320 - Changed ``TableParser`` to ``GridTableParser``.
2321 - Added ``SimpleTableParser``.
2322 - Refactored naming.
2324 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2325 a fallback language for directive names.
2327 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2328 directive to use a ``pending`` element, used only by HTML writers.
2330 * docutils/parsers/rst/directives/parts.py: Renamed from
2333 - Added "backlinks" attribute to "contents" directive.
2335 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2336 project by Adam Chodorowski.
2338 * docutils/readers/__init__.py: Gave Readers more control over
2339 choosing and instantiating Parsers.
2341 * docutils/readers/pep.py: Added to project; for PEP processing.
2343 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2344 requires a ``component`` parameter.
2346 * docutils/transforms/components.py: Added to project; transforms
2347 related to Docutils components.
2349 * docutils/transforms/frontmatter.py:
2351 - In ``DocInfo.extract_authors``, check for a single "author" in an
2352 "authors" group, and convert it to a single "author" element.
2353 - Added support for "Dedication" and generic bibliographic fields.
2355 * docutils/transforms/peps.py: Added to project; PEP-specific.
2357 * docutils/transforms/parts.py: Renamed from old components.py.
2359 - Added filter for `Contents`, to use alt-text for inline images,
2360 and to remove inline markup that doesn't make sense in the ToC.
2361 - Added "name" attribute to TOC topic depending on its title.
2362 - Added support for optional TOC backlinks.
2364 * docutils/transforms/references.py: Fixed indirect target resolution
2365 in ``Hyperlinks`` transform.
2367 * docutils/transforms/universal.py:
2369 - Changed ``Messages`` transform to properly filter out system
2370 messages below the warning threshold.
2371 - Added ``Decorations`` transform (support for ``--generator``,
2372 ``--date``, ``--time``, ``--source-link`` options).
2374 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2375 Engelbert Gruber's PDF writer.
2377 * docutils/writers/html4css1.py:
2379 - Made XHTML-compatible (switched to lowercase element & attribute
2380 names; empty tag format).
2381 - Escape double-dashes in comment text.
2382 - Improved boilerplate & modularity of output.
2383 - Exposed modular output in Writer class.
2384 - Added a "generator" meta tag to <head>.
2385 - Added support for the ``--stylesheet`` option.
2386 - Added support for ``decoration``, ``header``, and ``footer``
2388 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2389 translation table to regexp; restores Python 2.0 compatibility
2391 - Added the translator class as instance variable to the Writer, to
2392 make it easily subclassable.
2393 - Improved option list spacing (thanks to Richard Jones).
2394 - Modified field list output.
2395 - Added backlinks to footnotes & citations.
2396 - Added percentage widths to "<col>" tags (from colspec).
2397 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2398 "<span>" changed to "<var>".
2399 - Inline literals: "<code>" changed to "<tt>".
2400 - Many changes to optimize vertical space: compact simple lists etc.
2401 - Add a command-line options & directive attributes to control TOC
2402 and footnote/citation backlinks.
2403 - Added support for optional footnote/citation backlinks.
2404 - Added support for generic bibliographic fields.
2405 - Identify backrefs.
2406 - Relative URLs for stylesheet links.
2408 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2409 PEPs (subclass of ``html4css1.Writer``).
2411 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2413 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2414 of the Docutils internal doctree in XML.
2416 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2420 - Changed the title to "The Docutils Document Tree".
2421 - Added "Hyperlink Bookkeeping" section.
2423 * spec/docutils.dtd:
2425 - Added ``decoration``, ``header``, and ``footer`` elements.
2426 - Brought ``interpreted`` element in line with the parser: changed
2427 attribute "type" to "role", added "position".
2428 - Added support for generic bibliographic fields.
2430 * spec/notes.txt: Continual updates. Added "Project Policies".
2432 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2435 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2437 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2438 mailing list discussions.
2440 * spec/pep-0287.txt:
2442 - Renamed to "reStructuredText Docstring Format".
2444 - Reworked Q&A as an enumerated list.
2445 - Converted to reStructuredText format.
2447 * spec/pysource.dtd:
2449 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2451 * spec/pysource.txt: Removed from project. Moved much of its contents
2454 * spec/rst/alternatives.txt:
2456 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2457 - Added "Inline External Targets" section.
2459 * spec/rst/directives.txt:
2461 - Added "backlinks" attribute to "contents" directive.
2463 * spec/rst/problems.txt:
2465 - Updated the Enumerated List Markup discussion.
2466 - Added new alternative table markup syntaxes.
2468 * spec/rst/reStructuredText.txt:
2470 - Clarified field list usage.
2471 - Updated enumerated list description.
2472 - Clarified purpose of directives.
2473 - Added ``-/:`` characters to inline markup's start string prefix,
2474 ``/`` to end string suffix.
2475 - Updated "Authors" bibliographic field behavior.
2476 - Changed "inline hyperlink targets" to "inline internal targets".
2477 - Added "simple table" syntax to supplement the existing but
2478 newly-renamed "grid tables".
2479 - Added cautions for anonymous hyperlink use.
2480 - Added "Dedication" and generic bibliographic fields.
2482 * test: Made test modules standalone (subdirectories became packages).
2484 * test/DocutilsTestSupport.py:
2486 - Added support for PEP extensions to reStructuredText.
2487 - Added support for simple tables.
2488 - Refactored naming.
2490 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2492 - Now supports true packages containing test modules
2493 (``__init__.py`` files required); fixes duplicate module name bug.
2495 * test/test_pep/: Subpackage added to project; PEP testing.
2497 * test/test_rst/test_SimpleTableParser.py: Added to project.
2501 - Updated html.py and publish.py front-end tools to use the new
2502 command-line processing facilities of ``docutils.frontend``
2503 (exposed in ``docutils.core.Publisher``), reducing each to just a
2505 - Added ``locale.setlocale()`` calls to front-end tools.
2507 * tools/buildhtml.py: Added to project; batch-generates .html from all
2508 the .txt files in directories and subdirectories.
2510 * tools/default.css:
2512 - Added support for ``header`` and ``footer`` elements.
2513 - Added styles for "Dedication" topics (biblio fields).
2515 * tools/docutils.conf: A configuration file; added to project.
2517 * tools/docutils-xml.py: Added to project.
2519 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2521 * tools/pep-html-template: Added to project.
2523 * tools/pep2html.py: Added to project from Python (nondist/peps).
2524 Added support for Docutils (reStructuredText PEPs).
2526 * tools/quicktest.py:
2528 - Added the ``--attributes`` option, hacked a bit.
2529 - Added a second command-line argument (output file); cleaned up.
2531 * tools/stylesheets/: Subdirectory added to project.
2533 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2536 Release 0.1 (2002-04-20)
2537 ========================
2539 This is the first release of Docutils, merged from the now inactive
2540 reStructuredText__ and `Docstring Processing System`__ projects. For
2541 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2542 `DPS HISTORY`__ files.
2544 __ http://structuredtext.sourceforge.net/
2545 __ http://docstring.sourceforge.net/
2546 __ http://structuredtext.sourceforge.net/HISTORY.html
2547 __ http://docstring.sourceforge.net/HISTORY.html
2549 General changes: renamed 'dps' package to 'docutils'; renamed
2550 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2551 the test suites (reStructuredText's test/test_states renamed to
2552 test/test_rst); and all modifications required to make it all work.
2554 * docutils/parsers/rst/states.py:
2556 - Improved diagnostic system messages for missing blank lines.
2557 - Fixed substitution_reference bug.
2563 indent-tabs-mode: nil
2564 sentence-end-double-space: t