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").
29 * docutils/writers/latex2e/__init__.py
31 - Use `transforms.writer_aux.Admonitions` to "normalize" special
33 - Use the ``\url`` command for URLs (breaks long URLs instead of
34 writing into the margin).
35 - Preserve runs of spaces in `inline literals`__.
36 - Deprecate ``figure_footnotes`` setting.
37 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
38 - New ``latex_preamble`` setting.
39 - PDF standard fonts (Times/Helvetica/Courier) as default.
41 __ docs/ref/restructuredtext.html#inline-literals
42 __ docs/user/config.html#docutils-footnotes
44 * docutils/writers/manpage.py
46 - Apply patch from mg: literal text should be bold in man-pages.
50 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
53 Release 0.6 (2009-10-11)
54 ========================
58 - Docutils is now compatible with Python versions from 2.3 up to 2.6
59 and convertible to 3.1 code.
61 + Node.__nonzero__ returns True instead of 1.
62 + use os.walk instead os.path.walk.
63 + minimize "types" module where possible.
64 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
65 + Text nodes now subclass unicode rather than UserString
66 (which is gone in python 3.0).
67 + 3.0 compatibility module docutils._compat
69 + Drop 2.2 compatibility workarounds.
70 + Drop extras/optparse.py and extras/textwrap.py
71 (stdlib modules since 2.3).
73 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
74 - Unix man page export: manpage writer moved from sandbox to Doctutils
77 - Apply [ 1719345 ] Galician translation
78 - Apply [ 1905741 ] Polish translation
79 - Apply [ 1878977 ] make_id(): deaccent characters.
80 - Apply [ 2029251 ] return nonzero when tests fail.
81 - Fix [ 1692788 ] allow UTF-8 in style sheets.
82 - Fix [ 2781629 ] support non-ASCII chars in file names.
83 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
84 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
85 - Fix [ 2821266 ] --strict option works now like --halt=info.
86 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
87 - Fix [ 1627229 ] hyperlink references in substitutions.
89 - The "newlatex" writer is orphaned.
93 - Documented Unicode characters allowed as inline markup openers,
94 closers, and delimiters.
95 - Allow units for all length specifications.
96 - Allow percent sign in "scale" argument of "figure" and "image" directives.
97 - Bugfix: The "figalign" argument of a figure now works as intended
98 (aligning the figure, not its contents).
99 - Align images with class "align-[right|center|left]"
100 (allows setting the alignment of an image in a figure).
104 - Added ``Element.__contains__`` method, for the in-operator.
106 * docutils/parsers/rst/states.py:
108 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
109 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
110 " " (non-breaking space), and "¡ ¿" openers.
112 * docutils/parsers/directives/misc.py:
114 - Added ``start-line`` and ``end-line`` options to "include"
115 directive to select a range of lines.
116 - Hard tabs in literal inclusions are replaced by spaces. This is
117 configurable via the new ``tab-width`` option of the "include" directive
118 (a negative tab-width prevents tab expansion).
122 - Add ``get_stylesheet_list`` function.
123 - Apply [ 2834836 ] print info at halt
125 * docutils/transforms/universal.py:
127 - Raise default priority of StripClasses to exclude stripped classes from
130 * docutils/writers/html4css1/__init__.py:
132 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
133 separated list of stylesheets.
134 - Address [ 1938891 ] Inline literal text creates "pre" span only when
135 needed to prevent inter-word line wraps.
136 - Use `translate` method instead of repeated `replace` calls.
137 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
138 classes to allow CSS styling that does not interfere with other
139 table-using constructs (field lists, citations, ...).
141 * docutils/writers/newlatex2e/__init__.py:
143 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
145 * docutils/writers/latex2e/__init__.py (see also
146 `<docs/user/docutils-05-compat.sty.html>`__) :
148 - Add ``--embed-stylesheet`` option.
149 - Apply [ 1474017 ] image vertical alignment is reversed.
150 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
151 - Change: has_key for dictionaries (not Nodes) to in-operator.
152 - Merge adjacent citations into one latex cite command.
153 - Failsave implementation of custom roles. LaTeX compilation now ignores
154 unknown classes instead of aborting with an error.
155 - Support custom roles based on standard roles.
156 - LaTeX packages can be used as ``--stylesheet`` arguments without
157 restriction. (A style sheet is now referenced with the ``\usepackage``
158 command, if it ends with ``.sty`` or has no extension.)
159 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
160 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
161 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
162 2005-02-04 as a configurable length unit).
163 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
164 if font-encoding is set to ''. LaTeX defaults to OT1 then.
165 - Set sub- and superscript role argument in text mode not as math.
166 Use a custom role based on sub-/superscript if you want italic shape.
167 - Shorter preamble and less dependencies: Load packages and define macros
168 only if required in the document.
169 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
170 - New custom environments and commands with optional "classes" argument.
171 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
172 - Better conformance to Docutils specifications with ``--use-latex-toc``.
173 Support for LaTeX generated ToC also with unnumbered sections.
174 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
175 section numbering by LaTeX.
176 - Use default font in admonitions and sidebar.
177 - Align of image in a figure defaults to 'center'.
178 - Bugfix: Newlines around targets and references prevent run-together
180 - Fix internal hyperlinks.
181 - Use class defaults for page margins ('typearea' now optional).
182 - Float placement made configurable, default changed to "here definitely".
183 - Typeset generic topic as "quote block with title".
184 - Use template (file and configuration option).
185 - In the default template, load cmap.sty (fix text extraction in PDF) and
186 fixltx2e.sty (LaTeX patches, \textsubscript).
187 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
188 - Use `translate` instead of repeated `replace` calls for text encoding.
189 - Hyperlinked footnotes and support for symbol footnotes and
190 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
191 - Complete pairs of binary options
192 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
193 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
195 - font-encoding: "T1" (formerly implicitely set by 'ae').
196 - use-latex-toc: true (ToC with page numbers).
197 - use-latex-footnotes: true (no mixup with figures).
199 * docutils/writers/manpage.py
201 - Do not print version at document end, this is done by the viewer.
202 - Do not print date at document end, this is done by the viewer.
203 - Fix storage of docinfo fields for none standard fields.
205 * docutils/tools/rst2man.py
207 Release 0.5 (2008-06-25)
208 ========================
210 * docutils/languages/he.py: Added to project: Hebrew mappings by
213 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
214 mappings by Meir Kriheli.
216 * docutils/frontend.py:
218 - Configuration files are now assumed and required to be
220 - Paths of applied configuration files are now recorded in the
221 runtime setting ``_config_files`` (accessible via
222 ``--dump-settings``).
223 - Added ``--strip-elements-with-class`` and ``--strip-class``
224 options (``strip_elements_with_classes`` and ``strip_classes``
229 - Added code to determine the input encoding from data: encoding
230 declarations or the presence of byte order marks (UTF-8 & UTF-16).
231 - Added support for IronPython 1.0.
235 - Added ``document.__getstate__`` method, for pickling.
237 * docutils/parsers/rst/states.py:
239 - Allow ``+`` and ``:`` in reference names.
240 - Unquoted targets beginning with an underscore (``.. __target:
241 URI``) are no longer accepted.
242 - Added support for multiple attributions in a physical block quote
243 (indented text block), dividing it into multiple logical block
245 - Added support for unicode bullets in bullet lists: "•", "‣", and
247 - Added support for new object-oriented directive interface,
248 retaining compatibility to the old functional interface.
249 - Added support for throwing ``DirectiveError``'s from within
252 * docutils/parsers/rst/__init__.py:
254 - Added ``Directive`` base class.
255 - Added ``DirectiveError`` base class.
256 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
259 * docutils/parsers/directives/:
261 - Refactored all reStructuredText directives to use the new
262 object-oriented directive interface. Errors are now (mostly)
263 thrown using the new ``DirectiveError`` class.
265 * docutils/parsers/directives/misc.py:
267 - Added ``start-after`` and ``end-before`` options to ``include``
268 directive; thanks to Stefan Rank.
270 * docutils/transforms/universal.py:
272 - Added ``StripClassesAndElements`` transform to remove from the
273 document tree all elements with classes in
274 ``settings.strip_elements_with_classes`` and all "classes"
275 attribute values in ``self.document.settings.strip_classes``.
277 * docutils/transforms/writer_aux.py:
279 - Added ``Admonitions`` transform to transform specific admonitions
280 (like ``note``, ``warning``, etc.) into generic admonitions with a
283 * docutils/writers/html4css1/__init__.py:
285 - Moved template functionality from the PEP/HTML writer here.
286 - Expanded the fragments available in the ``parts`` attribute.
287 - Moved ``id`` attributes from titles to surrounding ``div``
289 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
290 universally supported now).
291 - ``template.txt`` is now opened in text mode instead of binary mode
292 (to ensure Windows compatibility).
293 - ``a`` elements now have an "internal" or "external" class,
294 depending on reference type.
296 * docutils/writers/html4css1/template.txt: Added to project.
298 * docutils/writers/pep_html/:
300 - Moved template functionality to the HTML writer.
302 * docutils/writers/s5_html/__init__.py:
304 - Added ``view_mode`` & ``hidden_controls`` settings
305 (``--view-mode`` & ``--hidden-controls/--visible-controls``
308 * docutils/writers/latex2e/__init__.py:
310 - Add ``--literal-block-env``
311 - Fix: escaping ``%`` in href urls.
312 - Move usepackage hyperref after stylesheet inclusion.
313 - Fix: scrartcl does not have chapter but scrreprt.
314 - Add newline after ``\end{verbatim}``.
315 - Merge smaller differences from latex2e_adaptive_preamble.
316 - Add ``use-part-section``.
317 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
318 - Using leavemode option_list no longer needs to check if parent
319 is a definition list.
320 - Append ``\leavemode`` to definition list terms.
321 - No longer write visit\_/depart_definition_list_item comments to
323 - Table column width with 3 decimal places.
324 - Add table stubs support (boldfont).
325 - Add assemble_parts to writer.
326 - Add simply support for nested tables.
327 - Fix verbatim in tables if use-verbatim-when-possible.
328 - Use section commands down to subparagraph.
329 - Put ensuremath around some latin1 chars.
330 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
331 - New option ``--use-bibtex=style,db1,db2``.
332 - New option ``--reference-label`` to allow usage of LaTeX ref for
333 labels in section references.
334 - Add a label after every section to support sectionnumbers as reference
336 - Fix: bug# 1605376 rst2latex: bad options group list
337 - Remove inactive code for use_optionlist_for_option_list.
338 - Remove latex comments from option_list output.
339 - Fix: bug# 1612270 double qoutes in italian literal.
340 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
341 - Add option --use-latex-abstract.
342 - Image width unit ``px`` is translated to ``pt``.
343 - Add image height support.
344 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
346 - Fix: Do not escape underscores in citation reference labels if
347 use-latex-citations is set.
348 - Use centering instead of center for figure contents, to avoid vertical
350 - Recognize table class: borderless, nolines, booktabs, standard.
351 - Fix: Renaming contents section does not work with latex writer; SF
353 - Applied patch for custom roles with classes from Edward Loper.
354 - Fixed bug that caused crashes with more than 256 lists.
356 * docutils/writers/pep_html/__init__.py:
358 - Changed to support new python.org website structure and
361 * docs/howto/security.txt: "Deploying Docutils Securely", added to
364 * tools/buildhtml.py:
366 -- Added ``ignore`` setting to exclude a list of shell patterns
367 (default: ``.svn:CVS``).
369 * tools/editors/emacs/rst.el:
371 - Changed license to "GPL".
372 - Added ``rst-straighten-decorations`` function.
373 - The ``compile`` module is now always loaded.
374 - Added ``rst-toggle-line-block`` function.
375 - Headings consisting only of non-ASCII characters are now
376 recognized by ``rst-toc`` and ``rst-adjust``.
377 - Added font-lock support for multi-line comments where the first
378 comment line is empty.
379 - Added ``(require 'font-lock)``.
383 - Provide descriptive error message if distutils is missing.
386 Release 0.4 (2006-01-09)
387 ========================
391 - Updated the project policies for trunk/branch development &
394 * docutils/__init__.py:
396 - Added ``__version_details__`` attribute to describe code source
397 (repository/snapshot/release).
398 - Replaced ``default_transforms`` attribute of TransformSpec with
399 ``get_transforms()`` method.
403 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
404 functions, for document tree extraction and reprocessing.
408 - Added ``DocTreeInput`` class, for reprocessing existing documents.
409 - Added support for non-Unicode (e.g. binary) writer output.
413 - Re-introduced ``Targetable.indirect_reference_name``, for
414 MoinMoin/reST compatibility (removed in r3124/r3129).
415 - Added ``serial_escape`` function; escapes string values that are
416 elements of a list, for serialization. Modified Docutils-XML
417 writing (``Element._dom_node``) and pseudo-XML writing
418 (``Element.starttag``) to use ``serial_escape``.
419 - Added ``Node.deepcopy()`` method.
420 - Removed the internal lists ``document.substitution_refs``,
421 ``document.anonymous_refs``, and ``document.anonymous_targets``.
422 - Added a "container" element.
423 - Fixed bug where values of list-valued attributes of elements
424 originating from custom interpreted text roles (i.e., with custom
425 classes) were being shared between element instances. Reported by
428 * docutils/statemachine.py:
430 - Added trailing whitespace stripping to ``string2lines()``.
431 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
432 Asian double-width character support.
436 - Added ``east_asian_column_width()`` for double-width character
439 * docutils/languages/ja.py: Added to project: Japanese mappings by
442 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
443 mappings by Panjunyong.
445 * docutils/parsers/null.py: Added to project; a do-nothing parser.
447 * docutils/parsers/rst/__init__.py:
449 - Added validator to tab_width setting, with test. Closes SF bug
450 #1212515, report from Wu Wei.
452 * docutils/parsers/rst/states.py:
454 - Fixed bug with escaped colons indicating a literal block.
455 - Fixed bug with enumerated lists (SF#1254145).
456 - Backslash-escaped colons inside of field names are now allowed.
457 - Targets (implicit and explicit), anonymous hyperlink references
458 and auto-numbered footnote references inside of substitution
459 definitions are now disallowed.
460 - Fixed bug: list items with blank first lines.
461 - Fixed bug: block quote attributions with indented second lines.
462 - Added East Asian double-width character support (Python 2.4 only).
464 * docutils/parsers/rst/tableparser.py:
466 - Added East Asian double-width character support (Python 2.4 only).
468 * docutils/parsers/rst/directives/body.py:
470 - Added the "container" directive.
472 * docutils/parsers/rst/directives/misc.py:
474 - Added the "default-role", "title", and "date" directives.
475 - Added standard data file syntax to the "include" directive.
476 - Added support for "class" directive content.
478 * docutils/parsers/rst/directives/images.py:
480 - Added ``indirect_reference_name`` support for images with a target
482 - Added support for image width and height units.
483 - Fixed bug with image "target" options.
485 * docutils/parsers/rst/directives/references.py:
487 - Added "class" attribute to "target-notes" directive, for
488 footnote_reference classes.
490 * docutils/parsers/rst/include/: Directory added to project; contains
491 standard data files for the "include" directive. Initial contents:
492 character entity substitution definition sets, and a set of
493 definitions for S5/HTML presentations.
495 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
496 mappings by David Goodger.
498 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
499 Simplified Chinese mappings by Panjunyong.
501 * docutils/readers/__init__.py:
503 - Added universal.Decorations and universal.ExposeInternals
504 transforms as default transforms for all readers.
505 - Added ``ReReader`` base class for readers that reread an existing
508 * docutils/readers/doctree.py: Added to project; a reader for existing
511 * docutils/transforms/frontmatter.py:
513 - Fixed the DocInfo transform to handle SVN-style expansion of the
515 - In ``DocInfo.extract_authors``, treat the contents of "authors"
518 * docutils/transforms/misc.py:
520 - Added misc.Transitions transform, extracted from
521 universal.FinalChecks.
523 * docutils/transforms/references.py:
525 - Added references.DanglingReferences transform, extracted from
526 universal.FinalChecks.
527 - Fixed bug with doubly-indirect substitutions.
528 - Added footnote_reference classes attribute to "TargetNotes".
529 - Fixed bug with circular substitution definitions that put Docutils
530 into an infinite loop.
532 * docutils/transforms/universal.py:
534 - Added universal.ExposeInternals transform, extracted from
535 universal.FinalChecks.
536 - Removed universal.FinalChecks transform (logic has been moved to
537 several new transforms).
538 - Fixed bug with the "expose_internals" setting and Text nodes
539 (exposed by the "rawsource" internal attribute).
540 - Added the universal.StripComments transform, implementation of the
541 "strip_comments" setting.
543 * docutils/transforms/writer_aux.py: Added to project; auxiliary
544 transforms for writers.
546 - Added ``Compound`` transform, which flattens compound paragraphs.
548 * docutils/writers/: Several writer modules (html4css1.py) were
549 converted into packages. Support modules and data files have been
550 moved into the packages. The stylesheets for the HTML writers are
551 now installed along with the code, the code knows where to find
552 them, and the default is to use them (actually, to embed them).
553 Some adjustments to configuration files may be necessary. The
554 easiest way to obtain the new default behavior is to remove all
555 settings whose name includes "stylesheet".
557 * docutils/writers/__init__.py:
559 - Added universal.Messages and universal.FilterMessages transforms
560 as default transforms for all writers.
561 - Added ``UnfilteredWriter`` base class for writers that pass the
562 document tree on unchanged.
564 * docutils/writers/docutils_xml.py:
566 - Made ``xmlcharrefreplace`` the default output encoding error
569 * docutils/writers/html4css1/:
571 - Added support for image width and height units.
572 - Made ``xmlcharrefreplace`` the default output encoding error
574 - Made ``--embed-stylesheet`` the default rather than
575 ``--link-stylesheet``.
576 - Moved "id" attribute from container (section etc.) to title's <a>
577 tag, to be on the same tag as "name".
578 (!!! To be reverted in Docutils 0.5.)
579 - Added vertical space between fields of field lists.
580 - Added ``--compact-field-lists`` option to remove vertical space in
582 - Made cloaking of email addresses with ``--cloak-email-addresses``
584 - Fixed support for centered images.
585 - Added support for class="compact" & class="open" lists.
587 * docutils/writers/latex2e/:
589 - Underscores in citekeys are no longer escaped.
591 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
592 mapping of Unicode characters to LaTeX equivalents.
594 * docutils/writers/s5_html/: Package added to project; writer for
597 * docs/dev/distributing.txt: Added to project; guide for distributors
598 (package maintainers).
600 * docs/dev/hacking.txt: Added to project; guide for developers.
602 * docs/ref/doctree.txt:
604 - Updated for plural attributes "classes", "ids", "names",
606 - Added the "container" element.
608 * docs/ref/docutils.dtd:
610 - Updated for plural attributes "classes", "ids", "names",
613 * docs/user/emacs.txt: Added to project; a document about Emacs
614 support for reStructuredText and Docutils.
616 * docs/user/links.txt: Added to project; lists of Docutils-related
619 * docs/user/mailing-lists.txt: Added to project; information about
620 Docutils-related mailing lists and how to access them.
622 * docs/user/slide-shows.txt: Added to project; example of and docs for
623 the S5/HTML writer (``rst2s5.py`` front end).
625 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
626 Files", added to project.
628 * test/coverage.sh: Added to project; test coverage script.
630 * test/DocutilsTestSupport.py:
632 - Added support for specifying runtime settings at the suite level.
634 * test/test_functional.py:
636 - Added the ``clear_output_directory`` function.
637 - Added support for ``_test_more`` functions in functional test
640 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
642 * tools/rstpep2html.py: Renamed from pep.py.
644 * tools/dev/create_unimap.py: Added to project; script to create the
645 docutils/writers/unimap_latex.py mapping file.
647 * tools/dev/profile_docutils.py: Added to project; profiler script.
649 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
651 * tools/editors/emacs/restructuredtext.el,
652 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
653 Removed from project; the functionality is now contained in rst.el.
655 * tools/editors/emacs/rst.el: Added to project. Added many features
656 and fixed many bugs. See docs/user/emacs.txt for details.
658 * tools/stylesheets: Removed from project. Stylesheets have been
659 renamed and moved into writer packages.
662 Release 0.3.9 (2005-05-26)
663 ==========================
667 - Eliminated and replaced all uses of the old string attributes
668 ``id``, ``name``, ``dupname`` and ``class`` with references to the
669 new list attributes ``ids``, ``names``, ``dupnames`` and
670 ``classes`` throughout the whole source tree.
674 - Enabled ``--dump-*`` options when ``--traceback`` specified,
675 allowing for easier debugging.
676 - In ``Publisher.publish()``, expanded the generic top-level
679 * docutils/examples.py:
681 - Added ``internals`` function for exploration.
685 - Fixed ``Input.decode`` method to apply heuristics only if no
686 encoding is explicitly given, and to provide better reporting of
688 - The ``Input.decode`` method now removes byte order marks (BOMs)
693 - ``image`` element class changed to subclass of Element, not
694 TextElement (it's an empty element, and cannot contain text).
695 - Added ``attr_defaults`` dictionary for default attribute values.
696 - Added empty list as default value for the following attributes:
697 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
698 - Added ``document.decoration`` attribute,
699 ``document.get_decoration`` method, and ``decoration.get_header``
700 & ``.get_footer`` methods.
701 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
706 - Removed ``docutils.utils.Reporter.categories``,
707 ``docutils.utils.ConditionSet``, and all references to them, to
708 simplify error reporting.
710 * docutils/languages/nl.py: Added to project; Dutch mappings by
713 * docutils/parsers/rst/__init__.py:
715 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
717 * docutils/parsers/rst/states.py:
719 - Added check for escaped at-mark to prevent email address recognition.
720 - Fixed option lists to allow spaces inside ``<angle-bracketed option
722 - Allowed whitespace in paths and URLs.
723 - Added auto-enumerated list items.
724 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
726 - Added support for table stub columns.
728 * docutils/parsers/rst/directives/__init__.py:
730 - Allowed whitespace in paths (``path`` function).
731 - Added ``uri`` directive option conversion function.
733 * docutils/parsers/rst/directives/body.py:
735 - Fixed illegal context bug with "topic" directive (allowed within
736 sidebars; not within body elements).
738 * docutils/parsers/rst/directives/images.py:
740 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
741 - Added support for the ``file_insertion_enabled`` setting in the
742 "figure" directive (disables "figwidth" option).
743 - "image" directive: added checks for valid values of "align" option,
744 depending on context. "figure" directive: added specialized
745 "align" option and attribute on "figure" element.
746 - Made ":figwidth: image" option of "figure" directive work again.
747 - Fixed bug with reference names containing uppercase letters
748 (e.g. ``Name_``) in "target" option of "image" directive.
750 * docutils/parsers/rst/directives/misc.py:
752 - Fixed "include" and "raw" directives to catch text decoding
754 - Allowed whitespace in "include" & "raw" directive paths.
755 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
756 settings in "include" & "raw" directives.
758 * docutils/parsers/rst/directives/parts.py:
760 - Added "header" & "footer" directives.
761 - Fixed illegal context bug with "contents" directive (topics
762 allowed within sidebars; not within body elements).
764 * docutils/parsers/rst/directives/tables.py:
766 - Added "list-table" directive.
767 - Caught empty CSV table bug.
768 - Added support for the ``file_insertion_enabled`` setting in the
769 "csv-table" directive.
770 - Added ``stub-columns`` option to "csv-table" and "list-table"
773 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
774 mappings by Martijn Pieters.
776 * docutils/readers/standalone.py:
778 - Added ``--section-subtitles`` and ``--no-section-subtitles``
779 options to activate or deactivate the SectSubTitle transform.
781 * docutils/transforms/frontmatter.py:
783 - Added SectSubTitle transform to promote titles of lone
784 subsections to subtitles.
786 * docutils/transforms/references.py:
788 - Fixed mislocated internal targets bug, by propagating internal
789 targets to the next node, making use of the newly added support
790 for multiple names and IDs.
791 - Fixed duplicate footnote label bug.
792 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
795 * docutils/writers/html4css1.py:
797 - Fixed unencoded stylesheet reference bug (characters like "&" in
798 stylesheet references).
799 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
801 - Added support for multiple IDs per node by creating empty ``span``
803 - Added the ``field_name_limit`` & ``option_limit`` settings &
805 - Added support for table stub columns.
806 - Added support for the ``align`` attribute on ``figure`` elements.
807 - Added the ``cloak_email_addresses`` setting & support.
808 - Added ``html_prolog``, ``html_head``, ``html_body``,
809 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
810 ``docutils.core.publish_parts``.
811 - Added support for section subtitles.
813 * docutils/writers/latex2e.py:
815 - Fixed tables starting with more than one multirow cell.
816 - Improved --use-latex-docinfo so that organization/contact/address
817 fields are lumped with the last author field and appear on the
819 - Made sure the titlepage is always shown with --use-latex-docinfo,
820 even if the document has no title.
821 - Made sure that latex doesn't fill in today's date if no date field
823 - Added support for section subtitles.
825 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
828 * docutils/writers/null.py: Added to project; a do-nothing Writer.
830 * docs/api/publisher.txt:
832 - Added "``publish_parts`` Details" section.
834 * docutils/dev/repository.txt: Added to project; information about the
835 Docutils Subversion repository.
837 * docs/ref/docutils.dtd:
839 - Added a ``stub`` attribute to the ``colspec`` element via the
840 ``tbl.colspec.att`` parameter entity.
841 - Allowed topic elements within sidebars
842 - Added an ``align`` attribute to the ``figure`` element.
844 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
848 Release 0.3.7 (2004-12-24)
849 ==========================
851 * docutils/frontend.py:
853 - Added options: --input-encoding-error-handler,
854 --record-dependencies, --leave-footnote-reference-space,
856 - Added command-line and config file support for "overrides" setting
861 - Added support for input encoding error handler.
865 - Added dispatch_visit and dispatch_departure methods to
866 NodeVisitor; useful as a hook for Visitors.
867 - Changed structure of ``line_block``; added ``line``.
868 - Added ``compound`` node class.
869 - Added a mechanism for Visitors to transitionally ignore new node
874 - Moved ``escape2null`` and ``unescape`` functions from
875 docutils/parsers/rst/states.py.
877 * docutils/parsers/rst/roles.py:
880 - Changed role function API: the "text" parameter now takes
881 null-escaped interpreted text content.
883 * docutils/parsers/rst/states.py:
885 - Fixed bug where a "role" directive in a nested parse would crash
886 the parser; the state machine's "language" attribute was not being
888 - Added support for line block syntax.
889 - Fixed directive parsing bug: argument-less directives didn't
890 notice that arguments were present.
891 - Removed error checking for transitions.
892 - Added support for multiple classifiers in definition list items.
893 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
894 - Changed role function API: the "text" parameter now takes
895 null-escaped interpreted text content.
896 - Empty sections and documents are allowed now.
898 * docutils/parsers/rst/directives/__init__.py:
900 - Added ``encoding`` directive option conversion function.
901 - Allow multiple class names in class_option conversion function.
903 * docutils/parsers/rst/directives/body.py:
905 - Converted the line-block directive to use the new structure.
906 - Extracted the old line-block functionality to the ``block``
907 function (still used).
908 - Added ``compound`` directive (thanks to Lea Wiemann).
910 * docutils/parsers/rst/directives/misc.py:
912 - Added "encoding" option to "include" and "raw" directives.
913 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
914 - Allow multiple class names in the "class" directive.
916 * docutils/parsers/rst/directives/parts.py:
918 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
919 options. Thanks to Lele Gaifax.
921 * docutils/parsers/rst/directives/tables.py:
923 - Added "encoding" directive to "csv-table" directive.
924 - Added workaround for lack of Unicode support in csv.py, for
927 * docutils/transforms/misc.py:
929 - Fixed bug when multiple "class" directives are applied to a single
931 - Enabled multiple format names for "raw" directive.
933 * docutils/transforms/references.py:
935 - Added support for trimming whitespace from beside substitution
938 * docutils/transforms/universal.py:
940 - FinalChecks now checks for illegal transitions and moves
941 transitions between sections.
943 * docutils/writers/html4css1.py:
945 - HTMLTranslator.encode now converts U+00A0 to " ".
946 - "stylesheet" and "stylesheet_path" settings are now mutually
948 - Added support for the new line_block/line structure.
949 - --footnote-references now overrides
950 --trim-footnote-reference-space, if applicable.
951 - Added support for ``compound`` elements.
952 - Enabled multiple format names for "raw" directive.
953 - ``<p>`` tags of a paragraph which is the only visible child of the
954 document node are no longer stripped.
955 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
956 new method ``should_be_compact_paragraph()``.
957 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
959 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
960 the output if they have their ``class`` attribute set.
961 - The whole document is now surrounded by a ``<div
962 class="document">`` element.
963 - Body-level images are now wrapped by their own ``<div>`` elements,
964 with image classes copied to the wrapper, and for images which
965 have the ``:align:`` option set, the surrounding ``<div>`` now
966 receives a class attribute (like ``class="align-left"``).
968 * docutils/writers/latex2e.py:
970 - no newline after depart_term.
971 - Added translations for some Unicode quotes.
972 - Added option "font-encoding", made package AE the default.
973 - "stylesheet" and "stylesheet_path" settings are now mutually
975 - --footnote-references now overrides
976 --trim-footnote-reference-space, if applicable.
977 - The footnote label style now matches the footnote reference style
978 ("brackets" or "superscript").
979 - Added support for ``compound`` elements.
980 - Enabled multiple format names for "raw" directive.
982 * docs/ref/docutils.dtd:
984 - Changed structure of the ``line_block`` element; added ``line``.
985 - Added ``compound`` element.
986 - Added "ltrim" and "rtrim" attributes to
987 ``substitution_definition`` element.
988 - Enabled multiple format names for ``raw`` element.
989 - Enabled multiple classifiers in ``definition_list_item`` elements.
991 * docs/ref/rst/directives.txt
993 - Marked "line-block" as deprecated.
994 - "Class" directive now allows multiple class names.
995 - Added "Rationale for Class Attribute Value Conversion".
996 - Added warning about "raw" overuse/abuse.
998 * docs/ref/rst/restructuredtext.txt:
1000 - Added syntax for line blocks.
1001 - Definition list items may have multiple classifiers.
1003 * docs/ref/rst/roles.txt:
1007 * tools/stylesheets/default.css:
1009 - Added support for the new line_block structure.
1010 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1013 Release 0.3.5 (2004-07-29)
1014 ==========================
1018 * _`Documentation cleanup/reorganization`.
1020 - Created new subdirectories of docs/:
1022 * ``docs/user/``: introductory/tutorial material for end-users
1023 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1024 * ``docs/api/``: API reference material for client-developers
1025 * ``docs/ref/``: reference material for all groups
1026 * ``docs/howto/``: for component-developers and core-developers
1027 * ``docs/peps/``: Python Enhancement Proposals
1029 - Moved ``docs/*`` to ``docs/user/``.
1030 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1031 ``spec/`` to ``docs/dev``.
1032 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1033 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1034 - Moved ``alternatives.txt``, and ``problems.txt`` from
1035 ``spec/rst/`` to ``docs/dev/rst/``.
1036 - Moved ``reStructuredText.txt``, ``directives.txt``,
1037 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1038 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1039 ``roles.txt``, ``reStructuredText.txt`` to
1040 ``restructuredtext.txt``.
1041 - Moved ``spec/howto/`` to ``docs/howto``.
1043 In order to keep the CVS history of moved files, we supplied
1044 SourceForge with a `script for modifying the Docutils CVS
1047 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1049 After running the cleanup script:
1051 - Added ``docs/index.txt``.
1052 - Added a ``.htaccess`` file to the ``web`` module, containing
1053 redirects for all old paths to new paths. They'll preserve
1054 fragments (the "#name" part of a URL), and won't clutter up the
1055 file system, and will correct the URL in the user's browser.
1056 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1057 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1058 the "To Do" list itself in ``docs/dev/todo.txt``.
1059 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1060 section of ``docs/dev/todo.txt``.
1061 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1062 - Added "How To Report Bugs" to ``BUGS.txt``.
1063 - Went through all the sources and docs (including under web/) and
1064 updated links. Mostly done by Lea Wiemann; thanks Lea!
1065 (Still need to update links in the sandboxes.)
1069 * BUGS.txt: Added to project.
1071 * THANKS.txt: Added to project.
1073 * docutils/__init__.py:
1075 - 0.3.4: Post-release.
1079 - Added special error handling & advice for UnicodeEncodeError.
1080 - Refactored Publisher.publish (simplified exception handling &
1081 extracted debug dumps).
1082 - Renamed "enable_exit" parameter of convenience functions to
1083 "enable_exit_status".
1084 - Enabled traceback (exception propagation) by default in
1085 programmatic convenience functions.
1086 - Now publish_file and publish_cmdline convenience functions return
1087 the encoded string results in addition to their regular I/O.
1088 - Extracted common code from publish_file, publish_string, and
1089 publish_parts, into new publish_programmatically. Extracted
1090 settings code to ``Publisher.process_programmatic_settings``.
1091 - In Publisher.publish, disabled ``settings_overrides`` when
1092 ``settings`` is supplied; redundant.
1094 * docutils/frontend.py:
1096 - Added help text for "--output-encoding-error-handler" and
1097 "--error-encoding-error-handler".
1098 - Renamed "--exit" to "--exit-status".
1099 - Simplified default-setting code.
1101 * docutils/parsers/rst/__init__.py:
1103 - Added "--pep-base-url" and "--rfc-base-url" options.
1105 * docutils/parsers/rst/states.py:
1107 - Made URI recognition more aggressive and intelligent.
1109 * docutils/parsers/rst/directives/__init__.py:
1111 - Added several directive option conversion functions.
1113 * docutils/parsers/rst/directives/body.py:
1115 - Moved "table" directive to tables.py.
1117 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1120 * docutils/writers/latex2e.py:
1122 - Added "--table-style=(standard|booktabs|nolines)"
1123 - figures get "here" option (LaTeX per default puts them at bottom),
1124 and figure content is centered.
1125 - Rowspan support for tables.
1126 - Fix: admonition titles before first section.
1127 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1128 - Replave ``_`` in literal by an underlined blank, because it has the correct
1130 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1131 - A few unicode replacements, if output_encoding != utf
1132 - Add "--graphicx-option".
1133 - Indent literal-blocks.
1134 - Fix: omit ``\maketitle`` when there is no document title.
1136 * docs/index.txt: "Docutils Project Documentation Overview", added to
1139 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1140 Tool", added to project.
1142 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1144 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1146 * docs/dev/policies.txt: Added to project (extracted from
1147 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1149 * docs/dev/release.txt: Added to project (extracted from
1150 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1152 * docs/dev/testing.txt: Added to project.
1154 * docs/dev/website.txt: Added to project (extracted from
1155 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1157 * docs/ref/rst/directives.txt:
1159 - Added directives: "table", "csv-table".
1161 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1162 added to project. 1 page for syntax, and a 1 page reference for
1163 directives and roles. Source text to be used as-is; not meant to be
1166 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1167 with a change of title.
1169 * test/functional/, contents, and test/test_functional.py: Added to
1172 * tools/buildhtml.py: Fixed bug with config file handling.
1174 * tools/html.py: Removed from project (duplicate of rst2html.py).
1176 * tools/pep2html.py: Removed from project (duplicate of Python's
1177 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1178 Docutils-related PEPs in docs/peps/).
1180 * tools/rst2pseudoxml.py: Renamed from publish.py.
1182 * tools/rst2xml.py: Renamed from docutils-xml.py.
1184 * tools/test.txt: Removed from project; moved to
1185 docs/user/rst/demo.txt.
1187 * setup.py: Now also installs ``rst2latex.py``.
1190 Release 0.3.3 (2004-05-09)
1191 ==========================
1193 * docutils/__init__.py:
1195 - 0.3.1: Reorganized config file format (multiple sections); see
1197 - Added unknown_reference_resolvers attribute to TransformSpec.
1198 - 0.3.2: Interpreted text reorganization.
1203 - Catch system messages to stop tracebacks from parsing errors.
1204 - Catch exceptions during processing report & exit without
1205 tracebacks, except when "--traceback" used.
1206 - Reordered components for OptionParser; application comes last.
1207 - Added "config_section" parameter to several methods and functions,
1208 allowing front ends to easily specify their config file sections.
1209 - Added publish_parts convenience function to allow access to individual
1210 parts of a document.
1212 * docutils/examples.py: Added to project; practical examples of
1213 Docutils client code, to be used as-is or as models for variations.
1215 * docutils/frontend.py:
1217 - Added "--traceback" & "--no-traceback" options ("traceback"
1219 - Implemented support for config file reorganization:
1220 ``standard_config_files`` moved from ``ConfigParser`` to
1221 ``OptionParser``; added
1222 ``OptionParser.get_config_file_settings()`` and
1223 ``.get_standard_config_settings()``; support for old "[options]"
1224 section (with deprecation warning) and mapping from old to new
1226 - Reimplemented setting validation.
1227 - Enabled flexible boolean values: yes/no, true/false, on/off.
1228 - Added ``Values``, a subclass of ``optparse.Values``, with support
1229 for list setting attributes.
1230 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1231 thanks to Beni Cherniavsky.
1232 - Added "--no-section-numbering" option.
1236 - Catch IOErrors when opening source & destination files, report &
1237 exit without tracebacks. Added ``handle_io_errors`` parameter to
1238 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1240 * docutils/nodes.py:
1242 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1243 method definitions (via ``exec``) to dynamic assignments (via
1244 ``setattr``); thanks to Roman Suzi.
1245 - Encapsulated visitor dynamic assignments in a function; thanks to
1247 - Added indirect_reference_name attribute to the Targetable
1248 class. This attribute holds the whitespace_normalized_name
1249 (contains mixed case) of a target.
1251 * docutils/statemachine.py:
1253 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1254 - Added ``StringList.get_2D_block``.
1256 * docutils/utils.py:
1258 - Added "level" attribute to SystemMessage exceptions.
1260 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1263 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1266 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1267 Marcelo Huerta San Martin.
1269 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1270 mappings by Lalo Martins.
1272 * docutils/languages/ru.py: Added to project; Russian mappings by
1275 * docutils/parsers/rst/roles.py: Added to project. Contains
1276 interpreted text role functions, a registry for interpreted text
1277 roles, and an API for adding to and retrieving from the registry.
1278 Contributed by Edward Loper.
1280 * docutils/parsers/rst/states.py:
1282 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1283 - Allowed true em-dash character and "---" as block quote
1285 - Added support for <angle-bracketed> complex option arguments
1287 - Fixed handling of backslashes in substitution definitions.
1288 - Fixed off-by-1 error with extra whitespace after substitution
1289 definition directive.
1290 - Added inline markup parsing to field lists' field names.
1291 - Added support for quoted (and unindented) literal blocks.
1292 Driven in part by a bribe from Frank Siebenlist (thanks!).
1293 - Parser now handles escapes in URIs correctly.
1294 - Made embedded-URIs' reference text omittable. Idea from Beni
1296 - Refactored explicit target processing code.
1297 - Added name attribute to references containing the reference name only
1298 through whitespace_normalize_name (no case changes).
1299 - parse_target no longer returns the refname after going through
1300 normalize_name. This is now handled in make_target.
1301 - Fixed bug relating to role-less interpreted text in non-English
1303 - Reorganized interpreted text processing; moved code into the new
1304 roles.py module. Contributed by Edward Loper.
1305 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1306 ``parse_directive_block``.
1308 * docutils/parsers/rst/tableparser.py:
1310 - Reworked for ``StringList``, to support "include" directives in
1313 * docutils/parsers/rst/directives/__init__.py:
1315 - Renamed ``unchanged()`` directive option conversion function to
1316 ``unchanged_required``, and added a new ``unchanged``.
1317 - Catch unicode value too high error; fixes bug 781766.
1318 - Beefed up directive error reporting.
1320 * docutils/parsers/rst/directives/body.py:
1322 - Added basic "table" directive.
1324 * docutils/parsers/rst/directives/images.py:
1326 - Added "target" option to "image" directive.
1327 - Added name attribute to references containing the reference name only
1328 through whitespace_normalize_name (no case changes).
1330 * docutils/parsers/rst/directives/misc.py:
1332 - Isolated the import of the ``urllib2`` module; was causing
1333 problems on SourceForge (``libssl.so.2`` unavailable?).
1334 - Added the "role" directive for declaring custom interpreted text
1337 * docutils/parsers/rst/directives/parts.py:
1339 - The "contents" directive does more work up-front, creating the
1340 "topic" and "title", and leaving the "pending" node for the
1341 transform. Allows earlier reference resolution; fixes subtle bug.
1343 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1344 mappings by Jannie Hofmeyr.
1346 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1347 mappings by Marek Blaha.
1349 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1350 mappings by Marcelo Huerta San Martin.
1352 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1353 Portuguese mappings by Lalo Martins.
1355 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1356 mappings by Roman Suzi.
1358 * docutils/transforms/parts.py:
1360 - The "contents" directive does more work up-front, creating the
1361 "topic" and "title", and leaving the "pending" node for the
1362 transform. Allows earlier reference resolution; fixes subtle bug.
1363 - Added support for disabling of section numbering.
1365 * docutils/transforms/references.py:
1367 - Verifying that external targets are truly targets and not indirect
1368 references. This is because we are now adding a "name" attribute to
1369 references in addition to targets. Note sure if this is correct!
1370 - Added code to hook into the unknown_reference_resolvers list for a
1371 transformer in resolve_indirect_target. This allows the
1372 unknown_reference_resolvers to keep around indirect targets which
1373 docutils doesn't know about.
1374 - Added specific error message for duplicate targets.
1376 * docutils/transforms/universal.py:
1378 - Added FilterMessages transform (removes system messages below the
1379 verbosity threshold).
1380 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1381 to FinalCheckVisitor for application-specific handling of
1382 unresolvable references.
1383 - Added specific error message for duplicate targets.
1385 * docutils/writers/__init__.py:
1387 - Added assemble_parts method to the Writer class to allow for
1388 access to a documents individual parts.
1389 - Documented & set default for ``Writer.output`` attribute.
1391 * docutils/writers/html4css1.py:
1393 - Fixed unicode handling of attribute values (bug 760673).
1394 - Prevent duplication of "class" attribute values (bug report from
1396 - Improved table grid/border handling (prompted by report from Bob
1398 - Added support for table titles.
1399 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1401 - Added functionality to keep track of individual parts of a document
1402 and store them in a dictionary as the "parts" attribute of the writer.
1403 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1404 - Added proper support for the "scale" attribute of the "image"
1405 element. Contributed by Brent Cook.
1406 - Added ``--initial-header-level`` option.
1407 - Fixed bug: the body_pre_docinfo segment depended on there being a
1408 docinfo; if no docinfo, the document title was incorporated into
1409 the body segment. Adversely affected the publish_parts interface.
1411 * docutils/writers/latex2e.py:
1413 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1414 about a missing file.
1415 - Added options and support: ``--compound-enumerators``,
1416 ``--section-prefix-for-enumerators``, and
1417 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1419 - Added option ``--use-verbatim-when-possible``, to avoid
1420 problematic characters (eg, '~' in italian) in literal blocks.
1421 - It's now possible to use four section levels in the `book` and
1422 `report` LaTeX classes. The default `article` class still has
1425 * docs/config.txt: "Docutils Configuration Files", added to project.
1426 Moved config file entry descriptions from tools.txt.
1430 - Moved config file entry descriptions to config.txt.
1432 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1435 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1436 Text Roles", added to project.
1438 * spec/rst/reStructuredText.txt:
1440 - Added description of support for <angle-bracketed> complex option
1441 arguments to option lists.
1442 - Added subsections for indented and quoted literal blocks.
1444 * test: Continually adding & updating tests.
1446 - Added test/test_settings.py & test/data/config_*.txt support
1448 - Added test/test_writers/test_htmlfragment.py.
1450 * test/DocutilsTestSupport.py:
1452 - Refactored LaTeX publisher test suite/case class names to make
1453 testing other writers easier.
1454 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1455 to test the processing of HTML fragments which use the new
1456 publish_parts convenience function.
1458 * tools/buildhtml.py:
1460 - Added support for the "--prune" option.
1461 - Removed dependency on pep2html.py; plaintext PEPs no longer
1464 * tools/docutils.conf:
1466 - Updated for configuration file reorganization.
1468 * tools/rst2html.py:
1470 - copied from tools/html.py
1474 - added a 'scripts' section to configuration
1475 - added 'tools/rst2html.py' to the scripts section
1478 Release 0.3 (2003-06-24)
1479 ========================
1483 * Renamed "attribute" to "option" for directives/extensions.
1485 * Renamed transform method "transform" to "apply".
1487 * Renamed "options" to "settings" for runtime settings (as set by
1488 command-line options). Sometimes "option" (singular) became
1489 "settings" (plural). Some variations below:
1491 - document.options -> document.settings (stored in other objects as
1493 - option_spec -> settings_spec (not directives though)
1494 - OptionSpec -> SettingsSpec
1495 - cmdline_options -> settings_spec
1496 - relative_path_options -> relative_path_settings
1497 - option_default_overrides -> settings_default_overrides
1498 - Publisher.set_options -> Publisher.get_settings
1502 * COPYING.txt: Added "Public Domain Dedication".
1504 * FAQ.txt: Frequently asked questions, added to project.
1508 - Updated with PyPI Trove classifiers.
1509 - Conditional installation of third-party modules.
1511 * docutils/__init__.py:
1513 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1514 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1515 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1516 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1517 option and its effect on the PEP template & writer.
1518 - Bumped version to 0.2.4 due to changes to the PEP template &
1520 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1521 - Added ``TransformSpec`` class for new transform system.
1522 - Bumped version to 0.2.6 for API changes (renaming).
1523 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1524 convenience functions.
1525 - Added ``Component.component_type`` attribute.
1526 - Bumped version to 0.2.8 because of the internal parser switch from
1527 plain lists to the docutils.statemachine.StringList objects.
1528 - Bumped version to 0.2.9 because of the frontend.py API changes.
1529 - Bumped version to 0.2.10 due to changes to the project layout
1530 (third-party modules removed from the "docutils" package), and
1531 signature changes in ``io.Input``/``io.Output``.
1532 - Changed version to 0.3.0 for release.
1536 - Made ``publish()`` a bit more convenient.
1537 - Generalized ``Publisher.set_io``.
1538 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1539 parameters; improved its docstring.
1540 - Added ``publish_file()`` and ``publish_string()``.
1541 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1543 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1544 "--dump-transforms" hidden options.
1545 - Added ``Publisher.apply_transforms()`` method.
1546 - Added ``Publisher.set_components()`` method; support for
1547 ``publish_*()`` conveninece functions.
1548 - Moved config file processing to docutils/frontend.py.
1549 - Added support for exit status ("exit_level" setting &
1550 ``enable_exit`` parameter for Publisher.publish() and convenience
1553 * docutils/frontend.py:
1555 - Check for & exit on identical source & destination paths.
1556 - Fixed bug with absolute paths & "--config".
1557 - Set non-command-line defaults in ``OptionParser.__init__()``:
1558 ``_source`` & ``_destination``.
1559 - Distributed ``relative_path_settings`` to components; updated
1560 ``OptionParser.populate_from_components()`` to combine it all.
1561 - Require list of keys in ``make_paths_absolute`` (was implicit in
1562 global ``relative_path_settings``).
1563 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1564 "--dump-settings", and "--dump-transforms" hidden options.
1565 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1566 code, replaced with correct code.
1567 - Added validation functionality for config files.
1568 - Added "--error-encoding" option/setting, "_disable_config"
1570 - Added encoding validation; updated "--input-encoding" and
1571 "--output-encoding"; added "--error-encoding-error-handler" and
1572 "--output-encoding-error-handler".
1573 - Moved config file processing from docutils/core.py.
1574 - Updated ``OptionParser.populate_from_components`` to handle new
1575 ``SettingsSpec.settings_defaults`` dict.
1576 - Added support for "-" => stdin/stdout.
1577 - Added "exit_level" setting ("--exit" option).
1581 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1582 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1583 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1584 - ``FileOutput.write()`` now returns the encoded output string.
1585 - Try to get path/stream name automatically in ``FileInput`` &
1587 - Added defaults for source & destination paths.
1588 - Allow for Unicode I/O with an explicit "unicode" encoding.
1589 - Added ``Output.encode()``.
1590 - Removed dependency on runtime settings; pass encoding directly.
1591 - Recognize Unicode strings in ``Input.decode()``.
1592 - Added support for output encoding error handlers.
1594 * docutils/nodes.py:
1596 - Added "Invisible" element category class.
1597 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1598 modification during a traversal.
1599 - Added element classes: ``line_block``, ``generated``, ``address``,
1600 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1601 ``superscript``, ``subscript``, ``inline``
1602 - Added support for lists of nodes to ``Element.insert()``.
1603 - Fixed parent linking in ``Element.replace()``.
1604 - Added new abstract superclass ``FixedTextElement``; adds
1605 "xml:space" attribute.
1606 - Added support for "line" attribute of ``system_message`` nodes.
1607 - Added support for the observer pattern from ``utils.Reporter``.
1608 Added ``parse_messages`` and ``transform_messages`` attributes to
1609 ``document``, removed ``messages``. Added ``note_parse_message``
1610 and ``note_transform_message`` methods.
1611 - Added support for improved diagnostics:
1613 - Added "document", "source", and "line" internal attributes to
1614 ``Node``, set by ``Node.setup_child()``.
1615 - Converted variations on ``node.parent = self`` to
1616 ``self.setup_child(node)``.
1617 - Added ``document.current_source`` & ``.current_line``
1618 attributes, and ``.note_source`` observer method.
1619 - Changed "system_message" output to GNU-Tools format.
1621 - Added a "rawsource" attribute to the ``Text`` class, for text
1622 before backslash-escape resolution.
1623 - Support for new transform system.
1624 - Reworked ``pending`` element.
1625 - Fixed XML DOM bug (SF #660611).
1626 - Removed the ``interpeted`` element class and added
1627 ``title_reference``, ``abbreviation``, ``acronym``.
1628 - Made substitutions case-sensitive-but-forgiving; moved some code
1630 - Fixed Unicode bug on element attributes (report: William Dode).
1632 * docutils/optik.py: Removed from project; replaced with
1633 extras/optparse.py and extras/textwrap.py. These will be installed
1634 only if they're not already present in the Python installation.
1636 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1637 only if it's not already present in the Python installation.
1639 * docutils/statemachine.py:
1641 - Factored out ``State.add_initial_transitions()`` so it can be
1643 - Converted whitespace-specific "blank" and "indent" transitions
1644 from special-case code to ordinary transitions: removed
1645 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1646 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1647 ``ws_initial_transitions`` attributes.
1648 - Removed ``State.match_transition()`` after merging it into
1650 - Added ``StateCorrection`` exception.
1651 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1652 (moved ``TransitionCorrection`` support there too.)
1653 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1654 ``EOFError`` instead of ``IndexError``.
1655 - Added ``State.no_match`` method.
1656 - Added support for the Observer pattern, triggered by input line
1658 - Added ``strip_top`` parameter to
1659 ``StateMachineWS.get_first_known_indented``.
1660 - Made ``context`` a parameter to ``StateMachine.run()``.
1661 - Added ``ViewList`` & ``StringList`` classes;
1662 ``extract_indented()`` becomes ``StringList.get_indented()``.
1663 - Added ``StateMachine.insert_input()``.
1664 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1665 thanks to) Fred Drake.
1667 * docutils/utils.py:
1669 - Added a ``source`` attribute to Reporter instances and
1670 ``system_message`` elements.
1671 - Added an observer pattern to ``utils.Reporter`` to keep track of
1673 - Fixed bugs in ``relative_path()``.
1674 - Added support for improved diagnostics.
1675 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1676 - Added support for encoding Reporter stderr output, and encoding
1678 - Reporter keeps track of the highest level system message yet
1681 * docutils/languages: Fixed bibliographic field language lookups.
1683 * docutils/languages/es.py: Added to project; Spanish mappings by
1684 Marcelo Huerta San Martin.
1686 * docutils/languages/fr.py: Added to project; French mappings by
1689 * docutils/languages/it.py: Added to project; Italian mappings by
1692 * docutils/languages/sk.py: Added to project; Slovak mappings by
1695 * docutils/parser/__init__.py:
1697 - Added ``Parser.finish_parse()`` method.
1699 * docutils/parser/rst/__init__.py:
1701 - Added options: "--pep-references", "--rfc-references",
1702 "--tab-width", "--trim-footnote-reference-space".
1704 * docutils/parsers/rst/states.py:
1706 - Changed "title under/overline too short" system messages from INFO
1707 to WARNING, and fixed its insertion location.
1708 - Fixed enumerated list item parsing to allow paragraphs & section
1709 titles to begin with enumerators.
1710 - Converted system messages to use the new "line" attribute.
1711 - Fixed a substitution reference edge case.
1712 - Added support for "--pep-references" and "--rfc-references"
1713 options; reworked ``Inliner`` code to make customization easier.
1714 - Removed field argument parsing.
1715 - Added support for short section title over/underlines.
1716 - Fixed "simple reference name" regexp to ignore text like
1717 "object.__method__"; not an anonymous reference.
1718 - Added support for improved diagnostics.
1719 - Reworked directive API, based on Dethe Elza's contribution. Added
1720 ``Body.parse_directive()``, ``.parse_directive_options()``,
1721 ``.parse_directive_arguments()`` methods.
1722 - Added ``ExtensionOptions`` class, to parse directive options
1723 without parsing field bodies. Factored
1724 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1725 ``ExtensionOptions``.
1726 - Improved definition list term/classifier parsing.
1727 - Added warnings for unknown directives.
1728 - Renamed ``Stuff`` to ``Struct``.
1729 - Now flagged as errors: transitions at the beginning or end of
1730 sections, empty sections (except title), and empty documents.
1731 - Updated for ``statemachine.StringList``.
1732 - Enabled recognition of schemeless email addresses in targets.
1733 - Added support for embedded URIs in hyperlink references.
1734 - Added backslash-escapes to inline markup end-string suffix.
1735 - Added support for correct interpreted text processing.
1736 - Fixed nested title parsing (topic, sidebar directives).
1737 - Added special processing of backslash-escaped whitespace (idea
1738 from David Abrahams).
1739 - Made substitutions case-sensitive-but-forgiving; moved some code
1740 to ``docutils.nodes``.
1741 - Added support for block quote attributions.
1742 - Added a kludge to work-around a conflict between the bubble-up
1743 parser strategy and short titles (<= 3 char-long over- &
1744 underlines). Fixes SF bug #738803 "infinite loop with multiple
1745 titles" submitted by Jason Diamond.
1746 - Added explicit interpreted text roles for standard inline markup:
1747 "emphasis", "strong", "literal".
1748 - Implemented "superscript" and "subscript" interpreted text roles.
1749 - Added initial support for "abbreviation" and "acronym" roles;
1751 - Added support for "--trim-footnote-reference-space" option.
1752 - Optional space before colons in directives & hyperlink targets.
1754 * docutils/parsers/rst/tableparser.py:
1756 - Fixed a bug that was producing unwanted empty rows in "simple"
1758 - Detect bad column spans in "simple" tables.
1760 * docutils/parsers/rst/directives: Updated all directive functions to
1763 * docutils/parsers/rst/directives/__init__.py:
1765 - Added ``flag()``, ``unchanged()``, ``path()``,
1766 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1767 directive option helper functions.
1768 - Added warnings for unknown directives.
1769 - Return ``None`` for missing directives.
1770 - Added ``register_directive()``, thanks to William Dode and Paul
1773 * docutils/parsers/rst/directives/admonitions.py:
1775 - Added "admonition" directive.
1777 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1778 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1779 "parsed-literal", "rubric", "epigraph", "highlights" and
1780 "pull-quote" directives.
1782 * docutils/parsers/rst/directives/images.py:
1784 - Added an "align" attribute to the "image" & "figure" directives
1785 (by Adam Chodorowski).
1786 - Added "class" option to "image", and "figclass" to "figure".
1788 * docutils/parsers/rst/directives/misc.py:
1790 - Added "include", "raw", and "replace" directives, courtesy of
1792 - Added "unicode" and "class" directives.
1794 * docutils/parsers/rst/directives/parts.py:
1796 - Added the "sectnum" directive; by Dmitry Jemerov.
1797 - Added "class" option to "contents" directive.
1799 * docutils/parsers/rst/directives/references.py: Added to project.
1800 Contains the "target-notes" directive.
1802 * docutils/parsers/rst/languages/__init__.py:
1804 - Return ``None`` from get_language() for missing language modules.
1806 * docutils/parsers/rst/languages/de.py: Added to project; German
1807 mappings by Engelbert Gruber.
1809 * docutils/parsers/rst/languages/en.py:
1811 - Added interpreted text roles mapping.
1813 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1814 mappings by Marcelo Huerta San Martin.
1816 * docutils/parsers/rst/languages/fr.py: Added to project; French
1817 mappings by William Dode.
1819 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1820 mappings by Nicola Larosa.
1822 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1823 mappings by Miroslav Vasko.
1825 * docutils/readers/__init__.py:
1827 - Added support for the observer pattern from ``utils.Reporter``, in
1828 ``Reader.parse`` and ``Reader.transform``.
1829 - Removed ``Reader.transform()`` method.
1830 - Added default parameter values to ``Reader.__init__()`` to make
1831 instantiation easier.
1832 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1834 * docutils/readers/pep.py:
1836 - Added the ``peps.TargetNotes`` transform to the Reader.
1837 - Removed PEP & RFC reference detection code; moved to
1838 parsers/rst/states.py as options (enabled here by default).
1839 - Added support for pre-acceptance PEPs (no PEP number yet).
1840 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1843 * docutils/readers/python: Python Source Reader subpackage added to
1844 project, including preliminary versions of:
1847 - moduleparser.py: Parser for Python modules.
1849 * docutils/transforms/__init__.py:
1851 - Added ``Transformer`` class and completed transform reform.
1852 - Added unknown_reference_resolvers list for each transformer. This list holds
1853 the list of functions provided by each component of the transformer that
1854 help resolve references.
1856 * docutils/transforms/frontmatter.py:
1858 - Improved support for generic fields.
1859 - Fixed bibliographic field language lookups.
1861 * docutils/transforms/misc.py: Added to project. Miscellaneous
1864 * docutils/transforms/parts.py:
1866 - Moved the "id" attribute from TOC list items to the references
1867 (``Contents.build_contents()``).
1868 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1869 - Added "class" attribute support to ``Contents``.
1871 * docutils/transforms/peps.py:
1873 - Added ``mask_email()`` function, updating to pep2html.py's
1875 - Linked "Content-Type: text/x-rst" to PEP 12.
1876 - Added the ``TargetNotes`` PEP-specific transform.
1877 - Added ``TargetNotes.cleanup_callback``.
1878 - Added title check to ``Headers``.
1880 * docutils/transforms/references.py:
1882 - Added the ``TargetNotes`` generic transform.
1883 - Split ``Hyperlinks`` into multiple transforms.
1884 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1885 - Added check for circular indirect references.
1886 - Made substitutions case-sensitive-but-forgiving.
1888 * docutils/transforms/universal.py:
1890 - Added support for the "--expose-internal-attributes" option.
1891 - Removed ``Pending`` transform classes & data.
1893 * docutils/writers/__init__.py:
1895 - Removed ``Writer.transform()`` method.
1897 * docutils/writers/docutils-xml.py:
1899 - Added XML and doctype declarations.
1900 - Added "--no-doctype" and "--no-xml-declaration" options.
1902 * docutils/writers/html4css1.py:
1904 - "name" attributes only on these tags: a, applet, form, frame,
1906 - Added "name" attribute to <a> in section titles for Netscape 4
1907 support (bug report: Pearu Peterson).
1908 - Fixed targets (names) on footnote, citation, topic title,
1909 problematic, and system_message nodes (for Netscape 4).
1910 - Changed field names from "<td>" to "<th>".
1911 - Added "@" to "@" encoding to thwart address harvesters.
1912 - Improved the vertical whitespace optimization; ignore "invisible"
1913 nodes (targets, comments, etc.).
1914 - Improved inline literals with ``<span class="pre">`` around chunks
1915 of text and `` `` for runs of spaces.
1916 - Improved modularity of output; added ``self.body_pre_docinfo`` and
1917 ``self.docinfo`` segments.
1918 - Added support for "line_block", "address" elements.
1919 - Improved backlinks (footnotes & system_messages).
1920 - Improved system_message output.
1921 - Redefined "--stylesheet" as containing an invariant URL, used
1922 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
1924 - Added "--footnote-references" option (superscript or brackets).
1925 - Added "--compact-lists" and "--no-compact-lists" options.
1926 - Added "--embed-stylesheet" and "--link-stylesheet" options;
1927 factored out ``HTMLTranslator.get_stylesheet_reference()``.
1928 - Improved field list rendering.
1929 - Added Docutils version to "generator" meta tag.
1930 - Fixed a bug with images; they must be inline, so wrapped in <p>.
1931 - Improved layout of <pre> HTML source.
1932 - Fixed attribute typo on <colspec>.
1933 - Refined XML prologue.
1934 - Support for no stylesheet.
1935 - Removed "interpreted" element support.
1936 - Added support for "title_reference", "sidebar", "attribution",
1937 "rubric", and generic "admonition" elements.
1938 - Added "--attribution" option.
1939 - Added support for "inline", "subscript", "superscript" elements.
1940 - Added initial support for "abbreviation" and "acronym";
1943 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
1947 - Double quotes in literal blocks (special treatment for de/ngerman).
1948 - Added '--hyperlink-color' option ('0' turns off coloring of links).
1949 - Added "--attribution" option.
1950 - Right align attributions.
1952 * docutils/writers/pep_html.py:
1954 - Parameterized output encoding in PEP template.
1955 - Reworked substitutions from ``locals()`` into ``subs`` dict.
1956 - Redefined "--pep-stylesheet" as containing an invariant URL, used
1957 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
1959 - Added an override on the "--footnote-references" option.
1960 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
1961 - Added Docutils version to "generator" meta tag.
1962 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1966 - Added a "silent" setting for ``buildhtml.py``.
1967 - Added a "Getting Help" section.
1968 - Rearranged the structure.
1969 - Kept up to date, with new settings, command-line options etc.
1970 - Added section for ``rst2latex.py`` (Engelbert Gruber).
1971 - Converted settings table into a definition list.
1973 * docs/rst/quickstart.txt:
1975 - Added a table of contents.
1976 - Added feedback information.
1977 - Added mention of minimum section title underline lengths.
1978 - Removed the 4-character minimum for section title underlines.
1980 * docs/rst/quickref.html:
1982 - Added a "Getting Help" section.
1983 - Added a style to make section title backlinks more subtle.
1984 - Added mention of minimum section title underline lengths.
1985 - Removed the 4-character minimum for section title underlines.
1987 * extras: Directory added to project; contains third-party modules
1988 that Docutils depends on (optparse, textwrap, roman). These are
1989 only installed if they're not already present.
1991 * licenses: Directory added to project; contains copies of license
1992 files for non-public-domain files.
1996 - Changed the focus. It's about DTD elements: structural
1997 relationships, semantics, and external (public) attributes. Not
1998 about the element class library.
1999 - Moved some implementation-specific stuff into ``docutils.nodes``
2001 - Wrote descriptions of all common attributes and parameter
2002 entities. Filled in introductory material.
2003 - Working through the element descriptions: 55 down, 37 to go.
2004 - Removed "Representation of Horizontal Rules" to
2005 spec/rst/alternatives.txt.
2007 * spec/docutils.dtd:
2009 - Added "generated" inline element.
2010 - Added "line_block" body element.
2011 - Added "auto" attribute to "title".
2012 - Changed content models of "literal_block" and "doctest_block" to
2014 - Added ``%number;`` attribute type parameter entity.
2015 - Changed ``%structural.elements;`` to ``%section.elements``.
2016 - Updated attribute types; made more specific.
2017 - Added "address" bibliographic element.
2018 - Added "line" attribute to ``system_message`` element.
2019 - Removed "field_argument" element; "field_name" may contain
2020 multiple words and whitespace.
2021 - Changed public identifier to docutils.sf.net.
2022 - Removed "interpreted" element; added "title_reference",
2023 "abbreviation", "acronym".
2024 - Removed "refuri" attribute from "footnote_reference" and
2025 "citation_reference".
2026 - Added "sidebar", "rubric", "attribution", "admonition",
2027 "superscript", "subscript", and "inline" elements.
2029 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2031 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2033 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2035 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2038 * spec/transforms.txt: Added to project.
2040 * spec/howto: Added subdirectory, for developer how-to docs.
2042 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2043 Elza, edited & extended by David Goodger.
2045 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2048 * spec/rst/alternatives.txt:
2050 - Added "Doctree Representation of Transitions" from
2052 - Updated "Inline External Targets" & closed the debate.
2053 - Added ideas for interpreted text syntax extensions.
2054 - Added "Nested Inline Markup" section.
2056 * spec/rst/directives.txt:
2058 - Added directives: "topic", "sectnum", "target-notes",
2059 "line-block", "parsed-literal", "include", "replace", "sidebar",
2060 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2062 - Formalized descriptions of directive details.
2063 - Added an "align" attribute to the "image" & "figure" directives
2064 (by Adam Chodorowski).
2065 - Added "class" options to "topic", "sidebar", "line-block",
2066 "parsed-literal", "contents", and "image"; and "figclass" to
2069 * spec/rst/interpreted.txt: Added to project. Descriptions of
2070 interpreted text roles.
2072 * spec/rst/introduction.txt:
2074 - Added pointers to material for new users.
2076 * spec/rst/reStructuredText.txt:
2078 - Disambiguated comments (just add a newline after the "::").
2079 - Updated enumerated list description; added a discussion of the
2080 second-line validity checking.
2081 - Updated directive description.
2082 - Added a note redirecting newbies to the user docs.
2083 - Expanded description of inline markup start-strings in non-markup
2085 - Removed field arguments and made field lists a generic construct.
2086 - Removed the 4-character minimum for section title underlines.
2087 - Clarified term/classifier delimiter & inline markup ambiguity
2089 - Added "Embedded URIs".
2090 - Updated "Interpreted Text" section.
2091 - Added "Character-Level Inline Markup" section.
2093 * test: Continually adding & updating tests.
2095 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2096 - Moved test/test_pep/ to test/test_readers/test_pep/.
2097 - Added test/test_readers/test_python/.
2098 - Added test/test_writers/ (Engelbert Gruber).
2102 - Made the ``locale.setlocale()`` calls in front ends
2105 * tools/buildhtml.py:
2107 - Added "--silent" option.
2108 - Fixed bug with absolute paths & "--config".
2109 - Updated for new I/O classes.
2110 - Added some exception handling.
2111 - Separated publishers' setting defaults; prevents interference.
2112 - Updated for new ``publish_file()`` convenience function.
2114 * tools/pep-html-template:
2116 - Allow for "--embed-stylesheet".
2117 - Added Docutils version to "generator" meta tag.
2118 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2119 - Conform to XHTML spec.
2121 * tools/pep2html.py:
2123 - Made ``argv`` a parameter to ``main()``.
2124 - Added support for "Content-Type:" header & arbitrary PEP formats.
2125 - Linked "Content-Type: text/plain" to PEP 9.
2126 - Files skipped (due to an error) are not pushed onto the server.
2127 - Updated for new I/O classes.
2128 - Added ``check_requirements()`` & ``pep_type_error()``.
2129 - Added some exception handling.
2130 - Updated for new ``publish_string()`` convenience function.
2131 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2133 * tools/quicktest.py:
2135 - Added "-V"/"--version" option.
2137 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2139 * tools/unicode2rstsubs.py: Added to project. Produces character
2140 entity files (reSructuredText substitutions) from the MathML master
2143 * tools/editors: Support code for editors, added to project. Contains
2144 ``emacs/restructuredtext.el``.
2146 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2148 - Added style for chunks of inline literals.
2149 - Removed margin for first child of table cells.
2150 - Right-aligned field list names.
2151 - Support for auto-numbered section titles in TOCs.
2152 - Increased the size of inline literals (<tt>) in titles.
2153 - Restored the light gray background for inline literals.
2154 - Added support for "line_block" elements.
2155 - Added style for "address" elements.
2156 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2157 - Improved field list rendering.
2158 - Vertical whitespace improvements.
2159 - Removed "a.target" style.
2161 * tools/stylesheets/pep.css:
2163 - Fixed nested section margins.
2164 - Other changes parallel those of ``../default.css``.
2167 Release 0.2 (2002-07-31)
2168 ========================
2172 - The word "component" was being used ambiguously. From now on,
2173 "component" will be used to mean "Docutils component", as in Reader,
2174 Writer, Parser, or Transform. Portions of documents (Table of
2175 Contents, sections, etc.) will be called "document parts".
2176 - Did a grand renaming: a lot of ``verylongnames`` became
2177 ``very_long_names``.
2178 - Cleaned up imports: no more relative package imports or
2179 comma-separated lists of top-level modules.
2180 - Added support for an option values object which carries default
2181 settings and overrides (from command-line options and library use).
2182 - Added internal Unicode support, and support for both input and
2184 - Added support for the ``docutils.io.IO`` class & subclasses.
2188 * docutils/__init__.py:
2190 - Added ``ApplicationError`` and ``DataError``, for use throughout
2192 - Added ``Component`` base class for Docutils components; implements
2193 the ``supports`` method.
2194 - Added ``__version__`` (thus, ``docutils.__version__``).
2198 - Removed many keyword parameters to ``Publisher.__init__()`` and
2199 ``publish()``; bundled into an option values object. Added
2200 "argv", "usage", "description", and "option_spec" parameters for
2201 command-line support.
2202 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2204 - Reworked I/O model for ``docutils.io`` wrappers.
2205 - Updated ``Publisher.set_options()``; now returns option values
2207 - Added support for configuration files (/etc/docutils.conf,
2208 ./docutils.conf, ~/.docutils).
2209 - Added ``Publisher.setup_option_parser()``.
2210 - Added default usage message and description.
2212 * docutils/frontend.py: Added to project; support for front-end
2213 (command-line) scripts. Option specifications may be augmented by
2214 components. Requires Optik (http://optik.sf.net/) for option
2215 processing (installed locally as docutils/optik.py).
2217 * docutils/io.py: Added to project; uniform API for a variety of input
2220 * docutils/nodes.py:
2222 - Added ``TreeCopyVisitor`` class.
2223 - Added a ``copy`` method to ``Node`` and subclasses.
2224 - Added a ``SkipDeparture`` exception for visitors.
2225 - Renamed ``TreePruningException`` from ``VisitorException``.
2226 - Added docstrings to ``TreePruningException``, subclasses, and
2228 - Improved docstrings.
2229 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2230 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2232 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2233 ``PreDecorative`` mixin.
2234 - Reworked the name/id bookkeeping; to ``document``, removed
2235 ``explicit_targets`` and ``implicit_targets`` attributes, added
2236 ``nametypes`` attribute and ``set_name_id_map`` method.
2237 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2239 - Added ``document.has_name()`` method.
2240 - Fixed DOM generation for list-attributes.
2241 - Added category class ``Labeled`` (used by footnotes & citations).
2242 - Added ``Element.set_class()`` method (sets "class" attribute).
2244 * docutils/optik.py: Added to project. Combined from the Optik
2245 package, with added option groups and other modifications. The use
2246 of this module is probably only temporary.
2248 * docutils/statemachine.py:
2250 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2251 - Added underscores to improve many awkward names.
2252 - In ``string2lines()``, changed whitespace normalizing translation
2253 table to regexp; restores Python 2.0 compatibility with Unicode.
2255 * docutils/urischemes.py:
2257 - Filled in some descriptions.
2258 - Added "shttp" scheme.
2260 * docutils/utils.py:
2262 - Added ``clean_rcs_keywords`` function (moved from
2263 docutils/transforms/frontmatter.py
2264 ``DocInfo.filter_rcs_keywords``).
2265 - Added underscores to improve many awkward names.
2266 - Changed names of Reporter's thresholds:
2267 warning_level -> report_level; error_level -> halt_level.
2268 - Moved ``utils.id()`` to ``nodes.make_id()``.
2269 - Added ``relative_path(source, target)``.
2271 * docutils/languages/de.py: German mappings; added to project. Thanks
2272 to Gunnar Schwant for the translations.
2274 * docutils/languages/en.py: Added "Dedication" bibliographic field
2277 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2280 * docutils/parsers/rst/states.py:
2282 - Added underscores to improve many awkward names.
2283 - Added RFC-2822 header support.
2284 - Extracted the inline parsing code from ``RSTState`` to a separate
2285 class, ``Inliner``, which will allow easy subclassing.
2286 - Made local bindings for ``memo`` container & often-used contents
2287 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2288 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2289 - Added ``MarkupMismatch`` exception; for late corrections.
2290 - Added ``-/:`` characters to inline markup's start string prefix,
2291 ``/`` to end string suffix.
2292 - Fixed a footnote bug.
2293 - Fixed a bug with literal blocks.
2294 - Applied patch from Simon Budig: simplified regexps with symbolic
2295 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2296 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2297 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2298 - Allowed non-ASCII in "simple names" (directive names, field names,
2300 - Converted ``Inliner.patterns.initial`` to be dynamically built
2301 from parts with ``build_regexp()`` function.
2302 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2303 - Updated docstrings.
2304 - Changed "table" to "grid_table"; added "simple_table" support.
2306 * docutils/parsers/rst/tableparser.py:
2308 - Changed ``TableParser`` to ``GridTableParser``.
2309 - Added ``SimpleTableParser``.
2310 - Refactored naming.
2312 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2313 a fallback language for directive names.
2315 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2316 directive to use a ``pending`` element, used only by HTML writers.
2318 * docutils/parsers/rst/directives/parts.py: Renamed from
2321 - Added "backlinks" attribute to "contents" directive.
2323 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2324 project by Adam Chodorowski.
2326 * docutils/readers/__init__.py: Gave Readers more control over
2327 choosing and instantiating Parsers.
2329 * docutils/readers/pep.py: Added to project; for PEP processing.
2331 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2332 requires a ``component`` parameter.
2334 * docutils/transforms/components.py: Added to project; transforms
2335 related to Docutils components.
2337 * docutils/transforms/frontmatter.py:
2339 - In ``DocInfo.extract_authors``, check for a single "author" in an
2340 "authors" group, and convert it to a single "author" element.
2341 - Added support for "Dedication" and generic bibliographic fields.
2343 * docutils/transforms/peps.py: Added to project; PEP-specific.
2345 * docutils/transforms/parts.py: Renamed from old components.py.
2347 - Added filter for `Contents`, to use alt-text for inline images,
2348 and to remove inline markup that doesn't make sense in the ToC.
2349 - Added "name" attribute to TOC topic depending on its title.
2350 - Added support for optional TOC backlinks.
2352 * docutils/transforms/references.py: Fixed indirect target resolution
2353 in ``Hyperlinks`` transform.
2355 * docutils/transforms/universal.py:
2357 - Changed ``Messages`` transform to properly filter out system
2358 messages below the warning threshold.
2359 - Added ``Decorations`` transform (support for ``--generator``,
2360 ``--date``, ``--time``, ``--source-link`` options).
2362 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2363 Engelbert Gruber's PDF writer.
2365 * docutils/writers/html4css1.py:
2367 - Made XHTML-compatible (switched to lowercase element & attribute
2368 names; empty tag format).
2369 - Escape double-dashes in comment text.
2370 - Improved boilerplate & modularity of output.
2371 - Exposed modular output in Writer class.
2372 - Added a "generator" meta tag to <head>.
2373 - Added support for the ``--stylesheet`` option.
2374 - Added support for ``decoration``, ``header``, and ``footer``
2376 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2377 translation table to regexp; restores Python 2.0 compatibility
2379 - Added the translator class as instance variable to the Writer, to
2380 make it easily subclassable.
2381 - Improved option list spacing (thanks to Richard Jones).
2382 - Modified field list output.
2383 - Added backlinks to footnotes & citations.
2384 - Added percentage widths to "<col>" tags (from colspec).
2385 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2386 "<span>" changed to "<var>".
2387 - Inline literals: "<code>" changed to "<tt>".
2388 - Many changes to optimize vertical space: compact simple lists etc.
2389 - Add a command-line options & directive attributes to control TOC
2390 and footnote/citation backlinks.
2391 - Added support for optional footnote/citation backlinks.
2392 - Added support for generic bibliographic fields.
2393 - Identify backrefs.
2394 - Relative URLs for stylesheet links.
2396 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2397 PEPs (subclass of ``html4css1.Writer``).
2399 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2401 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2402 of the Docutils internal doctree in XML.
2404 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2408 - Changed the title to "The Docutils Document Tree".
2409 - Added "Hyperlink Bookkeeping" section.
2411 * spec/docutils.dtd:
2413 - Added ``decoration``, ``header``, and ``footer`` elements.
2414 - Brought ``interpreted`` element in line with the parser: changed
2415 attribute "type" to "role", added "position".
2416 - Added support for generic bibliographic fields.
2418 * spec/notes.txt: Continual updates. Added "Project Policies".
2420 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2423 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2425 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2426 mailing list discussions.
2428 * spec/pep-0287.txt:
2430 - Renamed to "reStructuredText Docstring Format".
2432 - Reworked Q&A as an enumerated list.
2433 - Converted to reStructuredText format.
2435 * spec/pysource.dtd:
2437 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2439 * spec/pysource.txt: Removed from project. Moved much of its contents
2442 * spec/rst/alternatives.txt:
2444 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2445 - Added "Inline External Targets" section.
2447 * spec/rst/directives.txt:
2449 - Added "backlinks" attribute to "contents" directive.
2451 * spec/rst/problems.txt:
2453 - Updated the Enumerated List Markup discussion.
2454 - Added new alternative table markup syntaxes.
2456 * spec/rst/reStructuredText.txt:
2458 - Clarified field list usage.
2459 - Updated enumerated list description.
2460 - Clarified purpose of directives.
2461 - Added ``-/:`` characters to inline markup's start string prefix,
2462 ``/`` to end string suffix.
2463 - Updated "Authors" bibliographic field behavior.
2464 - Changed "inline hyperlink targets" to "inline internal targets".
2465 - Added "simple table" syntax to supplement the existing but
2466 newly-renamed "grid tables".
2467 - Added cautions for anonymous hyperlink use.
2468 - Added "Dedication" and generic bibliographic fields.
2470 * test: Made test modules standalone (subdirectories became packages).
2472 * test/DocutilsTestSupport.py:
2474 - Added support for PEP extensions to reStructuredText.
2475 - Added support for simple tables.
2476 - Refactored naming.
2478 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2480 - Now supports true packages containing test modules
2481 (``__init__.py`` files required); fixes duplicate module name bug.
2483 * test/test_pep/: Subpackage added to project; PEP testing.
2485 * test/test_rst/test_SimpleTableParser.py: Added to project.
2489 - Updated html.py and publish.py front-end tools to use the new
2490 command-line processing facilities of ``docutils.frontend``
2491 (exposed in ``docutils.core.Publisher``), reducing each to just a
2493 - Added ``locale.setlocale()`` calls to front-end tools.
2495 * tools/buildhtml.py: Added to project; batch-generates .html from all
2496 the .txt files in directories and subdirectories.
2498 * tools/default.css:
2500 - Added support for ``header`` and ``footer`` elements.
2501 - Added styles for "Dedication" topics (biblio fields).
2503 * tools/docutils.conf: A configuration file; added to project.
2505 * tools/docutils-xml.py: Added to project.
2507 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2509 * tools/pep-html-template: Added to project.
2511 * tools/pep2html.py: Added to project from Python (nondist/peps).
2512 Added support for Docutils (reStructuredText PEPs).
2514 * tools/quicktest.py:
2516 - Added the ``--attributes`` option, hacked a bit.
2517 - Added a second command-line argument (output file); cleaned up.
2519 * tools/stylesheets/: Subdirectory added to project.
2521 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2524 Release 0.1 (2002-04-20)
2525 ========================
2527 This is the first release of Docutils, merged from the now inactive
2528 reStructuredText__ and `Docstring Processing System`__ projects. For
2529 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2530 `DPS HISTORY`__ files.
2532 __ http://structuredtext.sourceforge.net/
2533 __ http://docstring.sourceforge.net/
2534 __ http://structuredtext.sourceforge.net/HISTORY.html
2535 __ http://docstring.sourceforge.net/HISTORY.html
2537 General changes: renamed 'dps' package to 'docutils'; renamed
2538 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2539 the test suites (reStructuredText's test/test_states renamed to
2540 test/test_rst); and all modifications required to make it all work.
2542 * docutils/parsers/rst/states.py:
2544 - Improved diagnostic system messages for missing blank lines.
2545 - Fixed substitution_reference bug.
2551 indent-tabs-mode: nil
2552 sentence-end-double-space: t