Docutils リリースノート

Contact:grubert@users.sourceforge.net
Maintainer:docutils-develop@lists.sourceforge.net
Date:$Date: 2015-09-16 13:41:51 +0000 (Wed, 16 Sep 2015) $
Revision:$Revision: 7920 $
Web site:http://docutils.sourceforge.net/
Copyright:

このドキュメントは、パブリック ドメインで公開されています。

このドキュメントは最近のリリースに含まれる主な変更をまとめたものです。 変更の一覧の詳細については、 Docutils History を参照してください。

予定している変更

  • remove the handle_io_errors option from io.FileInput/Output.
  • »Prune« the doctree (no change to the reST input syntax):
    • "doctest" element -> literal block with "pycon" (python-console) class argument and syntax highlight (like the "code" directive),
    • special admonitions (note, hint, warning, ...) -> generic "admonition" element with class attribute and auto-generated title.
  • Drop support for python 2.4 after release 0.13.

Checks before 0.13

  • new html writer status
  • rst.el and emacs 24.4 electric-indent-mode

Changes Since 0.12

  • docutils/writers/html_plain
    • New HTML writer generating HTML 5.
  • tools/
    • New front-end rst2html5.py.

Release 0.12 (2014-07-06)

Small changes only, release current state

Release 0.11 (2013-07-22)

  • General

    • Apply [ 2714873 ] Fix for the overwritting of document attributes.
    • Support embedded aliases within hyperlink references.
    • Fix [ 228 ] try local import of docutils components (reader, writer, parser, language module) before global search.
  • docutils/parsers/rst/directives/tables.py

    • Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
  • docutils/writers/html4css1/__init__.py - Fix [ 3600051 ] for tables in a list, table cells are not compacted. - New setting stylesheet_dirs (see above).

    Now, it is easy to add a custom stylesheet to Docutils' default stylesheet with, e.g., --stylesheet_path='html4css1.css, mystyle.css'

    Changed behaviour of the default settings:

    if there is a file html4css1.css in the working directory of the process at launch, it is used instead of the one provided by Docutils in the writer source directory.

    • New default for math-output: HTML math.css.
    • Avoid repeated class declarations in html4css1 writer (modified version of patch [ 104 ]).
  • docutils/writers/latex2e/__init__.py
    • Drop the simple algorithm replacing straight double quotes with English typographic ones. Activate the SmartQuotes transform if you want this feature.
    • New setting stylesheet_dirs: Comma-separated list of directories where stylesheets are found. Used by stylesheet_path when expanding relative path arguments.
  • docutils/writers/manpage.py
    • Fix [3607063] handle lines starting with a period.
    • Fix option separating comma was bold (thanks to Bill Morris).

Release 0.10 (2012-12-16)

注釈

Docutils 0.9.x is the last version supporting Python 2.3.

Docutils 0.10 is compatible with Python versions from 2.4 to 3.2 (cf. Python 3 compatibility).

  • 全般:

    • SmartQuotes transform for typographic quotes and dashes.

    • docutils/math, docutils/error_reporting.py, and docutils/urischemes.py moved to the utils package. Code importing these modules needs to adapt, e.g.:

      try:
          import docutils.math as math
      except ImportError:
          import docutils.utils.math as math
      
    • enhanced math and error handling.

  • docutils/io.py

    • FileInput/FileOutput: no system-exit on IOError. The handle_io_errors option is ignored.
  • docutils/writers/html4css1/__init__.py
    • Use <code> tag for inline "code", do not drop nested inline nodes (syntax highlight tokens).
    • Customizable MathJax URL (based on patch by Dmitry Shachnev).
    • No line break after opening inline math tag.
  • docutils/writers/latex2e/__init__.py, docutils/writers/xetex/__init__.py
    • Fix section numbering by LaTeX.
  • docutils/writers/s5_html/__init__.py
    • Fix [ 3556388 ] Mathjax does not work with rst2s5.

Release 0.9.1 (2012-06-17)

  • 全般:

    Python 3 で利用するためのいくつかの修正。

  • docutils/setup.py

    • [ 3527842 ] を修正。 Python_3 環境下では、変換された test と tools は PYTHONPATH にインストールされていました。 変換された test は今後 docutils/test3/ に格納され、tools は 変換が不要になります。

      もし Python_3 で Docutils バージョン 0.7 から 0.9 のいずれかを setup.py install でインストールしている場合は、site ライブラリの ルートディレクトリにある test/tools/ ディレクトリを 削除してください。

