1 .. -*- coding: utf-8 -*-
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: goodger@python.org
11 :Web site: http://docutils.sourceforge.net/
12 :Copyright: This document has been placed in the public domain.
22 - Handle language codes according to `BCP 47`_.
23 - If the specified language is not supported by Docutils,
24 warn and fall back to English.
25 - Math support: reStructuredText "math" role and directive,
26 ``math`` and ``math_block`` doctree elements.
27 - Decode command line arguments with the locales preferred encoding
28 (to allow, e.g., ``--title=Dornröschen``).
29 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
31 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
35 - Fix ``--local`` switch.
38 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
40 * docutils/writers/html4css1/__init__.py
42 - Set "lang" argument for objects with class argument
43 "language-<language tag>".
45 * docutils/writers/latex2e/__init__.py
47 - Fix [ 3043986 ] AttributeError using :local: with table of content.
48 - Place title data in the document preamble.
49 - Load `babel` package only if required.
50 - Update list of supported languages.
51 - New config setting "hyperref-options".
52 No hard-coded "unicode" hyperref option (clash with xetex).
53 - Set language for custom roles, paragraphs, block-quotes, and
54 line-quotes with class argument "language-<language tag>".
55 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
56 - Convert image URI to a local file path.
58 * docutils/writers/xetex/__init__.py
60 - New writer generating LaTeX code for compiling with ``xelatex``.
62 A separate writer (inheriting from latex2e) instead of a ``--xetex``
63 option allows separate config options for XeTeX vs. LaTeX2e.
65 * tools/editors/emacs/rst.el:
67 - Fix [ 3001100 ] does not handle spaces in filenames
68 (thanks to Jakub Wilk)
72 - strip whitespace from stylesheet arguments
73 - exclude combining chars from column_width
74 (partial fix for [ 2926161 ])
77 Release 0.7 (2010-07-07)
78 ========================
82 - Fix [ 2881769 ] setup configuration.
83 - Fix [ 2788716 ] reporting problems in included files.
87 - FileInput opens files as text files with universal newline support
88 (mode "rU", configurable with the new optional argument "mode").
92 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
96 - Fix [ 2923723 ] let decode_path() tolerate path == None
98 * docutils/writers/html4css1/__init__.py
100 - Support SVG and SWF images (thanks to Stefan Rank).
101 - Generate valid XHTML for centered images with targets.
102 Use CSS classes instead of "align" tags for image alignment.
104 * docutils/writers/latex2e/__init__.py
106 - Use `transforms.writer_aux.Admonitions` to "normalize" special
108 - Use the ``\url`` command for URLs (breaks long URLs instead of
109 writing into the margin).
110 - Preserve runs of spaces in `inline literals`__.
111 - Deprecate ``figure_footnotes`` setting.
112 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
113 - New ``latex_preamble`` setting.
114 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
115 - Fix hyperlink targets (labels) for images, figures, and tables.
116 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
117 - Apply [ 2961991 ] Call hyperref with unicode option.
118 - Drop the special `output_encoding`__ default ("latin-1").
119 The Docutils wide default (usually "UTF-8") is used instead.
120 - Render inline markup in document title and subtitle.
121 - Fix numbering depth with LaTeX section numbering.
122 - Update Unicode -> LaTeX translations.
123 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
125 __ docs/ref/restructuredtext.html#inline-literals
126 __ docs/user/config.html#docutils-footnotes
127 __ docs/user/config.html#output_encoding
129 * docutils/writers/manpage.py
131 - Fix: supported attribute (thanks to peter2108).
132 - Remove trailing blanks in code (keep in sync with mercurial version).
133 - Titles level 1, that is ``.SH``, always uppercase.
134 - Apply patch from mg: literal text should be bold in man-pages.
138 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
143 - Python 3 support: copy test/ and tools/ to the build-dir
144 and convert Python sources with 2to3.
147 Release 0.6 (2009-10-11)
148 ========================
152 - Docutils is now compatible with Python versions from 2.3 up to 2.6
153 and convertible to 3.1 code.
155 + Node.__nonzero__ returns True instead of 1.
156 + use os.walk instead os.path.walk.
157 + minimize "types" module where possible.
158 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
159 + Text nodes now subclass unicode rather than UserString
160 (which is gone in python 3.0).
161 + 3.0 compatibility module docutils._compat
163 + Drop 2.2 compatibility workarounds.
164 + Drop extras/optparse.py and extras/textwrap.py
165 (stdlib modules since 2.3).
167 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
168 - Unix man page export: manpage writer moved from sandbox to Doctutils
171 - Apply [ 1719345 ] Galician translation
172 - Apply [ 1905741 ] Polish translation
173 - Apply [ 1878977 ] make_id(): deaccent characters.
174 - Apply [ 2029251 ] return nonzero when tests fail.
175 - Fix [ 1692788 ] allow UTF-8 in style sheets.
176 - Fix [ 2781629 ] support non-ASCII chars in file names.
177 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
178 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
179 - Fix [ 2821266 ] --strict option works now like --halt=info.
180 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
181 - Fix [ 1627229 ] hyperlink references in substitutions.
183 - The "newlatex" writer is orphaned.
187 - Documented Unicode characters allowed as inline markup openers,
188 closers, and delimiters.
189 - Allow units for all length specifications.
190 - Allow percent sign in "scale" argument of "figure" and "image" directives.
191 - Bugfix: The "figalign" argument of a figure now works as intended
192 (aligning the figure, not its contents).
193 - Align images with class "align-[right|center|left]"
194 (allows setting the alignment of an image in a figure).
198 - Added ``Element.__contains__`` method, for the in-operator.
200 * docutils/parsers/rst/states.py:
202 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
203 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
204 " " (non-breaking space), and "¡ ¿" openers.
206 * docutils/parsers/directives/misc.py:
208 - Added ``start-line`` and ``end-line`` options to "include"
209 directive to select a range of lines.
210 - Hard tabs in literal inclusions are replaced by spaces. This is
211 configurable via the new ``tab-width`` option of the "include" directive
212 (a negative tab-width prevents tab expansion).
216 - Add ``get_stylesheet_list`` function.
217 - Apply [ 2834836 ] print info at halt
219 * docutils/transforms/universal.py:
221 - Raise default priority of StripClasses to exclude stripped classes from
224 * docutils/writers/html4css1/__init__.py:
226 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
227 separated list of stylesheets.
228 - Address [ 1938891 ] Inline literal text creates "pre" span only when
229 needed to prevent inter-word line wraps.
230 - Use `translate` method instead of repeated `replace` calls.
231 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
232 classes to allow CSS styling that does not interfere with other
233 table-using constructs (field lists, citations, ...).
235 * docutils/writers/newlatex2e/__init__.py:
237 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
239 * docutils/writers/latex2e/__init__.py (see also
240 `<docs/user/docutils-05-compat.sty.html>`__) :
242 - Add ``--embed-stylesheet`` option.
243 - Apply [ 1474017 ] image vertical alignment is reversed.
244 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
245 - Change: has_key for dictionaries (not Nodes) to in-operator.
246 - Merge adjacent citations into one latex cite command.
247 - Failsave implementation of custom roles. LaTeX compilation now ignores
248 unknown classes instead of aborting with an error.
249 - Support custom roles based on standard roles.
250 - LaTeX packages can be used as ``--stylesheet`` arguments without
251 restriction. (A style sheet is now referenced with the ``\usepackage``
252 command, if it ends with ``.sty`` or has no extension.)
253 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
254 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
255 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
256 2005-02-04 as a configurable length unit).
257 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
258 if font-encoding is set to ''. LaTeX defaults to OT1 then.
259 - Set sub- and superscript role argument in text mode not as math.
260 Use a custom role based on sub-/superscript if you want italic shape.
261 - Shorter preamble and less dependencies: Load packages and define macros
262 only if required in the document.
263 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
264 - New custom environments and commands with optional "classes" argument.
265 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
266 - Better conformance to Docutils specifications with ``--use-latex-toc``.
267 Support for LaTeX generated ToC also with unnumbered sections.
268 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
269 section numbering by LaTeX.
270 - Use default font in admonitions and sidebar.
271 - Align of image in a figure defaults to 'center'.
272 - Bugfix: Newlines around targets and references prevent run-together
274 - Fix internal hyperlinks.
275 - Use class defaults for page margins ('typearea' now optional).
276 - Float placement made configurable, default changed to "here definitely".
277 - Typeset generic topic as "quote block with title".
278 - Use template (file and configuration option).
279 - In the default template, load cmap.sty (fix text extraction in PDF) and
280 fixltx2e.sty (LaTeX patches, \textsubscript).
281 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
282 - Use `translate` instead of repeated `replace` calls for text encoding.
283 - Hyperlinked footnotes and support for symbol footnotes and
284 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
285 - Complete pairs of binary options
286 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
287 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
289 - font-encoding: "T1" (formerly implicitely set by 'ae').
290 - use-latex-toc: true (ToC with page numbers).
291 - use-latex-footnotes: true (no mixup with figures).
293 * docutils/writers/manpage.py
295 - Do not print version at document end, this is done by the viewer.
296 - Do not print date at document end, this is done by the viewer.
297 - Fix storage of docinfo fields for none standard fields.
299 * docutils/tools/rst2man.py
301 Release 0.5 (2008-06-25)
302 ========================
304 * docutils/languages/he.py: Added to project: Hebrew mappings by
307 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
308 mappings by Meir Kriheli.
310 * docutils/frontend.py:
312 - Configuration files are now assumed and required to be
314 - Paths of applied configuration files are now recorded in the
315 runtime setting ``_config_files`` (accessible via
316 ``--dump-settings``).
317 - Added ``--strip-elements-with-class`` and ``--strip-class``
318 options (``strip_elements_with_classes`` and ``strip_classes``
323 - Added code to determine the input encoding from data: encoding
324 declarations or the presence of byte order marks (UTF-8 & UTF-16).
325 - Added support for IronPython 1.0.
329 - Added ``document.__getstate__`` method, for pickling.
331 * docutils/parsers/rst/states.py:
333 - Allow ``+`` and ``:`` in reference names.
334 - Unquoted targets beginning with an underscore (``.. __target:
335 URI``) are no longer accepted.
336 - Added support for multiple attributions in a physical block quote
337 (indented text block), dividing it into multiple logical block
339 - Added support for unicode bullets in bullet lists: "•", "‣", and
341 - Added support for new object-oriented directive interface,
342 retaining compatibility to the old functional interface.
343 - Added support for throwing ``DirectiveError``'s from within
346 * docutils/parsers/rst/__init__.py:
348 - Added ``Directive`` base class.
349 - Added ``DirectiveError`` base class.
350 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
353 * docutils/parsers/directives/:
355 - Refactored all reStructuredText directives to use the new
356 object-oriented directive interface. Errors are now (mostly)
357 thrown using the new ``DirectiveError`` class.
359 * docutils/parsers/directives/misc.py:
361 - Added ``start-after`` and ``end-before`` options to ``include``
362 directive; thanks to Stefan Rank.
364 * docutils/transforms/universal.py:
366 - Added ``StripClassesAndElements`` transform to remove from the
367 document tree all elements with classes in
368 ``settings.strip_elements_with_classes`` and all "classes"
369 attribute values in ``self.document.settings.strip_classes``.
371 * docutils/transforms/writer_aux.py:
373 - Added ``Admonitions`` transform to transform specific admonitions
374 (like ``note``, ``warning``, etc.) into generic admonitions with a
377 * docutils/writers/html4css1/__init__.py:
379 - Moved template functionality from the PEP/HTML writer here.
380 - Expanded the fragments available in the ``parts`` attribute.
381 - Moved ``id`` attributes from titles to surrounding ``div``
383 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
384 universally supported now).
385 - ``template.txt`` is now opened in text mode instead of binary mode
386 (to ensure Windows compatibility).
387 - ``a`` elements now have an "internal" or "external" class,
388 depending on reference type.
390 * docutils/writers/html4css1/template.txt: Added to project.
392 * docutils/writers/pep_html/:
394 - Moved template functionality to the HTML writer.
396 * docutils/writers/s5_html/__init__.py:
398 - Added ``view_mode`` & ``hidden_controls`` settings
399 (``--view-mode`` & ``--hidden-controls/--visible-controls``
402 * docutils/writers/latex2e/__init__.py:
404 - Add ``--literal-block-env``
405 - Fix: escaping ``%`` in href urls.
406 - Move usepackage hyperref after stylesheet inclusion.
407 - Fix: scrartcl does not have chapter but scrreprt.
408 - Add newline after ``\end{verbatim}``.
409 - Merge smaller differences from latex2e_adaptive_preamble.
410 - Add ``use-part-section``.
411 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
412 - Using leavemode option_list no longer needs to check if parent
413 is a definition list.
414 - Append ``\leavemode`` to definition list terms.
415 - No longer write visit\_/depart_definition_list_item comments to
417 - Table column width with 3 decimal places.
418 - Add table stubs support (boldfont).
419 - Add assemble_parts to writer.
420 - Add simply support for nested tables.
421 - Fix verbatim in tables if use-verbatim-when-possible.
422 - Use section commands down to subparagraph.
423 - Put ensuremath around some latin1 chars.
424 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
425 - New option ``--use-bibtex=style,db1,db2``.
426 - New option ``--reference-label`` to allow usage of LaTeX ref for
427 labels in section references.
428 - Add a label after every section to support sectionnumbers as reference
430 - Fix: bug# 1605376 rst2latex: bad options group list
431 - Remove inactive code for use_optionlist_for_option_list.
432 - Remove latex comments from option_list output.
433 - Fix: bug# 1612270 double qoutes in italian literal.
434 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
435 - Add option --use-latex-abstract.
436 - Image width unit ``px`` is translated to ``pt``.
437 - Add image height support.
438 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
440 - Fix: Do not escape underscores in citation reference labels if
441 use-latex-citations is set.
442 - Use centering instead of center for figure contents, to avoid vertical
444 - Recognize table class: borderless, nolines, booktabs, standard.
445 - Fix: Renaming contents section does not work with latex writer; SF
447 - Applied patch for custom roles with classes from Edward Loper.
448 - Fixed bug that caused crashes with more than 256 lists.
450 * docutils/writers/pep_html/__init__.py:
452 - Changed to support new python.org website structure and
455 * docs/howto/security.txt: "Deploying Docutils Securely", added to
458 * tools/buildhtml.py:
460 -- Added ``ignore`` setting to exclude a list of shell patterns
461 (default: ``.svn:CVS``).
463 * tools/editors/emacs/rst.el:
465 - Changed license to "GPL".
466 - Added ``rst-straighten-decorations`` function.
467 - The ``compile`` module is now always loaded.
468 - Added ``rst-toggle-line-block`` function.
469 - Headings consisting only of non-ASCII characters are now
470 recognized by ``rst-toc`` and ``rst-adjust``.
471 - Added font-lock support for multi-line comments where the first
472 comment line is empty.
473 - Added ``(require 'font-lock)``.
477 - Provide descriptive error message if distutils is missing.
480 Release 0.4 (2006-01-09)
481 ========================
485 - Updated the project policies for trunk/branch development &
488 * docutils/__init__.py:
490 - Added ``__version_details__`` attribute to describe code source
491 (repository/snapshot/release).
492 - Replaced ``default_transforms`` attribute of TransformSpec with
493 ``get_transforms()`` method.
497 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
498 functions, for document tree extraction and reprocessing.
502 - Added ``DocTreeInput`` class, for reprocessing existing documents.
503 - Added support for non-Unicode (e.g. binary) writer output.
507 - Re-introduced ``Targetable.indirect_reference_name``, for
508 MoinMoin/reST compatibility (removed in r3124/r3129).
509 - Added ``serial_escape`` function; escapes string values that are
510 elements of a list, for serialization. Modified Docutils-XML
511 writing (``Element._dom_node``) and pseudo-XML writing
512 (``Element.starttag``) to use ``serial_escape``.
513 - Added ``Node.deepcopy()`` method.
514 - Removed the internal lists ``document.substitution_refs``,
515 ``document.anonymous_refs``, and ``document.anonymous_targets``.
516 - Added a "container" element.
517 - Fixed bug where values of list-valued attributes of elements
518 originating from custom interpreted text roles (i.e., with custom
519 classes) were being shared between element instances. Reported by
522 * docutils/statemachine.py:
524 - Added trailing whitespace stripping to ``string2lines()``.
525 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
526 Asian double-width character support.
530 - Added ``east_asian_column_width()`` for double-width character
533 * docutils/languages/ja.py: Added to project: Japanese mappings by
536 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
537 mappings by Panjunyong.
539 * docutils/parsers/null.py: Added to project; a do-nothing parser.
541 * docutils/parsers/rst/__init__.py:
543 - Added validator to tab_width setting, with test. Closes SF bug
544 #1212515, report from Wu Wei.
546 * docutils/parsers/rst/states.py:
548 - Fixed bug with escaped colons indicating a literal block.
549 - Fixed bug with enumerated lists (SF#1254145).
550 - Backslash-escaped colons inside of field names are now allowed.
551 - Targets (implicit and explicit), anonymous hyperlink references
552 and auto-numbered footnote references inside of substitution
553 definitions are now disallowed.
554 - Fixed bug: list items with blank first lines.
555 - Fixed bug: block quote attributions with indented second lines.
556 - Added East Asian double-width character support (Python 2.4 only).
558 * docutils/parsers/rst/tableparser.py:
560 - Added East Asian double-width character support (Python 2.4 only).
562 * docutils/parsers/rst/directives/body.py:
564 - Added the "container" directive.
566 * docutils/parsers/rst/directives/misc.py:
568 - Added the "default-role", "title", and "date" directives.
569 - Added standard data file syntax to the "include" directive.
570 - Added support for "class" directive content.
572 * docutils/parsers/rst/directives/images.py:
574 - Added ``indirect_reference_name`` support for images with a target
576 - Added support for image width and height units.
577 - Fixed bug with image "target" options.
579 * docutils/parsers/rst/directives/references.py:
581 - Added "class" attribute to "target-notes" directive, for
582 footnote_reference classes.
584 * docutils/parsers/rst/include/: Directory added to project; contains
585 standard data files for the "include" directive. Initial contents:
586 character entity substitution definition sets, and a set of
587 definitions for S5/HTML presentations.
589 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
590 mappings by David Goodger.
592 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
593 Simplified Chinese mappings by Panjunyong.
595 * docutils/readers/__init__.py:
597 - Added universal.Decorations and universal.ExposeInternals
598 transforms as default transforms for all readers.
599 - Added ``ReReader`` base class for readers that reread an existing
602 * docutils/readers/doctree.py: Added to project; a reader for existing
605 * docutils/transforms/frontmatter.py:
607 - Fixed the DocInfo transform to handle SVN-style expansion of the
609 - In ``DocInfo.extract_authors``, treat the contents of "authors"
612 * docutils/transforms/misc.py:
614 - Added misc.Transitions transform, extracted from
615 universal.FinalChecks.
617 * docutils/transforms/references.py:
619 - Added references.DanglingReferences transform, extracted from
620 universal.FinalChecks.
621 - Fixed bug with doubly-indirect substitutions.
622 - Added footnote_reference classes attribute to "TargetNotes".
623 - Fixed bug with circular substitution definitions that put Docutils
624 into an infinite loop.
626 * docutils/transforms/universal.py:
628 - Added universal.ExposeInternals transform, extracted from
629 universal.FinalChecks.
630 - Removed universal.FinalChecks transform (logic has been moved to
631 several new transforms).
632 - Fixed bug with the "expose_internals" setting and Text nodes
633 (exposed by the "rawsource" internal attribute).
634 - Added the universal.StripComments transform, implementation of the
635 "strip_comments" setting.
637 * docutils/transforms/writer_aux.py: Added to project; auxiliary
638 transforms for writers.
640 - Added ``Compound`` transform, which flattens compound paragraphs.
642 * docutils/writers/: Several writer modules (html4css1.py) were
643 converted into packages. Support modules and data files have been
644 moved into the packages. The stylesheets for the HTML writers are
645 now installed along with the code, the code knows where to find
646 them, and the default is to use them (actually, to embed them).
647 Some adjustments to configuration files may be necessary. The
648 easiest way to obtain the new default behavior is to remove all
649 settings whose name includes "stylesheet".
651 * docutils/writers/__init__.py:
653 - Added universal.Messages and universal.FilterMessages transforms
654 as default transforms for all writers.
655 - Added ``UnfilteredWriter`` base class for writers that pass the
656 document tree on unchanged.
658 * docutils/writers/docutils_xml.py:
660 - Made ``xmlcharrefreplace`` the default output encoding error
663 * docutils/writers/html4css1/:
665 - Added support for image width and height units.
666 - Made ``xmlcharrefreplace`` the default output encoding error
668 - Made ``--embed-stylesheet`` the default rather than
669 ``--link-stylesheet``.
670 - Moved "id" attribute from container (section etc.) to title's <a>
671 tag, to be on the same tag as "name".
672 (!!! To be reverted in Docutils 0.5.)
673 - Added vertical space between fields of field lists.
674 - Added ``--compact-field-lists`` option to remove vertical space in
676 - Made cloaking of email addresses with ``--cloak-email-addresses``
678 - Fixed support for centered images.
679 - Added support for class="compact" & class="open" lists.
681 * docutils/writers/latex2e/:
683 - Underscores in citekeys are no longer escaped.
685 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
686 mapping of Unicode characters to LaTeX equivalents.
688 * docutils/writers/s5_html/: Package added to project; writer for
691 * docs/dev/distributing.txt: Added to project; guide for distributors
692 (package maintainers).
694 * docs/dev/hacking.txt: Added to project; guide for developers.
696 * docs/ref/doctree.txt:
698 - Updated for plural attributes "classes", "ids", "names",
700 - Added the "container" element.
702 * docs/ref/docutils.dtd:
704 - Updated for plural attributes "classes", "ids", "names",
707 * docs/user/emacs.txt: Added to project; a document about Emacs
708 support for reStructuredText and Docutils.
710 * docs/user/links.txt: Added to project; lists of Docutils-related
713 * docs/user/mailing-lists.txt: Added to project; information about
714 Docutils-related mailing lists and how to access them.
716 * docs/user/slide-shows.txt: Added to project; example of and docs for
717 the S5/HTML writer (``rst2s5.py`` front end).
719 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
720 Files", added to project.
722 * test/coverage.sh: Added to project; test coverage script.
724 * test/DocutilsTestSupport.py:
726 - Added support for specifying runtime settings at the suite level.
728 * test/test_functional.py:
730 - Added the ``clear_output_directory`` function.
731 - Added support for ``_test_more`` functions in functional test
734 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
736 * tools/rstpep2html.py: Renamed from pep.py.
738 * tools/dev/create_unimap.py: Added to project; script to create the
739 docutils/writers/unimap_latex.py mapping file.
741 * tools/dev/profile_docutils.py: Added to project; profiler script.
743 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
745 * tools/editors/emacs/restructuredtext.el,
746 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
747 Removed from project; the functionality is now contained in rst.el.
749 * tools/editors/emacs/rst.el: Added to project. Added many features
750 and fixed many bugs. See docs/user/emacs.txt for details.
752 * tools/stylesheets: Removed from project. Stylesheets have been
753 renamed and moved into writer packages.
756 Release 0.3.9 (2005-05-26)
757 ==========================
761 - Eliminated and replaced all uses of the old string attributes
762 ``id``, ``name``, ``dupname`` and ``class`` with references to the
763 new list attributes ``ids``, ``names``, ``dupnames`` and
764 ``classes`` throughout the whole source tree.
768 - Enabled ``--dump-*`` options when ``--traceback`` specified,
769 allowing for easier debugging.
770 - In ``Publisher.publish()``, expanded the generic top-level
773 * docutils/examples.py:
775 - Added ``internals`` function for exploration.
779 - Fixed ``Input.decode`` method to apply heuristics only if no
780 encoding is explicitly given, and to provide better reporting of
782 - The ``Input.decode`` method now removes byte order marks (BOMs)
787 - ``image`` element class changed to subclass of Element, not
788 TextElement (it's an empty element, and cannot contain text).
789 - Added ``attr_defaults`` dictionary for default attribute values.
790 - Added empty list as default value for the following attributes:
791 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
792 - Added ``document.decoration`` attribute,
793 ``document.get_decoration`` method, and ``decoration.get_header``
794 & ``.get_footer`` methods.
795 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
800 - Removed ``docutils.utils.Reporter.categories``,
801 ``docutils.utils.ConditionSet``, and all references to them, to
802 simplify error reporting.
804 * docutils/languages/nl.py: Added to project; Dutch mappings by
807 * docutils/parsers/rst/__init__.py:
809 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
811 * docutils/parsers/rst/states.py:
813 - Added check for escaped at-mark to prevent email address recognition.
814 - Fixed option lists to allow spaces inside ``<angle-bracketed option
816 - Allowed whitespace in paths and URLs.
817 - Added auto-enumerated list items.
818 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
820 - Added support for table stub columns.
822 * docutils/parsers/rst/directives/__init__.py:
824 - Allowed whitespace in paths (``path`` function).
825 - Added ``uri`` directive option conversion function.
827 * docutils/parsers/rst/directives/body.py:
829 - Fixed illegal context bug with "topic" directive (allowed within
830 sidebars; not within body elements).
832 * docutils/parsers/rst/directives/images.py:
834 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
835 - Added support for the ``file_insertion_enabled`` setting in the
836 "figure" directive (disables "figwidth" option).
837 - "image" directive: added checks for valid values of "align" option,
838 depending on context. "figure" directive: added specialized
839 "align" option and attribute on "figure" element.
840 - Made ":figwidth: image" option of "figure" directive work again.
841 - Fixed bug with reference names containing uppercase letters
842 (e.g. ``Name_``) in "target" option of "image" directive.
844 * docutils/parsers/rst/directives/misc.py:
846 - Fixed "include" and "raw" directives to catch text decoding
848 - Allowed whitespace in "include" & "raw" directive paths.
849 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
850 settings in "include" & "raw" directives.
852 * docutils/parsers/rst/directives/parts.py:
854 - Added "header" & "footer" directives.
855 - Fixed illegal context bug with "contents" directive (topics
856 allowed within sidebars; not within body elements).
858 * docutils/parsers/rst/directives/tables.py:
860 - Added "list-table" directive.
861 - Caught empty CSV table bug.
862 - Added support for the ``file_insertion_enabled`` setting in the
863 "csv-table" directive.
864 - Added ``stub-columns`` option to "csv-table" and "list-table"
867 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
868 mappings by Martijn Pieters.
870 * docutils/readers/standalone.py:
872 - Added ``--section-subtitles`` and ``--no-section-subtitles``
873 options to activate or deactivate the SectSubTitle transform.
875 * docutils/transforms/frontmatter.py:
877 - Added SectSubTitle transform to promote titles of lone
878 subsections to subtitles.
880 * docutils/transforms/references.py:
882 - Fixed mislocated internal targets bug, by propagating internal
883 targets to the next node, making use of the newly added support
884 for multiple names and IDs.
885 - Fixed duplicate footnote label bug.
886 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
889 * docutils/writers/html4css1.py:
891 - Fixed unencoded stylesheet reference bug (characters like "&" in
892 stylesheet references).
893 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
895 - Added support for multiple IDs per node by creating empty ``span``
897 - Added the ``field_name_limit`` & ``option_limit`` settings &
899 - Added support for table stub columns.
900 - Added support for the ``align`` attribute on ``figure`` elements.
901 - Added the ``cloak_email_addresses`` setting & support.
902 - Added ``html_prolog``, ``html_head``, ``html_body``,
903 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
904 ``docutils.core.publish_parts``.
905 - Added support for section subtitles.
907 * docutils/writers/latex2e.py:
909 - Fixed tables starting with more than one multirow cell.
910 - Improved --use-latex-docinfo so that organization/contact/address
911 fields are lumped with the last author field and appear on the
913 - Made sure the titlepage is always shown with --use-latex-docinfo,
914 even if the document has no title.
915 - Made sure that latex doesn't fill in today's date if no date field
917 - Added support for section subtitles.
919 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
922 * docutils/writers/null.py: Added to project; a do-nothing Writer.
924 * docs/api/publisher.txt:
926 - Added "``publish_parts`` Details" section.
928 * docutils/dev/repository.txt: Added to project; information about the
929 Docutils Subversion repository.
931 * docs/ref/docutils.dtd:
933 - Added a ``stub`` attribute to the ``colspec`` element via the
934 ``tbl.colspec.att`` parameter entity.
935 - Allowed topic elements within sidebars
936 - Added an ``align`` attribute to the ``figure`` element.
938 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
942 Release 0.3.7 (2004-12-24)
943 ==========================
945 * docutils/frontend.py:
947 - Added options: --input-encoding-error-handler,
948 --record-dependencies, --leave-footnote-reference-space,
950 - Added command-line and config file support for "overrides" setting
955 - Added support for input encoding error handler.
959 - Added dispatch_visit and dispatch_departure methods to
960 NodeVisitor; useful as a hook for Visitors.
961 - Changed structure of ``line_block``; added ``line``.
962 - Added ``compound`` node class.
963 - Added a mechanism for Visitors to transitionally ignore new node
968 - Moved ``escape2null`` and ``unescape`` functions from
969 docutils/parsers/rst/states.py.
971 * docutils/parsers/rst/roles.py:
974 - Changed role function API: the "text" parameter now takes
975 null-escaped interpreted text content.
977 * docutils/parsers/rst/states.py:
979 - Fixed bug where a "role" directive in a nested parse would crash
980 the parser; the state machine's "language" attribute was not being
982 - Added support for line block syntax.
983 - Fixed directive parsing bug: argument-less directives didn't
984 notice that arguments were present.
985 - Removed error checking for transitions.
986 - Added support for multiple classifiers in definition list items.
987 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
988 - Changed role function API: the "text" parameter now takes
989 null-escaped interpreted text content.
990 - Empty sections and documents are allowed now.
992 * docutils/parsers/rst/directives/__init__.py:
994 - Added ``encoding`` directive option conversion function.
995 - Allow multiple class names in class_option conversion function.
997 * docutils/parsers/rst/directives/body.py:
999 - Converted the line-block directive to use the new structure.
1000 - Extracted the old line-block functionality to the ``block``
1001 function (still used).
1002 - Added ``compound`` directive (thanks to Lea Wiemann).
1004 * docutils/parsers/rst/directives/misc.py:
1006 - Added "encoding" option to "include" and "raw" directives.
1007 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1008 - Allow multiple class names in the "class" directive.
1010 * docutils/parsers/rst/directives/parts.py:
1012 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1013 options. Thanks to Lele Gaifax.
1015 * docutils/parsers/rst/directives/tables.py:
1017 - Added "encoding" directive to "csv-table" directive.
1018 - Added workaround for lack of Unicode support in csv.py, for
1019 non-ASCII CSV input.
1021 * docutils/transforms/misc.py:
1023 - Fixed bug when multiple "class" directives are applied to a single
1025 - Enabled multiple format names for "raw" directive.
1027 * docutils/transforms/references.py:
1029 - Added support for trimming whitespace from beside substitution
1032 * docutils/transforms/universal.py:
1034 - FinalChecks now checks for illegal transitions and moves
1035 transitions between sections.
1037 * docutils/writers/html4css1.py:
1039 - HTMLTranslator.encode now converts U+00A0 to " ".
1040 - "stylesheet" and "stylesheet_path" settings are now mutually
1042 - Added support for the new line_block/line structure.
1043 - --footnote-references now overrides
1044 --trim-footnote-reference-space, if applicable.
1045 - Added support for ``compound`` elements.
1046 - Enabled multiple format names for "raw" directive.
1047 - ``<p>`` tags of a paragraph which is the only visible child of the
1048 document node are no longer stripped.
1049 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1050 new method ``should_be_compact_paragraph()``.
1051 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1053 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1054 the output if they have their ``class`` attribute set.
1055 - The whole document is now surrounded by a ``<div
1056 class="document">`` element.
1057 - Body-level images are now wrapped by their own ``<div>`` elements,
1058 with image classes copied to the wrapper, and for images which
1059 have the ``:align:`` option set, the surrounding ``<div>`` now
1060 receives a class attribute (like ``class="align-left"``).
1062 * docutils/writers/latex2e.py:
1064 - no newline after depart_term.
1065 - Added translations for some Unicode quotes.
1066 - Added option "font-encoding", made package AE the default.
1067 - "stylesheet" and "stylesheet_path" settings are now mutually
1069 - --footnote-references now overrides
1070 --trim-footnote-reference-space, if applicable.
1071 - The footnote label style now matches the footnote reference style
1072 ("brackets" or "superscript").
1073 - Added support for ``compound`` elements.
1074 - Enabled multiple format names for "raw" directive.
1076 * docs/ref/docutils.dtd:
1078 - Changed structure of the ``line_block`` element; added ``line``.
1079 - Added ``compound`` element.
1080 - Added "ltrim" and "rtrim" attributes to
1081 ``substitution_definition`` element.
1082 - Enabled multiple format names for ``raw`` element.
1083 - Enabled multiple classifiers in ``definition_list_item`` elements.
1085 * docs/ref/rst/directives.txt
1087 - Marked "line-block" as deprecated.
1088 - "Class" directive now allows multiple class names.
1089 - Added "Rationale for Class Attribute Value Conversion".
1090 - Added warning about "raw" overuse/abuse.
1092 * docs/ref/rst/restructuredtext.txt:
1094 - Added syntax for line blocks.
1095 - Definition list items may have multiple classifiers.
1097 * docs/ref/rst/roles.txt:
1101 * tools/stylesheets/default.css:
1103 - Added support for the new line_block structure.
1104 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1107 Release 0.3.5 (2004-07-29)
1108 ==========================
1112 * _`Documentation cleanup/reorganization`.
1114 - Created new subdirectories of docs/:
1116 * ``docs/user/``: introductory/tutorial material for end-users
1117 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1118 * ``docs/api/``: API reference material for client-developers
1119 * ``docs/ref/``: reference material for all groups
1120 * ``docs/howto/``: for component-developers and core-developers
1121 * ``docs/peps/``: Python Enhancement Proposals
1123 - Moved ``docs/*`` to ``docs/user/``.
1124 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1125 ``spec/`` to ``docs/dev``.
1126 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1127 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1128 - Moved ``alternatives.txt``, and ``problems.txt`` from
1129 ``spec/rst/`` to ``docs/dev/rst/``.
1130 - Moved ``reStructuredText.txt``, ``directives.txt``,
1131 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1132 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1133 ``roles.txt``, ``reStructuredText.txt`` to
1134 ``restructuredtext.txt``.
1135 - Moved ``spec/howto/`` to ``docs/howto``.
1137 In order to keep the CVS history of moved files, we supplied
1138 SourceForge with a `script for modifying the Docutils CVS
1141 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1143 After running the cleanup script:
1145 - Added ``docs/index.txt``.
1146 - Added a ``.htaccess`` file to the ``web`` module, containing
1147 redirects for all old paths to new paths. They'll preserve
1148 fragments (the "#name" part of a URL), and won't clutter up the
1149 file system, and will correct the URL in the user's browser.
1150 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1151 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1152 the "To Do" list itself in ``docs/dev/todo.txt``.
1153 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1154 section of ``docs/dev/todo.txt``.
1155 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1156 - Added "How To Report Bugs" to ``BUGS.txt``.
1157 - Went through all the sources and docs (including under web/) and
1158 updated links. Mostly done by Lea Wiemann; thanks Lea!
1159 (Still need to update links in the sandboxes.)
1163 * BUGS.txt: Added to project.
1165 * THANKS.txt: Added to project.
1167 * docutils/__init__.py:
1169 - 0.3.4: Post-release.
1173 - Added special error handling & advice for UnicodeEncodeError.
1174 - Refactored Publisher.publish (simplified exception handling &
1175 extracted debug dumps).
1176 - Renamed "enable_exit" parameter of convenience functions to
1177 "enable_exit_status".
1178 - Enabled traceback (exception propagation) by default in
1179 programmatic convenience functions.
1180 - Now publish_file and publish_cmdline convenience functions return
1181 the encoded string results in addition to their regular I/O.
1182 - Extracted common code from publish_file, publish_string, and
1183 publish_parts, into new publish_programmatically. Extracted
1184 settings code to ``Publisher.process_programmatic_settings``.
1185 - In Publisher.publish, disabled ``settings_overrides`` when
1186 ``settings`` is supplied; redundant.
1188 * docutils/frontend.py:
1190 - Added help text for "--output-encoding-error-handler" and
1191 "--error-encoding-error-handler".
1192 - Renamed "--exit" to "--exit-status".
1193 - Simplified default-setting code.
1195 * docutils/parsers/rst/__init__.py:
1197 - Added "--pep-base-url" and "--rfc-base-url" options.
1199 * docutils/parsers/rst/states.py:
1201 - Made URI recognition more aggressive and intelligent.
1203 * docutils/parsers/rst/directives/__init__.py:
1205 - Added several directive option conversion functions.
1207 * docutils/parsers/rst/directives/body.py:
1209 - Moved "table" directive to tables.py.
1211 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1214 * docutils/writers/latex2e.py:
1216 - Added "--table-style=(standard|booktabs|nolines)"
1217 - figures get "here" option (LaTeX per default puts them at bottom),
1218 and figure content is centered.
1219 - Rowspan support for tables.
1220 - Fix: admonition titles before first section.
1221 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1222 - Replave ``_`` in literal by an underlined blank, because it has the correct
1224 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1225 - A few unicode replacements, if output_encoding != utf
1226 - Add "--graphicx-option".
1227 - Indent literal-blocks.
1228 - Fix: omit ``\maketitle`` when there is no document title.
1230 * docs/index.txt: "Docutils Project Documentation Overview", added to
1233 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1234 Tool", added to project.
1236 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1238 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1240 * docs/dev/policies.txt: Added to project (extracted from
1241 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1243 * docs/dev/release.txt: Added to project (extracted from
1244 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1246 * docs/dev/testing.txt: Added to project.
1248 * docs/dev/website.txt: Added to project (extracted from
1249 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1251 * docs/ref/rst/directives.txt:
1253 - Added directives: "table", "csv-table".
1255 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1256 added to project. 1 page for syntax, and a 1 page reference for
1257 directives and roles. Source text to be used as-is; not meant to be
1260 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1261 with a change of title.
1263 * test/functional/, contents, and test/test_functional.py: Added to
1266 * tools/buildhtml.py: Fixed bug with config file handling.
1268 * tools/html.py: Removed from project (duplicate of rst2html.py).
1270 * tools/pep2html.py: Removed from project (duplicate of Python's
1271 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1272 Docutils-related PEPs in docs/peps/).
1274 * tools/rst2pseudoxml.py: Renamed from publish.py.
1276 * tools/rst2xml.py: Renamed from docutils-xml.py.
1278 * tools/test.txt: Removed from project; moved to
1279 docs/user/rst/demo.txt.
1281 * setup.py: Now also installs ``rst2latex.py``.
1284 Release 0.3.3 (2004-05-09)
1285 ==========================
1287 * docutils/__init__.py:
1289 - 0.3.1: Reorganized config file format (multiple sections); see
1291 - Added unknown_reference_resolvers attribute to TransformSpec.
1292 - 0.3.2: Interpreted text reorganization.
1297 - Catch system messages to stop tracebacks from parsing errors.
1298 - Catch exceptions during processing report & exit without
1299 tracebacks, except when "--traceback" used.
1300 - Reordered components for OptionParser; application comes last.
1301 - Added "config_section" parameter to several methods and functions,
1302 allowing front ends to easily specify their config file sections.
1303 - Added publish_parts convenience function to allow access to individual
1304 parts of a document.
1306 * docutils/examples.py: Added to project; practical examples of
1307 Docutils client code, to be used as-is or as models for variations.
1309 * docutils/frontend.py:
1311 - Added "--traceback" & "--no-traceback" options ("traceback"
1313 - Implemented support for config file reorganization:
1314 ``standard_config_files`` moved from ``ConfigParser`` to
1315 ``OptionParser``; added
1316 ``OptionParser.get_config_file_settings()`` and
1317 ``.get_standard_config_settings()``; support for old "[options]"
1318 section (with deprecation warning) and mapping from old to new
1320 - Reimplemented setting validation.
1321 - Enabled flexible boolean values: yes/no, true/false, on/off.
1322 - Added ``Values``, a subclass of ``optparse.Values``, with support
1323 for list setting attributes.
1324 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1325 thanks to Beni Cherniavsky.
1326 - Added "--no-section-numbering" option.
1330 - Catch IOErrors when opening source & destination files, report &
1331 exit without tracebacks. Added ``handle_io_errors`` parameter to
1332 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1334 * docutils/nodes.py:
1336 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1337 method definitions (via ``exec``) to dynamic assignments (via
1338 ``setattr``); thanks to Roman Suzi.
1339 - Encapsulated visitor dynamic assignments in a function; thanks to
1341 - Added indirect_reference_name attribute to the Targetable
1342 class. This attribute holds the whitespace_normalized_name
1343 (contains mixed case) of a target.
1345 * docutils/statemachine.py:
1347 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1348 - Added ``StringList.get_2D_block``.
1350 * docutils/utils.py:
1352 - Added "level" attribute to SystemMessage exceptions.
1354 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1357 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1360 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1361 Marcelo Huerta San Martin.
1363 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1364 mappings by Lalo Martins.
1366 * docutils/languages/ru.py: Added to project; Russian mappings by
1369 * docutils/parsers/rst/roles.py: Added to project. Contains
1370 interpreted text role functions, a registry for interpreted text
1371 roles, and an API for adding to and retrieving from the registry.
1372 Contributed by Edward Loper.
1374 * docutils/parsers/rst/states.py:
1376 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1377 - Allowed true em-dash character and "---" as block quote
1379 - Added support for <angle-bracketed> complex option arguments
1381 - Fixed handling of backslashes in substitution definitions.
1382 - Fixed off-by-1 error with extra whitespace after substitution
1383 definition directive.
1384 - Added inline markup parsing to field lists' field names.
1385 - Added support for quoted (and unindented) literal blocks.
1386 Driven in part by a bribe from Frank Siebenlist (thanks!).
1387 - Parser now handles escapes in URIs correctly.
1388 - Made embedded-URIs' reference text omittable. Idea from Beni
1390 - Refactored explicit target processing code.
1391 - Added name attribute to references containing the reference name only
1392 through whitespace_normalize_name (no case changes).
1393 - parse_target no longer returns the refname after going through
1394 normalize_name. This is now handled in make_target.
1395 - Fixed bug relating to role-less interpreted text in non-English
1397 - Reorganized interpreted text processing; moved code into the new
1398 roles.py module. Contributed by Edward Loper.
1399 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1400 ``parse_directive_block``.
1402 * docutils/parsers/rst/tableparser.py:
1404 - Reworked for ``StringList``, to support "include" directives in
1407 * docutils/parsers/rst/directives/__init__.py:
1409 - Renamed ``unchanged()`` directive option conversion function to
1410 ``unchanged_required``, and added a new ``unchanged``.
1411 - Catch unicode value too high error; fixes bug 781766.
1412 - Beefed up directive error reporting.
1414 * docutils/parsers/rst/directives/body.py:
1416 - Added basic "table" directive.
1418 * docutils/parsers/rst/directives/images.py:
1420 - Added "target" option to "image" directive.
1421 - Added name attribute to references containing the reference name only
1422 through whitespace_normalize_name (no case changes).
1424 * docutils/parsers/rst/directives/misc.py:
1426 - Isolated the import of the ``urllib2`` module; was causing
1427 problems on SourceForge (``libssl.so.2`` unavailable?).
1428 - Added the "role" directive for declaring custom interpreted text
1431 * docutils/parsers/rst/directives/parts.py:
1433 - The "contents" directive does more work up-front, creating the
1434 "topic" and "title", and leaving the "pending" node for the
1435 transform. Allows earlier reference resolution; fixes subtle bug.
1437 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1438 mappings by Jannie Hofmeyr.
1440 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1441 mappings by Marek Blaha.
1443 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1444 mappings by Marcelo Huerta San Martin.
1446 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1447 Portuguese mappings by Lalo Martins.
1449 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1450 mappings by Roman Suzi.
1452 * docutils/transforms/parts.py:
1454 - The "contents" directive does more work up-front, creating the
1455 "topic" and "title", and leaving the "pending" node for the
1456 transform. Allows earlier reference resolution; fixes subtle bug.
1457 - Added support for disabling of section numbering.
1459 * docutils/transforms/references.py:
1461 - Verifying that external targets are truly targets and not indirect
1462 references. This is because we are now adding a "name" attribute to
1463 references in addition to targets. Note sure if this is correct!
1464 - Added code to hook into the unknown_reference_resolvers list for a
1465 transformer in resolve_indirect_target. This allows the
1466 unknown_reference_resolvers to keep around indirect targets which
1467 docutils doesn't know about.
1468 - Added specific error message for duplicate targets.
1470 * docutils/transforms/universal.py:
1472 - Added FilterMessages transform (removes system messages below the
1473 verbosity threshold).
1474 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1475 to FinalCheckVisitor for application-specific handling of
1476 unresolvable references.
1477 - Added specific error message for duplicate targets.
1479 * docutils/writers/__init__.py:
1481 - Added assemble_parts method to the Writer class to allow for
1482 access to a documents individual parts.
1483 - Documented & set default for ``Writer.output`` attribute.
1485 * docutils/writers/html4css1.py:
1487 - Fixed unicode handling of attribute values (bug 760673).
1488 - Prevent duplication of "class" attribute values (bug report from
1490 - Improved table grid/border handling (prompted by report from Bob
1492 - Added support for table titles.
1493 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1495 - Added functionality to keep track of individual parts of a document
1496 and store them in a dictionary as the "parts" attribute of the writer.
1497 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1498 - Added proper support for the "scale" attribute of the "image"
1499 element. Contributed by Brent Cook.
1500 - Added ``--initial-header-level`` option.
1501 - Fixed bug: the body_pre_docinfo segment depended on there being a
1502 docinfo; if no docinfo, the document title was incorporated into
1503 the body segment. Adversely affected the publish_parts interface.
1505 * docutils/writers/latex2e.py:
1507 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1508 about a missing file.
1509 - Added options and support: ``--compound-enumerators``,
1510 ``--section-prefix-for-enumerators``, and
1511 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1513 - Added option ``--use-verbatim-when-possible``, to avoid
1514 problematic characters (eg, '~' in italian) in literal blocks.
1515 - It's now possible to use four section levels in the `book` and
1516 `report` LaTeX classes. The default `article` class still has
1519 * docs/config.txt: "Docutils Configuration Files", added to project.
1520 Moved config file entry descriptions from tools.txt.
1524 - Moved config file entry descriptions to config.txt.
1526 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1529 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1530 Text Roles", added to project.
1532 * spec/rst/reStructuredText.txt:
1534 - Added description of support for <angle-bracketed> complex option
1535 arguments to option lists.
1536 - Added subsections for indented and quoted literal blocks.
1538 * test: Continually adding & updating tests.
1540 - Added test/test_settings.py & test/data/config_*.txt support
1542 - Added test/test_writers/test_htmlfragment.py.
1544 * test/DocutilsTestSupport.py:
1546 - Refactored LaTeX publisher test suite/case class names to make
1547 testing other writers easier.
1548 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1549 to test the processing of HTML fragments which use the new
1550 publish_parts convenience function.
1552 * tools/buildhtml.py:
1554 - Added support for the "--prune" option.
1555 - Removed dependency on pep2html.py; plaintext PEPs no longer
1558 * tools/docutils.conf:
1560 - Updated for configuration file reorganization.
1562 * tools/rst2html.py:
1564 - copied from tools/html.py
1568 - added a 'scripts' section to configuration
1569 - added 'tools/rst2html.py' to the scripts section
1572 Release 0.3 (2003-06-24)
1573 ========================
1577 * Renamed "attribute" to "option" for directives/extensions.
1579 * Renamed transform method "transform" to "apply".
1581 * Renamed "options" to "settings" for runtime settings (as set by
1582 command-line options). Sometimes "option" (singular) became
1583 "settings" (plural). Some variations below:
1585 - document.options -> document.settings (stored in other objects as
1587 - option_spec -> settings_spec (not directives though)
1588 - OptionSpec -> SettingsSpec
1589 - cmdline_options -> settings_spec
1590 - relative_path_options -> relative_path_settings
1591 - option_default_overrides -> settings_default_overrides
1592 - Publisher.set_options -> Publisher.get_settings
1596 * COPYING.txt: Added "Public Domain Dedication".
1598 * FAQ.txt: Frequently asked questions, added to project.
1602 - Updated with PyPI Trove classifiers.
1603 - Conditional installation of third-party modules.
1605 * docutils/__init__.py:
1607 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1608 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1609 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1610 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1611 option and its effect on the PEP template & writer.
1612 - Bumped version to 0.2.4 due to changes to the PEP template &
1614 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1615 - Added ``TransformSpec`` class for new transform system.
1616 - Bumped version to 0.2.6 for API changes (renaming).
1617 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1618 convenience functions.
1619 - Added ``Component.component_type`` attribute.
1620 - Bumped version to 0.2.8 because of the internal parser switch from
1621 plain lists to the docutils.statemachine.StringList objects.
1622 - Bumped version to 0.2.9 because of the frontend.py API changes.
1623 - Bumped version to 0.2.10 due to changes to the project layout
1624 (third-party modules removed from the "docutils" package), and
1625 signature changes in ``io.Input``/``io.Output``.
1626 - Changed version to 0.3.0 for release.
1630 - Made ``publish()`` a bit more convenient.
1631 - Generalized ``Publisher.set_io``.
1632 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1633 parameters; improved its docstring.
1634 - Added ``publish_file()`` and ``publish_string()``.
1635 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1637 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1638 "--dump-transforms" hidden options.
1639 - Added ``Publisher.apply_transforms()`` method.
1640 - Added ``Publisher.set_components()`` method; support for
1641 ``publish_*()`` conveninece functions.
1642 - Moved config file processing to docutils/frontend.py.
1643 - Added support for exit status ("exit_level" setting &
1644 ``enable_exit`` parameter for Publisher.publish() and convenience
1647 * docutils/frontend.py:
1649 - Check for & exit on identical source & destination paths.
1650 - Fixed bug with absolute paths & "--config".
1651 - Set non-command-line defaults in ``OptionParser.__init__()``:
1652 ``_source`` & ``_destination``.
1653 - Distributed ``relative_path_settings`` to components; updated
1654 ``OptionParser.populate_from_components()`` to combine it all.
1655 - Require list of keys in ``make_paths_absolute`` (was implicit in
1656 global ``relative_path_settings``).
1657 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1658 "--dump-settings", and "--dump-transforms" hidden options.
1659 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1660 code, replaced with correct code.
1661 - Added validation functionality for config files.
1662 - Added "--error-encoding" option/setting, "_disable_config"
1664 - Added encoding validation; updated "--input-encoding" and
1665 "--output-encoding"; added "--error-encoding-error-handler" and
1666 "--output-encoding-error-handler".
1667 - Moved config file processing from docutils/core.py.
1668 - Updated ``OptionParser.populate_from_components`` to handle new
1669 ``SettingsSpec.settings_defaults`` dict.
1670 - Added support for "-" => stdin/stdout.
1671 - Added "exit_level" setting ("--exit" option).
1675 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1676 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1677 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1678 - ``FileOutput.write()`` now returns the encoded output string.
1679 - Try to get path/stream name automatically in ``FileInput`` &
1681 - Added defaults for source & destination paths.
1682 - Allow for Unicode I/O with an explicit "unicode" encoding.
1683 - Added ``Output.encode()``.
1684 - Removed dependency on runtime settings; pass encoding directly.
1685 - Recognize Unicode strings in ``Input.decode()``.
1686 - Added support for output encoding error handlers.
1688 * docutils/nodes.py:
1690 - Added "Invisible" element category class.
1691 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1692 modification during a traversal.
1693 - Added element classes: ``line_block``, ``generated``, ``address``,
1694 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1695 ``superscript``, ``subscript``, ``inline``
1696 - Added support for lists of nodes to ``Element.insert()``.
1697 - Fixed parent linking in ``Element.replace()``.
1698 - Added new abstract superclass ``FixedTextElement``; adds
1699 "xml:space" attribute.
1700 - Added support for "line" attribute of ``system_message`` nodes.
1701 - Added support for the observer pattern from ``utils.Reporter``.
1702 Added ``parse_messages`` and ``transform_messages`` attributes to
1703 ``document``, removed ``messages``. Added ``note_parse_message``
1704 and ``note_transform_message`` methods.
1705 - Added support for improved diagnostics:
1707 - Added "document", "source", and "line" internal attributes to
1708 ``Node``, set by ``Node.setup_child()``.
1709 - Converted variations on ``node.parent = self`` to
1710 ``self.setup_child(node)``.
1711 - Added ``document.current_source`` & ``.current_line``
1712 attributes, and ``.note_source`` observer method.
1713 - Changed "system_message" output to GNU-Tools format.
1715 - Added a "rawsource" attribute to the ``Text`` class, for text
1716 before backslash-escape resolution.
1717 - Support for new transform system.
1718 - Reworked ``pending`` element.
1719 - Fixed XML DOM bug (SF #660611).
1720 - Removed the ``interpeted`` element class and added
1721 ``title_reference``, ``abbreviation``, ``acronym``.
1722 - Made substitutions case-sensitive-but-forgiving; moved some code
1724 - Fixed Unicode bug on element attributes (report: William Dode).
1726 * docutils/optik.py: Removed from project; replaced with
1727 extras/optparse.py and extras/textwrap.py. These will be installed
1728 only if they're not already present in the Python installation.
1730 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1731 only if it's not already present in the Python installation.
1733 * docutils/statemachine.py:
1735 - Factored out ``State.add_initial_transitions()`` so it can be
1737 - Converted whitespace-specific "blank" and "indent" transitions
1738 from special-case code to ordinary transitions: removed
1739 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1740 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1741 ``ws_initial_transitions`` attributes.
1742 - Removed ``State.match_transition()`` after merging it into
1744 - Added ``StateCorrection`` exception.
1745 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1746 (moved ``TransitionCorrection`` support there too.)
1747 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1748 ``EOFError`` instead of ``IndexError``.
1749 - Added ``State.no_match`` method.
1750 - Added support for the Observer pattern, triggered by input line
1752 - Added ``strip_top`` parameter to
1753 ``StateMachineWS.get_first_known_indented``.
1754 - Made ``context`` a parameter to ``StateMachine.run()``.
1755 - Added ``ViewList`` & ``StringList`` classes;
1756 ``extract_indented()`` becomes ``StringList.get_indented()``.
1757 - Added ``StateMachine.insert_input()``.
1758 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1759 thanks to) Fred Drake.
1761 * docutils/utils.py:
1763 - Added a ``source`` attribute to Reporter instances and
1764 ``system_message`` elements.
1765 - Added an observer pattern to ``utils.Reporter`` to keep track of
1767 - Fixed bugs in ``relative_path()``.
1768 - Added support for improved diagnostics.
1769 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1770 - Added support for encoding Reporter stderr output, and encoding
1772 - Reporter keeps track of the highest level system message yet
1775 * docutils/languages: Fixed bibliographic field language lookups.
1777 * docutils/languages/es.py: Added to project; Spanish mappings by
1778 Marcelo Huerta San Martin.
1780 * docutils/languages/fr.py: Added to project; French mappings by
1783 * docutils/languages/it.py: Added to project; Italian mappings by
1786 * docutils/languages/sk.py: Added to project; Slovak mappings by
1789 * docutils/parser/__init__.py:
1791 - Added ``Parser.finish_parse()`` method.
1793 * docutils/parser/rst/__init__.py:
1795 - Added options: "--pep-references", "--rfc-references",
1796 "--tab-width", "--trim-footnote-reference-space".
1798 * docutils/parsers/rst/states.py:
1800 - Changed "title under/overline too short" system messages from INFO
1801 to WARNING, and fixed its insertion location.
1802 - Fixed enumerated list item parsing to allow paragraphs & section
1803 titles to begin with enumerators.
1804 - Converted system messages to use the new "line" attribute.
1805 - Fixed a substitution reference edge case.
1806 - Added support for "--pep-references" and "--rfc-references"
1807 options; reworked ``Inliner`` code to make customization easier.
1808 - Removed field argument parsing.
1809 - Added support for short section title over/underlines.
1810 - Fixed "simple reference name" regexp to ignore text like
1811 "object.__method__"; not an anonymous reference.
1812 - Added support for improved diagnostics.
1813 - Reworked directive API, based on Dethe Elza's contribution. Added
1814 ``Body.parse_directive()``, ``.parse_directive_options()``,
1815 ``.parse_directive_arguments()`` methods.
1816 - Added ``ExtensionOptions`` class, to parse directive options
1817 without parsing field bodies. Factored
1818 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1819 ``ExtensionOptions``.
1820 - Improved definition list term/classifier parsing.
1821 - Added warnings for unknown directives.
1822 - Renamed ``Stuff`` to ``Struct``.
1823 - Now flagged as errors: transitions at the beginning or end of
1824 sections, empty sections (except title), and empty documents.
1825 - Updated for ``statemachine.StringList``.
1826 - Enabled recognition of schemeless email addresses in targets.
1827 - Added support for embedded URIs in hyperlink references.
1828 - Added backslash-escapes to inline markup end-string suffix.
1829 - Added support for correct interpreted text processing.
1830 - Fixed nested title parsing (topic, sidebar directives).
1831 - Added special processing of backslash-escaped whitespace (idea
1832 from David Abrahams).
1833 - Made substitutions case-sensitive-but-forgiving; moved some code
1834 to ``docutils.nodes``.
1835 - Added support for block quote attributions.
1836 - Added a kludge to work-around a conflict between the bubble-up
1837 parser strategy and short titles (<= 3 char-long over- &
1838 underlines). Fixes SF bug #738803 "infinite loop with multiple
1839 titles" submitted by Jason Diamond.
1840 - Added explicit interpreted text roles for standard inline markup:
1841 "emphasis", "strong", "literal".
1842 - Implemented "superscript" and "subscript" interpreted text roles.
1843 - Added initial support for "abbreviation" and "acronym" roles;
1845 - Added support for "--trim-footnote-reference-space" option.
1846 - Optional space before colons in directives & hyperlink targets.
1848 * docutils/parsers/rst/tableparser.py:
1850 - Fixed a bug that was producing unwanted empty rows in "simple"
1852 - Detect bad column spans in "simple" tables.
1854 * docutils/parsers/rst/directives: Updated all directive functions to
1857 * docutils/parsers/rst/directives/__init__.py:
1859 - Added ``flag()``, ``unchanged()``, ``path()``,
1860 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1861 directive option helper functions.
1862 - Added warnings for unknown directives.
1863 - Return ``None`` for missing directives.
1864 - Added ``register_directive()``, thanks to William Dode and Paul
1867 * docutils/parsers/rst/directives/admonitions.py:
1869 - Added "admonition" directive.
1871 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1872 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1873 "parsed-literal", "rubric", "epigraph", "highlights" and
1874 "pull-quote" directives.
1876 * docutils/parsers/rst/directives/images.py:
1878 - Added an "align" attribute to the "image" & "figure" directives
1879 (by Adam Chodorowski).
1880 - Added "class" option to "image", and "figclass" to "figure".
1882 * docutils/parsers/rst/directives/misc.py:
1884 - Added "include", "raw", and "replace" directives, courtesy of
1886 - Added "unicode" and "class" directives.
1888 * docutils/parsers/rst/directives/parts.py:
1890 - Added the "sectnum" directive; by Dmitry Jemerov.
1891 - Added "class" option to "contents" directive.
1893 * docutils/parsers/rst/directives/references.py: Added to project.
1894 Contains the "target-notes" directive.
1896 * docutils/parsers/rst/languages/__init__.py:
1898 - Return ``None`` from get_language() for missing language modules.
1900 * docutils/parsers/rst/languages/de.py: Added to project; German
1901 mappings by Engelbert Gruber.
1903 * docutils/parsers/rst/languages/en.py:
1905 - Added interpreted text roles mapping.
1907 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1908 mappings by Marcelo Huerta San Martin.
1910 * docutils/parsers/rst/languages/fr.py: Added to project; French
1911 mappings by William Dode.
1913 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1914 mappings by Nicola Larosa.
1916 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1917 mappings by Miroslav Vasko.
1919 * docutils/readers/__init__.py:
1921 - Added support for the observer pattern from ``utils.Reporter``, in
1922 ``Reader.parse`` and ``Reader.transform``.
1923 - Removed ``Reader.transform()`` method.
1924 - Added default parameter values to ``Reader.__init__()`` to make
1925 instantiation easier.
1926 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1928 * docutils/readers/pep.py:
1930 - Added the ``peps.TargetNotes`` transform to the Reader.
1931 - Removed PEP & RFC reference detection code; moved to
1932 parsers/rst/states.py as options (enabled here by default).
1933 - Added support for pre-acceptance PEPs (no PEP number yet).
1934 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1937 * docutils/readers/python: Python Source Reader subpackage added to
1938 project, including preliminary versions of:
1941 - moduleparser.py: Parser for Python modules.
1943 * docutils/transforms/__init__.py:
1945 - Added ``Transformer`` class and completed transform reform.
1946 - Added unknown_reference_resolvers list for each transformer. This list holds
1947 the list of functions provided by each component of the transformer that
1948 help resolve references.
1950 * docutils/transforms/frontmatter.py:
1952 - Improved support for generic fields.
1953 - Fixed bibliographic field language lookups.
1955 * docutils/transforms/misc.py: Added to project. Miscellaneous
1958 * docutils/transforms/parts.py:
1960 - Moved the "id" attribute from TOC list items to the references
1961 (``Contents.build_contents()``).
1962 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1963 - Added "class" attribute support to ``Contents``.
1965 * docutils/transforms/peps.py:
1967 - Added ``mask_email()`` function, updating to pep2html.py's
1969 - Linked "Content-Type: text/x-rst" to PEP 12.
1970 - Added the ``TargetNotes`` PEP-specific transform.
1971 - Added ``TargetNotes.cleanup_callback``.
1972 - Added title check to ``Headers``.
1974 * docutils/transforms/references.py:
1976 - Added the ``TargetNotes`` generic transform.
1977 - Split ``Hyperlinks`` into multiple transforms.
1978 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1979 - Added check for circular indirect references.
1980 - Made substitutions case-sensitive-but-forgiving.
1982 * docutils/transforms/universal.py:
1984 - Added support for the "--expose-internal-attributes" option.
1985 - Removed ``Pending`` transform classes & data.
1987 * docutils/writers/__init__.py:
1989 - Removed ``Writer.transform()`` method.
1991 * docutils/writers/docutils-xml.py:
1993 - Added XML and doctype declarations.
1994 - Added "--no-doctype" and "--no-xml-declaration" options.
1996 * docutils/writers/html4css1.py:
1998 - "name" attributes only on these tags: a, applet, form, frame,
2000 - Added "name" attribute to <a> in section titles for Netscape 4
2001 support (bug report: Pearu Peterson).
2002 - Fixed targets (names) on footnote, citation, topic title,
2003 problematic, and system_message nodes (for Netscape 4).
2004 - Changed field names from "<td>" to "<th>".
2005 - Added "@" to "@" encoding to thwart address harvesters.
2006 - Improved the vertical whitespace optimization; ignore "invisible"
2007 nodes (targets, comments, etc.).
2008 - Improved inline literals with ``<span class="pre">`` around chunks
2009 of text and `` `` for runs of spaces.
2010 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2011 ``self.docinfo`` segments.
2012 - Added support for "line_block", "address" elements.
2013 - Improved backlinks (footnotes & system_messages).
2014 - Improved system_message output.
2015 - Redefined "--stylesheet" as containing an invariant URL, used
2016 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2018 - Added "--footnote-references" option (superscript or brackets).
2019 - Added "--compact-lists" and "--no-compact-lists" options.
2020 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2021 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2022 - Improved field list rendering.
2023 - Added Docutils version to "generator" meta tag.
2024 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2025 - Improved layout of <pre> HTML source.
2026 - Fixed attribute typo on <colspec>.
2027 - Refined XML prologue.
2028 - Support for no stylesheet.
2029 - Removed "interpreted" element support.
2030 - Added support for "title_reference", "sidebar", "attribution",
2031 "rubric", and generic "admonition" elements.
2032 - Added "--attribution" option.
2033 - Added support for "inline", "subscript", "superscript" elements.
2034 - Added initial support for "abbreviation" and "acronym";
2037 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2041 - Double quotes in literal blocks (special treatment for de/ngerman).
2042 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2043 - Added "--attribution" option.
2044 - Right align attributions.
2046 * docutils/writers/pep_html.py:
2048 - Parameterized output encoding in PEP template.
2049 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2050 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2051 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2053 - Added an override on the "--footnote-references" option.
2054 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2055 - Added Docutils version to "generator" meta tag.
2056 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2060 - Added a "silent" setting for ``buildhtml.py``.
2061 - Added a "Getting Help" section.
2062 - Rearranged the structure.
2063 - Kept up to date, with new settings, command-line options etc.
2064 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2065 - Converted settings table into a definition list.
2067 * docs/rst/quickstart.txt:
2069 - Added a table of contents.
2070 - Added feedback information.
2071 - Added mention of minimum section title underline lengths.
2072 - Removed the 4-character minimum for section title underlines.
2074 * docs/rst/quickref.html:
2076 - Added a "Getting Help" section.
2077 - Added a style to make section title backlinks more subtle.
2078 - Added mention of minimum section title underline lengths.
2079 - Removed the 4-character minimum for section title underlines.
2081 * extras: Directory added to project; contains third-party modules
2082 that Docutils depends on (optparse, textwrap, roman). These are
2083 only installed if they're not already present.
2085 * licenses: Directory added to project; contains copies of license
2086 files for non-public-domain files.
2090 - Changed the focus. It's about DTD elements: structural
2091 relationships, semantics, and external (public) attributes. Not
2092 about the element class library.
2093 - Moved some implementation-specific stuff into ``docutils.nodes``
2095 - Wrote descriptions of all common attributes and parameter
2096 entities. Filled in introductory material.
2097 - Working through the element descriptions: 55 down, 37 to go.
2098 - Removed "Representation of Horizontal Rules" to
2099 spec/rst/alternatives.txt.
2101 * spec/docutils.dtd:
2103 - Added "generated" inline element.
2104 - Added "line_block" body element.
2105 - Added "auto" attribute to "title".
2106 - Changed content models of "literal_block" and "doctest_block" to
2108 - Added ``%number;`` attribute type parameter entity.
2109 - Changed ``%structural.elements;`` to ``%section.elements``.
2110 - Updated attribute types; made more specific.
2111 - Added "address" bibliographic element.
2112 - Added "line" attribute to ``system_message`` element.
2113 - Removed "field_argument" element; "field_name" may contain
2114 multiple words and whitespace.
2115 - Changed public identifier to docutils.sf.net.
2116 - Removed "interpreted" element; added "title_reference",
2117 "abbreviation", "acronym".
2118 - Removed "refuri" attribute from "footnote_reference" and
2119 "citation_reference".
2120 - Added "sidebar", "rubric", "attribution", "admonition",
2121 "superscript", "subscript", and "inline" elements.
2123 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2125 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2127 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2129 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2132 * spec/transforms.txt: Added to project.
2134 * spec/howto: Added subdirectory, for developer how-to docs.
2136 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2137 Elza, edited & extended by David Goodger.
2139 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2142 * spec/rst/alternatives.txt:
2144 - Added "Doctree Representation of Transitions" from
2146 - Updated "Inline External Targets" & closed the debate.
2147 - Added ideas for interpreted text syntax extensions.
2148 - Added "Nested Inline Markup" section.
2150 * spec/rst/directives.txt:
2152 - Added directives: "topic", "sectnum", "target-notes",
2153 "line-block", "parsed-literal", "include", "replace", "sidebar",
2154 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2156 - Formalized descriptions of directive details.
2157 - Added an "align" attribute to the "image" & "figure" directives
2158 (by Adam Chodorowski).
2159 - Added "class" options to "topic", "sidebar", "line-block",
2160 "parsed-literal", "contents", and "image"; and "figclass" to
2163 * spec/rst/interpreted.txt: Added to project. Descriptions of
2164 interpreted text roles.
2166 * spec/rst/introduction.txt:
2168 - Added pointers to material for new users.
2170 * spec/rst/reStructuredText.txt:
2172 - Disambiguated comments (just add a newline after the "::").
2173 - Updated enumerated list description; added a discussion of the
2174 second-line validity checking.
2175 - Updated directive description.
2176 - Added a note redirecting newbies to the user docs.
2177 - Expanded description of inline markup start-strings in non-markup
2179 - Removed field arguments and made field lists a generic construct.
2180 - Removed the 4-character minimum for section title underlines.
2181 - Clarified term/classifier delimiter & inline markup ambiguity
2183 - Added "Embedded URIs".
2184 - Updated "Interpreted Text" section.
2185 - Added "Character-Level Inline Markup" section.
2187 * test: Continually adding & updating tests.
2189 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2190 - Moved test/test_pep/ to test/test_readers/test_pep/.
2191 - Added test/test_readers/test_python/.
2192 - Added test/test_writers/ (Engelbert Gruber).
2196 - Made the ``locale.setlocale()`` calls in front ends
2199 * tools/buildhtml.py:
2201 - Added "--silent" option.
2202 - Fixed bug with absolute paths & "--config".
2203 - Updated for new I/O classes.
2204 - Added some exception handling.
2205 - Separated publishers' setting defaults; prevents interference.
2206 - Updated for new ``publish_file()`` convenience function.
2208 * tools/pep-html-template:
2210 - Allow for "--embed-stylesheet".
2211 - Added Docutils version to "generator" meta tag.
2212 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2213 - Conform to XHTML spec.
2215 * tools/pep2html.py:
2217 - Made ``argv`` a parameter to ``main()``.
2218 - Added support for "Content-Type:" header & arbitrary PEP formats.
2219 - Linked "Content-Type: text/plain" to PEP 9.
2220 - Files skipped (due to an error) are not pushed onto the server.
2221 - Updated for new I/O classes.
2222 - Added ``check_requirements()`` & ``pep_type_error()``.
2223 - Added some exception handling.
2224 - Updated for new ``publish_string()`` convenience function.
2225 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2227 * tools/quicktest.py:
2229 - Added "-V"/"--version" option.
2231 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2233 * tools/unicode2rstsubs.py: Added to project. Produces character
2234 entity files (reSructuredText substitutions) from the MathML master
2237 * tools/editors: Support code for editors, added to project. Contains
2238 ``emacs/restructuredtext.el``.
2240 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2242 - Added style for chunks of inline literals.
2243 - Removed margin for first child of table cells.
2244 - Right-aligned field list names.
2245 - Support for auto-numbered section titles in TOCs.
2246 - Increased the size of inline literals (<tt>) in titles.
2247 - Restored the light gray background for inline literals.
2248 - Added support for "line_block" elements.
2249 - Added style for "address" elements.
2250 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2251 - Improved field list rendering.
2252 - Vertical whitespace improvements.
2253 - Removed "a.target" style.
2255 * tools/stylesheets/pep.css:
2257 - Fixed nested section margins.
2258 - Other changes parallel those of ``../default.css``.
2261 Release 0.2 (2002-07-31)
2262 ========================
2266 - The word "component" was being used ambiguously. From now on,
2267 "component" will be used to mean "Docutils component", as in Reader,
2268 Writer, Parser, or Transform. Portions of documents (Table of
2269 Contents, sections, etc.) will be called "document parts".
2270 - Did a grand renaming: a lot of ``verylongnames`` became
2271 ``very_long_names``.
2272 - Cleaned up imports: no more relative package imports or
2273 comma-separated lists of top-level modules.
2274 - Added support for an option values object which carries default
2275 settings and overrides (from command-line options and library use).
2276 - Added internal Unicode support, and support for both input and
2278 - Added support for the ``docutils.io.IO`` class & subclasses.
2282 * docutils/__init__.py:
2284 - Added ``ApplicationError`` and ``DataError``, for use throughout
2286 - Added ``Component`` base class for Docutils components; implements
2287 the ``supports`` method.
2288 - Added ``__version__`` (thus, ``docutils.__version__``).
2292 - Removed many keyword parameters to ``Publisher.__init__()`` and
2293 ``publish()``; bundled into an option values object. Added
2294 "argv", "usage", "description", and "option_spec" parameters for
2295 command-line support.
2296 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2298 - Reworked I/O model for ``docutils.io`` wrappers.
2299 - Updated ``Publisher.set_options()``; now returns option values
2301 - Added support for configuration files (/etc/docutils.conf,
2302 ./docutils.conf, ~/.docutils).
2303 - Added ``Publisher.setup_option_parser()``.
2304 - Added default usage message and description.
2306 * docutils/frontend.py: Added to project; support for front-end
2307 (command-line) scripts. Option specifications may be augmented by
2308 components. Requires Optik (http://optik.sf.net/) for option
2309 processing (installed locally as docutils/optik.py).
2311 * docutils/io.py: Added to project; uniform API for a variety of input
2314 * docutils/nodes.py:
2316 - Added ``TreeCopyVisitor`` class.
2317 - Added a ``copy`` method to ``Node`` and subclasses.
2318 - Added a ``SkipDeparture`` exception for visitors.
2319 - Renamed ``TreePruningException`` from ``VisitorException``.
2320 - Added docstrings to ``TreePruningException``, subclasses, and
2322 - Improved docstrings.
2323 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2324 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2326 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2327 ``PreDecorative`` mixin.
2328 - Reworked the name/id bookkeeping; to ``document``, removed
2329 ``explicit_targets`` and ``implicit_targets`` attributes, added
2330 ``nametypes`` attribute and ``set_name_id_map`` method.
2331 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2333 - Added ``document.has_name()`` method.
2334 - Fixed DOM generation for list-attributes.
2335 - Added category class ``Labeled`` (used by footnotes & citations).
2336 - Added ``Element.set_class()`` method (sets "class" attribute).
2338 * docutils/optik.py: Added to project. Combined from the Optik
2339 package, with added option groups and other modifications. The use
2340 of this module is probably only temporary.
2342 * docutils/statemachine.py:
2344 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2345 - Added underscores to improve many awkward names.
2346 - In ``string2lines()``, changed whitespace normalizing translation
2347 table to regexp; restores Python 2.0 compatibility with Unicode.
2349 * docutils/urischemes.py:
2351 - Filled in some descriptions.
2352 - Added "shttp" scheme.
2354 * docutils/utils.py:
2356 - Added ``clean_rcs_keywords`` function (moved from
2357 docutils/transforms/frontmatter.py
2358 ``DocInfo.filter_rcs_keywords``).
2359 - Added underscores to improve many awkward names.
2360 - Changed names of Reporter's thresholds:
2361 warning_level -> report_level; error_level -> halt_level.
2362 - Moved ``utils.id()`` to ``nodes.make_id()``.
2363 - Added ``relative_path(source, target)``.
2365 * docutils/languages/de.py: German mappings; added to project. Thanks
2366 to Gunnar Schwant for the translations.
2368 * docutils/languages/en.py: Added "Dedication" bibliographic field
2371 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2374 * docutils/parsers/rst/states.py:
2376 - Added underscores to improve many awkward names.
2377 - Added RFC-2822 header support.
2378 - Extracted the inline parsing code from ``RSTState`` to a separate
2379 class, ``Inliner``, which will allow easy subclassing.
2380 - Made local bindings for ``memo`` container & often-used contents
2381 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2382 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2383 - Added ``MarkupMismatch`` exception; for late corrections.
2384 - Added ``-/:`` characters to inline markup's start string prefix,
2385 ``/`` to end string suffix.
2386 - Fixed a footnote bug.
2387 - Fixed a bug with literal blocks.
2388 - Applied patch from Simon Budig: simplified regexps with symbolic
2389 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2390 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2391 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2392 - Allowed non-ASCII in "simple names" (directive names, field names,
2394 - Converted ``Inliner.patterns.initial`` to be dynamically built
2395 from parts with ``build_regexp()`` function.
2396 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2397 - Updated docstrings.
2398 - Changed "table" to "grid_table"; added "simple_table" support.
2400 * docutils/parsers/rst/tableparser.py:
2402 - Changed ``TableParser`` to ``GridTableParser``.
2403 - Added ``SimpleTableParser``.
2404 - Refactored naming.
2406 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2407 a fallback language for directive names.
2409 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2410 directive to use a ``pending`` element, used only by HTML writers.
2412 * docutils/parsers/rst/directives/parts.py: Renamed from
2415 - Added "backlinks" attribute to "contents" directive.
2417 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2418 project by Adam Chodorowski.
2420 * docutils/readers/__init__.py: Gave Readers more control over
2421 choosing and instantiating Parsers.
2423 * docutils/readers/pep.py: Added to project; for PEP processing.
2425 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2426 requires a ``component`` parameter.
2428 * docutils/transforms/components.py: Added to project; transforms
2429 related to Docutils components.
2431 * docutils/transforms/frontmatter.py:
2433 - In ``DocInfo.extract_authors``, check for a single "author" in an
2434 "authors" group, and convert it to a single "author" element.
2435 - Added support for "Dedication" and generic bibliographic fields.
2437 * docutils/transforms/peps.py: Added to project; PEP-specific.
2439 * docutils/transforms/parts.py: Renamed from old components.py.
2441 - Added filter for `Contents`, to use alt-text for inline images,
2442 and to remove inline markup that doesn't make sense in the ToC.
2443 - Added "name" attribute to TOC topic depending on its title.
2444 - Added support for optional TOC backlinks.
2446 * docutils/transforms/references.py: Fixed indirect target resolution
2447 in ``Hyperlinks`` transform.
2449 * docutils/transforms/universal.py:
2451 - Changed ``Messages`` transform to properly filter out system
2452 messages below the warning threshold.
2453 - Added ``Decorations`` transform (support for ``--generator``,
2454 ``--date``, ``--time``, ``--source-link`` options).
2456 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2457 Engelbert Gruber's PDF writer.
2459 * docutils/writers/html4css1.py:
2461 - Made XHTML-compatible (switched to lowercase element & attribute
2462 names; empty tag format).
2463 - Escape double-dashes in comment text.
2464 - Improved boilerplate & modularity of output.
2465 - Exposed modular output in Writer class.
2466 - Added a "generator" meta tag to <head>.
2467 - Added support for the ``--stylesheet`` option.
2468 - Added support for ``decoration``, ``header``, and ``footer``
2470 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2471 translation table to regexp; restores Python 2.0 compatibility
2473 - Added the translator class as instance variable to the Writer, to
2474 make it easily subclassable.
2475 - Improved option list spacing (thanks to Richard Jones).
2476 - Modified field list output.
2477 - Added backlinks to footnotes & citations.
2478 - Added percentage widths to "<col>" tags (from colspec).
2479 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2480 "<span>" changed to "<var>".
2481 - Inline literals: "<code>" changed to "<tt>".
2482 - Many changes to optimize vertical space: compact simple lists etc.
2483 - Add a command-line options & directive attributes to control TOC
2484 and footnote/citation backlinks.
2485 - Added support for optional footnote/citation backlinks.
2486 - Added support for generic bibliographic fields.
2487 - Identify backrefs.
2488 - Relative URLs for stylesheet links.
2490 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2491 PEPs (subclass of ``html4css1.Writer``).
2493 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2495 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2496 of the Docutils internal doctree in XML.
2498 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2502 - Changed the title to "The Docutils Document Tree".
2503 - Added "Hyperlink Bookkeeping" section.
2505 * spec/docutils.dtd:
2507 - Added ``decoration``, ``header``, and ``footer`` elements.
2508 - Brought ``interpreted`` element in line with the parser: changed
2509 attribute "type" to "role", added "position".
2510 - Added support for generic bibliographic fields.
2512 * spec/notes.txt: Continual updates. Added "Project Policies".
2514 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2517 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2519 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2520 mailing list discussions.
2522 * spec/pep-0287.txt:
2524 - Renamed to "reStructuredText Docstring Format".
2526 - Reworked Q&A as an enumerated list.
2527 - Converted to reStructuredText format.
2529 * spec/pysource.dtd:
2531 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2533 * spec/pysource.txt: Removed from project. Moved much of its contents
2536 * spec/rst/alternatives.txt:
2538 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2539 - Added "Inline External Targets" section.
2541 * spec/rst/directives.txt:
2543 - Added "backlinks" attribute to "contents" directive.
2545 * spec/rst/problems.txt:
2547 - Updated the Enumerated List Markup discussion.
2548 - Added new alternative table markup syntaxes.
2550 * spec/rst/reStructuredText.txt:
2552 - Clarified field list usage.
2553 - Updated enumerated list description.
2554 - Clarified purpose of directives.
2555 - Added ``-/:`` characters to inline markup's start string prefix,
2556 ``/`` to end string suffix.
2557 - Updated "Authors" bibliographic field behavior.
2558 - Changed "inline hyperlink targets" to "inline internal targets".
2559 - Added "simple table" syntax to supplement the existing but
2560 newly-renamed "grid tables".
2561 - Added cautions for anonymous hyperlink use.
2562 - Added "Dedication" and generic bibliographic fields.
2564 * test: Made test modules standalone (subdirectories became packages).
2566 * test/DocutilsTestSupport.py:
2568 - Added support for PEP extensions to reStructuredText.
2569 - Added support for simple tables.
2570 - Refactored naming.
2572 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2574 - Now supports true packages containing test modules
2575 (``__init__.py`` files required); fixes duplicate module name bug.
2577 * test/test_pep/: Subpackage added to project; PEP testing.
2579 * test/test_rst/test_SimpleTableParser.py: Added to project.
2583 - Updated html.py and publish.py front-end tools to use the new
2584 command-line processing facilities of ``docutils.frontend``
2585 (exposed in ``docutils.core.Publisher``), reducing each to just a
2587 - Added ``locale.setlocale()`` calls to front-end tools.
2589 * tools/buildhtml.py: Added to project; batch-generates .html from all
2590 the .txt files in directories and subdirectories.
2592 * tools/default.css:
2594 - Added support for ``header`` and ``footer`` elements.
2595 - Added styles for "Dedication" topics (biblio fields).
2597 * tools/docutils.conf: A configuration file; added to project.
2599 * tools/docutils-xml.py: Added to project.
2601 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2603 * tools/pep-html-template: Added to project.
2605 * tools/pep2html.py: Added to project from Python (nondist/peps).
2606 Added support for Docutils (reStructuredText PEPs).
2608 * tools/quicktest.py:
2610 - Added the ``--attributes`` option, hacked a bit.
2611 - Added a second command-line argument (output file); cleaned up.
2613 * tools/stylesheets/: Subdirectory added to project.
2615 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2618 Release 0.1 (2002-04-20)
2619 ========================
2621 This is the first release of Docutils, merged from the now inactive
2622 reStructuredText__ and `Docstring Processing System`__ projects. For
2623 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2624 `DPS HISTORY`__ files.
2626 __ http://structuredtext.sourceforge.net/
2627 __ http://docstring.sourceforge.net/
2628 __ http://structuredtext.sourceforge.net/HISTORY.html
2629 __ http://docstring.sourceforge.net/HISTORY.html
2631 General changes: renamed 'dps' package to 'docutils'; renamed
2632 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2633 the test suites (reStructuredText's test/test_states renamed to
2634 test/test_rst); and all modifications required to make it all work.
2636 * docutils/parsers/rst/states.py:
2638 - Improved diagnostic system messages for missing blank lines.
2639 - Fixed substitution_reference bug.
2645 indent-tabs-mode: nil
2646 sentence-end-double-space: t