Server IP : 127.0.0.2 / Your IP : 18.191.142.102 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/docutils-doc/ |
Upload File : |
<?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" /> <title>Docutils History</title> <meta name="author" content="David Goodger; open to all Docutils developers" /> <meta name="date" content="2014-07-06" /> <meta name="copyright" content="This document has been placed in the public domain." /> <link rel="stylesheet" href="css/html4css1.css" type="text/css" /> </head> <body> <div class="document" id="docutils-history"> <h1 class="title">Docutils History</h1> <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr><th class="docinfo-name">Author:</th> <td>David Goodger; open to all Docutils developers</td></tr> <tr><th class="docinfo-name">Contact:</th> <td><a class="first last reference external" href="mailto:docutils-develop@lists.sourceforge.net">docutils-develop@lists.sourceforge.net</a></td></tr> <tr><th class="docinfo-name">Date:</th> <td>2014-07-06</td></tr> <tr><th class="docinfo-name">Revision:</th> <td>7757</td></tr> <tr class="field"><th class="docinfo-name">Web site:</th><td class="field-body"><a class="reference external" href="http://docutils.sourceforge.net/">http://docutils.sourceforge.net/</a></td> </tr> <tr><th class="docinfo-name">Copyright:</th> <td>This document has been placed in the public domain.</td></tr> </tbody> </table> <!-- -*- coding: utf-8 -*- --> <div class="contents topic" id="contents"> <p class="topic-title first">Contents</p> <ul class="simple"> <li><a class="reference internal" href="#release-0-12-2014-07-06" id="id11">Release 0.12 (2014-07-06)</a></li> <li><a class="reference internal" href="#release-0-11-2013-07-22" id="id12">Release 0.11 (2013-07-22)</a></li> <li><a class="reference internal" href="#release-0-10-2012-12-16" id="id13">Release 0.10 (2012-12-16)</a></li> <li><a class="reference internal" href="#release-0-9-1-2012-06-17" id="id14">Release 0.9.1 (2012-06-17)</a></li> <li><a class="reference internal" href="#release-0-9-2012-05-02" id="id15">Release 0.9 (2012-05-02)</a></li> <li><a class="reference internal" href="#release-0-8-1-2011-08-30" id="id16">Release 0.8.1 (2011-08-30)</a></li> <li><a class="reference internal" href="#release-0-8-2011-07-07" id="id17">Release 0.8 (2011-07-07)</a></li> <li><a class="reference internal" href="#release-0-7-2010-07-07" id="id18">Release 0.7 (2010-07-07)</a></li> <li><a class="reference internal" href="#release-0-6-2009-10-11" id="id19">Release 0.6 (2009-10-11)</a></li> <li><a class="reference internal" href="#release-0-5-2008-06-25" id="id20">Release 0.5 (2008-06-25)</a></li> <li><a class="reference internal" href="#release-0-4-2006-01-09" id="id21">Release 0.4 (2006-01-09)</a></li> <li><a class="reference internal" href="#release-0-3-9-2005-05-26" id="id22">Release 0.3.9 (2005-05-26)</a></li> <li><a class="reference internal" href="#release-0-3-7-2004-12-24" id="id23">Release 0.3.7 (2004-12-24)</a></li> <li><a class="reference internal" href="#release-0-3-5-2004-07-29" id="id24">Release 0.3.5 (2004-07-29)</a></li> <li><a class="reference internal" href="#release-0-3-3-2004-05-09" id="id25">Release 0.3.3 (2004-05-09)</a></li> <li><a class="reference internal" href="#release-0-3-2003-06-24" id="id26">Release 0.3 (2003-06-24)</a></li> <li><a class="reference internal" href="#release-0-2-2002-07-31" id="id27">Release 0.2 (2002-07-31)</a></li> <li><a class="reference internal" href="#release-0-1-2002-04-20" id="id28">Release 0.1 (2002-04-20)</a></li> </ul> </div> <div class="section" id="release-0-12-2014-07-06"> <h1><a class="toc-backref" href="#id11">Release 0.12 (2014-07-06)</a></h1> <ul class="simple"> <li>docs/ref/rst/directives.txt<ul> <li>Update "math" and "csv-table" descriptions.</li> </ul> </li> <li>docutils/parsers/rst/directives/images.py<ul> <li>Fix [258] figwidth="image" generates unitless width value.</li> </ul> </li> <li>docutils/parsers/rst/states.py<ul> <li>Improve error report when a non-ASCII character is specified as delimiter, quote or escape character under Python 2. Fixes [ 249 ] and [ 250 ].</li> </ul> </li> <li>docutils/writers/html4css1/__init__.py<ul> <li>Don't add newline after inline math. Thanks to Yury G. Kudryashov for the patch.</li> </ul> </li> <li>docutils/writers/latex2e/__init__.py<ul> <li>Fix [ 239 ] Latex writer glues paragraphs with figure floats.</li> <li>Apply [ 116 ] by Kirill Smelkov. Don't hardcode large for subtitle.</li> </ul> </li> <li>docutils/writers/odf_odt/__init__.py<ul> <li>Apply patch by Jakub Wilk to fix bug [ 100 ].</li> </ul> </li> <li>test/test_error_reporting.py<ul> <li>Fix [ 223 ] by removing redundant tests we do not have control over.</li> </ul> </li> <li>test/test_nodes.py<ul> <li>Apply [ 115 ] respect fixed 2to3 string literal conversion behavior.</li> </ul> </li> </ul> </div> <div class="section" id="release-0-11-2013-07-22"> <h1><a class="toc-backref" href="#id12">Release 0.11 (2013-07-22)</a></h1> <ul class="simple"> <li>General<ul> <li>Apply [ 2714873 ] Fix for the overwritting of document attributes.</li> <li>Support embedded aliases within hyperlink references.</li> <li>Fix [ 228 ] try local import of docutils components (reader, writer, parser, language module) before global search.</li> </ul> </li> <li>docutils/nodes.py<ul> <li>Fix [ 3601607 ] node.__repr__() must return <cite>str</cite> instance.</li> </ul> </li> <li>docutils/parsers/rst/directives/__init__.py<ul> <li>Fix [ 3606028 ] <tt class="docutils literal">assert</tt> is skipped with <tt class="docutils literal">python <span class="pre">-O</span></tt>.</li> </ul> </li> <li>docutils/parsers/rst/directives/images.py<ul> <li>Apply [ 3599485 ] node source/line information for sphinx translation.</li> </ul> </li> <li>docutils/parsers/rst/directives/tables.py<ul> <li>Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.</li> </ul> </li> <li>docutils/parsers/rst/states.py<ul> <li>Fix [ 157 ] Line block parsing doesn't like system message.</li> <li>Always import our local copy of roman.py (report Larry Hastings).</li> </ul> </li> <li>docutils/transforms/references.py<ul> <li>Fix [ 3607029 ] traceback with embedded alias pointing to missing target.</li> </ul> </li> <li>docutils/utils/__init__.py<ul> <li>Fix [ 3596884 ] exception importing <tt class="docutils literal">docutils.io</tt>.</li> </ul> </li> <li>docutils/writers/html4css1/__init__.py<ul> <li>Fix [ 3600051 ] for tables in a list, table cells are not compacted.</li> <li>New setting <cite>stylesheet_dirs</cite>: Comma-separated list of directories where stylesheets are found. Used by <cite>stylesheet_path</cite> when expanding relative path arguments.</li> <li>New default for <a class="reference external" href="docs/user/config.html#math-output">math-output</a>: <tt class="docutils literal">HTML math.css</tt>.</li> <li>Avoid repeated class declarations in html4css1 writer (modified version of patch [ 104 ]).</li> </ul> </li> </ul> <ul class="simple"> <li>docutils/writers/latex2e/__init__.py<ul> <li>Drop the simple algorithm replacing straight double quotes with English typographic ones. Activate the <a class="reference external" href="docs/user/config.html#smart-quotes">SmartQuotes</a> transform if you want this feature.</li> <li>Fix literal use of babel shorthands (straight quote, tilde, ...).</li> <li>Fix [ 3603246 ] Bug in option "--graphicx-option=auto".</li> <li>New setting <cite>stylesheet_dirs</cite>.</li> </ul> </li> </ul> <ul class="simple"> <li>docutils/writers/manpage.py<ul> <li>Fix [3607063] handle lines starting with a period.</li> <li>Fix option separating comma was bold (thanks to Bill Morris).</li> </ul> </li> </ul> </div> <div class="section" id="release-0-10-2012-12-16"> <h1><a class="toc-backref" href="#id13">Release 0.10 (2012-12-16)</a></h1> <ul class="simple"> <li>General<ul> <li>Dropped support for Python 2.3.</li> <li><tt class="docutils literal">docutils/math</tt>, <tt class="docutils literal">docutils/error_reporting.py</tt>, and <tt class="docutils literal">docutils/urischemes.py</tt> moved to the utils package.</li> <li>Fix [3541369] Relative __import__ also with Python 3.3.</li> <li>Fix [3559988] and [3560841] __import__ local writer, reader, languages and parsers for Python 2.7 up.</li> <li>Fix import of PIL.Image.</li> <li>Change default of "syntax highlight" option to "long", basic syntax highlight styles for LaTeX and HTML.</li> </ul> </li> <li>docutils/io.py<ul> <li>FileInput/FileOutput: no system-exit on IOError. The <cite>handle_io_errors</cite> option is ignored and will be removed in a future release.</li> <li>Fix Py3k error writing to stdout with encoding differing from default.</li> <li>Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).</li> </ul> </li> <li>docutils/parsers/rst/directives/misc.py<ul> <li>Fix [ 3546533 ] Unicode error with <cite>date</cite> directive.</li> </ul> </li> <li>docutils/transforms/universal.py<ul> <li>SmartQuotes transform for typographic quotes and dashes.</li> </ul> </li> <li>docutils/utils/__init__.py<ul> <li>normalize_language_tag() now returns <a class="reference external" href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">BCP 47</a> conformant tags with subtags separated by <tt class="docutils literal">-</tt>.</li> </ul> </li> <li>docutils/writers/html4css1/__init__.py<ul> <li>Use <tt class="docutils literal"><code></tt> tag for inline "code", do not drop nested inline nodes (syntax highlight tokens).</li> <li>Customizable MathJax URL (based on patch by Dmitry Shachnev).</li> <li>No line break after opening inline math tag.</li> </ul> </li> <li>docutils/writers/manpage.py<ul> <li>Apply [ 3527401 ] addmonition's don't preserve indentation</li> <li>Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.</li> </ul> </li> </ul> <p>, docutils/writers/xetex/__init__.py</p> <blockquote> <ul class="simple"> <li>Apply [ 3555160 ] ensure order of "otherlanguages".</li> <li>Fix section numbering by LaTeX.</li> </ul> </blockquote> <ul class="simple"> <li>docutils/writers/s5_html/__init__.py<ul> <li>Fix [ 3556388 ] Mathjax does not work with rst2s5.</li> </ul> </li> <li>docutils/writers/s5_html/docutils_xml.py<ul> <li>Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.</li> </ul> </li> <li>setup.py<ul> <li>Tag <tt class="docutils literal">math.css</tt> stylesheet as data file (patch by Dmitry Shachnev).</li> </ul> </li> <li>tools/test/test_buildhtml.py<ul> <li>Fix [ 3521167 ] allow running in any directory.</li> <li>Fix [ 3521168 ] allow running with Python 3.</li> </ul> </li> </ul> </div> <div class="section" id="release-0-9-1-2012-06-17"> <h1><a class="toc-backref" href="#id14">Release 0.9.1 (2012-06-17)</a></h1> <ul> <li><p class="first">setup.py</p> <ul> <li><p class="first">Fix [ 3527842 ]. Under Python 3, converted tests and tools were installed in the PYTHONPATH. Converted tests are now stored in <tt class="docutils literal">test3/</tt>, tools no longer need conversion.</p> <p>If you installed one of Docutils versions 0.7 ... 0.9 with <tt class="docutils literal">setup.py install</tt> under Python 3, remove the spurious <tt class="docutils literal">test/</tt> and <tt class="docutils literal">tools/</tt> directories in the site library root.</p> </li> </ul> </li> <li><p class="first">test/</p> <ul class="simple"> <li>Make tests independent from the location of the <tt class="docutils literal">test/</tt> directory.</li> <li>Use converted sources (from the <tt class="docutils literal">build/</tt> directory) for tests under Python 3.</li> </ul> </li> <li><p class="first">tools/</p> <ul class="simple"> <li>Make tools compatible with both, Python 2 and 3 without 2to3-conversion.</li> </ul> </li> <li><p class="first">docutils/io.py</p> <ul class="simple"> <li>Fix writing binary data to sys.stdout under Python 3 (allows <tt class="docutils literal">rst2odt.py</tt> to be used with output redirection).</li> </ul> </li> <li><p class="first">docutils/parsers/rst/directives/misc.py</p> <ul class="simple"> <li>Fix [ 3525847 ]. Catch and report UnicodeEncodeError with <tt class="docutils literal">locale == C</tt> and 8-bit char in path argument of <cite>include</cite> directive.</li> </ul> </li> <li><p class="first">test/alltests.py</p> <ul class="simple"> <li>class <cite>Tee</cite>: catch UnicodeError when writing to "ascii" stream or file under Python 3.</li> </ul> </li> </ul> </div> <div class="section" id="release-0-9-2012-05-02"> <h1><a class="toc-backref" href="#id15">Release 0.9 (2012-05-02)</a></h1> <ul class="simple"> <li>General:<ul> <li>New reStructuredText "code" role and directive and "code" option of the "include" directive with syntax highlighting by <a class="reference external" href="http://pygments.org/">Pygments</a>.</li> <li>Fix parse_option_marker for option arguments containing <tt class="docutils literal">=</tt>.</li> <li>Fix [ 2993756 ]: import Python Imaging Library's Image module via <tt class="docutils literal">import PIL</tt> as starting with PIL 1.2, "PIL lives in the PIL namespace only" (<a class="reference external" href="http://mail.python.org/pipermail/image-sig/2011-January/006650.html">announcement</a>).</li> </ul> </li> </ul> <ul> <li><p class="first">setup.py</p> <ul class="simple"> <li>Fix [ 2971827 ] and [ 3442827 ] extras/roman.py moved to docutils/utils/roman.py</li> </ul> </li> <li><p class="first">docutils/frontend.py</p> <ul class="simple"> <li>Fix [ 3481980 ] Use os.getcwdu() in make_paths_absolute().</li> </ul> </li> <li><p class="first">docutils/io.py</p> <ul class="simple"> <li>Fix [ 3395948 ] (Work around encoding problems in Py3k).</li> <li><cite>mode</cite> argument for FileOutput avoids code replication in BinaryFileOutput.</li> <li>New exceptions InputError and OutputError for IO errors in FileInput/FileOutput.</li> </ul> </li> <li><p class="first">docutils/core.py:</p> <ul class="simple"> <li>No "hard" system exit on file IO errors: catch and report them in <cite>Publisher.reportException</cite> instead. Allows handling by a calling application if the configuration setting <cite>traceback</cite> is True.</li> </ul> </li> <li><p class="first">docutils/utils.py -> docutils/utils/__init__.py</p> <ul class="simple"> <li>docutils.utils is now a package (providing a place for sub-modules)</li> </ul> <div class="note"> <p class="first admonition-title">Note</p> <p class="last">docutils/math, docutils/error_reporting.py, and docutils/urischemes.py will move to the utils package in the next release, too. See <a class="reference external" href="RELEASE-NOTES.html">RELEASE-NOTES</a></p> </div> <ul class="simple"> <li>DependencyList uses io.FileOutput and 'utf8' encoding to prevent errors recording non-ASCII filenames (fixes [ 3434355 ]).</li> <li>Fix relative_path() with source=None and <cite>unicode</cite> target.</li> </ul> </li> <li><p class="first">docutils/parsers/rst/states.py</p> <ul class="simple"> <li>Fix [ 3402314 ] allow non-ASCII whitespace, punctuation characters and "international" quotes around inline markup.</li> <li>Use <cite>field_marker</cite> pattern to look for start of a directive option block (fixes [ 3484857 ]).</li> </ul> </li> <li><p class="first">docutils/parsers/rst/tableparser.py</p> <ul class="simple"> <li>Fix [ 2926161 ] for simple tables. (Combining chars in grid tables still contribute to cell width.)</li> </ul> </li> <li><p class="first">docutils/writers/latex2e/__init__.py</p> <ul class="simple"> <li>Support the <cite>abbreviation</cite> and <cite>acronym</cite> standard roles.</li> <li>Record only files required to generate the LaTeX source as dependencies.</li> <li>Fix handling of missing stylesheets.</li> <li>Use <tt class="docutils literal"><span class="pre">\setcounter{secnumdepth}{0}</span></tt> instead of <tt class="docutils literal">*</tt>-versions when suppressing LaTeX section numbering.</li> <li>Use <tt class="docutils literal">\DUtitle</tt> for unsupported section levels</li> <li>Apply [ 3512791 ] do not compare string literals with "is"</li> </ul> </li> <li><p class="first">docutils/writers/xetex/__init__.py</p> <ul class="simple"> <li>Avoid code duplication with latex2e writer (solves [ 3512728 ]).</li> </ul> </li> <li><p class="first">docutils/writers/html4css1/__init__.py</p> <ul class="simple"> <li>Change default for <cite>math-output</cite> setting to MathJax.</li> <li>Fix handling of missing stylesheets.</li> </ul> </li> <li><p class="first">docutils/writers/docutils_xml.py</p> <ul class="simple"> <li>Use the visitor pattern with default_visit()/default_depart() methods instead of minidom to facilitate special handling of selected nodes.</li> <li>Support raw XML (inserted as-is inside a <raw></raw> node).</li> </ul> </li> <li><p class="first">docutils/writers/manpage.py</p> <ul class="simple"> <li>Do not emit comment line with trailing blank. Problematic for VCS.</li> </ul> </li> </ul> </div> <div class="section" id="release-0-8-1-2011-08-30"> <h1><a class="toc-backref" href="#id16">Release 0.8.1 (2011-08-30)</a></h1> <ul class="simple"> <li>General:<ul> <li>Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause) and [ 3395920 ] (correct copyright info for rst.el).</li> </ul> </li> <li>test/<ul> <li>Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.</li> </ul> </li> <li>docutils/writers/latex2e/__init__.py<ul> <li>Clean up Babel language setting. Restores Sphinx compatibility.</li> </ul> </li> </ul> </div> <div class="section" id="release-0-8-2011-07-07"> <h1><a class="toc-backref" href="#id17">Release 0.8 (2011-07-07)</a></h1> <ul> <li><p class="first">General:</p> <ul class="simple"> <li>Handle language codes according to <a class="reference external" href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">BCP 47</a>.</li> <li>If the specified language is not supported by Docutils, warn and fall back to English.</li> <li>Math support: reStructuredText "math" role and directive, <tt class="docutils literal">math</tt> and <tt class="docutils literal">math_block</tt> doctree elements.</li> <li>Decode command line arguments with the locale's preferred encoding (to allow, e.g., <tt class="docutils literal"><span class="pre">--title=Dornröschen</span></tt>).</li> <li>Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.</li> <li>New sub-module <cite>error_reporting</cite>: handle encoding/decoding errors when reporting exceptions.</li> <li>Some additions to the Docutils core are released under the 2-Clause BSD license, see <a class="reference external" href="COPYING.html">COPYING</a> for details.</li> </ul> </li> <li><p class="first">reStructuredText:</p> <ul class="simple"> <li>Most directives now support a "name" option that attaches a reference name.</li> <li>Directive content may start on the first line also when the directive type accepts options.</li> </ul> </li> <li><p class="first">docs/dev/policies.txt:</p> <ul class="simple"> <li>Recommend the 2-Clause BSD license (<a class="reference external" href="http://www.spdx.org/licenses/BSD-2-Clause">http://www.spdx.org/licenses/BSD-2-Clause</a>) for code that is kept under the author's copyright.</li> </ul> </li> <li><p class="first">tools/buildhtml.py:</p> <ul class="simple"> <li>Fix <tt class="docutils literal"><span class="pre">--local</span></tt> switch.</li> </ul> </li> <li><p class="first">Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.</p> </li> <li><p class="first">docutils/writers/html4css1/__init__.py</p> <ul class="simple"> <li>Set "lang" argument for objects with class argument "language-<language tag>".</li> <li>New setting "math-output" with support for HTML, MathML, and LaTeX.</li> </ul> </li> <li><p class="first">docutils/writers/latex2e/__init__.py</p> <ul class="simple"> <li>Fix [ 3043986 ] AttributeError using :local: with table of content.</li> <li>Place title data in the document preamble.</li> <li>Load <cite>babel</cite> package only if required.</li> <li>Update list of supported languages.</li> <li>New config setting "hyperref-options". No hard-coded "unicode" hyperref option (clash with xetex).</li> <li>Set language for custom roles, paragraphs, block-quotes, and line-quotes with class argument "language-<language tag>".</li> <li>Fix [ 3095603 ] wrong quotes output for russian and other languages.</li> <li>Convert image URI to a local file path.</li> <li>Apply [ 3148141 ] fix multicolumn support when a colspanning cell has more than one paragraph (Wolfgang Scherer).</li> <li>leavevmode before longtable only when needed (prevents spurious vspace)</li> <li>do not advance table counter for tables without caption</li> </ul> </li> <li><p class="first">docutils/writers/xetex/__init__.py</p> <ul> <li><p class="first">New writer generating LaTeX code for compiling with <tt class="docutils literal">xelatex</tt>.</p> <p>A separate writer (inheriting from latex2e) instead of a <tt class="docutils literal"><span class="pre">--xetex</span></tt> option allows separate config options for XeTeX vs. LaTeX2e.</p> </li> </ul> </li> <li><p class="first">docutils/writers/manpage.py</p> <ul class="simple"> <li>Fix: BUG#3219183 - vertical space in definition lists containing markup.</li> <li>Fix: vertical space cleaning for option group <tt class="docutils literal">.</tt>.</li> </ul> </li> <li><p class="first">tools/editors/emacs/rst.el:</p> <ul class="simple"> <li>Fix [ 3001100 ] does not handle spaces in filenames (thanks to Jakub Wilk)</li> </ul> </li> <li><p class="first">docutils/utils.py:</p> <ul class="simple"> <li>strip whitespace from stylesheet arguments</li> <li>exclude combining chars from column_width() (partial fix for [ 2926161 ])</li> </ul> </li> <li><p class="first">docutils/parsers/rst/directives/misc.py:</p> <ul class="simple"> <li>Fix [ 1830389 ] Replace not breaking on getting system_messages from nested_parse</li> </ul> </li> <li><p class="first">docutils/io.py:</p> <ul class="simple"> <li>Do not close() sys.stdin, sys.stdout, or sys.stderr. Prevents <tt class="docutils literal">Exception ValueError: 'I/O operation on closed file.'</tt> with Python 3.</li> </ul> </li> </ul> </div> <div class="section" id="release-0-7-2010-07-07"> <h1><a class="toc-backref" href="#id18">Release 0.7 (2010-07-07)</a></h1> <ul class="simple"> <li>General:<ul> <li>Fix [ 2881769 ] setup configuration.</li> <li>Fix [ 2788716 ] reporting problems in included files.</li> </ul> </li> <li>docutils/io.py<ul> <li>FileInput opens files as text files with universal newline support (mode "rU", configurable with the new optional argument "mode").</li> </ul> </li> <li>docutils/nodes.py<ul> <li>Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).</li> </ul> </li> <li>docutils/utils.py<ul> <li>Fix [ 2923723 ] let decode_path() tolerate path == None</li> </ul> </li> <li>docutils/writers/html4css1/__init__.py<ul> <li>Support SVG and SWF images (thanks to Stefan Rank).</li> <li>Generate valid XHTML for centered images with targets. Use CSS classes instead of "align" tags for image alignment.</li> </ul> </li> <li>docutils/writers/latex2e/__init__.py<ul> <li>Use <cite>transforms.writer_aux.Admonitions</cite> to "normalize" special admonitions.</li> <li>Use the <tt class="docutils literal">\url</tt> command for URLs (breaks long URLs instead of writing into the margin).</li> <li>Preserve runs of spaces in <a class="reference external" href="docs/ref/restructuredtext.html#inline-literals">inline literals</a>.</li> <li>Deprecate <tt class="docutils literal">figure_footnotes</tt> setting.</li> <li>Rename <tt class="docutils literal">use_latex_footnotes</tt> setting to <a class="reference external" href="docs/user/config.html#docutils-footnotes">docutils_footnotes</a>.</li> <li>New <tt class="docutils literal">latex_preamble</tt> setting.</li> <li>Use PDF standard fonts (Times/Helvetica/Courier) as default.</li> <li>Fix hyperlink targets (labels) for images, figures, and tables.</li> <li>Apply [ 2961988 ] Load babel after inputenc and fontenc.</li> <li>Apply [ 2961991 ] Call hyperref with unicode option.</li> <li>Drop the special <a class="reference external" href="docs/user/config.html#output_encoding">output_encoding</a> default ("latin-1"). The Docutils wide default (usually "UTF-8") is used instead.</li> <li>Render inline markup in document title and subtitle.</li> <li>Fix numbering depth with LaTeX section numbering.</li> <li>Update Unicode -> LaTeX translations.</li> <li>Fix bug with topic directive (thanks to Alan G Isaac for reporting).</li> </ul> </li> </ul> <ul class="simple"> <li>docutils/writers/manpage.py<ul> <li>Fix: supported attribute (thanks to peter2108).</li> <li>Remove trailing blanks in code (keep in sync with mercurial version).</li> <li>Titles level 1, that is <tt class="docutils literal">.SH</tt>, always uppercase.</li> <li>Apply patch from mg: literal text should be bold in man-pages.</li> </ul> </li> <li>docutils/nodes.py<ul> <li>Fix: encoding <tt class="docutils literal">'ascii'</tt> must be lowercase to prevent problems for turkish locale.</li> </ul> </li> <li>setup.py:<ul> <li>Python 3 support: copy test/ and tools/ to the build-dir and convert Python sources with 2to3.</li> </ul> </li> </ul> </div> <div class="section" id="release-0-6-2009-10-11"> <h1><a class="toc-backref" href="#id19">Release 0.6 (2009-10-11)</a></h1> <ul class="simple"> <li>General:<ul> <li>Docutils is now compatible with Python versions from 2.3 up to 2.6 and convertible to 3.1 code.<ul> <li>Node.__nonzero__ returns True instead of 1.</li> <li>use os.walk instead os.path.walk.</li> <li>minimize "types" module where possible.</li> <li>Backwards-compatible changes to remove python2.6 -3 deprecation warnings</li> <li>Text nodes now subclass unicode rather than UserString (which is gone in python 3.0).</li> <li>3.0 compatibility module docutils._compat</li> <li>Drop 2.2 compatibility workarounds.</li> <li>Drop extras/optparse.py and extras/textwrap.py (stdlib modules since 2.3).</li> </ul> </li> <li>OpenOffice export: ODT writer moved from sandbox to Doctutils core.</li> <li>Unix man page export: manpage writer moved from sandbox to Doctutils core.</li> <li>Apply [ 1719345 ] Galician translation</li> <li>Apply [ 1905741 ] Polish translation</li> <li>Apply [ 1878977 ] make_id(): deaccent characters.</li> <li>Apply [ 2029251 ] return nonzero when tests fail.</li> <li>Fix [ 1692788 ] allow UTF-8 in style sheets.</li> <li>Fix [ 2781629 ] support non-ASCII chars in file names.</li> <li>Apply [ 2845002 ] let <tt class="docutils literal"><span class="pre">--no-raw</span></tt> disable raw <em>roles</em> too.</li> <li>Fix [ 2831643 ] by renaming DirectiveError.message to DirectiveError.msg</li> <li>Fix [ 2821266 ] --strict option works now like --halt=info.</li> <li>Fix [ 2788716 ] DirectiveError now correctly reports source and line.</li> <li>Fix [ 1627229 ] hyperlink references in substitutions.</li> <li>The "newlatex" writer is orphaned.</li> </ul> </li> <li>reStructuredText:<ul> <li>Documented Unicode characters allowed as inline markup openers, closers, and delimiters.</li> <li>Allow units for all length specifications.</li> <li>Allow percent sign in "scale" argument of "figure" and "image" directives.</li> <li>Bugfix: The "figalign" argument of a figure now works as intended (aligning the figure, not its contents).</li> <li>Align images with class "align-[right|center|left]" (allows setting the alignment of an image in a figure).</li> </ul> </li> <li>docutils/nodes.py:<ul> <li>Added <tt class="docutils literal">Element.__contains__</tt> method, for the in-operator.</li> </ul> </li> <li>docutils/parsers/rst/states.py:<ul> <li>Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.</li> <li>Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and " " (non-breaking space), and "¡ ¿" openers.</li> </ul> </li> <li>docutils/parsers/directives/misc.py:<ul> <li>Added <tt class="docutils literal"><span class="pre">start-line</span></tt> and <tt class="docutils literal"><span class="pre">end-line</span></tt> options to "include" directive to select a range of lines.</li> <li>Hard tabs in literal inclusions are replaced by spaces. This is configurable via the new <tt class="docutils literal"><span class="pre">tab-width</span></tt> option of the "include" directive (a negative tab-width prevents tab expansion).</li> </ul> </li> <li>docutils/utils.py:<ul> <li>Add <tt class="docutils literal">get_stylesheet_list</tt> function.</li> <li>Apply [ 2834836 ] print info at halt</li> </ul> </li> <li>docutils/transforms/universal.py:<ul> <li>Raise default priority of StripClasses to exclude stripped classes from the ToC.</li> </ul> </li> <li>docutils/writers/html4css1/__init__.py:<ul> <li><tt class="docutils literal"><span class="pre">--stylesheet</span></tt> and <tt class="docutils literal"><span class="pre">--stylesheet-path</span></tt> options support a comma separated list of stylesheets.</li> <li>Address [ 1938891 ] Inline literal text creates "pre" span only when needed to prevent inter-word line wraps.</li> <li>Use <cite>translate</cite> method instead of repeated <cite>replace</cite> calls.</li> <li>Fix [ 1757105 ] New <tt class="docutils literal"><span class="pre">table-style</span></tt> option. Added to standard table classes to allow CSS styling that does not interfere with other table-using constructs (field lists, citations, ...).</li> </ul> </li> <li>docutils/writers/newlatex2e/__init__.py:<ul> <li>Apply [ 1612821 ] Double quotes in literal text in Italian/German</li> </ul> </li> <li>docutils/writers/latex2e/__init__.py (see also <a class="reference external" href="docs/user/docutils-05-compat.sty.html">docs/user/docutils-05-compat.sty.html</a>) :<ul> <li>Add <tt class="docutils literal"><span class="pre">--embed-stylesheet</span></tt> option.</li> <li>Apply [ 1474017 ] image vertical alignment is reversed.</li> <li>Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).</li> <li>Change: has_key for dictionaries (not Nodes) to in-operator.</li> <li>Merge adjacent citations into one latex cite command.</li> <li>Failsave implementation of custom roles. LaTeX compilation now ignores unknown classes instead of aborting with an error.</li> <li>Support custom roles based on standard roles.</li> <li>LaTeX packages can be used as <tt class="docutils literal"><span class="pre">--stylesheet</span></tt> arguments without restriction. (A style sheet is now referenced with the <tt class="docutils literal">\usepackage</tt> command, if it ends with <tt class="docutils literal">.sty</tt> or has no extension.)</li> <li>Add <tt class="docutils literal">bp</tt> to lenghts without unit (prevents LaTex errors).</li> <li>Correctly write length unit <tt class="docutils literal">pt</tt> as <tt class="docutils literal">bp</tt> in LaTeX.</li> <li>Do not convert <tt class="docutils literal">px</tt> to <tt class="docutils literal">pt</tt> (<tt class="docutils literal">px</tt> is supported by pdfTeX since 2005-02-04 as a configurable length unit).</li> <li>Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages if font-encoding is set to ''. LaTeX defaults to OT1 then.</li> <li>Set sub- and superscript role argument in text mode not as math. Use a custom role based on sub-/superscript if you want italic shape.</li> <li>Shorter preamble and less dependencies: Load packages and define macros only if required in the document.</li> <li>Use the name prefix <tt class="docutils literal">DU</tt> for all Docutils specific LaTeX macros.</li> <li>New custom environments and commands with optional "classes" argument.</li> <li>Simpler LaTeX encoding, e.g. "%" instead of "{%}".</li> <li>Better conformance to Docutils specifications with <tt class="docutils literal"><span class="pre">--use-latex-toc</span></tt>. Support for LaTeX generated ToC also with unnumbered sections.</li> <li>If 'sectnum_xform' is False, the 'sectnum' directive triggers section numbering by LaTeX.</li> <li>Use default font in admonitions and sidebar.</li> <li>Align of image in a figure defaults to 'center'.</li> <li>Bugfix: Newlines around targets and references prevent run-together paragraphs.</li> <li>Fix internal hyperlinks.</li> <li>Use class defaults for page margins ('typearea' now optional).</li> <li>Float placement made configurable, default changed to "here definitely".</li> <li>Typeset generic topic as "quote block with title".</li> <li>Use template (file and configuration option).</li> <li>In the default template, load cmap.sty (fix text extraction in PDF) and fixltx2e.sty (LaTeX patches, textsubscript).</li> <li>Render doctest blocks as literal blocks (fixes [ 1586058 ]).</li> <li>Use <cite>translate</cite> instead of repeated <cite>replace</cite> calls for text encoding.</li> <li>Hyperlinked footnotes and support for symbol footnotes and <tt class="docutils literal"><span class="pre">--footnote-references=brackets</span></tt> with <tt class="docutils literal"><span class="pre">--use-latex-footnotes</span></tt>.</li> <li>Complete pairs of binary options (<tt class="docutils literal"><span class="pre">--figure-footnotes,</span> <span class="pre">--figure-citations,</span> <span class="pre">--link-stylesheet</span></tt>, <tt class="docutils literal"><span class="pre">--use-docutils-toc,</span> <span class="pre">--use-docutils-docinfo,</span> <span class="pre">--topic-abstract</span></tt>)</li> <li>New defaults: - font-encoding: "T1" (formerly implicitely set by 'ae'). - use-latex-toc: true (ToC with page numbers). - use-latex-footnotes: true (no mixup with figures).</li> </ul> </li> <li>docutils/writers/manpage.py<ul> <li>Do not print version at document end, this is done by the viewer.</li> <li>Do not print date at document end, this is done by the viewer.</li> <li>Fix storage of docinfo fields for none standard fields.</li> </ul> </li> <li>docutils/tools/rst2man.py</li> </ul> </div> <div class="section" id="release-0-5-2008-06-25"> <h1><a class="toc-backref" href="#id20">Release 0.5 (2008-06-25)</a></h1> <ul> <li><p class="first">docutils/languages/he.py: Added to project: Hebrew mappings by Meir Kriheli.</p> </li> <li><p class="first">docutils/parsers/rst/languages/he.py: Added to project: Hebrew mappings by Meir Kriheli.</p> </li> <li><p class="first">docutils/frontend.py:</p> <ul class="simple"> <li>Configuration files are now assumed and required to be UTF-8-encoded.</li> <li>Paths of applied configuration files are now recorded in the runtime setting <tt class="docutils literal">_config_files</tt> (accessible via <tt class="docutils literal"><span class="pre">--dump-settings</span></tt>).</li> <li>Added <tt class="docutils literal"><span class="pre">--strip-elements-with-class</span></tt> and <tt class="docutils literal"><span class="pre">--strip-class</span></tt> options (<tt class="docutils literal">strip_elements_with_classes</tt> and <tt class="docutils literal">strip_classes</tt> settings).</li> </ul> </li> <li><p class="first">docutils/io.py:</p> <ul class="simple"> <li>Added code to determine the input encoding from data: encoding declarations or the presence of byte order marks (UTF-8 & UTF-16).</li> <li>Added support for IronPython 1.0.</li> </ul> </li> <li><p class="first">docutils/nodes.py:</p> <ul class="simple"> <li>Added <tt class="docutils literal">document.__getstate__</tt> method, for pickling.</li> </ul> </li> <li><p class="first">docutils/parsers/rst/states.py:</p> <ul class="simple"> <li>Allow <tt class="docutils literal">+</tt> and <tt class="docutils literal">:</tt> in reference names.</li> <li>Unquoted targets beginning with an underscore (<tt class="docutils literal">.. __target: URI</tt>) are no longer accepted.</li> <li>Added support for multiple attributions in a physical block quote (indented text block), dividing it into multiple logical block quotes.</li> <li>Added support for unicode bullets in bullet lists: "•", "‣", and "⁃".</li> <li>Added support for new object-oriented directive interface, retaining compatibility to the old functional interface.</li> <li>Added support for throwing <tt class="docutils literal">DirectiveError</tt>'s from within directive code.</li> </ul> </li> <li><p class="first">docutils/parsers/rst/__init__.py:</p> <ul class="simple"> <li>Added <tt class="docutils literal">Directive</tt> base class.</li> <li>Added <tt class="docutils literal">DirectiveError</tt> base class.</li> <li>Fixed <tt class="docutils literal">file_insertion_enabled</tt> & <tt class="docutils literal">raw_enabled</tt> setting definitions.</li> </ul> </li> <li><p class="first">docutils/parsers/directives/:</p> <ul class="simple"> <li>Refactored all reStructuredText directives to use the new object-oriented directive interface. Errors are now (mostly) thrown using the new <tt class="docutils literal">DirectiveError</tt> class.</li> </ul> </li> <li><p class="first">docutils/parsers/directives/misc.py:</p> <ul class="simple"> <li>Added <tt class="docutils literal"><span class="pre">start-after</span></tt> and <tt class="docutils literal"><span class="pre">end-before</span></tt> options to <tt class="docutils literal">include</tt> directive; thanks to Stefan Rank.</li> </ul> </li> <li><p class="first">docutils/transforms/universal.py:</p> <ul class="simple"> <li>Added <tt class="docutils literal">StripClassesAndElements</tt> transform to remove from the document tree all elements with classes in <tt class="docutils literal">settings.strip_elements_with_classes</tt> and all "classes" attribute values in <tt class="docutils literal">self.document.settings.strip_classes</tt>.</li> </ul> </li> <li><p class="first">docutils/transforms/writer_aux.py:</p> <ul class="simple"> <li>Added <tt class="docutils literal">Admonitions</tt> transform to transform specific admonitions (like <tt class="docutils literal">note</tt>, <tt class="docutils literal">warning</tt>, etc.) into generic admonitions with a localized title.</li> </ul> </li> <li><p class="first">docutils/writers/html4css1/__init__.py:</p> <ul class="simple"> <li>Moved template functionality from the PEP/HTML writer here.</li> <li>Expanded the fragments available in the <tt class="docutils literal">parts</tt> attribute.</li> <li>Moved <tt class="docutils literal">id</tt> attributes from titles to surrounding <tt class="docutils literal">div</tt> elements.</li> <li>Dropped all <tt class="docutils literal">name</tt> attributes of <tt class="docutils literal">a</tt> elements (<tt class="docutils literal">id</tt> is universally supported now).</li> <li><tt class="docutils literal">template.txt</tt> is now opened in text mode instead of binary mode (to ensure Windows compatibility).</li> <li><tt class="docutils literal">a</tt> elements now have an "internal" or "external" class, depending on reference type.</li> </ul> </li> <li><p class="first">docutils/writers/html4css1/template.txt: Added to project.</p> </li> <li><p class="first">docutils/writers/pep_html/:</p> <ul class="simple"> <li>Moved template functionality to the HTML writer.</li> </ul> </li> <li><p class="first">docutils/writers/s5_html/__init__.py:</p> <ul class="simple"> <li>Added <tt class="docutils literal">view_mode</tt> & <tt class="docutils literal">hidden_controls</tt> settings (<tt class="docutils literal"><span class="pre">--view-mode</span></tt> & <tt class="docutils literal"><span class="pre">--hidden-controls/--visible-controls</span></tt> options).</li> </ul> </li> <li><p class="first">docutils/writers/latex2e/__init__.py:</p> <ul class="simple"> <li>Add <tt class="docutils literal"><span class="pre">--literal-block-env</span></tt></li> <li>Fix: escaping <tt class="docutils literal">%</tt> in href urls.</li> <li>Move usepackage hyperref after stylesheet inclusion.</li> <li>Fix: scrartcl does not have chapter but scrreprt.</li> <li>Add newline after <tt class="docutils literal">\end{verbatim}</tt>.</li> <li>Merge smaller differences from latex2e_adaptive_preamble.</li> <li>Add <tt class="docutils literal"><span class="pre">use-part-section</span></tt>.</li> <li>Put leavevmode before longtable to avoid having it moved before sub/pargraph.</li> <li>Using leavemode option_list no longer needs to check if parent is a definition list.</li> <li>Append <tt class="docutils literal">\leavemode</tt> to definition list terms.</li> <li>No longer write visit_/depart_definition_list_item comments to output.</li> <li>Table column width with 3 decimal places.</li> <li>Add table stubs support (boldfont).</li> <li>Add assemble_parts to writer.</li> <li>Add simply support for nested tables.</li> <li>Fix verbatim in tables if use-verbatim-when-possible.</li> <li>Use section commands down to subparagraph.</li> <li>Put ensuremath around some latin1 chars.</li> <li>Set <tt class="docutils literal"><span class="pre">usepackage[utf8x]{inputenc}</span></tt> for utf-8.</li> <li>New option <tt class="docutils literal"><span class="pre">--use-bibtex=style,db1,db2</span></tt>.</li> <li>New option <tt class="docutils literal"><span class="pre">--reference-label</span></tt> to allow usage of LaTeX ref for labels in section references.</li> <li>Add a label after every section to support sectionnumbers as reference labels.</li> <li>Fix: bug# 1605376 rst2latex: bad options group list</li> <li>Remove inactive code for use_optionlist_for_option_list.</li> <li>Remove latex comments from option_list output.</li> <li>Fix: bug# 1612270 double qoutes in italian literal.</li> <li>Fix: output <tt class="docutils literal">hypertarget{ node.get(refid) }{}</tt> from visit_target.</li> <li>Add option --use-latex-abstract.</li> <li>Image width unit <tt class="docutils literal">px</tt> is translated to <tt class="docutils literal">pt</tt>.</li> <li>Add image height support.</li> <li>Fix: image width <tt class="docutils literal">70%</tt> is converted <tt class="docutils literal">0.700\linewidth</tt>. bug #1457388</li> <li>Fix: Do not escape underscores in citation reference labels if use-latex-citations is set.</li> <li>Use centering instead of center for figure contents, to avoid vertical space.</li> <li>Recognize table class: borderless, nolines, booktabs, standard.</li> <li>Fix: Renaming contents section does not work with latex writer; SF bug #1487405.</li> <li>Applied patch for custom roles with classes from Edward Loper.</li> <li>Fixed bug that caused crashes with more than 256 lists.</li> </ul> </li> <li><p class="first">docutils/writers/pep_html/__init__.py:</p> <ul class="simple"> <li>Changed to support new python.org website structure and pep2pyramid.py.</li> </ul> </li> <li><p class="first">docs/howto/security.txt: "Deploying Docutils Securely", added to project.</p> </li> <li><p class="first">tools/buildhtml.py:</p> <dl class="docutils"> <dt>-- Added <tt class="docutils literal">ignore</tt> setting to exclude a list of shell patterns</dt> <dd><p class="first last">(default: <tt class="docutils literal">.svn:CVS</tt>).</p> </dd> </dl> </li> <li><p class="first">tools/editors/emacs/rst.el:</p> <ul class="simple"> <li>Changed license to "GPL".</li> <li>Added <tt class="docutils literal"><span class="pre">rst-straighten-decorations</span></tt> function.</li> <li>The <tt class="docutils literal">compile</tt> module is now always loaded.</li> <li>Added <tt class="docutils literal"><span class="pre">rst-toggle-line-block</span></tt> function.</li> <li>Headings consisting only of non-ASCII characters are now recognized by <tt class="docutils literal"><span class="pre">rst-toc</span></tt> and <tt class="docutils literal"><span class="pre">rst-adjust</span></tt>.</li> <li>Added font-lock support for multi-line comments where the first comment line is empty.</li> <li>Added <tt class="docutils literal">(require <span class="pre">'font-lock)</span></tt>.</li> </ul> </li> <li><p class="first">setup.py:</p> <ul class="simple"> <li>Provide descriptive error message if distutils is missing.</li> </ul> </li> </ul> </div> <div class="section" id="release-0-4-2006-01-09"> <h1><a class="toc-backref" href="#id21">Release 0.4 (2006-01-09)</a></h1> <ul class="simple"> <li>General:<ul> <li>Updated the project policies for trunk/branch development & version numbering.</li> </ul> </li> <li>docutils/__init__.py:<ul> <li>Added <tt class="docutils literal">__version_details__</tt> attribute to describe code source (repository/snapshot/release).</li> <li>Replaced <tt class="docutils literal">default_transforms</tt> attribute of TransformSpec with <tt class="docutils literal">get_transforms()</tt> method.</li> </ul> </li> <li>docutils/core.py:<ul> <li>Added <tt class="docutils literal">publish_doctree</tt> and <tt class="docutils literal">publish_from_doctree</tt> convenience functions, for document tree extraction and reprocessing.</li> </ul> </li> <li>docutils/io.py:<ul> <li>Added <tt class="docutils literal">DocTreeInput</tt> class, for reprocessing existing documents.</li> <li>Added support for non-Unicode (e.g. binary) writer output.</li> </ul> </li> <li>docutils/nodes.py:<ul> <li>Re-introduced <tt class="docutils literal">Targetable.indirect_reference_name</tt>, for MoinMoin/reST compatibility (removed in r3124/r3129).</li> <li>Added <tt class="docutils literal">serial_escape</tt> function; escapes string values that are elements of a list, for serialization. Modified Docutils-XML writing (<tt class="docutils literal">Element._dom_node</tt>) and pseudo-XML writing (<tt class="docutils literal">Element.starttag</tt>) to use <tt class="docutils literal">serial_escape</tt>.</li> <li>Added <tt class="docutils literal">Node.deepcopy()</tt> method.</li> <li>Removed the internal lists <tt class="docutils literal">document.substitution_refs</tt>, <tt class="docutils literal">document.anonymous_refs</tt>, and <tt class="docutils literal">document.anonymous_targets</tt>.</li> <li>Added a "container" element.</li> <li>Fixed bug where values of list-valued attributes of elements originating from custom interpreted text roles (i.e., with custom classes) were being shared between element instances. Reported by Shmuel Zeigerman.</li> </ul> </li> <li>docutils/statemachine.py:<ul> <li>Added trailing whitespace stripping to <tt class="docutils literal">string2lines()</tt>.</li> <li>Added <tt class="docutils literal">StringList.pad_double_width()</tt> & <tt class="docutils literal">.replace()</tt> for East Asian double-width character support.</li> </ul> </li> <li>docutils/utils.py:<ul> <li>Added <tt class="docutils literal">east_asian_column_width()</tt> for double-width character support.</li> </ul> </li> <li>docutils/languages/ja.py: Added to project: Japanese mappings by Hisashi Morita.</li> <li>docutils/languages/zh_cn.py: Added to project: Simplified Chinese mappings by Panjunyong.</li> <li>docutils/parsers/null.py: Added to project; a do-nothing parser.</li> <li>docutils/parsers/rst/__init__.py:<ul> <li>Added validator to tab_width setting, with test. Closes SF bug #1212515, report from Wu Wei.</li> </ul> </li> <li>docutils/parsers/rst/states.py:<ul> <li>Fixed bug with escaped colons indicating a literal block.</li> <li>Fixed bug with enumerated lists (SF#1254145).</li> <li>Backslash-escaped colons inside of field names are now allowed.</li> <li>Targets (implicit and explicit), anonymous hyperlink references and auto-numbered footnote references inside of substitution definitions are now disallowed.</li> <li>Fixed bug: list items with blank first lines.</li> <li>Fixed bug: block quote attributions with indented second lines.</li> <li>Added East Asian double-width character support (Python 2.4 only).</li> </ul> </li> <li>docutils/parsers/rst/tableparser.py:<ul> <li>Added East Asian double-width character support (Python 2.4 only).</li> </ul> </li> <li>docutils/parsers/rst/directives/body.py:<ul> <li>Added the "container" directive.</li> </ul> </li> <li>docutils/parsers/rst/directives/misc.py:<ul> <li>Added the "default-role", "title", and "date" directives.</li> <li>Added standard data file syntax to the "include" directive.</li> <li>Added support for "class" directive content.</li> </ul> </li> <li>docutils/parsers/rst/directives/images.py:<ul> <li>Added <tt class="docutils literal">indirect_reference_name</tt> support for images with a target option.</li> <li>Added support for image width and height units.</li> <li>Fixed bug with image "target" options.</li> </ul> </li> <li>docutils/parsers/rst/directives/references.py:<ul> <li>Added "class" attribute to "target-notes" directive, for footnote_reference classes.</li> </ul> </li> <li>docutils/parsers/rst/include/: Directory added to project; contains standard data files for the "include" directive. Initial contents: character entity substitution definition sets, and a set of definitions for S5/HTML presentations.</li> <li>docutils/parsers/rst/languages/ja.py: Added to project: Japanese mappings by David Goodger.</li> <li>docutils/parsers/rst/languages/zh_cn.py: Added to project: Simplified Chinese mappings by Panjunyong.</li> <li>docutils/readers/__init__.py:<ul> <li>Added universal.Decorations and universal.ExposeInternals transforms as default transforms for all readers.</li> <li>Added <tt class="docutils literal">ReReader</tt> base class for readers that reread an existing document tree.</li> </ul> </li> <li>docutils/readers/doctree.py: Added to project; a reader for existing document trees.</li> <li>docutils/transforms/frontmatter.py:<ul> <li>Fixed the DocInfo transform to handle SVN-style expansion of the "Date" keyword.</li> <li>In <tt class="docutils literal">DocInfo.extract_authors</tt>, treat the contents of "authors" fields uniformly.</li> </ul> </li> <li>docutils/transforms/misc.py:<ul> <li>Added misc.Transitions transform, extracted from universal.FinalChecks.</li> </ul> </li> <li>docutils/transforms/references.py:<ul> <li>Added references.DanglingReferences transform, extracted from universal.FinalChecks.</li> <li>Fixed bug with doubly-indirect substitutions.</li> <li>Added footnote_reference classes attribute to "TargetNotes".</li> <li>Fixed bug with circular substitution definitions that put Docutils into an infinite loop.</li> </ul> </li> <li>docutils/transforms/universal.py:<ul> <li>Added universal.ExposeInternals transform, extracted from universal.FinalChecks.</li> <li>Removed universal.FinalChecks transform (logic has been moved to several new transforms).</li> <li>Fixed bug with the "expose_internals" setting and Text nodes (exposed by the "rawsource" internal attribute).</li> <li>Added the universal.StripComments transform, implementation of the "strip_comments" setting.</li> </ul> </li> <li>docutils/transforms/writer_aux.py: Added to project; auxiliary transforms for writers.<ul> <li>Added <tt class="docutils literal">Compound</tt> transform, which flattens compound paragraphs.</li> </ul> </li> <li>docutils/writers/: Several writer modules (html4css1.py) were converted into packages. Support modules and data files have been moved into the packages. The stylesheets for the HTML writers are now installed along with the code, the code knows where to find them, and the default is to use them (actually, to embed them). Some adjustments to configuration files may be necessary. The easiest way to obtain the new default behavior is to remove all settings whose name includes "stylesheet".</li> <li>docutils/writers/__init__.py:<ul> <li>Added universal.Messages and universal.FilterMessages transforms as default transforms for all writers.</li> <li>Added <tt class="docutils literal">UnfilteredWriter</tt> base class for writers that pass the document tree on unchanged.</li> </ul> </li> <li>docutils/writers/docutils_xml.py:<ul> <li>Made <tt class="docutils literal">xmlcharrefreplace</tt> the default output encoding error handler.</li> </ul> </li> <li>docutils/writers/html4css1/:<ul> <li>Added support for image width and height units.</li> <li>Made <tt class="docutils literal">xmlcharrefreplace</tt> the default output encoding error handler.</li> <li>Made <tt class="docutils literal"><span class="pre">--embed-stylesheet</span></tt> the default rather than <tt class="docutils literal"><span class="pre">--link-stylesheet</span></tt>.</li> <li>Moved "id" attribute from container (section etc.) to title's <a> tag, to be on the same tag as "name". (!!! To be reverted in Docutils 0.5.)</li> <li>Added vertical space between fields of field lists.</li> <li>Added <tt class="docutils literal"><span class="pre">--compact-field-lists</span></tt> option to remove vertical space in simple field lists.</li> <li>Made cloaking of email addresses with <tt class="docutils literal"><span class="pre">--cloak-email-addresses</span></tt> less obtrusive.</li> <li>Fixed support for centered images.</li> <li>Added support for class="compact" & class="open" lists.</li> </ul> </li> <li>docutils/writers/latex2e/:<ul> <li>Underscores in citekeys are no longer escaped.</li> </ul> </li> <li>docutils/writers/newlatex2e/unicode_map.py: Added to project; mapping of Unicode characters to LaTeX equivalents.</li> <li>docutils/writers/s5_html/: Package added to project; writer for S5/HTML slide shows.</li> <li>docs/dev/distributing.txt: Added to project; guide for distributors (package maintainers).</li> <li>docs/dev/hacking.txt: Added to project; guide for developers.</li> <li>docs/ref/doctree.txt:<ul> <li>Updated for plural attributes "classes", "ids", "names", "dupnames".</li> <li>Added the "container" element.</li> </ul> </li> <li>docs/ref/docutils.dtd:<ul> <li>Updated for plural attributes "classes", "ids", "names", "dupnames".</li> </ul> </li> <li>docs/user/emacs.txt: Added to project; a document about Emacs support for reStructuredText and Docutils.</li> <li>docs/user/links.txt: Added to project; lists of Docutils-related links.</li> <li>docs/user/mailing-lists.txt: Added to project; information about Docutils-related mailing lists and how to access them.</li> <li>docs/user/slide-shows.txt: Added to project; example of and docs for the S5/HTML writer (<tt class="docutils literal">rst2s5.py</tt> front end).</li> <li>docs/ref/rst/definitions.txt: "reStructuredText Standard Definition Files", added to project.</li> <li>test/coverage.sh: Added to project; test coverage script.</li> <li>test/DocutilsTestSupport.py:<ul> <li>Added support for specifying runtime settings at the suite level.</li> </ul> </li> <li>test/test_functional.py:<ul> <li>Added the <tt class="docutils literal">clear_output_directory</tt> function.</li> <li>Added support for <tt class="docutils literal">_test_more</tt> functions in functional test config files.</li> </ul> </li> <li>tools/rst2s5.py: Added to project; front end for the S5/HTML writer.</li> <li>tools/rstpep2html.py: Renamed from pep.py.</li> <li>tools/dev/create_unimap.py: Added to project; script to create the docutils/writers/unimap_latex.py mapping file.</li> <li>tools/dev/profile_docutils.py: Added to project; profiler script.</li> <li>tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.</li> <li>tools/editors/emacs/restructuredtext.el, tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el: Removed from project; the functionality is now contained in rst.el.</li> <li>tools/editors/emacs/rst.el: Added to project. Added many features and fixed many bugs. See docs/user/emacs.txt for details.</li> <li>tools/stylesheets: Removed from project. Stylesheets have been renamed and moved into writer packages.</li> </ul> </div> <div class="section" id="release-0-3-9-2005-05-26"> <h1><a class="toc-backref" href="#id22">Release 0.3.9 (2005-05-26)</a></h1> <ul class="simple"> <li>General:<ul> <li>Eliminated and replaced all uses of the old string attributes <tt class="docutils literal">id</tt>, <tt class="docutils literal">name</tt>, <tt class="docutils literal">dupname</tt> and <tt class="docutils literal">class</tt> with references to the new list attributes <tt class="docutils literal">ids</tt>, <tt class="docutils literal">names</tt>, <tt class="docutils literal">dupnames</tt> and <tt class="docutils literal">classes</tt> throughout the whole source tree.</li> </ul> </li> <li>docutils/core.py:<ul> <li>Enabled <tt class="docutils literal"><span class="pre">--dump-*</span></tt> options when <tt class="docutils literal"><span class="pre">--traceback</span></tt> specified, allowing for easier debugging.</li> <li>In <tt class="docutils literal">Publisher.publish()</tt>, expanded the generic top-level exception catching.</li> </ul> </li> <li>docutils/examples.py:<ul> <li>Added <tt class="docutils literal">internals</tt> function for exploration.</li> </ul> </li> <li>docutils/io.py:<ul> <li>Fixed <tt class="docutils literal">Input.decode</tt> method to apply heuristics only if no encoding is explicitly given, and to provide better reporting of decoding errors.</li> <li>The <tt class="docutils literal">Input.decode</tt> method now removes byte order marks (BOMs) from input streams.</li> </ul> </li> <li>docutils/nodes.py:<ul> <li><tt class="docutils literal">image</tt> element class changed to subclass of Element, not TextElement (it's an empty element, and cannot contain text).</li> <li>Added <tt class="docutils literal">attr_defaults</tt> dictionary for default attribute values.</li> <li>Added empty list as default value for the following attributes: <tt class="docutils literal">ids</tt>, <tt class="docutils literal">names</tt>, <tt class="docutils literal">dupnames</tt>, <tt class="docutils literal">classes</tt>, and <tt class="docutils literal">backrefs</tt>.</li> <li>Added <tt class="docutils literal">document.decoration</tt> attribute, <tt class="docutils literal">document.get_decoration</tt> method, and <tt class="docutils literal">decoration.get_header</tt> & <tt class="docutils literal">.get_footer</tt> methods.</li> <li>Added <tt class="docutils literal">Element.update_basic_atts()</tt> and <tt class="docutils literal">Element.substitute()</tt> methods.</li> </ul> </li> <li>docutils/utils.py:<ul> <li>Removed <tt class="docutils literal">docutils.utils.Reporter.categories</tt>, <tt class="docutils literal">docutils.utils.ConditionSet</tt>, and all references to them, to simplify error reporting.</li> </ul> </li> <li>docutils/languages/nl.py: Added to project; Dutch mappings by Martijn Pieters.</li> <li>docutils/parsers/rst/__init__.py:<ul> <li>Added settings: <tt class="docutils literal">file_insertion_enabled</tt> & <tt class="docutils literal">raw_enabled</tt>.</li> </ul> </li> <li>docutils/parsers/rst/states.py:<ul> <li>Added check for escaped at-mark to prevent email address recognition.</li> <li>Fixed option lists to allow spaces inside <tt class="docutils literal"><span class="pre"><angle-bracketed</span> option arguments></tt>.</li> <li>Allowed whitespace in paths and URLs.</li> <li>Added auto-enumerated list items.</li> <li>Fixed bug that assumed <tt class="docutils literal">.. _</tt> and <tt class="docutils literal">.. |</tt> were invariably followed by text.</li> <li>Added support for table stub columns.</li> </ul> </li> <li>docutils/parsers/rst/directives/__init__.py:<ul> <li>Allowed whitespace in paths (<tt class="docutils literal">path</tt> function).</li> <li>Added <tt class="docutils literal">uri</tt> directive option conversion function.</li> </ul> </li> <li>docutils/parsers/rst/directives/body.py:<ul> <li>Fixed illegal context bug with "topic" directive (allowed within sidebars; not within body elements).</li> </ul> </li> <li>docutils/parsers/rst/directives/images.py:<ul> <li>Allowed whitespace (stripped) in "image" & "figure" directive URLs.</li> <li>Added support for the <tt class="docutils literal">file_insertion_enabled</tt> setting in the "figure" directive (disables "figwidth" option).</li> <li>"image" directive: added checks for valid values of "align" option, depending on context. "figure" directive: added specialized "align" option and attribute on "figure" element.</li> <li>Made ":figwidth: image" option of "figure" directive work again.</li> <li>Fixed bug with reference names containing uppercase letters (e.g. <tt class="docutils literal">Name_</tt>) in "target" option of "image" directive.</li> </ul> </li> <li>docutils/parsers/rst/directives/misc.py:<ul> <li>Fixed "include" and "raw" directives to catch text decoding errors.</li> <li>Allowed whitespace in "include" & "raw" directive paths.</li> <li>Added support for <tt class="docutils literal">file_insertion_enabled</tt> & <tt class="docutils literal">raw_enabled</tt> settings in "include" & "raw" directives.</li> </ul> </li> <li>docutils/parsers/rst/directives/parts.py:<ul> <li>Added "header" & "footer" directives.</li> <li>Fixed illegal context bug with "contents" directive (topics allowed within sidebars; not within body elements).</li> </ul> </li> <li>docutils/parsers/rst/directives/tables.py:<ul> <li>Added "list-table" directive.</li> <li>Caught empty CSV table bug.</li> <li>Added support for the <tt class="docutils literal">file_insertion_enabled</tt> setting in the "csv-table" directive.</li> <li>Added <tt class="docutils literal"><span class="pre">stub-columns</span></tt> option to "csv-table" and "list-table" directives.</li> </ul> </li> <li>docutils/parsers/rst/languages/nl.py: Added to project; Dutch mappings by Martijn Pieters.</li> <li>docutils/readers/standalone.py:<ul> <li>Added <tt class="docutils literal"><span class="pre">--section-subtitles</span></tt> and <tt class="docutils literal"><span class="pre">--no-section-subtitles</span></tt> options to activate or deactivate the SectSubTitle transform.</li> </ul> </li> <li>docutils/transforms/frontmatter.py:<ul> <li>Added SectSubTitle transform to promote titles of lone subsections to subtitles.</li> </ul> </li> <li>docutils/transforms/references.py:<ul> <li>Fixed mislocated internal targets bug, by propagating internal targets to the next node, making use of the newly added support for multiple names and IDs.</li> <li>Fixed duplicate footnote label bug.</li> <li>Replaced <tt class="docutils literal">ChainedTargets</tt> with more generic <tt class="docutils literal">PropagateTargets</tt> transform.</li> </ul> </li> <li>docutils/writers/html4css1.py:<ul> <li>Fixed unencoded stylesheet reference bug (characters like "&" in stylesheet references).</li> <li><tt class="docutils literal">target</tt> nodes now appear as <tt class="docutils literal">span</tt> tags (instead of <tt class="docutils literal">a</tt> tags).</li> <li>Added support for multiple IDs per node by creating empty <tt class="docutils literal">span</tt> tags.</li> <li>Added the <tt class="docutils literal">field_name_limit</tt> & <tt class="docutils literal">option_limit</tt> settings & support.</li> <li>Added support for table stub columns.</li> <li>Added support for the <tt class="docutils literal">align</tt> attribute on <tt class="docutils literal">figure</tt> elements.</li> <li>Added the <tt class="docutils literal">cloak_email_addresses</tt> setting & support.</li> <li>Added <tt class="docutils literal">html_prolog</tt>, <tt class="docutils literal">html_head</tt>, <tt class="docutils literal">html_body</tt>, <tt class="docutils literal">html_title</tt>, & <tt class="docutils literal">html_subtitle</tt> to parts dictionary exposed by <tt class="docutils literal">docutils.core.publish_parts</tt>.</li> <li>Added support for section subtitles.</li> </ul> </li> <li>docutils/writers/latex2e.py:<ul> <li>Fixed tables starting with more than one multirow cell.</li> <li>Improved --use-latex-docinfo so that organization/contact/address fields are lumped with the last author field and appear on the titlepage.</li> <li>Made sure the titlepage is always shown with --use-latex-docinfo, even if the document has no title.</li> <li>Made sure that latex doesn't fill in today's date if no date field was given.</li> <li>Added support for section subtitles.</li> </ul> </li> <li>docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer (under development).</li> <li>docutils/writers/null.py: Added to project; a do-nothing Writer.</li> <li>docs/api/publisher.txt:<ul> <li>Added "<tt class="docutils literal">publish_parts</tt> Details" section.</li> </ul> </li> <li>docutils/dev/repository.txt: Added to project; information about the Docutils Subversion repository.</li> <li>docs/ref/docutils.dtd:<ul> <li>Added a <tt class="docutils literal">stub</tt> attribute to the <tt class="docutils literal">colspec</tt> element via the <tt class="docutils literal">tbl.colspec.att</tt> parameter entity.</li> <li>Allowed topic elements within sidebars</li> <li>Added an <tt class="docutils literal">align</tt> attribute to the <tt class="docutils literal">figure</tt> element.</li> </ul> </li> <li>tools/rst2newlatex.py: Added to project; front end for the new LaTeX writer.</li> </ul> </div> <div class="section" id="release-0-3-7-2004-12-24"> <h1><a class="toc-backref" href="#id23">Release 0.3.7 (2004-12-24)</a></h1> <ul class="simple"> <li>docutils/frontend.py:<ul> <li>Added options: --input-encoding-error-handler, --record-dependencies, --leave-footnote-reference-space, --strict-visitor.</li> <li>Added command-line and config file support for "overrides" setting parameter.</li> </ul> </li> <li>docutils/io.py:<ul> <li>Added support for input encoding error handler.</li> </ul> </li> <li>docutils/nodes.py:<ul> <li>Added dispatch_visit and dispatch_departure methods to NodeVisitor; useful as a hook for Visitors.</li> <li>Changed structure of <tt class="docutils literal">line_block</tt>; added <tt class="docutils literal">line</tt>.</li> <li>Added <tt class="docutils literal">compound</tt> node class.</li> <li>Added a mechanism for Visitors to transitionally ignore new node classes.</li> </ul> </li> <li>docutils/utils.py:<ul> <li>Moved <tt class="docutils literal">escape2null</tt> and <tt class="docutils literal">unescape</tt> functions from docutils/parsers/rst/states.py.</li> </ul> </li> <li>docutils/parsers/rst/roles.py:<ul> <li>Added "raw" role.</li> <li>Changed role function API: the "text" parameter now takes null-escaped interpreted text content.</li> </ul> </li> <li>docutils/parsers/rst/states.py:<ul> <li>Fixed bug where a "role" directive in a nested parse would crash the parser; the state machine's "language" attribute was not being copied over.</li> <li>Added support for line block syntax.</li> <li>Fixed directive parsing bug: argument-less directives didn't notice that arguments were present.</li> <li>Removed error checking for transitions.</li> <li>Added support for multiple classifiers in definition list items.</li> <li>Moved <tt class="docutils literal">escape2null</tt> and <tt class="docutils literal">unescape</tt> functions to docutils/utils.py.</li> <li>Changed role function API: the "text" parameter now takes null-escaped interpreted text content.</li> <li>Empty sections and documents are allowed now.</li> </ul> </li> <li>docutils/parsers/rst/directives/__init__.py:<ul> <li>Added <tt class="docutils literal">encoding</tt> directive option conversion function.</li> <li>Allow multiple class names in class_option conversion function.</li> </ul> </li> <li>docutils/parsers/rst/directives/body.py:<ul> <li>Converted the line-block directive to use the new structure.</li> <li>Extracted the old line-block functionality to the <tt class="docutils literal">block</tt> function (still used).</li> <li>Added <tt class="docutils literal">compound</tt> directive (thanks to Lea Wiemann).</li> </ul> </li> <li>docutils/parsers/rst/directives/misc.py:<ul> <li>Added "encoding" option to "include" and "raw" directives.</li> <li>Added "trim", "ltrim", and "rtrim" options to "unicode" directive.</li> <li>Allow multiple class names in the "class" directive.</li> </ul> </li> <li>docutils/parsers/rst/directives/parts.py:<ul> <li>Directive "sectnum" now accepts "prefix", "suffix", and "start" options. Thanks to Lele Gaifax.</li> </ul> </li> <li>docutils/parsers/rst/directives/tables.py:<ul> <li>Added "encoding" directive to "csv-table" directive.</li> <li>Added workaround for lack of Unicode support in csv.py, for non-ASCII CSV input.</li> </ul> </li> <li>docutils/transforms/misc.py:<ul> <li>Fixed bug when multiple "class" directives are applied to a single element.</li> <li>Enabled multiple format names for "raw" directive.</li> </ul> </li> <li>docutils/transforms/references.py:<ul> <li>Added support for trimming whitespace from beside substitution references.</li> </ul> </li> <li>docutils/transforms/universal.py:<ul> <li>FinalChecks now checks for illegal transitions and moves transitions between sections.</li> </ul> </li> <li>docutils/writers/html4css1.py:<ul> <li>HTMLTranslator.encode now converts U+00A0 to "&nbsp;".</li> <li>"stylesheet" and "stylesheet_path" settings are now mutually exclusive.</li> <li>Added support for the new line_block/line structure.</li> <li>--footnote-references now overrides --trim-footnote-reference-space, if applicable.</li> <li>Added support for <tt class="docutils literal">compound</tt> elements.</li> <li>Enabled multiple format names for "raw" directive.</li> <li><tt class="docutils literal"><p></tt> tags of a paragraph which is the only visible child of the document node are no longer stripped.</li> <li>Moved paragraph-compacting logic (for stripping <tt class="docutils literal"><p></tt> tags) to new method <tt class="docutils literal">should_be_compact_paragraph()</tt>.</li> <li>Added class="docutils" to <tt class="docutils literal">dl</tt>, <tt class="docutils literal">hr</tt>, <tt class="docutils literal">table</tt> and <tt class="docutils literal">tt</tt> elements.</li> <li>"raw" elements are now surrounded by <tt class="docutils literal">span</tt> or <tt class="docutils literal">div</tt> tags in the output if they have their <tt class="docutils literal">class</tt> attribute set.</li> <li>The whole document is now surrounded by a <tt class="docutils literal"><div <span class="pre">class="document"></span></tt> element.</li> <li>Body-level images are now wrapped by their own <tt class="docutils literal"><div></tt> elements, with image classes copied to the wrapper, and for images which have the <tt class="docutils literal">:align:</tt> option set, the surrounding <tt class="docutils literal"><div></tt> now receives a class attribute (like <tt class="docutils literal"><span class="pre">class="align-left"</span></tt>).</li> </ul> </li> <li>docutils/writers/latex2e.py:<ul> <li>no newline after depart_term.</li> <li>Added translations for some Unicode quotes.</li> <li>Added option "font-encoding", made package AE the default.</li> <li>"stylesheet" and "stylesheet_path" settings are now mutually exclusive.</li> <li>--footnote-references now overrides --trim-footnote-reference-space, if applicable.</li> <li>The footnote label style now matches the footnote reference style ("brackets" or "superscript").</li> <li>Added support for <tt class="docutils literal">compound</tt> elements.</li> <li>Enabled multiple format names for "raw" directive.</li> </ul> </li> <li>docs/ref/docutils.dtd:<ul> <li>Changed structure of the <tt class="docutils literal">line_block</tt> element; added <tt class="docutils literal">line</tt>.</li> <li>Added <tt class="docutils literal">compound</tt> element.</li> <li>Added "ltrim" and "rtrim" attributes to <tt class="docutils literal">substitution_definition</tt> element.</li> <li>Enabled multiple format names for <tt class="docutils literal">raw</tt> element.</li> <li>Enabled multiple classifiers in <tt class="docutils literal">definition_list_item</tt> elements.</li> </ul> </li> <li>docs/ref/rst/directives.txt<ul> <li>Marked "line-block" as deprecated.</li> <li>"Class" directive now allows multiple class names.</li> <li>Added "Rationale for Class Attribute Value Conversion".</li> <li>Added warning about "raw" overuse/abuse.</li> </ul> </li> <li>docs/ref/rst/restructuredtext.txt:<ul> <li>Added syntax for line blocks.</li> <li>Definition list items may have multiple classifiers.</li> </ul> </li> <li>docs/ref/rst/roles.txt:<ul> <li>Added "raw" role.</li> </ul> </li> <li>tools/stylesheets/default.css:<ul> <li>Added support for the new line_block structure.</li> <li>Added "docutils" class to <tt class="docutils literal">dl</tt>, <tt class="docutils literal">hr</tt>, <tt class="docutils literal">table</tt> and <tt class="docutils literal">tt</tt>.</li> </ul> </li> </ul> </div> <div class="section" id="release-0-3-5-2004-07-29"> <h1><a class="toc-backref" href="#id24">Release 0.3.5 (2004-07-29)</a></h1> <p>General:</p> <ul> <li><p class="first"><span class="target" id="documentation-cleanup-reorganization">Documentation cleanup/reorganization</span>.</p> <ul class="simple"> <li>Created new subdirectories of docs/:<ul> <li><tt class="docutils literal">docs/user/</tt>: introductory/tutorial material for end-users</li> <li><tt class="docutils literal">docs/dev/</tt>: for core-developers (development notes, plans, etc.)</li> <li><tt class="docutils literal">docs/api/</tt>: API reference material for client-developers</li> <li><tt class="docutils literal">docs/ref/</tt>: reference material for all groups</li> <li><tt class="docutils literal">docs/howto/</tt>: for component-developers and core-developers</li> <li><tt class="docutils literal">docs/peps/</tt>: Python Enhancement Proposals</li> </ul> </li> <li>Moved <tt class="docutils literal">docs/*</tt> to <tt class="docutils literal">docs/user/</tt>.</li> <li>Moved <tt class="docutils literal">pysource.dtd</tt>, <tt class="docutils literal">pysource.txt</tt>, <tt class="docutils literal">semantics.txt</tt> from <tt class="docutils literal">spec/</tt> to <tt class="docutils literal">docs/dev</tt>.</li> <li>Moved <tt class="docutils literal">doctree.txt</tt>, <tt class="docutils literal">docutils.dtd</tt>, <tt class="docutils literal">soextblx.dtd</tt>, <tt class="docutils literal">transforms.txt</tt> from <tt class="docutils literal">spec/</tt> to <tt class="docutils literal">docs/ref/</tt>.</li> <li>Moved <tt class="docutils literal">alternatives.txt</tt>, and <tt class="docutils literal">problems.txt</tt> from <tt class="docutils literal">spec/rst/</tt> to <tt class="docutils literal">docs/dev/rst/</tt>.</li> <li>Moved <tt class="docutils literal">reStructuredText.txt</tt>, <tt class="docutils literal">directives.txt</tt>, <tt class="docutils literal">interpreted.txt</tt>, and <tt class="docutils literal">introduction.txt</tt> from <tt class="docutils literal">spec/rst/</tt> to <tt class="docutils literal">docs/ref/rst/</tt>. Renamed <tt class="docutils literal">interpreted.txt</tt> to <tt class="docutils literal">roles.txt</tt>, <tt class="docutils literal">reStructuredText.txt</tt> to <tt class="docutils literal">restructuredtext.txt</tt>.</li> <li>Moved <tt class="docutils literal">spec/howto/</tt> to <tt class="docutils literal">docs/howto</tt>.</li> </ul> <p>In order to keep the CVS history of moved files, we supplied SourceForge with a <a class="reference external" href="http://cvs.sourceforge.net/viewcvs.py/*checkout*/docutils/sandbox/davidg/infrastructure/cvs-reorg.sh?content-type=text/plain&rev=1.5">script for modifying the Docutils CVS repository</a>.</p> <p>After running the cleanup script:</p> <ul class="simple"> <li>Added <tt class="docutils literal">docs/index.txt</tt>.</li> <li>Added a <tt class="docutils literal">.htaccess</tt> file to the <tt class="docutils literal">web</tt> module, containing redirects for all old paths to new paths. They'll preserve fragments (the "#name" part of a URL), and won't clutter up the file system, and will correct the URL in the user's browser.</li> <li>Added <tt class="docutils literal">BUGS.txt</tt>, <tt class="docutils literal">docs/dev/policies.txt</tt>, <tt class="docutils literal">docs/dev/website.txt</tt>, <tt class="docutils literal">docs/dev/release.txt</tt> from all but the "To Do" list itself in <tt class="docutils literal">docs/dev/todo.txt</tt>.</li> <li>Moved "Future Plans" from <tt class="docutils literal">HISTORY.txt</tt> to new "Priorities" section of <tt class="docutils literal">docs/dev/todo.txt</tt>.</li> <li>Added <tt class="docutils literal">THANKS.txt</tt> from "Acknowledgements" in <tt class="docutils literal">HISTORY.txt</tt>.</li> <li>Added "How To Report Bugs" to <tt class="docutils literal">BUGS.txt</tt>.</li> <li>Went through all the sources and docs (including under web/) and updated links. Mostly done by Lea Wiemann; thanks Lea! (Still need to update links in the sandboxes.)</li> </ul> </li> </ul> <p>Specific:</p> <ul class="simple"> <li>BUGS.txt: Added to project.</li> <li>THANKS.txt: Added to project.</li> <li>docutils/__init__.py:<ul> <li>0.3.4: Post-release.</li> </ul> </li> <li>docutils/core.py:<ul> <li>Added special error handling & advice for UnicodeEncodeError.</li> <li>Refactored Publisher.publish (simplified exception handling & extracted debug dumps).</li> <li>Renamed "enable_exit" parameter of convenience functions to "enable_exit_status".</li> <li>Enabled traceback (exception propagation) by default in programmatic convenience functions.</li> <li>Now publish_file and publish_cmdline convenience functions return the encoded string results in addition to their regular I/O.</li> <li>Extracted common code from publish_file, publish_string, and publish_parts, into new publish_programmatically. Extracted settings code to <tt class="docutils literal">Publisher.process_programmatic_settings</tt>.</li> <li>In Publisher.publish, disabled <tt class="docutils literal">settings_overrides</tt> when <tt class="docutils literal">settings</tt> is supplied; redundant.</li> </ul> </li> <li>docutils/frontend.py:<ul> <li>Added help text for "--output-encoding-error-handler" and "--error-encoding-error-handler".</li> <li>Renamed "--exit" to "--exit-status".</li> <li>Simplified default-setting code.</li> </ul> </li> <li>docutils/parsers/rst/__init__.py:<ul> <li>Added "--pep-base-url" and "--rfc-base-url" options.</li> </ul> </li> <li>docutils/parsers/rst/states.py:<ul> <li>Made URI recognition more aggressive and intelligent.</li> </ul> </li> <li>docutils/parsers/rst/directives/__init__.py:<ul> <li>Added several directive option conversion functions.</li> </ul> </li> <li>docutils/parsers/rst/directives/body.py:<ul> <li>Moved "table" directive to tables.py.</li> </ul> </li> <li>docutils/parsers/rst/directives/tables.py: Table-related directives, added to project.</li> <li>docutils/writers/latex2e.py:<ul> <li>Added "--table-style=(standard|booktabs|nolines)"</li> <li>figures get "here" option (LaTeX per default puts them at bottom), and figure content is centered.</li> <li>Rowspan support for tables.</li> <li>Fix: admonition titles before first section.</li> <li>Replace <tt class="docutils literal"><span class="pre">--</span></tt> in literal by <tt class="docutils literal"><span class="pre">-{}-</span></tt> because fontencoding T1 has endash.</li> <li>Replave <tt class="docutils literal">_</tt> in literal by an underlined blank, because it has the correct width.</li> <li>Fix: encode pdfbookmark titles, <tt class="docutils literal">#</tt> broke pdflatex.</li> <li>A few unicode replacements, if output_encoding != utf</li> <li>Add "--graphicx-option".</li> <li>Indent literal-blocks.</li> <li>Fix: omit <tt class="docutils literal">\maketitle</tt> when there is no document title.</li> </ul> </li> <li>docs/index.txt: "Docutils Project Documentation Overview", added to project.</li> <li>docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End Tool", added to project.</li> <li>docs/api/publisher.txt: "The Docutils Publisher", added to project.</li> <li>docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.</li> <li>docs/dev/policies.txt: Added to project (extracted from <tt class="docutils literal">docs/dev/todo.txt</tt>, formerly <tt class="docutils literal">spec/notes.txt</tt>).</li> <li>docs/dev/release.txt: Added to project (extracted from <tt class="docutils literal">docs/dev/todo.txt</tt>, formerly <tt class="docutils literal">spec/notes.txt</tt>).</li> <li>docs/dev/testing.txt: Added to project.</li> <li>docs/dev/website.txt: Added to project (extracted from <tt class="docutils literal">docs/dev/todo.txt</tt>, formerly <tt class="docutils literal">spec/notes.txt</tt>).</li> <li>docs/ref/rst/directives.txt:<ul> <li>Added directives: "table", "csv-table".</li> </ul> </li> <li>docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet" added to project. 1 page for syntax, and a 1 page reference for directives and roles. Source text to be used as-is; not meant to be converted to HTML.</li> <li>docs/user/rst/demo.txt: Added to project; moved from tools/test.txt with a change of title.</li> <li>test/functional/, contents, and test/test_functional.py: Added to project.</li> <li>tools/buildhtml.py: Fixed bug with config file handling.</li> <li>tools/html.py: Removed from project (duplicate of rst2html.py).</li> <li>tools/pep2html.py: Removed from project (duplicate of Python's nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for Docutils-related PEPs in docs/peps/).</li> <li>tools/rst2pseudoxml.py: Renamed from publish.py.</li> <li>tools/rst2xml.py: Renamed from docutils-xml.py.</li> <li>tools/test.txt: Removed from project; moved to docs/user/rst/demo.txt.</li> <li>setup.py: Now also installs <tt class="docutils literal">rst2latex.py</tt>.</li> </ul> </div> <div class="section" id="release-0-3-3-2004-05-09"> <h1><a class="toc-backref" href="#id25">Release 0.3.3 (2004-05-09)</a></h1> <ul class="simple"> <li>docutils/__init__.py:<ul> <li>0.3.1: Reorganized config file format (multiple sections); see docs/config.txt.</li> <li>Added unknown_reference_resolvers attribute to TransformSpec.</li> <li>0.3.2: Interpreted text reorganization.</li> <li>0.3.3: Released.</li> </ul> </li> <li>docutils/core.py:<ul> <li>Catch system messages to stop tracebacks from parsing errors.</li> <li>Catch exceptions during processing report & exit without tracebacks, except when "--traceback" used.</li> <li>Reordered components for OptionParser; application comes last.</li> <li>Added "config_section" parameter to several methods and functions, allowing front ends to easily specify their config file sections.</li> <li>Added publish_parts convenience function to allow access to individual parts of a document.</li> </ul> </li> <li>docutils/examples.py: Added to project; practical examples of Docutils client code, to be used as-is or as models for variations.</li> <li>docutils/frontend.py:<ul> <li>Added "--traceback" & "--no-traceback" options ("traceback" setting).</li> <li>Implemented support for config file reorganization: <tt class="docutils literal">standard_config_files</tt> moved from <tt class="docutils literal">ConfigParser</tt> to <tt class="docutils literal">OptionParser</tt>; added <tt class="docutils literal">OptionParser.get_config_file_settings()</tt> and <tt class="docutils literal">.get_standard_config_settings()</tt>; support for old "[options]" section (with deprecation warning) and mapping from old to new settings.</li> <li>Reimplemented setting validation.</li> <li>Enabled flexible boolean values: yes/no, true/false, on/off.</li> <li>Added <tt class="docutils literal">Values</tt>, a subclass of <tt class="docutils literal">optparse.Values</tt>, with support for list setting attributes.</li> <li>Added support for new <tt class="docutils literal">DOCUTILSCONFIG</tt> environment variable; thanks to Beni Cherniavsky.</li> <li>Added "--no-section-numbering" option.</li> </ul> </li> <li>docutils/io.py:<ul> <li>Catch IOErrors when opening source & destination files, report & exit without tracebacks. Added <tt class="docutils literal">handle_io_errors</tt> parameter to <tt class="docutils literal">FileInput</tt> & <tt class="docutils literal">FileOutput</tt> to enable caller error handling.</li> </ul> </li> <li>docutils/nodes.py:<ul> <li>Changed <tt class="docutils literal">SparseNodeVisitor</tt> and <tt class="docutils literal">GenericNodeVisitor</tt> dynamic method definitions (via <tt class="docutils literal">exec</tt>) to dynamic assignments (via <tt class="docutils literal">setattr</tt>); thanks to Roman Suzi.</li> <li>Encapsulated visitor dynamic assignments in a function; thanks to Ian Bicking.</li> <li>Added indirect_reference_name attribute to the Targetable class. This attribute holds the whitespace_normalized_name (contains mixed case) of a target.</li> </ul> </li> <li>docutils/statemachine.py:<ul> <li>Renamed <tt class="docutils literal">StringList.strip_indent</tt> to <tt class="docutils literal">.trim_left</tt>.</li> <li>Added <tt class="docutils literal">StringList.get_2D_block</tt>.</li> </ul> </li> <li>docutils/utils.py:<ul> <li>Added "level" attribute to SystemMessage exceptions.</li> </ul> </li> <li>docutils/languages/af.py: Added to project; Afrikaans mappings by Jannie Hofmeyr.</li> <li>docutils/languages/cs.py: Added to project; Czech mappings by Marek Blaha.</li> <li>docutils/languages/eo.py: Added to project; Esperanto mappings by Marcelo Huerta San Martin.</li> <li>docutils/languages/pt_br.py: Added to project; Brazilian Portuguese mappings by Lalo Martins.</li> <li>docutils/languages/ru.py: Added to project; Russian mappings by Roman Suzi.</li> <li>docutils/parsers/rst/roles.py: Added to project. Contains interpreted text role functions, a registry for interpreted text roles, and an API for adding to and retrieving from the registry. Contributed by Edward Loper.</li> <li>docutils/parsers/rst/states.py:<ul> <li>Updated <tt class="docutils literal">RSTState.nested_parse</tt> for "include" in table cells.</li> <li>Allowed true em-dash character and "---" as block quote attribution marker.</li> <li>Added support for <angle-bracketed> complex option arguments (option lists).</li> <li>Fixed handling of backslashes in substitution definitions.</li> <li>Fixed off-by-1 error with extra whitespace after substitution definition directive.</li> <li>Added inline markup parsing to field lists' field names.</li> <li>Added support for quoted (and unindented) literal blocks. Driven in part by a bribe from Frank Siebenlist (thanks!).</li> <li>Parser now handles escapes in URIs correctly.</li> <li>Made embedded-URIs' reference text omittable. Idea from Beni Cherniavsky.</li> <li>Refactored explicit target processing code.</li> <li>Added name attribute to references containing the reference name only through whitespace_normalize_name (no case changes).</li> <li>parse_target no longer returns the refname after going through normalize_name. This is now handled in make_target.</li> <li>Fixed bug relating to role-less interpreted text in non-English contexts.</li> <li>Reorganized interpreted text processing; moved code into the new roles.py module. Contributed by Edward Loper.</li> <li>Refactored <tt class="docutils literal">Body.parse_directive</tt> into <tt class="docutils literal">run_directive</tt> and <tt class="docutils literal">parse_directive_block</tt>.</li> </ul> </li> <li>docutils/parsers/rst/tableparser.py:<ul> <li>Reworked for <tt class="docutils literal">StringList</tt>, to support "include" directives in table cells.</li> </ul> </li> <li>docutils/parsers/rst/directives/__init__.py:<ul> <li>Renamed <tt class="docutils literal">unchanged()</tt> directive option conversion function to <tt class="docutils literal">unchanged_required</tt>, and added a new <tt class="docutils literal">unchanged</tt>.</li> <li>Catch unicode value too high error; fixes bug 781766.</li> <li>Beefed up directive error reporting.</li> </ul> </li> <li>docutils/parsers/rst/directives/body.py:<ul> <li>Added basic "table" directive.</li> </ul> </li> <li>docutils/parsers/rst/directives/images.py:<ul> <li>Added "target" option to "image" directive.</li> <li>Added name attribute to references containing the reference name only through whitespace_normalize_name (no case changes).</li> </ul> </li> <li>docutils/parsers/rst/directives/misc.py:<ul> <li>Isolated the import of the <tt class="docutils literal">urllib2</tt> module; was causing problems on SourceForge (<tt class="docutils literal">libssl.so.2</tt> unavailable?).</li> <li>Added the "role" directive for declaring custom interpreted text roles.</li> </ul> </li> <li>docutils/parsers/rst/directives/parts.py:<ul> <li>The "contents" directive does more work up-front, creating the "topic" and "title", and leaving the "pending" node for the transform. Allows earlier reference resolution; fixes subtle bug.</li> </ul> </li> <li>docutils/parsers/rst/languages/af.py: Added to project; Afrikaans mappings by Jannie Hofmeyr.</li> <li>docutils/parsers/rst/languages/cs.py: Added to project; Czech mappings by Marek Blaha.</li> <li>docutils/parsers/rst/languages/eo.py: Added to project; Esperanto mappings by Marcelo Huerta San Martin.</li> <li>docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian Portuguese mappings by Lalo Martins.</li> <li>docutils/parsers/rst/languages/ru.py: Added to project; Russian mappings by Roman Suzi.</li> <li>docutils/transforms/parts.py:<ul> <li>The "contents" directive does more work up-front, creating the "topic" and "title", and leaving the "pending" node for the transform. Allows earlier reference resolution; fixes subtle bug.</li> <li>Added support for disabling of section numbering.</li> </ul> </li> <li>docutils/transforms/references.py:<ul> <li>Verifying that external targets are truly targets and not indirect references. This is because we are now adding a "name" attribute to references in addition to targets. Note sure if this is correct!</li> <li>Added code to hook into the unknown_reference_resolvers list for a transformer in resolve_indirect_target. This allows the unknown_reference_resolvers to keep around indirect targets which docutils doesn't know about.</li> <li>Added specific error message for duplicate targets.</li> </ul> </li> <li>docutils/transforms/universal.py:<ul> <li>Added FilterMessages transform (removes system messages below the verbosity threshold).</li> <li>Added hook (via docutils.TransformSpec.unknown_reference_resolvers) to FinalCheckVisitor for application-specific handling of unresolvable references.</li> <li>Added specific error message for duplicate targets.</li> </ul> </li> <li>docutils/writers/__init__.py:<ul> <li>Added assemble_parts method to the Writer class to allow for access to a documents individual parts.</li> <li>Documented & set default for <tt class="docutils literal">Writer.output</tt> attribute.</li> </ul> </li> <li>docutils/writers/html4css1.py:<ul> <li>Fixed unicode handling of attribute values (bug 760673).</li> <li>Prevent duplication of "class" attribute values (bug report from Kirill Lapshin).</li> <li>Improved table grid/border handling (prompted by report from Bob Marshall).</li> <li>Added support for table titles.</li> <li>Added "<title />" for untitled docs, for XHTML conformance; thanks to Darek Suchojad.</li> <li>Added functionality to keep track of individual parts of a document and store them in a dictionary as the "parts" attribute of the writer. Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.</li> <li>Added proper support for the "scale" attribute of the "image" element. Contributed by Brent Cook.</li> <li>Added <tt class="docutils literal"><span class="pre">--initial-header-level</span></tt> option.</li> <li>Fixed bug: the body_pre_docinfo segment depended on there being a docinfo; if no docinfo, the document title was incorporated into the body segment. Adversely affected the publish_parts interface.</li> </ul> </li> <li>docutils/writers/latex2e.py:<ul> <li>Changed default stylesheet to "no stylesheet" to avoid latex complaining about a missing file.</li> <li>Added options and support: <tt class="docutils literal"><span class="pre">--compound-enumerators</span></tt>, <tt class="docutils literal"><span class="pre">--section-prefix-for-enumerators</span></tt>, and <tt class="docutils literal"><span class="pre">--section-enumerator-separator</span></tt>. By John F Meinel Jr (SF patch 934322).</li> <li>Added option <tt class="docutils literal"><span class="pre">--use-verbatim-when-possible</span></tt>, to avoid problematic characters (eg, '~' in italian) in literal blocks.</li> <li>It's now possible to use four section levels in the <cite>book</cite> and <cite>report</cite> LaTeX classes. The default <cite>article</cite> class still has three levels limit.</li> </ul> </li> <li>docs/config.txt: "Docutils Configuration Files", added to project. Moved config file entry descriptions from tools.txt.</li> <li>docs/tools.txt:<ul> <li>Moved config file entry descriptions to config.txt.</li> </ul> </li> <li>spec/notes.txt: Continual updates. Added "Setting Up For Docutils Development".</li> <li>spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted Text Roles", added to project.</li> <li>spec/rst/reStructuredText.txt:<ul> <li>Added description of support for <angle-bracketed> complex option arguments to option lists.</li> <li>Added subsections for indented and quoted literal blocks.</li> </ul> </li> <li>test: Continually adding & updating tests.<ul> <li>Added test/test_settings.py & test/data/config_*.txt support files.</li> <li>Added test/test_writers/test_htmlfragment.py.</li> </ul> </li> <li>test/DocutilsTestSupport.py:<ul> <li>Refactored LaTeX publisher test suite/case class names to make testing other writers easier.</li> <li>Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes to test the processing of HTML fragments which use the new publish_parts convenience function.</li> </ul> </li> <li>tools/buildhtml.py:<ul> <li>Added support for the "--prune" option.</li> <li>Removed dependency on pep2html.py; plaintext PEPs no longer supported.</li> </ul> </li> <li>tools/docutils.conf:<ul> <li>Updated for configuration file reorganization.</li> </ul> </li> <li>tools/rst2html.py:<ul> <li>copied from tools/html.py</li> </ul> </li> <li>setup.py:<ul> <li>added a 'scripts' section to configuration</li> <li>added 'tools/rst2html.py' to the scripts section</li> </ul> </li> </ul> </div> <div class="section" id="release-0-3-2003-06-24"> <h1><a class="toc-backref" href="#id26">Release 0.3 (2003-06-24)</a></h1> <p>General:</p> <ul class="simple"> <li>Renamed "attribute" to "option" for directives/extensions.</li> <li>Renamed transform method "transform" to "apply".</li> <li>Renamed "options" to "settings" for runtime settings (as set by command-line options). Sometimes "option" (singular) became "settings" (plural). Some variations below:<ul> <li>document.options -> document.settings (stored in other objects as well)</li> <li>option_spec -> settings_spec (not directives though)</li> <li>OptionSpec -> SettingsSpec</li> <li>cmdline_options -> settings_spec</li> <li>relative_path_options -> relative_path_settings</li> <li>option_default_overrides -> settings_default_overrides</li> <li>Publisher.set_options -> Publisher.get_settings</li> </ul> </li> </ul> <p>Specific:</p> <ul class="simple"> <li>COPYING.txt: Added "Public Domain Dedication".</li> <li>FAQ.txt: Frequently asked questions, added to project.</li> <li>setup.py:<ul> <li>Updated with PyPI Trove classifiers.</li> <li>Conditional installation of third-party modules.</li> </ul> </li> <li>docutils/__init__.py:<ul> <li>Bumped version to 0.2.1 to reflect changes to I/O classes.</li> <li>Bumped version to 0.2.2 to reflect changes to stylesheet options.</li> <li>Factored <tt class="docutils literal">SettingsSpec</tt> out of <tt class="docutils literal">Component</tt>; separately useful.</li> <li>Bumped version to 0.2.3 because of the new "--embed-stylesheet" option and its effect on the PEP template & writer.</li> <li>Bumped version to 0.2.4 due to changes to the PEP template & stylesheet.</li> <li>Bumped version to 0.2.5 to reflect changes to Reporter output.</li> <li>Added <tt class="docutils literal">TransformSpec</tt> class for new transform system.</li> <li>Bumped version to 0.2.6 for API changes (renaming).</li> <li>Bumped version to 0.2.7 for new <tt class="docutils literal">docutils.core.publish_*</tt> convenience functions.</li> <li>Added <tt class="docutils literal">Component.component_type</tt> attribute.</li> <li>Bumped version to 0.2.8 because of the internal parser switch from plain lists to the docutils.statemachine.StringList objects.</li> <li>Bumped version to 0.2.9 because of the frontend.py API changes.</li> <li>Bumped version to 0.2.10 due to changes to the project layout (third-party modules removed from the "docutils" package), and signature changes in <tt class="docutils literal">io.Input</tt>/<tt class="docutils literal">io.Output</tt>.</li> <li>Changed version to 0.3.0 for release.</li> </ul> </li> <li>docutils/core.py:<ul> <li>Made <tt class="docutils literal">publish()</tt> a bit more convenient.</li> <li>Generalized <tt class="docutils literal">Publisher.set_io</tt>.</li> <li>Renamed <tt class="docutils literal">publish()</tt> to <tt class="docutils literal">publish_cmdline()</tt>; rearranged its parameters; improved its docstring.</li> <li>Added <tt class="docutils literal">publish_file()</tt> and <tt class="docutils literal">publish_string()</tt>.</li> <li>Factored <tt class="docutils literal">Publisher.set_source()</tt> and <tt class="docutils literal">.set_destination()</tt> out of <tt class="docutils literal">.set_io</tt>.</li> <li>Added support for "--dump-pseudo-xml", "--dump-settings", and "--dump-transforms" hidden options.</li> <li>Added <tt class="docutils literal">Publisher.apply_transforms()</tt> method.</li> <li>Added <tt class="docutils literal">Publisher.set_components()</tt> method; support for <tt class="docutils literal"><span class="pre">publish_*()</span></tt> conveninece functions.</li> <li>Moved config file processing to docutils/frontend.py.</li> <li>Added support for exit status ("exit_level" setting & <tt class="docutils literal">enable_exit</tt> parameter for Publisher.publish() and convenience functions).</li> </ul> </li> <li>docutils/frontend.py:<ul> <li>Check for & exit on identical source & destination paths.</li> <li>Fixed bug with absolute paths & "--config".</li> <li>Set non-command-line defaults in <tt class="docutils literal">OptionParser.__init__()</tt>: <tt class="docutils literal">_source</tt> & <tt class="docutils literal">_destination</tt>.</li> <li>Distributed <tt class="docutils literal">relative_path_settings</tt> to components; updated <tt class="docutils literal">OptionParser.populate_from_components()</tt> to combine it all.</li> <li>Require list of keys in <tt class="docutils literal">make_paths_absolute</tt> (was implicit in global <tt class="docutils literal">relative_path_settings</tt>).</li> <li>Added "--expose-internal-attribute", "--dump-pseudo-xml", "--dump-settings", and "--dump-transforms" hidden options.</li> <li>Removed nasty internals-fiddling <tt class="docutils literal">ConfigParser.get_section</tt> code, replaced with correct code.</li> <li>Added validation functionality for config files.</li> <li>Added "--error-encoding" option/setting, "_disable_config" internal setting.</li> <li>Added encoding validation; updated "--input-encoding" and "--output-encoding"; added "--error-encoding-error-handler" and "--output-encoding-error-handler".</li> <li>Moved config file processing from docutils/core.py.</li> <li>Updated <tt class="docutils literal">OptionParser.populate_from_components</tt> to handle new <tt class="docutils literal">SettingsSpec.settings_defaults</tt> dict.</li> <li>Added support for "-" => stdin/stdout.</li> <li>Added "exit_level" setting ("--exit" option).</li> </ul> </li> <li>docutils/io.py:<ul> <li>Split <tt class="docutils literal">IO</tt> classes into subclasses of <tt class="docutils literal">Input</tt> and <tt class="docutils literal">Output</tt>.</li> <li>Added automatic closing to <tt class="docutils literal">FileInput</tt> and <tt class="docutils literal">FileOutput</tt>.</li> <li>Delayed opening of <tt class="docutils literal">FileOutput</tt> file until <tt class="docutils literal">write()</tt> called.</li> <li><tt class="docutils literal">FileOutput.write()</tt> now returns the encoded output string.</li> <li>Try to get path/stream name automatically in <tt class="docutils literal">FileInput</tt> & <tt class="docutils literal">FileOutput</tt>.</li> <li>Added defaults for source & destination paths.</li> <li>Allow for Unicode I/O with an explicit "unicode" encoding.</li> <li>Added <tt class="docutils literal">Output.encode()</tt>.</li> <li>Removed dependency on runtime settings; pass encoding directly.</li> <li>Recognize Unicode strings in <tt class="docutils literal">Input.decode()</tt>.</li> <li>Added support for output encoding error handlers.</li> </ul> </li> <li>docutils/nodes.py:<ul> <li>Added "Invisible" element category class.</li> <li>Changed <tt class="docutils literal">Node.walk()</tt> & <tt class="docutils literal">.walkabout()</tt> to permit more tree modification during a traversal.</li> <li>Added element classes: <tt class="docutils literal">line_block</tt>, <tt class="docutils literal">generated</tt>, <tt class="docutils literal">address</tt>, <tt class="docutils literal">sidebar</tt>, <tt class="docutils literal">rubric</tt>, <tt class="docutils literal">attribution</tt>, <tt class="docutils literal">admonition</tt>, <tt class="docutils literal">superscript</tt>, <tt class="docutils literal">subscript</tt>, <tt class="docutils literal">inline</tt></li> <li>Added support for lists of nodes to <tt class="docutils literal">Element.insert()</tt>.</li> <li>Fixed parent linking in <tt class="docutils literal">Element.replace()</tt>.</li> <li>Added new abstract superclass <tt class="docutils literal">FixedTextElement</tt>; adds "xml:space" attribute.</li> <li>Added support for "line" attribute of <tt class="docutils literal">system_message</tt> nodes.</li> <li>Added support for the observer pattern from <tt class="docutils literal">utils.Reporter</tt>. Added <tt class="docutils literal">parse_messages</tt> and <tt class="docutils literal">transform_messages</tt> attributes to <tt class="docutils literal">document</tt>, removed <tt class="docutils literal">messages</tt>. Added <tt class="docutils literal">note_parse_message</tt> and <tt class="docutils literal">note_transform_message</tt> methods.</li> <li>Added support for improved diagnostics:<ul> <li>Added "document", "source", and "line" internal attributes to <tt class="docutils literal">Node</tt>, set by <tt class="docutils literal">Node.setup_child()</tt>.</li> <li>Converted variations on <tt class="docutils literal">node.parent = self</tt> to <tt class="docutils literal">self.setup_child(node)</tt>.</li> <li>Added <tt class="docutils literal">document.current_source</tt> & <tt class="docutils literal">.current_line</tt> attributes, and <tt class="docutils literal">.note_source</tt> observer method.</li> <li>Changed "system_message" output to GNU-Tools format.</li> </ul> </li> <li>Added a "rawsource" attribute to the <tt class="docutils literal">Text</tt> class, for text before backslash-escape resolution.</li> <li>Support for new transform system.</li> <li>Reworked <tt class="docutils literal">pending</tt> element.</li> <li>Fixed XML DOM bug (SF #660611).</li> <li>Removed the <tt class="docutils literal">interpeted</tt> element class and added <tt class="docutils literal">title_reference</tt>, <tt class="docutils literal">abbreviation</tt>, <tt class="docutils literal">acronym</tt>.</li> <li>Made substitutions case-sensitive-but-forgiving; moved some code from the parser.</li> <li>Fixed Unicode bug on element attributes (report: William Dode).</li> </ul> </li> <li>docutils/optik.py: Removed from project; replaced with extras/optparse.py and extras/textwrap.py. These will be installed only if they're not already present in the Python installation.</li> <li>docutils/roman.py: Moved to extras/roman.py; this will be installed only if it's not already present in the Python installation.</li> <li>docutils/statemachine.py:<ul> <li>Factored out <tt class="docutils literal">State.add_initial_transitions()</tt> so it can be extended.</li> <li>Converted whitespace-specific "blank" and "indent" transitions from special-case code to ordinary transitions: removed <tt class="docutils literal">StateMachineWS.check_line()</tt> & <tt class="docutils literal">.check_whitespace()</tt>, added <tt class="docutils literal">StateWS.add_initial_transitions()</tt> method, <tt class="docutils literal">ws_patterns</tt> & <tt class="docutils literal">ws_initial_transitions</tt> attributes.</li> <li>Removed <tt class="docutils literal">State.match_transition()</tt> after merging it into <tt class="docutils literal">.check_line()</tt>.</li> <li>Added <tt class="docutils literal">StateCorrection</tt> exception.</li> <li>Added support for <tt class="docutils literal">StateCorrection</tt> in <tt class="docutils literal">StateMachine.run()</tt> (moved <tt class="docutils literal">TransitionCorrection</tt> support there too.)</li> <li>Changed <tt class="docutils literal">StateMachine.next_line()</tt> and <tt class="docutils literal">.goto_line()</tt> to raise <tt class="docutils literal">EOFError</tt> instead of <tt class="docutils literal">IndexError</tt>.</li> <li>Added <tt class="docutils literal">State.no_match</tt> method.</li> <li>Added support for the Observer pattern, triggered by input line changes.</li> <li>Added <tt class="docutils literal">strip_top</tt> parameter to <tt class="docutils literal">StateMachineWS.get_first_known_indented</tt>.</li> <li>Made <tt class="docutils literal">context</tt> a parameter to <tt class="docutils literal">StateMachine.run()</tt>.</li> <li>Added <tt class="docutils literal">ViewList</tt> & <tt class="docutils literal">StringList</tt> classes; <tt class="docutils literal">extract_indented()</tt> becomes <tt class="docutils literal">StringList.get_indented()</tt>.</li> <li>Added <tt class="docutils literal">StateMachine.insert_input()</tt>.</li> <li>Fixed ViewList slice handling for Python 2.3. Patch from (and thanks to) Fred Drake.</li> </ul> </li> <li>docutils/utils.py:<ul> <li>Added a <tt class="docutils literal">source</tt> attribute to Reporter instances and <tt class="docutils literal">system_message</tt> elements.</li> <li>Added an observer pattern to <tt class="docutils literal">utils.Reporter</tt> to keep track of system messages.</li> <li>Fixed bugs in <tt class="docutils literal">relative_path()</tt>.</li> <li>Added support for improved diagnostics.</li> <li>Moved <tt class="docutils literal">normalize_name()</tt> to nodes.py (<tt class="docutils literal">fully_normalize_name</tt>).</li> <li>Added support for encoding Reporter stderr output, and encoding error handlers.</li> <li>Reporter keeps track of the highest level system message yet generated.</li> </ul> </li> <li>docutils/languages: Fixed bibliographic field language lookups.</li> <li>docutils/languages/es.py: Added to project; Spanish mappings by Marcelo Huerta San Martin.</li> <li>docutils/languages/fr.py: Added to project; French mappings by Stefane Fermigier.</li> <li>docutils/languages/it.py: Added to project; Italian mappings by Nicola Larosa.</li> <li>docutils/languages/sk.py: Added to project; Slovak mappings by Miroslav Vasko.</li> <li>docutils/parser/__init__.py:<ul> <li>Added <tt class="docutils literal">Parser.finish_parse()</tt> method.</li> </ul> </li> <li>docutils/parser/rst/__init__.py:<ul> <li>Added options: "--pep-references", "--rfc-references", "--tab-width", "--trim-footnote-reference-space".</li> </ul> </li> <li>docutils/parsers/rst/states.py:<ul> <li>Changed "title under/overline too short" system messages from INFO to WARNING, and fixed its insertion location.</li> <li>Fixed enumerated list item parsing to allow paragraphs & section titles to begin with enumerators.</li> <li>Converted system messages to use the new "line" attribute.</li> <li>Fixed a substitution reference edge case.</li> <li>Added support for "--pep-references" and "--rfc-references" options; reworked <tt class="docutils literal">Inliner</tt> code to make customization easier.</li> <li>Removed field argument parsing.</li> <li>Added support for short section title over/underlines.</li> <li>Fixed "simple reference name" regexp to ignore text like "object.__method__"; not an anonymous reference.</li> <li>Added support for improved diagnostics.</li> <li>Reworked directive API, based on Dethe Elza's contribution. Added <tt class="docutils literal">Body.parse_directive()</tt>, <tt class="docutils literal">.parse_directive_options()</tt>, <tt class="docutils literal">.parse_directive_arguments()</tt> methods.</li> <li>Added <tt class="docutils literal">ExtensionOptions</tt> class, to parse directive options without parsing field bodies. Factored <tt class="docutils literal">Body.parse_field_body()</tt> out of <tt class="docutils literal">Body.field()</tt>, overridden in <tt class="docutils literal">ExtensionOptions</tt>.</li> <li>Improved definition list term/classifier parsing.</li> <li>Added warnings for unknown directives.</li> <li>Renamed <tt class="docutils literal">Stuff</tt> to <tt class="docutils literal">Struct</tt>.</li> <li>Now flagged as errors: transitions at the beginning or end of sections, empty sections (except title), and empty documents.</li> <li>Updated for <tt class="docutils literal">statemachine.StringList</tt>.</li> <li>Enabled recognition of schemeless email addresses in targets.</li> <li>Added support for embedded URIs in hyperlink references.</li> <li>Added backslash-escapes to inline markup end-string suffix.</li> <li>Added support for correct interpreted text processing.</li> <li>Fixed nested title parsing (topic, sidebar directives).</li> <li>Added special processing of backslash-escaped whitespace (idea from David Abrahams).</li> <li>Made substitutions case-sensitive-but-forgiving; moved some code to <tt class="docutils literal">docutils.nodes</tt>.</li> <li>Added support for block quote attributions.</li> <li>Added a kludge to work-around a conflict between the bubble-up parser strategy and short titles (<= 3 char-long over- & underlines). Fixes SF bug #738803 "infinite loop with multiple titles" submitted by Jason Diamond.</li> <li>Added explicit interpreted text roles for standard inline markup: "emphasis", "strong", "literal".</li> <li>Implemented "superscript" and "subscript" interpreted text roles.</li> <li>Added initial support for "abbreviation" and "acronym" roles; incomplete.</li> <li>Added support for "--trim-footnote-reference-space" option.</li> <li>Optional space before colons in directives & hyperlink targets.</li> </ul> </li> <li>docutils/parsers/rst/tableparser.py:<ul> <li>Fixed a bug that was producing unwanted empty rows in "simple" tables.</li> <li>Detect bad column spans in "simple" tables.</li> </ul> </li> <li>docutils/parsers/rst/directives: Updated all directive functions to new API.</li> <li>docutils/parsers/rst/directives/__init__.py:<ul> <li>Added <tt class="docutils literal">flag()</tt>, <tt class="docutils literal">unchanged()</tt>, <tt class="docutils literal">path()</tt>, <tt class="docutils literal">nonnegative_int()</tt>, <tt class="docutils literal">choice()</tt>, and <tt class="docutils literal">class_option()</tt> directive option helper functions.</li> <li>Added warnings for unknown directives.</li> <li>Return <tt class="docutils literal">None</tt> for missing directives.</li> <li>Added <tt class="docutils literal">register_directive()</tt>, thanks to William Dode and Paul Moore.</li> </ul> </li> <li>docutils/parsers/rst/directives/admonitions.py:<ul> <li>Added "admonition" directive.</li> </ul> </li> <li>docutils/parsers/rst/directives/body.py: Added to project. Contains the "topic", "sidebar" (from Patrick O'Brien), "line-block", "parsed-literal", "rubric", "epigraph", "highlights" and "pull-quote" directives.</li> <li>docutils/parsers/rst/directives/images.py:<ul> <li>Added an "align" attribute to the "image" & "figure" directives (by Adam Chodorowski).</li> <li>Added "class" option to "image", and "figclass" to "figure".</li> </ul> </li> <li>docutils/parsers/rst/directives/misc.py:<ul> <li>Added "include", "raw", and "replace" directives, courtesy of Dethe Elza.</li> <li>Added "unicode" and "class" directives.</li> </ul> </li> <li>docutils/parsers/rst/directives/parts.py:<ul> <li>Added the "sectnum" directive; by Dmitry Jemerov.</li> <li>Added "class" option to "contents" directive.</li> </ul> </li> <li>docutils/parsers/rst/directives/references.py: Added to project. Contains the "target-notes" directive.</li> <li>docutils/parsers/rst/languages/__init__.py:<ul> <li>Return <tt class="docutils literal">None</tt> from get_language() for missing language modules.</li> </ul> </li> <li>docutils/parsers/rst/languages/de.py: Added to project; German mappings by Engelbert Gruber.</li> <li>docutils/parsers/rst/languages/en.py:<ul> <li>Added interpreted text roles mapping.</li> </ul> </li> <li>docutils/parsers/rst/languages/es.py: Added to project; Spanish mappings by Marcelo Huerta San Martin.</li> <li>docutils/parsers/rst/languages/fr.py: Added to project; French mappings by William Dode.</li> <li>docutils/parsers/rst/languages/it.py: Added to project; Italian mappings by Nicola Larosa.</li> <li>docutils/parsers/rst/languages/sk.py: Added to project; Slovak mappings by Miroslav Vasko.</li> <li>docutils/readers/__init__.py:<ul> <li>Added support for the observer pattern from <tt class="docutils literal">utils.Reporter</tt>, in <tt class="docutils literal">Reader.parse</tt> and <tt class="docutils literal">Reader.transform</tt>.</li> <li>Removed <tt class="docutils literal">Reader.transform()</tt> method.</li> <li>Added default parameter values to <tt class="docutils literal">Reader.__init__()</tt> to make instantiation easier.</li> <li>Removed bogus aliases: "restructuredtext" is <em>not</em> a Reader.</li> </ul> </li> <li>docutils/readers/pep.py:<ul> <li>Added the <tt class="docutils literal">peps.TargetNotes</tt> transform to the Reader.</li> <li>Removed PEP & RFC reference detection code; moved to parsers/rst/states.py as options (enabled here by default).</li> <li>Added support for pre-acceptance PEPs (no PEP number yet).</li> <li>Moved <tt class="docutils literal">Inliner</tt> & made it a class attribute of <tt class="docutils literal">Reader</tt> for easy subclassing.</li> </ul> </li> <li>docutils/readers/python: Python Source Reader subpackage added to project, including preliminary versions of:<ul> <li>__init__.py</li> <li>moduleparser.py: Parser for Python modules.</li> </ul> </li> <li>docutils/transforms/__init__.py:<ul> <li>Added <tt class="docutils literal">Transformer</tt> class and completed transform reform.</li> <li>Added unknown_reference_resolvers list for each transformer. This list holds the list of functions provided by each component of the transformer that help resolve references.</li> </ul> </li> <li>docutils/transforms/frontmatter.py:<ul> <li>Improved support for generic fields.</li> <li>Fixed bibliographic field language lookups.</li> </ul> </li> <li>docutils/transforms/misc.py: Added to project. Miscellaneous transforms.</li> <li>docutils/transforms/parts.py:<ul> <li>Moved the "id" attribute from TOC list items to the references (<tt class="docutils literal">Contents.build_contents()</tt>).</li> <li>Added the <tt class="docutils literal">SectNum</tt> transform; by Dmitry Jemerov.</li> <li>Added "class" attribute support to <tt class="docutils literal">Contents</tt>.</li> </ul> </li> <li>docutils/transforms/peps.py:<ul> <li>Added <tt class="docutils literal">mask_email()</tt> function, updating to pep2html.py's functionality.</li> <li>Linked "Content-Type: text/x-rst" to PEP 12.</li> <li>Added the <tt class="docutils literal">TargetNotes</tt> PEP-specific transform.</li> <li>Added <tt class="docutils literal">TargetNotes.cleanup_callback</tt>.</li> <li>Added title check to <tt class="docutils literal">Headers</tt>.</li> </ul> </li> <li>docutils/transforms/references.py:<ul> <li>Added the <tt class="docutils literal">TargetNotes</tt> generic transform.</li> <li>Split <tt class="docutils literal">Hyperlinks</tt> into multiple transforms.</li> <li>Fixed bug with multiply-indirect references (report: Bruce Smith).</li> <li>Added check for circular indirect references.</li> <li>Made substitutions case-sensitive-but-forgiving.</li> </ul> </li> <li>docutils/transforms/universal.py:<ul> <li>Added support for the "--expose-internal-attributes" option.</li> <li>Removed <tt class="docutils literal">Pending</tt> transform classes & data.</li> </ul> </li> <li>docutils/writers/__init__.py:<ul> <li>Removed <tt class="docutils literal">Writer.transform()</tt> method.</li> </ul> </li> <li>docutils/writers/docutils-xml.py:<ul> <li>Added XML and doctype declarations.</li> <li>Added "--no-doctype" and "--no-xml-declaration" options.</li> </ul> </li> <li>docutils/writers/html4css1.py:<ul> <li>"name" attributes only on these tags: a, applet, form, frame, iframe, img, map.</li> <li>Added "name" attribute to <a> in section titles for Netscape 4 support (bug report: Pearu Peterson).</li> <li>Fixed targets (names) on footnote, citation, topic title, problematic, and system_message nodes (for Netscape 4).</li> <li>Changed field names from "<td>" to "<th>".</li> <li>Added "@" to "&#64;" encoding to thwart address harvesters.</li> <li>Improved the vertical whitespace optimization; ignore "invisible" nodes (targets, comments, etc.).</li> <li>Improved inline literals with <tt class="docutils literal"><span <span class="pre">class="pre"></span></tt> around chunks of text and <tt class="docutils literal">&nbsp;</tt> for runs of spaces.</li> <li>Improved modularity of output; added <tt class="docutils literal">self.body_pre_docinfo</tt> and <tt class="docutils literal">self.docinfo</tt> segments.</li> <li>Added support for "line_block", "address" elements.</li> <li>Improved backlinks (footnotes & system_messages).</li> <li>Improved system_message output.</li> <li>Redefined "--stylesheet" as containing an invariant URL, used verbatim. Added "--stylesheet-path", interpreted w.r.t. the working directory.</li> <li>Added "--footnote-references" option (superscript or brackets).</li> <li>Added "--compact-lists" and "--no-compact-lists" options.</li> <li>Added "--embed-stylesheet" and "--link-stylesheet" options; factored out <tt class="docutils literal">HTMLTranslator.get_stylesheet_reference()</tt>.</li> <li>Improved field list rendering.</li> <li>Added Docutils version to "generator" meta tag.</li> <li>Fixed a bug with images; they must be inline, so wrapped in <p>.</li> <li>Improved layout of <pre> HTML source.</li> <li>Fixed attribute typo on <colspec>.</li> <li>Refined XML prologue.</li> <li>Support for no stylesheet.</li> <li>Removed "interpreted" element support.</li> <li>Added support for "title_reference", "sidebar", "attribution", "rubric", and generic "admonition" elements.</li> <li>Added "--attribution" option.</li> <li>Added support for "inline", "subscript", "superscript" elements.</li> <li>Added initial support for "abbreviation" and "acronym"; incomplete.</li> </ul> </li> <li>docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber (from the sandbox).<ul> <li>Added french.</li> <li>Double quotes in literal blocks (special treatment for de/ngerman).</li> <li>Added '--hyperlink-color' option ('0' turns off coloring of links).</li> <li>Added "--attribution" option.</li> <li>Right align attributions.</li> </ul> </li> <li>docutils/writers/pep_html.py:<ul> <li>Parameterized output encoding in PEP template.</li> <li>Reworked substitutions from <tt class="docutils literal">locals()</tt> into <tt class="docutils literal">subs</tt> dict.</li> <li>Redefined "--pep-stylesheet" as containing an invariant URL, used verbatim. Added "--pep-stylesheet-path", interpreted w.r.t. the working directory.</li> <li>Added an override on the "--footnote-references" option.</li> <li>Factored out <tt class="docutils literal">HTMLTranslator.get_stylesheet_reference()</tt>.</li> <li>Added Docutils version to "generator" meta tag.</li> <li>Added a "DO NOT EDIT THIS FILE" comment to generated HTML.</li> </ul> </li> <li>docs/tools.txt:<ul> <li>Added a "silent" setting for <tt class="docutils literal">buildhtml.py</tt>.</li> <li>Added a "Getting Help" section.</li> <li>Rearranged the structure.</li> <li>Kept up to date, with new settings, command-line options etc.</li> <li>Added section for <tt class="docutils literal">rst2latex.py</tt> (Engelbert Gruber).</li> <li>Converted settings table into a definition list.</li> </ul> </li> <li>docs/rst/quickstart.txt:<ul> <li>Added a table of contents.</li> <li>Added feedback information.</li> <li>Added mention of minimum section title underline lengths.</li> <li>Removed the 4-character minimum for section title underlines.</li> </ul> </li> <li>docs/rst/quickref.html:<ul> <li>Added a "Getting Help" section.</li> <li>Added a style to make section title backlinks more subtle.</li> <li>Added mention of minimum section title underline lengths.</li> <li>Removed the 4-character minimum for section title underlines.</li> </ul> </li> <li>extras: Directory added to project; contains third-party modules that Docutils depends on (optparse, textwrap, roman). These are only installed if they're not already present.</li> <li>licenses: Directory added to project; contains copies of license files for non-public-domain files.</li> <li>spec/doctree.txt:<ul> <li>Changed the focus. It's about DTD elements: structural relationships, semantics, and external (public) attributes. Not about the element class library.</li> <li>Moved some implementation-specific stuff into <tt class="docutils literal">docutils.nodes</tt> docstrings.</li> <li>Wrote descriptions of all common attributes and parameter entities. Filled in introductory material.</li> <li>Working through the element descriptions: 55 down, 37 to go.</li> <li>Removed "Representation of Horizontal Rules" to spec/rst/alternatives.txt.</li> </ul> </li> <li>spec/docutils.dtd:<ul> <li>Added "generated" inline element.</li> <li>Added "line_block" body element.</li> <li>Added "auto" attribute to "title".</li> <li>Changed content models of "literal_block" and "doctest_block" to <tt class="docutils literal">%text.model</tt>.</li> <li>Added <tt class="docutils literal">%number;</tt> attribute type parameter entity.</li> <li>Changed <tt class="docutils literal">%structural.elements;</tt> to <tt class="docutils literal">%section.elements</tt>.</li> <li>Updated attribute types; made more specific.</li> <li>Added "address" bibliographic element.</li> <li>Added "line" attribute to <tt class="docutils literal">system_message</tt> element.</li> <li>Removed "field_argument" element; "field_name" may contain multiple words and whitespace.</li> <li>Changed public identifier to docutils.sf.net.</li> <li>Removed "interpreted" element; added "title_reference", "abbreviation", "acronym".</li> <li>Removed "refuri" attribute from "footnote_reference" and "citation_reference".</li> <li>Added "sidebar", "rubric", "attribution", "admonition", "superscript", "subscript", and "inline" elements.</li> </ul> </li> <li>spec/pep-0256.txt: Converted to reStructuredText & updated.</li> <li>spec/pep-0257.txt: Converted to reStructuredText & updated.</li> <li>spec/pep-0258.txt: Converted to reStructuredText & updated.</li> <li>spec/semantics.txt: Updated with text from a Doc-SIG response to Dallas Mahrt.</li> <li>spec/transforms.txt: Added to project.</li> <li>spec/howto: Added subdirectory, for developer how-to docs.</li> <li>spec/howto/rst-directives.txt: Added to project. Original by Dethe Elza, edited & extended by David Goodger.</li> <li>spec/howto/i18n.txt: Docutils Internationalization. Added to project.</li> <li>spec/rst/alternatives.txt:<ul> <li>Added "Doctree Representation of Transitions" from spec/doctree.txt.</li> <li>Updated "Inline External Targets" & closed the debate.</li> <li>Added ideas for interpreted text syntax extensions.</li> <li>Added "Nested Inline Markup" section.</li> </ul> </li> <li>spec/rst/directives.txt:<ul> <li>Added directives: "topic", "sectnum", "target-notes", "line-block", "parsed-literal", "include", "replace", "sidebar", "admonition", "rubric", "epigraph", "highlights", "unicode" and "class".</li> <li>Formalized descriptions of directive details.</li> <li>Added an "align" attribute to the "image" & "figure" directives (by Adam Chodorowski).</li> <li>Added "class" options to "topic", "sidebar", "line-block", "parsed-literal", "contents", and "image"; and "figclass" to "figure".</li> </ul> </li> <li>spec/rst/interpreted.txt: Added to project. Descriptions of interpreted text roles.</li> <li>spec/rst/introduction.txt:<ul> <li>Added pointers to material for new users.</li> </ul> </li> <li>spec/rst/reStructuredText.txt:<ul> <li>Disambiguated comments (just add a newline after the "::").</li> <li>Updated enumerated list description; added a discussion of the second-line validity checking.</li> <li>Updated directive description.</li> <li>Added a note redirecting newbies to the user docs.</li> <li>Expanded description of inline markup start-strings in non-markup contexts.</li> <li>Removed field arguments and made field lists a generic construct.</li> <li>Removed the 4-character minimum for section title underlines.</li> <li>Clarified term/classifier delimiter & inline markup ambiguity (definition lists).</li> <li>Added "Embedded URIs".</li> <li>Updated "Interpreted Text" section.</li> <li>Added "Character-Level Inline Markup" section.</li> </ul> </li> <li>test: Continually adding & updating tests.<ul> <li>Moved test/test_rst/ to test/test_parsers/test_rst/.</li> <li>Moved test/test_pep/ to test/test_readers/test_pep/.</li> <li>Added test/test_readers/test_python/.</li> <li>Added test/test_writers/ (Engelbert Gruber).</li> </ul> </li> <li>tools:<ul> <li>Made the <tt class="docutils literal">locale.setlocale()</tt> calls in front ends fault-tolerant.</li> </ul> </li> <li>tools/buildhtml.py:<ul> <li>Added "--silent" option.</li> <li>Fixed bug with absolute paths & "--config".</li> <li>Updated for new I/O classes.</li> <li>Added some exception handling.</li> <li>Separated publishers' setting defaults; prevents interference.</li> <li>Updated for new <tt class="docutils literal">publish_file()</tt> convenience function.</li> </ul> </li> <li>tools/pep-html-template:<ul> <li>Allow for "--embed-stylesheet".</li> <li>Added Docutils version to "generator" meta tag.</li> <li>Added a "DO NOT EDIT THIS FILE" comment to generated HTML.</li> <li>Conform to XHTML spec.</li> </ul> </li> <li>tools/pep2html.py:<ul> <li>Made <tt class="docutils literal">argv</tt> a parameter to <tt class="docutils literal">main()</tt>.</li> <li>Added support for "Content-Type:" header & arbitrary PEP formats.</li> <li>Linked "Content-Type: text/plain" to PEP 9.</li> <li>Files skipped (due to an error) are not pushed onto the server.</li> <li>Updated for new I/O classes.</li> <li>Added <tt class="docutils literal">check_requirements()</tt> & <tt class="docutils literal">pep_type_error()</tt>.</li> <li>Added some exception handling.</li> <li>Updated for new <tt class="docutils literal">publish_string()</tt> convenience function.</li> <li>Added a "DO NOT EDIT THIS FILE" comment to generated HTML.</li> </ul> </li> <li>tools/quicktest.py:<ul> <li>Added "-V"/"--version" option.</li> </ul> </li> <li>tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.</li> <li>tools/unicode2rstsubs.py: Added to project. Produces character entity files (reSructuredText substitutions) from the MathML master unicode.xml file.</li> <li>tools/editors: Support code for editors, added to project. Contains <tt class="docutils literal">emacs/restructuredtext.el</tt>.</li> <li>tools/stylesheets/default.css: Moved into the stylesheets directory.<ul> <li>Added style for chunks of inline literals.</li> <li>Removed margin for first child of table cells.</li> <li>Right-aligned field list names.</li> <li>Support for auto-numbered section titles in TOCs.</li> <li>Increased the size of inline literals (<tt>) in titles.</li> <li>Restored the light gray background for inline literals.</li> <li>Added support for "line_block" elements.</li> <li>Added style for "address" elements.</li> <li>Removed "a.footnote-reference" style; doing it with <tt class="docutils literal"><sup></tt> now.</li> <li>Improved field list rendering.</li> <li>Vertical whitespace improvements.</li> <li>Removed "a.target" style.</li> </ul> </li> <li>tools/stylesheets/pep.css:<ul> <li>Fixed nested section margins.</li> <li>Other changes parallel those of <tt class="docutils literal"><span class="pre">../default.css</span></tt>.</li> </ul> </li> </ul> </div> <div class="section" id="release-0-2-2002-07-31"> <h1><a class="toc-backref" href="#id27">Release 0.2 (2002-07-31)</a></h1> <p>General:</p> <ul class="simple"> <li>The word "component" was being used ambiguously. From now on, "component" will be used to mean "Docutils component", as in Reader, Writer, Parser, or Transform. Portions of documents (Table of Contents, sections, etc.) will be called "document parts".</li> <li>Did a grand renaming: a lot of <tt class="docutils literal">verylongnames</tt> became <tt class="docutils literal">very_long_names</tt>.</li> <li>Cleaned up imports: no more relative package imports or comma-separated lists of top-level modules.</li> <li>Added support for an option values object which carries default settings and overrides (from command-line options and library use).</li> <li>Added internal Unicode support, and support for both input and output encodings.</li> <li>Added support for the <tt class="docutils literal">docutils.io.IO</tt> class & subclasses.</li> </ul> <p>Specific:</p> <ul class="simple"> <li>docutils/__init__.py:<ul> <li>Added <tt class="docutils literal">ApplicationError</tt> and <tt class="docutils literal">DataError</tt>, for use throughout the package.</li> <li>Added <tt class="docutils literal">Component</tt> base class for Docutils components; implements the <tt class="docutils literal">supports</tt> method.</li> <li>Added <tt class="docutils literal">__version__</tt> (thus, <tt class="docutils literal">docutils.__version__</tt>).</li> </ul> </li> <li>docutils/core.py:<ul> <li>Removed many keyword parameters to <tt class="docutils literal">Publisher.__init__()</tt> and <tt class="docutils literal">publish()</tt>; bundled into an option values object. Added "argv", "usage", "description", and "option_spec" parameters for command-line support.</li> <li>Added <tt class="docutils literal">Publisher.process_command_line()</tt> and <tt class="docutils literal">.set_options()</tt> methods.</li> <li>Reworked I/O model for <tt class="docutils literal">docutils.io</tt> wrappers.</li> <li>Updated <tt class="docutils literal">Publisher.set_options()</tt>; now returns option values object.</li> <li>Added support for configuration files (/etc/docutils.conf, ./docutils.conf, ~/.docutils).</li> <li>Added <tt class="docutils literal">Publisher.setup_option_parser()</tt>.</li> <li>Added default usage message and description.</li> </ul> </li> <li>docutils/frontend.py: Added to project; support for front-end (command-line) scripts. Option specifications may be augmented by components. Requires Optik (<a class="reference external" href="http://optik.sf.net/">http://optik.sf.net/</a>) for option processing (installed locally as docutils/optik.py).</li> <li>docutils/io.py: Added to project; uniform API for a variety of input output mechanisms.</li> <li>docutils/nodes.py:<ul> <li>Added <tt class="docutils literal">TreeCopyVisitor</tt> class.</li> <li>Added a <tt class="docutils literal">copy</tt> method to <tt class="docutils literal">Node</tt> and subclasses.</li> <li>Added a <tt class="docutils literal">SkipDeparture</tt> exception for visitors.</li> <li>Renamed <tt class="docutils literal">TreePruningException</tt> from <tt class="docutils literal">VisitorException</tt>.</li> <li>Added docstrings to <tt class="docutils literal">TreePruningException</tt>, subclasses, and <tt class="docutils literal">Nodes.walk()</tt>.</li> <li>Improved docstrings.</li> <li>Added <tt class="docutils literal">SparseNodeVisitor</tt>, refined <tt class="docutils literal">NodeVisitor</tt>.</li> <li>Moved <tt class="docutils literal">utils.id()</tt> to <tt class="docutils literal">nodes.make_id()</tt> to avoid circular imports.</li> <li>Added <tt class="docutils literal">decoration</tt>, <tt class="docutils literal">header</tt>, and <tt class="docutils literal">footer</tt> node classes, and <tt class="docutils literal">PreDecorative</tt> mixin.</li> <li>Reworked the name/id bookkeeping; to <tt class="docutils literal">document</tt>, removed <tt class="docutils literal">explicit_targets</tt> and <tt class="docutils literal">implicit_targets</tt> attributes, added <tt class="docutils literal">nametypes</tt> attribute and <tt class="docutils literal">set_name_id_map</tt> method.</li> <li>Added <tt class="docutils literal">NodeFound</tt> exception, for use with <tt class="docutils literal">NodeVisitor</tt> traversals.</li> <li>Added <tt class="docutils literal">document.has_name()</tt> method.</li> <li>Fixed DOM generation for list-attributes.</li> <li>Added category class <tt class="docutils literal">Labeled</tt> (used by footnotes & citations).</li> <li>Added <tt class="docutils literal">Element.set_class()</tt> method (sets "class" attribute).</li> </ul> </li> <li>docutils/optik.py: Added to project. Combined from the Optik package, with added option groups and other modifications. The use of this module is probably only temporary.</li> <li>docutils/statemachine.py:<ul> <li>Added <tt class="docutils literal">runtime_init</tt> method to <tt class="docutils literal">StateMachine</tt> and <tt class="docutils literal">State</tt>.</li> <li>Added underscores to improve many awkward names.</li> <li>In <tt class="docutils literal">string2lines()</tt>, changed whitespace normalizing translation table to regexp; restores Python 2.0 compatibility with Unicode.</li> </ul> </li> <li>docutils/urischemes.py:<ul> <li>Filled in some descriptions.</li> <li>Added "shttp" scheme.</li> </ul> </li> <li>docutils/utils.py:<ul> <li>Added <tt class="docutils literal">clean_rcs_keywords</tt> function (moved from docutils/transforms/frontmatter.py <tt class="docutils literal">DocInfo.filter_rcs_keywords</tt>).</li> <li>Added underscores to improve many awkward names.</li> <li>Changed names of Reporter's thresholds: warning_level -> report_level; error_level -> halt_level.</li> <li>Moved <tt class="docutils literal">utils.id()</tt> to <tt class="docutils literal">nodes.make_id()</tt>.</li> <li>Added <tt class="docutils literal">relative_path(source, target)</tt>.</li> </ul> </li> <li>docutils/languages/de.py: German mappings; added to project. Thanks to Gunnar Schwant for the translations.</li> <li>docutils/languages/en.py: Added "Dedication" bibliographic field mappings.</li> <li>docutils/languages/sv.py: Swedish mappings; added to project by Adam Chodorowski.</li> <li>docutils/parsers/rst/states.py:<ul> <li>Added underscores to improve many awkward names.</li> <li>Added RFC-2822 header support.</li> <li>Extracted the inline parsing code from <tt class="docutils literal">RSTState</tt> to a separate class, <tt class="docutils literal">Inliner</tt>, which will allow easy subclassing.</li> <li>Made local bindings for <tt class="docutils literal">memo</tt> container & often-used contents (reduces code complexity a lot). See <tt class="docutils literal">RSTState.runtime_init()</tt>.</li> <li><tt class="docutils literal">RSTState.parent</tt> replaces <tt class="docutils literal">RSTState.statemachine.node</tt>.</li> <li>Added <tt class="docutils literal">MarkupMismatch</tt> exception; for late corrections.</li> <li>Added <tt class="docutils literal"><span class="pre">-/:</span></tt> characters to inline markup's start string prefix, <tt class="docutils literal">/</tt> to end string suffix.</li> <li>Fixed a footnote bug.</li> <li>Fixed a bug with literal blocks.</li> <li>Applied patch from Simon Budig: simplified regexps with symbolic names, removed <tt class="docutils literal">Inliner.groups</tt> and <tt class="docutils literal">Body.explicit.groups</tt>.</li> <li>Converted regexps from <tt class="docutils literal">'%s' % var</tt> to <tt class="docutils literal"><span class="pre">'%(var)s'</span> % locals()</tt>.</li> <li>Fixed a bug in <tt class="docutils literal">Inliner.interpreted_or_phrase_ref()</tt>.</li> <li>Allowed non-ASCII in "simple names" (directive names, field names, references, etc.).</li> <li>Converted <tt class="docutils literal">Inliner.patterns.initial</tt> to be dynamically built from parts with <tt class="docutils literal">build_regexp()</tt> function.</li> <li>Changed <tt class="docutils literal">Inliner.inline_target</tt> to <tt class="docutils literal">.inline_internal_target</tt>.</li> <li>Updated docstrings.</li> <li>Changed "table" to "grid_table"; added "simple_table" support.</li> </ul> </li> <li>docutils/parsers/rst/tableparser.py:<ul> <li>Changed <tt class="docutils literal">TableParser</tt> to <tt class="docutils literal">GridTableParser</tt>.</li> <li>Added <tt class="docutils literal">SimpleTableParser</tt>.</li> <li>Refactored naming.</li> </ul> </li> <li>docutils/parsers/rst/directives/__init__.py: Added "en" (English) as a fallback language for directive names.</li> <li>docutils/parsers/rst/directives/html.py: Changed the <tt class="docutils literal">meta</tt> directive to use a <tt class="docutils literal">pending</tt> element, used only by HTML writers.</li> <li>docutils/parsers/rst/directives/parts.py: Renamed from components.py.<ul> <li>Added "backlinks" attribute to "contents" directive.</li> </ul> </li> <li>docutils/parsers/rst/languages/sv.py: Swedish mappings; added to project by Adam Chodorowski.</li> <li>docutils/readers/__init__.py: Gave Readers more control over choosing and instantiating Parsers.</li> <li>docutils/readers/pep.py: Added to project; for PEP processing.</li> <li>docutils/transforms/__init__.py: <tt class="docutils literal">Transform.__init__()</tt> now requires a <tt class="docutils literal">component</tt> parameter.</li> <li>docutils/transforms/components.py: Added to project; transforms related to Docutils components.</li> <li>docutils/transforms/frontmatter.py:<ul> <li>In <tt class="docutils literal">DocInfo.extract_authors</tt>, check for a single "author" in an "authors" group, and convert it to a single "author" element.</li> <li>Added support for "Dedication" and generic bibliographic fields.</li> </ul> </li> <li>docutils/transforms/peps.py: Added to project; PEP-specific.</li> <li>docutils/transforms/parts.py: Renamed from old components.py.<ul> <li>Added filter for <cite>Contents</cite>, to use alt-text for inline images, and to remove inline markup that doesn't make sense in the ToC.</li> <li>Added "name" attribute to TOC topic depending on its title.</li> <li>Added support for optional TOC backlinks.</li> </ul> </li> <li>docutils/transforms/references.py: Fixed indirect target resolution in <tt class="docutils literal">Hyperlinks</tt> transform.</li> <li>docutils/transforms/universal.py:<ul> <li>Changed <tt class="docutils literal">Messages</tt> transform to properly filter out system messages below the warning threshold.</li> <li>Added <tt class="docutils literal">Decorations</tt> transform (support for <tt class="docutils literal"><span class="pre">--generator</span></tt>, <tt class="docutils literal"><span class="pre">--date</span></tt>, <tt class="docutils literal"><span class="pre">--time</span></tt>, <tt class="docutils literal"><span class="pre">--source-link</span></tt> options).</li> </ul> </li> <li>docutils/writers/__init__.py: Added "pdf" alias in anticipation of Engelbert Gruber's PDF writer.</li> <li>docutils/writers/html4css1.py:<ul> <li>Made XHTML-compatible (switched to lowercase element & attribute names; empty tag format).</li> <li>Escape double-dashes in comment text.</li> <li>Improved boilerplate & modularity of output.</li> <li>Exposed modular output in Writer class.</li> <li>Added a "generator" meta tag to <head>.</li> <li>Added support for the <tt class="docutils literal"><span class="pre">--stylesheet</span></tt> option.</li> <li>Added support for <tt class="docutils literal">decoration</tt>, <tt class="docutils literal">header</tt>, and <tt class="docutils literal">footer</tt> elements.</li> <li>In <tt class="docutils literal">HTMLTranslator.attval()</tt>, changed whitespace normalizing translation table to regexp; restores Python 2.0 compatibility with Unicode.</li> <li>Added the translator class as instance variable to the Writer, to make it easily subclassable.</li> <li>Improved option list spacing (thanks to Richard Jones).</li> <li>Modified field list output.</li> <li>Added backlinks to footnotes & citations.</li> <li>Added percentage widths to "<col>" tags (from colspec).</li> <li>Option lists: "<code>" changed to "<kbd>", <tt class="docutils literal">option_argument</tt> "<span>" changed to "<var>".</li> <li>Inline literals: "<code>" changed to "<tt>".</li> <li>Many changes to optimize vertical space: compact simple lists etc.</li> <li>Add a command-line options & directive attributes to control TOC and footnote/citation backlinks.</li> <li>Added support for optional footnote/citation backlinks.</li> <li>Added support for generic bibliographic fields.</li> <li>Identify backrefs.</li> <li>Relative URLs for stylesheet links.</li> </ul> </li> <li>docutils/writers/pep_html.py: Added to project; HTML Writer for PEPs (subclass of <tt class="docutils literal">html4css1.Writer</tt>).</li> <li>docutils/writers/pseudoxml.py: Renamed from pprint.py.</li> <li>docutils/writers/docutils_xml.py: Added to project; trivial writer of the Docutils internal doctree in XML.</li> <li>docs/tools.txt: "Docutils Front-End Tools", added to project.</li> <li>spec/doctree.txt:<ul> <li>Changed the title to "The Docutils Document Tree".</li> <li>Added "Hyperlink Bookkeeping" section.</li> </ul> </li> <li>spec/docutils.dtd:<ul> <li>Added <tt class="docutils literal">decoration</tt>, <tt class="docutils literal">header</tt>, and <tt class="docutils literal">footer</tt> elements.</li> <li>Brought <tt class="docutils literal">interpreted</tt> element in line with the parser: changed attribute "type" to "role", added "position".</li> <li>Added support for generic bibliographic fields.</li> </ul> </li> <li>spec/notes.txt: Continual updates. Added "Project Policies".</li> <li>spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs" section.</li> <li>spec/pep-0257.txt: Clarified prohibition of signature repetition.</li> <li>spec/pep-0258.txt: Updated. Added text from pysource.txt and mailing list discussions.</li> <li>spec/pep-0287.txt:<ul> <li>Renamed to "reStructuredText Docstring Format".</li> <li>Minor edits.</li> <li>Reworked Q&A as an enumerated list.</li> <li>Converted to reStructuredText format.</li> </ul> </li> <li>spec/pysource.dtd:<ul> <li>Reworked structural elements, incorporating ideas from Tony Ibbs.</li> </ul> </li> <li>spec/pysource.txt: Removed from project. Moved much of its contents to pep-0258.txt.</li> <li>spec/rst/alternatives.txt:<ul> <li>Expanded auto-enumerated list idea; thanks to Fred Bremmer.</li> <li>Added "Inline External Targets" section.</li> </ul> </li> <li>spec/rst/directives.txt:<ul> <li>Added "backlinks" attribute to "contents" directive.</li> </ul> </li> <li>spec/rst/problems.txt:<ul> <li>Updated the Enumerated List Markup discussion.</li> <li>Added new alternative table markup syntaxes.</li> </ul> </li> <li>spec/rst/reStructuredText.txt:<ul> <li>Clarified field list usage.</li> <li>Updated enumerated list description.</li> <li>Clarified purpose of directives.</li> <li>Added <tt class="docutils literal"><span class="pre">-/:</span></tt> characters to inline markup's start string prefix, <tt class="docutils literal">/</tt> to end string suffix.</li> <li>Updated "Authors" bibliographic field behavior.</li> <li>Changed "inline hyperlink targets" to "inline internal targets".</li> <li>Added "simple table" syntax to supplement the existing but newly-renamed "grid tables".</li> <li>Added cautions for anonymous hyperlink use.</li> <li>Added "Dedication" and generic bibliographic fields.</li> </ul> </li> <li>test: Made test modules standalone (subdirectories became packages).</li> <li>test/DocutilsTestSupport.py:<ul> <li>Added support for PEP extensions to reStructuredText.</li> <li>Added support for simple tables.</li> <li>Refactored naming.</li> </ul> </li> <li>test/package_unittest.py: Renamed from UnitTestFolder.py.<ul> <li>Now supports true packages containing test modules (<tt class="docutils literal">__init__.py</tt> files required); fixes duplicate module name bug.</li> </ul> </li> <li>test/test_pep/: Subpackage added to project; PEP testing.</li> <li>test/test_rst/test_SimpleTableParser.py: Added to project.</li> <li>tools:<ul> <li>Updated html.py and publish.py front-end tools to use the new command-line processing facilities of <tt class="docutils literal">docutils.frontend</tt> (exposed in <tt class="docutils literal">docutils.core.Publisher</tt>), reducing each to just a few lines of code.</li> <li>Added <tt class="docutils literal">locale.setlocale()</tt> calls to front-end tools.</li> </ul> </li> <li>tools/buildhtml.py: Added to project; batch-generates .html from all the .txt files in directories and subdirectories.</li> <li>tools/default.css:<ul> <li>Added support for <tt class="docutils literal">header</tt> and <tt class="docutils literal">footer</tt> elements.</li> <li>Added styles for "Dedication" topics (biblio fields).</li> </ul> </li> <li>tools/docutils.conf: A configuration file; added to project.</li> <li>tools/docutils-xml.py: Added to project.</li> <li>tools/pep.py: Added to project; PEP to HTML front-end tool.</li> <li>tools/pep-html-template: Added to project.</li> <li>tools/pep2html.py: Added to project from Python (nondist/peps). Added support for Docutils (reStructuredText PEPs).</li> <li>tools/quicktest.py:<ul> <li>Added the <tt class="docutils literal"><span class="pre">--attributes</span></tt> option, hacked a bit.</li> <li>Added a second command-line argument (output file); cleaned up.</li> </ul> </li> <li>tools/stylesheets/: Subdirectory added to project.</li> <li>tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.</li> </ul> </div> <div class="section" id="release-0-1-2002-04-20"> <h1><a class="toc-backref" href="#id28">Release 0.1 (2002-04-20)</a></h1> <p>This is the first release of Docutils, merged from the now inactive <a class="reference external" href="http://structuredtext.sourceforge.net/">reStructuredText</a> and <a class="reference external" href="http://docstring.sourceforge.net/">Docstring Processing System</a> projects. For the pre-Docutils history, see the <a class="reference external" href="http://structuredtext.sourceforge.net/HISTORY.html">reStructuredText HISTORY</a> and the <a class="reference external" href="http://docstring.sourceforge.net/HISTORY.html">DPS HISTORY</a> files.</p> <p>General changes: renamed 'dps' package to 'docutils'; renamed 'restructuredtext' subpackage to 'rst'; merged the codebases; merged the test suites (reStructuredText's test/test_states renamed to test/test_rst); and all modifications required to make it all work.</p> <ul class="simple"> <li>docutils/parsers/rst/states.py:<ul> <li>Improved diagnostic system messages for missing blank lines.</li> <li>Fixed substitution_reference bug.</li> </ul> </li> </ul> <!-- Local Variables: mode: indented-text indent-tabs-mode: nil sentence-end-double-space: t fill-column: 70 End: --> </div> </div> </body> </html>