HTML writer: add class arguments from field node to field-name and field-body.
[docutils.git] / RELEASE-NOTES.txt
blob7e6663f1bb8860921e6ef6484e96d7251344c8db
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.
38 Changes Since 0.12
39 ==================
41 * docutils/writers/
43   - New HTML writers generating `HTML 5`_ and `XHTML 1.1`_.
45     New stylesheet ``html-base.css`` for default layout using CSS 2.1.
47 * tools/
49   - New front-ends ``rst2xhtml.py`` and ``rst2html5.py`` for the
50     corresponding writers.
52 .. _HTML 5: http://www.w3.org/TR/html5/
53 .. _XHTML 1.1: http://www.w3.org/TR/xhtml11/
56 Release 0.12 (2014-07-06)
57 =========================
59 Small changes only, release current state
61 Release 0.11 (2013-07-22)
62 =========================
64 * General
66   - Apply [ 2714873 ] Fix for the overwritting of document attributes.
67   - Support embedded aliases within hyperlink references.
68   - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
69     language module) before global search.
71 * docutils/parsers/rst/directives/tables.py
73   - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
75 * docutils/writers/html4css1/__init__.py
76   - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
77   - New setting `stylesheet_dirs` (see above).
79     Now, it is easy to add a custom stylesheet to Docutils' default
80     stylesheet with, e.g., ``--stylesheet_path='html4css1.css, mystyle.css'``
82     Changed behaviour of the default settings:
83       if there is a file ``html4css1.css`` in the working directory of the
84       process at launch, it is used instead of the one provided by Docutils
85       in the writer source directory.
87   - New default for math-output_: ``HTML math.css``.
88   - Avoid repeated class declarations in html4css1 writer
89     (modified version of patch [ 104 ]).
91 .. _math-output: docs/user/config.html#math-output
93 * docutils/writers/latex2e/__init__.py
95   - Drop the simple algorithm replacing straight double quotes with
96     English typographic ones.
97     Activate the SmartQuotes_ transform if you want this feature.
98   - New setting `stylesheet_dirs`: Comma-separated list of directories
99     where stylesheets are found. Used by `stylesheet_path` when expanding
100     relative path arguments.
102 .. _SmartQuotes: docs/user/config.html#smart-quotes
104 * docutils/writers/manpage.py
106   - Fix [3607063] handle lines starting with a period.
107   - Fix option separating comma was bold (thanks to Bill Morris).
109 Release 0.10 (2012-12-16)
110 =========================
112 .. Note::
114    Docutils 0.9.x is the last version supporting Python 2.3.
116    Docutils 0.10 is compatible with Python versions from 2.4 to 3.2
117    (cf. `Python 3 compatibility`_).
119 * General:
121   - SmartQuotes transform for typographic quotes and dashes.
123   - ``docutils/math``, ``docutils/error_reporting.py``, and
124     ``docutils/urischemes.py`` moved to the utils package.
125     Code importing these modules needs to adapt, e.g.::
127       try:
128           import docutils.math as math
129       except ImportError:
130           import docutils.utils.math as math
132   - enhanced math and error handling.
134 * docutils/io.py
136   - FileInput/FileOutput: no system-exit on IOError.
137     The `handle_io_errors` option is ignored.
139 .. _Python 3 compatibility: README.html#python-3-compatibility
141 * docutils/writers/html4css1/__init__.py
143   - Use ``<code>`` tag for inline "code",
144     do not drop nested inline nodes (syntax highlight tokens).
145   - Customizable MathJax URL (based on patch by Dmitry Shachnev).
146   - No line break after opening inline math tag.
148 * docutils/writers/latex2e/__init__.py, docutils/writers/xetex/__init__.py
150   - Fix section numbering by LaTeX.
152 * docutils/writers/s5_html/__init__.py
154   - Fix [ 3556388 ] Mathjax does not work with rst2s5.
157 Release 0.9.1 (2012-06-17)
158 ==========================
160 * General:
162   Several fixes for Python 3 usage.
164 * docutils/setup.py
166   - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
167     installed in the PYTHONPATH. Converted tests are now
168     stored in ``docutils/test3/``, tools no longer need conversion.
170     If you installed one of Docutils versions 0.7 ... 0.9 with
171     ``setup.py install`` under Python 3, remove the spurious
172     ``test/`` and ``tools/`` directories in the site library root.
175 Release 0.9 (2012-05-02)
176 =========================
178 * General:
180   - reStructuredText "code" role and directive with syntax highlighting
181     by Pygments_.
182   - "code" option of the "include" directive.
184   .. _Pygments: http://pygments.org/
186   - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
187     characters and "international" quotes around inline markup.
189   - Fix handling of missing stylesheets.
191 * setup.py
193   - Fix [ 2971827 ] and [ 3442827 ]
194     extras/roman.py moved to docutils/utils/roman.py
196 * docutils/utils.py -> docutils/utils/__init__.py
198   - docutils.utils is now a package (providing a place for sub-modules)
200 * docutils/writers/html4css1/__init__.py
202   - change default for `math-output` setting to MathJax
204 * docutils/writers/latex2e/__init__.py
206   - Support the `abbreviation` and `acronym` standard roles.
207   - Record only files required to generate the LaTeX source as dependencies.
208   - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
209     when suppressing LaTeX section numbering.
212 Release 0.8.1 (2011-08-30)
213 ==========================
215 * General:
217   - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
218     and [ 3395920 ] (correct copyright info for rst.el).
220 * docutils/writers/latex2e/__init__.py
222   - Clean up Babel language setting. Restores Sphinx compatibility.
225 Release 0.8 (2011-07-07)
226 ========================
228 * COPYING:
230   - Some additions to the Docutils core are released under the 2-Clause BSD
231     license.
233 * General:
235   - Handle language codes according to `BCP 47`_.
236   - If the specified langauage is not supported by Docutils,
237     warn and fall back to English.
238   - Math support: reStructuredText "math" role and directive,
239     ``math`` and ``math_block`` doctree elements.
240   - Orphaned "python" reader and "newlatex2e" writer moved to the sandbox.
242   .. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
244 * reStructuredText:
246   - most directives now support a "name" option that attaches a
247     reference name. So you can write ::
249       .. figure:: image.png
250          :name: figure name
252     as a short form of ::
254       .. _figure name:
256       .. figure:: image.png
258 Internationalization:
260 * Added lithuanian mappings.
262 Components:
264 * HTML writer:
266   - New setting "math-output" with support for HTML, MathML, and LaTeX.
268 * LaTeX2e writer:
270   - Convert image URI to a local file path.
271   - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
272     has more than one paragraph (Wolfgang Scherer).
274 * XeTeX writer:
276   - New writer generating LaTeX code for compiling with ``xelatex``.
278     XeTeX uses unicode and modern font technologies.
280 * and fixes and enhancements here and there.
283 Release 0.7 (2010-07-07)
284 ========================
286 Components:
288 * HTML writer:
290   - Support SVG and SWF images (thanks to Stefan Rank).
291   - Generate valid XHTML for centered images with targets.
292     Use CSS classes instead of "align" tags for image alignment.
294 * LaTeX2e writer:
296   - Use the ``\url`` command for URLs (breaks long URLs instead of writing
297     into the margin).
298   - Preserve runs of spaces in 'inline literals'.
299   - Deprecate ``figure_footnotes`` setting.
300   - Rename ``use_latex_footnotes`` setting to `docutils_footnotes`__.
301   - New ``latex_preamble`` setting.
302   - Use PDF standard fonts (Times/Helvetica/Courier) as default.
303   - `hyperref` package called with ``unicode`` option (see the
304     `hyperref config tips`__ for how to override).
305   - Drop the special `output_encoding`__ default ("latin-1").
306     The Docutils wide default (usually "UTF-8") is used instead.
308 __ docs/user/config.html#docutils-footnotes
309 __ docs/user/latex.html#hyperlinks
310 __ docs/user/latex.html#output-encoding
312 * manpage writer:
314   - Titles level 1, that is ``.SH``, always uppercase.
315   - Apply patch from mg: literal text should be bold in man-pages.
317 General:
319 * io.FileInput opens files as text files with universal newline support
320   (mode "rU", configurable with the new optional argument "mode").
322 * setup.py:
324   - Python 3 support: copy test/ and tools/ to the build-dir
325     and convert Python sources with 2to3.
328 Release 0.6 (2009-10-11)
329 ========================
331 .. Note::
333    Docutils 0.5 is the last version supporting Python 2.2.
335    Docutils 0.6 is compatible with Python versions from 2.3 up to 2.6
336    and convertible to 3.1 code.
338 .. note::
340    The "newlatex" writer is orphaned.
342    The recommended way to generate PDF output is to use either the
343    LaTeX2e writer or one of the alternatives listed at
344    http://docutils.sourceforge.net/docs/user/links.html#pdf.
346 * reStructuredText:
348   - Allow length units for all length specifications.
349   - Allow percent sign in "scale" argument of "figure" and "image" directives.
350   - Bugfix: The "figalign" argument of a figure now works as intended
351     (aligning the figure not its contents).
352   - Align images with class "align-[right|center|left]"
353     (allows setting the alignment of an image in a figure).
354   - Hard tabs in literal inclusions are replaced by spaces. This is
355     configurable via the new "tab-width" option of the "include" directive
356     (a negative tab-width prevents tab expansion).
358 * HTML writer:
360   - ``--stylesheet`` and ``--stylesheet-path`` options now support a comma
361     separated list of stylesheets.
363 * LaTeX2e writer:
365   - New defaults:
366     - font-encoding: "T1" (formerly implicitely set by 'ae').
367     - use-latex-toc: true (ToC with page numbers).
368     - use-latex-footnotes: true (no mixup with figures).
369     - Float placement defaults to "here definitely" (configurable).
370     - Align of image in a figure defaults to 'center'.
371     - Use class defaults for page margins ('typearea' now optional).
372   - Support LaTeX packages as ``--stylesheet`` arguments.
373   - Use ``bp`` for lengths without unit or unit ``pt``,
374     do not convert ``px`` to ``pt``.
375   - Do not use 'ae' and 'aeguill' packages if font-encoding is set to ''.
376   - Set sub- and superscript role argument as text not math.
377   - Support custom roles based on standard roles.
378   - Load packages and define macros only if required in the document.
379   - All Docutils specific LaTeX macros are prefixed with ``DU``.
380   - Better conformance to Docutils specifications with "use_latex_toc".
381   - If 'sectnum_xform' is False, the 'sectnum' directive triggers
382     section numbering by LaTeX.
383   - Use default font in admonitions and sidebar.
384   - Typeset generic topic as "quote with title".
385   - Use template (file and configuration option).
386   - Render doctest blocks as literal blocks (indented).
388 * ODT writer:
390   - moved from sandbox to Doctutils core.
392 * manpage writer:
394   - moved from sandbox to Doctutils core.
397 Release 0.5 (2008-06-25)
398 ========================
400 Components:
402 * HTML writer.
404   - Dropped all ``name`` attributes of ``a`` elements (``id`` is
405     universally supported now).
407 * LaTeX2e writer:
409   - Better bibTeX citation support.
410   - Add ``--literal-block-env``
412 * PEP writer:
414   - Changed to support new python.org website structure and
415     pep2pyramid.py.
417 reStructuredText:
419 * Changed the directive API to a new object-oriented system.
420   (Compatibility for the old, functional-style directive interface is
421   retained.)  See the updated `Creating reStructuredText Directives`__
422   how-to.
424   __ docs/howto/rst-directives.html
426 * Allow ``+`` and ``:`` in reference names requested for citations.
428 Documentation:
430 * Added `Deploying Docutils Securely`__
432   __ docs/howto/security.txt
434 Internationalization:
436 * Added hebrew mappings.
438 General:
440 * Configuration files are now assumed and required to be
441   UTF-8-encoded.
443 * Added docutils/writers/html4css1/template.txt.
445 * Enhance emacs support.
448 Release 0.4 (2006-01-09)
449 ========================
451 .. Note::
453    Docutils 0.4.x is the last version that will support Python 2.1.
454    Docutils 0.5 will *not* be compatible with Python 2.1; Python 2.2
455    or later will be required.
457    Docutils 0.4.x is the last version that will make compromises in
458    its HTML output for Netscape Navigator 4.  Docutils 0.5 will
459    require more up-to-date browsers (the exact definition is to be
460    determined).
462 Components:
464 * Added an `S5/HTML writer`__ and the rst2s5.py__ front end:
465   multi-platform, multi-browser HTML slide shows.
467   __ docs/user/slide-shows.html
468   __ docs/user/tools.html#rst2s5-py
470 * The newlatex2e writer is nearing completion.
472 * Added a DocTree reader, ``publish_doctree`` and
473   ``publish_from_doctree`` convenience functions, for document tree
474   extraction and reprocessing.
476 reStructuredText:
478 * Added directives: "container__" (generic block-level container),
479   "default-role__" (role used for \`backtick\` syntax), "title__"
480   (document title metadata), and "date__" (generate the current local
481   date, for substitution definitions).
483   __ docs/ref/rst/directives.html#container
484   __ docs/ref/rst/directives.html#default-role
485   __ docs/ref/rst/directives.html#title
486   __ docs/ref/rst/directives.html#date
488 * Length units are now supported for image__ sizes.
490   __ docs/ref/rst/directives.html#image
492 * Added `standard definition files`__ for special characters etc.
494   __ docs/ref/rst/definitions.html
496 Internationalization:
498 * Added Japanese and Simplified Chinese language mappings, and support
499   for double-width CJK-characters in tables and section titles.
501 Documentation:
503 * Added a `guide for distributors`__ (package maintainers) and a
504   `guide for developers`__.
506   __ docs/dev/distributing.html
507   __ docs/dev/hacking.html
509 General:
511 * Added significant `Emacs support for reST`__.
513   __ docs/user/emacs.html
515 * Added a `--strip-comments`__ option.
517   __ docs/user/config.html#strip-comments
519 * `--embed-stylesheet`__ is now the default for the HTML writer
520   (rather than --link-stylesheet).
522   __ docs/user/config.html#embed-stylesheet
525 Release 0.3.9 (2005-05-26)
526 ==========================
528 * Added "file_insertion_enabled__" and "raw_enabled__" settings.
530   __ docs/user/config.html#file-insertion-enabled
531   __ docs/user/config.html#raw-enabled
533 * Added `auto-enumerated lists`__.
535   __ docs/ref/rst/restructuredtext.html#enumerated-lists
537 * Added `"header" and "footer"`__ directives.
539   __ docs/ref/rst/directives.html#document-header-footer
541 * Added "list-table__" directive.
543   __ docs/ref/rst/directives.html#list-table
545 * Added support for `section subtitles`__.
547   __ docs/user/config.html#sectsubtitle-xform
549 * Added "field_name_limit__" and "option_limit__" settings to HTML writer.
551   __ docs/user/config.html#field-name-limit
552   __ docs/user/config.html#option-limit
554 * Added "cloak_email_addresses__" setting to HTML writer.
556   __ docs/user/config.html#cloak-email-addresses
558 * UTF-8 BOMs are now removed from the input stream.
561 Release 0.3.7 (2004-12-24)
562 ==========================
564 * A special "`line block`__" syntax has been added.  (Also see the
565   `quick reference`__.)
567   __ docs/ref/rst/restructuredtext.html#line-blocks
568   __ docs/user/rst/quickref.html#line-blocks
570 * Empty sections are now allowed.
572 * A "raw__" role has been added.
574   __ docs/ref/rst/roles.html#raw
576 * The LaTeX writer now escapes consecutive dashes (like "--" or "---")
577   so that they are no longer transformed by LaTeX to en or em dashes.
578   (Please see the FAQ__ for how to represent such dashes.)
580   __ FAQ.html#how-can-i-represent-esoteric-characters-e-g-character-entities-in-a-document
582 * A `dependency recorder`__ has been added.
584   __ docs/user/config.html#record-dependencies
586 * A directive has been added for `compound paragraphs`__.
588   __ docs/ref/rst/directives.html#compound-paragraph
591 Release 0.3.5 (2004-07-29)
592 ==========================
594 * Improved, extended and reorganized the documentation__.
596   __ docs/index.html
598 * Added "csv-table__" directive.
600   __ docs/ref/rst/directives.html#csv-table