summaryrefslogtreecommitdiff
path: root/docutils/transforms
Commit message (Collapse)AuthorAgeFilesLines
* Apply patch #148: Remove handlers for deprecated nodes from LaTeX writer.milde2019-03-121-1/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8251 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix #352 The docstring of Transformer class is wrong.milde2018-11-211-2/+3
| | | | | | Thanks to Takeshi KOMIYA for report and patch. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8238 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Revert the fix for backslash escaping in transforms.milde2018-11-211-11/+10
| | | | | | | | | Still waiting for review. Reverts last three commits from a local "feature branch" unintentionally applied to trunk with `git svn`. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8235 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* smartquotes: Use single backslashes for escaping.milde2018-11-201-10/+11
| | | | | | | | Let the smartquote transform take advantage of the representation of escaping backslashes in the doctree as null characters. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8234 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* DocInfo transform must not use "rawsource" attribute for escaping.milde2018-11-201-8/+6
| | | | | | | | | | | Remove implementation of escaping author-separators in bibliographic fields that relies on the "rawsource" attribute. This is not safe (rawsource is only for information and debugging purposes). A proper fix can be done with null-escaped text in the doctree. C.f. https://sourceforge.net/p/docutils/bugs/_discuss/thread/c8f86be6/74ed/attachment/null-escape-in-doctree2.patch git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8231 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Ignore backslash-escaped separators when extracting authors from a paragraph.milde2017-11-041-6/+18
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8198 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* "rawsource" attribute for text of inline elements and definition list terms.milde2017-11-041-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8197 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix bug #331: fixed the "trim" options of the "unicode" directive.goodger2017-10-201-4/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8188 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add field name as class argument to generic docinfo fields unconditionally.milde2017-10-061-4/+4
| | | | | | | | | | Also add the field name, if the DocInfo tranform fails to converts a bibliographic field list into a docinfo element. This allows styling of, e.g., a "copyright" element that also contains a license as separate paragraph when suppressing the warning (cf. Bug [325]). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8183 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* smartquotes transform: Keep "rawsource" when "educating" quotes.milde2017-07-261-1/+3
| | | | | | Thanks to Matthew Brett for report and patch. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8144 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 320 ] Russian docinfo fields not recognized.milde2017-06-181-3/+5
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8117 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* SmartQuotes transform: the "literal" nodes must be stored as tupel.milde2017-05-301-3/+3
| | | | | | | Nodes are checked against the list with "isinstance", which requires tuples and fails with lists. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8096 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* smart quotes: improve configurability of the transform, add more locales.milde2017-05-301-7/+17
| | | | | | | | | The lists of "literal" inline and block-level nodes not requiring smartquote conversions are now attributes of the Smartquote transform class. Added Bulgarian, Macedonian, and Norwegian (Bokmaal and Nynorsk) quotes. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8095 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix the "warn only once" mechanism of the smartquotes transform.milde2017-05-271-1/+1
| | | | | | Thanks to Jean François for test and report. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8084 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add "smartquotes-locales" setting.milde2017-05-081-0/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8068 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* unroll problematic refs to their origin in document when reporting errorsmilde2017-05-041-2/+7
| | | | | | | Patch by Kirill Smelkov. This is part of the (partially outdated) suite of patches on https://sourceforge.net/p/docutils/patches/67/. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8067 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Minor documentation fixes.milde2017-05-041-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8066 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Do not add a second ID to problematic references.milde2017-04-061-1/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8055 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update smartquotes: milde2017-03-311-1/+1
| | | | | | | | | | | | | * use the rules of the `Imprimerie nationale` as french default (full NBSP inside guillemets). * do not invert “ and ’ in en-UK: expect British authors to use u0027 APOSTROPHE for primary quotes and " for secondary quotes in the source. Set ``--smart-quotes=alt`` (or use en-UK-x-altquot) for inversion by `smartquotes`. * do not call ``educate_backticks`` in the SmartQuotes transform: backticks have a special meaning in rST. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8053 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply patch by Neil Schemenauer to fix bad string escapesmilde2016-12-101-1/+1
| | | | | | (http://permalink.gmane.org/gmane.text.docutils.devel/7521). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7995 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Revert application of [ 132 ] (SOURCE_DATE_EPOCH for "date" directive).milde2016-07-281-0/+4
| | | | | | | The patch is incomplete and does not solve the single use case. See https://sourceforge.net/p/docutils/patches/132/ for details. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7957 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add name of generic bibliographic fields as a "classes" attribute valuemilde2015-05-291-1/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7897 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Make the insertion of "admonition" class in the HTML writermilde2015-02-271-3/+2
| | | | | | (keeps doctree clean). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7808 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Use the "admonition" class argument for all admonitions milde2015-02-271-2/+3
| | | | | | (allows easier styling). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7807 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* change svn pep url to mercurialgrubert2014-10-081-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7773 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Consistently use "utf-8" (not "utf8") in magic comment giving source encoding.milde2013-06-041-1/+1
| | | | | | | Fixes problems with Docutils installed in "virtualenv" https://sourceforge.net/p/docutils/patches/105/ git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7668 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 3607029 ] traceback with embedded alias pointing to missing target.milde2013-03-071-4/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7624 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply [ 2714873 ] Fix for the overwritting of document attributes.milde2013-01-211-9/+25
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7595 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* smartquotes: Skip emtpy text tokens without updating the last character.milde2013-01-041-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7585 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* SmartQuotes transform: language-depended quote characters.milde2012-11-261-19/+59
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7540 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Smartquotes: correct "educating" of quotes around inline markup.milde2012-11-181-12/+35
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7537 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* More cases where we do not want to "educate" quotes.milde2012-10-181-1/+5
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7531 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add SmartQuotes transform for typographic quotes and dashes.milde2012-10-161-1/+23
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7530 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Cleanup: Use True/False for boolean valuesmilde2012-01-192-7/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7320 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Do not fail, if the specified langauage is not supported by Docutils,milde2010-09-283-4/+5
| | | | | | | warn and fall back to English. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6433 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 2788716 ] reporting problems in included files.milde2010-04-261-2/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6314 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Hack around not existing refname attribute. Test with docs/dev/todo.txt, ↵docutils-0.6@6167grubert2009-10-111-1/+4
| | | | | | see. |donate| git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6167 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 1627229 ] hyperlink references in substitutions.milde2009-10-061-0/+5
| | | | | | | Links in substitutions failed to convert, as the substitution directive did not note the refname. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6155 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Raise priority of StripClasses transform milde2009-09-031-1/+1
| | | | | | to exclude stripped sections from the toc git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6112 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* latex2e writer: improved native section numbering and ToCmilde2009-08-061-13/+7
| | | | | | | | | + Support for LaTeX generated ToC also with unnumbered sections. + If "sectnum_xform" is False, the "sectnum" directive triggers section numbering by LaTeX. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@6073 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Better conformance to Docutils specifications with "use_latex_toc".milde2009-06-261-13/+22
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5998 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Support "depth" argument of "contents" directive also with "use-latex-toc"milde2009-06-171-4/+17
| | | | | | | The docutils.transforms.parts.Contents transform is made aware of use_latex_toc, and does the right thing for LaTeX. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5989 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fix typomilde2009-05-141-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5947 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Merged abolish-userstring-haskey r5609:5616 to trunk.strank2008-07-283-18/+18
| | | | | | Backwards compatible changes for easier transition to py3.0. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5618 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* adjusted name and email addresswiemann2007-05-311-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5174 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved uniq() to utils.pywiemann2007-03-121-9/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5018 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed doc-string -- transforms are not reader-specific anymorewiemann2007-03-011-4/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4975 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added ``--strip-elements-with-class`` and ``--strip-class`` options ↵goodger2007-02-121-2/+36
| | | | | | (``strip_elements_with_classes`` and ``strip_classes`` settings) and ``StripClassesAndElements`` transform. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4913 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* cleaned up build_contents code (not worth a test case or history entry ↵wiemann2007-01-221-6/+1
| | | | | | though because it occurs for corner cases involving empty section titles) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4891 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* corrected docstringwiemann2006-08-171-6/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4691 929543f6-e4f2-0310-98a6-ba3bd3dd1d04