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