Release 0.9 (2012-05-02)

  • 全般:

    • Pygments によってシンタックスハイライトされる reStructuredText "code" ロールとディレクティブ。

    • "include" ディレクティブの "code" オプション。

    • [ 3402314 ] を修正し、インラインマークアップの前後に 非 ASCII の空白、 記号文字および "国際的な" クオートが出来るようになりました。

    • スタイルシートが見つからない場合のハンドリングを修正。

  • setup.py

    • [ 2971827 ] と [ 3442827 ] を修正。 extras/roman.py を docutils/utils/roman.py に移動。

  • docutils/utils.py -> docutils/utils/__init__.py

    • docutils.utils をパッケージ化(サブモジュールのための場所を提供)

  • docutils/writers/html4css1/__init__.py

    • math-output のデフォルト設定を MathJax に変更。

  • docutils/writers/latex2e/__init__.py

    • abbreviationacronym の標準ロールをサポート。

    • 依存関係として LaTeX ソースの生成に必要なファイルのみを記録。

    • LaTeX セクションナンバリング抑制時に *-versions の代わりに \setcounter{secnumdepth}{0} を使用。

Release 0.8.1 (2011-08-30)

  • 全般:

    • Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause) and [ 3395920 ] (correct copyright info for rst.el).
  • docutils/writers/latex2e/__init__.py
    • Clean up Babel language setting. Restores Sphinx compatibility.

Release 0.8 (2011-07-07)

  • COPYING:

    • Some additions to the Docutils core are released under the 2-Clause BSD license.
  • 全般:

    • Handle language codes according to BCP 47.
    • If the specified langauage is not supported by Docutils, warn and fall back to English.
    • Math support: reStructuredText "math" role and directive, math and math_block doctree elements.
    • Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
  • reStructuredText:

    • most directives now support a "name" option that attaches a reference name. So you can write

      .. figure:: image.png
         :name: figure name
      

      as a short form of

      .. _figure name:
      
      .. figure:: image.png
      

Internationalization:

  • Added lithuanian mappings.

Components:

  • HTML writer:

    • New setting "math-output" with support for HTML, MathML, and LaTeX.
  • LaTeX2e writer:

    • Convert image URI to a local file path.
    • Apply [ 3148141 ] fix multicolumn support when a colspanning cell has more than one paragraph (Wolfgang Scherer).
  • XeTeX writer:

    • New writer generating LaTeX code for compiling with xelatex.

      XeTeX uses unicode and modern font technologies.

  • and fixes and enhancements here and there.

Release 0.7 (2010-07-07)

Components:

  • HTML writer:
    • Support SVG and SWF images (thanks to Stefan Rank).
    • Generate valid XHTML for centered images with targets. Use CSS classes instead of "align" tags for image alignment.
  • LaTeX2e writer:
    • Use the \url command for URLs (breaks long URLs instead of writing into the margin).
    • Preserve runs of spaces in 'inline literals'.
    • Deprecate figure_footnotes setting.
    • Rename use_latex_footnotes setting to docutils_footnotes.
    • New latex_preamble setting.
    • Use PDF standard fonts (Times/Helvetica/Courier) as default.
    • hyperref package called with unicode option (see the hyperref config tips for how to override).
    • Drop the special output_encoding default ("latin-1"). The Docutils wide default (usually "UTF-8") is used instead.
  • manpage writer:
    • Titles level 1, that is .SH, always uppercase.
    • Apply patch from mg: literal text should be bold in man-pages.

全般:

  • io.FileInput opens files as text files with universal newline support (mode "rU", configurable with the new optional argument "mode").
  • setup.py:
    • Python 3 support: copy test/ and tools/ to the build-dir and convert Python sources with 2to3.

Release 0.6 (2009-10-11)

注釈

Docutils 0.5 is the last version supporting Python 2.2.

Docutils 0.6 is compatible with Python versions from 2.3 up to 2.6 and convertible to 3.1 code.

注釈

The "newlatex" writer is orphaned.

