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.
57 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
58 has more than one paragraph (Wolfgang Scherer).
60 * docutils/writers/xetex/__init__.py
62 - New writer generating LaTeX code for compiling with ``xelatex``.
64 A separate writer (inheriting from latex2e) instead of a ``--xetex``
65 option allows separate config options for XeTeX vs. LaTeX2e.
67 * tools/editors/emacs/rst.el:
69 - Fix [ 3001100 ] does not handle spaces in filenames
70 (thanks to Jakub Wilk)
74 - strip whitespace from stylesheet arguments
75 - exclude combining chars from column_width
76 (partial fix for [ 2926161 ])
79 Release 0.7 (2010-07-07)
80 ========================
84 - Fix [ 2881769 ] setup configuration.
85 - Fix [ 2788716 ] reporting problems in included files.
89 - FileInput opens files as text files with universal newline support
90 (mode "rU", configurable with the new optional argument "mode").
94 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
98 - Fix [ 2923723 ] let decode_path() tolerate path == None
100 * docutils/writers/html4css1/__init__.py
102 - Support SVG and SWF images (thanks to Stefan Rank).
103 - Generate valid XHTML for centered images with targets.
104 Use CSS classes instead of "align" tags for image alignment.
106 * docutils/writers/latex2e/__init__.py
108 - Use `transforms.writer_aux.Admonitions` to "normalize" special
110 - Use the ``\url`` command for URLs (breaks long URLs instead of
111 writing into the margin).
112 - Preserve runs of spaces in `inline literals`__.
113 - Deprecate ``figure_footnotes`` setting.
114 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
115 - New ``latex_preamble`` setting.
116 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
117 - Fix hyperlink targets (labels) for images, figures, and tables.
118 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
119 - Apply [ 2961991 ] Call hyperref with unicode option.
120 - Drop the special `output_encoding`__ default ("latin-1").
121 The Docutils wide default (usually "UTF-8") is used instead.
122 - Render inline markup in document title and subtitle.
123 - Fix numbering depth with LaTeX section numbering.
124 - Update Unicode -> LaTeX translations.
125 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
127 __ docs/ref/restructuredtext.html#inline-literals
128 __ docs/user/config.html#docutils-footnotes
129 __ docs/user/config.html#output_encoding
131 * docutils/writers/manpage.py
133 - Fix: supported attribute (thanks to peter2108).
134 - Remove trailing blanks in code (keep in sync with mercurial version).
135 - Titles level 1, that is ``.SH``, always uppercase.
136 - Apply patch from mg: literal text should be bold in man-pages.
140 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
145 - Python 3 support: copy test/ and tools/ to the build-dir
146 and convert Python sources with 2to3.
149 Release 0.6 (2009-10-11)
150 ========================
154 - Docutils is now compatible with Python versions from 2.3 up to 2.6
155 and convertible to 3.1 code.
157 + Node.__nonzero__ returns True instead of 1.
158 + use os.walk instead os.path.walk.
159 + minimize "types" module where possible.
160 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
161 + Text nodes now subclass unicode rather than UserString
162 (which is gone in python 3.0).
163 + 3.0 compatibility module docutils._compat
165 + Drop 2.2 compatibility workarounds.
166 + Drop extras/optparse.py and extras/textwrap.py
167 (stdlib modules since 2.3).
169 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
170 - Unix man page export: manpage writer moved from sandbox to Doctutils
173 - Apply [ 1719345 ] Galician translation
174 - Apply [ 1905741 ] Polish translation
175 - Apply [ 1878977 ] make_id(): deaccent characters.
176 - Apply [ 2029251 ] return nonzero when tests fail.
177 - Fix [ 1692788 ] allow UTF-8 in style sheets.
178 - Fix [ 2781629 ] support non-ASCII chars in file names.
179 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
180 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
181 - Fix [ 2821266 ] --strict option works now like --halt=info.
182 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
183 - Fix [ 1627229 ] hyperlink references in substitutions.
185 - The "newlatex" writer is orphaned.
189 - Documented Unicode characters allowed as inline markup openers,
190 closers, and delimiters.
191 - Allow units for all length specifications.
192 - Allow percent sign in "scale" argument of "figure" and "image" directives.
193 - Bugfix: The "figalign" argument of a figure now works as intended
194 (aligning the figure, not its contents).
195 - Align images with class "align-[right|center|left]"
196 (allows setting the alignment of an image in a figure).
200 - Added ``Element.__contains__`` method, for the in-operator.
202 * docutils/parsers/rst/states.py:
204 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
205 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
206 " " (non-breaking space), and "¡ ¿" openers.
208 * docutils/parsers/directives/misc.py:
210 - Added ``start-line`` and ``end-line`` options to "include"
211 directive to select a range of lines.
212 - Hard tabs in literal inclusions are replaced by spaces. This is
213 configurable via the new ``tab-width`` option of the "include" directive
214 (a negative tab-width prevents tab expansion).
218 - Add ``get_stylesheet_list`` function.
219 - Apply [ 2834836 ] print info at halt
221 * docutils/transforms/universal.py:
223 - Raise default priority of StripClasses to exclude stripped classes from
226 * docutils/writers/html4css1/__init__.py:
228 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
229 separated list of stylesheets.
230 - Address [ 1938891 ] Inline literal text creates "pre" span only when
231 needed to prevent inter-word line wraps.
232 - Use `translate` method instead of repeated `replace` calls.
233 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
234 classes to allow CSS styling that does not interfere with other
235 table-using constructs (field lists, citations, ...).
237 * docutils/writers/newlatex2e/__init__.py:
239 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
241 * docutils/writers/latex2e/__init__.py (see also
242 `<docs/user/docutils-05-compat.sty.html>`__) :
244 - Add ``--embed-stylesheet`` option.
245 - Apply [ 1474017 ] image vertical alignment is reversed.
246 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
247 - Change: has_key for dictionaries (not Nodes) to in-operator.
248 - Merge adjacent citations into one latex cite command.
249 - Failsave implementation of custom roles. LaTeX compilation now ignores
250 unknown classes instead of aborting with an error.
251 - Support custom roles based on standard roles.
252 - LaTeX packages can be used as ``--stylesheet`` arguments without
253 restriction. (A style sheet is now referenced with the ``\usepackage``
254 command, if it ends with ``.sty`` or has no extension.)
255 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
256 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
257 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
258 2005-02-04 as a configurable length unit).
259 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
260 if font-encoding is set to ''. LaTeX defaults to OT1 then.
261 - Set sub- and superscript role argument in text mode not as math.
262 Use a custom role based on sub-/superscript if you want italic shape.
263 - Shorter preamble and less dependencies: Load packages and define macros
264 only if required in the document.
265 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
266 - New custom environments and commands with optional "classes" argument.
267 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
268 - Better conformance to Docutils specifications with ``--use-latex-toc``.
269 Support for LaTeX generated ToC also with unnumbered sections.
270 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
271 section numbering by LaTeX.
272 - Use default font in admonitions and sidebar.
273 - Align of image in a figure defaults to 'center'.
274 - Bugfix: Newlines around targets and references prevent run-together
276 - Fix internal hyperlinks.
277 - Use class defaults for page margins ('typearea' now optional).
278 - Float placement made configurable, default changed to "here definitely".
279 - Typeset generic topic as "quote block with title".
280 - Use template (file and configuration option).
281 - In the default template, load cmap.sty (fix text extraction in PDF) and
282 fixltx2e.sty (LaTeX patches, \textsubscript).
283 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
284 - Use `translate` instead of repeated `replace` calls for text encoding.
285 - Hyperlinked footnotes and support for symbol footnotes and
286 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
287 - Complete pairs of binary options
288 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
289 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
291 - font-encoding: "T1" (formerly implicitely set by 'ae').
292 - use-latex-toc: true (ToC with page numbers).
293 - use-latex-footnotes: true (no mixup with figures).
295 * docutils/writers/manpage.py
297 - Do not print version at document end, this is done by the viewer.
298 - Do not print date at document end, this is done by the viewer.
299 - Fix storage of docinfo fields for none standard fields.
301 * docutils/tools/rst2man.py
303 Release 0.5 (2008-06-25)
304 ========================
306 * docutils/languages/he.py: Added to project: Hebrew mappings by
309 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
310 mappings by Meir Kriheli.
312 * docutils/frontend.py:
314 - Configuration files are now assumed and required to be
316 - Paths of applied configuration files are now recorded in the
317 runtime setting ``_config_files`` (accessible via
318 ``--dump-settings``).
319 - Added ``--strip-elements-with-class`` and ``--strip-class``
320 options (``strip_elements_with_classes`` and ``strip_classes``
325 - Added code to determine the input encoding from data: encoding
326 declarations or the presence of byte order marks (UTF-8 & UTF-16).
327 - Added support for IronPython 1.0.
331 - Added ``document.__getstate__`` method, for pickling.
333 * docutils/parsers/rst/states.py:
335 - Allow ``+`` and ``:`` in reference names.
336 - Unquoted targets beginning with an underscore (``.. __target:
337 URI``) are no longer accepted.
338 - Added support for multiple attributions in a physical block quote
339 (indented text block), dividing it into multiple logical block
341 - Added support for unicode bullets in bullet lists: "•", "‣", and
343 - Added support for new object-oriented directive interface,
344 retaining compatibility to the old functional interface.
345 - Added support for throwing ``DirectiveError``'s from within
348 * docutils/parsers/rst/__init__.py:
350 - Added ``Directive`` base class.
351 - Added ``DirectiveError`` base class.
352 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
355 * docutils/parsers/directives/:
357 - Refactored all reStructuredText directives to use the new
358 object-oriented directive interface. Errors are now (mostly)
359 thrown using the new ``DirectiveError`` class.
361 * docutils/parsers/directives/misc.py:
363 - Added ``start-after`` and ``end-before`` options to ``include``
364 directive; thanks to Stefan Rank.
366 * docutils/transforms/universal.py:
368 - Added ``StripClassesAndElements`` transform to remove from the
369 document tree all elements with classes in
370 ``settings.strip_elements_with_classes`` and all "classes"
371 attribute values in ``self.document.settings.strip_classes``.
373 * docutils/transforms/writer_aux.py:
375 - Added ``Admonitions`` transform to transform specific admonitions
376 (like ``note``, ``warning``, etc.) into generic admonitions with a
379 * docutils/writers/html4css1/__init__.py:
381 - Moved template functionality from the PEP/HTML writer here.
382 - Expanded the fragments available in the ``parts`` attribute.
383 - Moved ``id`` attributes from titles to surrounding ``div``
385 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
386 universally supported now).
387 - ``template.txt`` is now opened in text mode instead of binary mode
388 (to ensure Windows compatibility).
389 - ``a`` elements now have an "internal" or "external" class,
390 depending on reference type.
392 * docutils/writers/html4css1/template.txt: Added to project.
394 * docutils/writers/pep_html/:
396 - Moved template functionality to the HTML writer.
398 * docutils/writers/s5_html/__init__.py:
400 - Added ``view_mode`` & ``hidden_controls`` settings
401 (``--view-mode`` & ``--hidden-controls/--visible-controls``
404 * docutils/writers/latex2e/__init__.py:
406 - Add ``--literal-block-env``
407 - Fix: escaping ``%`` in href urls.
408 - Move usepackage hyperref after stylesheet inclusion.
409 - Fix: scrartcl does not have chapter but scrreprt.
410 - Add newline after ``\end{verbatim}``.
411 - Merge smaller differences from latex2e_adaptive_preamble.
412 - Add ``use-part-section``.
413 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
414 - Using leavemode option_list no longer needs to check if parent
415 is a definition list.
416 - Append ``\leavemode`` to definition list terms.
417 - No longer write visit\_/depart_definition_list_item comments to
419 - Table column width with 3 decimal places.
420 - Add table stubs support (boldfont).
421 - Add assemble_parts to writer.
422 - Add simply support for nested tables.
423 - Fix verbatim in tables if use-verbatim-when-possible.
424 - Use section commands down to subparagraph.
425 - Put ensuremath around some latin1 chars.
426 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
427 - New option ``--use-bibtex=style,db1,db2``.
428 - New option ``--reference-label`` to allow usage of LaTeX ref for
429 labels in section references.
430 - Add a label after every section to support sectionnumbers as reference
432 - Fix: bug# 1605376 rst2latex: bad options group list
433 - Remove inactive code for use_optionlist_for_option_list.
434 - Remove latex comments from option_list output.
435 - Fix: bug# 1612270 double qoutes in italian literal.
436 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
437 - Add option --use-latex-abstract.
438 - Image width unit ``px`` is translated to ``pt``.
439 - Add image height support.
440 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
442 - Fix: Do not escape underscores in citation reference labels if
443 use-latex-citations is set.
444 - Use centering instead of center for figure contents, to avoid vertical
446 - Recognize table class: borderless, nolines, booktabs, standard.
447 - Fix: Renaming contents section does not work with latex writer; SF
449 - Applied patch for custom roles with classes from Edward Loper.
450 - Fixed bug that caused crashes with more than 256 lists.
452 * docutils/writers/pep_html/__init__.py:
454 - Changed to support new python.org website structure and
457 * docs/howto/security.txt: "Deploying Docutils Securely", added to
460 * tools/buildhtml.py:
462 -- Added ``ignore`` setting to exclude a list of shell patterns
463 (default: ``.svn:CVS``).
465 * tools/editors/emacs/rst.el:
467 - Changed license to "GPL".
468 - Added ``rst-straighten-decorations`` function.
469 - The ``compile`` module is now always loaded.
470 - Added ``rst-toggle-line-block`` function.
471 - Headings consisting only of non-ASCII characters are now
472 recognized by ``rst-toc`` and ``rst-adjust``.
473 - Added font-lock support for multi-line comments where the first
474 comment line is empty.
475 - Added ``(require 'font-lock)``.
479 - Provide descriptive error message if distutils is missing.
482 Release 0.4 (2006-01-09)
483 ========================
487 - Updated the project policies for trunk/branch development &
490 * docutils/__init__.py:
492 - Added ``__version_details__`` attribute to describe code source
493 (repository/snapshot/release).
494 - Replaced ``default_transforms`` attribute of TransformSpec with
495 ``get_transforms()`` method.
499 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
500 functions, for document tree extraction and reprocessing.
504 - Added ``DocTreeInput`` class, for reprocessing existing documents.
505 - Added support for non-Unicode (e.g. binary) writer output.
509 - Re-introduced ``Targetable.indirect_reference_name``, for
510 MoinMoin/reST compatibility (removed in r3124/r3129).
511 - Added ``serial_escape`` function; escapes string values that are
512 elements of a list, for serialization. Modified Docutils-XML
513 writing (``Element._dom_node``) and pseudo-XML writing
514 (``Element.starttag``) to use ``serial_escape``.
515 - Added ``Node.deepcopy()`` method.
516 - Removed the internal lists ``document.substitution_refs``,
517 ``document.anonymous_refs``, and ``document.anonymous_targets``.
518 - Added a "container" element.
519 - Fixed bug where values of list-valued attributes of elements
520 originating from custom interpreted text roles (i.e., with custom
521 classes) were being shared between element instances. Reported by
524 * docutils/statemachine.py:
526 - Added trailing whitespace stripping to ``string2lines()``.
527 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
528 Asian double-width character support.
532 - Added ``east_asian_column_width()`` for double-width character
535 * docutils/languages/ja.py: Added to project: Japanese mappings by
538 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
539 mappings by Panjunyong.
541 * docutils/parsers/null.py: Added to project; a do-nothing parser.
543 * docutils/parsers/rst/__init__.py:
545 - Added validator to tab_width setting, with test. Closes SF bug
546 #1212515, report from Wu Wei.
548 * docutils/parsers/rst/states.py:
550 - Fixed bug with escaped colons indicating a literal block.
551 - Fixed bug with enumerated lists (SF#1254145).
552 - Backslash-escaped colons inside of field names are now allowed.
553 - Targets (implicit and explicit), anonymous hyperlink references
554 and auto-numbered footnote references inside of substitution
555 definitions are now disallowed.
556 - Fixed bug: list items with blank first lines.
557 - Fixed bug: block quote attributions with indented second lines.
558 - Added East Asian double-width character support (Python 2.4 only).
560 * docutils/parsers/rst/tableparser.py:
562 - Added East Asian double-width character support (Python 2.4 only).
564 * docutils/parsers/rst/directives/body.py:
566 - Added the "container" directive.
568 * docutils/parsers/rst/directives/misc.py:
570 - Added the "default-role", "title", and "date" directives.
571 - Added standard data file syntax to the "include" directive.
572 - Added support for "class" directive content.
574 * docutils/parsers/rst/directives/images.py:
576 - Added ``indirect_reference_name`` support for images with a target
578 - Added support for image width and height units.
579 - Fixed bug with image "target" options.
581 * docutils/parsers/rst/directives/references.py:
583 - Added "class" attribute to "target-notes" directive, for
584 footnote_reference classes.
586 * docutils/parsers/rst/include/: Directory added to project; contains
587 standard data files for the "include" directive. Initial contents:
588 character entity substitution definition sets, and a set of
589 definitions for S5/HTML presentations.
591 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
592 mappings by David Goodger.
594 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
595 Simplified Chinese mappings by Panjunyong.
597 * docutils/readers/__init__.py:
599 - Added universal.Decorations and universal.ExposeInternals
600 transforms as default transforms for all readers.
601 - Added ``ReReader`` base class for readers that reread an existing
604 * docutils/readers/doctree.py: Added to project; a reader for existing
607 * docutils/transforms/frontmatter.py:
609 - Fixed the DocInfo transform to handle SVN-style expansion of the
611 - In ``DocInfo.extract_authors``, treat the contents of "authors"
614 * docutils/transforms/misc.py:
616 - Added misc.Transitions transform, extracted from
617 universal.FinalChecks.
619 * docutils/transforms/references.py:
621 - Added references.DanglingReferences transform, extracted from
622 universal.FinalChecks.
623 - Fixed bug with doubly-indirect substitutions.
624 - Added footnote_reference classes attribute to "TargetNotes".
625 - Fixed bug with circular substitution definitions that put Docutils
626 into an infinite loop.
628 * docutils/transforms/universal.py:
630 - Added universal.ExposeInternals transform, extracted from
631 universal.FinalChecks.
632 - Removed universal.FinalChecks transform (logic has been moved to
633 several new transforms).
634 - Fixed bug with the "expose_internals" setting and Text nodes
635 (exposed by the "rawsource" internal attribute).
636 - Added the universal.StripComments transform, implementation of the
637 "strip_comments" setting.
639 * docutils/transforms/writer_aux.py: Added to project; auxiliary
640 transforms for writers.
642 - Added ``Compound`` transform, which flattens compound paragraphs.
644 * docutils/writers/: Several writer modules (html4css1.py) were
645 converted into packages. Support modules and data files have been
646 moved into the packages. The stylesheets for the HTML writers are
647 now installed along with the code, the code knows where to find
648 them, and the default is to use them (actually, to embed them).
649 Some adjustments to configuration files may be necessary. The
650 easiest way to obtain the new default behavior is to remove all
651 settings whose name includes "stylesheet".
653 * docutils/writers/__init__.py:
655 - Added universal.Messages and universal.FilterMessages transforms
656 as default transforms for all writers.
657 - Added ``UnfilteredWriter`` base class for writers that pass the
658 document tree on unchanged.
660 * docutils/writers/docutils_xml.py:
662 - Made ``xmlcharrefreplace`` the default output encoding error
665 * docutils/writers/html4css1/:
667 - Added support for image width and height units.
668 - Made ``xmlcharrefreplace`` the default output encoding error
670 - Made ``--embed-stylesheet`` the default rather than
671 ``--link-stylesheet``.
672 - Moved "id" attribute from container (section etc.) to title's <a>
673 tag, to be on the same tag as "name".
674 (!!! To be reverted in Docutils 0.5.)
675 - Added vertical space between fields of field lists.
676 - Added ``--compact-field-lists`` option to remove vertical space in
678 - Made cloaking of email addresses with ``--cloak-email-addresses``
680 - Fixed support for centered images.
681 - Added support for class="compact" & class="open" lists.
683 * docutils/writers/latex2e/:
685 - Underscores in citekeys are no longer escaped.
687 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
688 mapping of Unicode characters to LaTeX equivalents.
690 * docutils/writers/s5_html/: Package added to project; writer for
693 * docs/dev/distributing.txt: Added to project; guide for distributors
694 (package maintainers).
696 * docs/dev/hacking.txt: Added to project; guide for developers.
698 * docs/ref/doctree.txt:
700 - Updated for plural attributes "classes", "ids", "names",
702 - Added the "container" element.
704 * docs/ref/docutils.dtd:
706 - Updated for plural attributes "classes", "ids", "names",
709 * docs/user/emacs.txt: Added to project; a document about Emacs
710 support for reStructuredText and Docutils.
712 * docs/user/links.txt: Added to project; lists of Docutils-related
715 * docs/user/mailing-lists.txt: Added to project; information about
716 Docutils-related mailing lists and how to access them.
718 * docs/user/slide-shows.txt: Added to project; example of and docs for
719 the S5/HTML writer (``rst2s5.py`` front end).
721 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
722 Files", added to project.
724 * test/coverage.sh: Added to project; test coverage script.
726 * test/DocutilsTestSupport.py:
728 - Added support for specifying runtime settings at the suite level.
730 * test/test_functional.py:
732 - Added the ``clear_output_directory`` function.
733 - Added support for ``_test_more`` functions in functional test
736 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
738 * tools/rstpep2html.py: Renamed from pep.py.
740 * tools/dev/create_unimap.py: Added to project; script to create the
741 docutils/writers/unimap_latex.py mapping file.
743 * tools/dev/profile_docutils.py: Added to project; profiler script.
745 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
747 * tools/editors/emacs/restructuredtext.el,
748 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
749 Removed from project; the functionality is now contained in rst.el.
751 * tools/editors/emacs/rst.el: Added to project. Added many features
752 and fixed many bugs. See docs/user/emacs.txt for details.
754 * tools/stylesheets: Removed from project. Stylesheets have been
755 renamed and moved into writer packages.
758 Release 0.3.9 (2005-05-26)
759 ==========================
763 - Eliminated and replaced all uses of the old string attributes
764 ``id``, ``name``, ``dupname`` and ``class`` with references to the
765 new list attributes ``ids``, ``names``, ``dupnames`` and
766 ``classes`` throughout the whole source tree.
770 - Enabled ``--dump-*`` options when ``--traceback`` specified,
771 allowing for easier debugging.
772 - In ``Publisher.publish()``, expanded the generic top-level
775 * docutils/examples.py:
777 - Added ``internals`` function for exploration.
781 - Fixed ``Input.decode`` method to apply heuristics only if no
782 encoding is explicitly given, and to provide better reporting of
784 - The ``Input.decode`` method now removes byte order marks (BOMs)
789 - ``image`` element class changed to subclass of Element, not
790 TextElement (it's an empty element, and cannot contain text).
791 - Added ``attr_defaults`` dictionary for default attribute values.
792 - Added empty list as default value for the following attributes:
793 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
794 - Added ``document.decoration`` attribute,
795 ``document.get_decoration`` method, and ``decoration.get_header``
796 & ``.get_footer`` methods.
797 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
802 - Removed ``docutils.utils.Reporter.categories``,
803 ``docutils.utils.ConditionSet``, and all references to them, to
804 simplify error reporting.
806 * docutils/languages/nl.py: Added to project; Dutch mappings by
809 * docutils/parsers/rst/__init__.py:
811 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
813 * docutils/parsers/rst/states.py:
815 - Added check for escaped at-mark to prevent email address recognition.
816 - Fixed option lists to allow spaces inside ``<angle-bracketed option
818 - Allowed whitespace in paths and URLs.
819 - Added auto-enumerated list items.
820 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
822 - Added support for table stub columns.
824 * docutils/parsers/rst/directives/__init__.py:
826 - Allowed whitespace in paths (``path`` function).
827 - Added ``uri`` directive option conversion function.
829 * docutils/parsers/rst/directives/body.py:
831 - Fixed illegal context bug with "topic" directive (allowed within
832 sidebars; not within body elements).
834 * docutils/parsers/rst/directives/images.py:
836 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
837 - Added support for the ``file_insertion_enabled`` setting in the
838 "figure" directive (disables "figwidth" option).
839 - "image" directive: added checks for valid values of "align" option,
840 depending on context. "figure" directive: added specialized
841 "align" option and attribute on "figure" element.
842 - Made ":figwidth: image" option of "figure" directive work again.
843 - Fixed bug with reference names containing uppercase letters
844 (e.g. ``Name_``) in "target" option of "image" directive.
846 * docutils/parsers/rst/directives/misc.py:
848 - Fixed "include" and "raw" directives to catch text decoding
850 - Allowed whitespace in "include" & "raw" directive paths.
851 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
852 settings in "include" & "raw" directives.
854 * docutils/parsers/rst/directives/parts.py:
856 - Added "header" & "footer" directives.
857 - Fixed illegal context bug with "contents" directive (topics
858 allowed within sidebars; not within body elements).
860 * docutils/parsers/rst/directives/tables.py:
862 - Added "list-table" directive.
863 - Caught empty CSV table bug.
864 - Added support for the ``file_insertion_enabled`` setting in the
865 "csv-table" directive.
866 - Added ``stub-columns`` option to "csv-table" and "list-table"
869 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
870 mappings by Martijn Pieters.
872 * docutils/readers/standalone.py:
874 - Added ``--section-subtitles`` and ``--no-section-subtitles``
875 options to activate or deactivate the SectSubTitle transform.
877 * docutils/transforms/frontmatter.py:
879 - Added SectSubTitle transform to promote titles of lone
880 subsections to subtitles.
882 * docutils/transforms/references.py:
884 - Fixed mislocated internal targets bug, by propagating internal
885 targets to the next node, making use of the newly added support
886 for multiple names and IDs.
887 - Fixed duplicate footnote label bug.
888 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
891 * docutils/writers/html4css1.py:
893 - Fixed unencoded stylesheet reference bug (characters like "&" in
894 stylesheet references).
895 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
897 - Added support for multiple IDs per node by creating empty ``span``
899 - Added the ``field_name_limit`` & ``option_limit`` settings &
901 - Added support for table stub columns.
902 - Added support for the ``align`` attribute on ``figure`` elements.
903 - Added the ``cloak_email_addresses`` setting & support.
904 - Added ``html_prolog``, ``html_head``, ``html_body``,
905 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
906 ``docutils.core.publish_parts``.
907 - Added support for section subtitles.
909 * docutils/writers/latex2e.py:
911 - Fixed tables starting with more than one multirow cell.
912 - Improved --use-latex-docinfo so that organization/contact/address
913 fields are lumped with the last author field and appear on the
915 - Made sure the titlepage is always shown with --use-latex-docinfo,
916 even if the document has no title.
917 - Made sure that latex doesn't fill in today's date if no date field
919 - Added support for section subtitles.
921 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
924 * docutils/writers/null.py: Added to project; a do-nothing Writer.
926 * docs/api/publisher.txt:
928 - Added "``publish_parts`` Details" section.
930 * docutils/dev/repository.txt: Added to project; information about the
931 Docutils Subversion repository.
933 * docs/ref/docutils.dtd:
935 - Added a ``stub`` attribute to the ``colspec`` element via the
936 ``tbl.colspec.att`` parameter entity.
937 - Allowed topic elements within sidebars
938 - Added an ``align`` attribute to the ``figure`` element.
940 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
944 Release 0.3.7 (2004-12-24)
945 ==========================
947 * docutils/frontend.py:
949 - Added options: --input-encoding-error-handler,
950 --record-dependencies, --leave-footnote-reference-space,
952 - Added command-line and config file support for "overrides" setting
957 - Added support for input encoding error handler.
961 - Added dispatch_visit and dispatch_departure methods to
962 NodeVisitor; useful as a hook for Visitors.
963 - Changed structure of ``line_block``; added ``line``.
964 - Added ``compound`` node class.
965 - Added a mechanism for Visitors to transitionally ignore new node
970 - Moved ``escape2null`` and ``unescape`` functions from
971 docutils/parsers/rst/states.py.
973 * docutils/parsers/rst/roles.py:
976 - Changed role function API: the "text" parameter now takes
977 null-escaped interpreted text content.
979 * docutils/parsers/rst/states.py:
981 - Fixed bug where a "role" directive in a nested parse would crash
982 the parser; the state machine's "language" attribute was not being
984 - Added support for line block syntax.
985 - Fixed directive parsing bug: argument-less directives didn't
986 notice that arguments were present.
987 - Removed error checking for transitions.
988 - Added support for multiple classifiers in definition list items.
989 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
990 - Changed role function API: the "text" parameter now takes
991 null-escaped interpreted text content.
992 - Empty sections and documents are allowed now.
994 * docutils/parsers/rst/directives/__init__.py:
996 - Added ``encoding`` directive option conversion function.
997 - Allow multiple class names in class_option conversion function.
999 * docutils/parsers/rst/directives/body.py:
1001 - Converted the line-block directive to use the new structure.
1002 - Extracted the old line-block functionality to the ``block``
1003 function (still used).
1004 - Added ``compound`` directive (thanks to Lea Wiemann).
1006 * docutils/parsers/rst/directives/misc.py:
1008 - Added "encoding" option to "include" and "raw" directives.
1009 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1010 - Allow multiple class names in the "class" directive.
1012 * docutils/parsers/rst/directives/parts.py:
1014 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1015 options. Thanks to Lele Gaifax.
1017 * docutils/parsers/rst/directives/tables.py:
1019 - Added "encoding" directive to "csv-table" directive.
1020 - Added workaround for lack of Unicode support in csv.py, for
1021 non-ASCII CSV input.
1023 * docutils/transforms/misc.py:
1025 - Fixed bug when multiple "class" directives are applied to a single
1027 - Enabled multiple format names for "raw" directive.
1029 * docutils/transforms/references.py:
1031 - Added support for trimming whitespace from beside substitution
1034 * docutils/transforms/universal.py:
1036 - FinalChecks now checks for illegal transitions and moves
1037 transitions between sections.
1039 * docutils/writers/html4css1.py:
1041 - HTMLTranslator.encode now converts U+00A0 to " ".
1042 - "stylesheet" and "stylesheet_path" settings are now mutually
1044 - Added support for the new line_block/line structure.
1045 - --footnote-references now overrides
1046 --trim-footnote-reference-space, if applicable.
1047 - Added support for ``compound`` elements.
1048 - Enabled multiple format names for "raw" directive.
1049 - ``<p>`` tags of a paragraph which is the only visible child of the
1050 document node are no longer stripped.
1051 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1052 new method ``should_be_compact_paragraph()``.
1053 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1055 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1056 the output if they have their ``class`` attribute set.
1057 - The whole document is now surrounded by a ``<div
1058 class="document">`` element.
1059 - Body-level images are now wrapped by their own ``<div>`` elements,
1060 with image classes copied to the wrapper, and for images which
1061 have the ``:align:`` option set, the surrounding ``<div>`` now
1062 receives a class attribute (like ``class="align-left"``).
1064 * docutils/writers/latex2e.py:
1066 - no newline after depart_term.
1067 - Added translations for some Unicode quotes.
1068 - Added option "font-encoding", made package AE the default.
1069 - "stylesheet" and "stylesheet_path" settings are now mutually
1071 - --footnote-references now overrides
1072 --trim-footnote-reference-space, if applicable.
1073 - The footnote label style now matches the footnote reference style
1074 ("brackets" or "superscript").
1075 - Added support for ``compound`` elements.
1076 - Enabled multiple format names for "raw" directive.
1078 * docs/ref/docutils.dtd:
1080 - Changed structure of the ``line_block`` element; added ``line``.
1081 - Added ``compound`` element.
1082 - Added "ltrim" and "rtrim" attributes to
1083 ``substitution_definition`` element.
1084 - Enabled multiple format names for ``raw`` element.
1085 - Enabled multiple classifiers in ``definition_list_item`` elements.
1087 * docs/ref/rst/directives.txt
1089 - Marked "line-block" as deprecated.
1090 - "Class" directive now allows multiple class names.
1091 - Added "Rationale for Class Attribute Value Conversion".
1092 - Added warning about "raw" overuse/abuse.
1094 * docs/ref/rst/restructuredtext.txt:
1096 - Added syntax for line blocks.
1097 - Definition list items may have multiple classifiers.
1099 * docs/ref/rst/roles.txt:
1103 * tools/stylesheets/default.css:
1105 - Added support for the new line_block structure.
1106 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1109 Release 0.3.5 (2004-07-29)
1110 ==========================
1114 * _`Documentation cleanup/reorganization`.
1116 - Created new subdirectories of docs/:
1118 * ``docs/user/``: introductory/tutorial material for end-users
1119 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1120 * ``docs/api/``: API reference material for client-developers
1121 * ``docs/ref/``: reference material for all groups
1122 * ``docs/howto/``: for component-developers and core-developers
1123 * ``docs/peps/``: Python Enhancement Proposals
1125 - Moved ``docs/*`` to ``docs/user/``.
1126 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1127 ``spec/`` to ``docs/dev``.
1128 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1129 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1130 - Moved ``alternatives.txt``, and ``problems.txt`` from
1131 ``spec/rst/`` to ``docs/dev/rst/``.
1132 - Moved ``reStructuredText.txt``, ``directives.txt``,
1133 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1134 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1135 ``roles.txt``, ``reStructuredText.txt`` to
1136 ``restructuredtext.txt``.
1137 - Moved ``spec/howto/`` to ``docs/howto``.
1139 In order to keep the CVS history of moved files, we supplied
1140 SourceForge with a `script for modifying the Docutils CVS
1143 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1145 After running the cleanup script:
1147 - Added ``docs/index.txt``.
1148 - Added a ``.htaccess`` file to the ``web`` module, containing
1149 redirects for all old paths to new paths. They'll preserve
1150 fragments (the "#name" part of a URL), and won't clutter up the
1151 file system, and will correct the URL in the user's browser.
1152 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1153 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1154 the "To Do" list itself in ``docs/dev/todo.txt``.
1155 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1156 section of ``docs/dev/todo.txt``.
1157 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1158 - Added "How To Report Bugs" to ``BUGS.txt``.
1159 - Went through all the sources and docs (including under web/) and
1160 updated links. Mostly done by Lea Wiemann; thanks Lea!
1161 (Still need to update links in the sandboxes.)
1165 * BUGS.txt: Added to project.
1167 * THANKS.txt: Added to project.
1169 * docutils/__init__.py:
1171 - 0.3.4: Post-release.
1175 - Added special error handling & advice for UnicodeEncodeError.
1176 - Refactored Publisher.publish (simplified exception handling &
1177 extracted debug dumps).
1178 - Renamed "enable_exit" parameter of convenience functions to
1179 "enable_exit_status".
1180 - Enabled traceback (exception propagation) by default in
1181 programmatic convenience functions.
1182 - Now publish_file and publish_cmdline convenience functions return
1183 the encoded string results in addition to their regular I/O.
1184 - Extracted common code from publish_file, publish_string, and
1185 publish_parts, into new publish_programmatically. Extracted
1186 settings code to ``Publisher.process_programmatic_settings``.
1187 - In Publisher.publish, disabled ``settings_overrides`` when
1188 ``settings`` is supplied; redundant.
1190 * docutils/frontend.py:
1192 - Added help text for "--output-encoding-error-handler" and
1193 "--error-encoding-error-handler".
1194 - Renamed "--exit" to "--exit-status".
1195 - Simplified default-setting code.
1197 * docutils/parsers/rst/__init__.py:
1199 - Added "--pep-base-url" and "--rfc-base-url" options.
1201 * docutils/parsers/rst/states.py:
1203 - Made URI recognition more aggressive and intelligent.
1205 * docutils/parsers/rst/directives/__init__.py:
1207 - Added several directive option conversion functions.
1209 * docutils/parsers/rst/directives/body.py:
1211 - Moved "table" directive to tables.py.
1213 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1216 * docutils/writers/latex2e.py:
1218 - Added "--table-style=(standard|booktabs|nolines)"
1219 - figures get "here" option (LaTeX per default puts them at bottom),
1220 and figure content is centered.
1221 - Rowspan support for tables.
1222 - Fix: admonition titles before first section.
1223 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1224 - Replave ``_`` in literal by an underlined blank, because it has the correct
1226 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1227 - A few unicode replacements, if output_encoding != utf
1228 - Add "--graphicx-option".
1229 - Indent literal-blocks.
1230 - Fix: omit ``\maketitle`` when there is no document title.
1232 * docs/index.txt: "Docutils Project Documentation Overview", added to
1235 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1236 Tool", added to project.
1238 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1240 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1242 * docs/dev/policies.txt: Added to project (extracted from
1243 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1245 * docs/dev/release.txt: Added to project (extracted from
1246 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1248 * docs/dev/testing.txt: Added to project.
1250 * docs/dev/website.txt: Added to project (extracted from
1251 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1253 * docs/ref/rst/directives.txt:
1255 - Added directives: "table", "csv-table".
1257 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1258 added to project. 1 page for syntax, and a 1 page reference for
1259 directives and roles. Source text to be used as-is; not meant to be
1262 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1263 with a change of title.
1265 * test/functional/, contents, and test/test_functional.py: Added to
1268 * tools/buildhtml.py: Fixed bug with config file handling.
1270 * tools/html.py: Removed from project (duplicate of rst2html.py).
1272 * tools/pep2html.py: Removed from project (duplicate of Python's
1273 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1274 Docutils-related PEPs in docs/peps/).
1276 * tools/rst2pseudoxml.py: Renamed from publish.py.
1278 * tools/rst2xml.py: Renamed from docutils-xml.py.
1280 * tools/test.txt: Removed from project; moved to
1281 docs/user/rst/demo.txt.
1283 * setup.py: Now also installs ``rst2latex.py``.
1286 Release 0.3.3 (2004-05-09)
1287 ==========================
1289 * docutils/__init__.py:
1291 - 0.3.1: Reorganized config file format (multiple sections); see
1293 - Added unknown_reference_resolvers attribute to TransformSpec.
1294 - 0.3.2: Interpreted text reorganization.
1299 - Catch system messages to stop tracebacks from parsing errors.
1300 - Catch exceptions during processing report & exit without
1301 tracebacks, except when "--traceback" used.
1302 - Reordered components for OptionParser; application comes last.
1303 - Added "config_section" parameter to several methods and functions,
1304 allowing front ends to easily specify their config file sections.
1305 - Added publish_parts convenience function to allow access to individual
1306 parts of a document.
1308 * docutils/examples.py: Added to project; practical examples of
1309 Docutils client code, to be used as-is or as models for variations.
1311 * docutils/frontend.py:
1313 - Added "--traceback" & "--no-traceback" options ("traceback"
1315 - Implemented support for config file reorganization:
1316 ``standard_config_files`` moved from ``ConfigParser`` to
1317 ``OptionParser``; added
1318 ``OptionParser.get_config_file_settings()`` and
1319 ``.get_standard_config_settings()``; support for old "[options]"
1320 section (with deprecation warning) and mapping from old to new
1322 - Reimplemented setting validation.
1323 - Enabled flexible boolean values: yes/no, true/false, on/off.
1324 - Added ``Values``, a subclass of ``optparse.Values``, with support
1325 for list setting attributes.
1326 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1327 thanks to Beni Cherniavsky.
1328 - Added "--no-section-numbering" option.
1332 - Catch IOErrors when opening source & destination files, report &
1333 exit without tracebacks. Added ``handle_io_errors`` parameter to
1334 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1336 * docutils/nodes.py:
1338 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1339 method definitions (via ``exec``) to dynamic assignments (via
1340 ``setattr``); thanks to Roman Suzi.
1341 - Encapsulated visitor dynamic assignments in a function; thanks to
1343 - Added indirect_reference_name attribute to the Targetable
1344 class. This attribute holds the whitespace_normalized_name
1345 (contains mixed case) of a target.
1347 * docutils/statemachine.py:
1349 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1350 - Added ``StringList.get_2D_block``.
1352 * docutils/utils.py:
1354 - Added "level" attribute to SystemMessage exceptions.
1356 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1359 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1362 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1363 Marcelo Huerta San Martin.
1365 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1366 mappings by Lalo Martins.
1368 * docutils/languages/ru.py: Added to project; Russian mappings by
1371 * docutils/parsers/rst/roles.py: Added to project. Contains
1372 interpreted text role functions, a registry for interpreted text
1373 roles, and an API for adding to and retrieving from the registry.
1374 Contributed by Edward Loper.
1376 * docutils/parsers/rst/states.py:
1378 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1379 - Allowed true em-dash character and "---" as block quote
1381 - Added support for <angle-bracketed> complex option arguments
1383 - Fixed handling of backslashes in substitution definitions.
1384 - Fixed off-by-1 error with extra whitespace after substitution
1385 definition directive.
1386 - Added inline markup parsing to field lists' field names.
1387 - Added support for quoted (and unindented) literal blocks.
1388 Driven in part by a bribe from Frank Siebenlist (thanks!).
1389 - Parser now handles escapes in URIs correctly.
1390 - Made embedded-URIs' reference text omittable. Idea from Beni
1392 - Refactored explicit target processing code.
1393 - Added name attribute to references containing the reference name only
1394 through whitespace_normalize_name (no case changes).
1395 - parse_target no longer returns the refname after going through
1396 normalize_name. This is now handled in make_target.
1397 - Fixed bug relating to role-less interpreted text in non-English
1399 - Reorganized interpreted text processing; moved code into the new
1400 roles.py module. Contributed by Edward Loper.
1401 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1402 ``parse_directive_block``.
1404 * docutils/parsers/rst/tableparser.py:
1406 - Reworked for ``StringList``, to support "include" directives in
1409 * docutils/parsers/rst/directives/__init__.py:
1411 - Renamed ``unchanged()`` directive option conversion function to
1412 ``unchanged_required``, and added a new ``unchanged``.
1413 - Catch unicode value too high error; fixes bug 781766.
1414 - Beefed up directive error reporting.
1416 * docutils/parsers/rst/directives/body.py:
1418 - Added basic "table" directive.
1420 * docutils/parsers/rst/directives/images.py:
1422 - Added "target" option to "image" directive.
1423 - Added name attribute to references containing the reference name only
1424 through whitespace_normalize_name (no case changes).
1426 * docutils/parsers/rst/directives/misc.py:
1428 - Isolated the import of the ``urllib2`` module; was causing
1429 problems on SourceForge (``libssl.so.2`` unavailable?).
1430 - Added the "role" directive for declaring custom interpreted text
1433 * docutils/parsers/rst/directives/parts.py:
1435 - The "contents" directive does more work up-front, creating the
1436 "topic" and "title", and leaving the "pending" node for the
1437 transform. Allows earlier reference resolution; fixes subtle bug.
1439 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1440 mappings by Jannie Hofmeyr.
1442 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1443 mappings by Marek Blaha.
1445 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1446 mappings by Marcelo Huerta San Martin.
1448 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1449 Portuguese mappings by Lalo Martins.
1451 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1452 mappings by Roman Suzi.
1454 * docutils/transforms/parts.py:
1456 - The "contents" directive does more work up-front, creating the
1457 "topic" and "title", and leaving the "pending" node for the
1458 transform. Allows earlier reference resolution; fixes subtle bug.
1459 - Added support for disabling of section numbering.
1461 * docutils/transforms/references.py:
1463 - Verifying that external targets are truly targets and not indirect
1464 references. This is because we are now adding a "name" attribute to
1465 references in addition to targets. Note sure if this is correct!
1466 - Added code to hook into the unknown_reference_resolvers list for a
1467 transformer in resolve_indirect_target. This allows the
1468 unknown_reference_resolvers to keep around indirect targets which
1469 docutils doesn't know about.
1470 - Added specific error message for duplicate targets.
1472 * docutils/transforms/universal.py:
1474 - Added FilterMessages transform (removes system messages below the
1475 verbosity threshold).
1476 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1477 to FinalCheckVisitor for application-specific handling of
1478 unresolvable references.
1479 - Added specific error message for duplicate targets.
1481 * docutils/writers/__init__.py:
1483 - Added assemble_parts method to the Writer class to allow for
1484 access to a documents individual parts.
1485 - Documented & set default for ``Writer.output`` attribute.
1487 * docutils/writers/html4css1.py:
1489 - Fixed unicode handling of attribute values (bug 760673).
1490 - Prevent duplication of "class" attribute values (bug report from
1492 - Improved table grid/border handling (prompted by report from Bob
1494 - Added support for table titles.
1495 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1497 - Added functionality to keep track of individual parts of a document
1498 and store them in a dictionary as the "parts" attribute of the writer.
1499 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1500 - Added proper support for the "scale" attribute of the "image"
1501 element. Contributed by Brent Cook.
1502 - Added ``--initial-header-level`` option.
1503 - Fixed bug: the body_pre_docinfo segment depended on there being a
1504 docinfo; if no docinfo, the document title was incorporated into
1505 the body segment. Adversely affected the publish_parts interface.
1507 * docutils/writers/latex2e.py:
1509 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1510 about a missing file.
1511 - Added options and support: ``--compound-enumerators``,
1512 ``--section-prefix-for-enumerators``, and
1513 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1515 - Added option ``--use-verbatim-when-possible``, to avoid
1516 problematic characters (eg, '~' in italian) in literal blocks.
1517 - It's now possible to use four section levels in the `book` and
1518 `report` LaTeX classes. The default `article` class still has
1521 * docs/config.txt: "Docutils Configuration Files", added to project.
1522 Moved config file entry descriptions from tools.txt.
1526 - Moved config file entry descriptions to config.txt.
1528 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1531 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1532 Text Roles", added to project.
1534 * spec/rst/reStructuredText.txt:
1536 - Added description of support for <angle-bracketed> complex option
1537 arguments to option lists.
1538 - Added subsections for indented and quoted literal blocks.
1540 * test: Continually adding & updating tests.
1542 - Added test/test_settings.py & test/data/config_*.txt support
1544 - Added test/test_writers/test_htmlfragment.py.
1546 * test/DocutilsTestSupport.py:
1548 - Refactored LaTeX publisher test suite/case class names to make
1549 testing other writers easier.
1550 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1551 to test the processing of HTML fragments which use the new
1552 publish_parts convenience function.
1554 * tools/buildhtml.py:
1556 - Added support for the "--prune" option.
1557 - Removed dependency on pep2html.py; plaintext PEPs no longer
1560 * tools/docutils.conf:
1562 - Updated for configuration file reorganization.
1564 * tools/rst2html.py:
1566 - copied from tools/html.py
1570 - added a 'scripts' section to configuration
1571 - added 'tools/rst2html.py' to the scripts section
1574 Release 0.3 (2003-06-24)
1575 ========================
1579 * Renamed "attribute" to "option" for directives/extensions.
1581 * Renamed transform method "transform" to "apply".
1583 * Renamed "options" to "settings" for runtime settings (as set by
1584 command-line options). Sometimes "option" (singular) became
1585 "settings" (plural). Some variations below:
1587 - document.options -> document.settings (stored in other objects as
1589 - option_spec -> settings_spec (not directives though)
1590 - OptionSpec -> SettingsSpec
1591 - cmdline_options -> settings_spec
1592 - relative_path_options -> relative_path_settings
1593 - option_default_overrides -> settings_default_overrides
1594 - Publisher.set_options -> Publisher.get_settings
1598 * COPYING.txt: Added "Public Domain Dedication".
1600 * FAQ.txt: Frequently asked questions, added to project.
1604 - Updated with PyPI Trove classifiers.
1605 - Conditional installation of third-party modules.
1607 * docutils/__init__.py:
1609 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1610 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1611 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1612 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1613 option and its effect on the PEP template & writer.
1614 - Bumped version to 0.2.4 due to changes to the PEP template &
1616 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1617 - Added ``TransformSpec`` class for new transform system.
1618 - Bumped version to 0.2.6 for API changes (renaming).
1619 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1620 convenience functions.
1621 - Added ``Component.component_type`` attribute.
1622 - Bumped version to 0.2.8 because of the internal parser switch from
1623 plain lists to the docutils.statemachine.StringList objects.
1624 - Bumped version to 0.2.9 because of the frontend.py API changes.
1625 - Bumped version to 0.2.10 due to changes to the project layout
1626 (third-party modules removed from the "docutils" package), and
1627 signature changes in ``io.Input``/``io.Output``.
1628 - Changed version to 0.3.0 for release.
1632 - Made ``publish()`` a bit more convenient.
1633 - Generalized ``Publisher.set_io``.
1634 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1635 parameters; improved its docstring.
1636 - Added ``publish_file()`` and ``publish_string()``.
1637 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1639 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1640 "--dump-transforms" hidden options.
1641 - Added ``Publisher.apply_transforms()`` method.
1642 - Added ``Publisher.set_components()`` method; support for
1643 ``publish_*()`` conveninece functions.
1644 - Moved config file processing to docutils/frontend.py.
1645 - Added support for exit status ("exit_level" setting &
1646 ``enable_exit`` parameter for Publisher.publish() and convenience
1649 * docutils/frontend.py:
1651 - Check for & exit on identical source & destination paths.
1652 - Fixed bug with absolute paths & "--config".
1653 - Set non-command-line defaults in ``OptionParser.__init__()``:
1654 ``_source`` & ``_destination``.
1655 - Distributed ``relative_path_settings`` to components; updated
1656 ``OptionParser.populate_from_components()`` to combine it all.
1657 - Require list of keys in ``make_paths_absolute`` (was implicit in
1658 global ``relative_path_settings``).
1659 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1660 "--dump-settings", and "--dump-transforms" hidden options.
1661 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1662 code, replaced with correct code.
1663 - Added validation functionality for config files.
1664 - Added "--error-encoding" option/setting, "_disable_config"
1666 - Added encoding validation; updated "--input-encoding" and
1667 "--output-encoding"; added "--error-encoding-error-handler" and
1668 "--output-encoding-error-handler".
1669 - Moved config file processing from docutils/core.py.
1670 - Updated ``OptionParser.populate_from_components`` to handle new
1671 ``SettingsSpec.settings_defaults`` dict.
1672 - Added support for "-" => stdin/stdout.
1673 - Added "exit_level" setting ("--exit" option).
1677 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1678 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1679 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1680 - ``FileOutput.write()`` now returns the encoded output string.
1681 - Try to get path/stream name automatically in ``FileInput`` &
1683 - Added defaults for source & destination paths.
1684 - Allow for Unicode I/O with an explicit "unicode" encoding.
1685 - Added ``Output.encode()``.
1686 - Removed dependency on runtime settings; pass encoding directly.
1687 - Recognize Unicode strings in ``Input.decode()``.
1688 - Added support for output encoding error handlers.
1690 * docutils/nodes.py:
1692 - Added "Invisible" element category class.
1693 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1694 modification during a traversal.
1695 - Added element classes: ``line_block``, ``generated``, ``address``,
1696 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1697 ``superscript``, ``subscript``, ``inline``
1698 - Added support for lists of nodes to ``Element.insert()``.
1699 - Fixed parent linking in ``Element.replace()``.
1700 - Added new abstract superclass ``FixedTextElement``; adds
1701 "xml:space" attribute.
1702 - Added support for "line" attribute of ``system_message`` nodes.
1703 - Added support for the observer pattern from ``utils.Reporter``.
1704 Added ``parse_messages`` and ``transform_messages`` attributes to
1705 ``document``, removed ``messages``. Added ``note_parse_message``
1706 and ``note_transform_message`` methods.
1707 - Added support for improved diagnostics:
1709 - Added "document", "source", and "line" internal attributes to
1710 ``Node``, set by ``Node.setup_child()``.
1711 - Converted variations on ``node.parent = self`` to
1712 ``self.setup_child(node)``.
1713 - Added ``document.current_source`` & ``.current_line``
1714 attributes, and ``.note_source`` observer method.
1715 - Changed "system_message" output to GNU-Tools format.
1717 - Added a "rawsource" attribute to the ``Text`` class, for text
1718 before backslash-escape resolution.
1719 - Support for new transform system.
1720 - Reworked ``pending`` element.
1721 - Fixed XML DOM bug (SF #660611).
1722 - Removed the ``interpeted`` element class and added
1723 ``title_reference``, ``abbreviation``, ``acronym``.
1724 - Made substitutions case-sensitive-but-forgiving; moved some code
1726 - Fixed Unicode bug on element attributes (report: William Dode).
1728 * docutils/optik.py: Removed from project; replaced with
1729 extras/optparse.py and extras/textwrap.py. These will be installed
1730 only if they're not already present in the Python installation.
1732 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1733 only if it's not already present in the Python installation.
1735 * docutils/statemachine.py:
1737 - Factored out ``State.add_initial_transitions()`` so it can be
1739 - Converted whitespace-specific "blank" and "indent" transitions
1740 from special-case code to ordinary transitions: removed
1741 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1742 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1743 ``ws_initial_transitions`` attributes.
1744 - Removed ``State.match_transition()`` after merging it into
1746 - Added ``StateCorrection`` exception.
1747 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1748 (moved ``TransitionCorrection`` support there too.)
1749 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1750 ``EOFError`` instead of ``IndexError``.
1751 - Added ``State.no_match`` method.
1752 - Added support for the Observer pattern, triggered by input line
1754 - Added ``strip_top`` parameter to
1755 ``StateMachineWS.get_first_known_indented``.
1756 - Made ``context`` a parameter to ``StateMachine.run()``.
1757 - Added ``ViewList`` & ``StringList`` classes;
1758 ``extract_indented()`` becomes ``StringList.get_indented()``.
1759 - Added ``StateMachine.insert_input()``.
1760 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1761 thanks to) Fred Drake.
1763 * docutils/utils.py:
1765 - Added a ``source`` attribute to Reporter instances and
1766 ``system_message`` elements.
1767 - Added an observer pattern to ``utils.Reporter`` to keep track of
1769 - Fixed bugs in ``relative_path()``.
1770 - Added support for improved diagnostics.
1771 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1772 - Added support for encoding Reporter stderr output, and encoding
1774 - Reporter keeps track of the highest level system message yet
1777 * docutils/languages: Fixed bibliographic field language lookups.
1779 * docutils/languages/es.py: Added to project; Spanish mappings by
1780 Marcelo Huerta San Martin.
1782 * docutils/languages/fr.py: Added to project; French mappings by
1785 * docutils/languages/it.py: Added to project; Italian mappings by
1788 * docutils/languages/sk.py: Added to project; Slovak mappings by
1791 * docutils/parser/__init__.py:
1793 - Added ``Parser.finish_parse()`` method.
1795 * docutils/parser/rst/__init__.py:
1797 - Added options: "--pep-references", "--rfc-references",
1798 "--tab-width", "--trim-footnote-reference-space".
1800 * docutils/parsers/rst/states.py:
1802 - Changed "title under/overline too short" system messages from INFO
1803 to WARNING, and fixed its insertion location.
1804 - Fixed enumerated list item parsing to allow paragraphs & section
1805 titles to begin with enumerators.
1806 - Converted system messages to use the new "line" attribute.
1807 - Fixed a substitution reference edge case.
1808 - Added support for "--pep-references" and "--rfc-references"
1809 options; reworked ``Inliner`` code to make customization easier.
1810 - Removed field argument parsing.
1811 - Added support for short section title over/underlines.
1812 - Fixed "simple reference name" regexp to ignore text like
1813 "object.__method__"; not an anonymous reference.
1814 - Added support for improved diagnostics.
1815 - Reworked directive API, based on Dethe Elza's contribution. Added
1816 ``Body.parse_directive()``, ``.parse_directive_options()``,
1817 ``.parse_directive_arguments()`` methods.
1818 - Added ``ExtensionOptions`` class, to parse directive options
1819 without parsing field bodies. Factored
1820 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1821 ``ExtensionOptions``.
1822 - Improved definition list term/classifier parsing.
1823 - Added warnings for unknown directives.
1824 - Renamed ``Stuff`` to ``Struct``.
1825 - Now flagged as errors: transitions at the beginning or end of
1826 sections, empty sections (except title), and empty documents.
1827 - Updated for ``statemachine.StringList``.
1828 - Enabled recognition of schemeless email addresses in targets.
1829 - Added support for embedded URIs in hyperlink references.
1830 - Added backslash-escapes to inline markup end-string suffix.
1831 - Added support for correct interpreted text processing.
1832 - Fixed nested title parsing (topic, sidebar directives).
1833 - Added special processing of backslash-escaped whitespace (idea
1834 from David Abrahams).
1835 - Made substitutions case-sensitive-but-forgiving; moved some code
1836 to ``docutils.nodes``.
1837 - Added support for block quote attributions.
1838 - Added a kludge to work-around a conflict between the bubble-up
1839 parser strategy and short titles (<= 3 char-long over- &
1840 underlines). Fixes SF bug #738803 "infinite loop with multiple
1841 titles" submitted by Jason Diamond.
1842 - Added explicit interpreted text roles for standard inline markup:
1843 "emphasis", "strong", "literal".
1844 - Implemented "superscript" and "subscript" interpreted text roles.
1845 - Added initial support for "abbreviation" and "acronym" roles;
1847 - Added support for "--trim-footnote-reference-space" option.
1848 - Optional space before colons in directives & hyperlink targets.
1850 * docutils/parsers/rst/tableparser.py:
1852 - Fixed a bug that was producing unwanted empty rows in "simple"
1854 - Detect bad column spans in "simple" tables.
1856 * docutils/parsers/rst/directives: Updated all directive functions to
1859 * docutils/parsers/rst/directives/__init__.py:
1861 - Added ``flag()``, ``unchanged()``, ``path()``,
1862 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1863 directive option helper functions.
1864 - Added warnings for unknown directives.
1865 - Return ``None`` for missing directives.
1866 - Added ``register_directive()``, thanks to William Dode and Paul
1869 * docutils/parsers/rst/directives/admonitions.py:
1871 - Added "admonition" directive.
1873 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1874 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1875 "parsed-literal", "rubric", "epigraph", "highlights" and
1876 "pull-quote" directives.
1878 * docutils/parsers/rst/directives/images.py:
1880 - Added an "align" attribute to the "image" & "figure" directives
1881 (by Adam Chodorowski).
1882 - Added "class" option to "image", and "figclass" to "figure".
1884 * docutils/parsers/rst/directives/misc.py:
1886 - Added "include", "raw", and "replace" directives, courtesy of
1888 - Added "unicode" and "class" directives.
1890 * docutils/parsers/rst/directives/parts.py:
1892 - Added the "sectnum" directive; by Dmitry Jemerov.
1893 - Added "class" option to "contents" directive.
1895 * docutils/parsers/rst/directives/references.py: Added to project.
1896 Contains the "target-notes" directive.
1898 * docutils/parsers/rst/languages/__init__.py:
1900 - Return ``None`` from get_language() for missing language modules.
1902 * docutils/parsers/rst/languages/de.py: Added to project; German
1903 mappings by Engelbert Gruber.
1905 * docutils/parsers/rst/languages/en.py:
1907 - Added interpreted text roles mapping.
1909 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1910 mappings by Marcelo Huerta San Martin.
1912 * docutils/parsers/rst/languages/fr.py: Added to project; French
1913 mappings by William Dode.
1915 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1916 mappings by Nicola Larosa.
1918 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1919 mappings by Miroslav Vasko.
1921 * docutils/readers/__init__.py:
1923 - Added support for the observer pattern from ``utils.Reporter``, in
1924 ``Reader.parse`` and ``Reader.transform``.
1925 - Removed ``Reader.transform()`` method.
1926 - Added default parameter values to ``Reader.__init__()`` to make
1927 instantiation easier.
1928 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1930 * docutils/readers/pep.py:
1932 - Added the ``peps.TargetNotes`` transform to the Reader.
1933 - Removed PEP & RFC reference detection code; moved to
1934 parsers/rst/states.py as options (enabled here by default).
1935 - Added support for pre-acceptance PEPs (no PEP number yet).
1936 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1939 * docutils/readers/python: Python Source Reader subpackage added to
1940 project, including preliminary versions of:
1943 - moduleparser.py: Parser for Python modules.
1945 * docutils/transforms/__init__.py:
1947 - Added ``Transformer`` class and completed transform reform.
1948 - Added unknown_reference_resolvers list for each transformer. This list holds
1949 the list of functions provided by each component of the transformer that
1950 help resolve references.
1952 * docutils/transforms/frontmatter.py:
1954 - Improved support for generic fields.
1955 - Fixed bibliographic field language lookups.
1957 * docutils/transforms/misc.py: Added to project. Miscellaneous
1960 * docutils/transforms/parts.py:
1962 - Moved the "id" attribute from TOC list items to the references
1963 (``Contents.build_contents()``).
1964 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1965 - Added "class" attribute support to ``Contents``.
1967 * docutils/transforms/peps.py:
1969 - Added ``mask_email()`` function, updating to pep2html.py's
1971 - Linked "Content-Type: text/x-rst" to PEP 12.
1972 - Added the ``TargetNotes`` PEP-specific transform.
1973 - Added ``TargetNotes.cleanup_callback``.
1974 - Added title check to ``Headers``.
1976 * docutils/transforms/references.py:
1978 - Added the ``TargetNotes`` generic transform.
1979 - Split ``Hyperlinks`` into multiple transforms.
1980 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1981 - Added check for circular indirect references.
1982 - Made substitutions case-sensitive-but-forgiving.
1984 * docutils/transforms/universal.py:
1986 - Added support for the "--expose-internal-attributes" option.
1987 - Removed ``Pending`` transform classes & data.
1989 * docutils/writers/__init__.py:
1991 - Removed ``Writer.transform()`` method.
1993 * docutils/writers/docutils-xml.py:
1995 - Added XML and doctype declarations.
1996 - Added "--no-doctype" and "--no-xml-declaration" options.
1998 * docutils/writers/html4css1.py:
2000 - "name" attributes only on these tags: a, applet, form, frame,
2002 - Added "name" attribute to <a> in section titles for Netscape 4
2003 support (bug report: Pearu Peterson).
2004 - Fixed targets (names) on footnote, citation, topic title,
2005 problematic, and system_message nodes (for Netscape 4).
2006 - Changed field names from "<td>" to "<th>".
2007 - Added "@" to "@" encoding to thwart address harvesters.
2008 - Improved the vertical whitespace optimization; ignore "invisible"
2009 nodes (targets, comments, etc.).
2010 - Improved inline literals with ``<span class="pre">`` around chunks
2011 of text and `` `` for runs of spaces.
2012 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2013 ``self.docinfo`` segments.
2014 - Added support for "line_block", "address" elements.
2015 - Improved backlinks (footnotes & system_messages).
2016 - Improved system_message output.
2017 - Redefined "--stylesheet" as containing an invariant URL, used
2018 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2020 - Added "--footnote-references" option (superscript or brackets).
2021 - Added "--compact-lists" and "--no-compact-lists" options.
2022 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2023 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2024 - Improved field list rendering.
2025 - Added Docutils version to "generator" meta tag.
2026 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2027 - Improved layout of <pre> HTML source.
2028 - Fixed attribute typo on <colspec>.
2029 - Refined XML prologue.
2030 - Support for no stylesheet.
2031 - Removed "interpreted" element support.
2032 - Added support for "title_reference", "sidebar", "attribution",
2033 "rubric", and generic "admonition" elements.
2034 - Added "--attribution" option.
2035 - Added support for "inline", "subscript", "superscript" elements.
2036 - Added initial support for "abbreviation" and "acronym";
2039 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2043 - Double quotes in literal blocks (special treatment for de/ngerman).
2044 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2045 - Added "--attribution" option.
2046 - Right align attributions.
2048 * docutils/writers/pep_html.py:
2050 - Parameterized output encoding in PEP template.
2051 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2052 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2053 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2055 - Added an override on the "--footnote-references" option.
2056 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2057 - Added Docutils version to "generator" meta tag.
2058 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2062 - Added a "silent" setting for ``buildhtml.py``.
2063 - Added a "Getting Help" section.
2064 - Rearranged the structure.
2065 - Kept up to date, with new settings, command-line options etc.
2066 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2067 - Converted settings table into a definition list.
2069 * docs/rst/quickstart.txt:
2071 - Added a table of contents.
2072 - Added feedback information.
2073 - Added mention of minimum section title underline lengths.
2074 - Removed the 4-character minimum for section title underlines.
2076 * docs/rst/quickref.html:
2078 - Added a "Getting Help" section.
2079 - Added a style to make section title backlinks more subtle.
2080 - Added mention of minimum section title underline lengths.
2081 - Removed the 4-character minimum for section title underlines.
2083 * extras: Directory added to project; contains third-party modules
2084 that Docutils depends on (optparse, textwrap, roman). These are
2085 only installed if they're not already present.
2087 * licenses: Directory added to project; contains copies of license
2088 files for non-public-domain files.
2092 - Changed the focus. It's about DTD elements: structural
2093 relationships, semantics, and external (public) attributes. Not
2094 about the element class library.
2095 - Moved some implementation-specific stuff into ``docutils.nodes``
2097 - Wrote descriptions of all common attributes and parameter
2098 entities. Filled in introductory material.
2099 - Working through the element descriptions: 55 down, 37 to go.
2100 - Removed "Representation of Horizontal Rules" to
2101 spec/rst/alternatives.txt.
2103 * spec/docutils.dtd:
2105 - Added "generated" inline element.
2106 - Added "line_block" body element.
2107 - Added "auto" attribute to "title".
2108 - Changed content models of "literal_block" and "doctest_block" to
2110 - Added ``%number;`` attribute type parameter entity.
2111 - Changed ``%structural.elements;`` to ``%section.elements``.
2112 - Updated attribute types; made more specific.
2113 - Added "address" bibliographic element.
2114 - Added "line" attribute to ``system_message`` element.
2115 - Removed "field_argument" element; "field_name" may contain
2116 multiple words and whitespace.
2117 - Changed public identifier to docutils.sf.net.
2118 - Removed "interpreted" element; added "title_reference",
2119 "abbreviation", "acronym".
2120 - Removed "refuri" attribute from "footnote_reference" and
2121 "citation_reference".
2122 - Added "sidebar", "rubric", "attribution", "admonition",
2123 "superscript", "subscript", and "inline" elements.
2125 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2127 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2129 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2131 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2134 * spec/transforms.txt: Added to project.
2136 * spec/howto: Added subdirectory, for developer how-to docs.
2138 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2139 Elza, edited & extended by David Goodger.
2141 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2144 * spec/rst/alternatives.txt:
2146 - Added "Doctree Representation of Transitions" from
2148 - Updated "Inline External Targets" & closed the debate.
2149 - Added ideas for interpreted text syntax extensions.
2150 - Added "Nested Inline Markup" section.
2152 * spec/rst/directives.txt:
2154 - Added directives: "topic", "sectnum", "target-notes",
2155 "line-block", "parsed-literal", "include", "replace", "sidebar",
2156 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2158 - Formalized descriptions of directive details.
2159 - Added an "align" attribute to the "image" & "figure" directives
2160 (by Adam Chodorowski).
2161 - Added "class" options to "topic", "sidebar", "line-block",
2162 "parsed-literal", "contents", and "image"; and "figclass" to
2165 * spec/rst/interpreted.txt: Added to project. Descriptions of
2166 interpreted text roles.
2168 * spec/rst/introduction.txt:
2170 - Added pointers to material for new users.
2172 * spec/rst/reStructuredText.txt:
2174 - Disambiguated comments (just add a newline after the "::").
2175 - Updated enumerated list description; added a discussion of the
2176 second-line validity checking.
2177 - Updated directive description.
2178 - Added a note redirecting newbies to the user docs.
2179 - Expanded description of inline markup start-strings in non-markup
2181 - Removed field arguments and made field lists a generic construct.
2182 - Removed the 4-character minimum for section title underlines.
2183 - Clarified term/classifier delimiter & inline markup ambiguity
2185 - Added "Embedded URIs".
2186 - Updated "Interpreted Text" section.
2187 - Added "Character-Level Inline Markup" section.
2189 * test: Continually adding & updating tests.
2191 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2192 - Moved test/test_pep/ to test/test_readers/test_pep/.
2193 - Added test/test_readers/test_python/.
2194 - Added test/test_writers/ (Engelbert Gruber).
2198 - Made the ``locale.setlocale()`` calls in front ends
2201 * tools/buildhtml.py:
2203 - Added "--silent" option.
2204 - Fixed bug with absolute paths & "--config".
2205 - Updated for new I/O classes.
2206 - Added some exception handling.
2207 - Separated publishers' setting defaults; prevents interference.
2208 - Updated for new ``publish_file()`` convenience function.
2210 * tools/pep-html-template:
2212 - Allow for "--embed-stylesheet".
2213 - Added Docutils version to "generator" meta tag.
2214 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2215 - Conform to XHTML spec.
2217 * tools/pep2html.py:
2219 - Made ``argv`` a parameter to ``main()``.
2220 - Added support for "Content-Type:" header & arbitrary PEP formats.
2221 - Linked "Content-Type: text/plain" to PEP 9.
2222 - Files skipped (due to an error) are not pushed onto the server.
2223 - Updated for new I/O classes.
2224 - Added ``check_requirements()`` & ``pep_type_error()``.
2225 - Added some exception handling.
2226 - Updated for new ``publish_string()`` convenience function.
2227 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2229 * tools/quicktest.py:
2231 - Added "-V"/"--version" option.
2233 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2235 * tools/unicode2rstsubs.py: Added to project. Produces character
2236 entity files (reSructuredText substitutions) from the MathML master
2239 * tools/editors: Support code for editors, added to project. Contains
2240 ``emacs/restructuredtext.el``.
2242 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2244 - Added style for chunks of inline literals.
2245 - Removed margin for first child of table cells.
2246 - Right-aligned field list names.
2247 - Support for auto-numbered section titles in TOCs.
2248 - Increased the size of inline literals (<tt>) in titles.
2249 - Restored the light gray background for inline literals.
2250 - Added support for "line_block" elements.
2251 - Added style for "address" elements.
2252 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2253 - Improved field list rendering.
2254 - Vertical whitespace improvements.
2255 - Removed "a.target" style.
2257 * tools/stylesheets/pep.css:
2259 - Fixed nested section margins.
2260 - Other changes parallel those of ``../default.css``.
2263 Release 0.2 (2002-07-31)
2264 ========================
2268 - The word "component" was being used ambiguously. From now on,
2269 "component" will be used to mean "Docutils component", as in Reader,
2270 Writer, Parser, or Transform. Portions of documents (Table of
2271 Contents, sections, etc.) will be called "document parts".
2272 - Did a grand renaming: a lot of ``verylongnames`` became
2273 ``very_long_names``.
2274 - Cleaned up imports: no more relative package imports or
2275 comma-separated lists of top-level modules.
2276 - Added support for an option values object which carries default
2277 settings and overrides (from command-line options and library use).
2278 - Added internal Unicode support, and support for both input and
2280 - Added support for the ``docutils.io.IO`` class & subclasses.
2284 * docutils/__init__.py:
2286 - Added ``ApplicationError`` and ``DataError``, for use throughout
2288 - Added ``Component`` base class for Docutils components; implements
2289 the ``supports`` method.
2290 - Added ``__version__`` (thus, ``docutils.__version__``).
2294 - Removed many keyword parameters to ``Publisher.__init__()`` and
2295 ``publish()``; bundled into an option values object. Added
2296 "argv", "usage", "description", and "option_spec" parameters for
2297 command-line support.
2298 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2300 - Reworked I/O model for ``docutils.io`` wrappers.
2301 - Updated ``Publisher.set_options()``; now returns option values
2303 - Added support for configuration files (/etc/docutils.conf,
2304 ./docutils.conf, ~/.docutils).
2305 - Added ``Publisher.setup_option_parser()``.
2306 - Added default usage message and description.
2308 * docutils/frontend.py: Added to project; support for front-end
2309 (command-line) scripts. Option specifications may be augmented by
2310 components. Requires Optik (http://optik.sf.net/) for option
2311 processing (installed locally as docutils/optik.py).
2313 * docutils/io.py: Added to project; uniform API for a variety of input
2316 * docutils/nodes.py:
2318 - Added ``TreeCopyVisitor`` class.
2319 - Added a ``copy`` method to ``Node`` and subclasses.
2320 - Added a ``SkipDeparture`` exception for visitors.
2321 - Renamed ``TreePruningException`` from ``VisitorException``.
2322 - Added docstrings to ``TreePruningException``, subclasses, and
2324 - Improved docstrings.
2325 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2326 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2328 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2329 ``PreDecorative`` mixin.
2330 - Reworked the name/id bookkeeping; to ``document``, removed
2331 ``explicit_targets`` and ``implicit_targets`` attributes, added
2332 ``nametypes`` attribute and ``set_name_id_map`` method.
2333 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2335 - Added ``document.has_name()`` method.
2336 - Fixed DOM generation for list-attributes.
2337 - Added category class ``Labeled`` (used by footnotes & citations).
2338 - Added ``Element.set_class()`` method (sets "class" attribute).
2340 * docutils/optik.py: Added to project. Combined from the Optik
2341 package, with added option groups and other modifications. The use
2342 of this module is probably only temporary.
2344 * docutils/statemachine.py:
2346 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2347 - Added underscores to improve many awkward names.
2348 - In ``string2lines()``, changed whitespace normalizing translation
2349 table to regexp; restores Python 2.0 compatibility with Unicode.
2351 * docutils/urischemes.py:
2353 - Filled in some descriptions.
2354 - Added "shttp" scheme.
2356 * docutils/utils.py:
2358 - Added ``clean_rcs_keywords`` function (moved from
2359 docutils/transforms/frontmatter.py
2360 ``DocInfo.filter_rcs_keywords``).
2361 - Added underscores to improve many awkward names.
2362 - Changed names of Reporter's thresholds:
2363 warning_level -> report_level; error_level -> halt_level.
2364 - Moved ``utils.id()`` to ``nodes.make_id()``.
2365 - Added ``relative_path(source, target)``.
2367 * docutils/languages/de.py: German mappings; added to project. Thanks
2368 to Gunnar Schwant for the translations.
2370 * docutils/languages/en.py: Added "Dedication" bibliographic field
2373 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2376 * docutils/parsers/rst/states.py:
2378 - Added underscores to improve many awkward names.
2379 - Added RFC-2822 header support.
2380 - Extracted the inline parsing code from ``RSTState`` to a separate
2381 class, ``Inliner``, which will allow easy subclassing.
2382 - Made local bindings for ``memo`` container & often-used contents
2383 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2384 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2385 - Added ``MarkupMismatch`` exception; for late corrections.
2386 - Added ``-/:`` characters to inline markup's start string prefix,
2387 ``/`` to end string suffix.
2388 - Fixed a footnote bug.
2389 - Fixed a bug with literal blocks.
2390 - Applied patch from Simon Budig: simplified regexps with symbolic
2391 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2392 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2393 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2394 - Allowed non-ASCII in "simple names" (directive names, field names,
2396 - Converted ``Inliner.patterns.initial`` to be dynamically built
2397 from parts with ``build_regexp()`` function.
2398 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2399 - Updated docstrings.
2400 - Changed "table" to "grid_table"; added "simple_table" support.
2402 * docutils/parsers/rst/tableparser.py:
2404 - Changed ``TableParser`` to ``GridTableParser``.
2405 - Added ``SimpleTableParser``.
2406 - Refactored naming.
2408 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2409 a fallback language for directive names.
2411 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2412 directive to use a ``pending`` element, used only by HTML writers.
2414 * docutils/parsers/rst/directives/parts.py: Renamed from
2417 - Added "backlinks" attribute to "contents" directive.
2419 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2420 project by Adam Chodorowski.
2422 * docutils/readers/__init__.py: Gave Readers more control over
2423 choosing and instantiating Parsers.
2425 * docutils/readers/pep.py: Added to project; for PEP processing.
2427 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2428 requires a ``component`` parameter.
2430 * docutils/transforms/components.py: Added to project; transforms
2431 related to Docutils components.
2433 * docutils/transforms/frontmatter.py:
2435 - In ``DocInfo.extract_authors``, check for a single "author" in an
2436 "authors" group, and convert it to a single "author" element.
2437 - Added support for "Dedication" and generic bibliographic fields.
2439 * docutils/transforms/peps.py: Added to project; PEP-specific.
2441 * docutils/transforms/parts.py: Renamed from old components.py.
2443 - Added filter for `Contents`, to use alt-text for inline images,
2444 and to remove inline markup that doesn't make sense in the ToC.
2445 - Added "name" attribute to TOC topic depending on its title.
2446 - Added support for optional TOC backlinks.
2448 * docutils/transforms/references.py: Fixed indirect target resolution
2449 in ``Hyperlinks`` transform.
2451 * docutils/transforms/universal.py:
2453 - Changed ``Messages`` transform to properly filter out system
2454 messages below the warning threshold.
2455 - Added ``Decorations`` transform (support for ``--generator``,
2456 ``--date``, ``--time``, ``--source-link`` options).
2458 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2459 Engelbert Gruber's PDF writer.
2461 * docutils/writers/html4css1.py:
2463 - Made XHTML-compatible (switched to lowercase element & attribute
2464 names; empty tag format).
2465 - Escape double-dashes in comment text.
2466 - Improved boilerplate & modularity of output.
2467 - Exposed modular output in Writer class.
2468 - Added a "generator" meta tag to <head>.
2469 - Added support for the ``--stylesheet`` option.
2470 - Added support for ``decoration``, ``header``, and ``footer``
2472 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2473 translation table to regexp; restores Python 2.0 compatibility
2475 - Added the translator class as instance variable to the Writer, to
2476 make it easily subclassable.
2477 - Improved option list spacing (thanks to Richard Jones).
2478 - Modified field list output.
2479 - Added backlinks to footnotes & citations.
2480 - Added percentage widths to "<col>" tags (from colspec).
2481 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2482 "<span>" changed to "<var>".
2483 - Inline literals: "<code>" changed to "<tt>".
2484 - Many changes to optimize vertical space: compact simple lists etc.
2485 - Add a command-line options & directive attributes to control TOC
2486 and footnote/citation backlinks.
2487 - Added support for optional footnote/citation backlinks.
2488 - Added support for generic bibliographic fields.
2489 - Identify backrefs.
2490 - Relative URLs for stylesheet links.
2492 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2493 PEPs (subclass of ``html4css1.Writer``).
2495 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2497 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2498 of the Docutils internal doctree in XML.
2500 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2504 - Changed the title to "The Docutils Document Tree".
2505 - Added "Hyperlink Bookkeeping" section.
2507 * spec/docutils.dtd:
2509 - Added ``decoration``, ``header``, and ``footer`` elements.
2510 - Brought ``interpreted`` element in line with the parser: changed
2511 attribute "type" to "role", added "position".
2512 - Added support for generic bibliographic fields.
2514 * spec/notes.txt: Continual updates. Added "Project Policies".
2516 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2519 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2521 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2522 mailing list discussions.
2524 * spec/pep-0287.txt:
2526 - Renamed to "reStructuredText Docstring Format".
2528 - Reworked Q&A as an enumerated list.
2529 - Converted to reStructuredText format.
2531 * spec/pysource.dtd:
2533 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2535 * spec/pysource.txt: Removed from project. Moved much of its contents
2538 * spec/rst/alternatives.txt:
2540 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2541 - Added "Inline External Targets" section.
2543 * spec/rst/directives.txt:
2545 - Added "backlinks" attribute to "contents" directive.
2547 * spec/rst/problems.txt:
2549 - Updated the Enumerated List Markup discussion.
2550 - Added new alternative table markup syntaxes.
2552 * spec/rst/reStructuredText.txt:
2554 - Clarified field list usage.
2555 - Updated enumerated list description.
2556 - Clarified purpose of directives.
2557 - Added ``-/:`` characters to inline markup's start string prefix,
2558 ``/`` to end string suffix.
2559 - Updated "Authors" bibliographic field behavior.
2560 - Changed "inline hyperlink targets" to "inline internal targets".
2561 - Added "simple table" syntax to supplement the existing but
2562 newly-renamed "grid tables".
2563 - Added cautions for anonymous hyperlink use.
2564 - Added "Dedication" and generic bibliographic fields.
2566 * test: Made test modules standalone (subdirectories became packages).
2568 * test/DocutilsTestSupport.py:
2570 - Added support for PEP extensions to reStructuredText.
2571 - Added support for simple tables.
2572 - Refactored naming.
2574 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2576 - Now supports true packages containing test modules
2577 (``__init__.py`` files required); fixes duplicate module name bug.
2579 * test/test_pep/: Subpackage added to project; PEP testing.
2581 * test/test_rst/test_SimpleTableParser.py: Added to project.
2585 - Updated html.py and publish.py front-end tools to use the new
2586 command-line processing facilities of ``docutils.frontend``
2587 (exposed in ``docutils.core.Publisher``), reducing each to just a
2589 - Added ``locale.setlocale()`` calls to front-end tools.
2591 * tools/buildhtml.py: Added to project; batch-generates .html from all
2592 the .txt files in directories and subdirectories.
2594 * tools/default.css:
2596 - Added support for ``header`` and ``footer`` elements.
2597 - Added styles for "Dedication" topics (biblio fields).
2599 * tools/docutils.conf: A configuration file; added to project.
2601 * tools/docutils-xml.py: Added to project.
2603 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2605 * tools/pep-html-template: Added to project.
2607 * tools/pep2html.py: Added to project from Python (nondist/peps).
2608 Added support for Docutils (reStructuredText PEPs).
2610 * tools/quicktest.py:
2612 - Added the ``--attributes`` option, hacked a bit.
2613 - Added a second command-line argument (output file); cleaned up.
2615 * tools/stylesheets/: Subdirectory added to project.
2617 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2620 Release 0.1 (2002-04-20)
2621 ========================
2623 This is the first release of Docutils, merged from the now inactive
2624 reStructuredText__ and `Docstring Processing System`__ projects. For
2625 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2626 `DPS HISTORY`__ files.
2628 __ http://structuredtext.sourceforge.net/
2629 __ http://docstring.sourceforge.net/
2630 __ http://structuredtext.sourceforge.net/HISTORY.html
2631 __ http://docstring.sourceforge.net/HISTORY.html
2633 General changes: renamed 'dps' package to 'docutils'; renamed
2634 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2635 the test suites (reStructuredText's test/test_states renamed to
2636 test/test_rst); and all modifications required to make it all work.
2638 * docutils/parsers/rst/states.py:
2640 - Improved diagnostic system messages for missing blank lines.
2641 - Fixed substitution_reference bug.
2647 indent-tabs-mode: nil
2648 sentence-end-double-space: t