1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: goodger@python.org
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
20 Release 0.7 (2010-07-07)
21 ========================
25 - Fix [ 2881769 ] setup configuration.
26 - Fix [ 2788716 ] reporting problems in included files.
30 - FileInput opens files as text files with universal newline support
31 (mode "rU", configurable with the new optional argument "mode").
35 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
39 - Fix [ 2923723 ] let decode_path() tolerate path == None
41 * docutils/writers/html4css1/__init__.py
43 - Support SVG and SWF images (thanks to Stefan Rank).
44 - Generate valid XHTML for centered images with targets.
45 Use CSS classes instead of "align" tags for image alignment.
47 * docutils/writers/latex2e/__init__.py
49 - Use `transforms.writer_aux.Admonitions` to "normalize" special
51 - Use the ``\url`` command for URLs (breaks long URLs instead of
52 writing into the margin).
53 - Preserve runs of spaces in `inline literals`__.
54 - Deprecate ``figure_footnotes`` setting.
55 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
56 - New ``latex_preamble`` setting.
57 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
58 - Fix hyperlink targets (labels) for images, figures, and tables.
59 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
60 - Apply [ 2961991 ] Call hyperref with unicode option.
61 - Drop the special `output_encoding`__ default ("latin-1").
62 The Docutils wide default (usually "UTF-8") is used instead.
63 - Render inline markup in document title and subtitle.
64 - Fix numbering depth with LaTeX section numbering.
65 - Update Unicode -> LaTeX translations.
66 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
68 __ docs/ref/restructuredtext.html#inline-literals
69 __ docs/user/config.html#docutils-footnotes
70 __ docs/user/config.html#output_encoding
72 * docutils/writers/manpage.py
74 - Fix: supported attribute (thanks to peter2108).
75 - Remove trailing blanks in code (keep in sync with mercurial version).
76 - Titles level 1, that is ``.SH``, always uppercase.
77 - Apply patch from mg: literal text should be bold in man-pages.
81 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
86 - Python 3 support: copy test/ and tools/ to the build-dir
87 and convert Python sources with 2to3.
90 Release 0.6 (2009-10-11)
91 ========================
95 - Docutils is now compatible with Python versions from 2.3 up to 2.6
96 and convertible to 3.1 code.
98 + Node.__nonzero__ returns True instead of 1.
99 + use os.walk instead os.path.walk.
100 + minimize "types" module where possible.
101 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
102 + Text nodes now subclass unicode rather than UserString
103 (which is gone in python 3.0).
104 + 3.0 compatibility module docutils._compat
106 + Drop 2.2 compatibility workarounds.
107 + Drop extras/optparse.py and extras/textwrap.py
108 (stdlib modules since 2.3).
110 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
111 - Unix man page export: manpage writer moved from sandbox to Doctutils
114 - Apply [ 1719345 ] Galician translation
115 - Apply [ 1905741 ] Polish translation
116 - Apply [ 1878977 ] make_id(): deaccent characters.
117 - Apply [ 2029251 ] return nonzero when tests fail.
118 - Fix [ 1692788 ] allow UTF-8 in style sheets.
119 - Fix [ 2781629 ] support non-ASCII chars in file names.
120 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
121 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
122 - Fix [ 2821266 ] --strict option works now like --halt=info.
123 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
124 - Fix [ 1627229 ] hyperlink references in substitutions.
126 - The "newlatex" writer is orphaned.
130 - Documented Unicode characters allowed as inline markup openers,
131 closers, and delimiters.
132 - Allow units for all length specifications.
133 - Allow percent sign in "scale" argument of "figure" and "image" directives.
134 - Bugfix: The "figalign" argument of a figure now works as intended
135 (aligning the figure, not its contents).
136 - Align images with class "align-[right|center|left]"
137 (allows setting the alignment of an image in a figure).
141 - Added ``Element.__contains__`` method, for the in-operator.
143 * docutils/parsers/rst/states.py:
145 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
146 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
147 " " (non-breaking space), and "¡ ¿" openers.
149 * docutils/parsers/directives/misc.py:
151 - Added ``start-line`` and ``end-line`` options to "include"
152 directive to select a range of lines.
153 - Hard tabs in literal inclusions are replaced by spaces. This is
154 configurable via the new ``tab-width`` option of the "include" directive
155 (a negative tab-width prevents tab expansion).
159 - Add ``get_stylesheet_list`` function.
160 - Apply [ 2834836 ] print info at halt
162 * docutils/transforms/universal.py:
164 - Raise default priority of StripClasses to exclude stripped classes from
167 * docutils/writers/html4css1/__init__.py:
169 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
170 separated list of stylesheets.
171 - Address [ 1938891 ] Inline literal text creates "pre" span only when
172 needed to prevent inter-word line wraps.
173 - Use `translate` method instead of repeated `replace` calls.
174 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
175 classes to allow CSS styling that does not interfere with other
176 table-using constructs (field lists, citations, ...).
178 * docutils/writers/newlatex2e/__init__.py:
180 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
182 * docutils/writers/latex2e/__init__.py (see also
183 `<docs/user/docutils-05-compat.sty.html>`__) :
185 - Add ``--embed-stylesheet`` option.
186 - Apply [ 1474017 ] image vertical alignment is reversed.
187 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
188 - Change: has_key for dictionaries (not Nodes) to in-operator.
189 - Merge adjacent citations into one latex cite command.
190 - Failsave implementation of custom roles. LaTeX compilation now ignores
191 unknown classes instead of aborting with an error.
192 - Support custom roles based on standard roles.
193 - LaTeX packages can be used as ``--stylesheet`` arguments without
194 restriction. (A style sheet is now referenced with the ``\usepackage``
195 command, if it ends with ``.sty`` or has no extension.)
196 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
197 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
198 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
199 2005-02-04 as a configurable length unit).
200 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
201 if font-encoding is set to ''. LaTeX defaults to OT1 then.
202 - Set sub- and superscript role argument in text mode not as math.
203 Use a custom role based on sub-/superscript if you want italic shape.
204 - Shorter preamble and less dependencies: Load packages and define macros
205 only if required in the document.
206 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
207 - New custom environments and commands with optional "classes" argument.
208 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
209 - Better conformance to Docutils specifications with ``--use-latex-toc``.
210 Support for LaTeX generated ToC also with unnumbered sections.
211 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
212 section numbering by LaTeX.
213 - Use default font in admonitions and sidebar.
214 - Align of image in a figure defaults to 'center'.
215 - Bugfix: Newlines around targets and references prevent run-together
217 - Fix internal hyperlinks.
218 - Use class defaults for page margins ('typearea' now optional).
219 - Float placement made configurable, default changed to "here definitely".
220 - Typeset generic topic as "quote block with title".
221 - Use template (file and configuration option).
222 - In the default template, load cmap.sty (fix text extraction in PDF) and
223 fixltx2e.sty (LaTeX patches, \textsubscript).
224 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
225 - Use `translate` instead of repeated `replace` calls for text encoding.
226 - Hyperlinked footnotes and support for symbol footnotes and
227 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
228 - Complete pairs of binary options
229 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
230 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
232 - font-encoding: "T1" (formerly implicitely set by 'ae').
233 - use-latex-toc: true (ToC with page numbers).
234 - use-latex-footnotes: true (no mixup with figures).
236 * docutils/writers/manpage.py
238 - Do not print version at document end, this is done by the viewer.
239 - Do not print date at document end, this is done by the viewer.
240 - Fix storage of docinfo fields for none standard fields.
242 * docutils/tools/rst2man.py
244 Release 0.5 (2008-06-25)
245 ========================
247 * docutils/languages/he.py: Added to project: Hebrew mappings by
250 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
251 mappings by Meir Kriheli.
253 * docutils/frontend.py:
255 - Configuration files are now assumed and required to be
257 - Paths of applied configuration files are now recorded in the
258 runtime setting ``_config_files`` (accessible via
259 ``--dump-settings``).
260 - Added ``--strip-elements-with-class`` and ``--strip-class``
261 options (``strip_elements_with_classes`` and ``strip_classes``
266 - Added code to determine the input encoding from data: encoding
267 declarations or the presence of byte order marks (UTF-8 & UTF-16).
268 - Added support for IronPython 1.0.
272 - Added ``document.__getstate__`` method, for pickling.
274 * docutils/parsers/rst/states.py:
276 - Allow ``+`` and ``:`` in reference names.
277 - Unquoted targets beginning with an underscore (``.. __target:
278 URI``) are no longer accepted.
279 - Added support for multiple attributions in a physical block quote
280 (indented text block), dividing it into multiple logical block
282 - Added support for unicode bullets in bullet lists: "•", "‣", and
284 - Added support for new object-oriented directive interface,
285 retaining compatibility to the old functional interface.
286 - Added support for throwing ``DirectiveError``'s from within
289 * docutils/parsers/rst/__init__.py:
291 - Added ``Directive`` base class.
292 - Added ``DirectiveError`` base class.
293 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
296 * docutils/parsers/directives/:
298 - Refactored all reStructuredText directives to use the new
299 object-oriented directive interface. Errors are now (mostly)
300 thrown using the new ``DirectiveError`` class.
302 * docutils/parsers/directives/misc.py:
304 - Added ``start-after`` and ``end-before`` options to ``include``
305 directive; thanks to Stefan Rank.
307 * docutils/transforms/universal.py:
309 - Added ``StripClassesAndElements`` transform to remove from the
310 document tree all elements with classes in
311 ``settings.strip_elements_with_classes`` and all "classes"
312 attribute values in ``self.document.settings.strip_classes``.
314 * docutils/transforms/writer_aux.py:
316 - Added ``Admonitions`` transform to transform specific admonitions
317 (like ``note``, ``warning``, etc.) into generic admonitions with a
320 * docutils/writers/html4css1/__init__.py:
322 - Moved template functionality from the PEP/HTML writer here.
323 - Expanded the fragments available in the ``parts`` attribute.
324 - Moved ``id`` attributes from titles to surrounding ``div``
326 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
327 universally supported now).
328 - ``template.txt`` is now opened in text mode instead of binary mode
329 (to ensure Windows compatibility).
330 - ``a`` elements now have an "internal" or "external" class,
331 depending on reference type.
333 * docutils/writers/html4css1/template.txt: Added to project.
335 * docutils/writers/pep_html/:
337 - Moved template functionality to the HTML writer.
339 * docutils/writers/s5_html/__init__.py:
341 - Added ``view_mode`` & ``hidden_controls`` settings
342 (``--view-mode`` & ``--hidden-controls/--visible-controls``
345 * docutils/writers/latex2e/__init__.py:
347 - Add ``--literal-block-env``
348 - Fix: escaping ``%`` in href urls.
349 - Move usepackage hyperref after stylesheet inclusion.
350 - Fix: scrartcl does not have chapter but scrreprt.
351 - Add newline after ``\end{verbatim}``.
352 - Merge smaller differences from latex2e_adaptive_preamble.
353 - Add ``use-part-section``.
354 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
355 - Using leavemode option_list no longer needs to check if parent
356 is a definition list.
357 - Append ``\leavemode`` to definition list terms.
358 - No longer write visit\_/depart_definition_list_item comments to
360 - Table column width with 3 decimal places.
361 - Add table stubs support (boldfont).
362 - Add assemble_parts to writer.
363 - Add simply support for nested tables.
364 - Fix verbatim in tables if use-verbatim-when-possible.
365 - Use section commands down to subparagraph.
366 - Put ensuremath around some latin1 chars.
367 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
368 - New option ``--use-bibtex=style,db1,db2``.
369 - New option ``--reference-label`` to allow usage of LaTeX ref for
370 labels in section references.
371 - Add a label after every section to support sectionnumbers as reference
373 - Fix: bug# 1605376 rst2latex: bad options group list
374 - Remove inactive code for use_optionlist_for_option_list.
375 - Remove latex comments from option_list output.
376 - Fix: bug# 1612270 double qoutes in italian literal.
377 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
378 - Add option --use-latex-abstract.
379 - Image width unit ``px`` is translated to ``pt``.
380 - Add image height support.
381 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
383 - Fix: Do not escape underscores in citation reference labels if
384 use-latex-citations is set.
385 - Use centering instead of center for figure contents, to avoid vertical
387 - Recognize table class: borderless, nolines, booktabs, standard.
388 - Fix: Renaming contents section does not work with latex writer; SF
390 - Applied patch for custom roles with classes from Edward Loper.
391 - Fixed bug that caused crashes with more than 256 lists.
393 * docutils/writers/pep_html/__init__.py:
395 - Changed to support new python.org website structure and
398 * docs/howto/security.txt: "Deploying Docutils Securely", added to
401 * tools/buildhtml.py:
403 -- Added ``ignore`` setting to exclude a list of shell patterns
404 (default: ``.svn:CVS``).
406 * tools/editors/emacs/rst.el:
408 - Changed license to "GPL".
409 - Added ``rst-straighten-decorations`` function.
410 - The ``compile`` module is now always loaded.
411 - Added ``rst-toggle-line-block`` function.
412 - Headings consisting only of non-ASCII characters are now
413 recognized by ``rst-toc`` and ``rst-adjust``.
414 - Added font-lock support for multi-line comments where the first
415 comment line is empty.
416 - Added ``(require 'font-lock)``.
420 - Provide descriptive error message if distutils is missing.
423 Release 0.4 (2006-01-09)
424 ========================
428 - Updated the project policies for trunk/branch development &
431 * docutils/__init__.py:
433 - Added ``__version_details__`` attribute to describe code source
434 (repository/snapshot/release).
435 - Replaced ``default_transforms`` attribute of TransformSpec with
436 ``get_transforms()`` method.
440 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
441 functions, for document tree extraction and reprocessing.
445 - Added ``DocTreeInput`` class, for reprocessing existing documents.
446 - Added support for non-Unicode (e.g. binary) writer output.
450 - Re-introduced ``Targetable.indirect_reference_name``, for
451 MoinMoin/reST compatibility (removed in r3124/r3129).
452 - Added ``serial_escape`` function; escapes string values that are
453 elements of a list, for serialization. Modified Docutils-XML
454 writing (``Element._dom_node``) and pseudo-XML writing
455 (``Element.starttag``) to use ``serial_escape``.
456 - Added ``Node.deepcopy()`` method.
457 - Removed the internal lists ``document.substitution_refs``,
458 ``document.anonymous_refs``, and ``document.anonymous_targets``.
459 - Added a "container" element.
460 - Fixed bug where values of list-valued attributes of elements
461 originating from custom interpreted text roles (i.e., with custom
462 classes) were being shared between element instances. Reported by
465 * docutils/statemachine.py:
467 - Added trailing whitespace stripping to ``string2lines()``.
468 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
469 Asian double-width character support.
473 - Added ``east_asian_column_width()`` for double-width character
476 * docutils/languages/ja.py: Added to project: Japanese mappings by
479 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
480 mappings by Panjunyong.
482 * docutils/parsers/null.py: Added to project; a do-nothing parser.
484 * docutils/parsers/rst/__init__.py:
486 - Added validator to tab_width setting, with test. Closes SF bug
487 #1212515, report from Wu Wei.
489 * docutils/parsers/rst/states.py:
491 - Fixed bug with escaped colons indicating a literal block.
492 - Fixed bug with enumerated lists (SF#1254145).
493 - Backslash-escaped colons inside of field names are now allowed.
494 - Targets (implicit and explicit), anonymous hyperlink references
495 and auto-numbered footnote references inside of substitution
496 definitions are now disallowed.
497 - Fixed bug: list items with blank first lines.
498 - Fixed bug: block quote attributions with indented second lines.
499 - Added East Asian double-width character support (Python 2.4 only).
501 * docutils/parsers/rst/tableparser.py:
503 - Added East Asian double-width character support (Python 2.4 only).
505 * docutils/parsers/rst/directives/body.py:
507 - Added the "container" directive.
509 * docutils/parsers/rst/directives/misc.py:
511 - Added the "default-role", "title", and "date" directives.
512 - Added standard data file syntax to the "include" directive.
513 - Added support for "class" directive content.
515 * docutils/parsers/rst/directives/images.py:
517 - Added ``indirect_reference_name`` support for images with a target
519 - Added support for image width and height units.
520 - Fixed bug with image "target" options.
522 * docutils/parsers/rst/directives/references.py:
524 - Added "class" attribute to "target-notes" directive, for
525 footnote_reference classes.
527 * docutils/parsers/rst/include/: Directory added to project; contains
528 standard data files for the "include" directive. Initial contents:
529 character entity substitution definition sets, and a set of
530 definitions for S5/HTML presentations.
532 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
533 mappings by David Goodger.
535 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
536 Simplified Chinese mappings by Panjunyong.
538 * docutils/readers/__init__.py:
540 - Added universal.Decorations and universal.ExposeInternals
541 transforms as default transforms for all readers.
542 - Added ``ReReader`` base class for readers that reread an existing
545 * docutils/readers/doctree.py: Added to project; a reader for existing
548 * docutils/transforms/frontmatter.py:
550 - Fixed the DocInfo transform to handle SVN-style expansion of the
552 - In ``DocInfo.extract_authors``, treat the contents of "authors"
555 * docutils/transforms/misc.py:
557 - Added misc.Transitions transform, extracted from
558 universal.FinalChecks.
560 * docutils/transforms/references.py:
562 - Added references.DanglingReferences transform, extracted from
563 universal.FinalChecks.
564 - Fixed bug with doubly-indirect substitutions.
565 - Added footnote_reference classes attribute to "TargetNotes".
566 - Fixed bug with circular substitution definitions that put Docutils
567 into an infinite loop.
569 * docutils/transforms/universal.py:
571 - Added universal.ExposeInternals transform, extracted from
572 universal.FinalChecks.
573 - Removed universal.FinalChecks transform (logic has been moved to
574 several new transforms).
575 - Fixed bug with the "expose_internals" setting and Text nodes
576 (exposed by the "rawsource" internal attribute).
577 - Added the universal.StripComments transform, implementation of the
578 "strip_comments" setting.
580 * docutils/transforms/writer_aux.py: Added to project; auxiliary
581 transforms for writers.
583 - Added ``Compound`` transform, which flattens compound paragraphs.
585 * docutils/writers/: Several writer modules (html4css1.py) were
586 converted into packages. Support modules and data files have been
587 moved into the packages. The stylesheets for the HTML writers are
588 now installed along with the code, the code knows where to find
589 them, and the default is to use them (actually, to embed them).
590 Some adjustments to configuration files may be necessary. The
591 easiest way to obtain the new default behavior is to remove all
592 settings whose name includes "stylesheet".
594 * docutils/writers/__init__.py:
596 - Added universal.Messages and universal.FilterMessages transforms
597 as default transforms for all writers.
598 - Added ``UnfilteredWriter`` base class for writers that pass the
599 document tree on unchanged.
601 * docutils/writers/docutils_xml.py:
603 - Made ``xmlcharrefreplace`` the default output encoding error
606 * docutils/writers/html4css1/:
608 - Added support for image width and height units.
609 - Made ``xmlcharrefreplace`` the default output encoding error
611 - Made ``--embed-stylesheet`` the default rather than
612 ``--link-stylesheet``.
613 - Moved "id" attribute from container (section etc.) to title's <a>
614 tag, to be on the same tag as "name".
615 (!!! To be reverted in Docutils 0.5.)
616 - Added vertical space between fields of field lists.
617 - Added ``--compact-field-lists`` option to remove vertical space in
619 - Made cloaking of email addresses with ``--cloak-email-addresses``
621 - Fixed support for centered images.
622 - Added support for class="compact" & class="open" lists.
624 * docutils/writers/latex2e/:
626 - Underscores in citekeys are no longer escaped.
628 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
629 mapping of Unicode characters to LaTeX equivalents.
631 * docutils/writers/s5_html/: Package added to project; writer for
634 * docs/dev/distributing.txt: Added to project; guide for distributors
635 (package maintainers).
637 * docs/dev/hacking.txt: Added to project; guide for developers.
639 * docs/ref/doctree.txt:
641 - Updated for plural attributes "classes", "ids", "names",
643 - Added the "container" element.
645 * docs/ref/docutils.dtd:
647 - Updated for plural attributes "classes", "ids", "names",
650 * docs/user/emacs.txt: Added to project; a document about Emacs
651 support for reStructuredText and Docutils.
653 * docs/user/links.txt: Added to project; lists of Docutils-related
656 * docs/user/mailing-lists.txt: Added to project; information about
657 Docutils-related mailing lists and how to access them.
659 * docs/user/slide-shows.txt: Added to project; example of and docs for
660 the S5/HTML writer (``rst2s5.py`` front end).
662 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
663 Files", added to project.
665 * test/coverage.sh: Added to project; test coverage script.
667 * test/DocutilsTestSupport.py:
669 - Added support for specifying runtime settings at the suite level.
671 * test/test_functional.py:
673 - Added the ``clear_output_directory`` function.
674 - Added support for ``_test_more`` functions in functional test
677 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
679 * tools/rstpep2html.py: Renamed from pep.py.
681 * tools/dev/create_unimap.py: Added to project; script to create the
682 docutils/writers/unimap_latex.py mapping file.
684 * tools/dev/profile_docutils.py: Added to project; profiler script.
686 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
688 * tools/editors/emacs/restructuredtext.el,
689 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
690 Removed from project; the functionality is now contained in rst.el.
692 * tools/editors/emacs/rst.el: Added to project. Added many features
693 and fixed many bugs. See docs/user/emacs.txt for details.
695 * tools/stylesheets: Removed from project. Stylesheets have been
696 renamed and moved into writer packages.
699 Release 0.3.9 (2005-05-26)
700 ==========================
704 - Eliminated and replaced all uses of the old string attributes
705 ``id``, ``name``, ``dupname`` and ``class`` with references to the
706 new list attributes ``ids``, ``names``, ``dupnames`` and
707 ``classes`` throughout the whole source tree.
711 - Enabled ``--dump-*`` options when ``--traceback`` specified,
712 allowing for easier debugging.
713 - In ``Publisher.publish()``, expanded the generic top-level
716 * docutils/examples.py:
718 - Added ``internals`` function for exploration.
722 - Fixed ``Input.decode`` method to apply heuristics only if no
723 encoding is explicitly given, and to provide better reporting of
725 - The ``Input.decode`` method now removes byte order marks (BOMs)
730 - ``image`` element class changed to subclass of Element, not
731 TextElement (it's an empty element, and cannot contain text).
732 - Added ``attr_defaults`` dictionary for default attribute values.
733 - Added empty list as default value for the following attributes:
734 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
735 - Added ``document.decoration`` attribute,
736 ``document.get_decoration`` method, and ``decoration.get_header``
737 & ``.get_footer`` methods.
738 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
743 - Removed ``docutils.utils.Reporter.categories``,
744 ``docutils.utils.ConditionSet``, and all references to them, to
745 simplify error reporting.
747 * docutils/languages/nl.py: Added to project; Dutch mappings by
750 * docutils/parsers/rst/__init__.py:
752 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
754 * docutils/parsers/rst/states.py:
756 - Added check for escaped at-mark to prevent email address recognition.
757 - Fixed option lists to allow spaces inside ``<angle-bracketed option
759 - Allowed whitespace in paths and URLs.
760 - Added auto-enumerated list items.
761 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
763 - Added support for table stub columns.
765 * docutils/parsers/rst/directives/__init__.py:
767 - Allowed whitespace in paths (``path`` function).
768 - Added ``uri`` directive option conversion function.
770 * docutils/parsers/rst/directives/body.py:
772 - Fixed illegal context bug with "topic" directive (allowed within
773 sidebars; not within body elements).
775 * docutils/parsers/rst/directives/images.py:
777 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
778 - Added support for the ``file_insertion_enabled`` setting in the
779 "figure" directive (disables "figwidth" option).
780 - "image" directive: added checks for valid values of "align" option,
781 depending on context. "figure" directive: added specialized
782 "align" option and attribute on "figure" element.
783 - Made ":figwidth: image" option of "figure" directive work again.
784 - Fixed bug with reference names containing uppercase letters
785 (e.g. ``Name_``) in "target" option of "image" directive.
787 * docutils/parsers/rst/directives/misc.py:
789 - Fixed "include" and "raw" directives to catch text decoding
791 - Allowed whitespace in "include" & "raw" directive paths.
792 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
793 settings in "include" & "raw" directives.
795 * docutils/parsers/rst/directives/parts.py:
797 - Added "header" & "footer" directives.
798 - Fixed illegal context bug with "contents" directive (topics
799 allowed within sidebars; not within body elements).
801 * docutils/parsers/rst/directives/tables.py:
803 - Added "list-table" directive.
804 - Caught empty CSV table bug.
805 - Added support for the ``file_insertion_enabled`` setting in the
806 "csv-table" directive.
807 - Added ``stub-columns`` option to "csv-table" and "list-table"
810 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
811 mappings by Martijn Pieters.
813 * docutils/readers/standalone.py:
815 - Added ``--section-subtitles`` and ``--no-section-subtitles``
816 options to activate or deactivate the SectSubTitle transform.
818 * docutils/transforms/frontmatter.py:
820 - Added SectSubTitle transform to promote titles of lone
821 subsections to subtitles.
823 * docutils/transforms/references.py:
825 - Fixed mislocated internal targets bug, by propagating internal
826 targets to the next node, making use of the newly added support
827 for multiple names and IDs.
828 - Fixed duplicate footnote label bug.
829 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
832 * docutils/writers/html4css1.py:
834 - Fixed unencoded stylesheet reference bug (characters like "&" in
835 stylesheet references).
836 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
838 - Added support for multiple IDs per node by creating empty ``span``
840 - Added the ``field_name_limit`` & ``option_limit`` settings &
842 - Added support for table stub columns.
843 - Added support for the ``align`` attribute on ``figure`` elements.
844 - Added the ``cloak_email_addresses`` setting & support.
845 - Added ``html_prolog``, ``html_head``, ``html_body``,
846 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
847 ``docutils.core.publish_parts``.
848 - Added support for section subtitles.
850 * docutils/writers/latex2e.py:
852 - Fixed tables starting with more than one multirow cell.
853 - Improved --use-latex-docinfo so that organization/contact/address
854 fields are lumped with the last author field and appear on the
856 - Made sure the titlepage is always shown with --use-latex-docinfo,
857 even if the document has no title.
858 - Made sure that latex doesn't fill in today's date if no date field
860 - Added support for section subtitles.
862 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
865 * docutils/writers/null.py: Added to project; a do-nothing Writer.
867 * docs/api/publisher.txt:
869 - Added "``publish_parts`` Details" section.
871 * docutils/dev/repository.txt: Added to project; information about the
872 Docutils Subversion repository.
874 * docs/ref/docutils.dtd:
876 - Added a ``stub`` attribute to the ``colspec`` element via the
877 ``tbl.colspec.att`` parameter entity.
878 - Allowed topic elements within sidebars
879 - Added an ``align`` attribute to the ``figure`` element.
881 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
885 Release 0.3.7 (2004-12-24)
886 ==========================
888 * docutils/frontend.py:
890 - Added options: --input-encoding-error-handler,
891 --record-dependencies, --leave-footnote-reference-space,
893 - Added command-line and config file support for "overrides" setting
898 - Added support for input encoding error handler.
902 - Added dispatch_visit and dispatch_departure methods to
903 NodeVisitor; useful as a hook for Visitors.
904 - Changed structure of ``line_block``; added ``line``.
905 - Added ``compound`` node class.
906 - Added a mechanism for Visitors to transitionally ignore new node
911 - Moved ``escape2null`` and ``unescape`` functions from
912 docutils/parsers/rst/states.py.
914 * docutils/parsers/rst/roles.py:
917 - Changed role function API: the "text" parameter now takes
918 null-escaped interpreted text content.
920 * docutils/parsers/rst/states.py:
922 - Fixed bug where a "role" directive in a nested parse would crash
923 the parser; the state machine's "language" attribute was not being
925 - Added support for line block syntax.
926 - Fixed directive parsing bug: argument-less directives didn't
927 notice that arguments were present.
928 - Removed error checking for transitions.
929 - Added support for multiple classifiers in definition list items.
930 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
931 - Changed role function API: the "text" parameter now takes
932 null-escaped interpreted text content.
933 - Empty sections and documents are allowed now.
935 * docutils/parsers/rst/directives/__init__.py:
937 - Added ``encoding`` directive option conversion function.
938 - Allow multiple class names in class_option conversion function.
940 * docutils/parsers/rst/directives/body.py:
942 - Converted the line-block directive to use the new structure.
943 - Extracted the old line-block functionality to the ``block``
944 function (still used).
945 - Added ``compound`` directive (thanks to Lea Wiemann).
947 * docutils/parsers/rst/directives/misc.py:
949 - Added "encoding" option to "include" and "raw" directives.
950 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
951 - Allow multiple class names in the "class" directive.
953 * docutils/parsers/rst/directives/parts.py:
955 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
956 options. Thanks to Lele Gaifax.
958 * docutils/parsers/rst/directives/tables.py:
960 - Added "encoding" directive to "csv-table" directive.
961 - Added workaround for lack of Unicode support in csv.py, for
964 * docutils/transforms/misc.py:
966 - Fixed bug when multiple "class" directives are applied to a single
968 - Enabled multiple format names for "raw" directive.
970 * docutils/transforms/references.py:
972 - Added support for trimming whitespace from beside substitution
975 * docutils/transforms/universal.py:
977 - FinalChecks now checks for illegal transitions and moves
978 transitions between sections.
980 * docutils/writers/html4css1.py:
982 - HTMLTranslator.encode now converts U+00A0 to " ".
983 - "stylesheet" and "stylesheet_path" settings are now mutually
985 - Added support for the new line_block/line structure.
986 - --footnote-references now overrides
987 --trim-footnote-reference-space, if applicable.
988 - Added support for ``compound`` elements.
989 - Enabled multiple format names for "raw" directive.
990 - ``<p>`` tags of a paragraph which is the only visible child of the
991 document node are no longer stripped.
992 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
993 new method ``should_be_compact_paragraph()``.
994 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
996 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
997 the output if they have their ``class`` attribute set.
998 - The whole document is now surrounded by a ``<div
999 class="document">`` element.
1000 - Body-level images are now wrapped by their own ``<div>`` elements,
1001 with image classes copied to the wrapper, and for images which
1002 have the ``:align:`` option set, the surrounding ``<div>`` now
1003 receives a class attribute (like ``class="align-left"``).
1005 * docutils/writers/latex2e.py:
1007 - no newline after depart_term.
1008 - Added translations for some Unicode quotes.
1009 - Added option "font-encoding", made package AE the default.
1010 - "stylesheet" and "stylesheet_path" settings are now mutually
1012 - --footnote-references now overrides
1013 --trim-footnote-reference-space, if applicable.
1014 - The footnote label style now matches the footnote reference style
1015 ("brackets" or "superscript").
1016 - Added support for ``compound`` elements.
1017 - Enabled multiple format names for "raw" directive.
1019 * docs/ref/docutils.dtd:
1021 - Changed structure of the ``line_block`` element; added ``line``.
1022 - Added ``compound`` element.
1023 - Added "ltrim" and "rtrim" attributes to
1024 ``substitution_definition`` element.
1025 - Enabled multiple format names for ``raw`` element.
1026 - Enabled multiple classifiers in ``definition_list_item`` elements.
1028 * docs/ref/rst/directives.txt
1030 - Marked "line-block" as deprecated.
1031 - "Class" directive now allows multiple class names.
1032 - Added "Rationale for Class Attribute Value Conversion".
1033 - Added warning about "raw" overuse/abuse.
1035 * docs/ref/rst/restructuredtext.txt:
1037 - Added syntax for line blocks.
1038 - Definition list items may have multiple classifiers.
1040 * docs/ref/rst/roles.txt:
1044 * tools/stylesheets/default.css:
1046 - Added support for the new line_block structure.
1047 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1050 Release 0.3.5 (2004-07-29)
1051 ==========================
1055 * _`Documentation cleanup/reorganization`.
1057 - Created new subdirectories of docs/:
1059 * ``docs/user/``: introductory/tutorial material for end-users
1060 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1061 * ``docs/api/``: API reference material for client-developers
1062 * ``docs/ref/``: reference material for all groups
1063 * ``docs/howto/``: for component-developers and core-developers
1064 * ``docs/peps/``: Python Enhancement Proposals
1066 - Moved ``docs/*`` to ``docs/user/``.
1067 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1068 ``spec/`` to ``docs/dev``.
1069 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1070 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1071 - Moved ``alternatives.txt``, and ``problems.txt`` from
1072 ``spec/rst/`` to ``docs/dev/rst/``.
1073 - Moved ``reStructuredText.txt``, ``directives.txt``,
1074 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1075 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1076 ``roles.txt``, ``reStructuredText.txt`` to
1077 ``restructuredtext.txt``.
1078 - Moved ``spec/howto/`` to ``docs/howto``.
1080 In order to keep the CVS history of moved files, we supplied
1081 SourceForge with a `script for modifying the Docutils CVS
1084 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1086 After running the cleanup script:
1088 - Added ``docs/index.txt``.
1089 - Added a ``.htaccess`` file to the ``web`` module, containing
1090 redirects for all old paths to new paths. They'll preserve
1091 fragments (the "#name" part of a URL), and won't clutter up the
1092 file system, and will correct the URL in the user's browser.
1093 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1094 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1095 the "To Do" list itself in ``docs/dev/todo.txt``.
1096 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1097 section of ``docs/dev/todo.txt``.
1098 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1099 - Added "How To Report Bugs" to ``BUGS.txt``.
1100 - Went through all the sources and docs (including under web/) and
1101 updated links. Mostly done by Lea Wiemann; thanks Lea!
1102 (Still need to update links in the sandboxes.)
1106 * BUGS.txt: Added to project.
1108 * THANKS.txt: Added to project.
1110 * docutils/__init__.py:
1112 - 0.3.4: Post-release.
1116 - Added special error handling & advice for UnicodeEncodeError.
1117 - Refactored Publisher.publish (simplified exception handling &
1118 extracted debug dumps).
1119 - Renamed "enable_exit" parameter of convenience functions to
1120 "enable_exit_status".
1121 - Enabled traceback (exception propagation) by default in
1122 programmatic convenience functions.
1123 - Now publish_file and publish_cmdline convenience functions return
1124 the encoded string results in addition to their regular I/O.
1125 - Extracted common code from publish_file, publish_string, and
1126 publish_parts, into new publish_programmatically. Extracted
1127 settings code to ``Publisher.process_programmatic_settings``.
1128 - In Publisher.publish, disabled ``settings_overrides`` when
1129 ``settings`` is supplied; redundant.
1131 * docutils/frontend.py:
1133 - Added help text for "--output-encoding-error-handler" and
1134 "--error-encoding-error-handler".
1135 - Renamed "--exit" to "--exit-status".
1136 - Simplified default-setting code.
1138 * docutils/parsers/rst/__init__.py:
1140 - Added "--pep-base-url" and "--rfc-base-url" options.
1142 * docutils/parsers/rst/states.py:
1144 - Made URI recognition more aggressive and intelligent.
1146 * docutils/parsers/rst/directives/__init__.py:
1148 - Added several directive option conversion functions.
1150 * docutils/parsers/rst/directives/body.py:
1152 - Moved "table" directive to tables.py.
1154 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1157 * docutils/writers/latex2e.py:
1159 - Added "--table-style=(standard|booktabs|nolines)"
1160 - figures get "here" option (LaTeX per default puts them at bottom),
1161 and figure content is centered.
1162 - Rowspan support for tables.
1163 - Fix: admonition titles before first section.
1164 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1165 - Replave ``_`` in literal by an underlined blank, because it has the correct
1167 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1168 - A few unicode replacements, if output_encoding != utf
1169 - Add "--graphicx-option".
1170 - Indent literal-blocks.
1171 - Fix: omit ``\maketitle`` when there is no document title.
1173 * docs/index.txt: "Docutils Project Documentation Overview", added to
1176 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1177 Tool", added to project.
1179 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1181 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1183 * docs/dev/policies.txt: Added to project (extracted from
1184 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1186 * docs/dev/release.txt: Added to project (extracted from
1187 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1189 * docs/dev/testing.txt: Added to project.
1191 * docs/dev/website.txt: Added to project (extracted from
1192 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1194 * docs/ref/rst/directives.txt:
1196 - Added directives: "table", "csv-table".
1198 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1199 added to project. 1 page for syntax, and a 1 page reference for
1200 directives and roles. Source text to be used as-is; not meant to be
1203 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1204 with a change of title.
1206 * test/functional/, contents, and test/test_functional.py: Added to
1209 * tools/buildhtml.py: Fixed bug with config file handling.
1211 * tools/html.py: Removed from project (duplicate of rst2html.py).
1213 * tools/pep2html.py: Removed from project (duplicate of Python's
1214 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1215 Docutils-related PEPs in docs/peps/).
1217 * tools/rst2pseudoxml.py: Renamed from publish.py.
1219 * tools/rst2xml.py: Renamed from docutils-xml.py.
1221 * tools/test.txt: Removed from project; moved to
1222 docs/user/rst/demo.txt.
1224 * setup.py: Now also installs ``rst2latex.py``.
1227 Release 0.3.3 (2004-05-09)
1228 ==========================
1230 * docutils/__init__.py:
1232 - 0.3.1: Reorganized config file format (multiple sections); see
1234 - Added unknown_reference_resolvers attribute to TransformSpec.
1235 - 0.3.2: Interpreted text reorganization.
1240 - Catch system messages to stop tracebacks from parsing errors.
1241 - Catch exceptions during processing report & exit without
1242 tracebacks, except when "--traceback" used.
1243 - Reordered components for OptionParser; application comes last.
1244 - Added "config_section" parameter to several methods and functions,
1245 allowing front ends to easily specify their config file sections.
1246 - Added publish_parts convenience function to allow access to individual
1247 parts of a document.
1249 * docutils/examples.py: Added to project; practical examples of
1250 Docutils client code, to be used as-is or as models for variations.
1252 * docutils/frontend.py:
1254 - Added "--traceback" & "--no-traceback" options ("traceback"
1256 - Implemented support for config file reorganization:
1257 ``standard_config_files`` moved from ``ConfigParser`` to
1258 ``OptionParser``; added
1259 ``OptionParser.get_config_file_settings()`` and
1260 ``.get_standard_config_settings()``; support for old "[options]"
1261 section (with deprecation warning) and mapping from old to new
1263 - Reimplemented setting validation.
1264 - Enabled flexible boolean values: yes/no, true/false, on/off.
1265 - Added ``Values``, a subclass of ``optparse.Values``, with support
1266 for list setting attributes.
1267 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1268 thanks to Beni Cherniavsky.
1269 - Added "--no-section-numbering" option.
1273 - Catch IOErrors when opening source & destination files, report &
1274 exit without tracebacks. Added ``handle_io_errors`` parameter to
1275 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1277 * docutils/nodes.py:
1279 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1280 method definitions (via ``exec``) to dynamic assignments (via
1281 ``setattr``); thanks to Roman Suzi.
1282 - Encapsulated visitor dynamic assignments in a function; thanks to
1284 - Added indirect_reference_name attribute to the Targetable
1285 class. This attribute holds the whitespace_normalized_name
1286 (contains mixed case) of a target.
1288 * docutils/statemachine.py:
1290 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1291 - Added ``StringList.get_2D_block``.
1293 * docutils/utils.py:
1295 - Added "level" attribute to SystemMessage exceptions.
1297 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1300 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1303 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1304 Marcelo Huerta San Martin.
1306 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1307 mappings by Lalo Martins.
1309 * docutils/languages/ru.py: Added to project; Russian mappings by
1312 * docutils/parsers/rst/roles.py: Added to project. Contains
1313 interpreted text role functions, a registry for interpreted text
1314 roles, and an API for adding to and retrieving from the registry.
1315 Contributed by Edward Loper.
1317 * docutils/parsers/rst/states.py:
1319 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1320 - Allowed true em-dash character and "---" as block quote
1322 - Added support for <angle-bracketed> complex option arguments
1324 - Fixed handling of backslashes in substitution definitions.
1325 - Fixed off-by-1 error with extra whitespace after substitution
1326 definition directive.
1327 - Added inline markup parsing to field lists' field names.
1328 - Added support for quoted (and unindented) literal blocks.
1329 Driven in part by a bribe from Frank Siebenlist (thanks!).
1330 - Parser now handles escapes in URIs correctly.
1331 - Made embedded-URIs' reference text omittable. Idea from Beni
1333 - Refactored explicit target processing code.
1334 - Added name attribute to references containing the reference name only
1335 through whitespace_normalize_name (no case changes).
1336 - parse_target no longer returns the refname after going through
1337 normalize_name. This is now handled in make_target.
1338 - Fixed bug relating to role-less interpreted text in non-English
1340 - Reorganized interpreted text processing; moved code into the new
1341 roles.py module. Contributed by Edward Loper.
1342 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1343 ``parse_directive_block``.
1345 * docutils/parsers/rst/tableparser.py:
1347 - Reworked for ``StringList``, to support "include" directives in
1350 * docutils/parsers/rst/directives/__init__.py:
1352 - Renamed ``unchanged()`` directive option conversion function to
1353 ``unchanged_required``, and added a new ``unchanged``.
1354 - Catch unicode value too high error; fixes bug 781766.
1355 - Beefed up directive error reporting.
1357 * docutils/parsers/rst/directives/body.py:
1359 - Added basic "table" directive.
1361 * docutils/parsers/rst/directives/images.py:
1363 - Added "target" option to "image" directive.
1364 - Added name attribute to references containing the reference name only
1365 through whitespace_normalize_name (no case changes).
1367 * docutils/parsers/rst/directives/misc.py:
1369 - Isolated the import of the ``urllib2`` module; was causing
1370 problems on SourceForge (``libssl.so.2`` unavailable?).
1371 - Added the "role" directive for declaring custom interpreted text
1374 * docutils/parsers/rst/directives/parts.py:
1376 - The "contents" directive does more work up-front, creating the
1377 "topic" and "title", and leaving the "pending" node for the
1378 transform. Allows earlier reference resolution; fixes subtle bug.
1380 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1381 mappings by Jannie Hofmeyr.
1383 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1384 mappings by Marek Blaha.
1386 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1387 mappings by Marcelo Huerta San Martin.
1389 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1390 Portuguese mappings by Lalo Martins.
1392 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1393 mappings by Roman Suzi.
1395 * docutils/transforms/parts.py:
1397 - The "contents" directive does more work up-front, creating the
1398 "topic" and "title", and leaving the "pending" node for the
1399 transform. Allows earlier reference resolution; fixes subtle bug.
1400 - Added support for disabling of section numbering.
1402 * docutils/transforms/references.py:
1404 - Verifying that external targets are truly targets and not indirect
1405 references. This is because we are now adding a "name" attribute to
1406 references in addition to targets. Note sure if this is correct!
1407 - Added code to hook into the unknown_reference_resolvers list for a
1408 transformer in resolve_indirect_target. This allows the
1409 unknown_reference_resolvers to keep around indirect targets which
1410 docutils doesn't know about.
1411 - Added specific error message for duplicate targets.
1413 * docutils/transforms/universal.py:
1415 - Added FilterMessages transform (removes system messages below the
1416 verbosity threshold).
1417 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1418 to FinalCheckVisitor for application-specific handling of
1419 unresolvable references.
1420 - Added specific error message for duplicate targets.
1422 * docutils/writers/__init__.py:
1424 - Added assemble_parts method to the Writer class to allow for
1425 access to a documents individual parts.
1426 - Documented & set default for ``Writer.output`` attribute.
1428 * docutils/writers/html4css1.py:
1430 - Fixed unicode handling of attribute values (bug 760673).
1431 - Prevent duplication of "class" attribute values (bug report from
1433 - Improved table grid/border handling (prompted by report from Bob
1435 - Added support for table titles.
1436 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1438 - Added functionality to keep track of individual parts of a document
1439 and store them in a dictionary as the "parts" attribute of the writer.
1440 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1441 - Added proper support for the "scale" attribute of the "image"
1442 element. Contributed by Brent Cook.
1443 - Added ``--initial-header-level`` option.
1444 - Fixed bug: the body_pre_docinfo segment depended on there being a
1445 docinfo; if no docinfo, the document title was incorporated into
1446 the body segment. Adversely affected the publish_parts interface.
1448 * docutils/writers/latex2e.py:
1450 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1451 about a missing file.
1452 - Added options and support: ``--compound-enumerators``,
1453 ``--section-prefix-for-enumerators``, and
1454 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1456 - Added option ``--use-verbatim-when-possible``, to avoid
1457 problematic characters (eg, '~' in italian) in literal blocks.
1458 - It's now possible to use four section levels in the `book` and
1459 `report` LaTeX classes. The default `article` class still has
1462 * docs/config.txt: "Docutils Configuration Files", added to project.
1463 Moved config file entry descriptions from tools.txt.
1467 - Moved config file entry descriptions to config.txt.
1469 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1472 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1473 Text Roles", added to project.
1475 * spec/rst/reStructuredText.txt:
1477 - Added description of support for <angle-bracketed> complex option
1478 arguments to option lists.
1479 - Added subsections for indented and quoted literal blocks.
1481 * test: Continually adding & updating tests.
1483 - Added test/test_settings.py & test/data/config_*.txt support
1485 - Added test/test_writers/test_htmlfragment.py.
1487 * test/DocutilsTestSupport.py:
1489 - Refactored LaTeX publisher test suite/case class names to make
1490 testing other writers easier.
1491 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1492 to test the processing of HTML fragments which use the new
1493 publish_parts convenience function.
1495 * tools/buildhtml.py:
1497 - Added support for the "--prune" option.
1498 - Removed dependency on pep2html.py; plaintext PEPs no longer
1501 * tools/docutils.conf:
1503 - Updated for configuration file reorganization.
1505 * tools/rst2html.py:
1507 - copied from tools/html.py
1511 - added a 'scripts' section to configuration
1512 - added 'tools/rst2html.py' to the scripts section
1515 Release 0.3 (2003-06-24)
1516 ========================
1520 * Renamed "attribute" to "option" for directives/extensions.
1522 * Renamed transform method "transform" to "apply".
1524 * Renamed "options" to "settings" for runtime settings (as set by
1525 command-line options). Sometimes "option" (singular) became
1526 "settings" (plural). Some variations below:
1528 - document.options -> document.settings (stored in other objects as
1530 - option_spec -> settings_spec (not directives though)
1531 - OptionSpec -> SettingsSpec
1532 - cmdline_options -> settings_spec
1533 - relative_path_options -> relative_path_settings
1534 - option_default_overrides -> settings_default_overrides
1535 - Publisher.set_options -> Publisher.get_settings
1539 * COPYING.txt: Added "Public Domain Dedication".
1541 * FAQ.txt: Frequently asked questions, added to project.
1545 - Updated with PyPI Trove classifiers.
1546 - Conditional installation of third-party modules.
1548 * docutils/__init__.py:
1550 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1551 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1552 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1553 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1554 option and its effect on the PEP template & writer.
1555 - Bumped version to 0.2.4 due to changes to the PEP template &
1557 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1558 - Added ``TransformSpec`` class for new transform system.
1559 - Bumped version to 0.2.6 for API changes (renaming).
1560 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1561 convenience functions.
1562 - Added ``Component.component_type`` attribute.
1563 - Bumped version to 0.2.8 because of the internal parser switch from
1564 plain lists to the docutils.statemachine.StringList objects.
1565 - Bumped version to 0.2.9 because of the frontend.py API changes.
1566 - Bumped version to 0.2.10 due to changes to the project layout
1567 (third-party modules removed from the "docutils" package), and
1568 signature changes in ``io.Input``/``io.Output``.
1569 - Changed version to 0.3.0 for release.
1573 - Made ``publish()`` a bit more convenient.
1574 - Generalized ``Publisher.set_io``.
1575 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1576 parameters; improved its docstring.
1577 - Added ``publish_file()`` and ``publish_string()``.
1578 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1580 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1581 "--dump-transforms" hidden options.
1582 - Added ``Publisher.apply_transforms()`` method.
1583 - Added ``Publisher.set_components()`` method; support for
1584 ``publish_*()`` conveninece functions.
1585 - Moved config file processing to docutils/frontend.py.
1586 - Added support for exit status ("exit_level" setting &
1587 ``enable_exit`` parameter for Publisher.publish() and convenience
1590 * docutils/frontend.py:
1592 - Check for & exit on identical source & destination paths.
1593 - Fixed bug with absolute paths & "--config".
1594 - Set non-command-line defaults in ``OptionParser.__init__()``:
1595 ``_source`` & ``_destination``.
1596 - Distributed ``relative_path_settings`` to components; updated
1597 ``OptionParser.populate_from_components()`` to combine it all.
1598 - Require list of keys in ``make_paths_absolute`` (was implicit in
1599 global ``relative_path_settings``).
1600 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1601 "--dump-settings", and "--dump-transforms" hidden options.
1602 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1603 code, replaced with correct code.
1604 - Added validation functionality for config files.
1605 - Added "--error-encoding" option/setting, "_disable_config"
1607 - Added encoding validation; updated "--input-encoding" and
1608 "--output-encoding"; added "--error-encoding-error-handler" and
1609 "--output-encoding-error-handler".
1610 - Moved config file processing from docutils/core.py.
1611 - Updated ``OptionParser.populate_from_components`` to handle new
1612 ``SettingsSpec.settings_defaults`` dict.
1613 - Added support for "-" => stdin/stdout.
1614 - Added "exit_level" setting ("--exit" option).
1618 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1619 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1620 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1621 - ``FileOutput.write()`` now returns the encoded output string.
1622 - Try to get path/stream name automatically in ``FileInput`` &
1624 - Added defaults for source & destination paths.
1625 - Allow for Unicode I/O with an explicit "unicode" encoding.
1626 - Added ``Output.encode()``.
1627 - Removed dependency on runtime settings; pass encoding directly.
1628 - Recognize Unicode strings in ``Input.decode()``.
1629 - Added support for output encoding error handlers.
1631 * docutils/nodes.py:
1633 - Added "Invisible" element category class.
1634 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1635 modification during a traversal.
1636 - Added element classes: ``line_block``, ``generated``, ``address``,
1637 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1638 ``superscript``, ``subscript``, ``inline``
1639 - Added support for lists of nodes to ``Element.insert()``.
1640 - Fixed parent linking in ``Element.replace()``.
1641 - Added new abstract superclass ``FixedTextElement``; adds
1642 "xml:space" attribute.
1643 - Added support for "line" attribute of ``system_message`` nodes.
1644 - Added support for the observer pattern from ``utils.Reporter``.
1645 Added ``parse_messages`` and ``transform_messages`` attributes to
1646 ``document``, removed ``messages``. Added ``note_parse_message``
1647 and ``note_transform_message`` methods.
1648 - Added support for improved diagnostics:
1650 - Added "document", "source", and "line" internal attributes to
1651 ``Node``, set by ``Node.setup_child()``.
1652 - Converted variations on ``node.parent = self`` to
1653 ``self.setup_child(node)``.
1654 - Added ``document.current_source`` & ``.current_line``
1655 attributes, and ``.note_source`` observer method.
1656 - Changed "system_message" output to GNU-Tools format.
1658 - Added a "rawsource" attribute to the ``Text`` class, for text
1659 before backslash-escape resolution.
1660 - Support for new transform system.
1661 - Reworked ``pending`` element.
1662 - Fixed XML DOM bug (SF #660611).
1663 - Removed the ``interpeted`` element class and added
1664 ``title_reference``, ``abbreviation``, ``acronym``.
1665 - Made substitutions case-sensitive-but-forgiving; moved some code
1667 - Fixed Unicode bug on element attributes (report: William Dode).
1669 * docutils/optik.py: Removed from project; replaced with
1670 extras/optparse.py and extras/textwrap.py. These will be installed
1671 only if they're not already present in the Python installation.
1673 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1674 only if it's not already present in the Python installation.
1676 * docutils/statemachine.py:
1678 - Factored out ``State.add_initial_transitions()`` so it can be
1680 - Converted whitespace-specific "blank" and "indent" transitions
1681 from special-case code to ordinary transitions: removed
1682 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1683 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1684 ``ws_initial_transitions`` attributes.
1685 - Removed ``State.match_transition()`` after merging it into
1687 - Added ``StateCorrection`` exception.
1688 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1689 (moved ``TransitionCorrection`` support there too.)
1690 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1691 ``EOFError`` instead of ``IndexError``.
1692 - Added ``State.no_match`` method.
1693 - Added support for the Observer pattern, triggered by input line
1695 - Added ``strip_top`` parameter to
1696 ``StateMachineWS.get_first_known_indented``.
1697 - Made ``context`` a parameter to ``StateMachine.run()``.
1698 - Added ``ViewList`` & ``StringList`` classes;
1699 ``extract_indented()`` becomes ``StringList.get_indented()``.
1700 - Added ``StateMachine.insert_input()``.
1701 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1702 thanks to) Fred Drake.
1704 * docutils/utils.py:
1706 - Added a ``source`` attribute to Reporter instances and
1707 ``system_message`` elements.
1708 - Added an observer pattern to ``utils.Reporter`` to keep track of
1710 - Fixed bugs in ``relative_path()``.
1711 - Added support for improved diagnostics.
1712 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1713 - Added support for encoding Reporter stderr output, and encoding
1715 - Reporter keeps track of the highest level system message yet
1718 * docutils/languages: Fixed bibliographic field language lookups.
1720 * docutils/languages/es.py: Added to project; Spanish mappings by
1721 Marcelo Huerta San Martin.
1723 * docutils/languages/fr.py: Added to project; French mappings by
1726 * docutils/languages/it.py: Added to project; Italian mappings by
1729 * docutils/languages/sk.py: Added to project; Slovak mappings by
1732 * docutils/parser/__init__.py:
1734 - Added ``Parser.finish_parse()`` method.
1736 * docutils/parser/rst/__init__.py:
1738 - Added options: "--pep-references", "--rfc-references",
1739 "--tab-width", "--trim-footnote-reference-space".
1741 * docutils/parsers/rst/states.py:
1743 - Changed "title under/overline too short" system messages from INFO
1744 to WARNING, and fixed its insertion location.
1745 - Fixed enumerated list item parsing to allow paragraphs & section
1746 titles to begin with enumerators.
1747 - Converted system messages to use the new "line" attribute.
1748 - Fixed a substitution reference edge case.
1749 - Added support for "--pep-references" and "--rfc-references"
1750 options; reworked ``Inliner`` code to make customization easier.
1751 - Removed field argument parsing.
1752 - Added support for short section title over/underlines.
1753 - Fixed "simple reference name" regexp to ignore text like
1754 "object.__method__"; not an anonymous reference.
1755 - Added support for improved diagnostics.
1756 - Reworked directive API, based on Dethe Elza's contribution. Added
1757 ``Body.parse_directive()``, ``.parse_directive_options()``,
1758 ``.parse_directive_arguments()`` methods.
1759 - Added ``ExtensionOptions`` class, to parse directive options
1760 without parsing field bodies. Factored
1761 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1762 ``ExtensionOptions``.
1763 - Improved definition list term/classifier parsing.
1764 - Added warnings for unknown directives.
1765 - Renamed ``Stuff`` to ``Struct``.
1766 - Now flagged as errors: transitions at the beginning or end of
1767 sections, empty sections (except title), and empty documents.
1768 - Updated for ``statemachine.StringList``.
1769 - Enabled recognition of schemeless email addresses in targets.
1770 - Added support for embedded URIs in hyperlink references.
1771 - Added backslash-escapes to inline markup end-string suffix.
1772 - Added support for correct interpreted text processing.
1773 - Fixed nested title parsing (topic, sidebar directives).
1774 - Added special processing of backslash-escaped whitespace (idea
1775 from David Abrahams).
1776 - Made substitutions case-sensitive-but-forgiving; moved some code
1777 to ``docutils.nodes``.
1778 - Added support for block quote attributions.
1779 - Added a kludge to work-around a conflict between the bubble-up
1780 parser strategy and short titles (<= 3 char-long over- &
1781 underlines). Fixes SF bug #738803 "infinite loop with multiple
1782 titles" submitted by Jason Diamond.
1783 - Added explicit interpreted text roles for standard inline markup:
1784 "emphasis", "strong", "literal".
1785 - Implemented "superscript" and "subscript" interpreted text roles.
1786 - Added initial support for "abbreviation" and "acronym" roles;
1788 - Added support for "--trim-footnote-reference-space" option.
1789 - Optional space before colons in directives & hyperlink targets.
1791 * docutils/parsers/rst/tableparser.py:
1793 - Fixed a bug that was producing unwanted empty rows in "simple"
1795 - Detect bad column spans in "simple" tables.
1797 * docutils/parsers/rst/directives: Updated all directive functions to
1800 * docutils/parsers/rst/directives/__init__.py:
1802 - Added ``flag()``, ``unchanged()``, ``path()``,
1803 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1804 directive option helper functions.
1805 - Added warnings for unknown directives.
1806 - Return ``None`` for missing directives.
1807 - Added ``register_directive()``, thanks to William Dode and Paul
1810 * docutils/parsers/rst/directives/admonitions.py:
1812 - Added "admonition" directive.
1814 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1815 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1816 "parsed-literal", "rubric", "epigraph", "highlights" and
1817 "pull-quote" directives.
1819 * docutils/parsers/rst/directives/images.py:
1821 - Added an "align" attribute to the "image" & "figure" directives
1822 (by Adam Chodorowski).
1823 - Added "class" option to "image", and "figclass" to "figure".
1825 * docutils/parsers/rst/directives/misc.py:
1827 - Added "include", "raw", and "replace" directives, courtesy of
1829 - Added "unicode" and "class" directives.
1831 * docutils/parsers/rst/directives/parts.py:
1833 - Added the "sectnum" directive; by Dmitry Jemerov.
1834 - Added "class" option to "contents" directive.
1836 * docutils/parsers/rst/directives/references.py: Added to project.
1837 Contains the "target-notes" directive.
1839 * docutils/parsers/rst/languages/__init__.py:
1841 - Return ``None`` from get_language() for missing language modules.
1843 * docutils/parsers/rst/languages/de.py: Added to project; German
1844 mappings by Engelbert Gruber.
1846 * docutils/parsers/rst/languages/en.py:
1848 - Added interpreted text roles mapping.
1850 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1851 mappings by Marcelo Huerta San Martin.
1853 * docutils/parsers/rst/languages/fr.py: Added to project; French
1854 mappings by William Dode.
1856 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1857 mappings by Nicola Larosa.
1859 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1860 mappings by Miroslav Vasko.
1862 * docutils/readers/__init__.py:
1864 - Added support for the observer pattern from ``utils.Reporter``, in
1865 ``Reader.parse`` and ``Reader.transform``.
1866 - Removed ``Reader.transform()`` method.
1867 - Added default parameter values to ``Reader.__init__()`` to make
1868 instantiation easier.
1869 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1871 * docutils/readers/pep.py:
1873 - Added the ``peps.TargetNotes`` transform to the Reader.
1874 - Removed PEP & RFC reference detection code; moved to
1875 parsers/rst/states.py as options (enabled here by default).
1876 - Added support for pre-acceptance PEPs (no PEP number yet).
1877 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1880 * docutils/readers/python: Python Source Reader subpackage added to
1881 project, including preliminary versions of:
1884 - moduleparser.py: Parser for Python modules.
1886 * docutils/transforms/__init__.py:
1888 - Added ``Transformer`` class and completed transform reform.
1889 - Added unknown_reference_resolvers list for each transformer. This list holds
1890 the list of functions provided by each component of the transformer that
1891 help resolve references.
1893 * docutils/transforms/frontmatter.py:
1895 - Improved support for generic fields.
1896 - Fixed bibliographic field language lookups.
1898 * docutils/transforms/misc.py: Added to project. Miscellaneous
1901 * docutils/transforms/parts.py:
1903 - Moved the "id" attribute from TOC list items to the references
1904 (``Contents.build_contents()``).
1905 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1906 - Added "class" attribute support to ``Contents``.
1908 * docutils/transforms/peps.py:
1910 - Added ``mask_email()`` function, updating to pep2html.py's
1912 - Linked "Content-Type: text/x-rst" to PEP 12.
1913 - Added the ``TargetNotes`` PEP-specific transform.
1914 - Added ``TargetNotes.cleanup_callback``.
1915 - Added title check to ``Headers``.
1917 * docutils/transforms/references.py:
1919 - Added the ``TargetNotes`` generic transform.
1920 - Split ``Hyperlinks`` into multiple transforms.
1921 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1922 - Added check for circular indirect references.
1923 - Made substitutions case-sensitive-but-forgiving.
1925 * docutils/transforms/universal.py:
1927 - Added support for the "--expose-internal-attributes" option.
1928 - Removed ``Pending`` transform classes & data.
1930 * docutils/writers/__init__.py:
1932 - Removed ``Writer.transform()`` method.
1934 * docutils/writers/docutils-xml.py:
1936 - Added XML and doctype declarations.
1937 - Added "--no-doctype" and "--no-xml-declaration" options.
1939 * docutils/writers/html4css1.py:
1941 - "name" attributes only on these tags: a, applet, form, frame,
1943 - Added "name" attribute to <a> in section titles for Netscape 4
1944 support (bug report: Pearu Peterson).
1945 - Fixed targets (names) on footnote, citation, topic title,
1946 problematic, and system_message nodes (for Netscape 4).
1947 - Changed field names from "<td>" to "<th>".
1948 - Added "@" to "@" encoding to thwart address harvesters.
1949 - Improved the vertical whitespace optimization; ignore "invisible"
1950 nodes (targets, comments, etc.).
1951 - Improved inline literals with ``<span class="pre">`` around chunks
1952 of text and `` `` for runs of spaces.
1953 - Improved modularity of output; added ``self.body_pre_docinfo`` and
1954 ``self.docinfo`` segments.
1955 - Added support for "line_block", "address" elements.
1956 - Improved backlinks (footnotes & system_messages).
1957 - Improved system_message output.
1958 - Redefined "--stylesheet" as containing an invariant URL, used
1959 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
1961 - Added "--footnote-references" option (superscript or brackets).
1962 - Added "--compact-lists" and "--no-compact-lists" options.
1963 - Added "--embed-stylesheet" and "--link-stylesheet" options;
1964 factored out ``HTMLTranslator.get_stylesheet_reference()``.
1965 - Improved field list rendering.
1966 - Added Docutils version to "generator" meta tag.
1967 - Fixed a bug with images; they must be inline, so wrapped in <p>.
1968 - Improved layout of <pre> HTML source.
1969 - Fixed attribute typo on <colspec>.
1970 - Refined XML prologue.
1971 - Support for no stylesheet.
1972 - Removed "interpreted" element support.
1973 - Added support for "title_reference", "sidebar", "attribution",
1974 "rubric", and generic "admonition" elements.
1975 - Added "--attribution" option.
1976 - Added support for "inline", "subscript", "superscript" elements.
1977 - Added initial support for "abbreviation" and "acronym";
1980 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
1984 - Double quotes in literal blocks (special treatment for de/ngerman).
1985 - Added '--hyperlink-color' option ('0' turns off coloring of links).
1986 - Added "--attribution" option.
1987 - Right align attributions.
1989 * docutils/writers/pep_html.py:
1991 - Parameterized output encoding in PEP template.
1992 - Reworked substitutions from ``locals()`` into ``subs`` dict.
1993 - Redefined "--pep-stylesheet" as containing an invariant URL, used
1994 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
1996 - Added an override on the "--footnote-references" option.
1997 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
1998 - Added Docutils version to "generator" meta tag.
1999 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2003 - Added a "silent" setting for ``buildhtml.py``.
2004 - Added a "Getting Help" section.
2005 - Rearranged the structure.
2006 - Kept up to date, with new settings, command-line options etc.
2007 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2008 - Converted settings table into a definition list.
2010 * docs/rst/quickstart.txt:
2012 - Added a table of contents.
2013 - Added feedback information.
2014 - Added mention of minimum section title underline lengths.
2015 - Removed the 4-character minimum for section title underlines.
2017 * docs/rst/quickref.html:
2019 - Added a "Getting Help" section.
2020 - Added a style to make section title backlinks more subtle.
2021 - Added mention of minimum section title underline lengths.
2022 - Removed the 4-character minimum for section title underlines.
2024 * extras: Directory added to project; contains third-party modules
2025 that Docutils depends on (optparse, textwrap, roman). These are
2026 only installed if they're not already present.
2028 * licenses: Directory added to project; contains copies of license
2029 files for non-public-domain files.
2033 - Changed the focus. It's about DTD elements: structural
2034 relationships, semantics, and external (public) attributes. Not
2035 about the element class library.
2036 - Moved some implementation-specific stuff into ``docutils.nodes``
2038 - Wrote descriptions of all common attributes and parameter
2039 entities. Filled in introductory material.
2040 - Working through the element descriptions: 55 down, 37 to go.
2041 - Removed "Representation of Horizontal Rules" to
2042 spec/rst/alternatives.txt.
2044 * spec/docutils.dtd:
2046 - Added "generated" inline element.
2047 - Added "line_block" body element.
2048 - Added "auto" attribute to "title".
2049 - Changed content models of "literal_block" and "doctest_block" to
2051 - Added ``%number;`` attribute type parameter entity.
2052 - Changed ``%structural.elements;`` to ``%section.elements``.
2053 - Updated attribute types; made more specific.
2054 - Added "address" bibliographic element.
2055 - Added "line" attribute to ``system_message`` element.
2056 - Removed "field_argument" element; "field_name" may contain
2057 multiple words and whitespace.
2058 - Changed public identifier to docutils.sf.net.
2059 - Removed "interpreted" element; added "title_reference",
2060 "abbreviation", "acronym".
2061 - Removed "refuri" attribute from "footnote_reference" and
2062 "citation_reference".
2063 - Added "sidebar", "rubric", "attribution", "admonition",
2064 "superscript", "subscript", and "inline" elements.
2066 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2068 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2070 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2072 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2075 * spec/transforms.txt: Added to project.
2077 * spec/howto: Added subdirectory, for developer how-to docs.
2079 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2080 Elza, edited & extended by David Goodger.
2082 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2085 * spec/rst/alternatives.txt:
2087 - Added "Doctree Representation of Transitions" from
2089 - Updated "Inline External Targets" & closed the debate.
2090 - Added ideas for interpreted text syntax extensions.
2091 - Added "Nested Inline Markup" section.
2093 * spec/rst/directives.txt:
2095 - Added directives: "topic", "sectnum", "target-notes",
2096 "line-block", "parsed-literal", "include", "replace", "sidebar",
2097 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2099 - Formalized descriptions of directive details.
2100 - Added an "align" attribute to the "image" & "figure" directives
2101 (by Adam Chodorowski).
2102 - Added "class" options to "topic", "sidebar", "line-block",
2103 "parsed-literal", "contents", and "image"; and "figclass" to
2106 * spec/rst/interpreted.txt: Added to project. Descriptions of
2107 interpreted text roles.
2109 * spec/rst/introduction.txt:
2111 - Added pointers to material for new users.
2113 * spec/rst/reStructuredText.txt:
2115 - Disambiguated comments (just add a newline after the "::").
2116 - Updated enumerated list description; added a discussion of the
2117 second-line validity checking.
2118 - Updated directive description.
2119 - Added a note redirecting newbies to the user docs.
2120 - Expanded description of inline markup start-strings in non-markup
2122 - Removed field arguments and made field lists a generic construct.
2123 - Removed the 4-character minimum for section title underlines.
2124 - Clarified term/classifier delimiter & inline markup ambiguity
2126 - Added "Embedded URIs".
2127 - Updated "Interpreted Text" section.
2128 - Added "Character-Level Inline Markup" section.
2130 * test: Continually adding & updating tests.
2132 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2133 - Moved test/test_pep/ to test/test_readers/test_pep/.
2134 - Added test/test_readers/test_python/.
2135 - Added test/test_writers/ (Engelbert Gruber).
2139 - Made the ``locale.setlocale()`` calls in front ends
2142 * tools/buildhtml.py:
2144 - Added "--silent" option.
2145 - Fixed bug with absolute paths & "--config".
2146 - Updated for new I/O classes.
2147 - Added some exception handling.
2148 - Separated publishers' setting defaults; prevents interference.
2149 - Updated for new ``publish_file()`` convenience function.
2151 * tools/pep-html-template:
2153 - Allow for "--embed-stylesheet".
2154 - Added Docutils version to "generator" meta tag.
2155 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2156 - Conform to XHTML spec.
2158 * tools/pep2html.py:
2160 - Made ``argv`` a parameter to ``main()``.
2161 - Added support for "Content-Type:" header & arbitrary PEP formats.
2162 - Linked "Content-Type: text/plain" to PEP 9.
2163 - Files skipped (due to an error) are not pushed onto the server.
2164 - Updated for new I/O classes.
2165 - Added ``check_requirements()`` & ``pep_type_error()``.
2166 - Added some exception handling.
2167 - Updated for new ``publish_string()`` convenience function.
2168 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2170 * tools/quicktest.py:
2172 - Added "-V"/"--version" option.
2174 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2176 * tools/unicode2rstsubs.py: Added to project. Produces character
2177 entity files (reSructuredText substitutions) from the MathML master
2180 * tools/editors: Support code for editors, added to project. Contains
2181 ``emacs/restructuredtext.el``.
2183 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2185 - Added style for chunks of inline literals.
2186 - Removed margin for first child of table cells.
2187 - Right-aligned field list names.
2188 - Support for auto-numbered section titles in TOCs.
2189 - Increased the size of inline literals (<tt>) in titles.
2190 - Restored the light gray background for inline literals.
2191 - Added support for "line_block" elements.
2192 - Added style for "address" elements.
2193 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2194 - Improved field list rendering.
2195 - Vertical whitespace improvements.
2196 - Removed "a.target" style.
2198 * tools/stylesheets/pep.css:
2200 - Fixed nested section margins.
2201 - Other changes parallel those of ``../default.css``.
2204 Release 0.2 (2002-07-31)
2205 ========================
2209 - The word "component" was being used ambiguously. From now on,
2210 "component" will be used to mean "Docutils component", as in Reader,
2211 Writer, Parser, or Transform. Portions of documents (Table of
2212 Contents, sections, etc.) will be called "document parts".
2213 - Did a grand renaming: a lot of ``verylongnames`` became
2214 ``very_long_names``.
2215 - Cleaned up imports: no more relative package imports or
2216 comma-separated lists of top-level modules.
2217 - Added support for an option values object which carries default
2218 settings and overrides (from command-line options and library use).
2219 - Added internal Unicode support, and support for both input and
2221 - Added support for the ``docutils.io.IO`` class & subclasses.
2225 * docutils/__init__.py:
2227 - Added ``ApplicationError`` and ``DataError``, for use throughout
2229 - Added ``Component`` base class for Docutils components; implements
2230 the ``supports`` method.
2231 - Added ``__version__`` (thus, ``docutils.__version__``).
2235 - Removed many keyword parameters to ``Publisher.__init__()`` and
2236 ``publish()``; bundled into an option values object. Added
2237 "argv", "usage", "description", and "option_spec" parameters for
2238 command-line support.
2239 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2241 - Reworked I/O model for ``docutils.io`` wrappers.
2242 - Updated ``Publisher.set_options()``; now returns option values
2244 - Added support for configuration files (/etc/docutils.conf,
2245 ./docutils.conf, ~/.docutils).
2246 - Added ``Publisher.setup_option_parser()``.
2247 - Added default usage message and description.
2249 * docutils/frontend.py: Added to project; support for front-end
2250 (command-line) scripts. Option specifications may be augmented by
2251 components. Requires Optik (http://optik.sf.net/) for option
2252 processing (installed locally as docutils/optik.py).
2254 * docutils/io.py: Added to project; uniform API for a variety of input
2257 * docutils/nodes.py:
2259 - Added ``TreeCopyVisitor`` class.
2260 - Added a ``copy`` method to ``Node`` and subclasses.
2261 - Added a ``SkipDeparture`` exception for visitors.
2262 - Renamed ``TreePruningException`` from ``VisitorException``.
2263 - Added docstrings to ``TreePruningException``, subclasses, and
2265 - Improved docstrings.
2266 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2267 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2269 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2270 ``PreDecorative`` mixin.
2271 - Reworked the name/id bookkeeping; to ``document``, removed
2272 ``explicit_targets`` and ``implicit_targets`` attributes, added
2273 ``nametypes`` attribute and ``set_name_id_map`` method.
2274 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2276 - Added ``document.has_name()`` method.
2277 - Fixed DOM generation for list-attributes.
2278 - Added category class ``Labeled`` (used by footnotes & citations).
2279 - Added ``Element.set_class()`` method (sets "class" attribute).
2281 * docutils/optik.py: Added to project. Combined from the Optik
2282 package, with added option groups and other modifications. The use
2283 of this module is probably only temporary.
2285 * docutils/statemachine.py:
2287 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2288 - Added underscores to improve many awkward names.
2289 - In ``string2lines()``, changed whitespace normalizing translation
2290 table to regexp; restores Python 2.0 compatibility with Unicode.
2292 * docutils/urischemes.py:
2294 - Filled in some descriptions.
2295 - Added "shttp" scheme.
2297 * docutils/utils.py:
2299 - Added ``clean_rcs_keywords`` function (moved from
2300 docutils/transforms/frontmatter.py
2301 ``DocInfo.filter_rcs_keywords``).
2302 - Added underscores to improve many awkward names.
2303 - Changed names of Reporter's thresholds:
2304 warning_level -> report_level; error_level -> halt_level.
2305 - Moved ``utils.id()`` to ``nodes.make_id()``.
2306 - Added ``relative_path(source, target)``.
2308 * docutils/languages/de.py: German mappings; added to project. Thanks
2309 to Gunnar Schwant for the translations.
2311 * docutils/languages/en.py: Added "Dedication" bibliographic field
2314 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2317 * docutils/parsers/rst/states.py:
2319 - Added underscores to improve many awkward names.
2320 - Added RFC-2822 header support.
2321 - Extracted the inline parsing code from ``RSTState`` to a separate
2322 class, ``Inliner``, which will allow easy subclassing.
2323 - Made local bindings for ``memo`` container & often-used contents
2324 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2325 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2326 - Added ``MarkupMismatch`` exception; for late corrections.
2327 - Added ``-/:`` characters to inline markup's start string prefix,
2328 ``/`` to end string suffix.
2329 - Fixed a footnote bug.
2330 - Fixed a bug with literal blocks.
2331 - Applied patch from Simon Budig: simplified regexps with symbolic
2332 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2333 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2334 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2335 - Allowed non-ASCII in "simple names" (directive names, field names,
2337 - Converted ``Inliner.patterns.initial`` to be dynamically built
2338 from parts with ``build_regexp()`` function.
2339 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2340 - Updated docstrings.
2341 - Changed "table" to "grid_table"; added "simple_table" support.
2343 * docutils/parsers/rst/tableparser.py:
2345 - Changed ``TableParser`` to ``GridTableParser``.
2346 - Added ``SimpleTableParser``.
2347 - Refactored naming.
2349 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2350 a fallback language for directive names.
2352 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2353 directive to use a ``pending`` element, used only by HTML writers.
2355 * docutils/parsers/rst/directives/parts.py: Renamed from
2358 - Added "backlinks" attribute to "contents" directive.
2360 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2361 project by Adam Chodorowski.
2363 * docutils/readers/__init__.py: Gave Readers more control over
2364 choosing and instantiating Parsers.
2366 * docutils/readers/pep.py: Added to project; for PEP processing.
2368 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2369 requires a ``component`` parameter.
2371 * docutils/transforms/components.py: Added to project; transforms
2372 related to Docutils components.
2374 * docutils/transforms/frontmatter.py:
2376 - In ``DocInfo.extract_authors``, check for a single "author" in an
2377 "authors" group, and convert it to a single "author" element.
2378 - Added support for "Dedication" and generic bibliographic fields.
2380 * docutils/transforms/peps.py: Added to project; PEP-specific.
2382 * docutils/transforms/parts.py: Renamed from old components.py.
2384 - Added filter for `Contents`, to use alt-text for inline images,
2385 and to remove inline markup that doesn't make sense in the ToC.
2386 - Added "name" attribute to TOC topic depending on its title.
2387 - Added support for optional TOC backlinks.
2389 * docutils/transforms/references.py: Fixed indirect target resolution
2390 in ``Hyperlinks`` transform.
2392 * docutils/transforms/universal.py:
2394 - Changed ``Messages`` transform to properly filter out system
2395 messages below the warning threshold.
2396 - Added ``Decorations`` transform (support for ``--generator``,
2397 ``--date``, ``--time``, ``--source-link`` options).
2399 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2400 Engelbert Gruber's PDF writer.
2402 * docutils/writers/html4css1.py:
2404 - Made XHTML-compatible (switched to lowercase element & attribute
2405 names; empty tag format).
2406 - Escape double-dashes in comment text.
2407 - Improved boilerplate & modularity of output.
2408 - Exposed modular output in Writer class.
2409 - Added a "generator" meta tag to <head>.
2410 - Added support for the ``--stylesheet`` option.
2411 - Added support for ``decoration``, ``header``, and ``footer``
2413 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2414 translation table to regexp; restores Python 2.0 compatibility
2416 - Added the translator class as instance variable to the Writer, to
2417 make it easily subclassable.
2418 - Improved option list spacing (thanks to Richard Jones).
2419 - Modified field list output.
2420 - Added backlinks to footnotes & citations.
2421 - Added percentage widths to "<col>" tags (from colspec).
2422 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2423 "<span>" changed to "<var>".
2424 - Inline literals: "<code>" changed to "<tt>".
2425 - Many changes to optimize vertical space: compact simple lists etc.
2426 - Add a command-line options & directive attributes to control TOC
2427 and footnote/citation backlinks.
2428 - Added support for optional footnote/citation backlinks.
2429 - Added support for generic bibliographic fields.
2430 - Identify backrefs.
2431 - Relative URLs for stylesheet links.
2433 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2434 PEPs (subclass of ``html4css1.Writer``).
2436 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2438 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2439 of the Docutils internal doctree in XML.
2441 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2445 - Changed the title to "The Docutils Document Tree".
2446 - Added "Hyperlink Bookkeeping" section.
2448 * spec/docutils.dtd:
2450 - Added ``decoration``, ``header``, and ``footer`` elements.
2451 - Brought ``interpreted`` element in line with the parser: changed
2452 attribute "type" to "role", added "position".
2453 - Added support for generic bibliographic fields.
2455 * spec/notes.txt: Continual updates. Added "Project Policies".
2457 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2460 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2462 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2463 mailing list discussions.
2465 * spec/pep-0287.txt:
2467 - Renamed to "reStructuredText Docstring Format".
2469 - Reworked Q&A as an enumerated list.
2470 - Converted to reStructuredText format.
2472 * spec/pysource.dtd:
2474 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2476 * spec/pysource.txt: Removed from project. Moved much of its contents
2479 * spec/rst/alternatives.txt:
2481 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2482 - Added "Inline External Targets" section.
2484 * spec/rst/directives.txt:
2486 - Added "backlinks" attribute to "contents" directive.
2488 * spec/rst/problems.txt:
2490 - Updated the Enumerated List Markup discussion.
2491 - Added new alternative table markup syntaxes.
2493 * spec/rst/reStructuredText.txt:
2495 - Clarified field list usage.
2496 - Updated enumerated list description.
2497 - Clarified purpose of directives.
2498 - Added ``-/:`` characters to inline markup's start string prefix,
2499 ``/`` to end string suffix.
2500 - Updated "Authors" bibliographic field behavior.
2501 - Changed "inline hyperlink targets" to "inline internal targets".
2502 - Added "simple table" syntax to supplement the existing but
2503 newly-renamed "grid tables".
2504 - Added cautions for anonymous hyperlink use.
2505 - Added "Dedication" and generic bibliographic fields.
2507 * test: Made test modules standalone (subdirectories became packages).
2509 * test/DocutilsTestSupport.py:
2511 - Added support for PEP extensions to reStructuredText.
2512 - Added support for simple tables.
2513 - Refactored naming.
2515 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2517 - Now supports true packages containing test modules
2518 (``__init__.py`` files required); fixes duplicate module name bug.
2520 * test/test_pep/: Subpackage added to project; PEP testing.
2522 * test/test_rst/test_SimpleTableParser.py: Added to project.
2526 - Updated html.py and publish.py front-end tools to use the new
2527 command-line processing facilities of ``docutils.frontend``
2528 (exposed in ``docutils.core.Publisher``), reducing each to just a
2530 - Added ``locale.setlocale()`` calls to front-end tools.
2532 * tools/buildhtml.py: Added to project; batch-generates .html from all
2533 the .txt files in directories and subdirectories.
2535 * tools/default.css:
2537 - Added support for ``header`` and ``footer`` elements.
2538 - Added styles for "Dedication" topics (biblio fields).
2540 * tools/docutils.conf: A configuration file; added to project.
2542 * tools/docutils-xml.py: Added to project.
2544 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2546 * tools/pep-html-template: Added to project.
2548 * tools/pep2html.py: Added to project from Python (nondist/peps).
2549 Added support for Docutils (reStructuredText PEPs).
2551 * tools/quicktest.py:
2553 - Added the ``--attributes`` option, hacked a bit.
2554 - Added a second command-line argument (output file); cleaned up.
2556 * tools/stylesheets/: Subdirectory added to project.
2558 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2561 Release 0.1 (2002-04-20)
2562 ========================
2564 This is the first release of Docutils, merged from the now inactive
2565 reStructuredText__ and `Docstring Processing System`__ projects. For
2566 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2567 `DPS HISTORY`__ files.
2569 __ http://structuredtext.sourceforge.net/
2570 __ http://docstring.sourceforge.net/
2571 __ http://structuredtext.sourceforge.net/HISTORY.html
2572 __ http://docstring.sourceforge.net/HISTORY.html
2574 General changes: renamed 'dps' package to 'docutils'; renamed
2575 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2576 the test suites (reStructuredText's test/test_states renamed to
2577 test/test_rst); and all modifications required to make it all work.
2579 * docutils/parsers/rst/states.py:
2581 - Improved diagnostic system messages for missing blank lines.
2582 - Fixed substitution_reference bug.
2588 indent-tabs-mode: nil
2589 sentence-end-double-space: t