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 * docutils/writers/latex2e/__init__.py
26 - Fix [ 3043986 ] AttributeError using :local: with table of content.
29 Release 0.7 (2010-07-07)
30 ========================
34 - Fix [ 2881769 ] setup configuration.
35 - Fix [ 2788716 ] reporting problems in included files.
39 - FileInput opens files as text files with universal newline support
40 (mode "rU", configurable with the new optional argument "mode").
44 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
48 - Fix [ 2923723 ] let decode_path() tolerate path == None
50 * docutils/writers/html4css1/__init__.py
52 - Support SVG and SWF images (thanks to Stefan Rank).
53 - Generate valid XHTML for centered images with targets.
54 Use CSS classes instead of "align" tags for image alignment.
56 * docutils/writers/latex2e/__init__.py
58 - Use `transforms.writer_aux.Admonitions` to "normalize" special
60 - Use the ``\url`` command for URLs (breaks long URLs instead of
61 writing into the margin).
62 - Preserve runs of spaces in `inline literals`__.
63 - Deprecate ``figure_footnotes`` setting.
64 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
65 - New ``latex_preamble`` setting.
66 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
67 - Fix hyperlink targets (labels) for images, figures, and tables.
68 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
69 - Apply [ 2961991 ] Call hyperref with unicode option.
70 - Drop the special `output_encoding`__ default ("latin-1").
71 The Docutils wide default (usually "UTF-8") is used instead.
72 - Render inline markup in document title and subtitle.
73 - Fix numbering depth with LaTeX section numbering.
74 - Update Unicode -> LaTeX translations.
75 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
77 __ docs/ref/restructuredtext.html#inline-literals
78 __ docs/user/config.html#docutils-footnotes
79 __ docs/user/config.html#output_encoding
81 * docutils/writers/manpage.py
83 - Fix: supported attribute (thanks to peter2108).
84 - Remove trailing blanks in code (keep in sync with mercurial version).
85 - Titles level 1, that is ``.SH``, always uppercase.
86 - Apply patch from mg: literal text should be bold in man-pages.
90 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
95 - Python 3 support: copy test/ and tools/ to the build-dir
96 and convert Python sources with 2to3.
99 Release 0.6 (2009-10-11)
100 ========================
104 - Docutils is now compatible with Python versions from 2.3 up to 2.6
105 and convertible to 3.1 code.
107 + Node.__nonzero__ returns True instead of 1.
108 + use os.walk instead os.path.walk.
109 + minimize "types" module where possible.
110 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
111 + Text nodes now subclass unicode rather than UserString
112 (which is gone in python 3.0).
113 + 3.0 compatibility module docutils._compat
115 + Drop 2.2 compatibility workarounds.
116 + Drop extras/optparse.py and extras/textwrap.py
117 (stdlib modules since 2.3).
119 - OpenOffice export: ODT writer moved from sandbox to Doctutils core.
120 - Unix man page export: manpage writer moved from sandbox to Doctutils
123 - Apply [ 1719345 ] Galician translation
124 - Apply [ 1905741 ] Polish translation
125 - Apply [ 1878977 ] make_id(): deaccent characters.
126 - Apply [ 2029251 ] return nonzero when tests fail.
127 - Fix [ 1692788 ] allow UTF-8 in style sheets.
128 - Fix [ 2781629 ] support non-ASCII chars in file names.
129 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
130 - Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg
131 - Fix [ 2821266 ] --strict option works now like --halt=info.
132 - Fix [ 2788716 ] DirectiveError now correctly reports source and line.
133 - Fix [ 1627229 ] hyperlink references in substitutions.
135 - The "newlatex" writer is orphaned.
139 - Documented Unicode characters allowed as inline markup openers,
140 closers, and delimiters.
141 - Allow units for all length specifications.
142 - Allow percent sign in "scale" argument of "figure" and "image" directives.
143 - Bugfix: The "figalign" argument of a figure now works as intended
144 (aligning the figure, not its contents).
145 - Align images with class "align-[right|center|left]"
146 (allows setting the alignment of an image in a figure).
150 - Added ``Element.__contains__`` method, for the in-operator.
152 * docutils/parsers/rst/states.py:
154 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
155 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
156 " " (non-breaking space), and "¡ ¿" openers.
158 * docutils/parsers/directives/misc.py:
160 - Added ``start-line`` and ``end-line`` options to "include"
161 directive to select a range of lines.
162 - Hard tabs in literal inclusions are replaced by spaces. This is
163 configurable via the new ``tab-width`` option of the "include" directive
164 (a negative tab-width prevents tab expansion).
168 - Add ``get_stylesheet_list`` function.
169 - Apply [ 2834836 ] print info at halt
171 * docutils/transforms/universal.py:
173 - Raise default priority of StripClasses to exclude stripped classes from
176 * docutils/writers/html4css1/__init__.py:
178 - ``--stylesheet`` and ``--stylesheet-path`` options support a comma
179 separated list of stylesheets.
180 - Address [ 1938891 ] Inline literal text creates "pre" span only when
181 needed to prevent inter-word line wraps.
182 - Use `translate` method instead of repeated `replace` calls.
183 - Fix [ 1757105 ] New ``table-style`` option. Added to standard table
184 classes to allow CSS styling that does not interfere with other
185 table-using constructs (field lists, citations, ...).
187 * docutils/writers/newlatex2e/__init__.py:
189 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
191 * docutils/writers/latex2e/__init__.py (see also
192 `<docs/user/docutils-05-compat.sty.html>`__) :
194 - Add ``--embed-stylesheet`` option.
195 - Apply [ 1474017 ] image vertical alignment is reversed.
196 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
197 - Change: has_key for dictionaries (not Nodes) to in-operator.
198 - Merge adjacent citations into one latex cite command.
199 - Failsave implementation of custom roles. LaTeX compilation now ignores
200 unknown classes instead of aborting with an error.
201 - Support custom roles based on standard roles.
202 - LaTeX packages can be used as ``--stylesheet`` arguments without
203 restriction. (A style sheet is now referenced with the ``\usepackage``
204 command, if it ends with ``.sty`` or has no extension.)
205 - Add ``bp`` to lenghts without unit (prevents LaTex errors).
206 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
207 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
208 2005-02-04 as a configurable length unit).
209 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
210 if font-encoding is set to ''. LaTeX defaults to OT1 then.
211 - Set sub- and superscript role argument in text mode not as math.
212 Use a custom role based on sub-/superscript if you want italic shape.
213 - Shorter preamble and less dependencies: Load packages and define macros
214 only if required in the document.
215 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
216 - New custom environments and commands with optional "classes" argument.
217 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
218 - Better conformance to Docutils specifications with ``--use-latex-toc``.
219 Support for LaTeX generated ToC also with unnumbered sections.
220 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
221 section numbering by LaTeX.
222 - Use default font in admonitions and sidebar.
223 - Align of image in a figure defaults to 'center'.
224 - Bugfix: Newlines around targets and references prevent run-together
226 - Fix internal hyperlinks.
227 - Use class defaults for page margins ('typearea' now optional).
228 - Float placement made configurable, default changed to "here definitely".
229 - Typeset generic topic as "quote block with title".
230 - Use template (file and configuration option).
231 - In the default template, load cmap.sty (fix text extraction in PDF) and
232 fixltx2e.sty (LaTeX patches, \textsubscript).
233 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
234 - Use `translate` instead of repeated `replace` calls for text encoding.
235 - Hyperlinked footnotes and support for symbol footnotes and
236 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
237 - Complete pairs of binary options
238 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
239 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
241 - font-encoding: "T1" (formerly implicitely set by 'ae').
242 - use-latex-toc: true (ToC with page numbers).
243 - use-latex-footnotes: true (no mixup with figures).
245 * docutils/writers/manpage.py
247 - Do not print version at document end, this is done by the viewer.
248 - Do not print date at document end, this is done by the viewer.
249 - Fix storage of docinfo fields for none standard fields.
251 * docutils/tools/rst2man.py
253 Release 0.5 (2008-06-25)
254 ========================
256 * docutils/languages/he.py: Added to project: Hebrew mappings by
259 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
260 mappings by Meir Kriheli.
262 * docutils/frontend.py:
264 - Configuration files are now assumed and required to be
266 - Paths of applied configuration files are now recorded in the
267 runtime setting ``_config_files`` (accessible via
268 ``--dump-settings``).
269 - Added ``--strip-elements-with-class`` and ``--strip-class``
270 options (``strip_elements_with_classes`` and ``strip_classes``
275 - Added code to determine the input encoding from data: encoding
276 declarations or the presence of byte order marks (UTF-8 & UTF-16).
277 - Added support for IronPython 1.0.
281 - Added ``document.__getstate__`` method, for pickling.
283 * docutils/parsers/rst/states.py:
285 - Allow ``+`` and ``:`` in reference names.
286 - Unquoted targets beginning with an underscore (``.. __target:
287 URI``) are no longer accepted.
288 - Added support for multiple attributions in a physical block quote
289 (indented text block), dividing it into multiple logical block
291 - Added support for unicode bullets in bullet lists: "•", "‣", and
293 - Added support for new object-oriented directive interface,
294 retaining compatibility to the old functional interface.
295 - Added support for throwing ``DirectiveError``'s from within
298 * docutils/parsers/rst/__init__.py:
300 - Added ``Directive`` base class.
301 - Added ``DirectiveError`` base class.
302 - Fixed ``file_insertion_enabled`` & ``raw_enabled`` setting
305 * docutils/parsers/directives/:
307 - Refactored all reStructuredText directives to use the new
308 object-oriented directive interface. Errors are now (mostly)
309 thrown using the new ``DirectiveError`` class.
311 * docutils/parsers/directives/misc.py:
313 - Added ``start-after`` and ``end-before`` options to ``include``
314 directive; thanks to Stefan Rank.
316 * docutils/transforms/universal.py:
318 - Added ``StripClassesAndElements`` transform to remove from the
319 document tree all elements with classes in
320 ``settings.strip_elements_with_classes`` and all "classes"
321 attribute values in ``self.document.settings.strip_classes``.
323 * docutils/transforms/writer_aux.py:
325 - Added ``Admonitions`` transform to transform specific admonitions
326 (like ``note``, ``warning``, etc.) into generic admonitions with a
329 * docutils/writers/html4css1/__init__.py:
331 - Moved template functionality from the PEP/HTML writer here.
332 - Expanded the fragments available in the ``parts`` attribute.
333 - Moved ``id`` attributes from titles to surrounding ``div``
335 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
336 universally supported now).
337 - ``template.txt`` is now opened in text mode instead of binary mode
338 (to ensure Windows compatibility).
339 - ``a`` elements now have an "internal" or "external" class,
340 depending on reference type.
342 * docutils/writers/html4css1/template.txt: Added to project.
344 * docutils/writers/pep_html/:
346 - Moved template functionality to the HTML writer.
348 * docutils/writers/s5_html/__init__.py:
350 - Added ``view_mode`` & ``hidden_controls`` settings
351 (``--view-mode`` & ``--hidden-controls/--visible-controls``
354 * docutils/writers/latex2e/__init__.py:
356 - Add ``--literal-block-env``
357 - Fix: escaping ``%`` in href urls.
358 - Move usepackage hyperref after stylesheet inclusion.
359 - Fix: scrartcl does not have chapter but scrreprt.
360 - Add newline after ``\end{verbatim}``.
361 - Merge smaller differences from latex2e_adaptive_preamble.
362 - Add ``use-part-section``.
363 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
364 - Using leavemode option_list no longer needs to check if parent
365 is a definition list.
366 - Append ``\leavemode`` to definition list terms.
367 - No longer write visit\_/depart_definition_list_item comments to
369 - Table column width with 3 decimal places.
370 - Add table stubs support (boldfont).
371 - Add assemble_parts to writer.
372 - Add simply support for nested tables.
373 - Fix verbatim in tables if use-verbatim-when-possible.
374 - Use section commands down to subparagraph.
375 - Put ensuremath around some latin1 chars.
376 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
377 - New option ``--use-bibtex=style,db1,db2``.
378 - New option ``--reference-label`` to allow usage of LaTeX ref for
379 labels in section references.
380 - Add a label after every section to support sectionnumbers as reference
382 - Fix: bug# 1605376 rst2latex: bad options group list
383 - Remove inactive code for use_optionlist_for_option_list.
384 - Remove latex comments from option_list output.
385 - Fix: bug# 1612270 double qoutes in italian literal.
386 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
387 - Add option --use-latex-abstract.
388 - Image width unit ``px`` is translated to ``pt``.
389 - Add image height support.
390 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
392 - Fix: Do not escape underscores in citation reference labels if
393 use-latex-citations is set.
394 - Use centering instead of center for figure contents, to avoid vertical
396 - Recognize table class: borderless, nolines, booktabs, standard.
397 - Fix: Renaming contents section does not work with latex writer; SF
399 - Applied patch for custom roles with classes from Edward Loper.
400 - Fixed bug that caused crashes with more than 256 lists.
402 * docutils/writers/pep_html/__init__.py:
404 - Changed to support new python.org website structure and
407 * docs/howto/security.txt: "Deploying Docutils Securely", added to
410 * tools/buildhtml.py:
412 -- Added ``ignore`` setting to exclude a list of shell patterns
413 (default: ``.svn:CVS``).
415 * tools/editors/emacs/rst.el:
417 - Changed license to "GPL".
418 - Added ``rst-straighten-decorations`` function.
419 - The ``compile`` module is now always loaded.
420 - Added ``rst-toggle-line-block`` function.
421 - Headings consisting only of non-ASCII characters are now
422 recognized by ``rst-toc`` and ``rst-adjust``.
423 - Added font-lock support for multi-line comments where the first
424 comment line is empty.
425 - Added ``(require 'font-lock)``.
429 - Provide descriptive error message if distutils is missing.
432 Release 0.4 (2006-01-09)
433 ========================
437 - Updated the project policies for trunk/branch development &
440 * docutils/__init__.py:
442 - Added ``__version_details__`` attribute to describe code source
443 (repository/snapshot/release).
444 - Replaced ``default_transforms`` attribute of TransformSpec with
445 ``get_transforms()`` method.
449 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
450 functions, for document tree extraction and reprocessing.
454 - Added ``DocTreeInput`` class, for reprocessing existing documents.
455 - Added support for non-Unicode (e.g. binary) writer output.
459 - Re-introduced ``Targetable.indirect_reference_name``, for
460 MoinMoin/reST compatibility (removed in r3124/r3129).
461 - Added ``serial_escape`` function; escapes string values that are
462 elements of a list, for serialization. Modified Docutils-XML
463 writing (``Element._dom_node``) and pseudo-XML writing
464 (``Element.starttag``) to use ``serial_escape``.
465 - Added ``Node.deepcopy()`` method.
466 - Removed the internal lists ``document.substitution_refs``,
467 ``document.anonymous_refs``, and ``document.anonymous_targets``.
468 - Added a "container" element.
469 - Fixed bug where values of list-valued attributes of elements
470 originating from custom interpreted text roles (i.e., with custom
471 classes) were being shared between element instances. Reported by
474 * docutils/statemachine.py:
476 - Added trailing whitespace stripping to ``string2lines()``.
477 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
478 Asian double-width character support.
482 - Added ``east_asian_column_width()`` for double-width character
485 * docutils/languages/ja.py: Added to project: Japanese mappings by
488 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
489 mappings by Panjunyong.
491 * docutils/parsers/null.py: Added to project; a do-nothing parser.
493 * docutils/parsers/rst/__init__.py:
495 - Added validator to tab_width setting, with test. Closes SF bug
496 #1212515, report from Wu Wei.
498 * docutils/parsers/rst/states.py:
500 - Fixed bug with escaped colons indicating a literal block.
501 - Fixed bug with enumerated lists (SF#1254145).
502 - Backslash-escaped colons inside of field names are now allowed.
503 - Targets (implicit and explicit), anonymous hyperlink references
504 and auto-numbered footnote references inside of substitution
505 definitions are now disallowed.
506 - Fixed bug: list items with blank first lines.
507 - Fixed bug: block quote attributions with indented second lines.
508 - Added East Asian double-width character support (Python 2.4 only).
510 * docutils/parsers/rst/tableparser.py:
512 - Added East Asian double-width character support (Python 2.4 only).
514 * docutils/parsers/rst/directives/body.py:
516 - Added the "container" directive.
518 * docutils/parsers/rst/directives/misc.py:
520 - Added the "default-role", "title", and "date" directives.
521 - Added standard data file syntax to the "include" directive.
522 - Added support for "class" directive content.
524 * docutils/parsers/rst/directives/images.py:
526 - Added ``indirect_reference_name`` support for images with a target
528 - Added support for image width and height units.
529 - Fixed bug with image "target" options.
531 * docutils/parsers/rst/directives/references.py:
533 - Added "class" attribute to "target-notes" directive, for
534 footnote_reference classes.
536 * docutils/parsers/rst/include/: Directory added to project; contains
537 standard data files for the "include" directive. Initial contents:
538 character entity substitution definition sets, and a set of
539 definitions for S5/HTML presentations.
541 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
542 mappings by David Goodger.
544 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
545 Simplified Chinese mappings by Panjunyong.
547 * docutils/readers/__init__.py:
549 - Added universal.Decorations and universal.ExposeInternals
550 transforms as default transforms for all readers.
551 - Added ``ReReader`` base class for readers that reread an existing
554 * docutils/readers/doctree.py: Added to project; a reader for existing
557 * docutils/transforms/frontmatter.py:
559 - Fixed the DocInfo transform to handle SVN-style expansion of the
561 - In ``DocInfo.extract_authors``, treat the contents of "authors"
564 * docutils/transforms/misc.py:
566 - Added misc.Transitions transform, extracted from
567 universal.FinalChecks.
569 * docutils/transforms/references.py:
571 - Added references.DanglingReferences transform, extracted from
572 universal.FinalChecks.
573 - Fixed bug with doubly-indirect substitutions.
574 - Added footnote_reference classes attribute to "TargetNotes".
575 - Fixed bug with circular substitution definitions that put Docutils
576 into an infinite loop.
578 * docutils/transforms/universal.py:
580 - Added universal.ExposeInternals transform, extracted from
581 universal.FinalChecks.
582 - Removed universal.FinalChecks transform (logic has been moved to
583 several new transforms).
584 - Fixed bug with the "expose_internals" setting and Text nodes
585 (exposed by the "rawsource" internal attribute).
586 - Added the universal.StripComments transform, implementation of the
587 "strip_comments" setting.
589 * docutils/transforms/writer_aux.py: Added to project; auxiliary
590 transforms for writers.
592 - Added ``Compound`` transform, which flattens compound paragraphs.
594 * docutils/writers/: Several writer modules (html4css1.py) were
595 converted into packages. Support modules and data files have been
596 moved into the packages. The stylesheets for the HTML writers are
597 now installed along with the code, the code knows where to find
598 them, and the default is to use them (actually, to embed them).
599 Some adjustments to configuration files may be necessary. The
600 easiest way to obtain the new default behavior is to remove all
601 settings whose name includes "stylesheet".
603 * docutils/writers/__init__.py:
605 - Added universal.Messages and universal.FilterMessages transforms
606 as default transforms for all writers.
607 - Added ``UnfilteredWriter`` base class for writers that pass the
608 document tree on unchanged.
610 * docutils/writers/docutils_xml.py:
612 - Made ``xmlcharrefreplace`` the default output encoding error
615 * docutils/writers/html4css1/:
617 - Added support for image width and height units.
618 - Made ``xmlcharrefreplace`` the default output encoding error
620 - Made ``--embed-stylesheet`` the default rather than
621 ``--link-stylesheet``.
622 - Moved "id" attribute from container (section etc.) to title's <a>
623 tag, to be on the same tag as "name".
624 (!!! To be reverted in Docutils 0.5.)
625 - Added vertical space between fields of field lists.
626 - Added ``--compact-field-lists`` option to remove vertical space in
628 - Made cloaking of email addresses with ``--cloak-email-addresses``
630 - Fixed support for centered images.
631 - Added support for class="compact" & class="open" lists.
633 * docutils/writers/latex2e/:
635 - Underscores in citekeys are no longer escaped.
637 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
638 mapping of Unicode characters to LaTeX equivalents.
640 * docutils/writers/s5_html/: Package added to project; writer for
643 * docs/dev/distributing.txt: Added to project; guide for distributors
644 (package maintainers).
646 * docs/dev/hacking.txt: Added to project; guide for developers.
648 * docs/ref/doctree.txt:
650 - Updated for plural attributes "classes", "ids", "names",
652 - Added the "container" element.
654 * docs/ref/docutils.dtd:
656 - Updated for plural attributes "classes", "ids", "names",
659 * docs/user/emacs.txt: Added to project; a document about Emacs
660 support for reStructuredText and Docutils.
662 * docs/user/links.txt: Added to project; lists of Docutils-related
665 * docs/user/mailing-lists.txt: Added to project; information about
666 Docutils-related mailing lists and how to access them.
668 * docs/user/slide-shows.txt: Added to project; example of and docs for
669 the S5/HTML writer (``rst2s5.py`` front end).
671 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
672 Files", added to project.
674 * test/coverage.sh: Added to project; test coverage script.
676 * test/DocutilsTestSupport.py:
678 - Added support for specifying runtime settings at the suite level.
680 * test/test_functional.py:
682 - Added the ``clear_output_directory`` function.
683 - Added support for ``_test_more`` functions in functional test
686 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
688 * tools/rstpep2html.py: Renamed from pep.py.
690 * tools/dev/create_unimap.py: Added to project; script to create the
691 docutils/writers/unimap_latex.py mapping file.
693 * tools/dev/profile_docutils.py: Added to project; profiler script.
695 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
697 * tools/editors/emacs/restructuredtext.el,
698 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
699 Removed from project; the functionality is now contained in rst.el.
701 * tools/editors/emacs/rst.el: Added to project. Added many features
702 and fixed many bugs. See docs/user/emacs.txt for details.
704 * tools/stylesheets: Removed from project. Stylesheets have been
705 renamed and moved into writer packages.
708 Release 0.3.9 (2005-05-26)
709 ==========================
713 - Eliminated and replaced all uses of the old string attributes
714 ``id``, ``name``, ``dupname`` and ``class`` with references to the
715 new list attributes ``ids``, ``names``, ``dupnames`` and
716 ``classes`` throughout the whole source tree.
720 - Enabled ``--dump-*`` options when ``--traceback`` specified,
721 allowing for easier debugging.
722 - In ``Publisher.publish()``, expanded the generic top-level
725 * docutils/examples.py:
727 - Added ``internals`` function for exploration.
731 - Fixed ``Input.decode`` method to apply heuristics only if no
732 encoding is explicitly given, and to provide better reporting of
734 - The ``Input.decode`` method now removes byte order marks (BOMs)
739 - ``image`` element class changed to subclass of Element, not
740 TextElement (it's an empty element, and cannot contain text).
741 - Added ``attr_defaults`` dictionary for default attribute values.
742 - Added empty list as default value for the following attributes:
743 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
744 - Added ``document.decoration`` attribute,
745 ``document.get_decoration`` method, and ``decoration.get_header``
746 & ``.get_footer`` methods.
747 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
752 - Removed ``docutils.utils.Reporter.categories``,
753 ``docutils.utils.ConditionSet``, and all references to them, to
754 simplify error reporting.
756 * docutils/languages/nl.py: Added to project; Dutch mappings by
759 * docutils/parsers/rst/__init__.py:
761 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
763 * docutils/parsers/rst/states.py:
765 - Added check for escaped at-mark to prevent email address recognition.
766 - Fixed option lists to allow spaces inside ``<angle-bracketed option
768 - Allowed whitespace in paths and URLs.
769 - Added auto-enumerated list items.
770 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
772 - Added support for table stub columns.
774 * docutils/parsers/rst/directives/__init__.py:
776 - Allowed whitespace in paths (``path`` function).
777 - Added ``uri`` directive option conversion function.
779 * docutils/parsers/rst/directives/body.py:
781 - Fixed illegal context bug with "topic" directive (allowed within
782 sidebars; not within body elements).
784 * docutils/parsers/rst/directives/images.py:
786 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
787 - Added support for the ``file_insertion_enabled`` setting in the
788 "figure" directive (disables "figwidth" option).
789 - "image" directive: added checks for valid values of "align" option,
790 depending on context. "figure" directive: added specialized
791 "align" option and attribute on "figure" element.
792 - Made ":figwidth: image" option of "figure" directive work again.
793 - Fixed bug with reference names containing uppercase letters
794 (e.g. ``Name_``) in "target" option of "image" directive.
796 * docutils/parsers/rst/directives/misc.py:
798 - Fixed "include" and "raw" directives to catch text decoding
800 - Allowed whitespace in "include" & "raw" directive paths.
801 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
802 settings in "include" & "raw" directives.
804 * docutils/parsers/rst/directives/parts.py:
806 - Added "header" & "footer" directives.
807 - Fixed illegal context bug with "contents" directive (topics
808 allowed within sidebars; not within body elements).
810 * docutils/parsers/rst/directives/tables.py:
812 - Added "list-table" directive.
813 - Caught empty CSV table bug.
814 - Added support for the ``file_insertion_enabled`` setting in the
815 "csv-table" directive.
816 - Added ``stub-columns`` option to "csv-table" and "list-table"
819 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
820 mappings by Martijn Pieters.
822 * docutils/readers/standalone.py:
824 - Added ``--section-subtitles`` and ``--no-section-subtitles``
825 options to activate or deactivate the SectSubTitle transform.
827 * docutils/transforms/frontmatter.py:
829 - Added SectSubTitle transform to promote titles of lone
830 subsections to subtitles.
832 * docutils/transforms/references.py:
834 - Fixed mislocated internal targets bug, by propagating internal
835 targets to the next node, making use of the newly added support
836 for multiple names and IDs.
837 - Fixed duplicate footnote label bug.
838 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
841 * docutils/writers/html4css1.py:
843 - Fixed unencoded stylesheet reference bug (characters like "&" in
844 stylesheet references).
845 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
847 - Added support for multiple IDs per node by creating empty ``span``
849 - Added the ``field_name_limit`` & ``option_limit`` settings &
851 - Added support for table stub columns.
852 - Added support for the ``align`` attribute on ``figure`` elements.
853 - Added the ``cloak_email_addresses`` setting & support.
854 - Added ``html_prolog``, ``html_head``, ``html_body``,
855 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
856 ``docutils.core.publish_parts``.
857 - Added support for section subtitles.
859 * docutils/writers/latex2e.py:
861 - Fixed tables starting with more than one multirow cell.
862 - Improved --use-latex-docinfo so that organization/contact/address
863 fields are lumped with the last author field and appear on the
865 - Made sure the titlepage is always shown with --use-latex-docinfo,
866 even if the document has no title.
867 - Made sure that latex doesn't fill in today's date if no date field
869 - Added support for section subtitles.
871 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
874 * docutils/writers/null.py: Added to project; a do-nothing Writer.
876 * docs/api/publisher.txt:
878 - Added "``publish_parts`` Details" section.
880 * docutils/dev/repository.txt: Added to project; information about the
881 Docutils Subversion repository.
883 * docs/ref/docutils.dtd:
885 - Added a ``stub`` attribute to the ``colspec`` element via the
886 ``tbl.colspec.att`` parameter entity.
887 - Allowed topic elements within sidebars
888 - Added an ``align`` attribute to the ``figure`` element.
890 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
894 Release 0.3.7 (2004-12-24)
895 ==========================
897 * docutils/frontend.py:
899 - Added options: --input-encoding-error-handler,
900 --record-dependencies, --leave-footnote-reference-space,
902 - Added command-line and config file support for "overrides" setting
907 - Added support for input encoding error handler.
911 - Added dispatch_visit and dispatch_departure methods to
912 NodeVisitor; useful as a hook for Visitors.
913 - Changed structure of ``line_block``; added ``line``.
914 - Added ``compound`` node class.
915 - Added a mechanism for Visitors to transitionally ignore new node
920 - Moved ``escape2null`` and ``unescape`` functions from
921 docutils/parsers/rst/states.py.
923 * docutils/parsers/rst/roles.py:
926 - Changed role function API: the "text" parameter now takes
927 null-escaped interpreted text content.
929 * docutils/parsers/rst/states.py:
931 - Fixed bug where a "role" directive in a nested parse would crash
932 the parser; the state machine's "language" attribute was not being
934 - Added support for line block syntax.
935 - Fixed directive parsing bug: argument-less directives didn't
936 notice that arguments were present.
937 - Removed error checking for transitions.
938 - Added support for multiple classifiers in definition list items.
939 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
940 - Changed role function API: the "text" parameter now takes
941 null-escaped interpreted text content.
942 - Empty sections and documents are allowed now.
944 * docutils/parsers/rst/directives/__init__.py:
946 - Added ``encoding`` directive option conversion function.
947 - Allow multiple class names in class_option conversion function.
949 * docutils/parsers/rst/directives/body.py:
951 - Converted the line-block directive to use the new structure.
952 - Extracted the old line-block functionality to the ``block``
953 function (still used).
954 - Added ``compound`` directive (thanks to Lea Wiemann).
956 * docutils/parsers/rst/directives/misc.py:
958 - Added "encoding" option to "include" and "raw" directives.
959 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
960 - Allow multiple class names in the "class" directive.
962 * docutils/parsers/rst/directives/parts.py:
964 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
965 options. Thanks to Lele Gaifax.
967 * docutils/parsers/rst/directives/tables.py:
969 - Added "encoding" directive to "csv-table" directive.
970 - Added workaround for lack of Unicode support in csv.py, for
973 * docutils/transforms/misc.py:
975 - Fixed bug when multiple "class" directives are applied to a single
977 - Enabled multiple format names for "raw" directive.
979 * docutils/transforms/references.py:
981 - Added support for trimming whitespace from beside substitution
984 * docutils/transforms/universal.py:
986 - FinalChecks now checks for illegal transitions and moves
987 transitions between sections.
989 * docutils/writers/html4css1.py:
991 - HTMLTranslator.encode now converts U+00A0 to " ".
992 - "stylesheet" and "stylesheet_path" settings are now mutually
994 - Added support for the new line_block/line structure.
995 - --footnote-references now overrides
996 --trim-footnote-reference-space, if applicable.
997 - Added support for ``compound`` elements.
998 - Enabled multiple format names for "raw" directive.
999 - ``<p>`` tags of a paragraph which is the only visible child of the
1000 document node are no longer stripped.
1001 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
1002 new method ``should_be_compact_paragraph()``.
1003 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
1005 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
1006 the output if they have their ``class`` attribute set.
1007 - The whole document is now surrounded by a ``<div
1008 class="document">`` element.
1009 - Body-level images are now wrapped by their own ``<div>`` elements,
1010 with image classes copied to the wrapper, and for images which
1011 have the ``:align:`` option set, the surrounding ``<div>`` now
1012 receives a class attribute (like ``class="align-left"``).
1014 * docutils/writers/latex2e.py:
1016 - no newline after depart_term.
1017 - Added translations for some Unicode quotes.
1018 - Added option "font-encoding", made package AE the default.
1019 - "stylesheet" and "stylesheet_path" settings are now mutually
1021 - --footnote-references now overrides
1022 --trim-footnote-reference-space, if applicable.
1023 - The footnote label style now matches the footnote reference style
1024 ("brackets" or "superscript").
1025 - Added support for ``compound`` elements.
1026 - Enabled multiple format names for "raw" directive.
1028 * docs/ref/docutils.dtd:
1030 - Changed structure of the ``line_block`` element; added ``line``.
1031 - Added ``compound`` element.
1032 - Added "ltrim" and "rtrim" attributes to
1033 ``substitution_definition`` element.
1034 - Enabled multiple format names for ``raw`` element.
1035 - Enabled multiple classifiers in ``definition_list_item`` elements.
1037 * docs/ref/rst/directives.txt
1039 - Marked "line-block" as deprecated.
1040 - "Class" directive now allows multiple class names.
1041 - Added "Rationale for Class Attribute Value Conversion".
1042 - Added warning about "raw" overuse/abuse.
1044 * docs/ref/rst/restructuredtext.txt:
1046 - Added syntax for line blocks.
1047 - Definition list items may have multiple classifiers.
1049 * docs/ref/rst/roles.txt:
1053 * tools/stylesheets/default.css:
1055 - Added support for the new line_block structure.
1056 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
1059 Release 0.3.5 (2004-07-29)
1060 ==========================
1064 * _`Documentation cleanup/reorganization`.
1066 - Created new subdirectories of docs/:
1068 * ``docs/user/``: introductory/tutorial material for end-users
1069 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
1070 * ``docs/api/``: API reference material for client-developers
1071 * ``docs/ref/``: reference material for all groups
1072 * ``docs/howto/``: for component-developers and core-developers
1073 * ``docs/peps/``: Python Enhancement Proposals
1075 - Moved ``docs/*`` to ``docs/user/``.
1076 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
1077 ``spec/`` to ``docs/dev``.
1078 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
1079 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
1080 - Moved ``alternatives.txt``, and ``problems.txt`` from
1081 ``spec/rst/`` to ``docs/dev/rst/``.
1082 - Moved ``reStructuredText.txt``, ``directives.txt``,
1083 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
1084 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
1085 ``roles.txt``, ``reStructuredText.txt`` to
1086 ``restructuredtext.txt``.
1087 - Moved ``spec/howto/`` to ``docs/howto``.
1089 In order to keep the CVS history of moved files, we supplied
1090 SourceForge with a `script for modifying the Docutils CVS
1093 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
1095 After running the cleanup script:
1097 - Added ``docs/index.txt``.
1098 - Added a ``.htaccess`` file to the ``web`` module, containing
1099 redirects for all old paths to new paths. They'll preserve
1100 fragments (the "#name" part of a URL), and won't clutter up the
1101 file system, and will correct the URL in the user's browser.
1102 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
1103 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
1104 the "To Do" list itself in ``docs/dev/todo.txt``.
1105 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
1106 section of ``docs/dev/todo.txt``.
1107 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
1108 - Added "How To Report Bugs" to ``BUGS.txt``.
1109 - Went through all the sources and docs (including under web/) and
1110 updated links. Mostly done by Lea Wiemann; thanks Lea!
1111 (Still need to update links in the sandboxes.)
1115 * BUGS.txt: Added to project.
1117 * THANKS.txt: Added to project.
1119 * docutils/__init__.py:
1121 - 0.3.4: Post-release.
1125 - Added special error handling & advice for UnicodeEncodeError.
1126 - Refactored Publisher.publish (simplified exception handling &
1127 extracted debug dumps).
1128 - Renamed "enable_exit" parameter of convenience functions to
1129 "enable_exit_status".
1130 - Enabled traceback (exception propagation) by default in
1131 programmatic convenience functions.
1132 - Now publish_file and publish_cmdline convenience functions return
1133 the encoded string results in addition to their regular I/O.
1134 - Extracted common code from publish_file, publish_string, and
1135 publish_parts, into new publish_programmatically. Extracted
1136 settings code to ``Publisher.process_programmatic_settings``.
1137 - In Publisher.publish, disabled ``settings_overrides`` when
1138 ``settings`` is supplied; redundant.
1140 * docutils/frontend.py:
1142 - Added help text for "--output-encoding-error-handler" and
1143 "--error-encoding-error-handler".
1144 - Renamed "--exit" to "--exit-status".
1145 - Simplified default-setting code.
1147 * docutils/parsers/rst/__init__.py:
1149 - Added "--pep-base-url" and "--rfc-base-url" options.
1151 * docutils/parsers/rst/states.py:
1153 - Made URI recognition more aggressive and intelligent.
1155 * docutils/parsers/rst/directives/__init__.py:
1157 - Added several directive option conversion functions.
1159 * docutils/parsers/rst/directives/body.py:
1161 - Moved "table" directive to tables.py.
1163 * docutils/parsers/rst/directives/tables.py: Table-related directives,
1166 * docutils/writers/latex2e.py:
1168 - Added "--table-style=(standard|booktabs|nolines)"
1169 - figures get "here" option (LaTeX per default puts them at bottom),
1170 and figure content is centered.
1171 - Rowspan support for tables.
1172 - Fix: admonition titles before first section.
1173 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
1174 - Replave ``_`` in literal by an underlined blank, because it has the correct
1176 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
1177 - A few unicode replacements, if output_encoding != utf
1178 - Add "--graphicx-option".
1179 - Indent literal-blocks.
1180 - Fix: omit ``\maketitle`` when there is no document title.
1182 * docs/index.txt: "Docutils Project Documentation Overview", added to
1185 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
1186 Tool", added to project.
1188 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
1190 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
1192 * docs/dev/policies.txt: Added to project (extracted from
1193 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1195 * docs/dev/release.txt: Added to project (extracted from
1196 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1198 * docs/dev/testing.txt: Added to project.
1200 * docs/dev/website.txt: Added to project (extracted from
1201 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
1203 * docs/ref/rst/directives.txt:
1205 - Added directives: "table", "csv-table".
1207 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
1208 added to project. 1 page for syntax, and a 1 page reference for
1209 directives and roles. Source text to be used as-is; not meant to be
1212 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
1213 with a change of title.
1215 * test/functional/, contents, and test/test_functional.py: Added to
1218 * tools/buildhtml.py: Fixed bug with config file handling.
1220 * tools/html.py: Removed from project (duplicate of rst2html.py).
1222 * tools/pep2html.py: Removed from project (duplicate of Python's
1223 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
1224 Docutils-related PEPs in docs/peps/).
1226 * tools/rst2pseudoxml.py: Renamed from publish.py.
1228 * tools/rst2xml.py: Renamed from docutils-xml.py.
1230 * tools/test.txt: Removed from project; moved to
1231 docs/user/rst/demo.txt.
1233 * setup.py: Now also installs ``rst2latex.py``.
1236 Release 0.3.3 (2004-05-09)
1237 ==========================
1239 * docutils/__init__.py:
1241 - 0.3.1: Reorganized config file format (multiple sections); see
1243 - Added unknown_reference_resolvers attribute to TransformSpec.
1244 - 0.3.2: Interpreted text reorganization.
1249 - Catch system messages to stop tracebacks from parsing errors.
1250 - Catch exceptions during processing report & exit without
1251 tracebacks, except when "--traceback" used.
1252 - Reordered components for OptionParser; application comes last.
1253 - Added "config_section" parameter to several methods and functions,
1254 allowing front ends to easily specify their config file sections.
1255 - Added publish_parts convenience function to allow access to individual
1256 parts of a document.
1258 * docutils/examples.py: Added to project; practical examples of
1259 Docutils client code, to be used as-is or as models for variations.
1261 * docutils/frontend.py:
1263 - Added "--traceback" & "--no-traceback" options ("traceback"
1265 - Implemented support for config file reorganization:
1266 ``standard_config_files`` moved from ``ConfigParser`` to
1267 ``OptionParser``; added
1268 ``OptionParser.get_config_file_settings()`` and
1269 ``.get_standard_config_settings()``; support for old "[options]"
1270 section (with deprecation warning) and mapping from old to new
1272 - Reimplemented setting validation.
1273 - Enabled flexible boolean values: yes/no, true/false, on/off.
1274 - Added ``Values``, a subclass of ``optparse.Values``, with support
1275 for list setting attributes.
1276 - Added support for new ``DOCUTILSCONFIG`` environment variable;
1277 thanks to Beni Cherniavsky.
1278 - Added "--no-section-numbering" option.
1282 - Catch IOErrors when opening source & destination files, report &
1283 exit without tracebacks. Added ``handle_io_errors`` parameter to
1284 ``FileInput`` & ``FileOutput`` to enable caller error handling.
1286 * docutils/nodes.py:
1288 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
1289 method definitions (via ``exec``) to dynamic assignments (via
1290 ``setattr``); thanks to Roman Suzi.
1291 - Encapsulated visitor dynamic assignments in a function; thanks to
1293 - Added indirect_reference_name attribute to the Targetable
1294 class. This attribute holds the whitespace_normalized_name
1295 (contains mixed case) of a target.
1297 * docutils/statemachine.py:
1299 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
1300 - Added ``StringList.get_2D_block``.
1302 * docutils/utils.py:
1304 - Added "level" attribute to SystemMessage exceptions.
1306 * docutils/languages/af.py: Added to project; Afrikaans mappings by
1309 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
1312 * docutils/languages/eo.py: Added to project; Esperanto mappings by
1313 Marcelo Huerta San Martin.
1315 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
1316 mappings by Lalo Martins.
1318 * docutils/languages/ru.py: Added to project; Russian mappings by
1321 * docutils/parsers/rst/roles.py: Added to project. Contains
1322 interpreted text role functions, a registry for interpreted text
1323 roles, and an API for adding to and retrieving from the registry.
1324 Contributed by Edward Loper.
1326 * docutils/parsers/rst/states.py:
1328 - Updated ``RSTState.nested_parse`` for "include" in table cells.
1329 - Allowed true em-dash character and "---" as block quote
1331 - Added support for <angle-bracketed> complex option arguments
1333 - Fixed handling of backslashes in substitution definitions.
1334 - Fixed off-by-1 error with extra whitespace after substitution
1335 definition directive.
1336 - Added inline markup parsing to field lists' field names.
1337 - Added support for quoted (and unindented) literal blocks.
1338 Driven in part by a bribe from Frank Siebenlist (thanks!).
1339 - Parser now handles escapes in URIs correctly.
1340 - Made embedded-URIs' reference text omittable. Idea from Beni
1342 - Refactored explicit target processing code.
1343 - Added name attribute to references containing the reference name only
1344 through whitespace_normalize_name (no case changes).
1345 - parse_target no longer returns the refname after going through
1346 normalize_name. This is now handled in make_target.
1347 - Fixed bug relating to role-less interpreted text in non-English
1349 - Reorganized interpreted text processing; moved code into the new
1350 roles.py module. Contributed by Edward Loper.
1351 - Refactored ``Body.parse_directive`` into ``run_directive`` and
1352 ``parse_directive_block``.
1354 * docutils/parsers/rst/tableparser.py:
1356 - Reworked for ``StringList``, to support "include" directives in
1359 * docutils/parsers/rst/directives/__init__.py:
1361 - Renamed ``unchanged()`` directive option conversion function to
1362 ``unchanged_required``, and added a new ``unchanged``.
1363 - Catch unicode value too high error; fixes bug 781766.
1364 - Beefed up directive error reporting.
1366 * docutils/parsers/rst/directives/body.py:
1368 - Added basic "table" directive.
1370 * docutils/parsers/rst/directives/images.py:
1372 - Added "target" option to "image" directive.
1373 - Added name attribute to references containing the reference name only
1374 through whitespace_normalize_name (no case changes).
1376 * docutils/parsers/rst/directives/misc.py:
1378 - Isolated the import of the ``urllib2`` module; was causing
1379 problems on SourceForge (``libssl.so.2`` unavailable?).
1380 - Added the "role" directive for declaring custom interpreted text
1383 * docutils/parsers/rst/directives/parts.py:
1385 - The "contents" directive does more work up-front, creating the
1386 "topic" and "title", and leaving the "pending" node for the
1387 transform. Allows earlier reference resolution; fixes subtle bug.
1389 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
1390 mappings by Jannie Hofmeyr.
1392 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
1393 mappings by Marek Blaha.
1395 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
1396 mappings by Marcelo Huerta San Martin.
1398 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
1399 Portuguese mappings by Lalo Martins.
1401 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
1402 mappings by Roman Suzi.
1404 * docutils/transforms/parts.py:
1406 - The "contents" directive does more work up-front, creating the
1407 "topic" and "title", and leaving the "pending" node for the
1408 transform. Allows earlier reference resolution; fixes subtle bug.
1409 - Added support for disabling of section numbering.
1411 * docutils/transforms/references.py:
1413 - Verifying that external targets are truly targets and not indirect
1414 references. This is because we are now adding a "name" attribute to
1415 references in addition to targets. Note sure if this is correct!
1416 - Added code to hook into the unknown_reference_resolvers list for a
1417 transformer in resolve_indirect_target. This allows the
1418 unknown_reference_resolvers to keep around indirect targets which
1419 docutils doesn't know about.
1420 - Added specific error message for duplicate targets.
1422 * docutils/transforms/universal.py:
1424 - Added FilterMessages transform (removes system messages below the
1425 verbosity threshold).
1426 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
1427 to FinalCheckVisitor for application-specific handling of
1428 unresolvable references.
1429 - Added specific error message for duplicate targets.
1431 * docutils/writers/__init__.py:
1433 - Added assemble_parts method to the Writer class to allow for
1434 access to a documents individual parts.
1435 - Documented & set default for ``Writer.output`` attribute.
1437 * docutils/writers/html4css1.py:
1439 - Fixed unicode handling of attribute values (bug 760673).
1440 - Prevent duplication of "class" attribute values (bug report from
1442 - Improved table grid/border handling (prompted by report from Bob
1444 - Added support for table titles.
1445 - Added "<title />" for untitled docs, for XHTML conformance; thanks
1447 - Added functionality to keep track of individual parts of a document
1448 and store them in a dictionary as the "parts" attribute of the writer.
1449 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
1450 - Added proper support for the "scale" attribute of the "image"
1451 element. Contributed by Brent Cook.
1452 - Added ``--initial-header-level`` option.
1453 - Fixed bug: the body_pre_docinfo segment depended on there being a
1454 docinfo; if no docinfo, the document title was incorporated into
1455 the body segment. Adversely affected the publish_parts interface.
1457 * docutils/writers/latex2e.py:
1459 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
1460 about a missing file.
1461 - Added options and support: ``--compound-enumerators``,
1462 ``--section-prefix-for-enumerators``, and
1463 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
1465 - Added option ``--use-verbatim-when-possible``, to avoid
1466 problematic characters (eg, '~' in italian) in literal blocks.
1467 - It's now possible to use four section levels in the `book` and
1468 `report` LaTeX classes. The default `article` class still has
1471 * docs/config.txt: "Docutils Configuration Files", added to project.
1472 Moved config file entry descriptions from tools.txt.
1476 - Moved config file entry descriptions to config.txt.
1478 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
1481 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
1482 Text Roles", added to project.
1484 * spec/rst/reStructuredText.txt:
1486 - Added description of support for <angle-bracketed> complex option
1487 arguments to option lists.
1488 - Added subsections for indented and quoted literal blocks.
1490 * test: Continually adding & updating tests.
1492 - Added test/test_settings.py & test/data/config_*.txt support
1494 - Added test/test_writers/test_htmlfragment.py.
1496 * test/DocutilsTestSupport.py:
1498 - Refactored LaTeX publisher test suite/case class names to make
1499 testing other writers easier.
1500 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
1501 to test the processing of HTML fragments which use the new
1502 publish_parts convenience function.
1504 * tools/buildhtml.py:
1506 - Added support for the "--prune" option.
1507 - Removed dependency on pep2html.py; plaintext PEPs no longer
1510 * tools/docutils.conf:
1512 - Updated for configuration file reorganization.
1514 * tools/rst2html.py:
1516 - copied from tools/html.py
1520 - added a 'scripts' section to configuration
1521 - added 'tools/rst2html.py' to the scripts section
1524 Release 0.3 (2003-06-24)
1525 ========================
1529 * Renamed "attribute" to "option" for directives/extensions.
1531 * Renamed transform method "transform" to "apply".
1533 * Renamed "options" to "settings" for runtime settings (as set by
1534 command-line options). Sometimes "option" (singular) became
1535 "settings" (plural). Some variations below:
1537 - document.options -> document.settings (stored in other objects as
1539 - option_spec -> settings_spec (not directives though)
1540 - OptionSpec -> SettingsSpec
1541 - cmdline_options -> settings_spec
1542 - relative_path_options -> relative_path_settings
1543 - option_default_overrides -> settings_default_overrides
1544 - Publisher.set_options -> Publisher.get_settings
1548 * COPYING.txt: Added "Public Domain Dedication".
1550 * FAQ.txt: Frequently asked questions, added to project.
1554 - Updated with PyPI Trove classifiers.
1555 - Conditional installation of third-party modules.
1557 * docutils/__init__.py:
1559 - Bumped version to 0.2.1 to reflect changes to I/O classes.
1560 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
1561 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
1562 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
1563 option and its effect on the PEP template & writer.
1564 - Bumped version to 0.2.4 due to changes to the PEP template &
1566 - Bumped version to 0.2.5 to reflect changes to Reporter output.
1567 - Added ``TransformSpec`` class for new transform system.
1568 - Bumped version to 0.2.6 for API changes (renaming).
1569 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
1570 convenience functions.
1571 - Added ``Component.component_type`` attribute.
1572 - Bumped version to 0.2.8 because of the internal parser switch from
1573 plain lists to the docutils.statemachine.StringList objects.
1574 - Bumped version to 0.2.9 because of the frontend.py API changes.
1575 - Bumped version to 0.2.10 due to changes to the project layout
1576 (third-party modules removed from the "docutils" package), and
1577 signature changes in ``io.Input``/``io.Output``.
1578 - Changed version to 0.3.0 for release.
1582 - Made ``publish()`` a bit more convenient.
1583 - Generalized ``Publisher.set_io``.
1584 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
1585 parameters; improved its docstring.
1586 - Added ``publish_file()`` and ``publish_string()``.
1587 - Factored ``Publisher.set_source()`` and ``.set_destination()``
1589 - Added support for "--dump-pseudo-xml", "--dump-settings", and
1590 "--dump-transforms" hidden options.
1591 - Added ``Publisher.apply_transforms()`` method.
1592 - Added ``Publisher.set_components()`` method; support for
1593 ``publish_*()`` conveninece functions.
1594 - Moved config file processing to docutils/frontend.py.
1595 - Added support for exit status ("exit_level" setting &
1596 ``enable_exit`` parameter for Publisher.publish() and convenience
1599 * docutils/frontend.py:
1601 - Check for & exit on identical source & destination paths.
1602 - Fixed bug with absolute paths & "--config".
1603 - Set non-command-line defaults in ``OptionParser.__init__()``:
1604 ``_source`` & ``_destination``.
1605 - Distributed ``relative_path_settings`` to components; updated
1606 ``OptionParser.populate_from_components()`` to combine it all.
1607 - Require list of keys in ``make_paths_absolute`` (was implicit in
1608 global ``relative_path_settings``).
1609 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
1610 "--dump-settings", and "--dump-transforms" hidden options.
1611 - Removed nasty internals-fiddling ``ConfigParser.get_section``
1612 code, replaced with correct code.
1613 - Added validation functionality for config files.
1614 - Added "--error-encoding" option/setting, "_disable_config"
1616 - Added encoding validation; updated "--input-encoding" and
1617 "--output-encoding"; added "--error-encoding-error-handler" and
1618 "--output-encoding-error-handler".
1619 - Moved config file processing from docutils/core.py.
1620 - Updated ``OptionParser.populate_from_components`` to handle new
1621 ``SettingsSpec.settings_defaults`` dict.
1622 - Added support for "-" => stdin/stdout.
1623 - Added "exit_level" setting ("--exit" option).
1627 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
1628 - Added automatic closing to ``FileInput`` and ``FileOutput``.
1629 - Delayed opening of ``FileOutput`` file until ``write()`` called.
1630 - ``FileOutput.write()`` now returns the encoded output string.
1631 - Try to get path/stream name automatically in ``FileInput`` &
1633 - Added defaults for source & destination paths.
1634 - Allow for Unicode I/O with an explicit "unicode" encoding.
1635 - Added ``Output.encode()``.
1636 - Removed dependency on runtime settings; pass encoding directly.
1637 - Recognize Unicode strings in ``Input.decode()``.
1638 - Added support for output encoding error handlers.
1640 * docutils/nodes.py:
1642 - Added "Invisible" element category class.
1643 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
1644 modification during a traversal.
1645 - Added element classes: ``line_block``, ``generated``, ``address``,
1646 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
1647 ``superscript``, ``subscript``, ``inline``
1648 - Added support for lists of nodes to ``Element.insert()``.
1649 - Fixed parent linking in ``Element.replace()``.
1650 - Added new abstract superclass ``FixedTextElement``; adds
1651 "xml:space" attribute.
1652 - Added support for "line" attribute of ``system_message`` nodes.
1653 - Added support for the observer pattern from ``utils.Reporter``.
1654 Added ``parse_messages`` and ``transform_messages`` attributes to
1655 ``document``, removed ``messages``. Added ``note_parse_message``
1656 and ``note_transform_message`` methods.
1657 - Added support for improved diagnostics:
1659 - Added "document", "source", and "line" internal attributes to
1660 ``Node``, set by ``Node.setup_child()``.
1661 - Converted variations on ``node.parent = self`` to
1662 ``self.setup_child(node)``.
1663 - Added ``document.current_source`` & ``.current_line``
1664 attributes, and ``.note_source`` observer method.
1665 - Changed "system_message" output to GNU-Tools format.
1667 - Added a "rawsource" attribute to the ``Text`` class, for text
1668 before backslash-escape resolution.
1669 - Support for new transform system.
1670 - Reworked ``pending`` element.
1671 - Fixed XML DOM bug (SF #660611).
1672 - Removed the ``interpeted`` element class and added
1673 ``title_reference``, ``abbreviation``, ``acronym``.
1674 - Made substitutions case-sensitive-but-forgiving; moved some code
1676 - Fixed Unicode bug on element attributes (report: William Dode).
1678 * docutils/optik.py: Removed from project; replaced with
1679 extras/optparse.py and extras/textwrap.py. These will be installed
1680 only if they're not already present in the Python installation.
1682 * docutils/roman.py: Moved to extras/roman.py; this will be installed
1683 only if it's not already present in the Python installation.
1685 * docutils/statemachine.py:
1687 - Factored out ``State.add_initial_transitions()`` so it can be
1689 - Converted whitespace-specific "blank" and "indent" transitions
1690 from special-case code to ordinary transitions: removed
1691 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
1692 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
1693 ``ws_initial_transitions`` attributes.
1694 - Removed ``State.match_transition()`` after merging it into
1696 - Added ``StateCorrection`` exception.
1697 - Added support for ``StateCorrection`` in ``StateMachine.run()``
1698 (moved ``TransitionCorrection`` support there too.)
1699 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
1700 ``EOFError`` instead of ``IndexError``.
1701 - Added ``State.no_match`` method.
1702 - Added support for the Observer pattern, triggered by input line
1704 - Added ``strip_top`` parameter to
1705 ``StateMachineWS.get_first_known_indented``.
1706 - Made ``context`` a parameter to ``StateMachine.run()``.
1707 - Added ``ViewList`` & ``StringList`` classes;
1708 ``extract_indented()`` becomes ``StringList.get_indented()``.
1709 - Added ``StateMachine.insert_input()``.
1710 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1711 thanks to) Fred Drake.
1713 * docutils/utils.py:
1715 - Added a ``source`` attribute to Reporter instances and
1716 ``system_message`` elements.
1717 - Added an observer pattern to ``utils.Reporter`` to keep track of
1719 - Fixed bugs in ``relative_path()``.
1720 - Added support for improved diagnostics.
1721 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1722 - Added support for encoding Reporter stderr output, and encoding
1724 - Reporter keeps track of the highest level system message yet
1727 * docutils/languages: Fixed bibliographic field language lookups.
1729 * docutils/languages/es.py: Added to project; Spanish mappings by
1730 Marcelo Huerta San Martin.
1732 * docutils/languages/fr.py: Added to project; French mappings by
1735 * docutils/languages/it.py: Added to project; Italian mappings by
1738 * docutils/languages/sk.py: Added to project; Slovak mappings by
1741 * docutils/parser/__init__.py:
1743 - Added ``Parser.finish_parse()`` method.
1745 * docutils/parser/rst/__init__.py:
1747 - Added options: "--pep-references", "--rfc-references",
1748 "--tab-width", "--trim-footnote-reference-space".
1750 * docutils/parsers/rst/states.py:
1752 - Changed "title under/overline too short" system messages from INFO
1753 to WARNING, and fixed its insertion location.
1754 - Fixed enumerated list item parsing to allow paragraphs & section
1755 titles to begin with enumerators.
1756 - Converted system messages to use the new "line" attribute.
1757 - Fixed a substitution reference edge case.
1758 - Added support for "--pep-references" and "--rfc-references"
1759 options; reworked ``Inliner`` code to make customization easier.
1760 - Removed field argument parsing.
1761 - Added support for short section title over/underlines.
1762 - Fixed "simple reference name" regexp to ignore text like
1763 "object.__method__"; not an anonymous reference.
1764 - Added support for improved diagnostics.
1765 - Reworked directive API, based on Dethe Elza's contribution. Added
1766 ``Body.parse_directive()``, ``.parse_directive_options()``,
1767 ``.parse_directive_arguments()`` methods.
1768 - Added ``ExtensionOptions`` class, to parse directive options
1769 without parsing field bodies. Factored
1770 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1771 ``ExtensionOptions``.
1772 - Improved definition list term/classifier parsing.
1773 - Added warnings for unknown directives.
1774 - Renamed ``Stuff`` to ``Struct``.
1775 - Now flagged as errors: transitions at the beginning or end of
1776 sections, empty sections (except title), and empty documents.
1777 - Updated for ``statemachine.StringList``.
1778 - Enabled recognition of schemeless email addresses in targets.
1779 - Added support for embedded URIs in hyperlink references.
1780 - Added backslash-escapes to inline markup end-string suffix.
1781 - Added support for correct interpreted text processing.
1782 - Fixed nested title parsing (topic, sidebar directives).
1783 - Added special processing of backslash-escaped whitespace (idea
1784 from David Abrahams).
1785 - Made substitutions case-sensitive-but-forgiving; moved some code
1786 to ``docutils.nodes``.
1787 - Added support for block quote attributions.
1788 - Added a kludge to work-around a conflict between the bubble-up
1789 parser strategy and short titles (<= 3 char-long over- &
1790 underlines). Fixes SF bug #738803 "infinite loop with multiple
1791 titles" submitted by Jason Diamond.
1792 - Added explicit interpreted text roles for standard inline markup:
1793 "emphasis", "strong", "literal".
1794 - Implemented "superscript" and "subscript" interpreted text roles.
1795 - Added initial support for "abbreviation" and "acronym" roles;
1797 - Added support for "--trim-footnote-reference-space" option.
1798 - Optional space before colons in directives & hyperlink targets.
1800 * docutils/parsers/rst/tableparser.py:
1802 - Fixed a bug that was producing unwanted empty rows in "simple"
1804 - Detect bad column spans in "simple" tables.
1806 * docutils/parsers/rst/directives: Updated all directive functions to
1809 * docutils/parsers/rst/directives/__init__.py:
1811 - Added ``flag()``, ``unchanged()``, ``path()``,
1812 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1813 directive option helper functions.
1814 - Added warnings for unknown directives.
1815 - Return ``None`` for missing directives.
1816 - Added ``register_directive()``, thanks to William Dode and Paul
1819 * docutils/parsers/rst/directives/admonitions.py:
1821 - Added "admonition" directive.
1823 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1824 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1825 "parsed-literal", "rubric", "epigraph", "highlights" and
1826 "pull-quote" directives.
1828 * docutils/parsers/rst/directives/images.py:
1830 - Added an "align" attribute to the "image" & "figure" directives
1831 (by Adam Chodorowski).
1832 - Added "class" option to "image", and "figclass" to "figure".
1834 * docutils/parsers/rst/directives/misc.py:
1836 - Added "include", "raw", and "replace" directives, courtesy of
1838 - Added "unicode" and "class" directives.
1840 * docutils/parsers/rst/directives/parts.py:
1842 - Added the "sectnum" directive; by Dmitry Jemerov.
1843 - Added "class" option to "contents" directive.
1845 * docutils/parsers/rst/directives/references.py: Added to project.
1846 Contains the "target-notes" directive.
1848 * docutils/parsers/rst/languages/__init__.py:
1850 - Return ``None`` from get_language() for missing language modules.
1852 * docutils/parsers/rst/languages/de.py: Added to project; German
1853 mappings by Engelbert Gruber.
1855 * docutils/parsers/rst/languages/en.py:
1857 - Added interpreted text roles mapping.
1859 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1860 mappings by Marcelo Huerta San Martin.
1862 * docutils/parsers/rst/languages/fr.py: Added to project; French
1863 mappings by William Dode.
1865 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1866 mappings by Nicola Larosa.
1868 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1869 mappings by Miroslav Vasko.
1871 * docutils/readers/__init__.py:
1873 - Added support for the observer pattern from ``utils.Reporter``, in
1874 ``Reader.parse`` and ``Reader.transform``.
1875 - Removed ``Reader.transform()`` method.
1876 - Added default parameter values to ``Reader.__init__()`` to make
1877 instantiation easier.
1878 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1880 * docutils/readers/pep.py:
1882 - Added the ``peps.TargetNotes`` transform to the Reader.
1883 - Removed PEP & RFC reference detection code; moved to
1884 parsers/rst/states.py as options (enabled here by default).
1885 - Added support for pre-acceptance PEPs (no PEP number yet).
1886 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1889 * docutils/readers/python: Python Source Reader subpackage added to
1890 project, including preliminary versions of:
1893 - moduleparser.py: Parser for Python modules.
1895 * docutils/transforms/__init__.py:
1897 - Added ``Transformer`` class and completed transform reform.
1898 - Added unknown_reference_resolvers list for each transformer. This list holds
1899 the list of functions provided by each component of the transformer that
1900 help resolve references.
1902 * docutils/transforms/frontmatter.py:
1904 - Improved support for generic fields.
1905 - Fixed bibliographic field language lookups.
1907 * docutils/transforms/misc.py: Added to project. Miscellaneous
1910 * docutils/transforms/parts.py:
1912 - Moved the "id" attribute from TOC list items to the references
1913 (``Contents.build_contents()``).
1914 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1915 - Added "class" attribute support to ``Contents``.
1917 * docutils/transforms/peps.py:
1919 - Added ``mask_email()`` function, updating to pep2html.py's
1921 - Linked "Content-Type: text/x-rst" to PEP 12.
1922 - Added the ``TargetNotes`` PEP-specific transform.
1923 - Added ``TargetNotes.cleanup_callback``.
1924 - Added title check to ``Headers``.
1926 * docutils/transforms/references.py:
1928 - Added the ``TargetNotes`` generic transform.
1929 - Split ``Hyperlinks`` into multiple transforms.
1930 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1931 - Added check for circular indirect references.
1932 - Made substitutions case-sensitive-but-forgiving.
1934 * docutils/transforms/universal.py:
1936 - Added support for the "--expose-internal-attributes" option.
1937 - Removed ``Pending`` transform classes & data.
1939 * docutils/writers/__init__.py:
1941 - Removed ``Writer.transform()`` method.
1943 * docutils/writers/docutils-xml.py:
1945 - Added XML and doctype declarations.
1946 - Added "--no-doctype" and "--no-xml-declaration" options.
1948 * docutils/writers/html4css1.py:
1950 - "name" attributes only on these tags: a, applet, form, frame,
1952 - Added "name" attribute to <a> in section titles for Netscape 4
1953 support (bug report: Pearu Peterson).
1954 - Fixed targets (names) on footnote, citation, topic title,
1955 problematic, and system_message nodes (for Netscape 4).
1956 - Changed field names from "<td>" to "<th>".
1957 - Added "@" to "@" encoding to thwart address harvesters.
1958 - Improved the vertical whitespace optimization; ignore "invisible"
1959 nodes (targets, comments, etc.).
1960 - Improved inline literals with ``<span class="pre">`` around chunks
1961 of text and `` `` for runs of spaces.
1962 - Improved modularity of output; added ``self.body_pre_docinfo`` and
1963 ``self.docinfo`` segments.
1964 - Added support for "line_block", "address" elements.
1965 - Improved backlinks (footnotes & system_messages).
1966 - Improved system_message output.
1967 - Redefined "--stylesheet" as containing an invariant URL, used
1968 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
1970 - Added "--footnote-references" option (superscript or brackets).
1971 - Added "--compact-lists" and "--no-compact-lists" options.
1972 - Added "--embed-stylesheet" and "--link-stylesheet" options;
1973 factored out ``HTMLTranslator.get_stylesheet_reference()``.
1974 - Improved field list rendering.
1975 - Added Docutils version to "generator" meta tag.
1976 - Fixed a bug with images; they must be inline, so wrapped in <p>.
1977 - Improved layout of <pre> HTML source.
1978 - Fixed attribute typo on <colspec>.
1979 - Refined XML prologue.
1980 - Support for no stylesheet.
1981 - Removed "interpreted" element support.
1982 - Added support for "title_reference", "sidebar", "attribution",
1983 "rubric", and generic "admonition" elements.
1984 - Added "--attribution" option.
1985 - Added support for "inline", "subscript", "superscript" elements.
1986 - Added initial support for "abbreviation" and "acronym";
1989 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
1993 - Double quotes in literal blocks (special treatment for de/ngerman).
1994 - Added '--hyperlink-color' option ('0' turns off coloring of links).
1995 - Added "--attribution" option.
1996 - Right align attributions.
1998 * docutils/writers/pep_html.py:
2000 - Parameterized output encoding in PEP template.
2001 - Reworked substitutions from ``locals()`` into ``subs`` dict.
2002 - Redefined "--pep-stylesheet" as containing an invariant URL, used
2003 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
2005 - Added an override on the "--footnote-references" option.
2006 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
2007 - Added Docutils version to "generator" meta tag.
2008 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2012 - Added a "silent" setting for ``buildhtml.py``.
2013 - Added a "Getting Help" section.
2014 - Rearranged the structure.
2015 - Kept up to date, with new settings, command-line options etc.
2016 - Added section for ``rst2latex.py`` (Engelbert Gruber).
2017 - Converted settings table into a definition list.
2019 * docs/rst/quickstart.txt:
2021 - Added a table of contents.
2022 - Added feedback information.
2023 - Added mention of minimum section title underline lengths.
2024 - Removed the 4-character minimum for section title underlines.
2026 * docs/rst/quickref.html:
2028 - Added a "Getting Help" section.
2029 - Added a style to make section title backlinks more subtle.
2030 - Added mention of minimum section title underline lengths.
2031 - Removed the 4-character minimum for section title underlines.
2033 * extras: Directory added to project; contains third-party modules
2034 that Docutils depends on (optparse, textwrap, roman). These are
2035 only installed if they're not already present.
2037 * licenses: Directory added to project; contains copies of license
2038 files for non-public-domain files.
2042 - Changed the focus. It's about DTD elements: structural
2043 relationships, semantics, and external (public) attributes. Not
2044 about the element class library.
2045 - Moved some implementation-specific stuff into ``docutils.nodes``
2047 - Wrote descriptions of all common attributes and parameter
2048 entities. Filled in introductory material.
2049 - Working through the element descriptions: 55 down, 37 to go.
2050 - Removed "Representation of Horizontal Rules" to
2051 spec/rst/alternatives.txt.
2053 * spec/docutils.dtd:
2055 - Added "generated" inline element.
2056 - Added "line_block" body element.
2057 - Added "auto" attribute to "title".
2058 - Changed content models of "literal_block" and "doctest_block" to
2060 - Added ``%number;`` attribute type parameter entity.
2061 - Changed ``%structural.elements;`` to ``%section.elements``.
2062 - Updated attribute types; made more specific.
2063 - Added "address" bibliographic element.
2064 - Added "line" attribute to ``system_message`` element.
2065 - Removed "field_argument" element; "field_name" may contain
2066 multiple words and whitespace.
2067 - Changed public identifier to docutils.sf.net.
2068 - Removed "interpreted" element; added "title_reference",
2069 "abbreviation", "acronym".
2070 - Removed "refuri" attribute from "footnote_reference" and
2071 "citation_reference".
2072 - Added "sidebar", "rubric", "attribution", "admonition",
2073 "superscript", "subscript", and "inline" elements.
2075 * spec/pep-0256.txt: Converted to reStructuredText & updated.
2077 * spec/pep-0257.txt: Converted to reStructuredText & updated.
2079 * spec/pep-0258.txt: Converted to reStructuredText & updated.
2081 * spec/semantics.txt: Updated with text from a Doc-SIG response to
2084 * spec/transforms.txt: Added to project.
2086 * spec/howto: Added subdirectory, for developer how-to docs.
2088 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
2089 Elza, edited & extended by David Goodger.
2091 * spec/howto/i18n.txt: Docutils Internationalization. Added to
2094 * spec/rst/alternatives.txt:
2096 - Added "Doctree Representation of Transitions" from
2098 - Updated "Inline External Targets" & closed the debate.
2099 - Added ideas for interpreted text syntax extensions.
2100 - Added "Nested Inline Markup" section.
2102 * spec/rst/directives.txt:
2104 - Added directives: "topic", "sectnum", "target-notes",
2105 "line-block", "parsed-literal", "include", "replace", "sidebar",
2106 "admonition", "rubric", "epigraph", "highlights", "unicode" and
2108 - Formalized descriptions of directive details.
2109 - Added an "align" attribute to the "image" & "figure" directives
2110 (by Adam Chodorowski).
2111 - Added "class" options to "topic", "sidebar", "line-block",
2112 "parsed-literal", "contents", and "image"; and "figclass" to
2115 * spec/rst/interpreted.txt: Added to project. Descriptions of
2116 interpreted text roles.
2118 * spec/rst/introduction.txt:
2120 - Added pointers to material for new users.
2122 * spec/rst/reStructuredText.txt:
2124 - Disambiguated comments (just add a newline after the "::").
2125 - Updated enumerated list description; added a discussion of the
2126 second-line validity checking.
2127 - Updated directive description.
2128 - Added a note redirecting newbies to the user docs.
2129 - Expanded description of inline markup start-strings in non-markup
2131 - Removed field arguments and made field lists a generic construct.
2132 - Removed the 4-character minimum for section title underlines.
2133 - Clarified term/classifier delimiter & inline markup ambiguity
2135 - Added "Embedded URIs".
2136 - Updated "Interpreted Text" section.
2137 - Added "Character-Level Inline Markup" section.
2139 * test: Continually adding & updating tests.
2141 - Moved test/test_rst/ to test/test_parsers/test_rst/.
2142 - Moved test/test_pep/ to test/test_readers/test_pep/.
2143 - Added test/test_readers/test_python/.
2144 - Added test/test_writers/ (Engelbert Gruber).
2148 - Made the ``locale.setlocale()`` calls in front ends
2151 * tools/buildhtml.py:
2153 - Added "--silent" option.
2154 - Fixed bug with absolute paths & "--config".
2155 - Updated for new I/O classes.
2156 - Added some exception handling.
2157 - Separated publishers' setting defaults; prevents interference.
2158 - Updated for new ``publish_file()`` convenience function.
2160 * tools/pep-html-template:
2162 - Allow for "--embed-stylesheet".
2163 - Added Docutils version to "generator" meta tag.
2164 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2165 - Conform to XHTML spec.
2167 * tools/pep2html.py:
2169 - Made ``argv`` a parameter to ``main()``.
2170 - Added support for "Content-Type:" header & arbitrary PEP formats.
2171 - Linked "Content-Type: text/plain" to PEP 9.
2172 - Files skipped (due to an error) are not pushed onto the server.
2173 - Updated for new I/O classes.
2174 - Added ``check_requirements()`` & ``pep_type_error()``.
2175 - Added some exception handling.
2176 - Updated for new ``publish_string()`` convenience function.
2177 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
2179 * tools/quicktest.py:
2181 - Added "-V"/"--version" option.
2183 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
2185 * tools/unicode2rstsubs.py: Added to project. Produces character
2186 entity files (reSructuredText substitutions) from the MathML master
2189 * tools/editors: Support code for editors, added to project. Contains
2190 ``emacs/restructuredtext.el``.
2192 * tools/stylesheets/default.css: Moved into the stylesheets directory.
2194 - Added style for chunks of inline literals.
2195 - Removed margin for first child of table cells.
2196 - Right-aligned field list names.
2197 - Support for auto-numbered section titles in TOCs.
2198 - Increased the size of inline literals (<tt>) in titles.
2199 - Restored the light gray background for inline literals.
2200 - Added support for "line_block" elements.
2201 - Added style for "address" elements.
2202 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
2203 - Improved field list rendering.
2204 - Vertical whitespace improvements.
2205 - Removed "a.target" style.
2207 * tools/stylesheets/pep.css:
2209 - Fixed nested section margins.
2210 - Other changes parallel those of ``../default.css``.
2213 Release 0.2 (2002-07-31)
2214 ========================
2218 - The word "component" was being used ambiguously. From now on,
2219 "component" will be used to mean "Docutils component", as in Reader,
2220 Writer, Parser, or Transform. Portions of documents (Table of
2221 Contents, sections, etc.) will be called "document parts".
2222 - Did a grand renaming: a lot of ``verylongnames`` became
2223 ``very_long_names``.
2224 - Cleaned up imports: no more relative package imports or
2225 comma-separated lists of top-level modules.
2226 - Added support for an option values object which carries default
2227 settings and overrides (from command-line options and library use).
2228 - Added internal Unicode support, and support for both input and
2230 - Added support for the ``docutils.io.IO`` class & subclasses.
2234 * docutils/__init__.py:
2236 - Added ``ApplicationError`` and ``DataError``, for use throughout
2238 - Added ``Component`` base class for Docutils components; implements
2239 the ``supports`` method.
2240 - Added ``__version__`` (thus, ``docutils.__version__``).
2244 - Removed many keyword parameters to ``Publisher.__init__()`` and
2245 ``publish()``; bundled into an option values object. Added
2246 "argv", "usage", "description", and "option_spec" parameters for
2247 command-line support.
2248 - Added ``Publisher.process_command_line()`` and ``.set_options()``
2250 - Reworked I/O model for ``docutils.io`` wrappers.
2251 - Updated ``Publisher.set_options()``; now returns option values
2253 - Added support for configuration files (/etc/docutils.conf,
2254 ./docutils.conf, ~/.docutils).
2255 - Added ``Publisher.setup_option_parser()``.
2256 - Added default usage message and description.
2258 * docutils/frontend.py: Added to project; support for front-end
2259 (command-line) scripts. Option specifications may be augmented by
2260 components. Requires Optik (http://optik.sf.net/) for option
2261 processing (installed locally as docutils/optik.py).
2263 * docutils/io.py: Added to project; uniform API for a variety of input
2266 * docutils/nodes.py:
2268 - Added ``TreeCopyVisitor`` class.
2269 - Added a ``copy`` method to ``Node`` and subclasses.
2270 - Added a ``SkipDeparture`` exception for visitors.
2271 - Renamed ``TreePruningException`` from ``VisitorException``.
2272 - Added docstrings to ``TreePruningException``, subclasses, and
2274 - Improved docstrings.
2275 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
2276 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
2278 - Added ``decoration``, ``header``, and ``footer`` node classes, and
2279 ``PreDecorative`` mixin.
2280 - Reworked the name/id bookkeeping; to ``document``, removed
2281 ``explicit_targets`` and ``implicit_targets`` attributes, added
2282 ``nametypes`` attribute and ``set_name_id_map`` method.
2283 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
2285 - Added ``document.has_name()`` method.
2286 - Fixed DOM generation for list-attributes.
2287 - Added category class ``Labeled`` (used by footnotes & citations).
2288 - Added ``Element.set_class()`` method (sets "class" attribute).
2290 * docutils/optik.py: Added to project. Combined from the Optik
2291 package, with added option groups and other modifications. The use
2292 of this module is probably only temporary.
2294 * docutils/statemachine.py:
2296 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
2297 - Added underscores to improve many awkward names.
2298 - In ``string2lines()``, changed whitespace normalizing translation
2299 table to regexp; restores Python 2.0 compatibility with Unicode.
2301 * docutils/urischemes.py:
2303 - Filled in some descriptions.
2304 - Added "shttp" scheme.
2306 * docutils/utils.py:
2308 - Added ``clean_rcs_keywords`` function (moved from
2309 docutils/transforms/frontmatter.py
2310 ``DocInfo.filter_rcs_keywords``).
2311 - Added underscores to improve many awkward names.
2312 - Changed names of Reporter's thresholds:
2313 warning_level -> report_level; error_level -> halt_level.
2314 - Moved ``utils.id()`` to ``nodes.make_id()``.
2315 - Added ``relative_path(source, target)``.
2317 * docutils/languages/de.py: German mappings; added to project. Thanks
2318 to Gunnar Schwant for the translations.
2320 * docutils/languages/en.py: Added "Dedication" bibliographic field
2323 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
2326 * docutils/parsers/rst/states.py:
2328 - Added underscores to improve many awkward names.
2329 - Added RFC-2822 header support.
2330 - Extracted the inline parsing code from ``RSTState`` to a separate
2331 class, ``Inliner``, which will allow easy subclassing.
2332 - Made local bindings for ``memo`` container & often-used contents
2333 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
2334 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
2335 - Added ``MarkupMismatch`` exception; for late corrections.
2336 - Added ``-/:`` characters to inline markup's start string prefix,
2337 ``/`` to end string suffix.
2338 - Fixed a footnote bug.
2339 - Fixed a bug with literal blocks.
2340 - Applied patch from Simon Budig: simplified regexps with symbolic
2341 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
2342 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
2343 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
2344 - Allowed non-ASCII in "simple names" (directive names, field names,
2346 - Converted ``Inliner.patterns.initial`` to be dynamically built
2347 from parts with ``build_regexp()`` function.
2348 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
2349 - Updated docstrings.
2350 - Changed "table" to "grid_table"; added "simple_table" support.
2352 * docutils/parsers/rst/tableparser.py:
2354 - Changed ``TableParser`` to ``GridTableParser``.
2355 - Added ``SimpleTableParser``.
2356 - Refactored naming.
2358 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
2359 a fallback language for directive names.
2361 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
2362 directive to use a ``pending`` element, used only by HTML writers.
2364 * docutils/parsers/rst/directives/parts.py: Renamed from
2367 - Added "backlinks" attribute to "contents" directive.
2369 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
2370 project by Adam Chodorowski.
2372 * docutils/readers/__init__.py: Gave Readers more control over
2373 choosing and instantiating Parsers.
2375 * docutils/readers/pep.py: Added to project; for PEP processing.
2377 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
2378 requires a ``component`` parameter.
2380 * docutils/transforms/components.py: Added to project; transforms
2381 related to Docutils components.
2383 * docutils/transforms/frontmatter.py:
2385 - In ``DocInfo.extract_authors``, check for a single "author" in an
2386 "authors" group, and convert it to a single "author" element.
2387 - Added support for "Dedication" and generic bibliographic fields.
2389 * docutils/transforms/peps.py: Added to project; PEP-specific.
2391 * docutils/transforms/parts.py: Renamed from old components.py.
2393 - Added filter for `Contents`, to use alt-text for inline images,
2394 and to remove inline markup that doesn't make sense in the ToC.
2395 - Added "name" attribute to TOC topic depending on its title.
2396 - Added support for optional TOC backlinks.
2398 * docutils/transforms/references.py: Fixed indirect target resolution
2399 in ``Hyperlinks`` transform.
2401 * docutils/transforms/universal.py:
2403 - Changed ``Messages`` transform to properly filter out system
2404 messages below the warning threshold.
2405 - Added ``Decorations`` transform (support for ``--generator``,
2406 ``--date``, ``--time``, ``--source-link`` options).
2408 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
2409 Engelbert Gruber's PDF writer.
2411 * docutils/writers/html4css1.py:
2413 - Made XHTML-compatible (switched to lowercase element & attribute
2414 names; empty tag format).
2415 - Escape double-dashes in comment text.
2416 - Improved boilerplate & modularity of output.
2417 - Exposed modular output in Writer class.
2418 - Added a "generator" meta tag to <head>.
2419 - Added support for the ``--stylesheet`` option.
2420 - Added support for ``decoration``, ``header``, and ``footer``
2422 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
2423 translation table to regexp; restores Python 2.0 compatibility
2425 - Added the translator class as instance variable to the Writer, to
2426 make it easily subclassable.
2427 - Improved option list spacing (thanks to Richard Jones).
2428 - Modified field list output.
2429 - Added backlinks to footnotes & citations.
2430 - Added percentage widths to "<col>" tags (from colspec).
2431 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
2432 "<span>" changed to "<var>".
2433 - Inline literals: "<code>" changed to "<tt>".
2434 - Many changes to optimize vertical space: compact simple lists etc.
2435 - Add a command-line options & directive attributes to control TOC
2436 and footnote/citation backlinks.
2437 - Added support for optional footnote/citation backlinks.
2438 - Added support for generic bibliographic fields.
2439 - Identify backrefs.
2440 - Relative URLs for stylesheet links.
2442 * docutils/writers/pep_html.py: Added to project; HTML Writer for
2443 PEPs (subclass of ``html4css1.Writer``).
2445 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
2447 * docutils/writers/docutils_xml.py: Added to project; trivial writer
2448 of the Docutils internal doctree in XML.
2450 * docs/tools.txt: "Docutils Front-End Tools", added to project.
2454 - Changed the title to "The Docutils Document Tree".
2455 - Added "Hyperlink Bookkeeping" section.
2457 * spec/docutils.dtd:
2459 - Added ``decoration``, ``header``, and ``footer`` elements.
2460 - Brought ``interpreted`` element in line with the parser: changed
2461 attribute "type" to "role", added "position".
2462 - Added support for generic bibliographic fields.
2464 * spec/notes.txt: Continual updates. Added "Project Policies".
2466 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
2469 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
2471 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
2472 mailing list discussions.
2474 * spec/pep-0287.txt:
2476 - Renamed to "reStructuredText Docstring Format".
2478 - Reworked Q&A as an enumerated list.
2479 - Converted to reStructuredText format.
2481 * spec/pysource.dtd:
2483 - Reworked structural elements, incorporating ideas from Tony Ibbs.
2485 * spec/pysource.txt: Removed from project. Moved much of its contents
2488 * spec/rst/alternatives.txt:
2490 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
2491 - Added "Inline External Targets" section.
2493 * spec/rst/directives.txt:
2495 - Added "backlinks" attribute to "contents" directive.
2497 * spec/rst/problems.txt:
2499 - Updated the Enumerated List Markup discussion.
2500 - Added new alternative table markup syntaxes.
2502 * spec/rst/reStructuredText.txt:
2504 - Clarified field list usage.
2505 - Updated enumerated list description.
2506 - Clarified purpose of directives.
2507 - Added ``-/:`` characters to inline markup's start string prefix,
2508 ``/`` to end string suffix.
2509 - Updated "Authors" bibliographic field behavior.
2510 - Changed "inline hyperlink targets" to "inline internal targets".
2511 - Added "simple table" syntax to supplement the existing but
2512 newly-renamed "grid tables".
2513 - Added cautions for anonymous hyperlink use.
2514 - Added "Dedication" and generic bibliographic fields.
2516 * test: Made test modules standalone (subdirectories became packages).
2518 * test/DocutilsTestSupport.py:
2520 - Added support for PEP extensions to reStructuredText.
2521 - Added support for simple tables.
2522 - Refactored naming.
2524 * test/package_unittest.py: Renamed from UnitTestFolder.py.
2526 - Now supports true packages containing test modules
2527 (``__init__.py`` files required); fixes duplicate module name bug.
2529 * test/test_pep/: Subpackage added to project; PEP testing.
2531 * test/test_rst/test_SimpleTableParser.py: Added to project.
2535 - Updated html.py and publish.py front-end tools to use the new
2536 command-line processing facilities of ``docutils.frontend``
2537 (exposed in ``docutils.core.Publisher``), reducing each to just a
2539 - Added ``locale.setlocale()`` calls to front-end tools.
2541 * tools/buildhtml.py: Added to project; batch-generates .html from all
2542 the .txt files in directories and subdirectories.
2544 * tools/default.css:
2546 - Added support for ``header`` and ``footer`` elements.
2547 - Added styles for "Dedication" topics (biblio fields).
2549 * tools/docutils.conf: A configuration file; added to project.
2551 * tools/docutils-xml.py: Added to project.
2553 * tools/pep.py: Added to project; PEP to HTML front-end tool.
2555 * tools/pep-html-template: Added to project.
2557 * tools/pep2html.py: Added to project from Python (nondist/peps).
2558 Added support for Docutils (reStructuredText PEPs).
2560 * tools/quicktest.py:
2562 - Added the ``--attributes`` option, hacked a bit.
2563 - Added a second command-line argument (output file); cleaned up.
2565 * tools/stylesheets/: Subdirectory added to project.
2567 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
2570 Release 0.1 (2002-04-20)
2571 ========================
2573 This is the first release of Docutils, merged from the now inactive
2574 reStructuredText__ and `Docstring Processing System`__ projects. For
2575 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
2576 `DPS HISTORY`__ files.
2578 __ http://structuredtext.sourceforge.net/
2579 __ http://docstring.sourceforge.net/
2580 __ http://structuredtext.sourceforge.net/HISTORY.html
2581 __ http://docstring.sourceforge.net/HISTORY.html
2583 General changes: renamed 'dps' package to 'docutils'; renamed
2584 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
2585 the test suites (reStructuredText's test/test_states renamed to
2586 test/test_rst); and all modifications required to make it all work.
2588 * docutils/parsers/rst/states.py:
2590 - Improved diagnostic system messages for missing blank lines.
2591 - Fixed substitution_reference bug.
2597 indent-tabs-mode: nil
2598 sentence-end-double-space: t