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 -- Fix ``--local`` switch.
24 Release 0.7 (2010-07-07)
25 ========================
29 - Fix [ 2881769 ] setup configuration.
30 - Fix [ 2788716 ] reporting problems in included files.
34 - FileInput opens files as text files with universal newline support
35 (mode "rU", configurable with the new optional argument "mode").
39 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
43 - Fix [ 2923723 ] let decode_path() tolerate path == None
45 * docutils/writers/html4css1/__init__.py
47 - Support SVG and SWF images (thanks to Stefan Rank).
48 - Generate valid XHTML for centered images with targets.
49 Use CSS classes instead of "align" tags for image alignment.
51 * docutils/writers/latex2e/__init__.py
53 - Use `transforms.writer_aux.Admonitions` to "normalize" special
55 - Use the ``\url`` command for URLs (breaks long URLs instead of
56 writing into the margin).
57 - Preserve runs of spaces in `inline literals`__.
58 - Deprecate ``figure_footnotes`` setting.
59 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
60 - New ``latex_preamble`` setting.
61 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
62 - Fix hyperlink targets (labels) for images, figures, and tables.
63 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
64 - Apply [ 2961991 ] Call hyperref with unicode option.
65 - Drop the special `output_encoding`__ default ("latin-1").
66 The Docutils wide default (usually "UTF-8") is used instead.
67 - Render inline markup in document title and subtitle.
68 - Fix numbering depth with LaTeX section numbering.
69 - Update Unicode -> LaTeX translations.
70 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
72 __ docs/ref/restructuredtext.html#inline-literals
73 __ docs/user/config.html#docutils-footnotes
74 __ docs/user/config.html#output_encoding
76 * docutils/writers/manpage.py
78 - Fix: supported attribute (thanks to peter2108).
79 - Remove trailing blanks in code (keep in sync with mercurial version).
80 - Titles level 1, that is ``.SH``, always uppercase.
81 - Apply patch from mg: literal text should be bold in man-pages.
85 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
90 - Python 3 support: copy test/ and tools/ to the build-dir
91 and convert Python sources with 2to3.
94 Release 0.6 (2009-10-11)
95 ========================
99 - Docutils is now compatible with Python versions from 2.3 up to 2.6
100 and convertible to 3.1 code.
102 + Node.__nonzero__ returns True instead of 1.
103 + use os.walk instead os.path.walk.
104 + minimize "types" module where possible.
105 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
106 + Text nodes now subclass unicode rather than UserString
107 (which is gone in python 3.0).
108 + 3.0 compatibility module docutils._compat
110 + Drop 2.2 compatibility workarounds.
111 + Drop extras/optparse.py and extras/textwrap.py
112 (stdlib modules since 2.3).
114 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
115 - Unix man page export: manpage writer moved from sandbox to Doctutils
118 - Apply [ 1719345 ] Galician translation
119 - Apply [ 1905741 ] Polish translation
120 - Apply [ 1878977 ] make_id(): deaccent characters.
121 - Apply [ 2029251 ] return nonzero when tests fail.
122 - Fix [ 1692788 ] allow UTF-8 in style sheets.
123 - Fix [ 2781629 ] support non-ASCII chars in file names.
124 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
125 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
126 - Fix [ 2821266 ] --strict option works now like --halt=info.
127 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
128 - Fix [ 1627229 ] hyperlink references in substitutions.
130 - The "newlatex" writer is orphaned.
134 - Documented Unicode characters allowed as inline markup openers,
135 closers, and delimiters.
136 - Allow units for all length specifications.
137 - Allow percent sign in "scale" argument of "figure" and "image" directives.
138 - Bugfix: The "figalign" argument of a figure now works as intended
139 (aligning the figure, not its contents).
140 - Align images with class "align-[right|center|left]"
141 (allows setting the alignment of an image in a figure).
145 - Added ``Element.__contains__`` method, for the in-operator.
147 * docutils/parsers/rst/states.py:
149 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
150 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
151 " " (non-breaking space), and "¡ ¿" openers.
153 * docutils/parsers/directives/misc.py:
155 - Added ``start-line`` and ``end-line`` options to "include"
156 directive to select a range of lines.
157 - Hard tabs in literal inclusions are replaced by spaces. This is
158 configurable via the new ``tab-width`` option of the "include" directive
159 (a negative tab-width prevents tab expansion).
163 - Add ``get_stylesheet_list`` function.
164 - Apply [ 2834836 ] print info at halt
166 * docutils/transforms/universal.py:
168 - Raise default priority of StripClasses to exclude stripped classes from
171 * docutils/writers/html4css1/__init__.py:
173 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
174 separated list of stylesheets.
175 - Address [ 1938891 ] Inline literal text creates "pre" span only when
176 needed to prevent inter-word line wraps.
177 - Use `translate` method instead of repeated `replace` calls.
178 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
179 classes to allow CSS styling that does not interfere with other
180 table-using constructs (field lists, citations, ...).
182 * docutils/writers/newlatex2e/__init__.py:
184 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
186 * docutils/writers/latex2e/__init__.py (see also
187 `<docs/user/docutils-05-compat.sty.html>`__) :
189 - Add ``--embed-stylesheet`` option.
190 - Apply [ 1474017 ] image vertical alignment is reversed.
191 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
192 - Change: has_key for dictionaries (not Nodes) to in-operator.
193 - Merge adjacent citations into one latex cite command.
194 - Failsave implementation of custom roles. LaTeX compilation now ignores
195 unknown classes instead of aborting with an error.
196 - Support custom roles based on standard roles.
197 - LaTeX packages can be used as ``--stylesheet`` arguments without
198 restriction. (A style sheet is now referenced with the ``\usepackage``
199 command, if it ends with ``.sty`` or has no extension.)
200 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
201 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
202 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
203 2005-02-04 as a configurable length unit).
204 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
205 if font-encoding is set to ''. LaTeX defaults to OT1 then.
206 - Set sub- and superscript role argument in text mode not as math.
207 Use a custom role based on sub-/superscript if you want italic shape.
208 - Shorter preamble and less dependencies: Load packages and define macros
209 only if required in the document.
210 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
211 - New custom environments and commands with optional "classes" argument.
212 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
213 - Better conformance to Docutils specifications with ``--use-latex-toc``.
214 Support for LaTeX generated ToC also with unnumbered sections.
215 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
216 section numbering by LaTeX.
217 - Use default font in admonitions and sidebar.
218 - Align of image in a figure defaults to 'center'.
219 - Bugfix: Newlines around targets and references prevent run-together
221 - Fix internal hyperlinks.
222 - Use class defaults for page margins ('typearea' now optional).
223 - Float placement made configurable, default changed to "here definitely".
224 - Typeset generic topic as "quote block with title".
225 - Use template (file and configuration option).
226 - In the default template, load cmap.sty (fix text extraction in PDF) and
227 fixltx2e.sty (LaTeX patches, \textsubscript).
228 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
229 - Use `translate` instead of repeated `replace` calls for text encoding.
230 - Hyperlinked footnotes and support for symbol footnotes and
231 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
232 - Complete pairs of binary options
233 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
234 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
236 - font-encoding: "T1" (formerly implicitely set by 'ae').
237 - use-latex-toc: true (ToC with page numbers).
238 - use-latex-footnotes: true (no mixup with figures).
240 * docutils/writers/manpage.py
242 - Do not print version at document end, this is done by the viewer.
243 - Do not print date at document end, this is done by the viewer.
244 - Fix storage of docinfo fields for none standard fields.
246 * docutils/tools/rst2man.py
248 Release 0.5 (2008-06-25)
249 ========================
251 * docutils/languages/he.py: Added to project: Hebrew mappings by
254 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
255 mappings by Meir Kriheli.
257 * docutils/frontend.py:
259 - Configuration files are now assumed and required to be
261 - Paths of applied configuration files are now recorded in the
262 runtime setting ``_config_files`` (accessible via
263 ``--dump-settings``).
264 - Added ``--strip-elements-with-class`` and ``--strip-class``
265 options (``strip_elements_with_classes`` and ``strip_classes``
270 - Added code to determine the input encoding from data: encoding
271 declarations or the presence of byte order marks (UTF-8 & UTF-16).
272 - Added support for IronPython 1.0.
276 - Added ``document.__getstate__`` method, for pickling.
278 * docutils/parsers/rst/states.py:
280 - Allow ``+`` and ``:`` in reference names.
281 - Unquoted targets beginning with an underscore (``.. __target:
282 URI``) are no longer accepted.
283 - Added support for multiple attributions in a physical block quote
284 (indented text block), dividing it into multiple logical block
286 - Added support for unicode bullets in bullet lists: "•", "‣", and
288 - Added support for new object-oriented directive interface,
289 retaining compatibility to the old functional interface.
290 - Added support for throwing ``DirectiveError``'s from within
293 * docutils/parsers/rst/__init__.py:
295 - Added ``Directive`` base class.
296 - Added ``DirectiveError`` base class.
297 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
300 * docutils/parsers/directives/:
302 - Refactored all reStructuredText directives to use the new
303 object-oriented directive interface. Errors are now (mostly)
304 thrown using the new ``DirectiveError`` class.
306 * docutils/parsers/directives/misc.py:
308 - Added ``start-after`` and ``end-before`` options to ``include``
309 directive; thanks to Stefan Rank.
311 * docutils/transforms/universal.py:
313 - Added ``StripClassesAndElements`` transform to remove from the
314 document tree all elements with classes in
315 ``settings.strip_elements_with_classes`` and all "classes"
316 attribute values in ``self.document.settings.strip_classes``.
318 * docutils/transforms/writer_aux.py:
320 - Added ``Admonitions`` transform to transform specific admonitions
321 (like ``note``, ``warning``, etc.) into generic admonitions with a
324 * docutils/writers/html4css1/__init__.py:
326 - Moved template functionality from the PEP/HTML writer here.
327 - Expanded the fragments available in the ``parts`` attribute.
328 - Moved ``id`` attributes from titles to surrounding ``div``
330 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
331 universally supported now).
332 - ``template.txt`` is now opened in text mode instead of binary mode
333 (to ensure Windows compatibility).
334 - ``a`` elements now have an "internal" or "external" class,
335 depending on reference type.
337 * docutils/writers/html4css1/template.txt: Added to project.
339 * docutils/writers/pep_html/:
341 - Moved template functionality to the HTML writer.
343 * docutils/writers/s5_html/__init__.py:
345 - Added ``view_mode`` & ``hidden_controls`` settings
346 (``--view-mode`` & ``--hidden-controls/--visible-controls``
349 * docutils/writers/latex2e/__init__.py:
351 - Add ``--literal-block-env``
352 - Fix: escaping ``%`` in href urls.
353 - Move usepackage hyperref after stylesheet inclusion.
354 - Fix: scrartcl does not have chapter but scrreprt.
355 - Add newline after ``\end{verbatim}``.
356 - Merge smaller differences from latex2e_adaptive_preamble.
357 - Add ``use-part-section``.
358 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
359 - Using leavemode option_list no longer needs to check if parent
360 is a definition list.
361 - Append ``\leavemode`` to definition list terms.
362 - No longer write visit\_/depart_definition_list_item comments to
364 - Table column width with 3 decimal places.
365 - Add table stubs support (boldfont).
366 - Add assemble_parts to writer.
367 - Add simply support for nested tables.
368 - Fix verbatim in tables if use-verbatim-when-possible.
369 - Use section commands down to subparagraph.
370 - Put ensuremath around some latin1 chars.
371 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
372 - New option ``--use-bibtex=style,db1,db2``.
373 - New option ``--reference-label`` to allow usage of LaTeX ref for
374 labels in section references.
375 - Add a label after every section to support sectionnumbers as reference
377 - Fix: bug# 1605376 rst2latex: bad options group list
378 - Remove inactive code for use_optionlist_for_option_list.
379 - Remove latex comments from option_list output.
380 - Fix: bug# 1612270 double qoutes in italian literal.
381 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
382 - Add option --use-latex-abstract.
383 - Image width unit ``px`` is translated to ``pt``.
384 - Add image height support.
385 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
387 - Fix: Do not escape underscores in citation reference labels if
388 use-latex-citations is set.
389 - Use centering instead of center for figure contents, to avoid vertical
391 - Recognize table class: borderless, nolines, booktabs, standard.
392 - Fix: Renaming contents section does not work with latex writer; SF
394 - Applied patch for custom roles with classes from Edward Loper.
395 - Fixed bug that caused crashes with more than 256 lists.
397 * docutils/writers/pep_html/__init__.py:
399 - Changed to support new python.org website structure and
402 * docs/howto/security.txt: "Deploying Docutils Securely", added to
405 * tools/buildhtml.py:
407 -- Added ``ignore`` setting to exclude a list of shell patterns
408 (default: ``.svn:CVS``).
410 * tools/editors/emacs/rst.el:
412 - Changed license to "GPL".
413 - Added ``rst-straighten-decorations`` function.
414 - The ``compile`` module is now always loaded.
415 - Added ``rst-toggle-line-block`` function.
416 - Headings consisting only of non-ASCII characters are now
417 recognized by ``rst-toc`` and ``rst-adjust``.
418 - Added font-lock support for multi-line comments where the first
419 comment line is empty.
420 - Added ``(require 'font-lock)``.
424 - Provide descriptive error message if distutils is missing.
427 Release 0.4 (2006-01-09)
428 ========================
432 - Updated the project policies for trunk/branch development &
435 * docutils/__init__.py:
437 - Added ``__version_details__`` attribute to describe code source
438 (repository/snapshot/release).
439 - Replaced ``default_transforms`` attribute of TransformSpec with
440 ``get_transforms()`` method.
444 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
445 functions, for document tree extraction and reprocessing.
449 - Added ``DocTreeInput`` class, for reprocessing existing documents.
450 - Added support for non-Unicode (e.g. binary) writer output.
454 - Re-introduced ``Targetable.indirect_reference_name``, for
455 MoinMoin/reST compatibility (removed in r3124/r3129).
456 - Added ``serial_escape`` function; escapes string values that are
457 elements of a list, for serialization. Modified Docutils-XML
458 writing (``Element._dom_node``) and pseudo-XML writing
459 (``Element.starttag``) to use ``serial_escape``.
460 - Added ``Node.deepcopy()`` method.
461 - Removed the internal lists ``document.substitution_refs``,
462 ``document.anonymous_refs``, and ``document.anonymous_targets``.
463 - Added a "container" element.
464 - Fixed bug where values of list-valued attributes of elements
465 originating from custom interpreted text roles (i.e., with custom
466 classes) were being shared between element instances. Reported by
469 * docutils/statemachine.py:
471 - Added trailing whitespace stripping to ``string2lines()``.
472 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
473 Asian double-width character support.
477 - Added ``east_asian_column_width()`` for double-width character
480 * docutils/languages/ja.py: Added to project: Japanese mappings by
483 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
484 mappings by Panjunyong.
486 * docutils/parsers/null.py: Added to project; a do-nothing parser.
488 * docutils/parsers/rst/__init__.py:
490 - Added validator to tab_width setting, with test. Closes SF bug
491 #1212515, report from Wu Wei.
493 * docutils/parsers/rst/states.py:
495 - Fixed bug with escaped colons indicating a literal block.
496 - Fixed bug with enumerated lists (SF#1254145).
497 - Backslash-escaped colons inside of field names are now allowed.
498 - Targets (implicit and explicit), anonymous hyperlink references
499 and auto-numbered footnote references inside of substitution
500 definitions are now disallowed.
501 - Fixed bug: list items with blank first lines.
502 - Fixed bug: block quote attributions with indented second lines.
503 - Added East Asian double-width character support (Python 2.4 only).
505 * docutils/parsers/rst/tableparser.py:
507 - Added East Asian double-width character support (Python 2.4 only).
509 * docutils/parsers/rst/directives/body.py:
511 - Added the "container" directive.
513 * docutils/parsers/rst/directives/misc.py:
515 - Added the "default-role", "title", and "date" directives.
516 - Added standard data file syntax to the "include" directive.
517 - Added support for "class" directive content.
519 * docutils/parsers/rst/directives/images.py:
521 - Added ``indirect_reference_name`` support for images with a target
523 - Added support for image width and height units.
524 - Fixed bug with image "target" options.
526 * docutils/parsers/rst/directives/references.py:
528 - Added "class" attribute to "target-notes" directive, for
529 footnote_reference classes.
531 * docutils/parsers/rst/include/: Directory added to project; contains
532 standard data files for the "include" directive. Initial contents:
533 character entity substitution definition sets, and a set of
534 definitions for S5/HTML presentations.
536 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
537 mappings by David Goodger.
539 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
540 Simplified Chinese mappings by Panjunyong.
542 * docutils/readers/__init__.py:
544 - Added universal.Decorations and universal.ExposeInternals
545 transforms as default transforms for all readers.
546 - Added ``ReReader`` base class for readers that reread an existing
549 * docutils/readers/doctree.py: Added to project; a reader for existing
552 * docutils/transforms/frontmatter.py:
554 - Fixed the DocInfo transform to handle SVN-style expansion of the
556 - In ``DocInfo.extract_authors``, treat the contents of "authors"
559 * docutils/transforms/misc.py:
561 - Added misc.Transitions transform, extracted from
562 universal.FinalChecks.
564 * docutils/transforms/references.py:
566 - Added references.DanglingReferences transform, extracted from
567 universal.FinalChecks.
568 - Fixed bug with doubly-indirect substitutions.
569 - Added footnote_reference classes attribute to "TargetNotes".
570 - Fixed bug with circular substitution definitions that put Docutils
571 into an infinite loop.
573 * docutils/transforms/universal.py:
575 - Added universal.ExposeInternals transform, extracted from
576 universal.FinalChecks.
577 - Removed universal.FinalChecks transform (logic has been moved to
578 several new transforms).
579 - Fixed bug with the "expose_internals" setting and Text nodes
580 (exposed by the "rawsource" internal attribute).
581 - Added the universal.StripComments transform, implementation of the
582 "strip_comments" setting.
584 * docutils/transforms/writer_aux.py: Added to project; auxiliary
585 transforms for writers.
587 - Added ``Compound`` transform, which flattens compound paragraphs.
589 * docutils/writers/: Several writer modules (html4css1.py) were
590 converted into packages. Support modules and data files have been
591 moved into the packages. The stylesheets for the HTML writers are
592 now installed along with the code, the code knows where to find
593 them, and the default is to use them (actually, to embed them).
594 Some adjustments to configuration files may be necessary. The
595 easiest way to obtain the new default behavior is to remove all
596 settings whose name includes "stylesheet".
598 * docutils/writers/__init__.py:
600 - Added universal.Messages and universal.FilterMessages transforms
601 as default transforms for all writers.
602 - Added ``UnfilteredWriter`` base class for writers that pass the
603 document tree on unchanged.
605 * docutils/writers/docutils_xml.py:
607 - Made ``xmlcharrefreplace`` the default output encoding error
610 * docutils/writers/html4css1/:
612 - Added support for image width and height units.
613 - Made ``xmlcharrefreplace`` the default output encoding error
615 - Made ``--embed-stylesheet`` the default rather than
616 ``--link-stylesheet``.
617 - Moved "id" attribute from container (section etc.) to title's <a>
618 tag, to be on the same tag as "name".
619 (!!! To be reverted in Docutils 0.5.)
620 - Added vertical space between fields of field lists.
621 - Added ``--compact-field-lists`` option to remove vertical space in
623 - Made cloaking of email addresses with ``--cloak-email-addresses``
625 - Fixed support for centered images.
626 - Added support for class="compact" & class="open" lists.
628 * docutils/writers/latex2e/:
630 - Underscores in citekeys are no longer escaped.
632 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
633 mapping of Unicode characters to LaTeX equivalents.
635 * docutils/writers/s5_html/: Package added to project; writer for
638 * docs/dev/distributing.txt: Added to project; guide for distributors
639 (package maintainers).
641 * docs/dev/hacking.txt: Added to project; guide for developers.
643 * docs/ref/doctree.txt:
645 - Updated for plural attributes "classes", "ids", "names",
647 - Added the "container" element.
649 * docs/ref/docutils.dtd:
651 - Updated for plural attributes "classes", "ids", "names",
654 * docs/user/emacs.txt: Added to project; a document about Emacs
655 support for reStructuredText and Docutils.
657 * docs/user/links.txt: Added to project; lists of Docutils-related
660 * docs/user/mailing-lists.txt: Added to project; information about
661 Docutils-related mailing lists and how to access them.
663 * docs/user/slide-shows.txt: Added to project; example of and docs for
664 the S5/HTML writer (``rst2s5.py`` front end).
666 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
667 Files", added to project.
669 * test/coverage.sh: Added to project; test coverage script.
671 * test/DocutilsTestSupport.py:
673 - Added support for specifying runtime settings at the suite level.
675 * test/test_functional.py:
677 - Added the ``clear_output_directory`` function.
678 - Added support for ``_test_more`` functions in functional test
681 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
683 * tools/rstpep2html.py: Renamed from pep.py.
685 * tools/dev/create_unimap.py: Added to project; script to create the
686 docutils/writers/unimap_latex.py mapping file.
688 * tools/dev/profile_docutils.py: Added to project; profiler script.
690 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
692 * tools/editors/emacs/restructuredtext.el,
693 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
694 Removed from project; the functionality is now contained in rst.el.
696 * tools/editors/emacs/rst.el: Added to project. Added many features
697 and fixed many bugs. See docs/user/emacs.txt for details.
699 * tools/stylesheets: Removed from project. Stylesheets have been
700 renamed and moved into writer packages.
703 Release 0.3.9 (2005-05-26)
704 ==========================
708 - Eliminated and replaced all uses of the old string attributes
709 ``id``, ``name``, ``dupname`` and ``class`` with references to the
710 new list attributes ``ids``, ``names``, ``dupnames`` and
711 ``classes`` throughout the whole source tree.
715 - Enabled ``--dump-*`` options when ``--traceback`` specified,
716 allowing for easier debugging.
717 - In ``Publisher.publish()``, expanded the generic top-level
720 * docutils/examples.py:
722 - Added ``internals`` function for exploration.
726 - Fixed ``Input.decode`` method to apply heuristics only if no
727 encoding is explicitly given, and to provide better reporting of
729 - The ``Input.decode`` method now removes byte order marks (BOMs)
734 - ``image`` element class changed to subclass of Element, not
735 TextElement (it's an empty element, and cannot contain text).
736 - Added ``attr_defaults`` dictionary for default attribute values.
737 - Added empty list as default value for the following attributes:
738 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
739 - Added ``document.decoration`` attribute,
740 ``document.get_decoration`` method, and ``decoration.get_header``
741 & ``.get_footer`` methods.
742 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
747 - Removed ``docutils.utils.Reporter.categories``,
748 ``docutils.utils.ConditionSet``, and all references to them, to
749 simplify error reporting.
751 * docutils/languages/nl.py: Added to project; Dutch mappings by
754 * docutils/parsers/rst/__init__.py:
756 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
758 * docutils/parsers/rst/states.py:
760 - Added check for escaped at-mark to prevent email address recognition.
761 - Fixed option lists to allow spaces inside ``<angle-bracketed option
763 - Allowed whitespace in paths and URLs.
764 - Added auto-enumerated list items.
765 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
767 - Added support for table stub columns.
769 * docutils/parsers/rst/directives/__init__.py:
771 - Allowed whitespace in paths (``path`` function).
772 - Added ``uri`` directive option conversion function.
774 * docutils/parsers/rst/directives/body.py:
776 - Fixed illegal context bug with "topic" directive (allowed within
777 sidebars; not within body elements).
779 * docutils/parsers/rst/directives/images.py:
781 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
782 - Added support for the ``file_insertion_enabled`` setting in the
783 "figure" directive (disables "figwidth" option).
784 - "image" directive: added checks for valid values of "align" option,
785 depending on context. "figure" directive: added specialized
786 "align" option and attribute on "figure" element.
787 - Made ":figwidth: image" option of "figure" directive work again.
788 - Fixed bug with reference names containing uppercase letters
789 (e.g. ``Name_``) in "target" option of "image" directive.
791 * docutils/parsers/rst/directives/misc.py:
793 - Fixed "include" and "raw" directives to catch text decoding
795 - Allowed whitespace in "include" & "raw" directive paths.
796 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
797 settings in "include" & "raw" directives.
799 * docutils/parsers/rst/directives/parts.py:
801 - Added "header" & "footer" directives.
802 - Fixed illegal context bug with "contents" directive (topics
803 allowed within sidebars; not within body elements).
805 * docutils/parsers/rst/directives/tables.py:
807 - Added "list-table" directive.
808 - Caught empty CSV table bug.
809 - Added support for the ``file_insertion_enabled`` setting in the
810 "csv-table" directive.
811 - Added ``stub-columns`` option to "csv-table" and "list-table"
814 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
815 mappings by Martijn Pieters.
817 * docutils/readers/standalone.py:
819 - Added ``--section-subtitles`` and ``--no-section-subtitles``
820 options to activate or deactivate the SectSubTitle transform.
822 * docutils/transforms/frontmatter.py:
824 - Added SectSubTitle transform to promote titles of lone
825 subsections to subtitles.
827 * docutils/transforms/references.py:
829 - Fixed mislocated internal targets bug, by propagating internal
830 targets to the next node, making use of the newly added support
831 for multiple names and IDs.
832 - Fixed duplicate footnote label bug.
833 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
836 * docutils/writers/html4css1.py:
838 - Fixed unencoded stylesheet reference bug (characters like "&" in
839 stylesheet references).
840 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
842 - Added support for multiple IDs per node by creating empty ``span``
844 - Added the ``field_name_limit`` & ``option_limit`` settings &
846 - Added support for table stub columns.
847 - Added support for the ``align`` attribute on ``figure`` elements.
848 - Added the ``cloak_email_addresses`` setting & support.
849 - Added ``html_prolog``, ``html_head``, ``html_body``,
850 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
851 ``docutils.core.publish_parts``.
852 - Added support for section subtitles.
854 * docutils/writers/latex2e.py:
856 - Fixed tables starting with more than one multirow cell.
857 - Improved --use-latex-docinfo so that organization/contact/address
858 fields are lumped with the last author field and appear on the
860 - Made sure the titlepage is always shown with --use-latex-docinfo,
861 even if the document has no title.
862 - Made sure that latex doesn't fill in today's date if no date field
864 - Added support for section subtitles.
866 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
869 * docutils/writers/null.py: Added to project; a do-nothing Writer.
871 * docs/api/publisher.txt:
873 - Added "``publish_parts`` Details" section.
875 * docutils/dev/repository.txt: Added to project; information about the
876 Docutils Subversion repository.
878 * docs/ref/docutils.dtd:
880 - Added a ``stub`` attribute to the ``colspec`` element via the
881 ``tbl.colspec.att`` parameter entity.
882 - Allowed topic elements within sidebars
883 - Added an ``align`` attribute to the ``figure`` element.
885 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
889 Release 0.3.7 (2004-12-24)
890 ==========================
892 * docutils/frontend.py:
894 - Added options: --input-encoding-error-handler,
895 --record-dependencies, --leave-footnote-reference-space,
897 - Added command-line and config file support for "overrides" setting
902 - Added support for input encoding error handler.
906 - Added dispatch_visit and dispatch_departure methods to
907 NodeVisitor; useful as a hook for Visitors.
908 - Changed structure of ``line_block``; added ``line``.
909 - Added ``compound`` node class.
910 - Added a mechanism for Visitors to transitionally ignore new node
915 - Moved ``escape2null`` and ``unescape`` functions from
916 docutils/parsers/rst/states.py.
918 * docutils/parsers/rst/roles.py:
921 - Changed role function API: the "text" parameter now takes
922 null-escaped interpreted text content.
924 * docutils/parsers/rst/states.py:
926 - Fixed bug where a "role" directive in a nested parse would crash
927 the parser; the state machine's "language" attribute was not being
929 - Added support for line block syntax.
930 - Fixed directive parsing bug: argument-less directives didn't
931 notice that arguments were present.
932 - Removed error checking for transitions.
933 - Added support for multiple classifiers in definition list items.
934 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
935 - Changed role function API: the "text" parameter now takes
936 null-escaped interpreted text content.
937 - Empty sections and documents are allowed now.
939 * docutils/parsers/rst/directives/__init__.py:
941 - Added ``encoding`` directive option conversion function.
942 - Allow multiple class names in class_option conversion function.
944 * docutils/parsers/rst/directives/body.py:
946 - Converted the line-block directive to use the new structure.
947 - Extracted the old line-block functionality to the ``block``
948 function (still used).
949 - Added ``compound`` directive (thanks to Lea Wiemann).
951 * docutils/parsers/rst/directives/misc.py:
953 - Added "encoding" option to "include" and "raw" directives.
954 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
955 - Allow multiple class names in the "class" directive.
957 * docutils/parsers/rst/directives/parts.py:
959 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
960 options. Thanks to Lele Gaifax.
962 * docutils/parsers/rst/directives/tables.py:
964 - Added "encoding" directive to "csv-table" directive.
965 - Added workaround for lack of Unicode support in csv.py, for
968 * docutils/transforms/misc.py:
970 - Fixed bug when multiple "class" directives are applied to a single
972 - Enabled multiple format names for "raw" directive.
974 * docutils/transforms/references.py:
976 - Added support for trimming whitespace from beside substitution
979 * docutils/transforms/universal.py:
981 - FinalChecks now checks for illegal transitions and moves
982 transitions between sections.
984 * docutils/writers/html4css1.py:
986 - HTMLTranslator.encode now converts U+00A0 to " ".
987 - "stylesheet" and "stylesheet_path" settings are now mutually
989 - Added support for the new line_block/line structure.
990 - --footnote-references now overrides
991 --trim-footnote-reference-space, if applicable.
992 - Added support for ``compound`` elements.
993 - Enabled multiple format names for "raw" directive.
994 - ``<p>`` tags of a paragraph which is the only visible child of the
995 document node are no longer stripped.
996 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
997 new method ``should_be_compact_paragraph()``.
998 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1000 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1001 the output if they have their ``class`` attribute set.
1002 - The whole document is now surrounded by a ``<div
1003 class="document">`` element.
1004 - Body-level images are now wrapped by their own ``<div>`` elements,
1005 with image classes copied to the wrapper, and for images which
1006 have the ``:align:`` option set, the surrounding ``<div>`` now
1007 receives a class attribute (like ``class="align-left"``).
1009 * docutils/writers/latex2e.py:
1011 - no newline after depart_term.
1012 - Added translations for some Unicode quotes.
1013 - Added option "font-encoding", made package AE the default.
1014 - "stylesheet" and "stylesheet_path" settings are now mutually
1016 - --footnote-references now overrides
1017 --trim-footnote-reference-space, if applicable.
1018 - The footnote label style now matches the footnote reference style
1019 ("brackets" or "superscript").
1020 - Added support for ``compound`` elements.
1021 - Enabled multiple format names for "raw" directive.
1023 * docs/ref/docutils.dtd:
1025 - Changed structure of the ``line_block`` element; added ``line``.
1026 - Added ``compound`` element.
1027 - Added "ltrim" and "rtrim" attributes to
1028 ``substitution_definition`` element.
1029 - Enabled multiple format names for ``raw`` element.
1030 - Enabled multiple classifiers in ``definition_list_item`` elements.
1032 * docs/ref/rst/directives.txt
1034 - Marked "line-block" as deprecated.
1035 - "Class" directive now allows multiple class names.
1036 - Added "Rationale for Class Attribute Value Conversion".
1037 - Added warning about "raw" overuse/abuse.
1039 * docs/ref/rst/restructuredtext.txt:
1041 - Added syntax for line blocks.
1042 - Definition list items may have multiple classifiers.
1044 * docs/ref/rst/roles.txt:
1048 * tools/stylesheets/default.css:
1050 - Added support for the new line_block structure.
1051 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1054 Release 0.3.5 (2004-07-29)
1055 ==========================
1059 * _`Documentation cleanup/reorganization`.
1061 - Created new subdirectories of docs/:
1063 * ``docs/user/``: introductory/tutorial material for end-users
1064 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1065 * ``docs/api/``: API reference material for client-developers
1066 * ``docs/ref/``: reference material for all groups
1067 * ``docs/howto/``: for component-developers and core-developers
1068 * ``docs/peps/``: Python Enhancement Proposals
1070 - Moved ``docs/*`` to ``docs/user/``.
1071 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1072 ``spec/`` to ``docs/dev``.
1073 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1074 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1075 - Moved ``alternatives.txt``, and ``problems.txt`` from
1076 ``spec/rst/`` to ``docs/dev/rst/``.
1077 - Moved ``reStructuredText.txt``, ``directives.txt``,
1078 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1079 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1080 ``roles.txt``, ``reStructuredText.txt`` to
1081 ``restructuredtext.txt``.
1082 - Moved ``spec/howto/`` to ``docs/howto``.
1084 In order to keep the CVS history of moved files, we supplied
1085 SourceForge with a `script for modifying the Docutils CVS
1088 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1090 After running the cleanup script:
1092 - Added ``docs/index.txt``.
1093 - Added a ``.htaccess`` file to the ``web`` module, containing
1094 redirects for all old paths to new paths. They'll preserve
1095 fragments (the "#name" part of a URL), and won't clutter up the
1096 file system, and will correct the URL in the user's browser.
1097 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1098 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1099 the "To Do" list itself in ``docs/dev/todo.txt``.
1100 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1101 section of ``docs/dev/todo.txt``.
1102 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1103 - Added "How To Report Bugs" to ``BUGS.txt``.
1104 - Went through all the sources and docs (including under web/) and
1105 updated links. Mostly done by Lea Wiemann; thanks Lea!
1106 (Still need to update links in the sandboxes.)
1110 * BUGS.txt: Added to project.
1112 * THANKS.txt: Added to project.
1114 * docutils/__init__.py:
1116 - 0.3.4: Post-release.
1120 - Added special error handling & advice for UnicodeEncodeError.
1121 - Refactored Publisher.publish (simplified exception handling &
1122 extracted debug dumps).
1123 - Renamed "enable_exit" parameter of convenience functions to
1124 "enable_exit_status".
1125 - Enabled traceback (exception propagation) by default in
1126 programmatic convenience functions.
1127 - Now publish_file and publish_cmdline convenience functions return
1128 the encoded string results in addition to their regular I/O.
1129 - Extracted common code from publish_file, publish_string, and
1130 publish_parts, into new publish_programmatically. Extracted
1131 settings code to ``Publisher.process_programmatic_settings``.
1132 - In Publisher.publish, disabled ``settings_overrides`` when
1133 ``settings`` is supplied; redundant.
1135 * docutils/frontend.py:
1137 - Added help text for "--output-encoding-error-handler" and
1138 "--error-encoding-error-handler".
1139 - Renamed "--exit" to "--exit-status".
1140 - Simplified default-setting code.
1142 * docutils/parsers/rst/__init__.py:
1144 - Added "--pep-base-url" and "--rfc-base-url" options.
1146 * docutils/parsers/rst/states.py:
1148 - Made URI recognition more aggressive and intelligent.
1150 * docutils/parsers/rst/directives/__init__.py:
1152 - Added several directive option conversion functions.
1154 * docutils/parsers/rst/directives/body.py:
1156 - Moved "table" directive to tables.py.
1158 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1161 * docutils/writers/latex2e.py:
1163 - Added "--table-style=(standard|booktabs|nolines)"
1164 - figures get "here" option (LaTeX per default puts them at bottom),
1165 and figure content is centered.
1166 - Rowspan support for tables.
1167 - Fix: admonition titles before first section.
1168 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1169 - Replave ``_`` in literal by an underlined blank, because it has the correct
1171 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1172 - A few unicode replacements, if output_encoding != utf
1173 - Add "--graphicx-option".
1174 - Indent literal-blocks.
1175 - Fix: omit ``\maketitle`` when there is no document title.
1177 * docs/index.txt: "Docutils Project Documentation Overview", added to
1180 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1181 Tool", added to project.
1183 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1185 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1187 * docs/dev/policies.txt: Added to project (extracted from
1188 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1190 * docs/dev/release.txt: Added to project (extracted from
1191 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1193 * docs/dev/testing.txt: Added to project.
1195 * docs/dev/website.txt: Added to project (extracted from
1196 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1198 * docs/ref/rst/directives.txt:
1200 - Added directives: "table", "csv-table".
1202 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1203 added to project. 1 page for syntax, and a 1 page reference for
1204 directives and roles. Source text to be used as-is; not meant to be
1207 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1208 with a change of title.
1210 * test/functional/, contents, and test/test_functional.py: Added to
1213 * tools/buildhtml.py: Fixed bug with config file handling.
1215 * tools/html.py: Removed from project (duplicate of rst2html.py).
1217 * tools/pep2html.py: Removed from project (duplicate of Python's
1218 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1219 Docutils-related PEPs in docs/peps/).
1221 * tools/rst2pseudoxml.py: Renamed from publish.py.
1223 * tools/rst2xml.py: Renamed from docutils-xml.py.
1225 * tools/test.txt: Removed from project; moved to
1226 docs/user/rst/demo.txt.
1228 * setup.py: Now also installs ``rst2latex.py``.
1231 Release 0.3.3 (2004-05-09)
1232 ==========================
1234 * docutils/__init__.py:
1236 - 0.3.1: Reorganized config file format (multiple sections); see
1238 - Added unknown_reference_resolvers attribute to TransformSpec.
1239 - 0.3.2: Interpreted text reorganization.
1244 - Catch system messages to stop tracebacks from parsing errors.
1245 - Catch exceptions during processing report & exit without
1246 tracebacks, except when "--traceback" used.
1247 - Reordered components for OptionParser; application comes last.
1248 - Added "config_section" parameter to several methods and functions,
1249 allowing front ends to easily specify their config file sections.
1250 - Added publish_parts convenience function to allow access to individual
1251 parts of a document.
1253 * docutils/examples.py: Added to project; practical examples of
1254 Docutils client code, to be used as-is or as models for variations.
1256 * docutils/frontend.py:
1258 - Added "--traceback" & "--no-traceback" options ("traceback"
1260 - Implemented support for config file reorganization:
1261 ``standard_config_files`` moved from ``ConfigParser`` to
1262 ``OptionParser``; added
1263 ``OptionParser.get_config_file_settings()`` and
1264 ``.get_standard_config_settings()``; support for old "[options]"
1265 section (with deprecation warning) and mapping from old to new
1267 - Reimplemented setting validation.
1268 - Enabled flexible boolean values: yes/no, true/false, on/off.
1269 - Added ``Values``, a subclass of ``optparse.Values``, with support
1270 for list setting attributes.
1271 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1272 thanks to Beni Cherniavsky.
1273 - Added "--no-section-numbering" option.
1277 - Catch IOErrors when opening source & destination files, report &
1278 exit without tracebacks. Added ``handle_io_errors`` parameter to
1279 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1281 * docutils/nodes.py:
1283 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1284 method definitions (via ``exec``) to dynamic assignments (via
1285 ``setattr``); thanks to Roman Suzi.
1286 - Encapsulated visitor dynamic assignments in a function; thanks to
1288 - Added indirect_reference_name attribute to the Targetable
1289 class. This attribute holds the whitespace_normalized_name
1290 (contains mixed case) of a target.
1292 * docutils/statemachine.py:
1294 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1295 - Added ``StringList.get_2D_block``.
1297 * docutils/utils.py:
1299 - Added "level" attribute to SystemMessage exceptions.
1301 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1304 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1307 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1308 Marcelo Huerta San Martin.
1310 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1311 mappings by Lalo Martins.
1313 * docutils/languages/ru.py: Added to project; Russian mappings by
1316 * docutils/parsers/rst/roles.py: Added to project. Contains
1317 interpreted text role functions, a registry for interpreted text
1318 roles, and an API for adding to and retrieving from the registry.
1319 Contributed by Edward Loper.
1321 * docutils/parsers/rst/states.py:
1323 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1324 - Allowed true em-dash character and "---" as block quote
1326 - Added support for <angle-bracketed> complex option arguments
1328 - Fixed handling of backslashes in substitution definitions.
1329 - Fixed off-by-1 error with extra whitespace after substitution
1330 definition directive.
1331 - Added inline markup parsing to field lists' field names.
1332 - Added support for quoted (and unindented) literal blocks.
1333 Driven in part by a bribe from Frank Siebenlist (thanks!).
1334 - Parser now handles escapes in URIs correctly.
1335 - Made embedded-URIs' reference text omittable. Idea from Beni
1337 - Refactored explicit target processing code.
1338 - Added name attribute to references containing the reference name only
1339 through whitespace_normalize_name (no case changes).
1340 - parse_target no longer returns the refname after going through
1341 normalize_name. This is now handled in make_target.
1342 - Fixed bug relating to role-less interpreted text in non-English
1344 - Reorganized interpreted text processing; moved code into the new
1345 roles.py module. Contributed by Edward Loper.
1346 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1347 ``parse_directive_block``.
1349 * docutils/parsers/rst/tableparser.py:
1351 - Reworked for ``StringList``, to support "include" directives in
1354 * docutils/parsers/rst/directives/__init__.py:
1356 - Renamed ``unchanged()`` directive option conversion function to
1357 ``unchanged_required``, and added a new ``unchanged``.
1358 - Catch unicode value too high error; fixes bug 781766.
1359 - Beefed up directive error reporting.
1361 * docutils/parsers/rst/directives/body.py:
1363 - Added basic "table" directive.
1365 * docutils/parsers/rst/directives/images.py:
1367 - Added "target" option to "image" directive.
1368 - Added name attribute to references containing the reference name only
1369 through whitespace_normalize_name (no case changes).
1371 * docutils/parsers/rst/directives/misc.py:
1373 - Isolated the import of the ``urllib2`` module; was causing
1374 problems on SourceForge (``libssl.so.2`` unavailable?).
1375 - Added the "role" directive for declaring custom interpreted text
1378 * docutils/parsers/rst/directives/parts.py:
1380 - The "contents" directive does more work up-front, creating the
1381 "topic" and "title", and leaving the "pending" node for the
1382 transform. Allows earlier reference resolution; fixes subtle bug.
1384 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1385 mappings by Jannie Hofmeyr.
1387 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1388 mappings by Marek Blaha.
1390 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1391 mappings by Marcelo Huerta San Martin.
1393 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1394 Portuguese mappings by Lalo Martins.
1396 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1397 mappings by Roman Suzi.
1399 * docutils/transforms/parts.py:
1401 - The "contents" directive does more work up-front, creating the
1402 "topic" and "title", and leaving the "pending" node for the
1403 transform. Allows earlier reference resolution; fixes subtle bug.
1404 - Added support for disabling of section numbering.
1406 * docutils/transforms/references.py:
1408 - Verifying that external targets are truly targets and not indirect
1409 references. This is because we are now adding a "name" attribute to
1410 references in addition to targets. Note sure if this is correct!
1411 - Added code to hook into the unknown_reference_resolvers list for a
1412 transformer in resolve_indirect_target. This allows the
1413 unknown_reference_resolvers to keep around indirect targets which
1414 docutils doesn't know about.
1415 - Added specific error message for duplicate targets.
1417 * docutils/transforms/universal.py:
1419 - Added FilterMessages transform (removes system messages below the
1420 verbosity threshold).
1421 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1422 to FinalCheckVisitor for application-specific handling of
1423 unresolvable references.
1424 - Added specific error message for duplicate targets.
1426 * docutils/writers/__init__.py:
1428 - Added assemble_parts method to the Writer class to allow for
1429 access to a documents individual parts.
1430 - Documented & set default for ``Writer.output`` attribute.
1432 * docutils/writers/html4css1.py:
1434 - Fixed unicode handling of attribute values (bug 760673).
1435 - Prevent duplication of "class" attribute values (bug report from
1437 - Improved table grid/border handling (prompted by report from Bob
1439 - Added support for table titles.
1440 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1442 - Added functionality to keep track of individual parts of a document
1443 and store them in a dictionary as the "parts" attribute of the writer.
1444 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1445 - Added proper support for the "scale" attribute of the "image"
1446 element. Contributed by Brent Cook.
1447 - Added ``--initial-header-level`` option.
1448 - Fixed bug: the body_pre_docinfo segment depended on there being a
1449 docinfo; if no docinfo, the document title was incorporated into
1450 the body segment. Adversely affected the publish_parts interface.
1452 * docutils/writers/latex2e.py:
1454 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1455 about a missing file.
1456 - Added options and support: ``--compound-enumerators``,
1457 ``--section-prefix-for-enumerators``, and
1458 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1460 - Added option ``--use-verbatim-when-possible``, to avoid
1461 problematic characters (eg, '~' in italian) in literal blocks.
1462 - It's now possible to use four section levels in the `book` and
1463 `report` LaTeX classes. The default `article` class still has
1466 * docs/config.txt: "Docutils Configuration Files", added to project.
1467 Moved config file entry descriptions from tools.txt.
1471 - Moved config file entry descriptions to config.txt.
1473 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1476 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1477 Text Roles", added to project.
1479 * spec/rst/reStructuredText.txt:
1481 - Added description of support for <angle-bracketed> complex option
1482 arguments to option lists.
1483 - Added subsections for indented and quoted literal blocks.
1485 * test: Continually adding & updating tests.
1487 - Added test/test_settings.py & test/data/config_*.txt support
1489 - Added test/test_writers/test_htmlfragment.py.
1491 * test/DocutilsTestSupport.py:
1493 - Refactored LaTeX publisher test suite/case class names to make
1494 testing other writers easier.
1495 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1496 to test the processing of HTML fragments which use the new
1497 publish_parts convenience function.
1499 * tools/buildhtml.py:
1501 - Added support for the "--prune" option.
1502 - Removed dependency on pep2html.py; plaintext PEPs no longer
1505 * tools/docutils.conf:
1507 - Updated for configuration file reorganization.
1509 * tools/rst2html.py:
1511 - copied from tools/html.py
1515 - added a 'scripts' section to configuration
1516 - added 'tools/rst2html.py' to the scripts section
1519 Release 0.3 (2003-06-24)
1520 ========================
1524 * Renamed "attribute" to "option" for directives/extensions.
1526 * Renamed transform method "transform" to "apply".
1528 * Renamed "options" to "settings" for runtime settings (as set by
1529 command-line options). Sometimes "option" (singular) became
1530 "settings" (plural). Some variations below:
1532 - document.options -> document.settings (stored in other objects as
1534 - option_spec -> settings_spec (not directives though)
1535 - OptionSpec -> SettingsSpec
1536 - cmdline_options -> settings_spec
1537 - relative_path_options -> relative_path_settings
1538 - option_default_overrides -> settings_default_overrides
1539 - Publisher.set_options -> Publisher.get_settings
1543 * COPYING.txt: Added "Public Domain Dedication".
1545 * FAQ.txt: Frequently asked questions, added to project.
1549 - Updated with PyPI Trove classifiers.
1550 - Conditional installation of third-party modules.
1552 * docutils/__init__.py:
1554 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1555 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1556 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1557 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1558 option and its effect on the PEP template & writer.
1559 - Bumped version to 0.2.4 due to changes to the PEP template &
1561 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1562 - Added ``TransformSpec`` class for new transform system.
1563 - Bumped version to 0.2.6 for API changes (renaming).
1564 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1565 convenience functions.
1566 - Added ``Component.component_type`` attribute.
1567 - Bumped version to 0.2.8 because of the internal parser switch from
1568 plain lists to the docutils.statemachine.StringList objects.
1569 - Bumped version to 0.2.9 because of the frontend.py API changes.
1570 - Bumped version to 0.2.10 due to changes to the project layout
1571 (third-party modules removed from the "docutils" package), and
1572 signature changes in ``io.Input``/``io.Output``.
1573 - Changed version to 0.3.0 for release.
1577 - Made ``publish()`` a bit more convenient.
1578 - Generalized ``Publisher.set_io``.
1579 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1580 parameters; improved its docstring.
1581 - Added ``publish_file()`` and ``publish_string()``.
1582 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1584 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1585 "--dump-transforms" hidden options.
1586 - Added ``Publisher.apply_transforms()`` method.
1587 - Added ``Publisher.set_components()`` method; support for
1588 ``publish_*()`` conveninece functions.
1589 - Moved config file processing to docutils/frontend.py.
1590 - Added support for exit status ("exit_level" setting &
1591 ``enable_exit`` parameter for Publisher.publish() and convenience
1594 * docutils/frontend.py:
1596 - Check for & exit on identical source & destination paths.
1597 - Fixed bug with absolute paths & "--config".
1598 - Set non-command-line defaults in ``OptionParser.__init__()``:
1599 ``_source`` & ``_destination``.
1600 - Distributed ``relative_path_settings`` to components; updated
1601 ``OptionParser.populate_from_components()`` to combine it all.
1602 - Require list of keys in ``make_paths_absolute`` (was implicit in
1603 global ``relative_path_settings``).
1604 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1605 "--dump-settings", and "--dump-transforms" hidden options.
1606 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1607 code, replaced with correct code.
1608 - Added validation functionality for config files.
1609 - Added "--error-encoding" option/setting, "_disable_config"
1611 - Added encoding validation; updated "--input-encoding" and
1612 "--output-encoding"; added "--error-encoding-error-handler" and
1613 "--output-encoding-error-handler".
1614 - Moved config file processing from docutils/core.py.
1615 - Updated ``OptionParser.populate_from_components`` to handle new
1616 ``SettingsSpec.settings_defaults`` dict.
1617 - Added support for "-" => stdin/stdout.
1618 - Added "exit_level" setting ("--exit" option).
1622 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1623 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1624 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1625 - ``FileOutput.write()`` now returns the encoded output string.
1626 - Try to get path/stream name automatically in ``FileInput`` &
1628 - Added defaults for source & destination paths.
1629 - Allow for Unicode I/O with an explicit "unicode" encoding.
1630 - Added ``Output.encode()``.
1631 - Removed dependency on runtime settings; pass encoding directly.
1632 - Recognize Unicode strings in ``Input.decode()``.
1633 - Added support for output encoding error handlers.
1635 * docutils/nodes.py:
1637 - Added "Invisible" element category class.
1638 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1639 modification during a traversal.
1640 - Added element classes: ``line_block``, ``generated``, ``address``,
1641 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1642 ``superscript``, ``subscript``, ``inline``
1643 - Added support for lists of nodes to ``Element.insert()``.
1644 - Fixed parent linking in ``Element.replace()``.
1645 - Added new abstract superclass ``FixedTextElement``; adds
1646 "xml:space" attribute.
1647 - Added support for "line" attribute of ``system_message`` nodes.
1648 - Added support for the observer pattern from ``utils.Reporter``.
1649 Added ``parse_messages`` and ``transform_messages`` attributes to
1650 ``document``, removed ``messages``. Added ``note_parse_message``
1651 and ``note_transform_message`` methods.
1652 - Added support for improved diagnostics:
1654 - Added "document", "source", and "line" internal attributes to
1655 ``Node``, set by ``Node.setup_child()``.
1656 - Converted variations on ``node.parent = self`` to
1657 ``self.setup_child(node)``.
1658 - Added ``document.current_source`` & ``.current_line``
1659 attributes, and ``.note_source`` observer method.
1660 - Changed "system_message" output to GNU-Tools format.
1662 - Added a "rawsource" attribute to the ``Text`` class, for text
1663 before backslash-escape resolution.
1664 - Support for new transform system.
1665 - Reworked ``pending`` element.
1666 - Fixed XML DOM bug (SF #660611).
1667 - Removed the ``interpeted`` element class and added
1668 ``title_reference``, ``abbreviation``, ``acronym``.
1669 - Made substitutions case-sensitive-but-forgiving; moved some code
1671 - Fixed Unicode bug on element attributes (report: William Dode).
1673 * docutils/optik.py: Removed from project; replaced with
1674 extras/optparse.py and extras/textwrap.py. These will be installed
1675 only if they're not already present in the Python installation.
1677 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1678 only if it's not already present in the Python installation.
1680 * docutils/statemachine.py:
1682 - Factored out ``State.add_initial_transitions()`` so it can be
1684 - Converted whitespace-specific "blank" and "indent" transitions
1685 from special-case code to ordinary transitions: removed
1686 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1687 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1688 ``ws_initial_transitions`` attributes.
1689 - Removed ``State.match_transition()`` after merging it into
1691 - Added ``StateCorrection`` exception.
1692 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1693 (moved ``TransitionCorrection`` support there too.)
1694 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1695 ``EOFError`` instead of ``IndexError``.
1696 - Added ``State.no_match`` method.
1697 - Added support for the Observer pattern, triggered by input line
1699 - Added ``strip_top`` parameter to
1700 ``StateMachineWS.get_first_known_indented``.
1701 - Made ``context`` a parameter to ``StateMachine.run()``.
1702 - Added ``ViewList`` & ``StringList`` classes;
1703 ``extract_indented()`` becomes ``StringList.get_indented()``.
1704 - Added ``StateMachine.insert_input()``.
1705 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1706 thanks to) Fred Drake.
1708 * docutils/utils.py:
1710 - Added a ``source`` attribute to Reporter instances and
1711 ``system_message`` elements.
1712 - Added an observer pattern to ``utils.Reporter`` to keep track of
1714 - Fixed bugs in ``relative_path()``.
1715 - Added support for improved diagnostics.
1716 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1717 - Added support for encoding Reporter stderr output, and encoding
1719 - Reporter keeps track of the highest level system message yet
1722 * docutils/languages: Fixed bibliographic field language lookups.
1724 * docutils/languages/es.py: Added to project; Spanish mappings by
1725 Marcelo Huerta San Martin.
1727 * docutils/languages/fr.py: Added to project; French mappings by
1730 * docutils/languages/it.py: Added to project; Italian mappings by
1733 * docutils/languages/sk.py: Added to project; Slovak mappings by
1736 * docutils/parser/__init__.py:
1738 - Added ``Parser.finish_parse()`` method.
1740 * docutils/parser/rst/__init__.py:
1742 - Added options: "--pep-references", "--rfc-references",
1743 "--tab-width", "--trim-footnote-reference-space".
1745 * docutils/parsers/rst/states.py:
1747 - Changed "title under/overline too short" system messages from INFO
1748 to WARNING, and fixed its insertion location.
1749 - Fixed enumerated list item parsing to allow paragraphs & section
1750 titles to begin with enumerators.
1751 - Converted system messages to use the new "line" attribute.
1752 - Fixed a substitution reference edge case.
1753 - Added support for "--pep-references" and "--rfc-references"
1754 options; reworked ``Inliner`` code to make customization easier.
1755 - Removed field argument parsing.
1756 - Added support for short section title over/underlines.
1757 - Fixed "simple reference name" regexp to ignore text like
1758 "object.__method__"; not an anonymous reference.
1759 - Added support for improved diagnostics.
1760 - Reworked directive API, based on Dethe Elza's contribution. Added
1761 ``Body.parse_directive()``, ``.parse_directive_options()``,
1762 ``.parse_directive_arguments()`` methods.
1763 - Added ``ExtensionOptions`` class, to parse directive options
1764 without parsing field bodies. Factored
1765 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1766 ``ExtensionOptions``.
1767 - Improved definition list term/classifier parsing.
1768 - Added warnings for unknown directives.
1769 - Renamed ``Stuff`` to ``Struct``.
1770 - Now flagged as errors: transitions at the beginning or end of
1771 sections, empty sections (except title), and empty documents.
1772 - Updated for ``statemachine.StringList``.
1773 - Enabled recognition of schemeless email addresses in targets.
1774 - Added support for embedded URIs in hyperlink references.
1775 - Added backslash-escapes to inline markup end-string suffix.
1776 - Added support for correct interpreted text processing.
1777 - Fixed nested title parsing (topic, sidebar directives).
1778 - Added special processing of backslash-escaped whitespace (idea
1779 from David Abrahams).
1780 - Made substitutions case-sensitive-but-forgiving; moved some code
1781 to ``docutils.nodes``.
1782 - Added support for block quote attributions.
1783 - Added a kludge to work-around a conflict between the bubble-up
1784 parser strategy and short titles (<= 3 char-long over- &
1785 underlines). Fixes SF bug #738803 "infinite loop with multiple
1786 titles" submitted by Jason Diamond.
1787 - Added explicit interpreted text roles for standard inline markup:
1788 "emphasis", "strong", "literal".
1789 - Implemented "superscript" and "subscript" interpreted text roles.
1790 - Added initial support for "abbreviation" and "acronym" roles;
1792 - Added support for "--trim-footnote-reference-space" option.
1793 - Optional space before colons in directives & hyperlink targets.
1795 * docutils/parsers/rst/tableparser.py:
1797 - Fixed a bug that was producing unwanted empty rows in "simple"
1799 - Detect bad column spans in "simple" tables.
1801 * docutils/parsers/rst/directives: Updated all directive functions to
1804 * docutils/parsers/rst/directives/__init__.py:
1806 - Added ``flag()``, ``unchanged()``, ``path()``,
1807 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1808 directive option helper functions.
1809 - Added warnings for unknown directives.
1810 - Return ``None`` for missing directives.
1811 - Added ``register_directive()``, thanks to William Dode and Paul
1814 * docutils/parsers/rst/directives/admonitions.py:
1816 - Added "admonition" directive.
1818 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1819 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1820 "parsed-literal", "rubric", "epigraph", "highlights" and
1821 "pull-quote" directives.
1823 * docutils/parsers/rst/directives/images.py:
1825 - Added an "align" attribute to the "image" & "figure" directives
1826 (by Adam Chodorowski).
1827 - Added "class" option to "image", and "figclass" to "figure".
1829 * docutils/parsers/rst/directives/misc.py:
1831 - Added "include", "raw", and "replace" directives, courtesy of
1833 - Added "unicode" and "class" directives.
1835 * docutils/parsers/rst/directives/parts.py:
1837 - Added the "sectnum" directive; by Dmitry Jemerov.
1838 - Added "class" option to "contents" directive.
1840 * docutils/parsers/rst/directives/references.py: Added to project.
1841 Contains the "target-notes" directive.
1843 * docutils/parsers/rst/languages/__init__.py:
1845 - Return ``None`` from get_language() for missing language modules.
1847 * docutils/parsers/rst/languages/de.py: Added to project; German
1848 mappings by Engelbert Gruber.
1850 * docutils/parsers/rst/languages/en.py:
1852 - Added interpreted text roles mapping.
1854 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1855 mappings by Marcelo Huerta San Martin.
1857 * docutils/parsers/rst/languages/fr.py: Added to project; French
1858 mappings by William Dode.
1860 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1861 mappings by Nicola Larosa.
1863 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1864 mappings by Miroslav Vasko.
1866 * docutils/readers/__init__.py:
1868 - Added support for the observer pattern from ``utils.Reporter``, in
1869 ``Reader.parse`` and ``Reader.transform``.
1870 - Removed ``Reader.transform()`` method.
1871 - Added default parameter values to ``Reader.__init__()`` to make
1872 instantiation easier.
1873 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1875 * docutils/readers/pep.py:
1877 - Added the ``peps.TargetNotes`` transform to the Reader.
1878 - Removed PEP & RFC reference detection code; moved to
1879 parsers/rst/states.py as options (enabled here by default).
1880 - Added support for pre-acceptance PEPs (no PEP number yet).
1881 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1884 * docutils/readers/python: Python Source Reader subpackage added to
1885 project, including preliminary versions of:
1888 - moduleparser.py: Parser for Python modules.
1890 * docutils/transforms/__init__.py:
1892 - Added ``Transformer`` class and completed transform reform.
1893 - Added unknown_reference_resolvers list for each transformer. This list holds
1894 the list of functions provided by each component of the transformer that
1895 help resolve references.
1897 * docutils/transforms/frontmatter.py:
1899 - Improved support for generic fields.
1900 - Fixed bibliographic field language lookups.
1902 * docutils/transforms/misc.py: Added to project. Miscellaneous
1905 * docutils/transforms/parts.py:
1907 - Moved the "id" attribute from TOC list items to the references
1908 (``Contents.build_contents()``).
1909 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1910 - Added "class" attribute support to ``Contents``.
1912 * docutils/transforms/peps.py:
1914 - Added ``mask_email()`` function, updating to pep2html.py's
1916 - Linked "Content-Type: text/x-rst" to PEP 12.
1917 - Added the ``TargetNotes`` PEP-specific transform.
1918 - Added ``TargetNotes.cleanup_callback``.
1919 - Added title check to ``Headers``.
1921 * docutils/transforms/references.py:
1923 - Added the ``TargetNotes`` generic transform.
1924 - Split ``Hyperlinks`` into multiple transforms.
1925 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1926 - Added check for circular indirect references.
1927 - Made substitutions case-sensitive-but-forgiving.
1929 * docutils/transforms/universal.py:
1931 - Added support for the "--expose-internal-attributes" option.
1932 - Removed ``Pending`` transform classes & data.
1934 * docutils/writers/__init__.py:
1936 - Removed ``Writer.transform()`` method.
1938 * docutils/writers/docutils-xml.py:
1940 - Added XML and doctype declarations.
1941 - Added "--no-doctype" and "--no-xml-declaration" options.
1943 * docutils/writers/html4css1.py:
1945 - "name" attributes only on these tags: a, applet, form, frame,
1947 - Added "name" attribute to <a> in section titles for Netscape 4
1948 support (bug report: Pearu Peterson).
1949 - Fixed targets (names) on footnote, citation, topic title,
1950 problematic, and system_message nodes (for Netscape 4).
1951 - Changed field names from "<td>" to "<th>".
1952 - Added "@" to "@" encoding to thwart address harvesters.
1953 - Improved the vertical whitespace optimization; ignore "invisible"
1954 nodes (targets, comments, etc.).
1955 - Improved inline literals with ``<span class="pre">`` around chunks
1956 of text and `` `` for runs of spaces.
1957 - Improved modularity of output; added ``self.body_pre_docinfo`` and
1958 ``self.docinfo`` segments.
1959 - Added support for "line_block", "address" elements.
1960 - Improved backlinks (footnotes & system_messages).
1961 - Improved system_message output.
1962 - Redefined "--stylesheet" as containing an invariant URL, used
1963 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
1965 - Added "--footnote-references" option (superscript or brackets).
1966 - Added "--compact-lists" and "--no-compact-lists" options.
1967 - Added "--embed-stylesheet" and "--link-stylesheet" options;
1968 factored out ``HTMLTranslator.get_stylesheet_reference()``.
1969 - Improved field list rendering.
1970 - Added Docutils version to "generator" meta tag.
1971 - Fixed a bug with images; they must be inline, so wrapped in <p>.
1972 - Improved layout of <pre> HTML source.
1973 - Fixed attribute typo on <colspec>.
1974 - Refined XML prologue.
1975 - Support for no stylesheet.
1976 - Removed "interpreted" element support.
1977 - Added support for "title_reference", "sidebar", "attribution",
1978 "rubric", and generic "admonition" elements.
1979 - Added "--attribution" option.
1980 - Added support for "inline", "subscript", "superscript" elements.
1981 - Added initial support for "abbreviation" and "acronym";
1984 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
1988 - Double quotes in literal blocks (special treatment for de/ngerman).
1989 - Added '--hyperlink-color' option ('0' turns off coloring of links).
1990 - Added "--attribution" option.
1991 - Right align attributions.
1993 * docutils/writers/pep_html.py:
1995 - Parameterized output encoding in PEP template.
1996 - Reworked substitutions from ``locals()`` into ``subs`` dict.
1997 - Redefined "--pep-stylesheet" as containing an invariant URL, used
1998 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2000 - Added an override on the "--footnote-references" option.
2001 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2002 - Added Docutils version to "generator" meta tag.
2003 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2007 - Added a "silent" setting for ``buildhtml.py``.
2008 - Added a "Getting Help" section.
2009 - Rearranged the structure.
2010 - Kept up to date, with new settings, command-line options etc.
2011 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2012 - Converted settings table into a definition list.
2014 * docs/rst/quickstart.txt:
2016 - Added a table of contents.
2017 - Added feedback information.
2018 - Added mention of minimum section title underline lengths.
2019 - Removed the 4-character minimum for section title underlines.
2021 * docs/rst/quickref.html:
2023 - Added a "Getting Help" section.
2024 - Added a style to make section title backlinks more subtle.
2025 - Added mention of minimum section title underline lengths.
2026 - Removed the 4-character minimum for section title underlines.
2028 * extras: Directory added to project; contains third-party modules
2029 that Docutils depends on (optparse, textwrap, roman). These are
2030 only installed if they're not already present.
2032 * licenses: Directory added to project; contains copies of license
2033 files for non-public-domain files.
2037 - Changed the focus. It's about DTD elements: structural
2038 relationships, semantics, and external (public) attributes. Not
2039 about the element class library.
2040 - Moved some implementation-specific stuff into ``docutils.nodes``
2042 - Wrote descriptions of all common attributes and parameter
2043 entities. Filled in introductory material.
2044 - Working through the element descriptions: 55 down, 37 to go.
2045 - Removed "Representation of Horizontal Rules" to
2046 spec/rst/alternatives.txt.
2048 * spec/docutils.dtd:
2050 - Added "generated" inline element.
2051 - Added "line_block" body element.
2052 - Added "auto" attribute to "title".
2053 - Changed content models of "literal_block" and "doctest_block" to
2055 - Added ``%number;`` attribute type parameter entity.
2056 - Changed ``%structural.elements;`` to ``%section.elements``.
2057 - Updated attribute types; made more specific.
2058 - Added "address" bibliographic element.
2059 - Added "line" attribute to ``system_message`` element.
2060 - Removed "field_argument" element; "field_name" may contain
2061 multiple words and whitespace.
2062 - Changed public identifier to docutils.sf.net.
2063 - Removed "interpreted" element; added "title_reference",
2064 "abbreviation", "acronym".
2065 - Removed "refuri" attribute from "footnote_reference" and
2066 "citation_reference".
2067 - Added "sidebar", "rubric", "attribution", "admonition",
2068 "superscript", "subscript", and "inline" elements.
2070 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2072 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2074 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2076 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2079 * spec/transforms.txt: Added to project.
2081 * spec/howto: Added subdirectory, for developer how-to docs.
2083 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2084 Elza, edited & extended by David Goodger.
2086 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2089 * spec/rst/alternatives.txt:
2091 - Added "Doctree Representation of Transitions" from
2093 - Updated "Inline External Targets" & closed the debate.
2094 - Added ideas for interpreted text syntax extensions.
2095 - Added "Nested Inline Markup" section.
2097 * spec/rst/directives.txt:
2099 - Added directives: "topic", "sectnum", "target-notes",
2100 "line-block", "parsed-literal", "include", "replace", "sidebar",
2101 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2103 - Formalized descriptions of directive details.
2104 - Added an "align" attribute to the "image" & "figure" directives
2105 (by Adam Chodorowski).
2106 - Added "class" options to "topic", "sidebar", "line-block",
2107 "parsed-literal", "contents", and "image"; and "figclass" to
2110 * spec/rst/interpreted.txt: Added to project. Descriptions of
2111 interpreted text roles.
2113 * spec/rst/introduction.txt:
2115 - Added pointers to material for new users.
2117 * spec/rst/reStructuredText.txt:
2119 - Disambiguated comments (just add a newline after the "::").
2120 - Updated enumerated list description; added a discussion of the
2121 second-line validity checking.
2122 - Updated directive description.
2123 - Added a note redirecting newbies to the user docs.
2124 - Expanded description of inline markup start-strings in non-markup
2126 - Removed field arguments and made field lists a generic construct.
2127 - Removed the 4-character minimum for section title underlines.
2128 - Clarified term/classifier delimiter & inline markup ambiguity
2130 - Added "Embedded URIs".
2131 - Updated "Interpreted Text" section.
2132 - Added "Character-Level Inline Markup" section.
2134 * test: Continually adding & updating tests.
2136 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2137 - Moved test/test_pep/ to test/test_readers/test_pep/.
2138 - Added test/test_readers/test_python/.
2139 - Added test/test_writers/ (Engelbert Gruber).
2143 - Made the ``locale.setlocale()`` calls in front ends
2146 * tools/buildhtml.py:
2148 - Added "--silent" option.
2149 - Fixed bug with absolute paths & "--config".
2150 - Updated for new I/O classes.
2151 - Added some exception handling.
2152 - Separated publishers' setting defaults; prevents interference.
2153 - Updated for new ``publish_file()`` convenience function.
2155 * tools/pep-html-template:
2157 - Allow for "--embed-stylesheet".
2158 - Added Docutils version to "generator" meta tag.
2159 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2160 - Conform to XHTML spec.
2162 * tools/pep2html.py:
2164 - Made ``argv`` a parameter to ``main()``.
2165 - Added support for "Content-Type:" header & arbitrary PEP formats.
2166 - Linked "Content-Type: text/plain" to PEP 9.
2167 - Files skipped (due to an error) are not pushed onto the server.
2168 - Updated for new I/O classes.
2169 - Added ``check_requirements()`` & ``pep_type_error()``.
2170 - Added some exception handling.
2171 - Updated for new ``publish_string()`` convenience function.
2172 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2174 * tools/quicktest.py:
2176 - Added "-V"/"--version" option.
2178 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2180 * tools/unicode2rstsubs.py: Added to project. Produces character
2181 entity files (reSructuredText substitutions) from the MathML master
2184 * tools/editors: Support code for editors, added to project. Contains
2185 ``emacs/restructuredtext.el``.
2187 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2189 - Added style for chunks of inline literals.
2190 - Removed margin for first child of table cells.
2191 - Right-aligned field list names.
2192 - Support for auto-numbered section titles in TOCs.
2193 - Increased the size of inline literals (<tt>) in titles.
2194 - Restored the light gray background for inline literals.
2195 - Added support for "line_block" elements.
2196 - Added style for "address" elements.
2197 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2198 - Improved field list rendering.
2199 - Vertical whitespace improvements.
2200 - Removed "a.target" style.
2202 * tools/stylesheets/pep.css:
2204 - Fixed nested section margins.
2205 - Other changes parallel those of ``../default.css``.
2208 Release 0.2 (2002-07-31)
2209 ========================
2213 - The word "component" was being used ambiguously. From now on,
2214 "component" will be used to mean "Docutils component", as in Reader,
2215 Writer, Parser, or Transform. Portions of documents (Table of
2216 Contents, sections, etc.) will be called "document parts".
2217 - Did a grand renaming: a lot of ``verylongnames`` became
2218 ``very_long_names``.
2219 - Cleaned up imports: no more relative package imports or
2220 comma-separated lists of top-level modules.
2221 - Added support for an option values object which carries default
2222 settings and overrides (from command-line options and library use).
2223 - Added internal Unicode support, and support for both input and
2225 - Added support for the ``docutils.io.IO`` class & subclasses.
2229 * docutils/__init__.py:
2231 - Added ``ApplicationError`` and ``DataError``, for use throughout
2233 - Added ``Component`` base class for Docutils components; implements
2234 the ``supports`` method.
2235 - Added ``__version__`` (thus, ``docutils.__version__``).
2239 - Removed many keyword parameters to ``Publisher.__init__()`` and
2240 ``publish()``; bundled into an option values object. Added
2241 "argv", "usage", "description", and "option_spec" parameters for
2242 command-line support.
2243 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2245 - Reworked I/O model for ``docutils.io`` wrappers.
2246 - Updated ``Publisher.set_options()``; now returns option values
2248 - Added support for configuration files (/etc/docutils.conf,
2249 ./docutils.conf, ~/.docutils).
2250 - Added ``Publisher.setup_option_parser()``.
2251 - Added default usage message and description.
2253 * docutils/frontend.py: Added to project; support for front-end
2254 (command-line) scripts. Option specifications may be augmented by
2255 components. Requires Optik (http://optik.sf.net/) for option
2256 processing (installed locally as docutils/optik.py).
2258 * docutils/io.py: Added to project; uniform API for a variety of input
2261 * docutils/nodes.py:
2263 - Added ``TreeCopyVisitor`` class.
2264 - Added a ``copy`` method to ``Node`` and subclasses.
2265 - Added a ``SkipDeparture`` exception for visitors.
2266 - Renamed ``TreePruningException`` from ``VisitorException``.
2267 - Added docstrings to ``TreePruningException``, subclasses, and
2269 - Improved docstrings.
2270 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2271 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2273 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2274 ``PreDecorative`` mixin.
2275 - Reworked the name/id bookkeeping; to ``document``, removed
2276 ``explicit_targets`` and ``implicit_targets`` attributes, added
2277 ``nametypes`` attribute and ``set_name_id_map`` method.
2278 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2280 - Added ``document.has_name()`` method.
2281 - Fixed DOM generation for list-attributes.
2282 - Added category class ``Labeled`` (used by footnotes & citations).
2283 - Added ``Element.set_class()`` method (sets "class" attribute).
2285 * docutils/optik.py: Added to project. Combined from the Optik
2286 package, with added option groups and other modifications. The use
2287 of this module is probably only temporary.
2289 * docutils/statemachine.py:
2291 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2292 - Added underscores to improve many awkward names.
2293 - In ``string2lines()``, changed whitespace normalizing translation
2294 table to regexp; restores Python 2.0 compatibility with Unicode.
2296 * docutils/urischemes.py:
2298 - Filled in some descriptions.
2299 - Added "shttp" scheme.
2301 * docutils/utils.py:
2303 - Added ``clean_rcs_keywords`` function (moved from
2304 docutils/transforms/frontmatter.py
2305 ``DocInfo.filter_rcs_keywords``).
2306 - Added underscores to improve many awkward names.
2307 - Changed names of Reporter's thresholds:
2308 warning_level -> report_level; error_level -> halt_level.
2309 - Moved ``utils.id()`` to ``nodes.make_id()``.
2310 - Added ``relative_path(source, target)``.
2312 * docutils/languages/de.py: German mappings; added to project. Thanks
2313 to Gunnar Schwant for the translations.
2315 * docutils/languages/en.py: Added "Dedication" bibliographic field
2318 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2321 * docutils/parsers/rst/states.py:
2323 - Added underscores to improve many awkward names.
2324 - Added RFC-2822 header support.
2325 - Extracted the inline parsing code from ``RSTState`` to a separate
2326 class, ``Inliner``, which will allow easy subclassing.
2327 - Made local bindings for ``memo`` container & often-used contents
2328 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2329 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2330 - Added ``MarkupMismatch`` exception; for late corrections.
2331 - Added ``-/:`` characters to inline markup's start string prefix,
2332 ``/`` to end string suffix.
2333 - Fixed a footnote bug.
2334 - Fixed a bug with literal blocks.
2335 - Applied patch from Simon Budig: simplified regexps with symbolic
2336 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2337 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2338 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2339 - Allowed non-ASCII in "simple names" (directive names, field names,
2341 - Converted ``Inliner.patterns.initial`` to be dynamically built
2342 from parts with ``build_regexp()`` function.
2343 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2344 - Updated docstrings.
2345 - Changed "table" to "grid_table"; added "simple_table" support.
2347 * docutils/parsers/rst/tableparser.py:
2349 - Changed ``TableParser`` to ``GridTableParser``.
2350 - Added ``SimpleTableParser``.
2351 - Refactored naming.
2353 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2354 a fallback language for directive names.
2356 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2357 directive to use a ``pending`` element, used only by HTML writers.
2359 * docutils/parsers/rst/directives/parts.py: Renamed from
2362 - Added "backlinks" attribute to "contents" directive.
2364 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2365 project by Adam Chodorowski.
2367 * docutils/readers/__init__.py: Gave Readers more control over
2368 choosing and instantiating Parsers.
2370 * docutils/readers/pep.py: Added to project; for PEP processing.
2372 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2373 requires a ``component`` parameter.
2375 * docutils/transforms/components.py: Added to project; transforms
2376 related to Docutils components.
2378 * docutils/transforms/frontmatter.py:
2380 - In ``DocInfo.extract_authors``, check for a single "author" in an
2381 "authors" group, and convert it to a single "author" element.
2382 - Added support for "Dedication" and generic bibliographic fields.
2384 * docutils/transforms/peps.py: Added to project; PEP-specific.
2386 * docutils/transforms/parts.py: Renamed from old components.py.
2388 - Added filter for `Contents`, to use alt-text for inline images,
2389 and to remove inline markup that doesn't make sense in the ToC.
2390 - Added "name" attribute to TOC topic depending on its title.
2391 - Added support for optional TOC backlinks.
2393 * docutils/transforms/references.py: Fixed indirect target resolution
2394 in ``Hyperlinks`` transform.
2396 * docutils/transforms/universal.py:
2398 - Changed ``Messages`` transform to properly filter out system
2399 messages below the warning threshold.
2400 - Added ``Decorations`` transform (support for ``--generator``,
2401 ``--date``, ``--time``, ``--source-link`` options).
2403 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2404 Engelbert Gruber's PDF writer.
2406 * docutils/writers/html4css1.py:
2408 - Made XHTML-compatible (switched to lowercase element & attribute
2409 names; empty tag format).
2410 - Escape double-dashes in comment text.
2411 - Improved boilerplate & modularity of output.
2412 - Exposed modular output in Writer class.
2413 - Added a "generator" meta tag to <head>.
2414 - Added support for the ``--stylesheet`` option.
2415 - Added support for ``decoration``, ``header``, and ``footer``
2417 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2418 translation table to regexp; restores Python 2.0 compatibility
2420 - Added the translator class as instance variable to the Writer, to
2421 make it easily subclassable.
2422 - Improved option list spacing (thanks to Richard Jones).
2423 - Modified field list output.
2424 - Added backlinks to footnotes & citations.
2425 - Added percentage widths to "<col>" tags (from colspec).
2426 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2427 "<span>" changed to "<var>".
2428 - Inline literals: "<code>" changed to "<tt>".
2429 - Many changes to optimize vertical space: compact simple lists etc.
2430 - Add a command-line options & directive attributes to control TOC
2431 and footnote/citation backlinks.
2432 - Added support for optional footnote/citation backlinks.
2433 - Added support for generic bibliographic fields.
2434 - Identify backrefs.
2435 - Relative URLs for stylesheet links.
2437 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2438 PEPs (subclass of ``html4css1.Writer``).
2440 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2442 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2443 of the Docutils internal doctree in XML.
2445 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2449 - Changed the title to "The Docutils Document Tree".
2450 - Added "Hyperlink Bookkeeping" section.
2452 * spec/docutils.dtd:
2454 - Added ``decoration``, ``header``, and ``footer`` elements.
2455 - Brought ``interpreted`` element in line with the parser: changed
2456 attribute "type" to "role", added "position".
2457 - Added support for generic bibliographic fields.
2459 * spec/notes.txt: Continual updates. Added "Project Policies".
2461 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2464 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2466 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2467 mailing list discussions.
2469 * spec/pep-0287.txt:
2471 - Renamed to "reStructuredText Docstring Format".
2473 - Reworked Q&A as an enumerated list.
2474 - Converted to reStructuredText format.
2476 * spec/pysource.dtd:
2478 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2480 * spec/pysource.txt: Removed from project. Moved much of its contents
2483 * spec/rst/alternatives.txt:
2485 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2486 - Added "Inline External Targets" section.
2488 * spec/rst/directives.txt:
2490 - Added "backlinks" attribute to "contents" directive.
2492 * spec/rst/problems.txt:
2494 - Updated the Enumerated List Markup discussion.
2495 - Added new alternative table markup syntaxes.
2497 * spec/rst/reStructuredText.txt:
2499 - Clarified field list usage.
2500 - Updated enumerated list description.
2501 - Clarified purpose of directives.
2502 - Added ``-/:`` characters to inline markup's start string prefix,
2503 ``/`` to end string suffix.
2504 - Updated "Authors" bibliographic field behavior.
2505 - Changed "inline hyperlink targets" to "inline internal targets".
2506 - Added "simple table" syntax to supplement the existing but
2507 newly-renamed "grid tables".
2508 - Added cautions for anonymous hyperlink use.
2509 - Added "Dedication" and generic bibliographic fields.
2511 * test: Made test modules standalone (subdirectories became packages).
2513 * test/DocutilsTestSupport.py:
2515 - Added support for PEP extensions to reStructuredText.
2516 - Added support for simple tables.
2517 - Refactored naming.
2519 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2521 - Now supports true packages containing test modules
2522 (``__init__.py`` files required); fixes duplicate module name bug.
2524 * test/test_pep/: Subpackage added to project; PEP testing.
2526 * test/test_rst/test_SimpleTableParser.py: Added to project.
2530 - Updated html.py and publish.py front-end tools to use the new
2531 command-line processing facilities of ``docutils.frontend``
2532 (exposed in ``docutils.core.Publisher``), reducing each to just a
2534 - Added ``locale.setlocale()`` calls to front-end tools.
2536 * tools/buildhtml.py: Added to project; batch-generates .html from all
2537 the .txt files in directories and subdirectories.
2539 * tools/default.css:
2541 - Added support for ``header`` and ``footer`` elements.
2542 - Added styles for "Dedication" topics (biblio fields).
2544 * tools/docutils.conf: A configuration file; added to project.
2546 * tools/docutils-xml.py: Added to project.
2548 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2550 * tools/pep-html-template: Added to project.
2552 * tools/pep2html.py: Added to project from Python (nondist/peps).
2553 Added support for Docutils (reStructuredText PEPs).
2555 * tools/quicktest.py:
2557 - Added the ``--attributes`` option, hacked a bit.
2558 - Added a second command-line argument (output file); cleaned up.
2560 * tools/stylesheets/: Subdirectory added to project.
2562 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2565 Release 0.1 (2002-04-20)
2566 ========================
2568 This is the first release of Docutils, merged from the now inactive
2569 reStructuredText__ and `Docstring Processing System`__ projects. For
2570 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2571 `DPS HISTORY`__ files.
2573 __ http://structuredtext.sourceforge.net/
2574 __ http://docstring.sourceforge.net/
2575 __ http://structuredtext.sourceforge.net/HISTORY.html
2576 __ http://docstring.sourceforge.net/HISTORY.html
2578 General changes: renamed 'dps' package to 'docutils'; renamed
2579 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2580 the test suites (reStructuredText's test/test_states renamed to
2581 test/test_rst); and all modifications required to make it all work.
2583 * docutils/parsers/rst/states.py:
2585 - Improved diagnostic system messages for missing blank lines.
2586 - Fixed substitution_reference bug.
2592 indent-tabs-mode: nil
2593 sentence-end-double-space: t