The recommended way to generate PDF output is to use either the LaTeX2e writer or one of the alternatives listed at http://docutils.sourceforge.net/docs/user/links.html#pdf.

  • reStructuredText:
    • Allow length units for all length specifications.
    • Allow percent sign in "scale" argument of "figure" and "image" directives.
    • Bugfix: The "figalign" argument of a figure now works as intended (aligning the figure not its contents).
    • Align images with class "align-[right|center|left]" (allows setting the alignment of an image in a figure).
    • Hard tabs in literal inclusions are replaced by spaces. This is configurable via the new "tab-width" option of the "include" directive (a negative tab-width prevents tab expansion).
  • HTML writer:
    • --stylesheet and --stylesheet-path options now support a comma separated list of stylesheets.
  • LaTeX2e writer:
    • 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). - Float placement defaults to "here definitely" (configurable). - Align of image in a figure defaults to 'center'. - Use class defaults for page margins ('typearea' now optional).
    • Support LaTeX packages as --stylesheet arguments.
    • Use bp for lengths without unit or unit pt, do not convert px to pt.
    • Do not use 'ae' and 'aeguill' packages if font-encoding is set to ''.
    • Set sub- and superscript role argument as text not math.
    • Support custom roles based on standard roles.
    • Load packages and define macros only if required in the document.
    • All Docutils specific LaTeX macros are prefixed with DU.
    • Better conformance to Docutils specifications with "use_latex_toc".
    • If 'sectnum_xform' is False, the 'sectnum' directive triggers section numbering by LaTeX.
    • Use default font in admonitions and sidebar.
    • Typeset generic topic as "quote with title".
    • Use template (file and configuration option).
    • Render doctest blocks as literal blocks (indented).
  • ODT writer:
    • moved from sandbox to Doctutils core.
  • manpage writer:
    • moved from sandbox to Doctutils core.

Release 0.5 (2008-06-25)

Components:

  • HTML writer.
    • Dropped all name attributes of a elements (id is universally supported now).
  • LaTeX2e writer:
    • Better bibTeX citation support.
    • Add --literal-block-env
  • PEP writer:
    • Changed to support new python.org website structure and pep2pyramid.py.

reStructuredText:

  • Changed the directive API to a new object-oriented system. (Compatibility for the old, functional-style directive interface is retained.) See the updated Creating reStructuredText Directives how-to.
  • Allow + and : in reference names requested for citations.

Documentation:

Internationalization:

  • Added hebrew mappings.

全般:

  • Configuration files are now assumed and required to be UTF-8-encoded.
  • Added docutils/writers/html4css1/template.txt.
  • Enhance emacs support.

Release 0.4 (2006-01-09)

注釈

Docutils 0.4.x is the last version that will support Python 2.1. Docutils 0.5 will not be compatible with Python 2.1; Python 2.2 or later will be required.

Docutils 0.4.x is the last version that will make compromises in its HTML output for Netscape Navigator 4. Docutils 0.5 will require more up-to-date browsers (the exact definition is to be determined).

Components:

  • Added an S5/HTML writer and the rst2s5.py front end: multi-platform, multi-browser HTML slide shows.
  • The newlatex2e writer is nearing completion.
  • Added a DocTree reader, publish_doctree and publish_from_doctree convenience functions, for document tree extraction and reprocessing.

reStructuredText:

  • Added directives: "container" (generic block-level container), "default-role" (role used for `backtick` syntax), "title" (document title metadata), and "date" (generate the current local date, for substitution definitions).
  • Length units are now supported for image sizes.
  • Added standard definition files for special characters etc.

Internationalization:

  • Added Japanese and Simplified Chinese language mappings, and support for double-width CJK-characters in tables and section titles.

Documentation:

全般:

Release 0.3.9 (2005-05-26)

Release 0.3.7 (2004-12-24)

  • A special "line block" syntax has been added. (Also see the quick reference.)
  • Empty sections are now allowed.
  • A "raw" role has been added.
  • The LaTeX writer now escapes consecutive dashes (like "--" or "---") so that they are no longer transformed by LaTeX to en or em dashes. (Please see the FAQ for how to represent such dashes.)
  • A dependency recorder has been added.
  • A directive has been added for compound paragraphs.

Release 0.3.5 (2004-07-29)