summaryrefslogtreecommitdiff
path: root/docutils/transforms
Commit message (Collapse)AuthorAgeFilesLines
* some more subdoc pruningwiemann2007-08-242-7/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5426 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* push system messages up to super-document so they do not get lost (tested);wiemann2007-08-241-56/+44
| | | | | | | | expand ~ in docset-root and subdocs (not tested); prune subdocs for a couple of target/reference transforms which are applied to every document anyway, so they do not need to descend into subdocs (not all tested); removed unnecessary import in latex2e git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5425 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* resolve indirect qualified targetswiemann2007-08-221-12/+70
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5418 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added qualified references syntax;wiemann2007-08-201-0/+44
| | | | | | | added references.QualifiedReferences transform to resolve them; to do: add documentation, find bugs git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5414 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added misc.CheckDoctreeValidity transform to catch invalid doctrees caused ↵wiemann2007-08-201-0/+68
| | | | | | by content after the subdocs directive git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5413 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* do not transform sub-document titles into subtitles; slight clean-up in parts.pywiemann2007-08-191-4/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5410 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* re-enabled support for dump_transforms setting (lost during change in ↵wiemann2007-08-151-0/+8
| | | | | | transform architecture) git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5396 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved responsibility for applying transforms from publisher towiemann2007-06-243-7/+10
| | | | | | Reader.read and Writer.write methods git-svn-id: http://svn.code.sf.net/p/docutils/code/branches/subdocs@5266 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
* added writer_aux.Admonitions transform;wiemann2006-08-161-2/+40
| | | | | | | | use it in html4css1 and newlatex2e; changed priority of writer_aux.Compound transform from 810 to 910; added (basic) admonition support to newlatex2e writer git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4687 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* use $Id$ instead of $Date$ and $Revision$;wiemann2006-05-219-36/+18
| | | | | | | | collapsed Author and Contact fields; use canonical email addresses for David and Felix; (I have reviewed the diff) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4564 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* support for new python.org and pep2pyramid.pygoodger2006-03-231-3/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4443 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed markup bugs in docstrings; now works with Endogoodger2006-01-051-0/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4242 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed bug with circular substitution definitions that put Docutils into an ↵goodger2005-12-281-3/+35
| | | | | | infinite loop. Circular substitution definitions are now detected & reported. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4233 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added the universal.StripComments transform, the "strip_comments" setting, ↵goodger2005-12-121-0/+15
| | | | | | and the --strip-comments/--leave-comments options. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4183 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* keep "Authors" field name, no matter how many authors listedgoodger2005-12-111-3/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4173 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* merged branches/s5 changes r4011:4155 into trunk/docutilsgoodger2005-12-081-2/+13
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4156 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed Subversion Date keyword parsingwiemann2005-11-111-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4044 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixed the DocInfo transform to handle SVN-style expansion of the "Date" ↵goodger2005-11-111-2/+2
| | | | | | keyword (this was actually a bug, not a to-do; the correct behavior was specified in the docs) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4042 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed more internal state (`document.anonymous_refs` andwiemann2005-10-111-19/+25
| | | | | | | `document.anonymous_targets`) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3939 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added Node.deepcopy(); fixed bug with doubly-indirect substitutionswiemann2005-10-111-39/+40
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3935 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* renamed Element.substitute to Element.replace_selfwiemann2005-09-266-15/+15
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3909 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added docutils/writers/support/ directory and removed tools/stylesheets/; ↵goodger2005-09-251-30/+0
| | | | | | updated defaults; removed docutils/transforms/html.py (no longer needed); removed ``_stylesheet_required`` internal setting; updated setup.py git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3901 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* changed DanglingReferences priority back to 850wiemann2005-09-221-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3897 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Merged "transforms" branch into trunk.wiemann2005-09-201-18/+1
| | | | | | | | | | | | | | | | - Replaced ``default_transforms`` attribute of TransformSpec with ``get_transforms()`` method. - Added universal.Decorations and universal.ExposeInternals transforms as default transforms for all readers. - Added universal.Messages and universal.FilterMessages transforms as default transforms for all writers. - Added ``ReReader`` base class for readers that reread an existing document tree. - Added ``UnfilteredWriter`` base class for writers that pass the document tree on unchanged. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3892 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed bug with expose_internals setting and Text nodes (exposed by the ↵goodger2005-09-151-1/+4
| | | | | | "rawsource" internal attribute) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3877 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added writer_aux module containing Compound transform,wiemann2005-09-111-0/+52
| | | | | | which flattens the compound paragraph structure git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3872 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* replaced node.parent.replace(node, new) constructs with node.substitute(new)wiemann2005-09-115-14/+14
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3870 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* replaced hack with clean handling of unreferenced anonymous targetswiemann2005-08-281-5/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3841 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* simplified FilterMessages transformwiemann2005-07-071-12/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3665 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* separated default (universal) transforms into two stages so that nowiemann2005-07-071-9/+12
| | | | | | | | | | | | transform is applied twice; do not delete document.transformer in publish_doctree (Martin, this may be important for the pickle writer -- you may need to delete document.transformer); regenerate reporter object unconditionally; do so in publish_from_doctree, not the doctree reader; added tests; I will post about all that on Docutils-develop in one or two days git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3663 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* sorted transform declarations by prioritywiemann2005-07-061-17/+17
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3661 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* fixed TestMessages priority to conform to docswiemann2005-07-061-1/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3660 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* renamed universal.FinalChecks to references.DanglingReferences;wiemann2005-07-053-79/+75
| | | | | | changed priority to 680 git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3659 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved expose_internals logic out of FinalChecks into awiemann2005-07-053-28/+41
| | | | | | separate transform, universal.ExposeInternals git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3658 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* moved transition transform logic from universal.FinalChecks towiemann2005-07-052-81/+80
| | | | | | a separate transform, misc.Transitions git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3657 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* improved cloaking mechanismwiemann2005-07-011-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3644 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* do not complain when the user specifies --stylesheet=""wiemann2005-06-301-2/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3643 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed document.internal_targets and document.external_targets;wiemann2005-06-291-23/+17
| | | | | | fixed bug (not sure yet if the code is clean -- needs refactoring) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3637 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added ``docutils.TransformSpec.reprocess_transforms`` and ↵goodger2005-06-291-0/+6
| | | | | | ``docutils.transforms.Transformer.reprocess_transforms`` attributes git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3627 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* move metadata title into document['title']wiemann2005-06-291-7/+32
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3621 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added ``_stylesheet_required`` internal setting, ↵goodger2005-06-281-0/+30
| | | | | | docutils.transforms.html.StylesheetCheck transform, docs, tests, and support. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3617 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* clarified docstrings; simplified codewiemann2005-06-271-4/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3611 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Pythonicized kwargs; further beautified --dump-transformsgoodger2005-06-271-4/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3608 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* beautified --dump-transforms outputwiemann2005-06-271-1/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@3605 929543f6-e4f2-0310-98a6-ba3bd3dd1d04