1 ========================
3 ========================
5 :Contact: grubert@users.sourceforge.net
6 :Maintainer: docutils-develop@lists.sourceforge.net
9 :Web site: http://docutils.sourceforge.net/
10 :Copyright: This document has been placed in the public domain.
13 This document summarizes the major changes in recent releases. For a
14 more detailed list of changes, please see the `Docutils History`_.
16 .. _Docutils History: HISTORY.html
23 * remove the `handle_io_errors` option from io.FileInput/Output.
25 * »Prune« the doctree (no change to the reST input syntax):
27 - "doctest" element -> literal block with class argument,
28 - special admonitions (note, hint, warning, ...) -> generic "admonition"
29 element with class attribute and auto-generated title.
31 * Move to single source for Python 2 and Python 3, slowly.
32 See `Porting Python 2 Code to Python 3`_ and
33 `future: clean single-source support for Python 2/3`_
35 - Drop support for python 2.4 probably after 0.12 release.
37 .. _Porting Python 2 Code to Python 3: https://docs.python.org/3/howto/pyporting.html
38 .. _future\: clean single-source support for Python 2/3: http://python-future.org
40 Release 0.12 (2014-07-06)
41 =========================
43 Small changes only, release current state
45 Release 0.11 (2013-07-22)
46 =========================
50 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
51 - Support embedded aliases within hyperlink references.
52 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
53 language module) before global search.
55 * docutils/parsers/rst/directives/tables.py
57 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
59 * docutils/writers/html4css1/__init__.py
60 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
61 - New setting `stylesheet_dirs` (see above).
63 Now, it is easy to add a custom stylesheet to Docutils' default
64 stylesheet with, e.g., ``--stylesheet_path='html4css1.css, mystyle.css'``
66 Changed behaviour of the default settings:
67 if there is a file ``html4css1.css`` in the working directory of the
68 process at launch, it is used instead of the one provided by Docutils
69 in the writer source directory.
71 - New default for math-output_: ``HTML math.css``.
72 - Avoid repeated class declarations in html4css1 writer
73 (modified version of patch [ 104 ]).
75 .. _math-output: docs/user/config.html#math-output
77 * docutils/writers/latex2e/__init__.py
79 - Drop the simple algorithm replacing straight double quotes with
80 English typographic ones.
81 Activate the SmartQuotes_ transform if you want this feature.
82 - New setting `stylesheet_dirs`: Comma-separated list of directories
83 where stylesheets are found. Used by `stylesheet_path` when expanding
84 relative path arguments.
86 .. _SmartQuotes: docs/user/config.html#smart-quotes
88 * docutils/writers/manpage.py
90 - Fix [3607063] handle lines starting with a period.
91 - Fix option separating comma was bold (thanks to Bill Morris).
93 Release 0.10 (2012-12-16)
94 =========================
98 Docutils 0.9.x is the last version supporting Python 2.3.
100 Docutils 0.10 is compatible with Python versions from 2.4 to 3.2
101 (cf. `Python 3 compatibility`_).
105 - SmartQuotes transform for typographic quotes and dashes.
107 - ``docutils/math``, ``docutils/error_reporting.py``, and
108 ``docutils/urischemes.py`` moved to the utils package.
109 Code importing these modules needs to adapt, e.g.::
112 import docutils.math as math
114 import docutils.utils.math as math
116 - enhanced math and error handling.
120 - FileInput/FileOutput: no system-exit on IOError.
121 The `handle_io_errors` option is ignored.
123 .. _Python 3 compatibility: README.html#python-3-compatibility
125 * docutils/writers/html4css1/__init__.py
127 - Use ``<code>`` tag for inline "code",
128 do not drop nested inline nodes (syntax highlight tokens).
129 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
130 - No line break after opening inline math tag.
132 * docutils/writers/latex2e/__init__.py, docutils/writers/xetex/__init__.py
134 - Fix section numbering by LaTeX.
136 * docutils/writers/s5_html/__init__.py
138 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
141 Release 0.9.1 (2012-06-17)
142 ==========================
146 Several fixes for Python 3 usage.
150 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
151 installed in the PYTHONPATH. Converted tests are now
152 stored in ``docutils/test3/``, tools no longer need conversion.
154 If you installed one of Docutils versions 0.7 ... 0.9 with
155 ``setup.py install`` under Python 3, remove the spurious
156 ``test/`` and ``tools/`` directories in the site library root.
159 Release 0.9 (2012-05-02)
160 =========================
164 - reStructuredText "code" role and directive with syntax highlighting
166 - "code" option of the "include" directive.
168 .. _Pygments: http://pygments.org/
170 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
171 characters and "international" quotes around inline markup.
173 - Fix handling of missing stylesheets.
177 - Fix [ 2971827 ] and [ 3442827 ]
178 extras/roman.py moved to docutils/utils/roman.py
180 * docutils/utils.py -> docutils/utils/__init__.py
182 - docutils.utils is now a package (providing a place for sub-modules)
184 * docutils/writers/html4css1/__init__.py
186 - change default for `math-output` setting to MathJax
188 * docutils/writers/latex2e/__init__.py
190 - Support the `abbreviation` and `acronym` standard roles.
191 - Record only files required to generate the LaTeX source as dependencies.
192 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
193 when suppressing LaTeX section numbering.
196 Release 0.8.1 (2011-08-30)
197 ==========================
201 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
202 and [ 3395920 ] (correct copyright info for rst.el).
204 * docutils/writers/latex2e/__init__.py
206 - Clean up Babel language setting. Restores Sphinx compatibility.
209 Release 0.8 (2011-07-07)
210 ========================
214 - Some additions to the Docutils core are released under the 2-Clause BSD
219 - Handle language codes according to `BCP 47`_.
220 - If the specified langauage is not supported by Docutils,
221 warn and fall back to English.
222 - Math support: reStructuredText "math" role and directive,
223 ``math`` and ``math_block`` doctree elements.
224 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
226 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
230 - most directives now support a "name" option that attaches a
231 reference name. So you can write ::
233 .. figure:: image.png
236 as a short form of ::
240 .. figure:: image.png
242 Internationalization:
244 * Added lithuanian mappings.
250 - New setting "math-output" with support for HTML, MathML, and LaTeX.
254 - Convert image URI to a local file path.
255 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
256 has more than one paragraph (Wolfgang Scherer).
260 - New writer generating LaTeX code for compiling with ``xelatex``.
262 XeTeX uses unicode and modern font technologies.
264 * and fixes and enhancements here and there.
267 Release 0.7 (2010-07-07)
268 ========================
274 - Support SVG and SWF images (thanks to Stefan Rank).
275 - Generate valid XHTML for centered images with targets.
276 Use CSS classes instead of "align" tags for image alignment.
280 - Use the ``\url`` command for URLs (breaks long URLs instead of writing
282 - Preserve runs of spaces in 'inline literals'.
283 - Deprecate ``figure_footnotes`` setting.
284 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
285 - New ``latex_preamble`` setting.
286 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
287 - `hyperref` package called with ``unicode`` option (see the
288 `hyperref config tips`__ for how to override).
289 - Drop the special `output_encoding`__ default ("latin-1").
290 The Docutils wide default (usually "UTF-8") is used instead.
292 __ docs/user/config.html#docutils-footnotes
293 __ docs/user/latex.html#hyperlinks
294 __ docs/user/latex.html#output-encoding
298 - Titles level 1, that is ``.SH``, always uppercase.
299 - Apply patch from mg: literal text should be bold in man-pages.
303 * io.FileInput opens files as text files with universal newline support
304 (mode "rU", configurable with the new optional argument "mode").
308 - Python 3 support: copy test/ and tools/ to the build-dir
309 and convert Python sources with 2to3.
312 Release 0.6 (2009-10-11)
313 ========================
317 Docutils 0.5 is the last version supporting Python 2.2.
319 Docutils 0.6 is compatible with Python versions from 2.3 up to 2.6
320 and convertible to 3.1 code.
324 The "newlatex" writer is orphaned.
326 The recommended way to generate PDF output is to use either the
327 LaTeX2e writer or one of the alternatives listed at
328 http://docutils.sourceforge.net/docs/user/links.html#pdf.
332 - Allow length units for all length specifications.
333 - Allow percent sign in "scale" argument of "figure" and "image" directives.
334 - Bugfix: The "figalign" argument of a figure now works as intended
335 (aligning the figure not its contents).
336 - Align images with class "align-[right|center|left]"
337 (allows setting the alignment of an image in a figure).
338 - Hard tabs in literal inclusions are replaced by spaces. This is
339 configurable via the new "tab-width" option of the "include" directive
340 (a negative tab-width prevents tab expansion).
344 - ``--stylesheet`` and ``--stylesheet-path`` options now support a comma
345 separated list of stylesheets.
350 - font-encoding: "T1" (formerly implicitely set by 'ae').
351 - use-latex-toc: true (ToC with page numbers).
352 - use-latex-footnotes: true (no mixup with figures).
353 - Float placement defaults to "here definitely" (configurable).
354 - Align of image in a figure defaults to 'center'.
355 - Use class defaults for page margins ('typearea' now optional).
356 - Support LaTeX packages as ``--stylesheet`` arguments.
357 - Use ``bp`` for lengths without unit or unit ``pt``,
358 do not convert ``px`` to ``pt``.
359 - Do not use 'ae' and 'aeguill' packages if font-encoding is set to ''.
360 - Set sub- and superscript role argument as text not math.
361 - Support custom roles based on standard roles.
362 - Load packages and define macros only if required in the document.
363 - All Docutils specific LaTeX macros are prefixed with ``DU``.
364 - Better conformance to Docutils specifications with "use_latex_toc".
365 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
366 section numbering by LaTeX.
367 - Use default font in admonitions and sidebar.
368 - Typeset generic topic as "quote with title".
369 - Use template (file and configuration option).
370 - Render doctest blocks as literal blocks (indented).
374 - moved from sandbox to Doctutils core.
378 - moved from sandbox to Doctutils core.
381 Release 0.5 (2008-06-25)
382 ========================
388 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
389 universally supported now).
393 - Better bibTeX citation support.
394 - Add ``--literal-block-env``
398 - Changed to support new python.org website structure and
403 * Changed the directive API to a new object-oriented system.
404 (Compatibility for the old, functional-style directive interface is
405 retained.) See the updated `Creating reStructuredText Directives`__
408 __ docs/howto/rst-directives.html
410 * Allow ``+`` and ``:`` in reference names requested for citations.
414 * Added `Deploying Docutils Securely`__
416 __ docs/howto/security.txt
418 Internationalization:
420 * Added hebrew mappings.
424 * Configuration files are now assumed and required to be
427 * Added docutils/writers/html4css1/template.txt.
429 * Enhance emacs support.
432 Release 0.4 (2006-01-09)
433 ========================
437 Docutils 0.4.x is the last version that will support Python 2.1.
438 Docutils 0.5 will *not* be compatible with Python 2.1; Python 2.2
439 or later will be required.
441 Docutils 0.4.x is the last version that will make compromises in
442 its HTML output for Netscape Navigator 4. Docutils 0.5 will
443 require more up-to-date browsers (the exact definition is to be
448 * Added an `S5/HTML writer`__ and the rst2s5.py__ front end:
449 multi-platform, multi-browser HTML slide shows.
451 __ docs/user/slide-shows.html
452 __ docs/user/tools.html#rst2s5-py
454 * The newlatex2e writer is nearing completion.
456 * Added a DocTree reader, ``publish_doctree`` and
457 ``publish_from_doctree`` convenience functions, for document tree
458 extraction and reprocessing.
462 * Added directives: "container__" (generic block-level container),
463 "default-role__" (role used for \`backtick\` syntax), "title__"
464 (document title metadata), and "date__" (generate the current local
465 date, for substitution definitions).
467 __ docs/ref/rst/directives.html#container
468 __ docs/ref/rst/directives.html#default-role
469 __ docs/ref/rst/directives.html#title
470 __ docs/ref/rst/directives.html#date
472 * Length units are now supported for image__ sizes.
474 __ docs/ref/rst/directives.html#image
476 * Added `standard definition files`__ for special characters etc.
478 __ docs/ref/rst/definitions.html
480 Internationalization:
482 * Added Japanese and Simplified Chinese language mappings, and support
483 for double-width CJK-characters in tables and section titles.
487 * Added a `guide for distributors`__ (package maintainers) and a
488 `guide for developers`__.
490 __ docs/dev/distributing.html
491 __ docs/dev/hacking.html
495 * Added significant `Emacs support for reST`__.
497 __ docs/user/emacs.html
499 * Added a `--strip-comments`__ option.
501 __ docs/user/config.html#strip-comments
503 * `--embed-stylesheet`__ is now the default for the HTML writer
504 (rather than --link-stylesheet).
506 __ docs/user/config.html#embed-stylesheet
509 Release 0.3.9 (2005-05-26)
510 ==========================
512 * Added "file_insertion_enabled__" and "raw_enabled__" settings.
514 __ docs/user/config.html#file-insertion-enabled
515 __ docs/user/config.html#raw-enabled
517 * Added `auto-enumerated lists`__.
519 __ docs/ref/rst/restructuredtext.html#enumerated-lists
521 * Added `"header" and "footer"`__ directives.
523 __ docs/ref/rst/directives.html#document-header-footer
525 * Added "list-table__" directive.
527 __ docs/ref/rst/directives.html#list-table
529 * Added support for `section subtitles`__.
531 __ docs/user/config.html#sectsubtitle-xform
533 * Added "field_name_limit__" and "option_limit__" settings to HTML writer.
535 __ docs/user/config.html#field-name-limit
536 __ docs/user/config.html#option-limit
538 * Added "cloak_email_addresses__" setting to HTML writer.
540 __ docs/user/config.html#cloak-email-addresses
542 * UTF-8 BOMs are now removed from the input stream.
545 Release 0.3.7 (2004-12-24)
546 ==========================
548 * A special "`line block`__" syntax has been added. (Also see the
549 `quick reference`__.)
551 __ docs/ref/rst/restructuredtext.html#line-blocks
552 __ docs/user/rst/quickref.html#line-blocks
554 * Empty sections are now allowed.
556 * A "raw__" role has been added.
558 __ docs/ref/rst/roles.html#raw
560 * The LaTeX writer now escapes consecutive dashes (like "--" or "---")
561 so that they are no longer transformed by LaTeX to en or em dashes.
562 (Please see the FAQ__ for how to represent such dashes.)
564 __ FAQ.html#how-can-i-represent-esoteric-characters-e-g-character-entities-in-a-document
566 * A `dependency recorder`__ has been added.
568 __ docs/user/config.html#record-dependencies
570 * A directive has been added for `compound paragraphs`__.
572 __ docs/ref/rst/directives.html#compound-paragraph
575 Release 0.3.5 (2004-07-29)
576 ==========================
578 * Improved, extended and reorganized the documentation__.
582 * Added "csv-table__" directive.
584 __ docs/ref/rst/directives.html#csv-table