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 * remove deprecated options from the latex2e writer:
27 --use-latex-footnotes Alias for --docutils-footnotes (deprecated)
28 --figure-footnotes Use figure floats for footnote text (deprecated)
30 * »Prune« the doctree (no change to the reST input syntax):
32 - "doctest" element -> literal block with class argument,
33 - special admonitions (note, hint, warning, ...) -> generic "admonition"
34 element with class attribute and auto-generated title.
36 * Move to single source for Python 2 and Python 3, slowly.
37 See `Porting Python 2 Code to Python 3`_ and
38 `future: clean single-source support for Python 2/3`_
40 - Drop support for python 2.4 probably after 0.12 release.
42 .. _Porting Python 2 Code to Python 3: https://docs.python.org/3/howto/pyporting.html
43 .. _future\: clean single-source support for Python 2/3: http://python-future.org
49 Release 0.12 (2014-07-06)
50 =========================
52 Small changes only, release current state
54 Release 0.11 (2013-07-22)
55 =========================
59 - Apply [ 2714873 ] Fix for the overwritting of document attributes.
60 - Support embedded aliases within hyperlink references.
61 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
62 language module) before global search.
64 * docutils/parsers/rst/directives/tables.py
66 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
68 * docutils/writers/html4css1/__init__.py
69 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
70 - New setting `stylesheet_dirs` (see above).
72 Now, it is easy to add a custom stylesheet to Docutils' default
73 stylesheet with, e.g., ``--stylesheet_path='html4css1.css, mystyle.css'``
75 Changed behaviour of the default settings:
76 if there is a file ``html4css1.css`` in the working directory of the
77 process at launch, it is used instead of the one provided by Docutils
78 in the writer source directory.
80 - New default for math-output_: ``HTML math.css``.
81 - Avoid repeated class declarations in html4css1 writer
82 (modified version of patch [ 104 ]).
84 .. _math-output: docs/user/config.html#math-output
86 * docutils/writers/latex2e/__init__.py
88 - Drop the simple algorithm replacing straight double quotes with
89 English typographic ones.
90 Activate the SmartQuotes_ transform if you want this feature.
91 - New setting `stylesheet_dirs`: Comma-separated list of directories
92 where stylesheets are found. Used by `stylesheet_path` when expanding
93 relative path arguments.
95 .. _SmartQuotes: docs/user/config.html#smart-quotes
97 * docutils/writers/manpage.py
99 - Fix [3607063] handle lines starting with a period.
100 - Fix option separating comma was bold (thanks to Bill Morris).
102 Release 0.10 (2012-12-16)
103 =========================
107 Docutils 0.9.x is the last version supporting Python 2.3.
109 Docutils 0.10 is compatible with Python versions from 2.4 to 3.2
110 (cf. `Python 3 compatibility`_).
114 - SmartQuotes transform for typographic quotes and dashes.
116 - ``docutils/math``, ``docutils/error_reporting.py``, and
117 ``docutils/urischemes.py`` moved to the utils package.
118 Code importing these modules needs to adapt, e.g.::
121 import docutils.math as math
123 import docutils.utils.math as math
125 - enhanced math and error handling.
129 - FileInput/FileOutput: no system-exit on IOError.
130 The `handle_io_errors` option is ignored.
132 .. _Python 3 compatibility: README.html#python-3-compatibility
134 * docutils/writers/html4css1/__init__.py
136 - Use ``<code>`` tag for inline "code",
137 do not drop nested inline nodes (syntax highlight tokens).
138 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
139 - No line break after opening inline math tag.
141 * docutils/writers/latex2e/__init__.py, docutils/writers/xetex/__init__.py
143 - Fix section numbering by LaTeX.
145 * docutils/writers/s5_html/__init__.py
147 - Fix [ 3556388 ] Mathjax does not work with rst2s5.
150 Release 0.9.1 (2012-06-17)
151 ==========================
155 Several fixes for Python 3 usage.
159 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
160 installed in the PYTHONPATH. Converted tests are now
161 stored in ``docutils/test3/``, tools no longer need conversion.
163 If you installed one of Docutils versions 0.7 ... 0.9 with
164 ``setup.py install`` under Python 3, remove the spurious
165 ``test/`` and ``tools/`` directories in the site library root.
168 Release 0.9 (2012-05-02)
169 =========================
173 - reStructuredText "code" role and directive with syntax highlighting
175 - "code" option of the "include" directive.
177 .. _Pygments: http://pygments.org/
179 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
180 characters and "international" quotes around inline markup.
182 - Fix handling of missing stylesheets.
186 - Fix [ 2971827 ] and [ 3442827 ]
187 extras/roman.py moved to docutils/utils/roman.py
189 * docutils/utils.py -> docutils/utils/__init__.py
191 - docutils.utils is now a package (providing a place for sub-modules)
193 * docutils/writers/html4css1/__init__.py
195 - change default for `math-output` setting to MathJax
197 * docutils/writers/latex2e/__init__.py
199 - Support the `abbreviation` and `acronym` standard roles.
200 - Record only files required to generate the LaTeX source as dependencies.
201 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
202 when suppressing LaTeX section numbering.
205 Release 0.8.1 (2011-08-30)
206 ==========================
210 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
211 and [ 3395920 ] (correct copyright info for rst.el).
213 * docutils/writers/latex2e/__init__.py
215 - Clean up Babel language setting. Restores Sphinx compatibility.
218 Release 0.8 (2011-07-07)
219 ========================
223 - Some additions to the Docutils core are released under the 2-Clause BSD
228 - Handle language codes according to `BCP 47`_.
229 - If the specified langauage is not supported by Docutils,
230 warn and fall back to English.
231 - Math support: reStructuredText "math" role and directive,
232 ``math`` and ``math_block`` doctree elements.
233 - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
235 .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
239 - most directives now support a "name" option that attaches a
240 reference name. So you can write ::
242 .. figure:: image.png
245 as a short form of ::
249 .. figure:: image.png
251 Internationalization:
253 * Added lithuanian mappings.
259 - New setting "math-output" with support for HTML, MathML, and LaTeX.
263 - Convert image URI to a local file path.
264 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
265 has more than one paragraph (Wolfgang Scherer).
269 - New writer generating LaTeX code for compiling with ``xelatex``.
271 XeTeX uses unicode and modern font technologies.
273 * and fixes and enhancements here and there.
276 Release 0.7 (2010-07-07)
277 ========================
283 - Support SVG and SWF images (thanks to Stefan Rank).
284 - Generate valid XHTML for centered images with targets.
285 Use CSS classes instead of "align" tags for image alignment.
289 - Use the ``\url`` command for URLs (breaks long URLs instead of writing
291 - Preserve runs of spaces in 'inline literals'.
292 - Deprecate ``figure_footnotes`` setting.
293 - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
294 - New ``latex_preamble`` setting.
295 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
296 - `hyperref` package called with ``unicode`` option (see the
297 `hyperref config tips`__ for how to override).
298 - Drop the special `output_encoding`__ default ("latin-1").
299 The Docutils wide default (usually "UTF-8") is used instead.
301 __ docs/user/config.html#docutils-footnotes
302 __ docs/user/latex.html#hyperlinks
303 __ docs/user/latex.html#output-encoding
307 - Titles level 1, that is ``.SH``, always uppercase.
308 - Apply patch from mg: literal text should be bold in man-pages.
312 * io.FileInput opens files as text files with universal newline support
313 (mode "rU", configurable with the new optional argument "mode").
317 - Python 3 support: copy test/ and tools/ to the build-dir
318 and convert Python sources with 2to3.
321 Release 0.6 (2009-10-11)
322 ========================
326 Docutils 0.5 is the last version supporting Python 2.2.
328 Docutils 0.6 is compatible with Python versions from 2.3 up to 2.6
329 and convertible to 3.1 code.
333 The "newlatex" writer is orphaned.
335 The recommended way to generate PDF output is to use either the
336 LaTeX2e writer or one of the alternatives listed at
337 http://docutils.sourceforge.net/docs/user/links.html#pdf.
341 - Allow length units for all length specifications.
342 - Allow percent sign in "scale" argument of "figure" and "image" directives.
343 - Bugfix: The "figalign" argument of a figure now works as intended
344 (aligning the figure not its contents).
345 - Align images with class "align-[right|center|left]"
346 (allows setting the alignment of an image in a figure).
347 - Hard tabs in literal inclusions are replaced by spaces. This is
348 configurable via the new "tab-width" option of the "include" directive
349 (a negative tab-width prevents tab expansion).
353 - ``--stylesheet`` and ``--stylesheet-path`` options now support a comma
354 separated list of stylesheets.
359 - font-encoding: "T1" (formerly implicitely set by 'ae').
360 - use-latex-toc: true (ToC with page numbers).
361 - use-latex-footnotes: true (no mixup with figures).
362 - Float placement defaults to "here definitely" (configurable).
363 - Align of image in a figure defaults to 'center'.
364 - Use class defaults for page margins ('typearea' now optional).
365 - Support LaTeX packages as ``--stylesheet`` arguments.
366 - Use ``bp`` for lengths without unit or unit ``pt``,
367 do not convert ``px`` to ``pt``.
368 - Do not use 'ae' and 'aeguill' packages if font-encoding is set to ''.
369 - Set sub- and superscript role argument as text not math.
370 - Support custom roles based on standard roles.
371 - Load packages and define macros only if required in the document.
372 - All Docutils specific LaTeX macros are prefixed with ``DU``.
373 - Better conformance to Docutils specifications with "use_latex_toc".
374 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
375 section numbering by LaTeX.
376 - Use default font in admonitions and sidebar.
377 - Typeset generic topic as "quote with title".
378 - Use template (file and configuration option).
379 - Render doctest blocks as literal blocks (indented).
383 - moved from sandbox to Doctutils core.
387 - moved from sandbox to Doctutils core.
390 Release 0.5 (2008-06-25)
391 ========================
397 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
398 universally supported now).
402 - Better bibTeX citation support.
403 - Add ``--literal-block-env``
407 - Changed to support new python.org website structure and
412 * Changed the directive API to a new object-oriented system.
413 (Compatibility for the old, functional-style directive interface is
414 retained.) See the updated `Creating reStructuredText Directives`__
417 __ docs/howto/rst-directives.html
419 * Allow ``+`` and ``:`` in reference names requested for citations.
423 * Added `Deploying Docutils Securely`__
425 __ docs/howto/security.txt
427 Internationalization:
429 * Added hebrew mappings.
433 * Configuration files are now assumed and required to be
436 * Added docutils/writers/html4css1/template.txt.
438 * Enhance emacs support.
441 Release 0.4 (2006-01-09)
442 ========================
446 Docutils 0.4.x is the last version that will support Python 2.1.
447 Docutils 0.5 will *not* be compatible with Python 2.1; Python 2.2
448 or later will be required.
450 Docutils 0.4.x is the last version that will make compromises in
451 its HTML output for Netscape Navigator 4. Docutils 0.5 will
452 require more up-to-date browsers (the exact definition is to be
457 * Added an `S5/HTML writer`__ and the rst2s5.py__ front end:
458 multi-platform, multi-browser HTML slide shows.
460 __ docs/user/slide-shows.html
461 __ docs/user/tools.html#rst2s5-py
463 * The newlatex2e writer is nearing completion.
465 * Added a DocTree reader, ``publish_doctree`` and
466 ``publish_from_doctree`` convenience functions, for document tree
467 extraction and reprocessing.
471 * Added directives: "container__" (generic block-level container),
472 "default-role__" (role used for \`backtick\` syntax), "title__"
473 (document title metadata), and "date__" (generate the current local
474 date, for substitution definitions).
476 __ docs/ref/rst/directives.html#container
477 __ docs/ref/rst/directives.html#default-role
478 __ docs/ref/rst/directives.html#title
479 __ docs/ref/rst/directives.html#date
481 * Length units are now supported for image__ sizes.
483 __ docs/ref/rst/directives.html#image
485 * Added `standard definition files`__ for special characters etc.
487 __ docs/ref/rst/definitions.html
489 Internationalization:
491 * Added Japanese and Simplified Chinese language mappings, and support
492 for double-width CJK-characters in tables and section titles.
496 * Added a `guide for distributors`__ (package maintainers) and a
497 `guide for developers`__.
499 __ docs/dev/distributing.html
500 __ docs/dev/hacking.html
504 * Added significant `Emacs support for reST`__.
506 __ docs/user/emacs.html
508 * Added a `--strip-comments`__ option.
510 __ docs/user/config.html#strip-comments
512 * `--embed-stylesheet`__ is now the default for the HTML writer
513 (rather than --link-stylesheet).
515 __ docs/user/config.html#embed-stylesheet
518 Release 0.3.9 (2005-05-26)
519 ==========================
521 * Added "file_insertion_enabled__" and "raw_enabled__" settings.
523 __ docs/user/config.html#file-insertion-enabled
524 __ docs/user/config.html#raw-enabled
526 * Added `auto-enumerated lists`__.
528 __ docs/ref/rst/restructuredtext.html#enumerated-lists
530 * Added `"header" and "footer"`__ directives.
532 __ docs/ref/rst/directives.html#document-header-footer
534 * Added "list-table__" directive.
536 __ docs/ref/rst/directives.html#list-table
538 * Added support for `section subtitles`__.
540 __ docs/user/config.html#sectsubtitle-xform
542 * Added "field_name_limit__" and "option_limit__" settings to HTML writer.
544 __ docs/user/config.html#field-name-limit
545 __ docs/user/config.html#option-limit
547 * Added "cloak_email_addresses__" setting to HTML writer.
549 __ docs/user/config.html#cloak-email-addresses
551 * UTF-8 BOMs are now removed from the input stream.
554 Release 0.3.7 (2004-12-24)
555 ==========================
557 * A special "`line block`__" syntax has been added. (Also see the
558 `quick reference`__.)
560 __ docs/ref/rst/restructuredtext.html#line-blocks
561 __ docs/user/rst/quickref.html#line-blocks
563 * Empty sections are now allowed.
565 * A "raw__" role has been added.
567 __ docs/ref/rst/roles.html#raw
569 * The LaTeX writer now escapes consecutive dashes (like "--" or "---")
570 so that they are no longer transformed by LaTeX to en or em dashes.
571 (Please see the FAQ__ for how to represent such dashes.)
573 __ FAQ.html#how-can-i-represent-esoteric-characters-e-g-character-entities-in-a-document
575 * A `dependency recorder`__ has been added.
577 __ docs/user/config.html#record-dependencies
579 * A directive has been added for `compound paragraphs`__.
581 __ docs/ref/rst/directives.html#compound-paragraph
584 Release 0.3.5 (2004-07-29)
585 ==========================
587 * Improved, extended and reorganized the documentation__.
591 * Added "csv-table__" directive.
593 __ docs/ref/rst/directives.html#csv-table