Drop support for Python 2.3.
[docutils.git] / RELEASE-NOTES.txt
blob9b074c37424b6b20f2972380975e6f7aa35ffc95
1 ========================
2  Docutils Release Notes
3 ========================
5 :Contact: grubert@users.sourceforge.net
6 :Date: $Date$
7 :Revision: $Revision$
8 :Web site: http://docutils.sourceforge.net/
9 :Copyright: This document has been placed in the public domain.
12 This document summarizes the major changes in recent releases.  For a
13 more detailed list of changes, please see the `Docutils History`_.
15 .. _Docutils History: HISTORY.html
17 .. contents::
19 Future changes
20 ==============
22 * docutils/math, docutils/error_reporting.py, and
23   docutils/urischemes.py will move to the utils package
24   Code importing these modules needs to adapt, e.g.::
26     try:
27         import docutils.math as math
28     except ImportError:
29         import docutils.utils.math as math
31 * docutils.io.FileInput/FileOutput will no longer do a
32   system-exit on IOError by default.
34   Roadmap:
36   :0.10: change of default behaviour to the equivalent of
37          ``handle_io_errors=False``,
38          ignore and deprecate the `handle_io_errors` option.
39          (allows us to clean up Docutils code and remove the error handling
40          code from the FileInput/FileOutput classes)
41   :0.10 + n:   deprecation warning to stderr if FileInput/FileOutput
42                is called with `handle_io_errors`,
43   :0.10 + n+1: remove the `handle_io_errors` option.
46 Changes Since 0.9.1
47 ===================
49 .. Note:: 
51    Docutils 0.9.x is the last version supporting Python 2.3.
52    
53    Docutils 0.10 is compatible with Python versions from 2.4 to 2.7,
54    as well as 3.1 and 3.2 (cf. `Python 3 compatibility`_).
56 .. _Python 3 compatibility: README.html#python-3-compatibility
59 Release 0.9.1 (2012-06-17)
60 ==========================
62 * General:
64   Several fixes for Python 3 usage.
66 * docutils/setup.py
68   - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
69     installed in the PYTHONPATH. Converted tests are now
70     stored in ``docutils/test3/``, tools no longer need conversion.
72     If you installed one of Docutils versions 0.7 ... 0.9 with
73     ``setup.py install`` under Python 3, remove the spurious
74     ``test/`` and ``tools/`` directories in the site library root.
77 Release 0.9 (2012-05-02)
78 =========================
80 * General:
82   - reStructuredText "code" role and directive with syntax highlighting
83     by Pygments_.
84   - "code" option of the "include" directive.
86   .. _Pygments: http://pygments.org/
88   - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
89     characters and "international" quotes around inline markup.
91   - Fix handling of missing stylesheets.
93 * setup.py
95   - Fix [ 2971827 ] and [ 3442827 ]
96     extras/roman.py moved to docutils/utils/roman.py
98 * docutils/utils.py -> docutils/utils/__init__.py
100   - docutils.utils is now a package (providing a place for sub-modules)
102 * docutils/writers/html4css1/__init__.py
104   - change default for `math-output` setting to MathJax
106 * docutils/writers/latex2e/__init__.py
108   - Support the `abbreviation` and `acronym` standard roles.
109   - Record only files required to generate the LaTeX source as dependencies.
110   - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
111     when suppressing LaTeX section numbering.
114 Release 0.8.1 (2011-08-30)
115 ==========================
117 * General:
119   - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
120     and [ 3395920 ] (correct copyright info for rst.el).
122 * docutils/writers/latex2e/__init__.py
124   - Clean up Babel language setting. Restores Sphinx compatibility.
127 Release 0.8 (2011-07-07)
128 ========================
130 * COPYING:
132   - Some additions to the Docutils core are released under the 2-Clause BSD
133     license.
135 * General:
137   - Handle language codes according to `BCP 47`_.
138   - If the specified langauage is not supported by Docutils,
139     warn and fall back to English.
140   - Math support: reStructuredText "math" role and directive,
141     ``math`` and ``math_block`` doctree elements.
142   - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
144   .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
146 * reStructuredText:
148   - most directives now support a "name" option that attaches a
149     reference name. So you can write ::
151       .. figure:: image.png
152          :name: figure name
154     as a short form of ::
156       .. _figure name:
158       .. figure:: image.png
160 Internationalization:
162 * Added lithuanian mappings.
164 Components:
166 * HTML writer:
168   - New setting "math-output" with support for HTML, MathML, and LaTeX.
170 * LaTeX2e writer:
172   - Convert image URI to a local file path.
173   - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
174     has more than one paragraph (Wolfgang Scherer).
176 * XeTeX writer:
178   - New writer generating LaTeX code for compiling with ``xelatex``.
180     XeTeX uses unicode and modern font technologies.
182 * and fixes and enhancements here and there.
185 Release 0.7 (2010-07-07)
186 ========================
188 Components:
190 * HTML writer:
192   - Support SVG and SWF images (thanks to Stefan Rank).
193   - Generate valid XHTML for centered images with targets.
194     Use CSS classes instead of "align" tags for image alignment.
196 * LaTeX2e writer:
198   - Use the ``\url`` command for URLs (breaks long URLs instead of writing
199     into the margin).
200   - Preserve runs of spaces in 'inline literals'.
201   - Deprecate ``figure_footnotes`` setting.
202   - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
203   - New ``latex_preamble`` setting.
204   - Use PDF standard fonts (Times/Helvetica/Courier) as default.
205   - `hyperref` package called with ``unicode`` option (see the
206     `hyperref config tips`__ for how to override).
207   - Drop the special `output_encoding`__ default ("latin-1").
208     The Docutils wide default (usually "UTF-8") is used instead.
210 __ docs/user/config.html#docutils-footnotes
211 __ docs/user/latex.html#hyperlinks
212 __ docs/user/latex.html#output-encoding
214 * manpage writer:
216   - Titles level 1, that is ``.SH``, always uppercase.
217   - Apply patch from mg: literal text should be bold in man-pages.
219 General:
221 * io.FileInput opens files as text files with universal newline support
222   (mode "rU", configurable with the new optional argument "mode").
224 * setup.py:
226   - Python 3 support: copy test/ and tools/ to the build-dir
227     and convert Python sources with 2to3.
230 Release 0.6 (2009-10-11)
231 ========================
233 .. Note::
235    Docutils 0.5 is the last version supporting Python 2.2.
237    Docutils 0.6 is compatible with Python versions from 2.3 up to 2.6
238    and convertible to 3.1 code.
240 .. note::
242    The "newlatex" writer is orphaned.
244    The recommended way to generate PDF output is to use either the
245    LaTeX2e writer or one of the alternatives listed at
246    http://docutils.sourceforge.net/docs/user/links.html#pdf.
248 * reStructuredText:
250   - Allow length units for all length specifications.
251   - Allow percent sign in "scale" argument of "figure" and "image" directives.
252   - Bugfix: The "figalign" argument of a figure now works as intended
253     (aligning the figure not its contents).
254   - Align images with class "align-[right|center|left]"
255     (allows setting the alignment of an image in a figure).
256   - Hard tabs in literal inclusions are replaced by spaces. This is
257     configurable via the new "tab-width" option of the "include" directive
258     (a negative tab-width prevents tab expansion).
260 * HTML writer:
262   - ``--stylesheet`` and ``--stylesheet-path`` options now support a comma
263     separated list of stylesheets.
265 * LaTeX2e writer:
267   - New defaults:
268     - font-encoding: "T1" (formerly implicitely set by 'ae').
269     - use-latex-toc: true (ToC with page numbers).
270     - use-latex-footnotes: true (no mixup with figures).
271     - Float placement defaults to "here definitely" (configurable).
272     - Align of image in a figure defaults to 'center'.
273     - Use class defaults for page margins ('typearea' now optional).
274   - Support LaTeX packages as ``--stylesheet`` arguments.
275   - Use ``bp`` for lengths without unit or unit ``pt``,
276     do not convert ``px`` to ``pt``.
277   - Do not use 'ae' and 'aeguill' packages if font-encoding is set to ''.
278   - Set sub- and superscript role argument as text not math.
279   - Support custom roles based on standard roles.
280   - Load packages and define macros only if required in the document.
281   - All Docutils specific LaTeX macros are prefixed with ``DU``.
282   - Better conformance to Docutils specifications with "use_latex_toc".
283   - If 'sectnum_xform' is False, the 'sectnum' directive triggers
284     section numbering by LaTeX.
285   - Use default font in admonitions and sidebar.
286   - Typeset generic topic as "quote with title".
287   - Use template (file and configuration option).
288   - Render doctest blocks as literal blocks (indented).
290 * ODT writer:
292   - moved from sandbox to Doctutils core.
294 * manpage writer:
296   - moved from sandbox to Doctutils core.
299 Release 0.5 (2008-06-25)
300 ========================
302 Components:
304 * HTML writer.
306   - Dropped all ``name`` attributes of ``a`` elements (``id`` is
307     universally supported now).
309 * LaTeX2e writer:
311   - Better bibTeX citation support.
312   - Add ``--literal-block-env``
314 * PEP writer:
316   - Changed to support new python.org website structure and
317     pep2pyramid.py.
319 reStructuredText:
321 * Changed the directive API to a new object-oriented system.
322   (Compatibility for the old, functional-style directive interface is
323   retained.)  See the updated `Creating reStructuredText Directives`__
324   how-to.
326   __ docs/howto/rst-directives.html
328 * Allow ``+`` and ``:`` in reference names requested for citations.
330 Documentation:
332 * Added `Deploying Docutils Securely`__
334   __ docs/howto/security.txt
336 Internationalization:
338 * Added hebrew mappings.
340 General:
342 * Configuration files are now assumed and required to be
343   UTF-8-encoded.
345 * Added docutils/writers/html4css1/template.txt.
347 * Enhance emacs support.
350 Release 0.4 (2006-01-09)
351 ========================
353 .. Note::
355    Docutils 0.4.x is the last version that will support Python 2.1.
356    Docutils 0.5 will *not* be compatible with Python 2.1; Python 2.2
357    or later will be required.
359    Docutils 0.4.x is the last version that will make compromises in
360    its HTML output for Netscape Navigator 4.  Docutils 0.5 will
361    require more up-to-date browsers (the exact definition is to be
362    determined).
364 Components:
366 * Added an `S5/HTML writer`__ and the rst2s5.py__ front end:
367   multi-platform, multi-browser HTML slide shows.
369   __ docs/user/slide-shows.html
370   __ docs/user/tools.html#rst2s5-py
372 * The newlatex2e writer is nearing completion.
374 * Added a DocTree reader, ``publish_doctree`` and
375   ``publish_from_doctree`` convenience functions, for document tree
376   extraction and reprocessing.
378 reStructuredText:
380 * Added directives: "container__" (generic block-level container),
381   "default-role__" (role used for \`backtick\` syntax), "title__"
382   (document title metadata), and "date__" (generate the current local
383   date, for substitution definitions).
385   __ docs/ref/rst/directives.html#container
386   __ docs/ref/rst/directives.html#default-role
387   __ docs/ref/rst/directives.html#title
388   __ docs/ref/rst/directives.html#date
390 * Length units are now supported for image__ sizes.
392   __ docs/ref/rst/directives.html#image
394 * Added `standard definition files`__ for special characters etc.
396   __ docs/ref/rst/definitions.html
398 Internationalization:
400 * Added Japanese and Simplified Chinese language mappings, and support
401   for double-width CJK-characters in tables and section titles.
403 Documentation:
405 * Added a `guide for distributors`__ (package maintainers) and a
406   `guide for developers`__.
408   __ docs/dev/distributing.html
409   __ docs/dev/hacking.html
411 General:
413 * Added significant `Emacs support for reST`__.
415   __ docs/user/emacs.html
417 * Added a `--strip-comments`__ option.
419   __ docs/user/config.html#strip-comments
421 * `--embed-stylesheet`__ is now the default for the HTML writer
422   (rather than --link-stylesheet).
424   __ docs/user/config.html#embed-stylesheet
427 Release 0.3.9 (2005-05-26)
428 ==========================
430 * Added "file_insertion_enabled__" and "raw_enabled__" settings.
432   __ docs/user/config.html#file-insertion-enabled
433   __ docs/user/config.html#raw-enabled
435 * Added `auto-enumerated lists`__.
437   __ docs/ref/rst/restructuredtext.html#enumerated-lists
439 * Added `"header" and "footer"`__ directives.
441   __ docs/ref/rst/directives.html#document-header-footer
443 * Added "list-table__" directive.
445   __ docs/ref/rst/directives.html#list-table
447 * Added support for `section subtitles`__.
449   __ docs/user/config.html#sectsubtitle-xform
451 * Added "field_name_limit__" and "option_limit__" settings to HTML writer.
453   __ docs/user/config.html#field-name-limit
454   __ docs/user/config.html#option-limit
456 * Added "cloak_email_addresses__" setting to HTML writer.
458   __ docs/user/config.html#cloak-email-addresses
460 * UTF-8 BOMs are now removed from the input stream.
463 Release 0.3.7 (2004-12-24)
464 ==========================
466 * A special "`line block`__" syntax has been added.  (Also see the
467   `quick reference`__.)
469   __ docs/ref/rst/restructuredtext.html#line-blocks
470   __ docs/user/rst/quickref.html#line-blocks
472 * Empty sections are now allowed.
474 * A "raw__" role has been added.
476   __ docs/ref/rst/roles.html#raw
478 * The LaTeX writer now escapes consecutive dashes (like "--" or "---")
479   so that they are no longer transformed by LaTeX to en or em dashes.
480   (Please see the FAQ__ for how to represent such dashes.)
482   __ FAQ.html#how-can-i-represent-esoteric-characters-e-g-character-entities-in-a-document
484 * A `dependency recorder`__ has been added.
486   __ docs/user/config.html#record-dependencies
488 * A directive has been added for `compound paragraphs`__.
490   __ docs/ref/rst/directives.html#compound-paragraph
493 Release 0.3.5 (2004-07-29)
494 ==========================
496 * Improved, extended and reorganized the documentation__.
498   __ docs/index.html
500 * Added "csv-table__" directive.
502   __ docs/ref/rst/directives.html#csv-table