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.
28 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
32 - Fix ``--local`` switch.
35 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
37 * docutils/writers/html4css1/__init__.py
39 - Set "lang" argument for objects with class argument
40 "language-<language tag>".
42 * docutils/writers/latex2e/__init__.py
44 - Fix [ 3043986 ] AttributeError using :local: with table of content.
45 - Place title data in the document preamble.
46 - Load `babel` package only if required.
47 - Update list of supported languages.
48 - New config setting "hyperref-options".
49 No hard-coded "unicode" hyperref option (clash with xetex).
50 - Set language for custom roles, paragraphs, block-quotes, and
51 line-quotes with class argument "language-<language tag>".
52 - Fix [ 3095603 ] wrong quotes output for russian and other languages.
54 * docutils/writers/xetex/__init__.py
56 - New writer generating LaTeX code for compiling with ``xelatex``.
58 A separate writer (inheriting from latex2e) instead of a ``--xetex``
59 option allows separate config options for XeTeX vs. LaTeX2e.
61 * tools/editors/emacs/rst.el:
63 - Fix [ 3001100 ] does not handle spaces in filenames
64 (thanks to Jakub Wilk)
68 - strip whitespace from stylesheet arguments
71 Release 0.7 (2010-07-07)
72 ========================
76 - Fix [ 2881769 ] setup configuration.
77 - Fix [ 2788716 ] reporting problems in included files.
81 - FileInput opens files as text files with universal newline support
82 (mode "rU", configurable with the new optional argument "mode").
86 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
90 - Fix [ 2923723 ] let decode_path() tolerate path == None
92 * docutils/writers/html4css1/__init__.py
94 - Support SVG and SWF images (thanks to Stefan Rank).
95 - Generate valid XHTML for centered images with targets.
96 Use CSS classes instead of "align" tags for image alignment.
98 * docutils/writers/latex2e/__init__.py
100 - Use `transforms.writer_aux.Admonitions` to "normalize" special
102 - Use the ``\url`` command for URLs (breaks long URLs instead of
103 writing into the margin).
104 - Preserve runs of spaces in `inline literals`__.
105 - Deprecate ``figure_footnotes`` setting.
106 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
107 - New ``latex_preamble`` setting.
108 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
109 - Fix hyperlink targets (labels) for images, figures, and tables.
110 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
111 - Apply [ 2961991 ] Call hyperref with unicode option.
112 - Drop the special `output_encoding`__ default ("latin-1").
113 The Docutils wide default (usually "UTF-8") is used instead.
114 - Render inline markup in document title and subtitle.
115 - Fix numbering depth with LaTeX section numbering.
116 - Update Unicode -> LaTeX translations.
117 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
119 __ docs/ref/restructuredtext.html#inline-literals
120 __ docs/user/config.html#docutils-footnotes
121 __ docs/user/config.html#output_encoding
123 * docutils/writers/manpage.py
125 - Fix: supported attribute (thanks to peter2108).
126 - Remove trailing blanks in code (keep in sync with mercurial version).
127 - Titles level 1, that is ``.SH``, always uppercase.
128 - Apply patch from mg: literal text should be bold in man-pages.
132 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
137 - Python 3 support: copy test/ and tools/ to the build-dir
138 and convert Python sources with 2to3.
141 Release 0.6 (2009-10-11)
142 ========================
146 - Docutils is now compatible with Python versions from 2.3 up to 2.6
147 and convertible to 3.1 code.
149 + Node.__nonzero__ returns True instead of 1.
150 + use os.walk instead os.path.walk.
151 + minimize "types" module where possible.
152 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
153 + Text nodes now subclass unicode rather than UserString
154 (which is gone in python 3.0).
155 + 3.0 compatibility module docutils._compat
157 + Drop 2.2 compatibility workarounds.
158 + Drop extras/optparse.py and extras/textwrap.py
159 (stdlib modules since 2.3).
161 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
162 - Unix man page export: manpage writer moved from sandbox to Doctutils
165 - Apply [ 1719345 ] Galician translation
166 - Apply [ 1905741 ] Polish translation
167 - Apply [ 1878977 ] make_id(): deaccent characters.
168 - Apply [ 2029251 ] return nonzero when tests fail.
169 - Fix [ 1692788 ] allow UTF-8 in style sheets.
170 - Fix [ 2781629 ] support non-ASCII chars in file names.
171 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
172 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
173 - Fix [ 2821266 ] --strict option works now like --halt=info.
174 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
175 - Fix [ 1627229 ] hyperlink references in substitutions.
177 - The "newlatex" writer is orphaned.
181 - Documented Unicode characters allowed as inline markup openers,
182 closers, and delimiters.
183 - Allow units for all length specifications.
184 - Allow percent sign in "scale" argument of "figure" and "image" directives.
185 - Bugfix: The "figalign" argument of a figure now works as intended
186 (aligning the figure, not its contents).
187 - Align images with class "align-[right|center|left]"
188 (allows setting the alignment of an image in a figure).
192 - Added ``Element.__contains__`` method, for the in-operator.
194 * docutils/parsers/rst/states.py:
196 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
197 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
198 " " (non-breaking space), and "¡ ¿" openers.
200 * docutils/parsers/directives/misc.py:
202 - Added ``start-line`` and ``end-line`` options to "include"
203 directive to select a range of lines.
204 - Hard tabs in literal inclusions are replaced by spaces. This is
205 configurable via the new ``tab-width`` option of the "include" directive
206 (a negative tab-width prevents tab expansion).
210 - Add ``get_stylesheet_list`` function.
211 - Apply [ 2834836 ] print info at halt
213 * docutils/transforms/universal.py:
215 - Raise default priority of StripClasses to exclude stripped classes from
218 * docutils/writers/html4css1/__init__.py:
220 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
221 separated list of stylesheets.
222 - Address [ 1938891 ] Inline literal text creates "pre" span only when
223 needed to prevent inter-word line wraps.
224 - Use `translate` method instead of repeated `replace` calls.
225 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
226 classes to allow CSS styling that does not interfere with other
227 table-using constructs (field lists, citations, ...).
229 * docutils/writers/newlatex2e/__init__.py:
231 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
233 * docutils/writers/latex2e/__init__.py (see also
234 `<docs/user/docutils-05-compat.sty.html>`__) :
236 - Add ``--embed-stylesheet`` option.
237 - Apply [ 1474017 ] image vertical alignment is reversed.
238 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
239 - Change: has_key for dictionaries (not Nodes) to in-operator.
240 - Merge adjacent citations into one latex cite command.
241 - Failsave implementation of custom roles. LaTeX compilation now ignores
242 unknown classes instead of aborting with an error.
243 - Support custom roles based on standard roles.
244 - LaTeX packages can be used as ``--stylesheet`` arguments without
245 restriction. (A style sheet is now referenced with the ``\usepackage``
246 command, if it ends with ``.sty`` or has no extension.)
247 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
248 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
249 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
250 2005-02-04 as a configurable length unit).
251 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
252 if font-encoding is set to ''. LaTeX defaults to OT1 then.
253 - Set sub- and superscript role argument in text mode not as math.
254 Use a custom role based on sub-/superscript if you want italic shape.
255 - Shorter preamble and less dependencies: Load packages and define macros
256 only if required in the document.
257 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
258 - New custom environments and commands with optional "classes" argument.
259 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
260 - Better conformance to Docutils specifications with ``--use-latex-toc``.
261 Support for LaTeX generated ToC also with unnumbered sections.
262 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
263 section numbering by LaTeX.
264 - Use default font in admonitions and sidebar.
265 - Align of image in a figure defaults to 'center'.
266 - Bugfix: Newlines around targets and references prevent run-together
268 - Fix internal hyperlinks.
269 - Use class defaults for page margins ('typearea' now optional).
270 - Float placement made configurable, default changed to "here definitely".
271 - Typeset generic topic as "quote block with title".
272 - Use template (file and configuration option).
273 - In the default template, load cmap.sty (fix text extraction in PDF) and
274 fixltx2e.sty (LaTeX patches, \textsubscript).
275 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
276 - Use `translate` instead of repeated `replace` calls for text encoding.
277 - Hyperlinked footnotes and support for symbol footnotes and
278 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
279 - Complete pairs of binary options
280 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
281 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
283 - font-encoding: "T1" (formerly implicitely set by 'ae').
284 - use-latex-toc: true (ToC with page numbers).
285 - use-latex-footnotes: true (no mixup with figures).
287 * docutils/writers/manpage.py
289 - Do not print version at document end, this is done by the viewer.
290 - Do not print date at document end, this is done by the viewer.
291 - Fix storage of docinfo fields for none standard fields.
293 * docutils/tools/rst2man.py
295 Release 0.5 (2008-06-25)
296 ========================
298 * docutils/languages/he.py: Added to project: Hebrew mappings by
301 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
302 mappings by Meir Kriheli.
304 * docutils/frontend.py:
306 - Configuration files are now assumed and required to be
308 - Paths of applied configuration files are now recorded in the
309 runtime setting ``_config_files`` (accessible via
310 ``--dump-settings``).
311 - Added ``--strip-elements-with-class`` and ``--strip-class``
312 options (``strip_elements_with_classes`` and ``strip_classes``
317 - Added code to determine the input encoding from data: encoding
318 declarations or the presence of byte order marks (UTF-8 & UTF-16).
319 - Added support for IronPython 1.0.
323 - Added ``document.__getstate__`` method, for pickling.
325 * docutils/parsers/rst/states.py:
327 - Allow ``+`` and ``:`` in reference names.
328 - Unquoted targets beginning with an underscore (``.. __target:
329 URI``) are no longer accepted.
330 - Added support for multiple attributions in a physical block quote
331 (indented text block), dividing it into multiple logical block
333 - Added support for unicode bullets in bullet lists: "•", "‣", and
335 - Added support for new object-oriented directive interface,
336 retaining compatibility to the old functional interface.
337 - Added support for throwing ``DirectiveError``'s from within
340 * docutils/parsers/rst/__init__.py:
342 - Added ``Directive`` base class.
343 - Added ``DirectiveError`` base class.
344 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
347 * docutils/parsers/directives/:
349 - Refactored all reStructuredText directives to use the new
350 object-oriented directive interface. Errors are now (mostly)
351 thrown using the new ``DirectiveError`` class.
353 * docutils/parsers/directives/misc.py:
355 - Added ``start-after`` and ``end-before`` options to ``include``
356 directive; thanks to Stefan Rank.
358 * docutils/transforms/universal.py:
360 - Added ``StripClassesAndElements`` transform to remove from the
361 document tree all elements with classes in
362 ``settings.strip_elements_with_classes`` and all "classes"
363 attribute values in ``self.document.settings.strip_classes``.
365 * docutils/transforms/writer_aux.py:
367 - Added ``Admonitions`` transform to transform specific admonitions
368 (like ``note``, ``warning``, etc.) into generic admonitions with a
371 * docutils/writers/html4css1/__init__.py:
373 - Moved template functionality from the PEP/HTML writer here.
374 - Expanded the fragments available in the ``parts`` attribute.
375 - Moved ``id`` attributes from titles to surrounding ``div``
377 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
378 universally supported now).
379 - ``template.txt`` is now opened in text mode instead of binary mode
380 (to ensure Windows compatibility).
381 - ``a`` elements now have an "internal" or "external" class,
382 depending on reference type.
384 * docutils/writers/html4css1/template.txt: Added to project.
386 * docutils/writers/pep_html/:
388 - Moved template functionality to the HTML writer.
390 * docutils/writers/s5_html/__init__.py:
392 - Added ``view_mode`` & ``hidden_controls`` settings
393 (``--view-mode`` & ``--hidden-controls/--visible-controls``
396 * docutils/writers/latex2e/__init__.py:
398 - Add ``--literal-block-env``
399 - Fix: escaping ``%`` in href urls.
400 - Move usepackage hyperref after stylesheet inclusion.
401 - Fix: scrartcl does not have chapter but scrreprt.
402 - Add newline after ``\end{verbatim}``.
403 - Merge smaller differences from latex2e_adaptive_preamble.
404 - Add ``use-part-section``.
405 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
406 - Using leavemode option_list no longer needs to check if parent
407 is a definition list.
408 - Append ``\leavemode`` to definition list terms.
409 - No longer write visit\_/depart_definition_list_item comments to
411 - Table column width with 3 decimal places.
412 - Add table stubs support (boldfont).
413 - Add assemble_parts to writer.
414 - Add simply support for nested tables.
415 - Fix verbatim in tables if use-verbatim-when-possible.
416 - Use section commands down to subparagraph.
417 - Put ensuremath around some latin1 chars.
418 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
419 - New option ``--use-bibtex=style,db1,db2``.
420 - New option ``--reference-label`` to allow usage of LaTeX ref for
421 labels in section references.
422 - Add a label after every section to support sectionnumbers as reference
424 - Fix: bug# 1605376 rst2latex: bad options group list
425 - Remove inactive code for use_optionlist_for_option_list.
426 - Remove latex comments from option_list output.
427 - Fix: bug# 1612270 double qoutes in italian literal.
428 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
429 - Add option --use-latex-abstract.
430 - Image width unit ``px`` is translated to ``pt``.
431 - Add image height support.
432 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
434 - Fix: Do not escape underscores in citation reference labels if
435 use-latex-citations is set.
436 - Use centering instead of center for figure contents, to avoid vertical
438 - Recognize table class: borderless, nolines, booktabs, standard.
439 - Fix: Renaming contents section does not work with latex writer; SF
441 - Applied patch for custom roles with classes from Edward Loper.
442 - Fixed bug that caused crashes with more than 256 lists.
444 * docutils/writers/pep_html/__init__.py:
446 - Changed to support new python.org website structure and
449 * docs/howto/security.txt: "Deploying Docutils Securely", added to
452 * tools/buildhtml.py:
454 -- Added ``ignore`` setting to exclude a list of shell patterns
455 (default: ``.svn:CVS``).
457 * tools/editors/emacs/rst.el:
459 - Changed license to "GPL".
460 - Added ``rst-straighten-decorations`` function.
461 - The ``compile`` module is now always loaded.
462 - Added ``rst-toggle-line-block`` function.
463 - Headings consisting only of non-ASCII characters are now
464 recognized by ``rst-toc`` and ``rst-adjust``.
465 - Added font-lock support for multi-line comments where the first
466 comment line is empty.
467 - Added ``(require 'font-lock)``.
471 - Provide descriptive error message if distutils is missing.
474 Release 0.4 (2006-01-09)
475 ========================
479 - Updated the project policies for trunk/branch development &
482 * docutils/__init__.py:
484 - Added ``__version_details__`` attribute to describe code source
485 (repository/snapshot/release).
486 - Replaced ``default_transforms`` attribute of TransformSpec with
487 ``get_transforms()`` method.
491 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
492 functions, for document tree extraction and reprocessing.
496 - Added ``DocTreeInput`` class, for reprocessing existing documents.
497 - Added support for non-Unicode (e.g. binary) writer output.
501 - Re-introduced ``Targetable.indirect_reference_name``, for
502 MoinMoin/reST compatibility (removed in r3124/r3129).
503 - Added ``serial_escape`` function; escapes string values that are
504 elements of a list, for serialization. Modified Docutils-XML
505 writing (``Element._dom_node``) and pseudo-XML writing
506 (``Element.starttag``) to use ``serial_escape``.
507 - Added ``Node.deepcopy()`` method.
508 - Removed the internal lists ``document.substitution_refs``,
509 ``document.anonymous_refs``, and ``document.anonymous_targets``.
510 - Added a "container" element.
511 - Fixed bug where values of list-valued attributes of elements
512 originating from custom interpreted text roles (i.e., with custom
513 classes) were being shared between element instances. Reported by
516 * docutils/statemachine.py:
518 - Added trailing whitespace stripping to ``string2lines()``.
519 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
520 Asian double-width character support.
524 - Added ``east_asian_column_width()`` for double-width character
527 * docutils/languages/ja.py: Added to project: Japanese mappings by
530 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
531 mappings by Panjunyong.
533 * docutils/parsers/null.py: Added to project; a do-nothing parser.
535 * docutils/parsers/rst/__init__.py:
537 - Added validator to tab_width setting, with test. Closes SF bug
538 #1212515, report from Wu Wei.
540 * docutils/parsers/rst/states.py:
542 - Fixed bug with escaped colons indicating a literal block.
543 - Fixed bug with enumerated lists (SF#1254145).
544 - Backslash-escaped colons inside of field names are now allowed.
545 - Targets (implicit and explicit), anonymous hyperlink references
546 and auto-numbered footnote references inside of substitution
547 definitions are now disallowed.
548 - Fixed bug: list items with blank first lines.
549 - Fixed bug: block quote attributions with indented second lines.
550 - Added East Asian double-width character support (Python 2.4 only).
552 * docutils/parsers/rst/tableparser.py:
554 - Added East Asian double-width character support (Python 2.4 only).
556 * docutils/parsers/rst/directives/body.py:
558 - Added the "container" directive.
560 * docutils/parsers/rst/directives/misc.py:
562 - Added the "default-role", "title", and "date" directives.
563 - Added standard data file syntax to the "include" directive.
564 - Added support for "class" directive content.
566 * docutils/parsers/rst/directives/images.py:
568 - Added ``indirect_reference_name`` support for images with a target
570 - Added support for image width and height units.
571 - Fixed bug with image "target" options.
573 * docutils/parsers/rst/directives/references.py:
575 - Added "class" attribute to "target-notes" directive, for
576 footnote_reference classes.
578 * docutils/parsers/rst/include/: Directory added to project; contains
579 standard data files for the "include" directive. Initial contents:
580 character entity substitution definition sets, and a set of
581 definitions for S5/HTML presentations.
583 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
584 mappings by David Goodger.
586 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
587 Simplified Chinese mappings by Panjunyong.
589 * docutils/readers/__init__.py:
591 - Added universal.Decorations and universal.ExposeInternals
592 transforms as default transforms for all readers.
593 - Added ``ReReader`` base class for readers that reread an existing
596 * docutils/readers/doctree.py: Added to project; a reader for existing
599 * docutils/transforms/frontmatter.py:
601 - Fixed the DocInfo transform to handle SVN-style expansion of the
603 - In ``DocInfo.extract_authors``, treat the contents of "authors"
606 * docutils/transforms/misc.py:
608 - Added misc.Transitions transform, extracted from
609 universal.FinalChecks.
611 * docutils/transforms/references.py:
613 - Added references.DanglingReferences transform, extracted from
614 universal.FinalChecks.
615 - Fixed bug with doubly-indirect substitutions.
616 - Added footnote_reference classes attribute to "TargetNotes".
617 - Fixed bug with circular substitution definitions that put Docutils
618 into an infinite loop.
620 * docutils/transforms/universal.py:
622 - Added universal.ExposeInternals transform, extracted from
623 universal.FinalChecks.
624 - Removed universal.FinalChecks transform (logic has been moved to
625 several new transforms).
626 - Fixed bug with the "expose_internals" setting and Text nodes
627 (exposed by the "rawsource" internal attribute).
628 - Added the universal.StripComments transform, implementation of the
629 "strip_comments" setting.
631 * docutils/transforms/writer_aux.py: Added to project; auxiliary
632 transforms for writers.
634 - Added ``Compound`` transform, which flattens compound paragraphs.
636 * docutils/writers/: Several writer modules (html4css1.py) were
637 converted into packages. Support modules and data files have been
638 moved into the packages. The stylesheets for the HTML writers are
639 now installed along with the code, the code knows where to find
640 them, and the default is to use them (actually, to embed them).
641 Some adjustments to configuration files may be necessary. The
642 easiest way to obtain the new default behavior is to remove all
643 settings whose name includes "stylesheet".
645 * docutils/writers/__init__.py:
647 - Added universal.Messages and universal.FilterMessages transforms
648 as default transforms for all writers.
649 - Added ``UnfilteredWriter`` base class for writers that pass the
650 document tree on unchanged.
652 * docutils/writers/docutils_xml.py:
654 - Made ``xmlcharrefreplace`` the default output encoding error
657 * docutils/writers/html4css1/:
659 - Added support for image width and height units.
660 - Made ``xmlcharrefreplace`` the default output encoding error
662 - Made ``--embed-stylesheet`` the default rather than
663 ``--link-stylesheet``.
664 - Moved "id" attribute from container (section etc.) to title's <a>
665 tag, to be on the same tag as "name".
666 (!!! To be reverted in Docutils 0.5.)
667 - Added vertical space between fields of field lists.
668 - Added ``--compact-field-lists`` option to remove vertical space in
670 - Made cloaking of email addresses with ``--cloak-email-addresses``
672 - Fixed support for centered images.
673 - Added support for class="compact" & class="open" lists.
675 * docutils/writers/latex2e/:
677 - Underscores in citekeys are no longer escaped.
679 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
680 mapping of Unicode characters to LaTeX equivalents.
682 * docutils/writers/s5_html/: Package added to project; writer for
685 * docs/dev/distributing.txt: Added to project; guide for distributors
686 (package maintainers).
688 * docs/dev/hacking.txt: Added to project; guide for developers.
690 * docs/ref/doctree.txt:
692 - Updated for plural attributes "classes", "ids", "names",
694 - Added the "container" element.
696 * docs/ref/docutils.dtd:
698 - Updated for plural attributes "classes", "ids", "names",
701 * docs/user/emacs.txt: Added to project; a document about Emacs
702 support for reStructuredText and Docutils.
704 * docs/user/links.txt: Added to project; lists of Docutils-related
707 * docs/user/mailing-lists.txt: Added to project; information about
708 Docutils-related mailing lists and how to access them.
710 * docs/user/slide-shows.txt: Added to project; example of and docs for
711 the S5/HTML writer (``rst2s5.py`` front end).
713 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
714 Files", added to project.
716 * test/coverage.sh: Added to project; test coverage script.
718 * test/DocutilsTestSupport.py:
720 - Added support for specifying runtime settings at the suite level.
722 * test/test_functional.py:
724 - Added the ``clear_output_directory`` function.
725 - Added support for ``_test_more`` functions in functional test
728 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
730 * tools/rstpep2html.py: Renamed from pep.py.
732 * tools/dev/create_unimap.py: Added to project; script to create the
733 docutils/writers/unimap_latex.py mapping file.
735 * tools/dev/profile_docutils.py: Added to project; profiler script.
737 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
739 * tools/editors/emacs/restructuredtext.el,
740 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
741 Removed from project; the functionality is now contained in rst.el.
743 * tools/editors/emacs/rst.el: Added to project. Added many features
744 and fixed many bugs. See docs/user/emacs.txt for details.
746 * tools/stylesheets: Removed from project. Stylesheets have been
747 renamed and moved into writer packages.
750 Release 0.3.9 (2005-05-26)
751 ==========================
755 - Eliminated and replaced all uses of the old string attributes
756 ``id``, ``name``, ``dupname`` and ``class`` with references to the
757 new list attributes ``ids``, ``names``, ``dupnames`` and
758 ``classes`` throughout the whole source tree.
762 - Enabled ``--dump-*`` options when ``--traceback`` specified,
763 allowing for easier debugging.
764 - In ``Publisher.publish()``, expanded the generic top-level
767 * docutils/examples.py:
769 - Added ``internals`` function for exploration.
773 - Fixed ``Input.decode`` method to apply heuristics only if no
774 encoding is explicitly given, and to provide better reporting of
776 - The ``Input.decode`` method now removes byte order marks (BOMs)
781 - ``image`` element class changed to subclass of Element, not
782 TextElement (it's an empty element, and cannot contain text).
783 - Added ``attr_defaults`` dictionary for default attribute values.
784 - Added empty list as default value for the following attributes:
785 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
786 - Added ``document.decoration`` attribute,
787 ``document.get_decoration`` method, and ``decoration.get_header``
788 & ``.get_footer`` methods.
789 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
794 - Removed ``docutils.utils.Reporter.categories``,
795 ``docutils.utils.ConditionSet``, and all references to them, to
796 simplify error reporting.
798 * docutils/languages/nl.py: Added to project; Dutch mappings by
801 * docutils/parsers/rst/__init__.py:
803 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
805 * docutils/parsers/rst/states.py:
807 - Added check for escaped at-mark to prevent email address recognition.
808 - Fixed option lists to allow spaces inside ``<angle-bracketed option
810 - Allowed whitespace in paths and URLs.
811 - Added auto-enumerated list items.
812 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
814 - Added support for table stub columns.
816 * docutils/parsers/rst/directives/__init__.py:
818 - Allowed whitespace in paths (``path`` function).
819 - Added ``uri`` directive option conversion function.
821 * docutils/parsers/rst/directives/body.py:
823 - Fixed illegal context bug with "topic" directive (allowed within
824 sidebars; not within body elements).
826 * docutils/parsers/rst/directives/images.py:
828 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
829 - Added support for the ``file_insertion_enabled`` setting in the
830 "figure" directive (disables "figwidth" option).
831 - "image" directive: added checks for valid values of "align" option,
832 depending on context. "figure" directive: added specialized
833 "align" option and attribute on "figure" element.
834 - Made ":figwidth: image" option of "figure" directive work again.
835 - Fixed bug with reference names containing uppercase letters
836 (e.g. ``Name_``) in "target" option of "image" directive.
838 * docutils/parsers/rst/directives/misc.py:
840 - Fixed "include" and "raw" directives to catch text decoding
842 - Allowed whitespace in "include" & "raw" directive paths.
843 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
844 settings in "include" & "raw" directives.
846 * docutils/parsers/rst/directives/parts.py:
848 - Added "header" & "footer" directives.
849 - Fixed illegal context bug with "contents" directive (topics
850 allowed within sidebars; not within body elements).
852 * docutils/parsers/rst/directives/tables.py:
854 - Added "list-table" directive.
855 - Caught empty CSV table bug.
856 - Added support for the ``file_insertion_enabled`` setting in the
857 "csv-table" directive.
858 - Added ``stub-columns`` option to "csv-table" and "list-table"
861 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
862 mappings by Martijn Pieters.
864 * docutils/readers/standalone.py:
866 - Added ``--section-subtitles`` and ``--no-section-subtitles``
867 options to activate or deactivate the SectSubTitle transform.
869 * docutils/transforms/frontmatter.py:
871 - Added SectSubTitle transform to promote titles of lone
872 subsections to subtitles.
874 * docutils/transforms/references.py:
876 - Fixed mislocated internal targets bug, by propagating internal
877 targets to the next node, making use of the newly added support
878 for multiple names and IDs.
879 - Fixed duplicate footnote label bug.
880 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
883 * docutils/writers/html4css1.py:
885 - Fixed unencoded stylesheet reference bug (characters like "&" in
886 stylesheet references).
887 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
889 - Added support for multiple IDs per node by creating empty ``span``
891 - Added the ``field_name_limit`` & ``option_limit`` settings &
893 - Added support for table stub columns.
894 - Added support for the ``align`` attribute on ``figure`` elements.
895 - Added the ``cloak_email_addresses`` setting & support.
896 - Added ``html_prolog``, ``html_head``, ``html_body``,
897 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
898 ``docutils.core.publish_parts``.
899 - Added support for section subtitles.
901 * docutils/writers/latex2e.py:
903 - Fixed tables starting with more than one multirow cell.
904 - Improved --use-latex-docinfo so that organization/contact/address
905 fields are lumped with the last author field and appear on the
907 - Made sure the titlepage is always shown with --use-latex-docinfo,
908 even if the document has no title.
909 - Made sure that latex doesn't fill in today's date if no date field
911 - Added support for section subtitles.
913 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
916 * docutils/writers/null.py: Added to project; a do-nothing Writer.
918 * docs/api/publisher.txt:
920 - Added "``publish_parts`` Details" section.
922 * docutils/dev/repository.txt: Added to project; information about the
923 Docutils Subversion repository.
925 * docs/ref/docutils.dtd:
927 - Added a ``stub`` attribute to the ``colspec`` element via the
928 ``tbl.colspec.att`` parameter entity.
929 - Allowed topic elements within sidebars
930 - Added an ``align`` attribute to the ``figure`` element.
932 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
936 Release 0.3.7 (2004-12-24)
937 ==========================
939 * docutils/frontend.py:
941 - Added options: --input-encoding-error-handler,
942 --record-dependencies, --leave-footnote-reference-space,
944 - Added command-line and config file support for "overrides" setting
949 - Added support for input encoding error handler.
953 - Added dispatch_visit and dispatch_departure methods to
954 NodeVisitor; useful as a hook for Visitors.
955 - Changed structure of ``line_block``; added ``line``.
956 - Added ``compound`` node class.
957 - Added a mechanism for Visitors to transitionally ignore new node
962 - Moved ``escape2null`` and ``unescape`` functions from
963 docutils/parsers/rst/states.py.
965 * docutils/parsers/rst/roles.py:
968 - Changed role function API: the "text" parameter now takes
969 null-escaped interpreted text content.
971 * docutils/parsers/rst/states.py:
973 - Fixed bug where a "role" directive in a nested parse would crash
974 the parser; the state machine's "language" attribute was not being
976 - Added support for line block syntax.
977 - Fixed directive parsing bug: argument-less directives didn't
978 notice that arguments were present.
979 - Removed error checking for transitions.
980 - Added support for multiple classifiers in definition list items.
981 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
982 - Changed role function API: the "text" parameter now takes
983 null-escaped interpreted text content.
984 - Empty sections and documents are allowed now.
986 * docutils/parsers/rst/directives/__init__.py:
988 - Added ``encoding`` directive option conversion function.
989 - Allow multiple class names in class_option conversion function.
991 * docutils/parsers/rst/directives/body.py:
993 - Converted the line-block directive to use the new structure.
994 - Extracted the old line-block functionality to the ``block``
995 function (still used).
996 - Added ``compound`` directive (thanks to Lea Wiemann).
998 * docutils/parsers/rst/directives/misc.py:
1000 - Added "encoding" option to "include" and "raw" directives.
1001 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
1002 - Allow multiple class names in the "class" directive.
1004 * docutils/parsers/rst/directives/parts.py:
1006 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
1007 options. Thanks to Lele Gaifax.
1009 * docutils/parsers/rst/directives/tables.py:
1011 - Added "encoding" directive to "csv-table" directive.
1012 - Added workaround for lack of Unicode support in csv.py, for
1013 non-ASCII CSV input.
1015 * docutils/transforms/misc.py:
1017 - Fixed bug when multiple "class" directives are applied to a single
1019 - Enabled multiple format names for "raw" directive.
1021 * docutils/transforms/references.py:
1023 - Added support for trimming whitespace from beside substitution
1026 * docutils/transforms/universal.py:
1028 - FinalChecks now checks for illegal transitions and moves
1029 transitions between sections.
1031 * docutils/writers/html4css1.py:
1033 - HTMLTranslator.encode now converts U+00A0 to " ".
1034 - "stylesheet" and "stylesheet_path" settings are now mutually
1036 - Added support for the new line_block/line structure.
1037 - --footnote-references now overrides
1038 --trim-footnote-reference-space, if applicable.
1039 - Added support for ``compound`` elements.
1040 - Enabled multiple format names for "raw" directive.
1041 - ``<p>`` tags of a paragraph which is the only visible child of the
1042 document node are no longer stripped.
1043 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1044 new method ``should_be_compact_paragraph()``.
1045 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1047 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1048 the output if they have their ``class`` attribute set.
1049 - The whole document is now surrounded by a ``<div
1050 class="document">`` element.
1051 - Body-level images are now wrapped by their own ``<div>`` elements,
1052 with image classes copied to the wrapper, and for images which
1053 have the ``:align:`` option set, the surrounding ``<div>`` now
1054 receives a class attribute (like ``class="align-left"``).
1056 * docutils/writers/latex2e.py:
1058 - no newline after depart_term.
1059 - Added translations for some Unicode quotes.
1060 - Added option "font-encoding", made package AE the default.
1061 - "stylesheet" and "stylesheet_path" settings are now mutually
1063 - --footnote-references now overrides
1064 --trim-footnote-reference-space, if applicable.
1065 - The footnote label style now matches the footnote reference style
1066 ("brackets" or "superscript").
1067 - Added support for ``compound`` elements.
1068 - Enabled multiple format names for "raw" directive.
1070 * docs/ref/docutils.dtd:
1072 - Changed structure of the ``line_block`` element; added ``line``.
1073 - Added ``compound`` element.
1074 - Added "ltrim" and "rtrim" attributes to
1075 ``substitution_definition`` element.
1076 - Enabled multiple format names for ``raw`` element.
1077 - Enabled multiple classifiers in ``definition_list_item`` elements.
1079 * docs/ref/rst/directives.txt
1081 - Marked "line-block" as deprecated.
1082 - "Class" directive now allows multiple class names.
1083 - Added "Rationale for Class Attribute Value Conversion".
1084 - Added warning about "raw" overuse/abuse.
1086 * docs/ref/rst/restructuredtext.txt:
1088 - Added syntax for line blocks.
1089 - Definition list items may have multiple classifiers.
1091 * docs/ref/rst/roles.txt:
1095 * tools/stylesheets/default.css:
1097 - Added support for the new line_block structure.
1098 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1101 Release 0.3.5 (2004-07-29)
1102 ==========================
1106 * _`Documentation cleanup/reorganization`.
1108 - Created new subdirectories of docs/:
1110 * ``docs/user/``: introductory/tutorial material for end-users
1111 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1112 * ``docs/api/``: API reference material for client-developers
1113 * ``docs/ref/``: reference material for all groups
1114 * ``docs/howto/``: for component-developers and core-developers
1115 * ``docs/peps/``: Python Enhancement Proposals
1117 - Moved ``docs/*`` to ``docs/user/``.
1118 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1119 ``spec/`` to ``docs/dev``.
1120 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1121 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1122 - Moved ``alternatives.txt``, and ``problems.txt`` from
1123 ``spec/rst/`` to ``docs/dev/rst/``.
1124 - Moved ``reStructuredText.txt``, ``directives.txt``,
1125 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1126 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1127 ``roles.txt``, ``reStructuredText.txt`` to
1128 ``restructuredtext.txt``.
1129 - Moved ``spec/howto/`` to ``docs/howto``.
1131 In order to keep the CVS history of moved files, we supplied
1132 SourceForge with a `script for modifying the Docutils CVS
1135 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1137 After running the cleanup script:
1139 - Added ``docs/index.txt``.
1140 - Added a ``.htaccess`` file to the ``web`` module, containing
1141 redirects for all old paths to new paths. They'll preserve
1142 fragments (the "#name" part of a URL), and won't clutter up the
1143 file system, and will correct the URL in the user's browser.
1144 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1145 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1146 the "To Do" list itself in ``docs/dev/todo.txt``.
1147 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1148 section of ``docs/dev/todo.txt``.
1149 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1150 - Added "How To Report Bugs" to ``BUGS.txt``.
1151 - Went through all the sources and docs (including under web/) and
1152 updated links. Mostly done by Lea Wiemann; thanks Lea!
1153 (Still need to update links in the sandboxes.)
1157 * BUGS.txt: Added to project.
1159 * THANKS.txt: Added to project.
1161 * docutils/__init__.py:
1163 - 0.3.4: Post-release.
1167 - Added special error handling & advice for UnicodeEncodeError.
1168 - Refactored Publisher.publish (simplified exception handling &
1169 extracted debug dumps).
1170 - Renamed "enable_exit" parameter of convenience functions to
1171 "enable_exit_status".
1172 - Enabled traceback (exception propagation) by default in
1173 programmatic convenience functions.
1174 - Now publish_file and publish_cmdline convenience functions return
1175 the encoded string results in addition to their regular I/O.
1176 - Extracted common code from publish_file, publish_string, and
1177 publish_parts, into new publish_programmatically. Extracted
1178 settings code to ``Publisher.process_programmatic_settings``.
1179 - In Publisher.publish, disabled ``settings_overrides`` when
1180 ``settings`` is supplied; redundant.
1182 * docutils/frontend.py:
1184 - Added help text for "--output-encoding-error-handler" and
1185 "--error-encoding-error-handler".
1186 - Renamed "--exit" to "--exit-status".
1187 - Simplified default-setting code.
1189 * docutils/parsers/rst/__init__.py:
1191 - Added "--pep-base-url" and "--rfc-base-url" options.
1193 * docutils/parsers/rst/states.py:
1195 - Made URI recognition more aggressive and intelligent.
1197 * docutils/parsers/rst/directives/__init__.py:
1199 - Added several directive option conversion functions.
1201 * docutils/parsers/rst/directives/body.py:
1203 - Moved "table" directive to tables.py.
1205 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1208 * docutils/writers/latex2e.py:
1210 - Added "--table-style=(standard|booktabs|nolines)"
1211 - figures get "here" option (LaTeX per default puts them at bottom),
1212 and figure content is centered.
1213 - Rowspan support for tables.
1214 - Fix: admonition titles before first section.
1215 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1216 - Replave ``_`` in literal by an underlined blank, because it has the correct
1218 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1219 - A few unicode replacements, if output_encoding != utf
1220 - Add "--graphicx-option".
1221 - Indent literal-blocks.
1222 - Fix: omit ``\maketitle`` when there is no document title.
1224 * docs/index.txt: "Docutils Project Documentation Overview", added to
1227 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1228 Tool", added to project.
1230 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1232 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1234 * docs/dev/policies.txt: Added to project (extracted from
1235 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1237 * docs/dev/release.txt: Added to project (extracted from
1238 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1240 * docs/dev/testing.txt: Added to project.
1242 * docs/dev/website.txt: Added to project (extracted from
1243 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1245 * docs/ref/rst/directives.txt:
1247 - Added directives: "table", "csv-table".
1249 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1250 added to project. 1 page for syntax, and a 1 page reference for
1251 directives and roles. Source text to be used as-is; not meant to be
1254 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1255 with a change of title.
1257 * test/functional/, contents, and test/test_functional.py: Added to
1260 * tools/buildhtml.py: Fixed bug with config file handling.
1262 * tools/html.py: Removed from project (duplicate of rst2html.py).
1264 * tools/pep2html.py: Removed from project (duplicate of Python's
1265 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1266 Docutils-related PEPs in docs/peps/).
1268 * tools/rst2pseudoxml.py: Renamed from publish.py.
1270 * tools/rst2xml.py: Renamed from docutils-xml.py.
1272 * tools/test.txt: Removed from project; moved to
1273 docs/user/rst/demo.txt.
1275 * setup.py: Now also installs ``rst2latex.py``.
1278 Release 0.3.3 (2004-05-09)
1279 ==========================
1281 * docutils/__init__.py:
1283 - 0.3.1: Reorganized config file format (multiple sections); see
1285 - Added unknown_reference_resolvers attribute to TransformSpec.
1286 - 0.3.2: Interpreted text reorganization.
1291 - Catch system messages to stop tracebacks from parsing errors.
1292 - Catch exceptions during processing report & exit without
1293 tracebacks, except when "--traceback" used.
1294 - Reordered components for OptionParser; application comes last.
1295 - Added "config_section" parameter to several methods and functions,
1296 allowing front ends to easily specify their config file sections.
1297 - Added publish_parts convenience function to allow access to individual
1298 parts of a document.
1300 * docutils/examples.py: Added to project; practical examples of
1301 Docutils client code, to be used as-is or as models for variations.
1303 * docutils/frontend.py:
1305 - Added "--traceback" & "--no-traceback" options ("traceback"
1307 - Implemented support for config file reorganization:
1308 ``standard_config_files`` moved from ``ConfigParser`` to
1309 ``OptionParser``; added
1310 ``OptionParser.get_config_file_settings()`` and
1311 ``.get_standard_config_settings()``; support for old "[options]"
1312 section (with deprecation warning) and mapping from old to new
1314 - Reimplemented setting validation.
1315 - Enabled flexible boolean values: yes/no, true/false, on/off.
1316 - Added ``Values``, a subclass of ``optparse.Values``, with support
1317 for list setting attributes.
1318 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1319 thanks to Beni Cherniavsky.
1320 - Added "--no-section-numbering" option.
1324 - Catch IOErrors when opening source & destination files, report &
1325 exit without tracebacks. Added ``handle_io_errors`` parameter to
1326 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1328 * docutils/nodes.py:
1330 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1331 method definitions (via ``exec``) to dynamic assignments (via
1332 ``setattr``); thanks to Roman Suzi.
1333 - Encapsulated visitor dynamic assignments in a function; thanks to
1335 - Added indirect_reference_name attribute to the Targetable
1336 class. This attribute holds the whitespace_normalized_name
1337 (contains mixed case) of a target.
1339 * docutils/statemachine.py:
1341 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1342 - Added ``StringList.get_2D_block``.
1344 * docutils/utils.py:
1346 - Added "level" attribute to SystemMessage exceptions.
1348 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1351 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1354 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1355 Marcelo Huerta San Martin.
1357 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1358 mappings by Lalo Martins.
1360 * docutils/languages/ru.py: Added to project; Russian mappings by
1363 * docutils/parsers/rst/roles.py: Added to project. Contains
1364 interpreted text role functions, a registry for interpreted text
1365 roles, and an API for adding to and retrieving from the registry.
1366 Contributed by Edward Loper.
1368 * docutils/parsers/rst/states.py:
1370 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1371 - Allowed true em-dash character and "---" as block quote
1373 - Added support for <angle-bracketed> complex option arguments
1375 - Fixed handling of backslashes in substitution definitions.
1376 - Fixed off-by-1 error with extra whitespace after substitution
1377 definition directive.
1378 - Added inline markup parsing to field lists' field names.
1379 - Added support for quoted (and unindented) literal blocks.
1380 Driven in part by a bribe from Frank Siebenlist (thanks!).
1381 - Parser now handles escapes in URIs correctly.
1382 - Made embedded-URIs' reference text omittable. Idea from Beni
1384 - Refactored explicit target processing code.
1385 - Added name attribute to references containing the reference name only
1386 through whitespace_normalize_name (no case changes).
1387 - parse_target no longer returns the refname after going through
1388 normalize_name. This is now handled in make_target.
1389 - Fixed bug relating to role-less interpreted text in non-English
1391 - Reorganized interpreted text processing; moved code into the new
1392 roles.py module. Contributed by Edward Loper.
1393 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1394 ``parse_directive_block``.
1396 * docutils/parsers/rst/tableparser.py:
1398 - Reworked for ``StringList``, to support "include" directives in
1401 * docutils/parsers/rst/directives/__init__.py:
1403 - Renamed ``unchanged()`` directive option conversion function to
1404 ``unchanged_required``, and added a new ``unchanged``.
1405 - Catch unicode value too high error; fixes bug 781766.
1406 - Beefed up directive error reporting.
1408 * docutils/parsers/rst/directives/body.py:
1410 - Added basic "table" directive.
1412 * docutils/parsers/rst/directives/images.py:
1414 - Added "target" option to "image" directive.
1415 - Added name attribute to references containing the reference name only
1416 through whitespace_normalize_name (no case changes).
1418 * docutils/parsers/rst/directives/misc.py:
1420 - Isolated the import of the ``urllib2`` module; was causing
1421 problems on SourceForge (``libssl.so.2`` unavailable?).
1422 - Added the "role" directive for declaring custom interpreted text
1425 * docutils/parsers/rst/directives/parts.py:
1427 - The "contents" directive does more work up-front, creating the
1428 "topic" and "title", and leaving the "pending" node for the
1429 transform. Allows earlier reference resolution; fixes subtle bug.
1431 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1432 mappings by Jannie Hofmeyr.
1434 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1435 mappings by Marek Blaha.
1437 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1438 mappings by Marcelo Huerta San Martin.
1440 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1441 Portuguese mappings by Lalo Martins.
1443 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1444 mappings by Roman Suzi.
1446 * docutils/transforms/parts.py:
1448 - The "contents" directive does more work up-front, creating the
1449 "topic" and "title", and leaving the "pending" node for the
1450 transform. Allows earlier reference resolution; fixes subtle bug.
1451 - Added support for disabling of section numbering.
1453 * docutils/transforms/references.py:
1455 - Verifying that external targets are truly targets and not indirect
1456 references. This is because we are now adding a "name" attribute to
1457 references in addition to targets. Note sure if this is correct!
1458 - Added code to hook into the unknown_reference_resolvers list for a
1459 transformer in resolve_indirect_target. This allows the
1460 unknown_reference_resolvers to keep around indirect targets which
1461 docutils doesn't know about.
1462 - Added specific error message for duplicate targets.
1464 * docutils/transforms/universal.py:
1466 - Added FilterMessages transform (removes system messages below the
1467 verbosity threshold).
1468 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1469 to FinalCheckVisitor for application-specific handling of
1470 unresolvable references.
1471 - Added specific error message for duplicate targets.
1473 * docutils/writers/__init__.py:
1475 - Added assemble_parts method to the Writer class to allow for
1476 access to a documents individual parts.
1477 - Documented & set default for ``Writer.output`` attribute.
1479 * docutils/writers/html4css1.py:
1481 - Fixed unicode handling of attribute values (bug 760673).
1482 - Prevent duplication of "class" attribute values (bug report from
1484 - Improved table grid/border handling (prompted by report from Bob
1486 - Added support for table titles.
1487 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1489 - Added functionality to keep track of individual parts of a document
1490 and store them in a dictionary as the "parts" attribute of the writer.
1491 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1492 - Added proper support for the "scale" attribute of the "image"
1493 element. Contributed by Brent Cook.
1494 - Added ``--initial-header-level`` option.
1495 - Fixed bug: the body_pre_docinfo segment depended on there being a
1496 docinfo; if no docinfo, the document title was incorporated into
1497 the body segment. Adversely affected the publish_parts interface.
1499 * docutils/writers/latex2e.py:
1501 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1502 about a missing file.
1503 - Added options and support: ``--compound-enumerators``,
1504 ``--section-prefix-for-enumerators``, and
1505 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1507 - Added option ``--use-verbatim-when-possible``, to avoid
1508 problematic characters (eg, '~' in italian) in literal blocks.
1509 - It's now possible to use four section levels in the `book` and
1510 `report` LaTeX classes. The default `article` class still has
1513 * docs/config.txt: "Docutils Configuration Files", added to project.
1514 Moved config file entry descriptions from tools.txt.
1518 - Moved config file entry descriptions to config.txt.
1520 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1523 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1524 Text Roles", added to project.
1526 * spec/rst/reStructuredText.txt:
1528 - Added description of support for <angle-bracketed> complex option
1529 arguments to option lists.
1530 - Added subsections for indented and quoted literal blocks.
1532 * test: Continually adding & updating tests.
1534 - Added test/test_settings.py & test/data/config_*.txt support
1536 - Added test/test_writers/test_htmlfragment.py.
1538 * test/DocutilsTestSupport.py:
1540 - Refactored LaTeX publisher test suite/case class names to make
1541 testing other writers easier.
1542 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1543 to test the processing of HTML fragments which use the new
1544 publish_parts convenience function.
1546 * tools/buildhtml.py:
1548 - Added support for the "--prune" option.
1549 - Removed dependency on pep2html.py; plaintext PEPs no longer
1552 * tools/docutils.conf:
1554 - Updated for configuration file reorganization.
1556 * tools/rst2html.py:
1558 - copied from tools/html.py
1562 - added a 'scripts' section to configuration
1563 - added 'tools/rst2html.py' to the scripts section
1566 Release 0.3 (2003-06-24)
1567 ========================
1571 * Renamed "attribute" to "option" for directives/extensions.
1573 * Renamed transform method "transform" to "apply".
1575 * Renamed "options" to "settings" for runtime settings (as set by
1576 command-line options). Sometimes "option" (singular) became
1577 "settings" (plural). Some variations below:
1579 - document.options -> document.settings (stored in other objects as
1581 - option_spec -> settings_spec (not directives though)
1582 - OptionSpec -> SettingsSpec
1583 - cmdline_options -> settings_spec
1584 - relative_path_options -> relative_path_settings
1585 - option_default_overrides -> settings_default_overrides
1586 - Publisher.set_options -> Publisher.get_settings
1590 * COPYING.txt: Added "Public Domain Dedication".
1592 * FAQ.txt: Frequently asked questions, added to project.
1596 - Updated with PyPI Trove classifiers.
1597 - Conditional installation of third-party modules.
1599 * docutils/__init__.py:
1601 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1602 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1603 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1604 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1605 option and its effect on the PEP template & writer.
1606 - Bumped version to 0.2.4 due to changes to the PEP template &
1608 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1609 - Added ``TransformSpec`` class for new transform system.
1610 - Bumped version to 0.2.6 for API changes (renaming).
1611 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1612 convenience functions.
1613 - Added ``Component.component_type`` attribute.
1614 - Bumped version to 0.2.8 because of the internal parser switch from
1615 plain lists to the docutils.statemachine.StringList objects.
1616 - Bumped version to 0.2.9 because of the frontend.py API changes.
1617 - Bumped version to 0.2.10 due to changes to the project layout
1618 (third-party modules removed from the "docutils" package), and
1619 signature changes in ``io.Input``/``io.Output``.
1620 - Changed version to 0.3.0 for release.
1624 - Made ``publish()`` a bit more convenient.
1625 - Generalized ``Publisher.set_io``.
1626 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1627 parameters; improved its docstring.
1628 - Added ``publish_file()`` and ``publish_string()``.
1629 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1631 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1632 "--dump-transforms" hidden options.
1633 - Added ``Publisher.apply_transforms()`` method.
1634 - Added ``Publisher.set_components()`` method; support for
1635 ``publish_*()`` conveninece functions.
1636 - Moved config file processing to docutils/frontend.py.
1637 - Added support for exit status ("exit_level" setting &
1638 ``enable_exit`` parameter for Publisher.publish() and convenience
1641 * docutils/frontend.py:
1643 - Check for & exit on identical source & destination paths.
1644 - Fixed bug with absolute paths & "--config".
1645 - Set non-command-line defaults in ``OptionParser.__init__()``:
1646 ``_source`` & ``_destination``.
1647 - Distributed ``relative_path_settings`` to components; updated
1648 ``OptionParser.populate_from_components()`` to combine it all.
1649 - Require list of keys in ``make_paths_absolute`` (was implicit in
1650 global ``relative_path_settings``).
1651 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1652 "--dump-settings", and "--dump-transforms" hidden options.
1653 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1654 code, replaced with correct code.
1655 - Added validation functionality for config files.
1656 - Added "--error-encoding" option/setting, "_disable_config"
1658 - Added encoding validation; updated "--input-encoding" and
1659 "--output-encoding"; added "--error-encoding-error-handler" and
1660 "--output-encoding-error-handler".
1661 - Moved config file processing from docutils/core.py.
1662 - Updated ``OptionParser.populate_from_components`` to handle new
1663 ``SettingsSpec.settings_defaults`` dict.
1664 - Added support for "-" => stdin/stdout.
1665 - Added "exit_level" setting ("--exit" option).
1669 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1670 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1671 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1672 - ``FileOutput.write()`` now returns the encoded output string.
1673 - Try to get path/stream name automatically in ``FileInput`` &
1675 - Added defaults for source & destination paths.
1676 - Allow for Unicode I/O with an explicit "unicode" encoding.
1677 - Added ``Output.encode()``.
1678 - Removed dependency on runtime settings; pass encoding directly.
1679 - Recognize Unicode strings in ``Input.decode()``.
1680 - Added support for output encoding error handlers.
1682 * docutils/nodes.py:
1684 - Added "Invisible" element category class.
1685 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1686 modification during a traversal.
1687 - Added element classes: ``line_block``, ``generated``, ``address``,
1688 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1689 ``superscript``, ``subscript``, ``inline``
1690 - Added support for lists of nodes to ``Element.insert()``.
1691 - Fixed parent linking in ``Element.replace()``.
1692 - Added new abstract superclass ``FixedTextElement``; adds
1693 "xml:space" attribute.
1694 - Added support for "line" attribute of ``system_message`` nodes.
1695 - Added support for the observer pattern from ``utils.Reporter``.
1696 Added ``parse_messages`` and ``transform_messages`` attributes to
1697 ``document``, removed ``messages``. Added ``note_parse_message``
1698 and ``note_transform_message`` methods.
1699 - Added support for improved diagnostics:
1701 - Added "document", "source", and "line" internal attributes to
1702 ``Node``, set by ``Node.setup_child()``.
1703 - Converted variations on ``node.parent = self`` to
1704 ``self.setup_child(node)``.
1705 - Added ``document.current_source`` & ``.current_line``
1706 attributes, and ``.note_source`` observer method.
1707 - Changed "system_message" output to GNU-Tools format.
1709 - Added a "rawsource" attribute to the ``Text`` class, for text
1710 before backslash-escape resolution.
1711 - Support for new transform system.
1712 - Reworked ``pending`` element.
1713 - Fixed XML DOM bug (SF #660611).
1714 - Removed the ``interpeted`` element class and added
1715 ``title_reference``, ``abbreviation``, ``acronym``.
1716 - Made substitutions case-sensitive-but-forgiving; moved some code
1718 - Fixed Unicode bug on element attributes (report: William Dode).
1720 * docutils/optik.py: Removed from project; replaced with
1721 extras/optparse.py and extras/textwrap.py. These will be installed
1722 only if they're not already present in the Python installation.
1724 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1725 only if it's not already present in the Python installation.
1727 * docutils/statemachine.py:
1729 - Factored out ``State.add_initial_transitions()`` so it can be
1731 - Converted whitespace-specific "blank" and "indent" transitions
1732 from special-case code to ordinary transitions: removed
1733 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1734 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1735 ``ws_initial_transitions`` attributes.
1736 - Removed ``State.match_transition()`` after merging it into
1738 - Added ``StateCorrection`` exception.
1739 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1740 (moved ``TransitionCorrection`` support there too.)
1741 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1742 ``EOFError`` instead of ``IndexError``.
1743 - Added ``State.no_match`` method.
1744 - Added support for the Observer pattern, triggered by input line
1746 - Added ``strip_top`` parameter to
1747 ``StateMachineWS.get_first_known_indented``.
1748 - Made ``context`` a parameter to ``StateMachine.run()``.
1749 - Added ``ViewList`` & ``StringList`` classes;
1750 ``extract_indented()`` becomes ``StringList.get_indented()``.
1751 - Added ``StateMachine.insert_input()``.
1752 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1753 thanks to) Fred Drake.
1755 * docutils/utils.py:
1757 - Added a ``source`` attribute to Reporter instances and
1758 ``system_message`` elements.
1759 - Added an observer pattern to ``utils.Reporter`` to keep track of
1761 - Fixed bugs in ``relative_path()``.
1762 - Added support for improved diagnostics.
1763 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1764 - Added support for encoding Reporter stderr output, and encoding
1766 - Reporter keeps track of the highest level system message yet
1769 * docutils/languages: Fixed bibliographic field language lookups.
1771 * docutils/languages/es.py: Added to project; Spanish mappings by
1772 Marcelo Huerta San Martin.
1774 * docutils/languages/fr.py: Added to project; French mappings by
1777 * docutils/languages/it.py: Added to project; Italian mappings by
1780 * docutils/languages/sk.py: Added to project; Slovak mappings by
1783 * docutils/parser/__init__.py:
1785 - Added ``Parser.finish_parse()`` method.
1787 * docutils/parser/rst/__init__.py:
1789 - Added options: "--pep-references", "--rfc-references",
1790 "--tab-width", "--trim-footnote-reference-space".
1792 * docutils/parsers/rst/states.py:
1794 - Changed "title under/overline too short" system messages from INFO
1795 to WARNING, and fixed its insertion location.
1796 - Fixed enumerated list item parsing to allow paragraphs & section
1797 titles to begin with enumerators.
1798 - Converted system messages to use the new "line" attribute.
1799 - Fixed a substitution reference edge case.
1800 - Added support for "--pep-references" and "--rfc-references"
1801 options; reworked ``Inliner`` code to make customization easier.
1802 - Removed field argument parsing.
1803 - Added support for short section title over/underlines.
1804 - Fixed "simple reference name" regexp to ignore text like
1805 "object.__method__"; not an anonymous reference.
1806 - Added support for improved diagnostics.
1807 - Reworked directive API, based on Dethe Elza's contribution. Added
1808 ``Body.parse_directive()``, ``.parse_directive_options()``,
1809 ``.parse_directive_arguments()`` methods.
1810 - Added ``ExtensionOptions`` class, to parse directive options
1811 without parsing field bodies. Factored
1812 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1813 ``ExtensionOptions``.
1814 - Improved definition list term/classifier parsing.
1815 - Added warnings for unknown directives.
1816 - Renamed ``Stuff`` to ``Struct``.
1817 - Now flagged as errors: transitions at the beginning or end of
1818 sections, empty sections (except title), and empty documents.
1819 - Updated for ``statemachine.StringList``.
1820 - Enabled recognition of schemeless email addresses in targets.
1821 - Added support for embedded URIs in hyperlink references.
1822 - Added backslash-escapes to inline markup end-string suffix.
1823 - Added support for correct interpreted text processing.
1824 - Fixed nested title parsing (topic, sidebar directives).
1825 - Added special processing of backslash-escaped whitespace (idea
1826 from David Abrahams).
1827 - Made substitutions case-sensitive-but-forgiving; moved some code
1828 to ``docutils.nodes``.
1829 - Added support for block quote attributions.
1830 - Added a kludge to work-around a conflict between the bubble-up
1831 parser strategy and short titles (<= 3 char-long over- &
1832 underlines). Fixes SF bug #738803 "infinite loop with multiple
1833 titles" submitted by Jason Diamond.
1834 - Added explicit interpreted text roles for standard inline markup:
1835 "emphasis", "strong", "literal".
1836 - Implemented "superscript" and "subscript" interpreted text roles.
1837 - Added initial support for "abbreviation" and "acronym" roles;
1839 - Added support for "--trim-footnote-reference-space" option.
1840 - Optional space before colons in directives & hyperlink targets.
1842 * docutils/parsers/rst/tableparser.py:
1844 - Fixed a bug that was producing unwanted empty rows in "simple"
1846 - Detect bad column spans in "simple" tables.
1848 * docutils/parsers/rst/directives: Updated all directive functions to
1851 * docutils/parsers/rst/directives/__init__.py:
1853 - Added ``flag()``, ``unchanged()``, ``path()``,
1854 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1855 directive option helper functions.
1856 - Added warnings for unknown directives.
1857 - Return ``None`` for missing directives.
1858 - Added ``register_directive()``, thanks to William Dode and Paul
1861 * docutils/parsers/rst/directives/admonitions.py:
1863 - Added "admonition" directive.
1865 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1866 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1867 "parsed-literal", "rubric", "epigraph", "highlights" and
1868 "pull-quote" directives.
1870 * docutils/parsers/rst/directives/images.py:
1872 - Added an "align" attribute to the "image" & "figure" directives
1873 (by Adam Chodorowski).
1874 - Added "class" option to "image", and "figclass" to "figure".
1876 * docutils/parsers/rst/directives/misc.py:
1878 - Added "include", "raw", and "replace" directives, courtesy of
1880 - Added "unicode" and "class" directives.
1882 * docutils/parsers/rst/directives/parts.py:
1884 - Added the "sectnum" directive; by Dmitry Jemerov.
1885 - Added "class" option to "contents" directive.
1887 * docutils/parsers/rst/directives/references.py: Added to project.
1888 Contains the "target-notes" directive.
1890 * docutils/parsers/rst/languages/__init__.py:
1892 - Return ``None`` from get_language() for missing language modules.
1894 * docutils/parsers/rst/languages/de.py: Added to project; German
1895 mappings by Engelbert Gruber.
1897 * docutils/parsers/rst/languages/en.py:
1899 - Added interpreted text roles mapping.
1901 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1902 mappings by Marcelo Huerta San Martin.
1904 * docutils/parsers/rst/languages/fr.py: Added to project; French
1905 mappings by William Dode.
1907 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1908 mappings by Nicola Larosa.
1910 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1911 mappings by Miroslav Vasko.
1913 * docutils/readers/__init__.py:
1915 - Added support for the observer pattern from ``utils.Reporter``, in
1916 ``Reader.parse`` and ``Reader.transform``.
1917 - Removed ``Reader.transform()`` method.
1918 - Added default parameter values to ``Reader.__init__()`` to make
1919 instantiation easier.
1920 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1922 * docutils/readers/pep.py:
1924 - Added the ``peps.TargetNotes`` transform to the Reader.
1925 - Removed PEP & RFC reference detection code; moved to
1926 parsers/rst/states.py as options (enabled here by default).
1927 - Added support for pre-acceptance PEPs (no PEP number yet).
1928 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1931 * docutils/readers/python: Python Source Reader subpackage added to
1932 project, including preliminary versions of:
1935 - moduleparser.py: Parser for Python modules.
1937 * docutils/transforms/__init__.py:
1939 - Added ``Transformer`` class and completed transform reform.
1940 - Added unknown_reference_resolvers list for each transformer. This list holds
1941 the list of functions provided by each component of the transformer that
1942 help resolve references.
1944 * docutils/transforms/frontmatter.py:
1946 - Improved support for generic fields.
1947 - Fixed bibliographic field language lookups.
1949 * docutils/transforms/misc.py: Added to project. Miscellaneous
1952 * docutils/transforms/parts.py:
1954 - Moved the "id" attribute from TOC list items to the references
1955 (``Contents.build_contents()``).
1956 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1957 - Added "class" attribute support to ``Contents``.
1959 * docutils/transforms/peps.py:
1961 - Added ``mask_email()`` function, updating to pep2html.py's
1963 - Linked "Content-Type: text/x-rst" to PEP 12.
1964 - Added the ``TargetNotes`` PEP-specific transform.
1965 - Added ``TargetNotes.cleanup_callback``.
1966 - Added title check to ``Headers``.
1968 * docutils/transforms/references.py:
1970 - Added the ``TargetNotes`` generic transform.
1971 - Split ``Hyperlinks`` into multiple transforms.
1972 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1973 - Added check for circular indirect references.
1974 - Made substitutions case-sensitive-but-forgiving.
1976 * docutils/transforms/universal.py:
1978 - Added support for the "--expose-internal-attributes" option.
1979 - Removed ``Pending`` transform classes & data.
1981 * docutils/writers/__init__.py:
1983 - Removed ``Writer.transform()`` method.
1985 * docutils/writers/docutils-xml.py:
1987 - Added XML and doctype declarations.
1988 - Added "--no-doctype" and "--no-xml-declaration" options.
1990 * docutils/writers/html4css1.py:
1992 - "name" attributes only on these tags: a, applet, form, frame,
1994 - Added "name" attribute to <a> in section titles for Netscape 4
1995 support (bug report: Pearu Peterson).
1996 - Fixed targets (names) on footnote, citation, topic title,
1997 problematic, and system_message nodes (for Netscape 4).
1998 - Changed field names from "<td>" to "<th>".
1999 - Added "@" to "@" encoding to thwart address harvesters.
2000 - Improved the vertical whitespace optimization; ignore "invisible"
2001 nodes (targets, comments, etc.).
2002 - Improved inline literals with ``<span class="pre">`` around chunks
2003 of text and `` `` for runs of spaces.
2004 - Improved modularity of output; added ``self.body_pre_docinfo`` and
2005 ``self.docinfo`` segments.
2006 - Added support for "line_block", "address" elements.
2007 - Improved backlinks (footnotes & system_messages).
2008 - Improved system_message output.
2009 - Redefined "--stylesheet" as containing an invariant URL, used
2010 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
2012 - Added "--footnote-references" option (superscript or brackets).
2013 - Added "--compact-lists" and "--no-compact-lists" options.
2014 - Added "--embed-stylesheet" and "--link-stylesheet" options;
2015 factored out ``HTMLTranslator.get_stylesheet_reference()``.
2016 - Improved field list rendering.
2017 - Added Docutils version to "generator" meta tag.
2018 - Fixed a bug with images; they must be inline, so wrapped in <p>.
2019 - Improved layout of <pre> HTML source.
2020 - Fixed attribute typo on <colspec>.
2021 - Refined XML prologue.
2022 - Support for no stylesheet.
2023 - Removed "interpreted" element support.
2024 - Added support for "title_reference", "sidebar", "attribution",
2025 "rubric", and generic "admonition" elements.
2026 - Added "--attribution" option.
2027 - Added support for "inline", "subscript", "superscript" elements.
2028 - Added initial support for "abbreviation" and "acronym";
2031 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
2035 - Double quotes in literal blocks (special treatment for de/ngerman).
2036 - Added '--hyperlink-color' option ('0' turns off coloring of links).
2037 - Added "--attribution" option.
2038 - Right align attributions.
2040 * docutils/writers/pep_html.py:
2042 - Parameterized output encoding in PEP template.
2043 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2044 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2045 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2047 - Added an override on the "--footnote-references" option.
2048 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2049 - Added Docutils version to "generator" meta tag.
2050 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2054 - Added a "silent" setting for ``buildhtml.py``.
2055 - Added a "Getting Help" section.
2056 - Rearranged the structure.
2057 - Kept up to date, with new settings, command-line options etc.
2058 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2059 - Converted settings table into a definition list.
2061 * docs/rst/quickstart.txt:
2063 - Added a table of contents.
2064 - Added feedback information.
2065 - Added mention of minimum section title underline lengths.
2066 - Removed the 4-character minimum for section title underlines.
2068 * docs/rst/quickref.html:
2070 - Added a "Getting Help" section.
2071 - Added a style to make section title backlinks more subtle.
2072 - Added mention of minimum section title underline lengths.
2073 - Removed the 4-character minimum for section title underlines.
2075 * extras: Directory added to project; contains third-party modules
2076 that Docutils depends on (optparse, textwrap, roman). These are
2077 only installed if they're not already present.
2079 * licenses: Directory added to project; contains copies of license
2080 files for non-public-domain files.
2084 - Changed the focus. It's about DTD elements: structural
2085 relationships, semantics, and external (public) attributes. Not
2086 about the element class library.
2087 - Moved some implementation-specific stuff into ``docutils.nodes``
2089 - Wrote descriptions of all common attributes and parameter
2090 entities. Filled in introductory material.
2091 - Working through the element descriptions: 55 down, 37 to go.
2092 - Removed "Representation of Horizontal Rules" to
2093 spec/rst/alternatives.txt.
2095 * spec/docutils.dtd:
2097 - Added "generated" inline element.
2098 - Added "line_block" body element.
2099 - Added "auto" attribute to "title".
2100 - Changed content models of "literal_block" and "doctest_block" to
2102 - Added ``%number;`` attribute type parameter entity.
2103 - Changed ``%structural.elements;`` to ``%section.elements``.
2104 - Updated attribute types; made more specific.
2105 - Added "address" bibliographic element.
2106 - Added "line" attribute to ``system_message`` element.
2107 - Removed "field_argument" element; "field_name" may contain
2108 multiple words and whitespace.
2109 - Changed public identifier to docutils.sf.net.
2110 - Removed "interpreted" element; added "title_reference",
2111 "abbreviation", "acronym".
2112 - Removed "refuri" attribute from "footnote_reference" and
2113 "citation_reference".
2114 - Added "sidebar", "rubric", "attribution", "admonition",
2115 "superscript", "subscript", and "inline" elements.
2117 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2119 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2121 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2123 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2126 * spec/transforms.txt: Added to project.
2128 * spec/howto: Added subdirectory, for developer how-to docs.
2130 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2131 Elza, edited & extended by David Goodger.
2133 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2136 * spec/rst/alternatives.txt:
2138 - Added "Doctree Representation of Transitions" from
2140 - Updated "Inline External Targets" & closed the debate.
2141 - Added ideas for interpreted text syntax extensions.
2142 - Added "Nested Inline Markup" section.
2144 * spec/rst/directives.txt:
2146 - Added directives: "topic", "sectnum", "target-notes",
2147 "line-block", "parsed-literal", "include", "replace", "sidebar",
2148 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2150 - Formalized descriptions of directive details.
2151 - Added an "align" attribute to the "image" & "figure" directives
2152 (by Adam Chodorowski).
2153 - Added "class" options to "topic", "sidebar", "line-block",
2154 "parsed-literal", "contents", and "image"; and "figclass" to
2157 * spec/rst/interpreted.txt: Added to project. Descriptions of
2158 interpreted text roles.
2160 * spec/rst/introduction.txt:
2162 - Added pointers to material for new users.
2164 * spec/rst/reStructuredText.txt:
2166 - Disambiguated comments (just add a newline after the "::").
2167 - Updated enumerated list description; added a discussion of the
2168 second-line validity checking.
2169 - Updated directive description.
2170 - Added a note redirecting newbies to the user docs.
2171 - Expanded description of inline markup start-strings in non-markup
2173 - Removed field arguments and made field lists a generic construct.
2174 - Removed the 4-character minimum for section title underlines.
2175 - Clarified term/classifier delimiter & inline markup ambiguity
2177 - Added "Embedded URIs".
2178 - Updated "Interpreted Text" section.
2179 - Added "Character-Level Inline Markup" section.
2181 * test: Continually adding & updating tests.
2183 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2184 - Moved test/test_pep/ to test/test_readers/test_pep/.
2185 - Added test/test_readers/test_python/.
2186 - Added test/test_writers/ (Engelbert Gruber).
2190 - Made the ``locale.setlocale()`` calls in front ends
2193 * tools/buildhtml.py:
2195 - Added "--silent" option.
2196 - Fixed bug with absolute paths & "--config".
2197 - Updated for new I/O classes.
2198 - Added some exception handling.
2199 - Separated publishers' setting defaults; prevents interference.
2200 - Updated for new ``publish_file()`` convenience function.
2202 * tools/pep-html-template:
2204 - Allow for "--embed-stylesheet".
2205 - Added Docutils version to "generator" meta tag.
2206 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2207 - Conform to XHTML spec.
2209 * tools/pep2html.py:
2211 - Made ``argv`` a parameter to ``main()``.
2212 - Added support for "Content-Type:" header & arbitrary PEP formats.
2213 - Linked "Content-Type: text/plain" to PEP 9.
2214 - Files skipped (due to an error) are not pushed onto the server.
2215 - Updated for new I/O classes.
2216 - Added ``check_requirements()`` & ``pep_type_error()``.
2217 - Added some exception handling.
2218 - Updated for new ``publish_string()`` convenience function.
2219 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2221 * tools/quicktest.py:
2223 - Added "-V"/"--version" option.
2225 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2227 * tools/unicode2rstsubs.py: Added to project. Produces character
2228 entity files (reSructuredText substitutions) from the MathML master
2231 * tools/editors: Support code for editors, added to project. Contains
2232 ``emacs/restructuredtext.el``.
2234 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2236 - Added style for chunks of inline literals.
2237 - Removed margin for first child of table cells.
2238 - Right-aligned field list names.
2239 - Support for auto-numbered section titles in TOCs.
2240 - Increased the size of inline literals (<tt>) in titles.
2241 - Restored the light gray background for inline literals.
2242 - Added support for "line_block" elements.
2243 - Added style for "address" elements.
2244 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2245 - Improved field list rendering.
2246 - Vertical whitespace improvements.
2247 - Removed "a.target" style.
2249 * tools/stylesheets/pep.css:
2251 - Fixed nested section margins.
2252 - Other changes parallel those of ``../default.css``.
2255 Release 0.2 (2002-07-31)
2256 ========================
2260 - The word "component" was being used ambiguously. From now on,
2261 "component" will be used to mean "Docutils component", as in Reader,
2262 Writer, Parser, or Transform. Portions of documents (Table of
2263 Contents, sections, etc.) will be called "document parts".
2264 - Did a grand renaming: a lot of ``verylongnames`` became
2265 ``very_long_names``.
2266 - Cleaned up imports: no more relative package imports or
2267 comma-separated lists of top-level modules.
2268 - Added support for an option values object which carries default
2269 settings and overrides (from command-line options and library use).
2270 - Added internal Unicode support, and support for both input and
2272 - Added support for the ``docutils.io.IO`` class & subclasses.
2276 * docutils/__init__.py:
2278 - Added ``ApplicationError`` and ``DataError``, for use throughout
2280 - Added ``Component`` base class for Docutils components; implements
2281 the ``supports`` method.
2282 - Added ``__version__`` (thus, ``docutils.__version__``).
2286 - Removed many keyword parameters to ``Publisher.__init__()`` and
2287 ``publish()``; bundled into an option values object. Added
2288 "argv", "usage", "description", and "option_spec" parameters for
2289 command-line support.
2290 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2292 - Reworked I/O model for ``docutils.io`` wrappers.
2293 - Updated ``Publisher.set_options()``; now returns option values
2295 - Added support for configuration files (/etc/docutils.conf,
2296 ./docutils.conf, ~/.docutils).
2297 - Added ``Publisher.setup_option_parser()``.
2298 - Added default usage message and description.
2300 * docutils/frontend.py: Added to project; support for front-end
2301 (command-line) scripts. Option specifications may be augmented by
2302 components. Requires Optik (http://optik.sf.net/) for option
2303 processing (installed locally as docutils/optik.py).
2305 * docutils/io.py: Added to project; uniform API for a variety of input
2308 * docutils/nodes.py:
2310 - Added ``TreeCopyVisitor`` class.
2311 - Added a ``copy`` method to ``Node`` and subclasses.
2312 - Added a ``SkipDeparture`` exception for visitors.
2313 - Renamed ``TreePruningException`` from ``VisitorException``.
2314 - Added docstrings to ``TreePruningException``, subclasses, and
2316 - Improved docstrings.
2317 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2318 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2320 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2321 ``PreDecorative`` mixin.
2322 - Reworked the name/id bookkeeping; to ``document``, removed
2323 ``explicit_targets`` and ``implicit_targets`` attributes, added
2324 ``nametypes`` attribute and ``set_name_id_map`` method.
2325 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2327 - Added ``document.has_name()`` method.
2328 - Fixed DOM generation for list-attributes.
2329 - Added category class ``Labeled`` (used by footnotes & citations).
2330 - Added ``Element.set_class()`` method (sets "class" attribute).
2332 * docutils/optik.py: Added to project. Combined from the Optik
2333 package, with added option groups and other modifications. The use
2334 of this module is probably only temporary.
2336 * docutils/statemachine.py:
2338 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2339 - Added underscores to improve many awkward names.
2340 - In ``string2lines()``, changed whitespace normalizing translation
2341 table to regexp; restores Python 2.0 compatibility with Unicode.
2343 * docutils/urischemes.py:
2345 - Filled in some descriptions.
2346 - Added "shttp" scheme.
2348 * docutils/utils.py:
2350 - Added ``clean_rcs_keywords`` function (moved from
2351 docutils/transforms/frontmatter.py
2352 ``DocInfo.filter_rcs_keywords``).
2353 - Added underscores to improve many awkward names.
2354 - Changed names of Reporter's thresholds:
2355 warning_level -> report_level; error_level -> halt_level.
2356 - Moved ``utils.id()`` to ``nodes.make_id()``.
2357 - Added ``relative_path(source, target)``.
2359 * docutils/languages/de.py: German mappings; added to project. Thanks
2360 to Gunnar Schwant for the translations.
2362 * docutils/languages/en.py: Added "Dedication" bibliographic field
2365 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2368 * docutils/parsers/rst/states.py:
2370 - Added underscores to improve many awkward names.
2371 - Added RFC-2822 header support.
2372 - Extracted the inline parsing code from ``RSTState`` to a separate
2373 class, ``Inliner``, which will allow easy subclassing.
2374 - Made local bindings for ``memo`` container & often-used contents
2375 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2376 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2377 - Added ``MarkupMismatch`` exception; for late corrections.
2378 - Added ``-/:`` characters to inline markup's start string prefix,
2379 ``/`` to end string suffix.
2380 - Fixed a footnote bug.
2381 - Fixed a bug with literal blocks.
2382 - Applied patch from Simon Budig: simplified regexps with symbolic
2383 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2384 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2385 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2386 - Allowed non-ASCII in "simple names" (directive names, field names,
2388 - Converted ``Inliner.patterns.initial`` to be dynamically built
2389 from parts with ``build_regexp()`` function.
2390 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2391 - Updated docstrings.
2392 - Changed "table" to "grid_table"; added "simple_table" support.
2394 * docutils/parsers/rst/tableparser.py:
2396 - Changed ``TableParser`` to ``GridTableParser``.
2397 - Added ``SimpleTableParser``.
2398 - Refactored naming.
2400 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2401 a fallback language for directive names.
2403 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2404 directive to use a ``pending`` element, used only by HTML writers.
2406 * docutils/parsers/rst/directives/parts.py: Renamed from
2409 - Added "backlinks" attribute to "contents" directive.
2411 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2412 project by Adam Chodorowski.
2414 * docutils/readers/__init__.py: Gave Readers more control over
2415 choosing and instantiating Parsers.
2417 * docutils/readers/pep.py: Added to project; for PEP processing.
2419 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2420 requires a ``component`` parameter.
2422 * docutils/transforms/components.py: Added to project; transforms
2423 related to Docutils components.
2425 * docutils/transforms/frontmatter.py:
2427 - In ``DocInfo.extract_authors``, check for a single "author" in an
2428 "authors" group, and convert it to a single "author" element.
2429 - Added support for "Dedication" and generic bibliographic fields.
2431 * docutils/transforms/peps.py: Added to project; PEP-specific.
2433 * docutils/transforms/parts.py: Renamed from old components.py.
2435 - Added filter for `Contents`, to use alt-text for inline images,
2436 and to remove inline markup that doesn't make sense in the ToC.
2437 - Added "name" attribute to TOC topic depending on its title.
2438 - Added support for optional TOC backlinks.
2440 * docutils/transforms/references.py: Fixed indirect target resolution
2441 in ``Hyperlinks`` transform.
2443 * docutils/transforms/universal.py:
2445 - Changed ``Messages`` transform to properly filter out system
2446 messages below the warning threshold.
2447 - Added ``Decorations`` transform (support for ``--generator``,
2448 ``--date``, ``--time``, ``--source-link`` options).
2450 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2451 Engelbert Gruber's PDF writer.
2453 * docutils/writers/html4css1.py:
2455 - Made XHTML-compatible (switched to lowercase element & attribute
2456 names; empty tag format).
2457 - Escape double-dashes in comment text.
2458 - Improved boilerplate & modularity of output.
2459 - Exposed modular output in Writer class.
2460 - Added a "generator" meta tag to <head>.
2461 - Added support for the ``--stylesheet`` option.
2462 - Added support for ``decoration``, ``header``, and ``footer``
2464 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2465 translation table to regexp; restores Python 2.0 compatibility
2467 - Added the translator class as instance variable to the Writer, to
2468 make it easily subclassable.
2469 - Improved option list spacing (thanks to Richard Jones).
2470 - Modified field list output.
2471 - Added backlinks to footnotes & citations.
2472 - Added percentage widths to "<col>" tags (from colspec).
2473 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2474 "<span>" changed to "<var>".
2475 - Inline literals: "<code>" changed to "<tt>".
2476 - Many changes to optimize vertical space: compact simple lists etc.
2477 - Add a command-line options & directive attributes to control TOC
2478 and footnote/citation backlinks.
2479 - Added support for optional footnote/citation backlinks.
2480 - Added support for generic bibliographic fields.
2481 - Identify backrefs.
2482 - Relative URLs for stylesheet links.
2484 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2485 PEPs (subclass of ``html4css1.Writer``).
2487 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2489 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2490 of the Docutils internal doctree in XML.
2492 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2496 - Changed the title to "The Docutils Document Tree".
2497 - Added "Hyperlink Bookkeeping" section.
2499 * spec/docutils.dtd:
2501 - Added ``decoration``, ``header``, and ``footer`` elements.
2502 - Brought ``interpreted`` element in line with the parser: changed
2503 attribute "type" to "role", added "position".
2504 - Added support for generic bibliographic fields.
2506 * spec/notes.txt: Continual updates. Added "Project Policies".
2508 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2511 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2513 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2514 mailing list discussions.
2516 * spec/pep-0287.txt:
2518 - Renamed to "reStructuredText Docstring Format".
2520 - Reworked Q&A as an enumerated list.
2521 - Converted to reStructuredText format.
2523 * spec/pysource.dtd:
2525 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2527 * spec/pysource.txt: Removed from project. Moved much of its contents
2530 * spec/rst/alternatives.txt:
2532 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2533 - Added "Inline External Targets" section.
2535 * spec/rst/directives.txt:
2537 - Added "backlinks" attribute to "contents" directive.
2539 * spec/rst/problems.txt:
2541 - Updated the Enumerated List Markup discussion.
2542 - Added new alternative table markup syntaxes.
2544 * spec/rst/reStructuredText.txt:
2546 - Clarified field list usage.
2547 - Updated enumerated list description.
2548 - Clarified purpose of directives.
2549 - Added ``-/:`` characters to inline markup's start string prefix,
2550 ``/`` to end string suffix.
2551 - Updated "Authors" bibliographic field behavior.
2552 - Changed "inline hyperlink targets" to "inline internal targets".
2553 - Added "simple table" syntax to supplement the existing but
2554 newly-renamed "grid tables".
2555 - Added cautions for anonymous hyperlink use.
2556 - Added "Dedication" and generic bibliographic fields.
2558 * test: Made test modules standalone (subdirectories became packages).
2560 * test/DocutilsTestSupport.py:
2562 - Added support for PEP extensions to reStructuredText.
2563 - Added support for simple tables.
2564 - Refactored naming.
2566 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2568 - Now supports true packages containing test modules
2569 (``__init__.py`` files required); fixes duplicate module name bug.
2571 * test/test_pep/: Subpackage added to project; PEP testing.
2573 * test/test_rst/test_SimpleTableParser.py: Added to project.
2577 - Updated html.py and publish.py front-end tools to use the new
2578 command-line processing facilities of ``docutils.frontend``
2579 (exposed in ``docutils.core.Publisher``), reducing each to just a
2581 - Added ``locale.setlocale()`` calls to front-end tools.
2583 * tools/buildhtml.py: Added to project; batch-generates .html from all
2584 the .txt files in directories and subdirectories.
2586 * tools/default.css:
2588 - Added support for ``header`` and ``footer`` elements.
2589 - Added styles for "Dedication" topics (biblio fields).
2591 * tools/docutils.conf: A configuration file; added to project.
2593 * tools/docutils-xml.py: Added to project.
2595 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2597 * tools/pep-html-template: Added to project.
2599 * tools/pep2html.py: Added to project from Python (nondist/peps).
2600 Added support for Docutils (reStructuredText PEPs).
2602 * tools/quicktest.py:
2604 - Added the ``--attributes`` option, hacked a bit.
2605 - Added a second command-line argument (output file); cleaned up.
2607 * tools/stylesheets/: Subdirectory added to project.
2609 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2612 Release 0.1 (2002-04-20)
2613 ========================
2615 This is the first release of Docutils, merged from the now inactive
2616 reStructuredText__ and `Docstring Processing System`__ projects. For
2617 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2618 `DPS HISTORY`__ files.
2620 __ http://structuredtext.sourceforge.net/
2621 __ http://docstring.sourceforge.net/
2622 __ http://structuredtext.sourceforge.net/HISTORY.html
2623 __ http://docstring.sourceforge.net/HISTORY.html
2625 General changes: renamed 'dps' package to 'docutils'; renamed
2626 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2627 the test suites (reStructuredText's test/test_states renamed to
2628 test/test_rst); and all modifications required to make it all work.
2630 * docutils/parsers/rst/states.py:
2632 - Improved diagnostic system messages for missing blank lines.
2633 - Fixed substitution_reference bug.
2639 indent-tabs-mode: nil
2640 sentence-end-double-space: t