Release 0.13.1: closed "Changes Since ..." section
[docutils.git] / RELEASE-NOTES.txt
blobaa92c914e13fc649e1aa5594162dd76a9415626c
1 ========================
2  Docutils Release Notes
3 ========================
5 :Contact: grubert@users.sourceforge.net
6 :Maintainer: docutils-develop@lists.sourceforge.net
7 :Date: $Date$
8 :Revision: $Revision$
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
18 .. contents::
20 Future changes
21 ==============
23 * remove the `handle_io_errors` option from io.FileInput/Output.
25   .. used by Sphinx up to version 1.3.1,
26      see https://github.com/sphinx-doc/sphinx/issues/1834
28 * »Prune« the doctree (no change to the reST input syntax):
30   - "doctest" element -> literal block with "pycon" (python-console)
31     class argument and syntax highlight (like the "code" directive),
32   - special admonitions (note, hint, warning, ...) -> generic "admonition"
33     element with class attribute and auto-generated title.
35 * Drop support for python 2.4 after release 0.13.
37 Release 0.13.1 (2016-12-09)
38 ===========================
40 * docutils/writers/html_plain
42   - New HTML writer generating `HTML 5`_.
45 * tools/
47   - New front-end ``rst2html5.py``.
49 .. _HTML 5: http://www.w3.org/TR/html5/
51 * languages: persian/farsi and latvian/la mappings.
53 * change default base url for :rfc: to http://tools.ietf.org/html/  
55 * tables accept widths, a list and align 
57 * latex2e: Fix admonition width, remove deprecated options, better tablewidth auto, ... 
59 * rst.el : The problem with ``electric-indent-mode`` has been fixed.
62 Release 0.12 (2014-07-06)
63 =========================
65 Small changes only, release current state
67 Release 0.11 (2013-07-22)
68 =========================
70 * General
72   - Apply [ 2714873 ] Fix for the overwritting of document attributes.
73   - Support embedded aliases within hyperlink references.
74   - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
75     language module) before global search.
77 * docutils/parsers/rst/directives/tables.py
79   - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
81 * docutils/writers/html4css1/__init__.py
82   - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
83   - New setting `stylesheet_dirs` (see above).
85     Now, it is easy to add a custom stylesheet to Docutils' default
86     stylesheet with, e.g., ``--stylesheet_path='html4css1.css, mystyle.css'``
88     Changed behaviour of the default settings:
89       if there is a file ``html4css1.css`` in the working directory of the
90       process at launch, it is used instead of the one provided by Docutils
91       in the writer source directory.
93   - New default for math-output_: ``HTML math.css``.
94   - Avoid repeated class declarations in html4css1 writer
95     (modified version of patch [ 104 ]).
97 .. _math-output: docs/user/config.html#math-output
99 * docutils/writers/latex2e/__init__.py
101   - Drop the simple algorithm replacing straight double quotes with
102     English typographic ones.
103     Activate the SmartQuotes_ transform if you want this feature.
104   - New setting `stylesheet_dirs`: Comma-separated list of directories
105     where stylesheets are found. Used by `stylesheet_path` when expanding
106     relative path arguments.
108 .. _SmartQuotes: docs/user/config.html#smart-quotes
110 * docutils/writers/manpage.py
112   - Fix [3607063] handle lines starting with a period.
113   - Fix option separating comma was bold (thanks to Bill Morris).
115 Release 0.10 (2012-12-16)
116 =========================
118 .. Note::
120    Docutils 0.9.x is the last version supporting Python 2.3.
122    Docutils 0.10 is compatible with Python versions from 2.4 to 3.2
123    (cf. `Python 3 compatibility`_).
125 * General:
127   - SmartQuotes transform for typographic quotes and dashes.
129   - ``docutils/math``, ``docutils/error_reporting.py``, and
130     ``docutils/urischemes.py`` moved to the utils package.
131     Code importing these modules needs to adapt, e.g.::
133       try:
134           import docutils.math as math
135       except ImportError:
136           import docutils.utils.math as math
138   - enhanced math and error handling.
140 * docutils/io.py
142   - FileInput/FileOutput: no system-exit on IOError.
143     The `handle_io_errors` option is ignored.
145 .. _Python 3 compatibility: README.html#python-3-compatibility
147 * docutils/writers/html4css1/__init__.py
149   - Use ``<code>`` tag for inline "code",
150     do not drop nested inline nodes (syntax highlight tokens).
151   - Customizable MathJax URL (based on patch by Dmitry Shachnev).
152   - No line break after opening inline math tag.
154 * docutils/writers/latex2e/__init__.py, docutils/writers/xetex/__init__.py
156   - Fix section numbering by LaTeX.
158 * docutils/writers/s5_html/__init__.py
160   - Fix [ 3556388 ] Mathjax does not work with rst2s5.
163 Release 0.9.1 (2012-06-17)
164 ==========================
166 * General:
168   Several fixes for Python 3 usage.
170 * docutils/setup.py
172   - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
173     installed in the PYTHONPATH. Converted tests are now
174     stored in ``docutils/test3/``, tools no longer need conversion.
176     If you installed one of Docutils versions 0.7 ... 0.9 with
177     ``setup.py install`` under Python 3, remove the spurious
178     ``test/`` and ``tools/`` directories in the site library root.
181 Release 0.9 (2012-05-02)
182 =========================
184 * General:
186   - reStructuredText "code" role and directive with syntax highlighting
187     by Pygments_.
188   - "code" option of the "include" directive.
190   .. _Pygments: http://pygments.org/
192   - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
193     characters and "international" quotes around inline markup.
195   - Fix handling of missing stylesheets.
197 * setup.py
199   - Fix [ 2971827 ] and [ 3442827 ]
200     extras/roman.py moved to docutils/utils/roman.py
202 * docutils/utils.py -> docutils/utils/__init__.py
204   - docutils.utils is now a package (providing a place for sub-modules)
206 * docutils/writers/html4css1/__init__.py
208   - change default for `math-output` setting to MathJax
210 * docutils/writers/latex2e/__init__.py
212   - Support the `abbreviation` and `acronym` standard roles.
213   - Record only files required to generate the LaTeX source as dependencies.
214   - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
215     when suppressing LaTeX section numbering.
218 Release 0.8.1 (2011-08-30)
219 ==========================
221 * General:
223   - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
224     and [ 3395920 ] (correct copyright info for rst.el).
226 * docutils/writers/latex2e/__init__.py
228   - Clean up Babel language setting. Restores Sphinx compatibility.
231 Release 0.8 (2011-07-07)
232 ========================
234 * COPYING:
236   - Some additions to the Docutils core are released under the 2-Clause BSD
237     license.
239 * General:
241   - Handle language codes according to `BCP 47`_.
242   - If the specified langauage is not supported by Docutils,
243     warn and fall back to English.
244   - Math support: reStructuredText "math" role and directive,
245     ``math`` and ``math_block`` doctree elements.
246   - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
248   .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
250 * reStructuredText:
252   - most directives now support a "name" option that attaches a
253     reference name. So you can write ::
255       .. figure:: image.png
256          :name: figure name
258     as a short form of ::
260       .. _figure name:
262       .. figure:: image.png
264 Internationalization:
266 * Added lithuanian mappings.
268 Components:
270 * HTML writer:
272   - New setting "math-output" with support for HTML, MathML, and LaTeX.
274 * LaTeX2e writer:
276   - Convert image URI to a local file path.
277   - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
278     has more than one paragraph (Wolfgang Scherer).
280 * XeTeX writer:
282   - New writer generating LaTeX code for compiling with ``xelatex``.
284     XeTeX uses unicode and modern font technologies.
286 * and fixes and enhancements here and there.
289 Release 0.7 (2010-07-07)
290 ========================
292 Components:
294 * HTML writer:
296   - Support SVG and SWF images (thanks to Stefan Rank).
297   - Generate valid XHTML for centered images with targets.
298     Use CSS classes instead of "align" tags for image alignment.
300 * LaTeX2e writer:
302   - Use the ``\url`` command for URLs (breaks long URLs instead of writing
303     into the margin).
304   - Preserve runs of spaces in 'inline literals'.
305   - Deprecate ``figure_footnotes`` setting.
306   - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
307   - New ``latex_preamble`` setting.
308   - Use PDF standard fonts (Times/Helvetica/Courier) as default.
309   - `hyperref` package called with ``unicode`` option (see the
310     `hyperref config tips`__ for how to override).
311   - Drop the special `output_encoding`__ default ("latin-1").
312     The Docutils wide default (usually "UTF-8") is used instead.
314 __ docs/user/config.html#docutils-footnotes
315 __ docs/user/latex.html#hyperlinks
316 __ docs/user/latex.html#output-encoding
318 * manpage writer:
320   - Titles level 1, that is ``.SH``, always uppercase.
321   - Apply patch from mg: literal text should be bold in man-pages.
323 General:
325 * io.FileInput opens files as text files with universal newline support
326   (mode "rU", configurable with the new optional argument "mode").
328 * setup.py:
330   - Python 3 support: copy test/ and tools/ to the build-dir
331     and convert Python sources with 2to3.
334 Release 0.6 (2009-10-11)
335 ========================
337 .. Note::
339    Docutils 0.5 is the last version supporting Python 2.2.
341    Docutils 0.6 is compatible with Python versions from 2.3 up to 2.6
342    and convertible to 3.1 code.
344 .. note::
346    The "newlatex" writer is orphaned.
348    The recommended way to generate PDF output is to use either the
349    LaTeX2e writer or one of the alternatives listed at
350    http://docutils.sourceforge.net/docs/user/links.html#pdf.
352 * reStructuredText:
354   - Allow length units for all length specifications.
355   - Allow percent sign in "scale" argument of "figure" and "image" directives.
356   - Bugfix: The "figalign" argument of a figure now works as intended
357     (aligning the figure not its contents).
358   - Align images with class "align-[right|center|left]"
359     (allows setting the alignment of an image in a figure).
360   - Hard tabs in literal inclusions are replaced by spaces. This is
361     configurable via the new "tab-width" option of the "include" directive
362     (a negative tab-width prevents tab expansion).
364 * HTML writer:
366   - ``--stylesheet`` and ``--stylesheet-path`` options now support a comma
367     separated list of stylesheets.
369 * LaTeX2e writer:
371   - New defaults:
372     - font-encoding: "T1" (formerly implicitely set by 'ae').
373     - use-latex-toc: true (ToC with page numbers).
374     - use-latex-footnotes: true (no mixup with figures).
375     - Float placement defaults to "here definitely" (configurable).
376     - Align of image in a figure defaults to 'center'.
377     - Use class defaults for page margins ('typearea' now optional).
378   - Support LaTeX packages as ``--stylesheet`` arguments.
379   - Use ``bp`` for lengths without unit or unit ``pt``,
380     do not convert ``px`` to ``pt``.
381   - Do not use 'ae' and 'aeguill' packages if font-encoding is set to ''.
382   - Set sub- and superscript role argument as text not math.
383   - Support custom roles based on standard roles.
384   - Load packages and define macros only if required in the document.
385   - All Docutils specific LaTeX macros are prefixed with ``DU``.
386   - Better conformance to Docutils specifications with "use_latex_toc".
387   - If 'sectnum_xform' is False, the 'sectnum' directive triggers
388     section numbering by LaTeX.
389   - Use default font in admonitions and sidebar.
390   - Typeset generic topic as "quote with title".
391   - Use template (file and configuration option).
392   - Render doctest blocks as literal blocks (indented).
394 * ODT writer:
396   - moved from sandbox to Doctutils core.
398 * manpage writer:
400   - moved from sandbox to Doctutils core.
403 Release 0.5 (2008-06-25)
404 ========================
406 Components:
408 * HTML writer.
410   - Dropped all ``name`` attributes of ``a`` elements (``id`` is
411     universally supported now).
413 * LaTeX2e writer:
415   - Better bibTeX citation support.
416   - Add ``--literal-block-env``
418 * PEP writer:
420   - Changed to support new python.org website structure and
421     pep2pyramid.py.
423 reStructuredText:
425 * Changed the directive API to a new object-oriented system.
426   (Compatibility for the old, functional-style directive interface is
427   retained.)  See the updated `Creating reStructuredText Directives`__
428   how-to.
430   __ docs/howto/rst-directives.html
432 * Allow ``+`` and ``:`` in reference names requested for citations.
434 Documentation:
436 * Added `Deploying Docutils Securely`__
438   __ docs/howto/security.txt
440 Internationalization:
442 * Added hebrew mappings.
444 General:
446 * Configuration files are now assumed and required to be
447   UTF-8-encoded.
449 * Added docutils/writers/html4css1/template.txt.
451 * Enhance emacs support.
454 Release 0.4 (2006-01-09)
455 ========================
457 .. Note::
459    Docutils 0.4.x is the last version that will support Python 2.1.
460    Docutils 0.5 will *not* be compatible with Python 2.1; Python 2.2
461    or later will be required.
463    Docutils 0.4.x is the last version that will make compromises in
464    its HTML output for Netscape Navigator 4.  Docutils 0.5 will
465    require more up-to-date browsers (the exact definition is to be
466    determined).
468 Components:
470 * Added an `S5/HTML writer`__ and the rst2s5.py__ front end:
471   multi-platform, multi-browser HTML slide shows.
473   __ docs/user/slide-shows.html
474   __ docs/user/tools.html#rst2s5-py
476 * The newlatex2e writer is nearing completion.
478 * Added a DocTree reader, ``publish_doctree`` and
479   ``publish_from_doctree`` convenience functions, for document tree
480   extraction and reprocessing.
482 reStructuredText:
484 * Added directives: "container__" (generic block-level container),
485   "default-role__" (role used for \`backtick\` syntax), "title__"
486   (document title metadata), and "date__" (generate the current local
487   date, for substitution definitions).
489   __ docs/ref/rst/directives.html#container
490   __ docs/ref/rst/directives.html#default-role
491   __ docs/ref/rst/directives.html#title
492   __ docs/ref/rst/directives.html#date
494 * Length units are now supported for image__ sizes.
496   __ docs/ref/rst/directives.html#image
498 * Added `standard definition files`__ for special characters etc.
500   __ docs/ref/rst/definitions.html
502 Internationalization:
504 * Added Japanese and Simplified Chinese language mappings, and support
505   for double-width CJK-characters in tables and section titles.
507 Documentation:
509 * Added a `guide for distributors`__ (package maintainers) and a
510   `guide for developers`__.
512   __ docs/dev/distributing.html
513   __ docs/dev/hacking.html
515 General:
517 * Added significant `Emacs support for reST`__.
519   __ docs/user/emacs.html
521 * Added a `--strip-comments`__ option.
523   __ docs/user/config.html#strip-comments
525 * `--embed-stylesheet`__ is now the default for the HTML writer
526   (rather than --link-stylesheet).
528   __ docs/user/config.html#embed-stylesheet
531 Release 0.3.9 (2005-05-26)
532 ==========================
534 * Added "file_insertion_enabled__" and "raw_enabled__" settings.
536   __ docs/user/config.html#file-insertion-enabled
537   __ docs/user/config.html#raw-enabled
539 * Added `auto-enumerated lists`__.
541   __ docs/ref/rst/restructuredtext.html#enumerated-lists
543 * Added `"header" and "footer"`__ directives.
545   __ docs/ref/rst/directives.html#document-header-footer
547 * Added "list-table__" directive.
549   __ docs/ref/rst/directives.html#list-table
551 * Added support for `section subtitles`__.
553   __ docs/user/config.html#sectsubtitle-xform
555 * Added "field_name_limit__" and "option_limit__" settings to HTML writer.
557   __ docs/user/config.html#field-name-limit
558   __ docs/user/config.html#option-limit
560 * Added "cloak_email_addresses__" setting to HTML writer.
562   __ docs/user/config.html#cloak-email-addresses
564 * UTF-8 BOMs are now removed from the input stream.
567 Release 0.3.7 (2004-12-24)
568 ==========================
570 * A special "`line block`__" syntax has been added.  (Also see the
571   `quick reference`__.)
573   __ docs/ref/rst/restructuredtext.html#line-blocks
574   __ docs/user/rst/quickref.html#line-blocks
576 * Empty sections are now allowed.
578 * A "raw__" role has been added.
580   __ docs/ref/rst/roles.html#raw
582 * The LaTeX writer now escapes consecutive dashes (like "--" or "---")
583   so that they are no longer transformed by LaTeX to en or em dashes.
584   (Please see the FAQ__ for how to represent such dashes.)
586   __ FAQ.html#how-can-i-represent-esoteric-characters-e-g-character-entities-in-a-document
588 * A `dependency recorder`__ has been added.
590   __ docs/user/config.html#record-dependencies
592 * A directive has been added for `compound paragraphs`__.
594   __ docs/ref/rst/directives.html#compound-paragraph
597 Release 0.3.5 (2004-07-29)
598 ==========================
600 * Improved, extended and reorganized the documentation__.
602   __ docs/index.html
604 * Added "csv-table__" directive.
606   __ docs/ref/rst/directives.html#csv-table