5 :Author: David Goodger; open to all Docutils developers
6 :Contact: goodger@python.org
8 :Web site: http://docutils.sourceforge.net/
9 :Copyright: This document has been placed in the public domain.
19 - Eliminated and replaced all uses of the old string attributes
20 ``id``, ``name``, ``dupname`` and ``class`` with references to the
21 new list attributes ``ids``, ``names``, ``dupnames`` and
22 ``classes`` throughout the whole source tree.
26 - Enabled ``--dump-*`` options when ``--traceback`` specified,
27 allowing for easier debugging.
29 * docutils/examples.py:
31 - Added ``internals`` function for exploration.
35 - Fixed ``Input.decode`` method to apply heuristics only if no
36 encoding is explicitly given, and to provide better reporting of
38 - The ``Input.decode`` method now removes byte order marks (BOMs)
43 - ``image`` element class changed to subclass of Element, not
44 TextElement (it's an empty element, and cannot contain text).
45 - Added ``attr_defaults`` dictionary for default attribute values.
46 - Added empty list as default value for the following attributes:
47 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
48 - Added ``document.decoration`` attribute,
49 ``document.get_decoration`` method, and ``decoration.get_header``
50 & ``.get_footer`` methods.
54 - Removed ``docutils.utils.Reporter.categories``,
55 ``docutils.utils.ConditionSet``, and all references to them, to
56 simplify error reporting.
58 * docutils/languages/nl.py: Added to project; Dutch mappings by
61 * docutils/parsers/rst/__init__.py:
63 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
65 * docutils/parsers/rst/states.py:
67 - Added check for escaped at-mark to prevent email address recognition.
68 - Fixed option lists to allow spaces inside ``<angle-bracketed option
70 - Allowed whitespace in paths and URLs.
71 - Added auto-enumerated list items.
72 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
74 - Added support for table stub columns.
76 * docutils/parsers/rst/directives/__init__.py:
78 - Allowed whitespace in paths (``path`` function).
79 - Added ``uri`` directive option conversion function.
81 * docutils/parsers/rst/directives/body.py:
83 - Fixed illegal context bug with "topic" directive (allowed within
84 sidebars; not within body elements).
86 * docutils/parsers/rst/directives/images.py:
88 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
89 - Added support for the ``file_insertion_enabled`` setting in the
90 "figure" directive (disables "figwidth" option).
91 - "image" directive: added checks for valid values of "align" option,
92 depending on context. "figure" directive: added specialized
93 "align" option and attribute on "figure" element.
94 - Made ":figwidth: image" option of "figure" directive work again.
95 - Fixed bug with reference names containing uppercase letters
96 (e.g. ``Name_``) in "target" option of "image" directive.
98 * docutils/parsers/rst/directives/misc.py:
100 - Fixed "include" and "raw" directives to catch text decoding
102 - Allowed whitespace in "include" & "raw" directive paths.
103 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
104 settings in "include" & "raw" directives.
106 * docutils/parsers/rst/directives/parts.py:
108 - Added "header" & "footer" directives.
109 - Fixed illegal context bug with "contents" directive (topics
110 allowed within sidebars; not within body elements).
112 * docutils/parsers/rst/directives/tables.py:
114 - Added "list-table" directive.
115 - Caught empty CSV table bug.
116 - Added support for the ``file_insertion_enabled`` setting in the
117 "csv-table" directive.
118 - Added ``stub-columns`` option to "csv-table" and "list-table"
121 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
122 mappings by Martijn Pieters.
124 * docutils/readers/standalone.py:
126 - Added ``--section-subtitles`` and ``--no-section-subtitles``
127 options to activate or deactivate the SectSubTitle transform.
129 * docutils/transforms/frontmatter.py:
131 - Added SectSubTitle transform to promote titles of lone
132 subsections to subtitles.
134 * docutils/transforms/references.py:
136 - Fixed mislocated internal targets bug, by propagating internal
137 targets to the next node, making use of the newly added support
138 for multiple names and IDs.
139 - Fixed duplicate footnote label bug.
140 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
143 * docutils/writers/html4css1.py:
145 - Fixed unencoded stylesheet reference bug (characters like "&" in
146 stylesheet references).
147 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
149 - Added support for multiple IDs per node by creating empty ``span``
151 - Added the ``field_name_limit`` & ``option_limit`` settings &
153 - Added support for table stub columns.
154 - Added support for the ``align`` attribute on ``figure`` elements.
155 - Added the ``cloak_email_addresses`` setting & support.
156 - Added ``html_prolog``, ``html_head``, ``html_body``,
157 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
158 ``docutils.core.publish_parts``.
160 * docutils/writers/latex2e.py:
162 - Fixed tables starting with more than one multirow cell.
163 - Improved --use-latex-docinfo so that organization/contact/address
164 fields are lumped with the last author field and appear on the
166 - Made sure the titlepage is always shown with --use-latex-docinfo,
167 even if the document has no title.
168 - Made sure that latex doesn't fill in today's date if no date field
171 * docutils/writers/null.py: Added to project; a do-nothing Writer.
173 * docs/api/publisher.txt:
175 - Added "``publish_parts`` Details" section.
177 * docs/ref/docutils.dtd:
179 - Added a ``stub`` attribute to the ``colspec`` element via the
180 ``tbl.colspec.att`` parameter entity.
181 - Allowed topic elements within sidebars
182 - Added an ``align`` attribute to the ``figure`` element.
185 Release 0.3.7 (2004-12-24)
186 ==========================
188 * docutils/frontend.py:
190 - Added options: --input-encoding-error-handler,
191 --record-dependencies, --leave-footnote-reference-space,
193 - Added command-line and config file support for "overrides" setting
198 - Added support for input encoding error handler.
202 - Added dispatch_visit and dispatch_departure methods to
203 NodeVisitor; useful as a hook for Visitors.
204 - Changed structure of ``line_block``; added ``line``.
205 - Added ``compound`` node class.
206 - Added a mechanism for Visitors to transitionally ignore new node
211 - Moved ``escape2null`` and ``unescape`` functions from
212 docutils/parsers/rst/states.py.
214 * docutils/parsers/rst/roles.py:
217 - Changed role function API: the "text" parameter now takes
218 null-escaped interpreted text content.
220 * docutils/parsers/rst/states.py:
222 - Fixed bug where a "role" directive in a nested parse would crash
223 the parser; the state machine's "language" attribute was not being
225 - Added support for line block syntax.
226 - Fixed directive parsing bug: argument-less directives didn't
227 notice that arguments were present.
228 - Removed error checking for transitions.
229 - Added support for multiple classifiers in definition list items.
230 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
231 - Changed role function API: the "text" parameter now takes
232 null-escaped interpreted text content.
233 - Empty sections and documents are allowed now.
235 * docutils/parsers/rst/directives/__init__.py:
237 - Added ``encoding`` directive option conversion function.
238 - Allow multiple class names in class_option conversion function.
240 * docutils/parsers/rst/directives/body.py:
242 - Converted the line-block directive to use the new structure.
243 - Extracted the old line-block functionality to the ``block``
244 function (still used).
245 - Added ``compound`` directive (thanks to Felix Wiemann).
247 * docutils/parsers/rst/directives/misc.py:
249 - Added "encoding" option to "include" and "raw" directives.
250 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
251 - Allow multiple class names in the "class" directive.
253 * docutils/parsers/rst/directives/parts.py:
255 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
256 options. Thanks to Lele Gaifax.
258 * docutils/parsers/rst/directives/tables.py:
260 - Added "encoding" directive to "csv-table" directive.
261 - Added workaround for lack of Unicode support in csv.py, for
264 * docutils/transforms/misc.py:
266 - Fixed bug when multiple "class" directives are applied to a single
268 - Enabled multiple format names for "raw" directive.
270 * docutils/transforms/references.py:
272 - Added support for trimming whitespace from beside substitution
275 * docutils/transforms/universal.py:
277 - FinalChecks now checks for illegal transitions and moves
278 transitions between sections.
280 * docutils/writers/html4css1.py:
282 - HTMLTranslator.encode now converts U+00A0 to " ".
283 - "stylesheet" and "stylesheet_path" settings are now mutually
285 - Added support for the new line_block/line structure.
286 - --footnote-references now overrides
287 --trim-footnote-reference-space, if applicable.
288 - Added support for ``compound`` elements.
289 - Enabled multiple format names for "raw" directive.
290 - ``<p>`` tags of a paragraph which is the only visible child of the
291 document node are no longer stripped.
292 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
293 new method ``should_be_compact_paragraph()``.
294 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
296 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
297 the output if they have their ``class`` attribute set.
298 - The whole document is now surrounded by a ``<div
299 class="document">`` element.
300 - Body-level images are now wrapped by their own ``<div>`` elements,
301 with image classes copied to the wrapper, and for images which
302 have the ``:align:`` option set, the surrounding ``<div>`` now
303 receives a class attribute (like ``class="align-left"``).
305 * docutils/writers/latex2e.py:
307 - no newline after depart_term.
308 - Added translations for some Unicode quotes.
309 - Added option "font-encoding", made package AE the default.
310 - "stylesheet" and "stylesheet_path" settings are now mutually
312 - --footnote-references now overrides
313 --trim-footnote-reference-space, if applicable.
314 - The footnote label style now matches the footnote reference style
315 ("brackets" or "superscript").
316 - Added support for ``compound`` elements.
317 - Enabled multiple format names for "raw" directive.
319 * docs/ref/docutils.dtd:
321 - Changed structure of the ``line_block`` element; added ``line``.
322 - Added ``compound`` element.
323 - Added "ltrim" and "rtrim" attributes to
324 ``substitution_definition`` element.
325 - Enabled multiple format names for ``raw`` element.
326 - Enabled multiple classifiers in ``definition_list_item`` elements.
328 * docs/ref/rst/directives.txt
330 - Marked "line-block" as deprecated.
331 - "Class" directive now allows multiple class names.
332 - Added "Rationale for Class Attribute Value Conversion".
333 - Added warning about "raw" overuse/abuse.
335 * docs/ref/rst/restructuredtext.txt:
337 - Added syntax for line blocks.
338 - Definition list items may have multiple classifiers.
340 * docs/ref/rst/roles.txt:
344 * tools/stylesheets/default.css:
346 - Added support for the new line_block structure.
347 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
350 Release 0.3.5 (2004-07-29)
351 ==========================
355 * _`Documentation cleanup/reorganization`.
357 - Created new subdirectories of docs/:
359 * ``docs/user/``: introductory/tutorial material for end-users
360 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
361 * ``docs/api/``: API reference material for client-developers
362 * ``docs/ref/``: reference material for all groups
363 * ``docs/howto/``: for component-developers and core-developers
364 * ``docs/peps/``: Python Enhancement Proposals
366 - Moved ``docs/*`` to ``docs/user/``.
367 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
368 ``spec/`` to ``docs/dev``.
369 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
370 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
371 - Moved ``alternatives.txt``, and ``problems.txt`` from
372 ``spec/rst/`` to ``docs/dev/rst/``.
373 - Moved ``reStructuredText.txt``, ``directives.txt``,
374 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
375 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
376 ``roles.txt``, ``reStructuredText.txt`` to
377 ``restructuredtext.txt``.
378 - Moved ``spec/howto/`` to ``docs/howto``.
380 In order to keep the CVS history of moved files, we supplied
381 SourceForge with a `script for modifying the Docutils CVS
384 __ http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5
386 After running the cleanup script:
388 - Added ``docs/index.txt``.
389 - Added a ``.htaccess`` file to the ``web`` module, containing
390 redirects for all old paths to new paths. They'll preserve
391 fragments (the "#name" part of a URL), and won't clutter up the
392 file system, and will correct the URL in the user's browser.
393 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
394 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
395 the "To Do" list itself in ``docs/dev/todo.txt``.
396 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
397 section of ``docs/dev/todo.txt``.
398 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
399 - Added "How To Report Bugs" to ``BUGS.txt``.
400 - Went through all the sources and docs (including under web/) and
401 updated links. Mostly done by Felix Wiemann; thanks Felix!
402 (Still need to update links in the sandboxes.)
406 * BUGS.txt: Added to project.
408 * THANKS.txt: Added to project.
410 * docutils/__init__.py:
412 - 0.3.4: Post-release.
416 - Added special error handling & advice for UnicodeEncodeError.
417 - Refactored Publisher.publish (simplified exception handling &
418 extracted debug dumps).
419 - Renamed "enable_exit" parameter of convenience functions to
420 "enable_exit_status".
421 - Enabled traceback (exception propagation) by default in
422 programmatic convenience functions.
423 - Now publish_file and publish_cmdline convenience functions return
424 the encoded string results in addition to their regular I/O.
425 - Extracted common code from publish_file, publish_string, and
426 publish_parts, into new publish_programmatically. Extracted
427 settings code to ``Publisher.process_programmatic_settings``.
428 - In Publisher.publish, disabled ``settings_overrides`` when
429 ``settings`` is supplied; redundant.
431 * docutils/frontend.py:
433 - Added help text for "--output-encoding-error-handler" and
434 "--error-encoding-error-handler".
435 - Renamed "--exit" to "--exit-status".
436 - Simplified default-setting code.
438 * docutils/parsers/rst/__init__.py:
440 - Added "--pep-base-url" and "--rfc-base-url" options.
442 * docutils/parsers/rst/states.py:
444 - Made URI recognition more aggressive and intelligent.
446 * docutils/parsers/rst/directives/__init__.py:
448 - Added several directive option conversion functions.
450 * docutils/parsers/rst/directives/body.py:
452 - Moved "table" directive to tables.py.
454 * docutils/parsers/rst/directives/tables.py: Table-related directives,
457 * docutils/writers/latex2e.py:
459 - Added "--table-style=(standard|booktabs|nolines)"
460 - figures get "here" option (LaTeX per default puts them at bottom),
461 and figure content is centered.
462 - Rowspan support for tables.
463 - Fix: admonition titles before first section.
464 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
465 - Replave ``_`` in literal by an underlined blank, because it has the correct
467 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
468 - A few unicode replacements, if output_encoding != utf
469 - Add "--graphicx-option".
470 - Indent literal-blocks.
471 - Fix: omit ``\maketitle`` when there is no document title.
473 * docs/index.txt: "Docutils Project Documentation Overview", added to
476 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
477 Tool", added to project.
479 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
481 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
483 * docs/dev/policies.txt: Added to project (extracted from
484 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
486 * docs/dev/release.txt: Added to project (extracted from
487 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
489 * docs/dev/testing.txt: Added to project.
491 * docs/dev/website.txt: Added to project (extracted from
492 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
494 * docs/ref/rst/directives.txt:
496 - Added directives: "table", "csv-table".
498 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
499 added to project. 1 page for syntax, and a 1 page reference for
500 directives and roles. Source text to be used as-is; not meant to be
503 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
504 with a change of title.
506 * test/functional/, contents, and test/test_functional.py: Added to
509 * tools/buildhtml.py: Fixed bug with config file handling.
511 * tools/html.py: Removed from project (duplicate of rst2html.py).
513 * tools/pep2html.py: Removed from project (duplicate of Python's
514 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
515 Docutils-related PEPs in docs/peps/).
517 * tools/rst2pseudoxml.py: Renamed from publish.py.
519 * tools/rst2xml.py: Renamed from docutils-xml.py.
521 * tools/test.txt: Removed from project; moved to
522 docs/user/rst/demo.txt.
524 * setup.py: Now also installs ``rst2latex.py``.
527 Release 0.3.3 (2004-05-09)
528 ==========================
530 * docutils/__init__.py:
532 - 0.3.1: Reorganized config file format (multiple sections); see
534 - Added unknown_reference_resolvers attribute to TransformSpec.
535 - 0.3.2: Interpreted text reorganization.
540 - Catch system messages to stop tracebacks from parsing errors.
541 - Catch exceptions during processing report & exit without
542 tracebacks, except when "--traceback" used.
543 - Reordered components for OptionParser; application comes last.
544 - Added "config_section" parameter to several methods and functions,
545 allowing front ends to easily specify their config file sections.
546 - Added publish_parts convenience function to allow access to individual
549 * docutils/examples.py: Added to project; practical examples of
550 Docutils client code, to be used as-is or as models for variations.
552 * docutils/frontend.py:
554 - Added "--traceback" & "--no-traceback" options ("traceback"
556 - Implemented support for config file reorganization:
557 ``standard_config_files`` moved from ``ConfigParser`` to
558 ``OptionParser``; added
559 ``OptionParser.get_config_file_settings()`` and
560 ``.get_standard_config_settings()``; support for old "[options]"
561 section (with deprecation warning) and mapping from old to new
563 - Reimplemented setting validation.
564 - Enabled flexible boolean values: yes/no, true/false, on/off.
565 - Added ``Values``, a subclass of ``optparse.Values``, with support
566 for list setting attributes.
567 - Added support for new ``DOCUTILSCONFIG`` environment variable;
568 thanks to Beni Cherniavsky.
569 - Added "--no-section-numbering" option.
573 - Catch IOErrors when opening source & destination files, report &
574 exit without tracebacks. Added ``handle_io_errors`` parameter to
575 ``FileInput`` & ``FileOutput`` to enable caller error handling.
579 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
580 method definitions (via ``exec``) to dynamic assignments (via
581 ``setattr``); thanks to Roman Suzi.
582 - Encapsulated visitor dynamic assignments in a function; thanks to
584 - Added indirect_reference_name attribute to the Targetable
585 class. This attribute holds the whitespace_normalized_name
586 (contains mixed case) of a target.
588 * docutils/statemachine.py:
590 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
591 - Added ``StringList.get_2D_block``.
595 - Added "level" attribute to SystemMessage exceptions.
597 * docutils/languages/af.py: Added to project; Afrikaans mappings by
600 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
603 * docutils/languages/eo.py: Added to project; Esperanto mappings by
604 Marcelo Huerta San Martin.
606 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
607 mappings by Lalo Martins.
609 * docutils/languages/ru.py: Added to project; Russian mappings by
612 * docutils/parsers/rst/roles.py: Added to project. Contains
613 interpreted text role functions, a registry for interpreted text
614 roles, and an API for adding to and retrieving from the registry.
615 Contributed by Edward Loper.
617 * docutils/parsers/rst/states.py:
619 - Updated ``RSTState.nested_parse`` for "include" in table cells.
620 - Allowed true em-dash character and "---" as block quote
622 - Added support for <angle-bracketed> complex option arguments
624 - Fixed handling of backslashes in substitution definitions.
625 - Fixed off-by-1 error with extra whitespace after substitution
626 definition directive.
627 - Added inline markup parsing to field lists' field names.
628 - Added support for quoted (and unindented) literal blocks.
629 Driven in part by a bribe from Frank Siebenlist (thanks!).
630 - Parser now handles escapes in URIs correctly.
631 - Made embedded-URIs' reference text omittable. Idea from Beni
633 - Refactored explicit target processing code.
634 - Added name attribute to references containing the reference name only
635 through whitespace_normalize_name (no case changes).
636 - parse_target no longer returns the refname after going through
637 normalize_name. This is now handled in make_target.
638 - Fixed bug relating to role-less interpreted text in non-English
640 - Reorganized interpreted text processing; moved code into the new
641 roles.py module. Contributed by Edward Loper.
642 - Refactored ``Body.parse_directive`` into ``run_directive`` and
643 ``parse_directive_block``.
645 * docutils/parsers/rst/tableparser.py:
647 - Reworked for ``StringList``, to support "include" directives in
650 * docutils/parsers/rst/directives/__init__.py:
652 - Renamed ``unchanged()`` directive option conversion function to
653 ``unchanged_required``, and added a new ``unchanged``.
654 - Catch unicode value too high error; fixes bug 781766.
655 - Beefed up directive error reporting.
657 * docutils/parsers/rst/directives/body.py:
659 - Added basic "table" directive.
661 * docutils/parsers/rst/directives/images.py:
663 - Added "target" option to "image" directive.
664 - Added name attribute to references containing the reference name only
665 through whitespace_normalize_name (no case changes).
667 * docutils/parsers/rst/directives/misc.py:
669 - Isolated the import of the ``urllib2`` module; was causing
670 problems on SourceForge (``libssl.so.2`` unavailable?).
671 - Added the "role" directive for declaring custom interpreted text
674 * docutils/parsers/rst/directives/parts.py:
676 - The "contents" directive does more work up-front, creating the
677 "topic" and "title", and leaving the "pending" node for the
678 transform. Allows earlier reference resolution; fixes subtle bug.
680 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
681 mappings by Jannie Hofmeyr.
683 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
684 mappings by Marek Blaha.
686 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
687 mappings by Marcelo Huerta San Martin.
689 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
690 Portuguese mappings by Lalo Martins.
692 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
693 mappings by Roman Suzi.
695 * docutils/transforms/parts.py:
697 - The "contents" directive does more work up-front, creating the
698 "topic" and "title", and leaving the "pending" node for the
699 transform. Allows earlier reference resolution; fixes subtle bug.
700 - Added support for disabling of section numbering.
702 * docutils/transforms/references.py:
704 - Verifying that external targets are truly targets and not indirect
705 references. This is because we are now adding a "name" attribute to
706 references in addition to targets. Note sure if this is correct!
707 - Added code to hook into the unknown_reference_resolvers list for a
708 transformer in resolve_indirect_target. This allows the
709 unknown_reference_resolvers to keep around indirect targets which
710 docutils doesn't know about.
711 - Added specific error message for duplicate targets.
713 * docutils/transforms/universal.py:
715 - Added FilterMessages transform (removes system messages below the
716 verbosity threshold).
717 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
718 to FinalCheckVisitor for application-specific handling of
719 unresolvable references.
720 - Added specific error message for duplicate targets.
722 * docutils/writers/__init__.py:
724 - Added assemble_parts method to the Writer class to allow for
725 access to a documents individual parts.
726 - Documented & set default for ``Writer.output`` attribute.
728 * docutils/writers/html4css1.py:
730 - Fixed unicode handling of attribute values (bug 760673).
731 - Prevent duplication of "class" attribute values (bug report from
733 - Improved table grid/border handling (prompted by report from Bob
735 - Added support for table titles.
736 - Added "<title />" for untitled docs, for XHTML conformance; thanks
738 - Added functionality to keep track of individual parts of a document
739 and store them in a dictionary as the "parts" attribute of the writer.
740 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
741 - Added proper support for the "scale" attribute of the "image"
742 element. Contributed by Brent Cook.
743 - Added ``--initial-header-level`` option.
744 - Fixed bug: the body_pre_docinfo segment depended on there being a
745 docinfo; if no docinfo, the document title was incorporated into
746 the body segment. Adversely affected the publish_parts interface.
748 * docutils/writers/latex2e.py:
750 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
751 about a missing file.
752 - Added options and support: ``--compound-enumerators``,
753 ``--section-prefix-for-enumerators``, and
754 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
756 - Added option ``--use-verbatim-when-possible``, to avoid
757 problematic characters (eg, '~' in italian) in literal blocks.
758 - It's now possible to use four section levels in the `book` and
759 `report` LaTeX classes. The default `article` class still has
762 * docs/config.txt: "Docutils Configuration Files", added to project.
763 Moved config file entry descriptions from tools.txt.
767 - Moved config file entry descriptions to config.txt.
769 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
772 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
773 Text Roles", added to project.
775 * spec/rst/reStructuredText.txt:
777 - Added description of support for <angle-bracketed> complex option
778 arguments to option lists.
779 - Added subsections for indented and quoted literal blocks.
781 * test: Continually adding & updating tests.
783 - Added test/test_settings.py & test/data/config_*.txt support
785 - Added test/test_writers/test_htmlfragment.py.
787 * test/DocutilsTestSupport.py:
789 - Refactored LaTeX publisher test suite/case class names to make
790 testing other writers easier.
791 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
792 to test the processing of HTML fragments which use the new
793 publish_parts convenience function.
795 * tools/buildhtml.py:
797 - Added support for the "--prune" option.
798 - Removed dependency on pep2html.py; plaintext PEPs no longer
801 * tools/docutils.conf:
803 - Updated for configuration file reorganization.
807 - copied from tools/html.py
811 - added a 'scripts' section to configuration
812 - added 'tools/rst2html.py' to the scripts section
815 Release 0.3 (2003-06-24)
816 ========================
820 * Renamed "attribute" to "option" for directives/extensions.
822 * Renamed transform method "transform" to "apply".
824 * Renamed "options" to "settings" for runtime settings (as set by
825 command-line options). Sometimes "option" (singular) became
826 "settings" (plural). Some variations below:
828 - document.options -> document.settings (stored in other objects as
830 - option_spec -> settings_spec (not directives though)
831 - OptionSpec -> SettingsSpec
832 - cmdline_options -> settings_spec
833 - relative_path_options -> relative_path_settings
834 - option_default_overrides -> settings_default_overrides
835 - Publisher.set_options -> Publisher.get_settings
839 * COPYING.txt: Added "Public Domain Dedication".
841 * FAQ.txt: Frequently asked questions, added to project.
845 - Updated with PyPI Trove classifiers.
846 - Conditional installation of third-party modules.
848 * docutils/__init__.py:
850 - Bumped version to 0.2.1 to reflect changes to I/O classes.
851 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
852 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
853 - Bumped version to 0.2.3 because of the new "--embed-stylesheet"
854 option and its effect on the PEP template & writer.
855 - Bumped version to 0.2.4 due to changes to the PEP template &
857 - Bumped version to 0.2.5 to reflect changes to Reporter output.
858 - Added ``TransformSpec`` class for new transform system.
859 - Bumped version to 0.2.6 for API changes (renaming).
860 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
861 convenience functions.
862 - Added ``Component.component_type`` attribute.
863 - Bumped version to 0.2.8 because of the internal parser switch from
864 plain lists to the docutils.statemachine.StringList objects.
865 - Bumped version to 0.2.9 because of the frontend.py API changes.
866 - Bumped version to 0.2.10 due to changes to the project layout
867 (third-party modules removed from the "docutils" package), and
868 signature changes in ``io.Input``/``io.Output``.
869 - Changed version to 0.3.0 for release.
873 - Made ``publish()`` a bit more convenient.
874 - Generalized ``Publisher.set_io``.
875 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
876 parameters; improved its docstring.
877 - Added ``publish_file()`` and ``publish_string()``.
878 - Factored ``Publisher.set_source()`` and ``.set_destination()``
880 - Added support for "--dump-pseudo-xml", "--dump-settings", and
881 "--dump-transforms" hidden options.
882 - Added ``Publisher.apply_transforms()`` method.
883 - Added ``Publisher.set_components()`` method; support for
884 ``publish_*()`` conveninece functions.
885 - Moved config file processing to docutils/frontend.py.
886 - Added support for exit status ("exit_level" setting &
887 ``enable_exit`` parameter for Publisher.publish() and convenience
890 * docutils/frontend.py:
892 - Check for & exit on identical source & destination paths.
893 - Fixed bug with absolute paths & "--config".
894 - Set non-command-line defaults in ``OptionParser.__init__()``:
895 ``_source`` & ``_destination``.
896 - Distributed ``relative_path_settings`` to components; updated
897 ``OptionParser.populate_from_components()`` to combine it all.
898 - Require list of keys in ``make_paths_absolute`` (was implicit in
899 global ``relative_path_settings``).
900 - Added "--expose-internal-attribute", "--dump-pseudo-xml",
901 "--dump-settings", and "--dump-transforms" hidden options.
902 - Removed nasty internals-fiddling ``ConfigParser.get_section``
903 code, replaced with correct code.
904 - Added validation functionality for config files.
905 - Added "--error-encoding" option/setting, "_disable_config"
907 - Added encoding validation; updated "--input-encoding" and
908 "--output-encoding"; added "--error-encoding-error-handler" and
909 "--output-encoding-error-handler".
910 - Moved config file processing from docutils/core.py.
911 - Updated ``OptionParser.populate_from_components`` to handle new
912 ``SettingsSpec.settings_defaults`` dict.
913 - Added support for "-" => stdin/stdout.
914 - Added "exit_level" setting ("--exit" option).
918 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
919 - Added automatic closing to ``FileInput`` and ``FileOutput``.
920 - Delayed opening of ``FileOutput`` file until ``write()`` called.
921 - ``FileOutput.write()`` now returns the encoded output string.
922 - Try to get path/stream name automatically in ``FileInput`` &
924 - Added defaults for source & destination paths.
925 - Allow for Unicode I/O with an explicit "unicode" encoding.
926 - Added ``Output.encode()``.
927 - Removed dependency on runtime settings; pass encoding directly.
928 - Recognize Unicode strings in ``Input.decode()``.
929 - Added support for output encoding error handlers.
933 - Added "Invisible" element category class.
934 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
935 modification during a traversal.
936 - Added element classes: ``line_block``, ``generated``, ``address``,
937 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
938 ``superscript``, ``subscript``, ``inline``
939 - Added support for lists of nodes to ``Element.insert()``.
940 - Fixed parent linking in ``Element.replace()``.
941 - Added new abstract superclass ``FixedTextElement``; adds
942 "xml:space" attribute.
943 - Added support for "line" attribute of ``system_message`` nodes.
944 - Added support for the observer pattern from ``utils.Reporter``.
945 Added ``parse_messages`` and ``transform_messages`` attributes to
946 ``document``, removed ``messages``. Added ``note_parse_message``
947 and ``note_transform_message`` methods.
948 - Added support for improved diagnostics:
950 - Added "document", "source", and "line" internal attributes to
951 ``Node``, set by ``Node.setup_child()``.
952 - Converted variations on ``node.parent = self`` to
953 ``self.setup_child(node)``.
954 - Added ``document.current_source`` & ``.current_line``
955 attributes, and ``.note_source`` observer method.
956 - Changed "system_message" output to GNU-Tools format.
958 - Added a "rawsource" attribute to the ``Text`` class, for text
959 before backslash-escape resolution.
960 - Support for new transform system.
961 - Reworked ``pending`` element.
962 - Fixed XML DOM bug (SF #660611).
963 - Removed the ``interpeted`` element class and added
964 ``title_reference``, ``abbreviation``, ``acronym``.
965 - Made substitutions case-sensitive-but-forgiving; moved some code
967 - Fixed Unicode bug on element attributes (report: William Dode).
969 * docutils/optik.py: Removed from project; replaced with
970 extras/optparse.py and extras/textwrap.py. These will be installed
971 only if they're not already present in the Python installation.
973 * docutils/roman.py: Moved to extras/roman.py; this will be installed
974 only if it's not already present in the Python installation.
976 * docutils/statemachine.py:
978 - Factored out ``State.add_initial_transitions()`` so it can be
980 - Converted whitespace-specific "blank" and "indent" transitions
981 from special-case code to ordinary transitions: removed
982 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
983 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
984 ``ws_initial_transitions`` attributes.
985 - Removed ``State.match_transition()`` after merging it into
987 - Added ``StateCorrection`` exception.
988 - Added support for ``StateCorrection`` in ``StateMachine.run()``
989 (moved ``TransitionCorrection`` support there too.)
990 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
991 ``EOFError`` instead of ``IndexError``.
992 - Added ``State.no_match`` method.
993 - Added support for the Observer pattern, triggered by input line
995 - Added ``strip_top`` parameter to
996 ``StateMachineWS.get_first_known_indented``.
997 - Made ``context`` a parameter to ``StateMachine.run()``.
998 - Added ``ViewList`` & ``StringList`` classes;
999 ``extract_indented()`` becomes ``StringList.get_indented()``.
1000 - Added ``StateMachine.insert_input()``.
1001 - Fixed ViewList slice handling for Python 2.3. Patch from (and
1002 thanks to) Fred Drake.
1004 * docutils/utils.py:
1006 - Added a ``source`` attribute to Reporter instances and
1007 ``system_message`` elements.
1008 - Added an observer pattern to ``utils.Reporter`` to keep track of
1010 - Fixed bugs in ``relative_path()``.
1011 - Added support for improved diagnostics.
1012 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
1013 - Added support for encoding Reporter stderr output, and encoding
1015 - Reporter keeps track of the highest level system message yet
1018 * docutils/languages: Fixed bibliographic field language lookups.
1020 * docutils/languages/es.py: Added to project; Spanish mappings by
1021 Marcelo Huerta San Martin.
1023 * docutils/languages/fr.py: Added to project; French mappings by
1026 * docutils/languages/it.py: Added to project; Italian mappings by
1029 * docutils/languages/sk.py: Added to project; Slovak mappings by
1032 * docutils/parser/__init__.py:
1034 - Added ``Parser.finish_parse()`` method.
1036 * docutils/parser/rst/__init__.py:
1038 - Added options: "--pep-references", "--rfc-references",
1039 "--tab-width", "--trim-footnote-reference-space".
1041 * docutils/parsers/rst/states.py:
1043 - Changed "title under/overline too short" system messages from INFO
1044 to WARNING, and fixed its insertion location.
1045 - Fixed enumerated list item parsing to allow paragraphs & section
1046 titles to begin with enumerators.
1047 - Converted system messages to use the new "line" attribute.
1048 - Fixed a substitution reference edge case.
1049 - Added support for "--pep-references" and "--rfc-references"
1050 options; reworked ``Inliner`` code to make customization easier.
1051 - Removed field argument parsing.
1052 - Added support for short section title over/underlines.
1053 - Fixed "simple reference name" regexp to ignore text like
1054 "object.__method__"; not an anonymous reference.
1055 - Added support for improved diagnostics.
1056 - Reworked directive API, based on Dethe Elza's contribution. Added
1057 ``Body.parse_directive()``, ``.parse_directive_options()``,
1058 ``.parse_directive_arguments()`` methods.
1059 - Added ``ExtensionOptions`` class, to parse directive options
1060 without parsing field bodies. Factored
1061 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
1062 ``ExtensionOptions``.
1063 - Improved definition list term/classifier parsing.
1064 - Added warnings for unknown directives.
1065 - Renamed ``Stuff`` to ``Struct``.
1066 - Now flagged as errors: transitions at the beginning or end of
1067 sections, empty sections (except title), and empty documents.
1068 - Updated for ``statemachine.StringList``.
1069 - Enabled recognition of schemeless email addresses in targets.
1070 - Added support for embedded URIs in hyperlink references.
1071 - Added backslash-escapes to inline markup end-string suffix.
1072 - Added support for correct interpreted text processing.
1073 - Fixed nested title parsing (topic, sidebar directives).
1074 - Added special processing of backslash-escaped whitespace (idea
1075 from David Abrahams).
1076 - Made substitutions case-sensitive-but-forgiving; moved some code
1077 to ``docutils.nodes``.
1078 - Added support for block quote attributions.
1079 - Added a kludge to work-around a conflict between the bubble-up
1080 parser strategy and short titles (<= 3 char-long over- &
1081 underlines). Fixes SF bug #738803 "infinite loop with multiple
1082 titles" submitted by Jason Diamond.
1083 - Added explicit interpreted text roles for standard inline markup:
1084 "emphasis", "strong", "literal".
1085 - Implemented "superscript" and "subscript" interpreted text roles.
1086 - Added initial support for "abbreviation" and "acronym" roles;
1088 - Added support for "--trim-footnote-reference-space" option.
1089 - Optional space before colons in directives & hyperlink targets.
1091 * docutils/parsers/rst/tableparser.py:
1093 - Fixed a bug that was producing unwanted empty rows in "simple"
1095 - Detect bad column spans in "simple" tables.
1097 * docutils/parsers/rst/directives: Updated all directive functions to
1100 * docutils/parsers/rst/directives/__init__.py:
1102 - Added ``flag()``, ``unchanged()``, ``path()``,
1103 ``nonnegative_int()``, ``choice()``, and ``class_option()``
1104 directive option helper functions.
1105 - Added warnings for unknown directives.
1106 - Return ``None`` for missing directives.
1107 - Added ``register_directive()``, thanks to William Dode and Paul
1110 * docutils/parsers/rst/directives/admonitions.py:
1112 - Added "admonition" directive.
1114 * docutils/parsers/rst/directives/body.py: Added to project. Contains
1115 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
1116 "parsed-literal", "rubric", "epigraph", "highlights" and
1117 "pull-quote" directives.
1119 * docutils/parsers/rst/directives/images.py:
1121 - Added an "align" attribute to the "image" & "figure" directives
1122 (by Adam Chodorowski).
1123 - Added "class" option to "image", and "figclass" to "figure".
1125 * docutils/parsers/rst/directives/misc.py:
1127 - Added "include", "raw", and "replace" directives, courtesy of
1129 - Added "unicode" and "class" directives.
1131 * docutils/parsers/rst/directives/parts.py:
1133 - Added the "sectnum" directive; by Dmitry Jemerov.
1134 - Added "class" option to "contents" directive.
1136 * docutils/parsers/rst/directives/references.py: Added to project.
1137 Contains the "target-notes" directive.
1139 * docutils/parsers/rst/languages/__init__.py:
1141 - Return ``None`` from get_language() for missing language modules.
1143 * docutils/parsers/rst/languages/de.py: Added to project; German
1144 mappings by Engelbert Gruber.
1146 * docutils/parsers/rst/languages/en.py:
1148 - Added interpreted text roles mapping.
1150 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
1151 mappings by Marcelo Huerta San Martin.
1153 * docutils/parsers/rst/languages/fr.py: Added to project; French
1154 mappings by William Dode.
1156 * docutils/parsers/rst/languages/it.py: Added to project; Italian
1157 mappings by Nicola Larosa.
1159 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
1160 mappings by Miroslav Vasko.
1162 * docutils/readers/__init__.py:
1164 - Added support for the observer pattern from ``utils.Reporter``, in
1165 ``Reader.parse`` and ``Reader.transform``.
1166 - Removed ``Reader.transform()`` method.
1167 - Added default parameter values to ``Reader.__init__()`` to make
1168 instantiation easier.
1169 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
1171 * docutils/readers/pep.py:
1173 - Added the ``peps.TargetNotes`` transform to the Reader.
1174 - Removed PEP & RFC reference detection code; moved to
1175 parsers/rst/states.py as options (enabled here by default).
1176 - Added support for pre-acceptance PEPs (no PEP number yet).
1177 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
1180 * docutils/readers/python: Python Source Reader subpackage added to
1181 project, including preliminary versions of:
1184 - moduleparser.py: Parser for Python modules.
1186 * docutils/transforms/__init__.py:
1188 - Added ``Transformer`` class and completed transform reform.
1189 - Added unknown_reference_resolvers list for each transformer. This list holds
1190 the list of functions provided by each component of the transformer that
1191 help resolve references.
1193 * docutils/transforms/frontmatter.py:
1195 - Improved support for generic fields.
1196 - Fixed bibliographic field language lookups.
1198 * docutils/transforms/misc.py: Added to project. Miscellaneous
1201 * docutils/transforms/parts.py:
1203 - Moved the "id" attribute from TOC list items to the references
1204 (``Contents.build_contents()``).
1205 - Added the ``SectNum`` transform; by Dmitry Jemerov.
1206 - Added "class" attribute support to ``Contents``.
1208 * docutils/transforms/peps.py:
1210 - Added ``mask_email()`` function, updating to pep2html.py's
1212 - Linked "Content-Type: text/x-rst" to PEP 12.
1213 - Added the ``TargetNotes`` PEP-specific transform.
1214 - Added ``TargetNotes.cleanup_callback``.
1215 - Added title check to ``Headers``.
1217 * docutils/transforms/references.py:
1219 - Added the ``TargetNotes`` generic transform.
1220 - Split ``Hyperlinks`` into multiple transforms.
1221 - Fixed bug with multiply-indirect references (report: Bruce Smith).
1222 - Added check for circular indirect references.
1223 - Made substitutions case-sensitive-but-forgiving.
1225 * docutils/transforms/universal.py:
1227 - Added support for the "--expose-internal-attributes" option.
1228 - Removed ``Pending`` transform classes & data.
1230 * docutils/writers/__init__.py:
1232 - Removed ``Writer.transform()`` method.
1234 * docutils/writers/docutils-xml.py:
1236 - Added XML and doctype declarations.
1237 - Added "--no-doctype" and "--no-xml-declaration" options.
1239 * docutils/writers/html4css1.py:
1241 - "name" attributes only on these tags: a, applet, form, frame,
1243 - Added "name" attribute to <a> in section titles for Netscape 4
1244 support (bug report: Pearu Peterson).
1245 - Fixed targets (names) on footnote, citation, topic title,
1246 problematic, and system_message nodes (for Netscape 4).
1247 - Changed field names from "<td>" to "<th>".
1248 - Added "@" to "@" encoding to thwart address harvesters.
1249 - Improved the vertical whitespace optimization; ignore "invisible"
1250 nodes (targets, comments, etc.).
1251 - Improved inline literals with ``<span class="pre">`` around chunks
1252 of text and `` `` for runs of spaces.
1253 - Improved modularity of output; added ``self.body_pre_docinfo`` and
1254 ``self.docinfo`` segments.
1255 - Added support for "line_block", "address" elements.
1256 - Improved backlinks (footnotes & system_messages).
1257 - Improved system_message output.
1258 - Redefined "--stylesheet" as containing an invariant URL, used
1259 verbatim. Added "--stylesheet-path", interpreted w.r.t. the
1261 - Added "--footnote-references" option (superscript or brackets).
1262 - Added "--compact-lists" and "--no-compact-lists" options.
1263 - Added "--embed-stylesheet" and "--link-stylesheet" options;
1264 factored out ``HTMLTranslator.get_stylesheet_reference()``.
1265 - Improved field list rendering.
1266 - Added Docutils version to "generator" meta tag.
1267 - Fixed a bug with images; they must be inline, so wrapped in <p>.
1268 - Improved layout of <pre> HTML source.
1269 - Fixed attribute typo on <colspec>.
1270 - Refined XML prologue.
1271 - Support for no stylesheet.
1272 - Removed "interpreted" element support.
1273 - Added support for "title_reference", "sidebar", "attribution",
1274 "rubric", and generic "admonition" elements.
1275 - Added "--attribution" option.
1276 - Added support for "inline", "subscript", "superscript" elements.
1277 - Added initial support for "abbreviation" and "acronym";
1280 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
1284 - Double quotes in literal blocks (special treatment for de/ngerman).
1285 - Added '--hyperlink-color' option ('0' turns off coloring of links).
1286 - Added "--attribution" option.
1287 - Right align attributions.
1289 * docutils/writers/pep_html.py:
1291 - Parameterized output encoding in PEP template.
1292 - Reworked substitutions from ``locals()`` into ``subs`` dict.
1293 - Redefined "--pep-stylesheet" as containing an invariant URL, used
1294 verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the
1296 - Added an override on the "--footnote-references" option.
1297 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
1298 - Added Docutils version to "generator" meta tag.
1299 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1303 - Added a "silent" setting for ``buildhtml.py``.
1304 - Added a "Getting Help" section.
1305 - Rearranged the structure.
1306 - Kept up to date, with new settings, command-line options etc.
1307 - Added section for ``rst2latex.py`` (Engelbert Gruber).
1308 - Converted settings table into a definition list.
1310 * docs/rst/quickstart.txt:
1312 - Added a table of contents.
1313 - Added feedback information.
1314 - Added mention of minimum section title underline lengths.
1315 - Removed the 4-character minimum for section title underlines.
1317 * docs/rst/quickref.html:
1319 - Added a "Getting Help" section.
1320 - Added a style to make section title backlinks more subtle.
1321 - Added mention of minimum section title underline lengths.
1322 - Removed the 4-character minimum for section title underlines.
1324 * extras: Directory added to project; contains third-party modules
1325 that Docutils depends on (optparse, textwrap, roman). These are
1326 only installed if they're not already present.
1328 * licenses: Directory added to project; contains copies of license
1329 files for non-public-domain files.
1333 - Changed the focus. It's about DTD elements: structural
1334 relationships, semantics, and external (public) attributes. Not
1335 about the element class library.
1336 - Moved some implementation-specific stuff into ``docutils.nodes``
1338 - Wrote descriptions of all common attributes and parameter
1339 entities. Filled in introductory material.
1340 - Working through the element descriptions: 55 down, 37 to go.
1341 - Removed "Representation of Horizontal Rules" to
1342 spec/rst/alternatives.txt.
1344 * spec/docutils.dtd:
1346 - Added "generated" inline element.
1347 - Added "line_block" body element.
1348 - Added "auto" attribute to "title".
1349 - Changed content models of "literal_block" and "doctest_block" to
1351 - Added ``%number;`` attribute type parameter entity.
1352 - Changed ``%structural.elements;`` to ``%section.elements``.
1353 - Updated attribute types; made more specific.
1354 - Added "address" bibliographic element.
1355 - Added "line" attribute to ``system_message`` element.
1356 - Removed "field_argument" element; "field_name" may contain
1357 multiple words and whitespace.
1358 - Changed public identifier to docutils.sf.net.
1359 - Removed "interpreted" element; added "title_reference",
1360 "abbreviation", "acronym".
1361 - Removed "refuri" attribute from "footnote_reference" and
1362 "citation_reference".
1363 - Added "sidebar", "rubric", "attribution", "admonition",
1364 "superscript", "subscript", and "inline" elements.
1366 * spec/pep-0256.txt: Converted to reStructuredText & updated.
1368 * spec/pep-0257.txt: Converted to reStructuredText & updated.
1370 * spec/pep-0258.txt: Converted to reStructuredText & updated.
1372 * spec/semantics.txt: Updated with text from a Doc-SIG response to
1375 * spec/transforms.txt: Added to project.
1377 * spec/howto: Added subdirectory, for developer how-to docs.
1379 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
1380 Elza, edited & extended by David Goodger.
1382 * spec/howto/i18n.txt: Docutils Internationalization. Added to
1385 * spec/rst/alternatives.txt:
1387 - Added "Doctree Representation of Transitions" from
1389 - Updated "Inline External Targets" & closed the debate.
1390 - Added ideas for interpreted text syntax extensions.
1391 - Added "Nested Inline Markup" section.
1393 * spec/rst/directives.txt:
1395 - Added directives: "topic", "sectnum", "target-notes",
1396 "line-block", "parsed-literal", "include", "replace", "sidebar",
1397 "admonition", "rubric", "epigraph", "highlights", "unicode" and
1399 - Formalized descriptions of directive details.
1400 - Added an "align" attribute to the "image" & "figure" directives
1401 (by Adam Chodorowski).
1402 - Added "class" options to "topic", "sidebar", "line-block",
1403 "parsed-literal", "contents", and "image"; and "figclass" to
1406 * spec/rst/interpreted.txt: Added to project. Descriptions of
1407 interpreted text roles.
1409 * spec/rst/introduction.txt:
1411 - Added pointers to material for new users.
1413 * spec/rst/reStructuredText.txt:
1415 - Disambiguated comments (just add a newline after the "::").
1416 - Updated enumerated list description; added a discussion of the
1417 second-line validity checking.
1418 - Updated directive description.
1419 - Added a note redirecting newbies to the user docs.
1420 - Expanded description of inline markup start-strings in non-markup
1422 - Removed field arguments and made field lists a generic construct.
1423 - Removed the 4-character minimum for section title underlines.
1424 - Clarified term/classifier delimiter & inline markup ambiguity
1426 - Added "Embedded URIs".
1427 - Updated "Interpreted Text" section.
1428 - Added "Character-Level Inline Markup" section.
1430 * test: Continually adding & updating tests.
1432 - Moved test/test_rst/ to test/test_parsers/test_rst/.
1433 - Moved test/test_pep/ to test/test_readers/test_pep/.
1434 - Added test/test_readers/test_python/.
1435 - Added test/test_writers/ (Engelbert Gruber).
1439 - Made the ``locale.setlocale()`` calls in front ends
1442 * tools/buildhtml.py:
1444 - Added "--silent" option.
1445 - Fixed bug with absolute paths & "--config".
1446 - Updated for new I/O classes.
1447 - Added some exception handling.
1448 - Separated publishers' setting defaults; prevents interference.
1449 - Updated for new ``publish_file()`` convenience function.
1451 * tools/pep-html-template:
1453 - Allow for "--embed-stylesheet".
1454 - Added Docutils version to "generator" meta tag.
1455 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1456 - Conform to XHTML spec.
1458 * tools/pep2html.py:
1460 - Made ``argv`` a parameter to ``main()``.
1461 - Added support for "Content-Type:" header & arbitrary PEP formats.
1462 - Linked "Content-Type: text/plain" to PEP 9.
1463 - Files skipped (due to an error) are not pushed onto the server.
1464 - Updated for new I/O classes.
1465 - Added ``check_requirements()`` & ``pep_type_error()``.
1466 - Added some exception handling.
1467 - Updated for new ``publish_string()`` convenience function.
1468 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
1470 * tools/quicktest.py:
1472 - Added "-V"/"--version" option.
1474 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
1476 * tools/unicode2rstsubs.py: Added to project. Produces character
1477 entity files (reSructuredText substitutions) from the MathML master
1480 * tools/editors: Support code for editors, added to project. Contains
1481 ``emacs/restructuredtext.el``.
1483 * tools/stylesheets/default.css: Moved into the stylesheets directory.
1485 - Added style for chunks of inline literals.
1486 - Removed margin for first child of table cells.
1487 - Right-aligned field list names.
1488 - Support for auto-numbered section titles in TOCs.
1489 - Increased the size of inline literals (<tt>) in titles.
1490 - Restored the light gray background for inline literals.
1491 - Added support for "line_block" elements.
1492 - Added style for "address" elements.
1493 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
1494 - Improved field list rendering.
1495 - Vertical whitespace improvements.
1496 - Removed "a.target" style.
1498 * tools/stylesheets/pep.css:
1500 - Fixed nested section margins.
1501 - Other changes parallel those of ``../default.css``.
1504 Release 0.2 (2002-07-31)
1505 ========================
1509 - The word "component" was being used ambiguously. From now on,
1510 "component" will be used to mean "Docutils component", as in Reader,
1511 Writer, Parser, or Transform. Portions of documents (Table of
1512 Contents, sections, etc.) will be called "document parts".
1513 - Did a grand renaming: a lot of ``verylongnames`` became
1514 ``very_long_names``.
1515 - Cleaned up imports: no more relative package imports or
1516 comma-separated lists of top-level modules.
1517 - Added support for an option values object which carries default
1518 settings and overrides (from command-line options and library use).
1519 - Added internal Unicode support, and support for both input and
1521 - Added support for the ``docutils.io.IO`` class & subclasses.
1525 * docutils/__init__.py:
1527 - Added ``ApplicationError`` and ``DataError``, for use throughout
1529 - Added ``Component`` base class for Docutils components; implements
1530 the ``supports`` method.
1531 - Added ``__version__`` (thus, ``docutils.__version__``).
1535 - Removed many keyword parameters to ``Publisher.__init__()`` and
1536 ``publish()``; bundled into an option values object. Added
1537 "argv", "usage", "description", and "option_spec" parameters for
1538 command-line support.
1539 - Added ``Publisher.process_command_line()`` and ``.set_options()``
1541 - Reworked I/O model for ``docutils.io`` wrappers.
1542 - Updated ``Publisher.set_options()``; now returns option values
1544 - Added support for configuration files (/etc/docutils.conf,
1545 ./docutils.conf, ~/.docutils).
1546 - Added ``Publisher.setup_option_parser()``.
1547 - Added default usage message and description.
1549 * docutils/frontend.py: Added to project; support for front-end
1550 (command-line) scripts. Option specifications may be augmented by
1551 components. Requires Optik (http://optik.sf.net/) for option
1552 processing (installed locally as docutils/optik.py).
1554 * docutils/io.py: Added to project; uniform API for a variety of input
1557 * docutils/nodes.py:
1559 - Added ``TreeCopyVisitor`` class.
1560 - Added a ``copy`` method to ``Node`` and subclasses.
1561 - Added a ``SkipDeparture`` exception for visitors.
1562 - Renamed ``TreePruningException`` from ``VisitorException``.
1563 - Added docstrings to ``TreePruningException``, subclasses, and
1565 - Improved docstrings.
1566 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
1567 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
1569 - Added ``decoration``, ``header``, and ``footer`` node classes, and
1570 ``PreDecorative`` mixin.
1571 - Reworked the name/id bookkeeping; to ``document``, removed
1572 ``explicit_targets`` and ``implicit_targets`` attributes, added
1573 ``nametypes`` attribute and ``set_name_id_map`` method.
1574 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
1576 - Added ``document.has_name()`` method.
1577 - Fixed DOM generation for list-attributes.
1578 - Added category class ``Labeled`` (used by footnotes & citations).
1579 - Added ``Element.set_class()`` method (sets "class" attribute).
1581 * docutils/optik.py: Added to project. Combined from the Optik
1582 package, with added option groups and other modifications. The use
1583 of this module is probably only temporary.
1585 * docutils/statemachine.py:
1587 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
1588 - Added underscores to improve many awkward names.
1589 - In ``string2lines()``, changed whitespace normalizing translation
1590 table to regexp; restores Python 2.0 compatibility with Unicode.
1592 * docutils/urischemes.py:
1594 - Filled in some descriptions.
1595 - Added "shttp" scheme.
1597 * docutils/utils.py:
1599 - Added ``clean_rcs_keywords`` function (moved from
1600 docutils/transforms/frontmatter.py
1601 ``DocInfo.filter_rcs_keywords``).
1602 - Added underscores to improve many awkward names.
1603 - Changed names of Reporter's thresholds:
1604 warning_level -> report_level; error_level -> halt_level.
1605 - Moved ``utils.id()`` to ``nodes.make_id()``.
1606 - Added ``relative_path(source, target)``.
1608 * docutils/languages/de.py: German mappings; added to project. Thanks
1609 to Gunnar Schwant for the translations.
1611 * docutils/languages/en.py: Added "Dedication" bibliographic field
1614 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
1617 * docutils/parsers/rst/states.py:
1619 - Added underscores to improve many awkward names.
1620 - Added RFC-2822 header support.
1621 - Extracted the inline parsing code from ``RSTState`` to a separate
1622 class, ``Inliner``, which will allow easy subclassing.
1623 - Made local bindings for ``memo`` container & often-used contents
1624 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
1625 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
1626 - Added ``MarkupMismatch`` exception; for late corrections.
1627 - Added ``-/:`` characters to inline markup's start string prefix,
1628 ``/`` to end string suffix.
1629 - Fixed a footnote bug.
1630 - Fixed a bug with literal blocks.
1631 - Applied patch from Simon Budig: simplified regexps with symbolic
1632 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
1633 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
1634 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
1635 - Allowed non-ASCII in "simple names" (directive names, field names,
1637 - Converted ``Inliner.patterns.initial`` to be dynamically built
1638 from parts with ``build_regexp()`` function.
1639 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
1640 - Updated docstrings.
1641 - Changed "table" to "grid_table"; added "simple_table" support.
1643 * docutils/parsers/rst/tableparser.py:
1645 - Changed ``TableParser`` to ``GridTableParser``.
1646 - Added ``SimpleTableParser``.
1647 - Refactored naming.
1649 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
1650 a fallback language for directive names.
1652 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
1653 directive to use a ``pending`` element, used only by HTML writers.
1655 * docutils/parsers/rst/directives/parts.py: Renamed from
1658 - Added "backlinks" attribute to "contents" directive.
1660 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
1661 project by Adam Chodorowski.
1663 * docutils/readers/__init__.py: Gave Readers more control over
1664 choosing and instantiating Parsers.
1666 * docutils/readers/pep.py: Added to project; for PEP processing.
1668 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
1669 requires a ``component`` parameter.
1671 * docutils/transforms/components.py: Added to project; transforms
1672 related to Docutils components.
1674 * docutils/transforms/frontmatter.py:
1676 - In ``DocInfo.extract_authors``, check for a single "author" in an
1677 "authors" group, and convert it to a single "author" element.
1678 - Added support for "Dedication" and generic bibliographic fields.
1680 * docutils/transforms/peps.py: Added to project; PEP-specific.
1682 * docutils/transforms/parts.py: Renamed from old components.py.
1684 - Added filter for `Contents`, to use alt-text for inline images,
1685 and to remove inline markup that doesn't make sense in the ToC.
1686 - Added "name" attribute to TOC topic depending on its title.
1687 - Added support for optional TOC backlinks.
1689 * docutils/transforms/references.py: Fixed indirect target resolution
1690 in ``Hyperlinks`` transform.
1692 * docutils/transforms/universal.py:
1694 - Changed ``Messages`` transform to properly filter out system
1695 messages below the warning threshold.
1696 - Added ``Decorations`` transform (support for ``--generator``,
1697 ``--date``, ``--time``, ``--source-link`` options).
1699 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
1700 Engelbert Gruber's PDF writer.
1702 * docutils/writers/html4css1.py:
1704 - Made XHTML-compatible (switched to lowercase element & attribute
1705 names; empty tag format).
1706 - Escape double-dashes in comment text.
1707 - Improved boilerplate & modularity of output.
1708 - Exposed modular output in Writer class.
1709 - Added a "generator" meta tag to <head>.
1710 - Added support for the ``--stylesheet`` option.
1711 - Added support for ``decoration``, ``header``, and ``footer``
1713 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
1714 translation table to regexp; restores Python 2.0 compatibility
1716 - Added the translator class as instance variable to the Writer, to
1717 make it easily subclassable.
1718 - Improved option list spacing (thanks to Richard Jones).
1719 - Modified field list output.
1720 - Added backlinks to footnotes & citations.
1721 - Added percentage widths to "<col>" tags (from colspec).
1722 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
1723 "<span>" changed to "<var>".
1724 - Inline literals: "<code>" changed to "<tt>".
1725 - Many changes to optimize vertical space: compact simple lists etc.
1726 - Add a command-line options & directive attributes to control TOC
1727 and footnote/citation backlinks.
1728 - Added support for optional footnote/citation backlinks.
1729 - Added support for generic bibliographic fields.
1730 - Identify backrefs.
1731 - Relative URLs for stylesheet links.
1733 * docutils/writers/pep_html.py: Added to project; HTML Writer for
1734 PEPs (subclass of ``html4css1.Writer``).
1736 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
1738 * docutils/writers/docutils_xml.py: Added to project; trivial writer
1739 of the Docutils internal doctree in XML.
1741 * docs/tools.txt: "Docutils Front-End Tools", added to project.
1745 - Changed the title to "The Docutils Document Tree".
1746 - Added "Hyperlink Bookkeeping" section.
1748 * spec/docutils.dtd:
1750 - Added ``decoration``, ``header``, and ``footer`` elements.
1751 - Brought ``interpreted`` element in line with the parser: changed
1752 attribute "type" to "role", added "position".
1753 - Added support for generic bibliographic fields.
1755 * spec/notes.txt: Continual updates. Added "Project Policies".
1757 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
1760 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
1762 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
1763 mailing list discussions.
1765 * spec/pep-0287.txt:
1767 - Renamed to "reStructuredText Docstring Format".
1769 - Reworked Q&A as an enumerated list.
1770 - Converted to reStructuredText format.
1772 * spec/pysource.dtd:
1774 - Reworked structural elements, incorporating ideas from Tony Ibbs.
1776 * spec/pysource.txt: Removed from project. Moved much of its contents
1779 * spec/rst/alternatives.txt:
1781 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
1782 - Added "Inline External Targets" section.
1784 * spec/rst/directives.txt:
1786 - Added "backlinks" attribute to "contents" directive.
1788 * spec/rst/problems.txt:
1790 - Updated the Enumerated List Markup discussion.
1791 - Added new alternative table markup syntaxes.
1793 * spec/rst/reStructuredText.txt:
1795 - Clarified field list usage.
1796 - Updated enumerated list description.
1797 - Clarified purpose of directives.
1798 - Added ``-/:`` characters to inline markup's start string prefix,
1799 ``/`` to end string suffix.
1800 - Updated "Authors" bibliographic field behavior.
1801 - Changed "inline hyperlink targets" to "inline internal targets".
1802 - Added "simple table" syntax to supplement the existing but
1803 newly-renamed "grid tables".
1804 - Added cautions for anonymous hyperlink use.
1805 - Added "Dedication" and generic bibliographic fields.
1807 * test: Made test modules standalone (subdirectories became packages).
1809 * test/DocutilsTestSupport.py:
1811 - Added support for PEP extensions to reStructuredText.
1812 - Added support for simple tables.
1813 - Refactored naming.
1815 * test/package_unittest.py: Renamed from UnitTestFolder.py.
1817 - Now supports true packages containing test modules
1818 (``__init__.py`` files required); fixes duplicate module name bug.
1820 * test/test_pep/: Subpackage added to project; PEP testing.
1822 * test/test_rst/test_SimpleTableParser.py: Added to project.
1826 - Updated html.py and publish.py front-end tools to use the new
1827 command-line processing facilities of ``docutils.frontend``
1828 (exposed in ``docutils.core.Publisher``), reducing each to just a
1830 - Added ``locale.setlocale()`` calls to front-end tools.
1832 * tools/buildhtml.py: Added to project; batch-generates .html from all
1833 the .txt files in directories and subdirectories.
1835 * tools/default.css:
1837 - Added support for ``header`` and ``footer`` elements.
1838 - Added styles for "Dedication" topics (biblio fields).
1840 * tools/docutils.conf: A configuration file; added to project.
1842 * tools/docutils-xml.py: Added to project.
1844 * tools/pep.py: Added to project; PEP to HTML front-end tool.
1846 * tools/pep-html-template: Added to project.
1848 * tools/pep2html.py: Added to project from Python (nondist/peps).
1849 Added support for Docutils (reStructuredText PEPs).
1851 * tools/quicktest.py:
1853 - Added the ``--attributes`` option, hacked a bit.
1854 - Added a second command-line argument (output file); cleaned up.
1856 * tools/stylesheets/: Subdirectory added to project.
1858 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
1861 Release 0.1 (2002-04-20)
1862 ========================
1864 This is the first release of Docutils, merged from the now inactive
1865 reStructuredText__ and `Docstring Processing System`__ projects. For
1866 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
1867 `DPS HISTORY`__ files.
1869 __ http://structuredtext.sourceforge.net/
1870 __ http://docstring.sourceforge.net/
1871 __ http://structuredtext.sourceforge.net/HISTORY.html
1872 __ http://docstring.sourceforge.net/HISTORY.html
1874 General changes: renamed 'dps' package to 'docutils'; renamed
1875 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
1876 the test suites (reStructuredText's test/test_states renamed to
1877 test/test_rst); and all modifications required to make it all work.
1879 * docutils/parsers/rst/states.py:
1881 - Improved diagnostic system messages for missing blank lines.
1882 - Fixed substitution_reference bug.
1888 indent-tabs-mode: nil
1889 sentence-end-double-space: t