summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* version 0.18grubert2021-10-2617-17/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8864 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix spelling errors.milde2021-10-211-4/+4
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8859 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Test and update recommonmark_wrapper.py to work with recommonmark 0.6.0.milde2021-10-161-17/+1
| | | | | | | | | Still experimental. Unfortunately, recommonmark_ is no longer maintained (https://github.com/readthedocs/recommonmark/issues/221). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8857 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* New option "image_loading" for HTML5.milde2021-10-131-0/+34
| | | | | | | | With values "embed", "eager", "lazy", cf, feature-request #78. Obsoletes "embed_image". git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8853 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix bug #424 Wrong circular inclusion detection.milde2021-10-123-3/+94
| | | | | | | | | | | | | | | | | The current heuristic for detection of circular includes fails with nested parsing. Line numbering differs in nested state-machines, inclusions don't show up in the parent, if a view is detached (e.g. for table cell content). The new heuristic uses a "magic" comment instead of line numbers to keep a log of recursive inclusions. Add a test case for a false positive and a case for too late detection in parsed includes. Adapt tests to (irrelevant) side effects of the patch. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8851 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* release number 0.18b2.devgrubert2021-10-0517-17/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8848 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Release 0.18b1grubert2021-10-0517-17/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8845 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* relative stylesheet_dirs to make test passgrubert2021-10-052-2/+5
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8844 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add test document.milde2021-10-051-0/+12
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8843 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add line, source, and rawsource attributes to blockquote nodes.milde2021-10-041-20/+49
| | | | | | | | Fix docstring for states.Body.split_attribution(). Patch by Mickey Endito. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8842 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Test line numbers for system messages in attributions.milde2021-10-042-5/+26
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8841 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix by Mickey Endito for source location (line number) of attributions.milde2021-10-041-0/+187
| | | | | | New unittest case for the internal "source" and "line" attributes. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8840 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* add symlink to responsive.css grubert2021-10-031-0/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8839 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: New default for table column widths (fixes bug #426).milde2021-10-0112-74/+15
| | | | | | | | | Only specify table column widths, if the "widths" option is set and is not "auto". The `table_style`_ setting "colwidths-grid" restores the current default. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8836 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* LaTeX writer: New algorithm for table colum widths. Fixes bug #422.milde2021-09-307-175/+209
| | | | | | | | | | | | New configuration setting "legacy_column_widths" for backwards compatibility. Only write "continued on next page..." if it fits without making the table columns wider. Table `width` option overrides conflicting "auto" column `widths`. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8835 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Skip system_messages when propagating targets. Fixes bug #425.milde2021-09-202-5/+80
| | | | | | | Testing with "alltests.py" is currently impossible due to caching (see itest_hyperlinks_de.py) git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8831 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Minor test fixes.milde2021-09-206-49/+20
| | | | | | | | | Remove workaround for legacy versions of the "hyperref" LaTeX package. Remove spurious import. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8830 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* LaTeX writer: Update tests after r8826milde2021-09-113-3/+0
| | | | | | No newline (new paragraph) before a table in compounds. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8828 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* LaTeX writer: revise Docutils-generated table of contentsmilde2021-09-112-20/+58
| | | | | | | Improve spacing, allow customization. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8826 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* LaTeXwriter: small fixes.milde2021-09-113-6/+0
| | | | | | | | Don't add ``\phantomsection`` to labels in math-blocks. New optional argument `newline` for LaTeXTranslator.ids_to_labels(). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8825 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* LaTeX writer: code cleanup and small fixes.milde2021-09-115-6/+154
| | | | | | | | | | | Fix newlines after/before ids_to_labels() (cf. patch #183). Refactor/revise ToC writing. Don't write `\phantomsection`, if a local ToC is skipped. Functional test for "--use-docutils-toc" in XeTeX writer test). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8824 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* LaTeX writer: no newline before raw directives in compound blocks.milde2021-09-111-9/+43
| | | | | | Based on patch 3 in patches #183 by Clément Pit-Claudel. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8823 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix #423 Code blocks in sidebars cause LaTeX errors.milde2021-09-076-14/+73
| | | | | | | | | | | | | Do not use the "alltt" enviromnent in sidebars. In admonitions and system-messages, "alltt" is used unless the "legacy-class-functions" setting is True. (Admonitions and system-messages are implemented as environments since rev 8479.) Thanks to Clément Pit-Claudel for reporting. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8820 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* add a test for double quote escapinggrubert2021-08-231-0/+24
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8819 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update functional test for LaTeX corner cases.milde2021-08-116-1098/+603
| | | | | | | | Test for more problems with tables. Cosmetic fixes, reword, restructure. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8810 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* LaTeX writer: Simpler LaTeX code.milde2021-08-105-23/+23
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8807 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* MathML: fixes and additions.milde2021-08-108-42/+45
| | | | | | | | | | | | | | | | | | | | Math accent commands more similar to their LaTeX behaviour. Additions for HTML export. Use boolean values for boolean node arguments. Downcase node arguments before storing. Use class argument "boldsymbol" for \boldsymbol content. Alignment of multi line equations similar to AMS-LaTeX "align" environment. Add space after bracket in "cases" environment, left-align columns. Fix spacing before "unary" minus. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8805 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update SVG image samples and tests.milde2021-07-192-99/+59
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8804 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Simplify functional test settings_overrides.milde2021-07-196-18/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8803 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix bug #421 Typo in r8766milde2021-07-131-0/+15
| | | | | | Also add a test case. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8802 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Math: fix some LaTeX character mappings.milde2021-07-121-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8799 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* math2html: Prefer STIX fonts for formulas.milde2021-07-123-19/+19
| | | | | | | | | | | | | | STIX is free, widely supported, and comprehensive. (On the downside: it is considerably smaller than DejaVu: no problem with Chromium/Chrome but in Firefox a larger font-size might be advised.) Work around bugs/problems in STIX: "medium mathematical space" is too wide, "vertical line" glyphs leave gaps when stacked, upright integrals provide better alignment of limits. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8798 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* math2html: Improve handling of big symbols.milde2021-07-121-4/+4
| | | | | | | | | | Scale variable sized operators with CSS instead of constructing from pieces. Fix Unicode translations for N-ary operators. Scale stretch big delimiters instead of scaling. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8796 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* math2html: support decorations under base character.milde2021-07-121-4/+4
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8795 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* math2html: support small symbols, refactor math accent handling.milde2021-07-121-6/+6
| | | | | | | | | | | | | | | math accents/combining characters: - insert combining character after first character of argument (mimic LaTeX behaviour). - support non alphabetical base-character (\not{\in} and similar). - use precomposed characters if possible (normalization) Cleanup: update comments, remove not required code. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8794 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Major rework of math2html converter.milde2021-07-123-20/+20
| | | | | | | | | | | | | Fork from elyxer (https://github.com/alexfernandez/elyxer). Remove code that is not requried for math conversion. Fix/update LaTeX/Unicode character translation, use common codebase with MathML. Support more commands. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8793 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: add self-link after section headings (feature request #28).milde2021-07-055-28/+32
| | | | | | | | | | | | The "section_self_link" setting triggers this behaviour. As it is currently only implemented for HTML5, the setting is defined for this writer only. The self-link "invisible" by default. The provided stylesheet "responsive.css" gives an example how it can be made visible when hovering over the section heading. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8788 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: small tweaksmilde2021-07-059-137/+205
| | | | | | | | | | | | | Move space character between section number and heading into "sectnum" span. Simplify code in _html_base.py. responsive.css: highlight target of current URL, show an arrow when hovering over section heading to hint at the target of toc-backlinks. Test setting `--toc_backlinks=top` and the "responsive.css" stylesheet. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8787 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: Improve accessibility of section headings.milde2021-06-309-132/+186
| | | | | | | | | | | | | | | | Mark the internal back-refences from section headings to the ToC with DPub-ARIA role "doc-backref". Use "aria-level" instead of a class argument value for section headings with nesting level > 6 (for level 1 to 6, the level is determined by the HTML tag). Mind that in HTML5, heading level 1 is reserved for the document title and section headings start with level 2. Add functional test sample for deeply nested sections. Merge functional tests for additonal HTML5 features. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8786 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Reorganise functional tests.milde2021-06-3021-2501/+1078
| | | | | | | | | | | Move additional tests for special features or problems specific to the output format from the "standalone_..." generic test case to additional tests. Use unit test instead of functional test for the fix in r6155 (hyperlink references in substitutions). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8784 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: Support details disclosure elementsmilde2021-06-302-55/+93
| | | | | | | Items of a definition list with class argument "details" are converted to `details disclosure elements`. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8783 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Do not use deprecated "rawsource" argument when creating node.Text instances.milde2021-06-301-2/+2
| | | | | | | | The "rawsource" argument of ``nodes.Text.__init__`` is ignored and deprecated. Fix the documentation of nodes.Text.__new__(). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8782 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: ARIA roles for citations and citation-references.milde2021-06-253-17/+21
| | | | | | | | | | Use <div> with DPub ARIA role "doc-biblioentry" for citations. Wrapping citations in a list (required for elements with role "doc-biblioentry"). Use role "doc-biblioref" for citation-references. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8779 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: More ARIA roles, more descriptive class name.milde2021-06-252-70/+70
| | | | | | | | | ARIA roles for footnote references and backlinks. Use class value "backrefs" instead of "fn-backref" for a span of back-references. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8777 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTM5 Use semantic tags for topics, admontions, system-messages, and toc.milde2021-06-252-42/+42
| | | | | | | | | <aside> for topics (except abstract and toc), admonitions, and system messages. <nav> and DPub Aria role="doc-toc" for the Table of Contents. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8775 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Code simplification in writers.milde2021-06-251-35/+35
| | | | | | | | | | | Use node[...] instead of node.get(...) for basic attributes. Remove HTMLTranslator.topic_classes auxiliary attribute. HTML5: Do not add "compound-first", "compound-middle", or "compound-last" to elements nested in a compound. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8774 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: Semantic markup for footnotes.milde2021-06-253-109/+212
| | | | | | | | | | | | | | Use "aside" instead of a description list for footnotes and citations. While providing decent standard rendering, footnote label and text are no instance of a "definition term" and "definition". Use "invisible" footnote label brackets instead of display="none" with superscript footnotes so that the brackets are kept with drag-and-drop. Adapt stylesheets. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8773 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Change default value for the "auto_id_prefix" setting to "%".milde2021-06-1833-441/+443
| | | | | | | Auto-generated IDs use the tag name as prefix. Set auto_id_prefix_ to "id" if you want unchanged auto-IDs. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8771 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* nodes.document.make_id(): keep leading numbers and hyphens if possible.milde2021-06-181-2/+2
| | | | | | I.e. if the id_prefix setting is non-empty. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8770 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply patch #181 by John Thorvald Wodder II.milde2021-06-171-0/+62
| | | | | | LaTeX Writer: Fix tocdepth when chapter/part in use. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8769 929543f6-e4f2-0310-98a6-ba3bd3dd1d04