|
From: <mi...@us...> - 2021-03-05 21:14:24
|
Revision: 8630
http://sourceforge.net/p/docutils/code/8630
Author: milde
Date: 2021-03-05 21:14:20 +0000 (Fri, 05 Mar 2021)
Log Message:
-----------
New responsive style for HTML5.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils.conf
trunk/docutils/test/functional/expected/standalone_rst_html5.html
trunk/docutils/test/functional/input/data/html5-features.txt
Added Paths:
-----------
trunk/docutils/docutils/writers/html5_polyglot/responsive.css
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-03-05 21:14:01 UTC (rev 8629)
+++ trunk/docutils/HISTORY.txt 2021-03-05 21:14:20 UTC (rev 8630)
@@ -111,10 +111,20 @@
Support "captionbelow" class value for tables.
Small fixes and tweaks.
- ``plain.css``: Support numbered figures.
-
- - Fix bug #398: properly close link tag to "schema.dcterms".
+* docutils/writers/html5_polyglot/responsive.css
+ - New optional stylesheet that adapts to different screen sizes.
+
+* docutils/writers/html5_polyglot/minimal.css
+
+ - Move non-essential styling to ``plain.css``.
+ Support "captionbelow" class value for tables.
+ Small fixes and tweaks.
+
+* docutils/writers/html5_polyglot/plain.css
+
+ - Support numbered figures.
+
* docutils/writers/latex2e/__init__.py:
- Use LaTeX environments for admonitions and "class wrappers" for styling
Added: trunk/docutils/docutils/writers/html5_polyglot/responsive.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/responsive.css (rev 0)
+++ trunk/docutils/docutils/writers/html5_polyglot/responsive.css 2021-03-05 21:14:20 UTC (rev 8630)
@@ -0,0 +1,446 @@
+/* CSS3_ style sheet for the output of Docutils HTML writers. */
+/* Generic responsive design for all screen sizes. */
+/* */
+/* :Author: Günter Milde */
+/* */
+/* :Id: $Id$ */
+/* :Copyright: © 2021 Günter Milde. */
+/* :License: Released under the terms of the `2-Clause BSD license`_, */
+/* in short: */
+/* */
+/* Copying and distribution of this file, with or without modification, */
+/* are permitted in any medium without royalty provided the copyright */
+/* notice and this notice are preserved. */
+/* */
+/* This file is offered as-is, without any warranty. */
+/* */
+/* .. _2-Clause BSD license: http://www.spdx.org/licenses/BSD-2-Clause */
+/* .. _CSS3: http://www.w3.org/TR/CSS3 */
+
+
+/* General Settings */
+/* ================ */
+
+
+* { box-sizing: border-box; }
+
+body {
+ background-color: #fafaf6;
+ margin: auto;
+}
+main {
+ counter-reset: figure table;
+}
+main, header, footer {
+ background-color: white;
+ line-height: 1.6;
+ /* smooth transition from 5% to 15% (see media queries below) */
+ padding: 0.5rem calc(25% - 5.8rem);
+}
+
+/* Vertical Space (Parskip) */
+p, ol, ul, dl, li,
+div.line-block,
+div.topic,
+table {
+ margin-top: 0.5em;
+ margin-bottom: 0.5em;
+}
+h1, h2, h3, h4, h5, h6,
+dl > dd {
+ margin-bottom: 0.5em;
+}
+/* exceptions */
+p:first-child {
+ margin-top: 0;
+}
+p:last-child {
+ margin-bottom: 0;
+}
+blockquote > table,
+div.topic > table {
+ margin-top: 0;
+ margin-bottom: 0;
+}
+
+/* Indented Blocks */
+blockquote,
+figure,
+div.topic {
+ margin: 1em 2%;
+ padding-left: 1em;
+}
+div.line-block div.line-block,
+pre, dd, dl.option-list {
+ margin-left: calc(2% + 1em);
+}
+
+/* Object styling */
+/* ============== */
+
+footer, header,
+aside.sidebar, .marginal {
+ font-size: small;
+}
+
+/* Frontmatter */
+blockquote.dedication,
+div.topic.dedication {
+ padding: 0;
+ margin: 1.4em 0;
+ /* text-align: center; */
+ font-style: italic;
+ font-size: large;
+}
+.dedication p.topic-title {
+ display: none;
+}
+
+blockquote p.attribution,
+div.topic p.attribution {
+ text-align: right;
+}
+
+/* Table of Contents */
+div.topic.contents {
+ padding: 0;
+}
+ul.auto-toc > li > p {
+ padding-left: 1em;
+ text-indent: -1em;
+}
+div.topic.contents ul {
+ padding-left: 1em;
+}
+
+/* Transitions */
+hr {
+ margin: 1em 10%;
+}
+
+/* Lists */
+
+ul, ol {
+ padding-left: 1.1em;
+}
+dl.field-list > dd,
+dl.docinfo > dd {
+ margin-left: 6.4em;
+}
+dl.option-list > dd {
+ margin-left: 20%;
+}
+/* run-in: start field-body on same line after long field names */
+dl.field-list.run-in > dd p {
+ display: block;
+}
+/* "description style" like in most dictionaries, encyclopedias etc. */
+dl.description > dt {
+ clear: left;
+ float: left;
+ margin: 0;
+ padding: 0;
+ padding-right: 0.5em;
+ font-weight: bold;
+}
+dl.description > dd:after {
+ display: block;
+ content: "";
+ clear: both;
+}
+/* start lists nested in description/field lists on new line */
+dd > dl:first-child,
+dd > ul:first-child,
+dd > ol:first-child {
+ clear: left;
+}
+
+/* Footnotes and Citations */
+/* TODO: use <aside> */
+dl.footnote {
+ font-size: small;
+ padding-left: 0.5em;
+ border-left: solid;
+ border-left-width: thin;
+}
+
+/* Images, Figures, and Tables */
+img {
+ display: block;
+}
+p > img, p > a > img,
+figure > img, figure > a > img {
+ display: inline;
+}
+
+table tr {
+ text-align: left;
+}
+
+/* th { vertical-align: bottom; } */
+/* "booktabs" style (no vertical lines) */
+table.booktabs {
+ border-top: 2px solid;
+ border-bottom: 2px solid;
+}
+table.booktabs * {
+ border: 0;
+}
+table.booktabs th {
+ border-bottom: thin solid;
+}
+
+figcaption,
+table > caption {
+ /* font-size: small; */
+ font-style: italic;
+}
+figcaption > .legend {
+ font-size: small;
+ font-style: initial;
+}
+
+figure.numbered > figcaption > p:before {
+ counter-increment: figure;
+ content: "Figure " counter(figure) ": ";
+ font-weight: bold;
+ font-style: initial;
+}
+table.numbered > caption:before {
+ counter-increment: table;
+ content: "Table " counter(table) ": ";
+ font-weight: bold;
+ font-style: initial;
+}
+
+/* Admonitions and System Messages */
+div.admonition,
+div.system-message {
+ border-style: solid;
+ border-color: silver;
+ border-width: thin;
+ margin: 1em 2%;
+ padding: 0.5em;
+}
+div.caution p.admonition-title,
+div.attention p.admonition-title,
+div.danger p.admonition-title,
+div.warning p.admonition-title,
+div.error {
+ color: maroon;
+}
+div.system-message > p > span.literal {
+ overflow-wrap: break-word;
+}
+
+/* Literal and Code */
+pre {
+ font-size: 0.9;
+ /* overflow: auto; */
+}
+pre.code .ln { color: gray; } /* line numbers */
+/* basic highlighting: for a complete scheme, see */
+/* http://docutils.sourceforge.net/sandbox/stylesheets/ */
+pre.code .comment, code .comment { color: #5C6576 }
+pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
+pre.code .literal.string, code .literal.string { color: #0C5404 }
+pre.code .name.builtin, code .name.builtin { color: #352B84 }
+pre.code .deleted, code .deleted { background-color: #DEB0A1}
+pre.code .inserted, code .inserted { background-color: #A3D289}
+
+.sans {
+ font-family: "Gill Sans", "Gill Sans MT", Calibri, "Lucida Sans", "Noto Sans", sans-serif;
+ letter-spacing: .02em;
+}
+
+/* Hyperlink References */
+/* underline that clears descenders */
+a {
+ text-decoration: none;
+ text-decoration-skip-ink: auto; /* nonstandard selector */
+}
+/* Wrap links at any place, if this is the only way to prevent overflow */
+a:link{
+ overflow-wrap: break-word;
+}
+.contents a, a.toc-backref, a.citation-reference {
+ overflow-wrap: inherit;
+}
+
+/* Undecorated Links */
+/* a.footnote-reference, a.fn-backref, .fn-backref a, */
+/* a.citation-reference, */
+.citation a.fn-backref,
+.contents a, a.toc-backref {
+ color: inherit;
+}
+a:link:hover {
+ text-decoration: underline;
+}
+
+/* highlight the active ToC entry */
+.auto-toc :target {
+ background-color: orange;
+}
+
+/* Block Alignment */
+/* Let content flow to the side of aligned images and figures */
+
+/* no floats around this elements */
+dl.footnote, dl.citation, /* errors with internal floats */
+footer, header, hr,
+h1, h2, h3 {
+ clear: both;
+}
+
+img.align-left,
+figure.align-left,
+table.align-left {
+ margin-left: 0;
+ padding-left: 0;
+ margin-right: 0.5em;
+ clear: left;
+ float: left;
+}
+img.align-right,
+figure.align-right,
+table.align-right {
+ margin-left: 0.5em;
+ margin-right: 0;
+ clear: right;
+ float: right;
+}
+
+/* Margin Elements */
+/* see below for screen size dependent rules */
+aside.sidebar,
+.marginal,
+.admonition.marginal {
+ max-width: min(40%, 20rem);
+ background-color: #efefea;
+ margin: 0.5em 0 0.5em 1em;
+ padding: 0.5em;
+ clear: right;
+ float: right;
+}
+aside.sidebar {
+ width: 40%;
+}
+
+/* Adaptive page layout */
+
+/* smaller margins and no floating elements for small screens */
+/* main text less than 40 characters/line */
+@media (max-width: 30em) {
+ main, header, footer {
+ padding: 0.5rem 5%;
+ line-height: 1.4
+ }
+ aside.sidebar,
+ .marginal,
+ .admonition.marginal {
+ width: auto;
+ max-width: 100%;
+ float: none;
+ }
+ dl.option-list,
+ pre {
+ margin-left: 0;
+ }
+ dl.field-list > dd {
+ margin-left: 4em;
+ }
+ dl.field-list.narrow > dd,
+ dl.docinfo > dd,
+ dl.option-list > dd {
+ margin-left: 2.4em;
+ }
+}
+
+/* Move ToC to the left */
+/* Main text width before: 70% ≙ 35em ≙ 75…95 chrs (Dejavu/Times) */
+/* after: ≳ 30em ≙ 54…70 chrs (Dejavu/Times) */
+@media (min-width: 54em) {
+ main, header, footer {
+ margin-left: min(15%, 18rem);
+ padding-left: 15%;
+/* padding-right: 14%; */
+ padding-right: 7%;
+ }
+ main > div.topic.contents {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: min(25%, 28em);
+ height: 100vh;
+ margin: 0;
+ background-color: #fafaf6;
+ padding: 1em 2% 0 2%;
+ overflow: auto;
+ }
+ main > div.topic.contents > * {
+ padding-left: 0;
+ }
+ main > div.topic.contents ul:not(.auto-toc) {
+ list-style-type: square;
+/* padding-left: 1em; */
+ }
+ div.topic.contents ul > li::marker {
+ color: grey;
+ }
+}
+
+@media (min-width: 70em) {
+ dl.field-list > dd,
+ dl.docinfo > dd {
+ margin-left: 9em;
+ }
+
+/* limit main text to 50em ≙ 85…100 characters DejaVu rsp. …120 Times */
+@media (min-width: 80em) {
+ main, header, footer {
+ padding-right: calc(70% - 50em);
+ }
+ /* Move marginalia to 6rem from right border */
+ /* TODO: why does this fail ?? */
+ /* aside.sidebar, */
+ /* .marginal, */
+ /* .admonition.marginal { */
+ /* margin-right: calc(6rem - 15vh); */
+ /* } */
+}
+
+@media (min-width: 92em) {
+ /* move marginalia into the margin */
+ aside.sidebar,
+ .admonition.marginal,
+ .marginal {
+ margin-right: -12rem;
+ }
+}
+
+@media (min-width: 106em) {
+ /* move marginalia out of main text area */
+ aside.sidebar,
+ .admonition.marginal,
+ .marginal {
+ width: 20rem;
+ /* background-color: inherit; */
+ margin-right: -22rem;
+ }
+}
+
+@media (min-width: 117em) {
+ /* maximal sensible width of main area reached */
+ main, header, footer {
+ width: 98rem;
+ margin-right: 0;
+ padding-left: 18rem;
+ padding-right: 30rem;
+ }
+ aside.sidebar,
+ .marginal,
+ .admonition.marginal {
+ margin-right: -24rem; /* move into the padding, 6rem from border */
+ }
+}
Property changes on: trunk/docutils/docutils/writers/html5_polyglot/responsive.css
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Modified: trunk/docutils/docutils.conf
===================================================================
--- trunk/docutils/docutils.conf 2021-03-05 21:14:01 UTC (rev 8629)
+++ trunk/docutils/docutils.conf 2021-03-05 21:14:20 UTC (rev 8630)
@@ -14,7 +14,7 @@
[html5 writer]
stylesheet-dirs: docutils/writers/html5_polyglot/
-stylesheet-path: minimal.css, plain.css
+stylesheet-path: minimal.css, responsive.css
# Prevent tools/buildhtml.py from processing certain text files.
[buildhtml application]
Modified: trunk/docutils/test/functional/expected/standalone_rst_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-03-05 21:14:01 UTC (rev 8629)
+++ trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-03-05 21:14:20 UTC (rev 8630)
@@ -12,6 +12,7 @@
<meta name="dcterms.rights" content="This document has been placed in the public domain. You may do with it as you wish. You may copy, modify, redistribute, reattribute, sell, buy, rent, lease, destroy, or improve it, quote it at length, excerpt, incorporate, collate, fold, staple, or mutilate it, or do anything else to it that your or anyone else's heart desires." />
<meta content="reStructuredText, test, parser" name="keywords" />
<meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description" xml:lang="en" />
+<meta content="width=device-width, initial-scale=1" name="viewport" />
<link rel="schema.dcterms" href="http://purl.org/dc/terms/"/>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
@@ -855,12 +856,15 @@
<dd><p><a class="reference external" href="https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata">https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata</a></p>
</dd>
<dt class="label" id="footnote-15"><span class="brackets"><a class="fn-backref" href="#footnote-reference-29">15</a></span></dt>
+<dd><p><a class="reference external" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag">https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag</a></p>
+</dd>
+<dt class="label" id="footnote-16"><span class="brackets"><a class="fn-backref" href="#footnote-reference-30">16</a></span></dt>
<dd><p><a class="reference external" href="https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article">https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article</a></p>
</dd>
-<dt class="label" id="footnote-16"><span class="brackets"><a class="fn-backref" href="#footnote-reference-30">16</a></span></dt>
+<dt class="label" id="footnote-17"><span class="brackets"><a class="fn-backref" href="#footnote-reference-31">17</a></span></dt>
<dd><p><a class="reference external" href="https://html.spec.whatwg.org/#text-level-semantics">https://html.spec.whatwg.org/#text-level-semantics</a></p>
</dd>
-<dt class="label" id="footnote-17"><span class="brackets"><a class="fn-backref" href="#footnote-reference-31">17</a></span></dt>
+<dt class="label" id="footnote-18"><span class="brackets"><a class="fn-backref" href="#footnote-reference-32">18</a></span></dt>
<dd><p><a class="reference external" href="https://html.spec.whatwg.org/multipage/edits.html">https://html.spec.whatwg.org/multipage/edits.html</a></p>
</dd>
</dl>
@@ -1254,7 +1258,13 @@
<ul>
<li><p>Use only meta keywords recognized by HTML 5.
Add HTML5-compatible meta tags for docinfo items
-"authors", "date", and "copyright".</p></li>
+"authors", "date", and "copyright".</p>
+<div class="admonition hint">
+<p class="admonition-title">Hint</p>
+<p>Use a <a class="reference external" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag">viewport meta tag</a> <a class="footnote-reference brackets" href="#footnote-15" id="footnote-reference-29">15</a> to tell mobile browsers
+to use the device-width as viewport.</p>
+</div>
+</li>
<li><p>Set table column widths with <style="width: ...">, not "width" argument.</p></li>
<li><p>Horizontal alignment of table heads with CSS.</p></li>
<li><p>Field lists as styled definition lists.</p></li>
@@ -1265,7 +1275,7 @@
<footer>, <aside>, <figure>, and <figcaption>.
See <span class="docutils literal">minimal.css</span> and <span class="docutils literal">responsive.css</span> for styling rule examples.</p>
<p>Change the <cite>initial_header_level</cite> setting default to "2", as browsers
-use the <a class="reference external" href="https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article">same style for <h1> and <h2> when nested in a <section></a> <a class="footnote-reference brackets" href="#footnote-15" id="footnote-reference-29">15</a>.</p>
+use the <a class="reference external" href="https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article">same style for <h1> and <h2> when nested in a <section></a> <a class="footnote-reference brackets" href="#footnote-16" id="footnote-reference-30">16</a>.</p>
</li>
<li><p>Use HTML text-level tags <small>, <s>, <q>, <dfn>, <var>, <samp>, <kbd>,
<i>, <b>, <u>, <mark>, and <bdi> if a matching class value
@@ -1501,7 +1511,7 @@
<section id="text-level-semantics">
<h3><a class="toc-backref" href="#toc-entry-50"><span class="sectnum">3.3</span> Text-Level Semantics</a></h3>
<p>This section describes the <a class="reference external" href="https://html.spec.whatwg.org/#text-level-semantics">HTML 5 tags for representation of text-level
-semantics</a> <a class="footnote-reference brackets" href="#footnote-16" id="footnote-reference-30">16</a> and their reStructuredText equivalents.</p>
+semantics</a> <a class="footnote-reference brackets" href="#footnote-17" id="footnote-reference-31">17</a> and their reStructuredText equivalents.</p>
<dl class="description">
<dt>a</dt>
<dd><p>Hyperlinks</p>
@@ -1707,7 +1717,7 @@
</section>
<section id="indicating-edits">
<h3><a class="toc-backref" href="#toc-entry-51"><span class="sectnum">3.4</span> Indicating Edits</a></h3>
-<p>The <a class="reference external" href="https://html.spec.whatwg.org/multipage/edits.html">HTML tags for representation of edits to the document</a> <a class="footnote-reference brackets" href="#footnote-17" id="footnote-reference-31">17</a> and their
+<p>The <a class="reference external" href="https://html.spec.whatwg.org/multipage/edits.html">HTML tags for representation of edits to the document</a> <a class="footnote-reference brackets" href="#footnote-18" id="footnote-reference-32">18</a> and their
reStructuredText equivalents are:</p>
<dl class="description">
<dt>ins</dt>
Modified: trunk/docutils/test/functional/input/data/html5-features.txt
===================================================================
--- trunk/docutils/test/functional/input/data/html5-features.txt 2021-03-05 21:14:01 UTC (rev 8629)
+++ trunk/docutils/test/functional/input/data/html5-features.txt 2021-03-05 21:14:20 UTC (rev 8630)
@@ -5,6 +5,16 @@
Add HTML5-compatible meta tags for docinfo items
"authors", "date", and "copyright".
+ .. hint::
+
+ Use a `viewport meta tag`__ to tell mobile browsers
+ to use the device-width as viewport.
+
+ .. meta::
+ :viewport: width=device-width, initial-scale=1
+
+ __ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
+
* Set table column widths with <style="width: ...">, not "width" argument.
* Horizontal alignment of table heads with CSS.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-03-05 21:14:43
|
Revision: 8631
http://sourceforge.net/p/docutils/code/8631
Author: milde
Date: 2021-03-05 21:14:40 +0000 (Fri, 05 Mar 2021)
Log Message:
-----------
Small documentation updates and fixes.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docs/api/publisher.txt
trunk/docutils/docs/dev/distributing.txt
trunk/docutils/docs/dev/todo.txt
trunk/docutils/docs/howto/security.txt
trunk/docutils/docs/ref/rst/directives.txt
trunk/docutils/docs/ref/rst/restructuredtext.txt
trunk/docutils/docs/user/config.txt
trunk/docutils/docs/user/html.txt
trunk/docutils/docs/user/manpage.txt
trunk/docutils/docs/user/odt.txt
trunk/docutils/docs/user/rst/cheatsheet.txt
trunk/docutils/docs/user/rst/demo.txt
trunk/docutils/docs/user/smartquotes.txt
trunk/docutils/docs/user/tools.txt
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/HISTORY.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -21,16 +21,13 @@
* General
- - Fix bug #385: Import of language modules.
- - Use importlib.import_module() to programmatically import modules.
- - Remove legacy LaTeX stylesheet ``docutils-05-compat.sty``.
- Installing with ``setup.py`` now requires ``setuptools``.
Alternatively, install with `pip`_ (or "manually").
- - Apply patch for bug #399 Fixes in Korean translation.
+ - Use importlib.import_module() to programmatically import modules.
+ - Fix bug #385: Import of language modules.
.. _pip: https://pypi.org/project/pip/
-
* docutils/MANIFEST.in
- Exclude test outputs.
@@ -39,10 +36,11 @@
- VersionInfo: ValueError for invalid values, fix comparison to tuples.
-* docutils/languages/ar.py
- docutils/parsers/rst/languages/ar.py:
+* docutils/languages/
+ docutils/parsers/rst/languages/
- Apply patch # 177 Arabic mappings by Shahin.
+ - Apply patch for bug #399 Fixes in Korean translation.
* docutils/nodes.py
@@ -55,8 +53,8 @@
* docutils/parsers/recommonmark_wrapper.py
- - New file. An experimental wrapper to integrate the
- `recommonmark`__ Markdown parser for use with stock Docutils.
+ - New, experimental wrapper to integrate the
+ `recommonmark`__ Markdown parser for use with Docutils.
__ https://pypi.org/project/recommonmark/
@@ -67,7 +65,6 @@
* docutils/parsers/rst/directives/html.py
- Make "meta" elements available for "latex" and "odt".
- (Basic "odt" support exists, "latex" support is planned.)
* docutils/parsers/rst/directives/misc.py
@@ -89,7 +86,7 @@
- Implement feature request #40 `Option to embed images as data URI`.
-* docutils/writers/html5_polyglot/
+* docutils/writers/html5_polyglot/__init__.py
- Use the new semantic tags <main>, <section>, <header>,
<footer>, <aside>, <figure>, and <figcaption>.
@@ -106,11 +103,6 @@
Use <ins> and <del> if a matching class value
is found in `inline`, `literal`, or `container` elements.
- - ``minimal.css``:
- Move non-essential styling from to ``plain.css``.
- Support "captionbelow" class value for tables.
- Small fixes and tweaks.
-
* docutils/writers/html5_polyglot/responsive.css
- New optional stylesheet that adapts to different screen sizes.
@@ -124,7 +116,23 @@
* docutils/writers/html5_polyglot/plain.css
- Support numbered figures.
+ - Fix bug #398: properly close link tag to "schema.dcterms".
+* docutils/writers/html5_polyglot/responsive.css
+
+ - New optional stylesheet for better readability on different
+ screens.
+
+* docutils/writers/html5_polyglot/minimal.css
+
+ - Move non-essential styling from to ``plain.css``.
+ Support "captionbelow" class value for tables.
+ Small fixes and tweaks.
+
+* docutils/writers/html5_polyglot/plain.css
+
+ - Support numbered figures.
+
* docutils/writers/latex2e/__init__.py:
- Use LaTeX environments for admonitions and "class wrappers" for styling
@@ -138,6 +146,8 @@
__ docs/user/latex.html#custom-interpreted-text-roles
+ - Remove legacy LaTeX stylesheet ``docutils-05-compat.sty``.
+
- Support the `memoir` LaTeX document class.
Fixes bugs #390, #391, and #392.
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/RELEASE-NOTES.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -94,7 +94,12 @@
* The generic command line front end ``docutils-cli.py`` allows the
free selection of reader, parser, and writer components.
+
+* New, experimental wrapper to integrate the
+ `recommonmark`__ Markdown parser for use with Docutils.
+ __ https://pypi.org/project/recommonmark/
+
* HTML writers: new option to embed images.
* HTML5 writer:
@@ -112,10 +117,10 @@
Use <ins> and <del> if a matching class value
is found in `inline`, `literal`, or `container` elements.
- - Wrap block-level image elements in <p> (except for figures).
- Move non-essential styling from ``minimal.css`` to ``plain.css``.
- Support numbered figures in ``plain.css``.
+ - New optional style ``responsive.css``, adapts to different screen
+ sizes.
+
.. _initial_header_level: docs/user/config.html#initial-header-level
__ https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article
Modified: trunk/docutils/docs/api/publisher.txt
===================================================================
--- trunk/docutils/docs/api/publisher.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/api/publisher.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -95,8 +95,7 @@
Encodings
---------
-The default output encoding of Docutils is UTF-8. If you have any
-non-ASCII in your input text, you may have to do a bit more setup.
+The default output encoding of Docutils is UTF-8.
Docutils may introduce some non-ASCII text if you use
`auto-symbol footnotes`_ or the `"contents" directive`_.
@@ -130,10 +129,11 @@
``parts['whole']`` contains the entire formatted document.
-.. _HTML writer:
+Parts Provided By the HTML Writers
+----------------------------------
-Parts Provided By the HTML Writer
----------------------------------
+HTML4 Writer
+````````````
_`body`
``parts['body']`` is equivalent to parts['fragment_']. It is
@@ -254,10 +254,10 @@
tags.
-Parts Provided by the PEP/HTML Writer
-`````````````````````````````````````
+PEP/HTML Writer
+```````````````
-The PEP/HTML writer provides the same parts as the `HTML writer`_,
+The PEP/HTML writer provides the same parts as the `HTML4 writer`_,
plus the following:
_`pepnum`
@@ -264,12 +264,20 @@
``parts['pepnum']`` contains
-Parts Provided by the S5/HTML Writer
-````````````````````````````````````
+S5/HTML Writer
+``````````````
-The S5/HTML writer provides the same parts as the `HTML writer`_.
+The S5/HTML writer provides the same parts as the `HTML4 writer`_.
+HTML5 Writer
+````````````
+
+The HTML5 writer provides the same parts as the `HTML4 writer`_.
+However, it uses semantic HTML5 elements for the document, header and
+footer.
+
+
Parts Provided by the LaTeX2e Writer
------------------------------------
Modified: trunk/docutils/docs/dev/distributing.txt
===================================================================
--- trunk/docutils/docs/dev/distributing.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/dev/distributing.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -33,7 +33,7 @@
* Docutils may optionally make use of the PIL (`Python Imaging
Library`_ or Pillow_). If PIL is present, it is automatically
- detected by Docutils.
+ detected by Docutils.
* Docutils recommends the `Pygments`_ syntax hightlighter. If available, it
is used for highlighting the content of `code directives`_ and roles as
@@ -40,10 +40,15 @@
well as included source code files (with the "code" option to the include_
directive).
+* Docutils can use the `recommonmark`_ parser to parse input in
+ the Markdown format (new in 0.17).
+
.. _Python Imaging Library:
https://en.wikipedia.org/wiki/Python_Imaging_Library
.. _Pillow: https://pypi.org/project/Pillow/
.. _Pygments: http://pygments.org/
+.. _recommonmark: https://pypi.org/project/recommonmark/
+
.. _code directives: ../ref/rst/directives.html#code
.. _include: ../ref/rst/directives.html#include
Modified: trunk/docutils/docs/dev/todo.txt
===================================================================
--- trunk/docutils/docs/dev/todo.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/dev/todo.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -211,10 +211,10 @@
* Perhaps the ``Component.supports`` method should deal with
individual features ("meta" etc.) instead of formats ("html" etc.)?
Currently, only the `<meta> node`_ requires the framework.
-
+
Do we need it at all? Or rather let the writers just ignore some
nodes (like we already do for "class" values)?
-
+
The current implementation of the framework also leads to bug
`bug #241`__ "doctree-based publishing != publish_string".
The "components.Filter" transform is run by publish_doctree(). When
@@ -221,9 +221,9 @@
filtering based on the output format, it should be run by
publish_from_doctree() instead because only then the writer is
known.
-
+
So we need to either remove or fix the framework.
-
+
__ https://sourceforge.net/p/docutils/bugs/241/
@@ -1211,16 +1211,16 @@
At what point should the extensions be substituted?
- Transforms_:
+ Transforms_:
Fits well in the `Reader → Transformer → Writer`__ processing framework.
-
+
* Filename/URL extension replacement can be done walking over the
Document tree transforming the document tree from a valid state
to another valid state.
-
+
* Writer-specific configuration is still possible in the
respective sections of the configuration_ file.
-
+
__ ../peps/pep-0258.html#id24
Pre- or post-processing:
@@ -2855,11 +2855,11 @@
* What about if we don't know which Reader and/or Writer we are
going to use? If the Reader/Writer is specified on the
command-line?
-
+
The dynamic_ front end ``tools/docutils-cli.py`` (new in 0.17) is an
implementation of concept d) below. It uses 2-stage argument parsing
via the `argparse` module's `partial parsing`_. It still needs some
- polishing.
+ polishing.
Perhaps have different types of front ends:
@@ -2882,8 +2882,8 @@
d) _`Dynamic`: Reader and/or Writer are specified by options, with
defaults if unspecified (e.g. ``publish --writer manpage
- [options]``).
-
+ [options]``).
+
Allow common options before subcommands, as in CVS? Or group all
options together? In the case of the `fully qualified`_
front ends, all the options will have to be grouped together
Modified: trunk/docutils/docs/howto/security.txt
===================================================================
--- trunk/docutils/docs/howto/security.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/howto/security.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -22,7 +22,7 @@
have been addressed. This document provides instructions to help you
secure the Docutils software in your applications.
-Docutils does not come in a through-the-web secure state, because this
+**Docutils does not come in a through-the-web secure state**, because this
would inconvenience ordinary users.
__ ../../FAQ.html#are-there-any-weblog-blog-projects-that-use-restructuredtext-syntax
Modified: trunk/docutils/docs/ref/rst/directives.txt
===================================================================
--- trunk/docutils/docs/ref/rst/directives.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/ref/rst/directives.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -333,7 +333,7 @@
Set a `"classes"`_ attribute value on the figure element. See the
class_ directive below.
-.. _Python Imaging Library:
+.. _Python Imaging Library:
https://en.wikipedia.org/wiki/Python_Imaging_Library
.. _Pillow: https://pypi.org/project/Pillow/
@@ -1875,8 +1875,8 @@
.. note:: Data from some `bibliographic fields`_ is automatically
extracted and stored in META tags, too. However, Bibliographic
Fields are also visible in the document's screen rendering or
- printout.
-
+ printout.
+
For an "invisible" *document title*, see the `metadata document
title`_ directive below.
@@ -1988,7 +1988,7 @@
.. image:: bild.png
- New in Docutils 0.8.
+ (New in Docutils 0.8.)
.. _reference name:
Modified: trunk/docutils/docs/ref/rst/restructuredtext.txt
===================================================================
--- trunk/docutils/docs/ref/rst/restructuredtext.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/ref/rst/restructuredtext.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -461,10 +461,11 @@
the sections are then lifted up a level or two. See the `DocTitle
transform`_ for details.
-.. [#] The `title`_ configuration setting can set a document title that does
- not become part of the document body.
+.. [#] The `title configuration setting`__ and the `title directive`__
+ set a document title that does not become part of the document body.
-.. _title: ../../user/config.html#title
+ __ ../../user/config.html#title
+ __ directives.html#metadata-document-title
Sections
@@ -3176,6 +3177,7 @@
.. _colspec: ../doctree.html#colspec
.. _thead: ../doctree.html#thead
.. _tbody: ../doctree.html#tbody
+.. _title: ../doctree.html#title
.. _row: ../doctree.html#row
.. _entry: ../doctree.html#entry
.. _identifier key: ../doctree.html#identifier-keys
Modified: trunk/docutils/docs/user/config.txt
===================================================================
--- trunk/docutils/docs/user/config.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/user/config.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -710,7 +710,7 @@
language_code_, smartquotes_locales_, and the `pre-defined quote sets`__).
Also changes consecutive runs of hyphen-minus and full stops (``---``,
-``--``, ``...``) to em-dash, en-dash and ellipsis Unicode characters
+``--``, ``...``) to em-dash, en-dash, and ellipsis Unicode characters
respectively.
Supported values:
@@ -1573,12 +1573,11 @@
Default: "" (quoting of whitespace and special chars).
Option: ``--literal-block-env``.
-.. [#] A literal-block element, when processed by a Docutils writer might
- have it's origin in literal block following "::" or a
- ``.. parsed-literal::`` directive.
+.. [#] A literal-block element may originate from a `parsed literal`_.
+ A LaTeX verbatim environment is only usable it does not contain
+ inline elements.
- A LaTeX verbatim environment is only usable if there is no other
- markup contained in the literal-block.
+.. _parsed literal: ../ref/rst/directives.html#parsed-literal
reference_label
~~~~~~~~~~~~~~~
Modified: trunk/docutils/docs/user/html.txt
===================================================================
--- trunk/docutils/docs/user/html.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/user/html.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -108,7 +108,7 @@
.. [#] see also `Benefits of polyglot XHTML5`_
.. [#safetext] The validity of raw HTML and custom stylesheets must be
- ensured by the author (e.g. using `safe text content`_).
+ ensured by the author.
.. _rst2html5.py: tools.html#rst2html5-py
.. _[html5 writer]: config.html#html5-writer
@@ -118,48 +118,20 @@
.. _custom style sheets: ../howto/html-stylesheets.html
.. _viewable with any browser: http://www.anybrowser.org/campaign
.. _Benefits of polyglot XHTML5: http://xmlplease.com/xhtml/xhtml5polyglot/
-.. _safe text content:
- https://www.w3.org/TR/html-polyglot/#dfn-safe-text-content
HTML writers in the sandbox
---------------------------
-There are two more HTML writers in the sandbox_:
+.. _xhtml11:
+There are two more HTML writers in the sandbox_, the `xhtml11 writer`_
+and the `HTML writer for lightweight browsers`_ (_`html4trans`).
+
.. _sandbox: ../dev/policies.html#the-sandbox
-
-xhtml11
-~~~~~~~
-:aliases: xhtml, html4strict
-:front-end: rst2xhtml.py
-:config: `[xhtml11 writer]`
-
-`XHTML 1.1`_ is the latest version of the XML based `extensible
-Hypertext Markup Language` with an official DTD.
-
-The `xhtml11 writer`_ lives in the Docutils sandbox_ since 2008. The output
-conforms to the strict requirements of `XHTML 1.1`_.
-
.. _xhtml11 writer: ../../../sandbox/html4strict/README.html
-
-
-html4trans
-~~~~~~~~~~
-
-:front-end: rst2html_trans.py_
-
-The `HTML writer for lightweight browsers`_ lives in the Docutils sandbox
-(`sandbox/html4trans`_) since 2008. It removes the dependency on CSS. The
-output conforms to `XHTML 1 Transitional`_ and contains sufficient
-formatting information for rendering without style sheet. (Of course, this
-has some drawbacks_.)
-
.. _HTML writer for lightweight browsers:
../../../sandbox/html4trans/README.html
-.. _drawbacks: ../../../sandbox/html4trans/README.html#drawbacks
-.. _sandbox/html4trans: ../../../sandbox/html4trans
-.. _rst2html_trans.py: ../../../sandbox/html4trans/tools/rst2html_trans.py
Overview
@@ -166,7 +138,7 @@
--------
=============== =========== ============== ================= ===========
-name alias(es) `front-end`_ HTML version CSS version
+name aliases `front-end`_ HTML version CSS version
=============== =========== ============== ================= ===========
html4css1_ html4, rst2html4.py, `XHTML 1 `CSS 1`_
html_ rst2html.py Transitional`_
@@ -182,7 +154,7 @@
xhtml11_ xhtml, rst2xhtml.py `XHTML 1.1`_ `CSS 3`_
html4strict
-html4trans_ .. rst2html_trans `XHTML 1 no CSS
+html4trans_ .. rst2html_trans `XHTML 1 no CSS
Transitional`_ required
=============== =========== ============== ================= ===========
Modified: trunk/docutils/docs/user/manpage.txt
===================================================================
--- trunk/docutils/docs/user/manpage.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/user/manpage.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -1,5 +1,5 @@
==============================
- manpage writer for Docutils_
+ manpage writer for Docutils_
==============================
:Author: Engelbert Gruber
@@ -8,10 +8,13 @@
:Date: $Date$
:Copyright: This document has been placed in the public domain.
-This tries to explore the posibilities to generate man-pages from
+This writer explores the posibilities to generate man-pages from
reStructuredText. Man pages are the way for Unix systems to provide
help to the user. GNU does this with (TeX)info-pages.
+.. contents::
+
+
Module information
''''''''''''''''''
@@ -26,17 +29,17 @@
mandatory, see References_.
man pages look like::
-
+
man(1) Man Pager Utils man(1)
-
+
NAME
man - an interface to the on-line reference manuals
-
+
SYNOPSIS
man [-c|-w|-tZT device] [-adhu7V] [-m system[,...]] [-L locale]
-
+
in roff formatting::
-
+
.TH man 1 "14 May 2001" "2.3.19" "Manual pager utils"
.SH NAME
man \- an interface to the on-line reference manuals
@@ -46,9 +49,9 @@
.RB [\| \-c \||\| \-w \||\| \-tZT
.IR device \|]
-This means we have
+This means we have
-* a title "man"
+* a title "man"
* a subtitle "an interface to the on-line reference manuals"
* a manual section "1"
* a manual group "Manual pager utils"
@@ -65,7 +68,7 @@
Conventions
'''''''''''
-* man pages have a special structure and organization. From the manpage
+* man pages have a special structure and organization. From the manpage
to *man*::
The table below shows the section numbers of the manual followed by the
@@ -105,17 +108,17 @@
* new lines in general.
Consecutive blank lines are merged by the viewer but not on printouts.
- So one has to be cautious. This is most disturbing when printing
+ So one has to be cautious. This is most disturbing when printing
postscript.
.. NOTE::
1. Roff requests only work when at line start.
- 2. But consecutive blank lines are merged by the viewer but not on
+ 2. But consecutive blank lines are merged by the viewer but not on
printouts.
- So try the rule start new lines in ``visit_``-functions, but only if
- necessary. E.g. ``field-names`` are already on a new line because of
+ So try the rule start new lines in ``visit_``-functions, but only if
+ necessary. E.g. ``field-names`` are already on a new line because of
docutils structure.
* Indentation, left margin:
@@ -150,7 +153,7 @@
* How to write long syntax lines.
* Line ends around email or web addresses in texts.
How to distinguish something is inline or not ?
-
+
* Images and equations are discouraged.
* Lists in admonitions are not intended.
* Encoding declaration ``'\" t -*- coding: ISO-8859-1 -*-``
@@ -159,5 +162,5 @@
BUT if UTF-8 is declared tables are no longer processed.
* Input and output encoding are problematic at least.
-
+
.. _Docutils: http://docutils.sourceforge.net/
Modified: trunk/docutils/docs/user/odt.txt
===================================================================
--- trunk/docutils/docs/user/odt.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/user/odt.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -67,7 +67,8 @@
$ rst2odt.py -s -g python_comments.txt python_comments.odt
- $ rst2odt.py --source-url=odtwriter.txt --generator --stylesheet=/myconfigs/styles.odt odtwriter.txt odtwriter.odt
+ $ rst2odt.py --source-url=odtwriter.txt --generator \
+ --stylesheet=/myconfigs/styles.odt odtwriter.txt odtwriter.odt
Configuration file
@@ -744,7 +745,8 @@
using the ``--stylesheet`` option in order to include your
custom style definitions. For example::
- rst2odt.py --odf-config-file=mymappingfile.ini --stylesheet=mystyles.odt mydoc.txt mydoc.odt
+ rst2odt.py --odf-config-file=mymappingfile.ini \
+ --stylesheet=mystyles.odt mydoc.txt mydoc.odt
Classes
@@ -1013,15 +1015,20 @@
.. raw:: odt
- <text:p text:style-name="rststyle-textbody">Determining <text:span text:style-name="rststyle-emphasis">which</text:span> namespace a name is in is static. It can be
- determined by a lexical scan of the code. If a variable is assigned a
- value <text:span text:style-name="rststyle-emphasis">anywhere</text:span> in a scope (specifically within a function or method
- body), then that variable is local to that scope. If Python does not
- find a variable in the local scope, then it looks next in the global
- scope (also sometimes called the module scope) and then in the
- built-ins scope. But, the <text:span text:style-name="rststyle-inlineliteral">global</text:span> statement can be used to force
- Python to find and use a global variable (a variable defined at top
- level in a module) rather than create a local one.</text:p>
+ <text:p text:style-name="rststyle-textbody">Determining
+ <text:span text:style-name="rststyle-emphasis">which</text:span>
+ namespace a name is in is static. It can be determined by a
+ lexical scan of the code. If a variable is assigned a value
+ <text:span text:style-name="rststyle-emphasis">anywhere</text:span>
+ in a scope (specifically within a function or method body),
+ then that variable is local to that scope. If Python does
+ not find a variable in the local scope, then it looks next
+ in the global scope (also sometimes called the module scope)
+ and then in the built-ins scope. But, the
+ <text:span text:style-name="rststyle-inlineliteral">global</text:span>
+ statement can be used to force Python to find and use a global
+ variable (a variable defined at top level in a module) rather
+ than create a local one.</text:p>
The meta directive
Modified: trunk/docutils/docs/user/rst/cheatsheet.txt
===================================================================
--- trunk/docutils/docs/user/rst/cheatsheet.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/user/rst/cheatsheet.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -100,7 +100,7 @@
header, footer Create document decorations [0.3.8]
target-notes Create an explicit footnote for each external target
math Mathematical notation (input in LaTeX format)
-meta HTML-specific metadata
+meta Document metadata
include Read an external reST file as if it were inline
raw Non-reST data passed untouched to the Writer
replace Replacement text for substitution definitions
Modified: trunk/docutils/docs/user/rst/demo.txt
===================================================================
--- trunk/docutils/docs/user/rst/demo.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/user/rst/demo.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -517,6 +517,26 @@
This construct is called a *compound paragraph* and can be produced
with the "compound" directive.
+Meta
+````
+
+The `“meta” directive`__ is used to specify metadata to be stored in,
+e.g., HTML META tags or ODT file properties.
+
+.. hint::
+ Use a `viewport meta tag`__ to tell mobile browsers
+ to use the device-width as viewport.
+
+.. meta::
+ :keywords: reStructuredText, test, parser
+ :description lang=en: A test document, containing at least one
+ example of each reStructuredText construct.
+ :viewport: width=device-width, initial-scale=1
+
+__ https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata
+__ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
+
+
Substitution Definitions
------------------------
Modified: trunk/docutils/docs/user/smartquotes.txt
===================================================================
--- trunk/docutils/docs/user/smartquotes.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/user/smartquotes.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -88,6 +88,8 @@
[#x-altquot]_
There is built-in support for the following languages:\ [#smartquotes-locales]_
+.. class:: run-in
+
:af: .. class:: language-af
"'Afrikaans' quotes"
@@ -142,8 +144,7 @@
:en-uk-x-altquot: .. class:: language-en-uk-x-altquot
- "'British' alternative quotes"
- (swaps single and double quotes: ``"`` → ‘ and ``'`` → “)
+ "'British' alternative quotes" (swaps single and double quotes)
:eo: .. class:: language-eo
@@ -262,7 +263,7 @@
"'Dutch' alternative quotes"
-.. # 'nl-x-altquot2': u'””’’',
+ .. # 'nl-x-altquot2': u'””’’',
:pl: .. class:: language-pl
Modified: trunk/docutils/docs/user/tools.txt
===================================================================
--- trunk/docutils/docs/user/tools.txt 2021-03-05 21:14:20 UTC (rev 8630)
+++ trunk/docutils/docs/user/tools.txt 2021-03-05 21:14:40 UTC (rev 8631)
@@ -78,7 +78,7 @@
:Readers: Standalone, PEP
:Parser: reStructuredText
-:Writers: html_, pep_html_
+:Writers: html_, html5_, pep_html_
Use ``buildhtml.py`` to generate ``*.html`` from all the ``*.txt`` files
(including PEPs) in each <directory> given, and their subdirectories
@@ -178,7 +178,7 @@
:Reader: Standalone
:Parser: reStructuredText
-:Writer: _`html5` (html5_polyglot_)
+:Writer: html5_
The ``rst2html5.py`` front end reads standalone reStructuredText source
files and produces `HTML 5`_ output.
@@ -186,7 +186,7 @@
CSS style sheet. The provided style sheets ``minimal.css`` and ``plain.css``
define required and optional styling rules respectively.
-.. _html5_polyglot: html.html#html5-polyglot
+.. _html5: html.html#html5-polyglot
rstpep2html.py
--------------
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-03-09 12:54:00
|
Revision: 8632
http://sourceforge.net/p/docutils/code/8632
Author: milde
Date: 2021-03-09 12:53:57 +0000 (Tue, 09 Mar 2021)
Log Message:
-----------
HTML5 writer: Add a `viewport` meta tag to fix rendering in mobile browsers.
The default behaviour of many mobile browsers is to render for a
virtual viewport size and scale.
This breaks CSS styling with the default stylesheets.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docs/user/rst/demo.txt
trunk/docutils/docutils/writers/_html_base.py
trunk/docutils/docutils/writers/html5_polyglot/__init__.py
trunk/docutils/docutils/writers/html5_polyglot/responsive.css
trunk/docutils/test/functional/expected/embed_images_html5.html
trunk/docutils/test/functional/expected/footnotes_html5.html
trunk/docutils/test/functional/expected/math_output_mathml.xhtml
trunk/docutils/test/functional/expected/standalone_rst_html5.html
trunk/docutils/test/functional/input/data/html5-features.txt
trunk/docutils/test/test_writers/test_html5_polyglot_parts.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-03-05 21:14:40 UTC (rev 8631)
+++ trunk/docutils/HISTORY.txt 2021-03-09 12:53:57 UTC (rev 8632)
@@ -102,7 +102,11 @@
is found in `inline` and `literal` elements.
Use <ins> and <del> if a matching class value
is found in `inline`, `literal`, or `container` elements.
+
+ - Add a `viewport meta tag`__ to fix rendering in mobile browsers.
+ __ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
+
* docutils/writers/html5_polyglot/responsive.css
- New optional stylesheet that adapts to different screen sizes.
Modified: trunk/docutils/docs/user/rst/demo.txt
===================================================================
--- trunk/docutils/docs/user/rst/demo.txt 2021-03-05 21:14:40 UTC (rev 8631)
+++ trunk/docutils/docs/user/rst/demo.txt 2021-03-09 12:53:57 UTC (rev 8632)
@@ -523,15 +523,10 @@
The `“meta” directive`__ is used to specify metadata to be stored in,
e.g., HTML META tags or ODT file properties.
-.. hint::
- Use a `viewport meta tag`__ to tell mobile browsers
- to use the device-width as viewport.
-
.. meta::
:keywords: reStructuredText, test, parser
:description lang=en: A test document, containing at least one
example of each reStructuredText construct.
- :viewport: width=device-width, initial-scale=1
__ https://docutils.sourceforge.io/docs/ref/rst/directives.html#metadata
__ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
Modified: trunk/docutils/docutils/writers/_html_base.py
===================================================================
--- trunk/docutils/docutils/writers/_html_base.py 2021-03-05 21:14:40 UTC (rev 8631)
+++ trunk/docutils/docutils/writers/_html_base.py 2021-03-09 12:53:57 UTC (rev 8632)
@@ -168,7 +168,7 @@
head_prefix_template = ('<html xmlns="http://www.w3.org/1999/xhtml"'
' xml:lang="%(lang)s" lang="%(lang)s">\n<head>\n')
- content_type = ('<meta charset="%s"/>\n')
+ content_type = '<meta charset="%s"/>\n'
generator = ('<meta name="generator" content="Docutils %s: '
'http://docutils.sourceforge.net/" />\n')
Modified: trunk/docutils/docutils/writers/html5_polyglot/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/__init__.py 2021-03-05 21:14:40 UTC (rev 8631)
+++ trunk/docutils/docutils/writers/html5_polyglot/__init__.py 2021-03-09 12:53:57 UTC (rev 8632)
@@ -164,6 +164,10 @@
and examples.
"""
+ # meta tag to fix rendering in mobile browsers
+ viewport = ('<meta name="viewport" '
+ 'content="width=device-width, initial-scale=1" />\n')
+
# <acronym> tag obsolete in HTML5. Use the <abbr> tag instead.
def visit_acronym(self, node):
# @@@ implementation incomplete ("title" attribute)
@@ -242,6 +246,8 @@
self.head_prefix_template %
{'lang': self.settings.language_code}])
self.html_prolog.append(self.doctype)
+ self.meta.insert(0, self.viewport)
+ self.head.insert(0, self.viewport)
self.meta.insert(0, self.content_type % self.settings.output_encoding)
self.head.insert(0, self.content_type % self.settings.output_encoding)
if 'name="dcterms.' in ''.join(self.meta):
Modified: trunk/docutils/docutils/writers/html5_polyglot/responsive.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/responsive.css 2021-03-05 21:14:40 UTC (rev 8631)
+++ trunk/docutils/docutils/writers/html5_polyglot/responsive.css 2021-03-09 12:53:57 UTC (rev 8632)
@@ -234,10 +234,6 @@
}
/* Literal and Code */
-pre {
- font-size: 0.9;
- /* overflow: auto; */
-}
pre.code .ln { color: gray; } /* line numbers */
/* basic highlighting: for a complete scheme, see */
/* http://docutils.sourceforge.net/sandbox/stylesheets/ */
@@ -355,6 +351,10 @@
dl.option-list > dd {
margin-left: 2.4em;
}
+ pre, pre * {
+ font-size: 0.9em;
+ /* overflow: auto; */
+ }
}
/* Move ToC to the left */
Modified: trunk/docutils/test/functional/expected/embed_images_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/embed_images_html5.html 2021-03-05 21:14:40 UTC (rev 8631)
+++ trunk/docutils/test/functional/expected/embed_images_html5.html 2021-03-09 12:53:57 UTC (rev 8632)
@@ -2,6 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8"/>
+<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
<title>Embedded Images</title>
<link rel="stylesheet" href="../../../docutils/writers/html5_polyglot/minimal.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/footnotes_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/footnotes_html5.html 2021-03-05 21:14:40 UTC (rev 8631)
+++ trunk/docutils/test/functional/expected/footnotes_html5.html 2021-03-09 12:53:57 UTC (rev 8632)
@@ -2,6 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8"/>
+<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
<title>Test footnote and citation rendering</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/math_output_mathml.xhtml
===================================================================
--- trunk/docutils/test/functional/expected/math_output_mathml.xhtml 2021-03-05 21:14:40 UTC (rev 8631)
+++ trunk/docutils/test/functional/expected/math_output_mathml.xhtml 2021-03-09 12:53:57 UTC (rev 8632)
@@ -2,6 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8"/>
+<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/standalone_rst_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-03-05 21:14:40 UTC (rev 8631)
+++ trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-03-09 12:53:57 UTC (rev 8632)
@@ -2,6 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="utf-8"/>
+<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
<title>reStructuredText Test Document</title>
<meta name="author" content="David Goodger" />
@@ -12,7 +13,6 @@
<meta name="dcterms.rights" content="This document has been placed in the public domain. You may do with it as you wish. You may copy, modify, redistribute, reattribute, sell, buy, rent, lease, destroy, or improve it, quote it at length, excerpt, incorporate, collate, fold, staple, or mutilate it, or do anything else to it that your or anyone else's heart desires." />
<meta content="reStructuredText, test, parser" name="keywords" />
<meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description" xml:lang="en" />
-<meta content="width=device-width, initial-scale=1" name="viewport" />
<link rel="schema.dcterms" href="http://purl.org/dc/terms/"/>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
@@ -1256,18 +1256,14 @@
<section id="changes-to-the-html4css1-writer">
<h2><a class="toc-backref" href="#toc-entry-43"><span class="sectnum">3</span> Changes to the <cite>html4css1</cite> Writer</a></h2>
<ul>
-<li><p>Use only meta keywords recognized by HTML 5.
+<li><p>Use only <a class="reference internal" href="#meta">meta</a> keywords recognized by HTML 5.
Add HTML5-compatible meta tags for docinfo items
"authors", "date", and "copyright".</p>
-<div class="admonition hint">
-<p class="admonition-title">Hint</p>
-<p>Use a <a class="reference external" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag">viewport meta tag</a> <a class="footnote-reference brackets" href="#footnote-15" id="footnote-reference-29">15</a> to tell mobile browsers
+<p>Add a <a class="reference external" href="https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag">viewport meta tag</a> <a class="footnote-reference brackets" href="#footnote-15" id="footnote-reference-29">15</a> to tell mobile browsers
to use the device-width as viewport.</p>
-</div>
</li>
<li><p>Set table column widths with <style="width: ...">, not "width" argument.</p></li>
<li><p>Horizontal alignment of table heads with CSS.</p></li>
-<li><p>Field lists as styled definition lists.</p></li>
<li><p>Do not drop paragraph objects, use CSS rules to prevent unwanted vertical
space.</p></li>
<li><p>Put subtitles in <p> elements.</p></li>
@@ -1277,11 +1273,12 @@
<p>Change the <cite>initial_header_level</cite> setting default to "2", as browsers
use the <a class="reference external" href="https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article">same style for <h1> and <h2> when nested in a <section></a> <a class="footnote-reference brackets" href="#footnote-16" id="footnote-reference-30">16</a>.</p>
</li>
-<li><p>Use HTML text-level tags <small>, <s>, <q>, <dfn>, <var>, <samp>, <kbd>,
+<li><p>Use HTML5 tags <small>, <s>, <q>, <dfn>, <var>, <samp>, <kbd>,
<i>, <b>, <u>, <mark>, and <bdi> if a matching class value
is found in <cite>inline</cite> and <cite>literal</cite> elements.
Use <ins> and <del> if a matching class value
-is found in <cite>inline</cite>, <cite>literal</cite>, or <cite>container</cite> elements.</p></li>
+is found in <cite>inline</cite>, <cite>literal</cite>, or <cite>container</cite> elements.
+(See <a class="reference internal" href="#text-level-semantics">text-level semantics</a> and <a class="reference internal" href="#indicating-edits">indicating edits</a>.)</p></li>
</ul>
<section id="field-list-rendering">
<h3><a class="toc-backref" href="#toc-entry-44"><span class="sectnum">3.1</span> Field List Rendering</a></h3>
Modified: trunk/docutils/test/functional/input/data/html5-features.txt
===================================================================
--- trunk/docutils/test/functional/input/data/html5-features.txt 2021-03-05 21:14:40 UTC (rev 8631)
+++ trunk/docutils/test/functional/input/data/html5-features.txt 2021-03-09 12:53:57 UTC (rev 8632)
@@ -1,26 +1,19 @@
Changes to the `html4css1` Writer
=================================
-* Use only meta keywords recognized by HTML 5.
+* Use only meta_ keywords recognized by HTML 5.
Add HTML5-compatible meta tags for docinfo items
"authors", "date", and "copyright".
- .. hint::
-
- Use a `viewport meta tag`__ to tell mobile browsers
- to use the device-width as viewport.
+ Add a `viewport meta tag`__ to tell mobile browsers
+ to use the device-width as viewport.
- .. meta::
- :viewport: width=device-width, initial-scale=1
+ __ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
- __ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
-
* Set table column widths with <style="width: ...">, not "width" argument.
* Horizontal alignment of table heads with CSS.
-* Field lists as styled definition lists.
-
* Do not drop paragraph objects, use CSS rules to prevent unwanted vertical
space.
@@ -35,11 +28,12 @@
__ https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article
-* Use HTML text-level tags <small>, <s>, <q>, <dfn>, <var>, <samp>, <kbd>,
+* Use HTML5 tags <small>, <s>, <q>, <dfn>, <var>, <samp>, <kbd>,
<i>, <b>, <u>, <mark>, and <bdi> if a matching class value
is found in `inline` and `literal` elements.
Use <ins> and <del> if a matching class value
is found in `inline`, `literal`, or `container` elements.
+ (See `text-level semantics`_ and `indicating edits`_.)
Field List Rendering
--------------------
Modified: trunk/docutils/test/test_writers/test_html5_polyglot_parts.py
===================================================================
--- trunk/docutils/test/test_writers/test_html5_polyglot_parts.py 2021-03-05 21:14:40 UTC (rev 8631)
+++ trunk/docutils/test/test_writers/test_html5_polyglot_parts.py 2021-03-09 12:53:57 UTC (rev 8632)
@@ -26,11 +26,14 @@
writer_name = 'html5'
standard_content_type_template = ('<meta charset="%s"/>\n')
- standard_generator_template = (
- '<meta name="generator"'
+ standard_generator_template = ('<meta name="generator"'
' content="Docutils %s: http://docutils.sourceforge.net/" />\n')
+ standard_viewport_template = ('<meta name="viewport"'
+ ' content="width=device-width, initial-scale=1" />\n')
+
standard_html_meta_value = (standard_content_type_template
- + standard_generator_template % __version__)
+ + standard_viewport_template
+ + standard_generator_template % __version__)
standard_meta_value = standard_html_meta_value % 'utf-8'
standard_html_prolog = '<!DOCTYPE html>\n'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-03-09 12:54:16
|
Revision: 8633
http://sourceforge.net/p/docutils/code/8633
Author: milde
Date: 2021-03-09 12:54:13 +0000 (Tue, 09 Mar 2021)
Log Message:
-----------
Small documentation updates and fixes.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docs/ref/rst/directives.txt
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-03-09 12:53:57 UTC (rev 8632)
+++ trunk/docutils/HISTORY.txt 2021-03-09 12:54:13 UTC (rev 8633)
@@ -36,11 +36,11 @@
- VersionInfo: ValueError for invalid values, fix comparison to tuples.
-* docutils/languages/
+* docutils/languages/
docutils/parsers/rst/languages/
- Apply patch # 177 Arabic mappings by Shahin.
- - Apply patch for bug #399 Fixes in Korean translation.
+ - Apply patch for bug #399 Fixes in Korean translation by Shinjo Park.
* docutils/nodes.py
@@ -72,7 +72,8 @@
* docutils/parsers/rst/roles.py
- - Apply patch #174 Lowercase new role names on registration
+ - Apply patch #174 `Lowercase new role names on registration`
+ by John Thorvald Wodder II.
* docutils/utils/smartquotes.py
@@ -102,15 +103,13 @@
is found in `inline` and `literal` elements.
Use <ins> and <del> if a matching class value
is found in `inline`, `literal`, or `container` elements.
-
+
+ - Fix bug #398: properly close link tag to "schema.dcterms".
+
- Add a `viewport meta tag`__ to fix rendering in mobile browsers.
__ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
-* docutils/writers/html5_polyglot/responsive.css
-
- - New optional stylesheet that adapts to different screen sizes.
-
* docutils/writers/html5_polyglot/minimal.css
- Move non-essential styling to ``plain.css``.
@@ -120,23 +119,11 @@
* docutils/writers/html5_polyglot/plain.css
- Support numbered figures.
- - Fix bug #398: properly close link tag to "schema.dcterms".
* docutils/writers/html5_polyglot/responsive.css
- - New optional stylesheet for better readability on different
- screens.
+ - New optional style that adapts to different screen sizes.
-* docutils/writers/html5_polyglot/minimal.css
-
- - Move non-essential styling from to ``plain.css``.
- Support "captionbelow" class value for tables.
- Small fixes and tweaks.
-
-* docutils/writers/html5_polyglot/plain.css
-
- - Support numbered figures.
-
* docutils/writers/latex2e/__init__.py:
- Use LaTeX environments for admonitions and "class wrappers" for styling
@@ -151,9 +138,9 @@
__ docs/user/latex.html#custom-interpreted-text-roles
- Remove legacy LaTeX stylesheet ``docutils-05-compat.sty``.
-
+
- Support the `memoir` LaTeX document class.
- Fixes bugs #390, #391, and #392.
+ Fixes bugs #390, #391, and #392. Thanks to John Thorvald Wodder II.
- The special value "auto" for the `graphicx_option`_ setting
is no longer supported (it never worked for xetex/luatex).
@@ -173,14 +160,14 @@
- Fix bug #408 "Incorrect assert in latex writer
for multiple citation references".
- - Apply patch #175 "Fix alignment of nested tables",
- additional fixes to table alignment.
+ - Apply patch #175 "Fix alignment of nested tables"
+ by John Thorvald Wodder II. Additional fixes to table alignment.
- Do not write Docutils-generated ToC, when ``use_latex_toc``
is True. (This did happen when publishing from a doctree.)
-
+
- Set PDF document properties from "meta" directive content.
-
+
- Apply version of patch #176 "LaTeX writer: Append \leavevmode to
non-docinfo field names" by John Thorvald Wodder II.
@@ -194,7 +181,7 @@
* docutils/writers/odf_odt/__init__.py:
- Fix/improve metadata handling:
- fix "keyword" splitting,
+ fix "keyword" splitting,
allow generic fields (stored as "Custom Properties").
* docutils/writers/pseudoxml.py:
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2021-03-09 12:53:57 UTC (rev 8632)
+++ trunk/docutils/RELEASE-NOTES.txt 2021-03-09 12:54:13 UTC (rev 8633)
@@ -26,13 +26,15 @@
and/or ``\DUtitle`` or set to "True".
* `html5` writer:
- Use <blockquote> instead of <div> tags for topics and admonitions,
- <aside> instad of <dl> for footnote text and citations,
+ Use <aside> instad of <dl> for footnote text and citations
and <nav> instead of <div> for the Table of Contents.
Use <summary> and <details> tags for term and definition of a
definition list with class value "details".
-
+
+ Move attribution behind the blockquote to comply with
+ https://html.spec.whatwg.org/#the-blockquote-element.
+
* `s5_html` writer:
Remove the IE PNG Fix by Angus Turnbull. IE has native PNG
support since version 7.
Modified: trunk/docutils/docs/ref/rst/directives.txt
===================================================================
--- trunk/docutils/docs/ref/rst/directives.txt 2021-03-09 12:53:57 UTC (rev 8632)
+++ trunk/docutils/docs/ref/rst/directives.txt 2021-03-09 12:54:13 UTC (rev 8633)
@@ -1868,12 +1868,13 @@
:Directive Content: Must contain a flat field list.
The "meta" directive is used to specify metadata\ [#]_ to be stored
-in, e.g., HTML META tags or as ODT file properties. If the output
-format does not support "invisible" metadata, it is silently
-dropped by the writer.
+in, e.g., `HTML meta elements`_ or as `ODT file properties`_. The
+LaTeX writer passes it to the ``pdfinfo`` option of the hyperref_
+package. If an output format does not support "invisible" metadata,
+content is silently dropped by the writer.
.. note:: Data from some `bibliographic fields`_ is automatically
- extracted and stored in META tags, too. However, Bibliographic
+ extracted and stored as metadata, too. However, Bibliographic
Fields are also visible in the document's screen rendering or
printout.
@@ -1920,11 +1921,18 @@
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
+
.. [#] "Metadata" is data about data, in this case data about the
document. Metadata is, e.g., used to describe and classify web
pages in the World Wide Web, in a form that is easy for search
engines to extract and collate.
+
+.. _HTML meta elements:
+ https://html.spec.whatwg.org/multipage/semantics.html#the-meta-element
+.. _ODT file properties:
+ https://en.wikipedia.org/wiki/OpenDocument_technical_specification#Metadata
+.. _hyperref: http://ctan.org/pkg/hyperref
.. _bibliographic fields: restructuredtext.html#bibliographic-fields
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-03-19 00:23:24
|
Revision: 8635
http://sourceforge.net/p/docutils/code/8635
Author: milde
Date: 2021-03-19 00:23:19 +0000 (Fri, 19 Mar 2021)
Log Message:
-----------
HTML5 stylesheet update and cleanup. Class value for documents with ToC.
* Improve the page layout for responsive design, especially for
documents without ToC.
* Cleanup, small fixes, and re-organisation.
Modified Paths:
--------------
trunk/docutils/docutils/writers/html5_polyglot/__init__.py
trunk/docutils/docutils/writers/html5_polyglot/minimal.css
trunk/docutils/docutils/writers/html5_polyglot/plain.css
trunk/docutils/docutils/writers/html5_polyglot/responsive.css
trunk/docutils/docutils/writers/html5_polyglot/tuftig.css
trunk/docutils/test/functional/expected/standalone_rst_html5.html
Modified: trunk/docutils/docutils/writers/html5_polyglot/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/__init__.py 2021-03-09 12:54:27 UTC (rev 8634)
+++ trunk/docutils/docutils/writers/html5_polyglot/__init__.py 2021-03-19 00:23:19 UTC (rev 8635)
@@ -408,3 +408,17 @@
def depart_sidebar(self, node):
self.body.append('</aside>\n')
self.in_sidebar = False
+
+ # Add class value to <body>, if there is a ToC in the document
+ # (see responsive.css how this is used for sidebar navigation).
+ # TODO: use the new HTML5 element <aside>?
+ def visit_topic(self, node):
+ if ('contents' in node['classes']
+ and isinstance(node.parent, nodes.document)):
+ self.body_prefix[0] = '</head>\n<body class="with-toc">\n'
+ self.body.append(self.starttag(node, 'div', CLASS='topic'))
+ self.topic_classes = node['classes'] # TODO: remove?
+
+ def depart_topic(self, node):
+ self.body.append('</div>\n')
+ self.topic_classes = []
Modified: trunk/docutils/docutils/writers/html5_polyglot/minimal.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/minimal.css 2021-03-09 12:54:27 UTC (rev 8634)
+++ trunk/docutils/docutils/writers/html5_polyglot/minimal.css 2021-03-19 00:23:19 UTC (rev 8635)
@@ -21,23 +21,18 @@
/* .. _validates: http://jigsaw.w3.org/css-validator/validator$link */
/* titles */
-h1.title,
-p.subtitle {
- text-align: center;
-}
p.topic-title,
-p.sidebar-title,
-p.rubric,
p.admonition-title,
p.system-message-title {
font-weight: bold;
}
-h1 + p.subtitle {
- font-size: 1.6em;
+p.sidebar-title,
+p.rubric {
+ font-weight: bold;
+ font-size: larger;
}
-h2 + p.section-subtitle,
-p.sidebar-title {
- font-size: 1.2em;
+p.rubric {
+ color: maroon;
}
p.subtitle,
p.section-subtitle,
@@ -45,45 +40,47 @@
font-weight: bold;
margin-top: -0.5em;
}
-p.rubric {
- font-size: larger;
- color: maroon;
+h1 + p.subtitle {
+ font-size: 1.6em;
}
-a.toc-backref {
+h2 + p.section-subtitle, a.toc-backref {
color: black;
text-decoration: none;
}
/* Warnings, Errors */
-div.system-messages h2,
-span.problematic,
-p.system-message-title {
+.system-messages h2,
+.system-message-title,
+span.problematic {
color: red;
}
/* Inline Literals */
-span.docutils.literal {
+.docutils.literal {
font-family: monospace;
white-space: pre-wrap;
}
-/* do not wraph at hyphens and similar: */
+/* do not wrap at hyphens and similar: */
.literal > span.pre { white-space: nowrap; }
/* Lists */
/* compact and simple lists: no margin between items */
-.simple li, .compact li,
-.simple ul, .compact ul,
-.simple ol, .compact ol,
-.simple > li p, .compact > li p,
-dl.simple > dd, dl.compact > dd {
+.simple li, .simple ul, .simple ol,
+.compact li, .compact ul, .compact ol,
+.simple > li p, dl.simple > dd,
+.compact > li p, dl.compact > dd {
margin-top: 0;
margin-bottom: 0;
}
+/* Nested Paragraphs */
+p:first-child { margin-top: 0; }
+p:last-child { margin-bottom: 0; }
+td > p, th > p { margin-bottom: 0; }
/* Table of Contents */
-div.topic.contents { margin: 0.5em 0; }
-div.topic.contents ul {
+.topic.contents { margin: 0.5em 0; }
+.topic.contents ul {
list-style-type: none;
padding-left: 1.5em;
}
@@ -95,14 +92,14 @@
ol.lowerroman { list-style: lower-roman }
ol.upperroman { list-style: upper-roman }
-dt span.classifier { font-style: italic }
-dt span.classifier:before {
+/* Definition Lists and Derivatives */
+dt .classifier { font-style: italic }
+dt .classifier:before {
font-style: normal;
margin: 0.5em;
content: ":";
}
-
-/* Field Lists and drivatives */
+/* Field Lists and similar */
/* bold field name, content starts on the same line */
dl.field-list > dt,
dl.option-list > dt,
@@ -120,7 +117,7 @@
dl.field-list > dd,
dl.option-list > dd,
dl.docinfo > dd {
- margin-left: 9em; /* ca. 14 chars in the test examples */
+ margin-left: 9em; /* ca. 14 chars in the test examples, fit all Docinfo fields */
}
/* start field-body on a new line after long field names */
dl.field-list > dd > *:first-child,
@@ -137,11 +134,11 @@
}
/* Bibliographic Fields (docinfo) */
-pre.address {
- font: inherit;
+dl.docinfo pre.address {
+ font: inherit;
margin: 0.5em 0;
}
-dd.authors > p { margin: 0; }
+dl.docinfo > dd.authors > p { margin: 0; }
/* Option Lists */
dl.option-list > dt { font-weight: normal; }
@@ -160,41 +157,31 @@
vertical-align: super;
font-size: small;
}
-dt.label > span.fn-backref { margin-left: 0.2em; }
+dt.label > span.fn-backref {
+ margin-left: 0.2em;
+ font-weight: normal;
+}
dt.label > span.fn-backref > a { font-style: italic; }
-/* Alignment inside block objects */
-.align-left { text-align: left; }
-.align-right { text-align: right; }
-.align-center { clear: both; text-align: center; }
-.align-top { vertical-align: top; }
-.align-middle { vertical-align: middle; }
-.align-bottom { vertical-align: bottom; }
-
-/* Alignment of block objects */
-figure.align-left,
-img.align-left,
-object.align-left,
-table.align-left {
+/* Alignment */
+.align-left {
+ text-align: left;
margin-right: auto;
}
-figure.align-center,
-img.align-center,
-object.align-center,
-table.align-center {
+.align-center {
+ clear: both;
+ text-align: center;
margin-left: auto;
margin-right: auto;
}
-figure.align-right,
-img.align-right,
-object.align-right,
-table.align-right {
+.align-right {
+ text-align: right;
margin-left: auto;
}
-img.align-center, img.align-right,
-object.align-center, object.align-right {
- display: block;
-}
+.align-top { vertical-align: top; }
+.align-middle { vertical-align: middle; }
+.align-bottom { vertical-align: bottom; }
+
/* reset inner alignment in figures and tables */
figure.align-left, figure.align-right,
table.align-left, table.align-center, table.align-right {
@@ -201,40 +188,42 @@
text-align: inherit;
}
-/* Sidebar */
-aside.sidebar {
+/* Text Blocks */
+blockquote,
+div.topic,
+aside.topic {
+ margin: 1em 2em;
+}
+.sidebar,
+.admonition,
+.system-message {
+ border: thin solid;
+ margin: 1em 2em;
+ padding: 0.5em 1em;
+}
+.sidebar {
width: 30%;
max-width: 26em;
float: right;
clear: right;
}
-
-/* Text Blocks */
-blockquote,
-div.topic,
-div.admonition,
-div.system-message {
- margin-left: 2em;
- margin-right: 2em;
-}
div.line-block { display: block; }
-div.line-block div.line-block {
- margin: 0 0 0 2em;
-}
-pre { margin-left: 2em; }
+div.line-block div.line-block, pre { margin-left: 2em; }
pre.code .ln { color: gray; } /* line numbers */
-
/* Tables */
-table { border-collapse: collapse; }
+table {
+ border-collapse: collapse;
+}
td, th {
- border-style: solid;
- border-color: silver;
+ border: thin solid silver;
padding: 0 1ex;
- border-width: thin;
}
-td > p:first-child, th > p:first-child { margin-top: 0; }
-td > p, th > p { margin-bottom: 0; }
+.borderless td, .borderless th {
+ border: 0;
+ padding: 0;
+ padding-right: 0.5em /* separate table cells */
+}
table > caption {
text-align: left;
@@ -245,17 +234,16 @@
caption-side: bottom;
}
-table.borderless td, table.borderless th {
- border: 0;
- padding: 0;
- padding-right: 0.5em /* separate table cells */
-}
-
/* Document Header and Footer */
header { border-bottom: 1px solid black; }
footer { border-top: 1px solid black; }
-/* new HTML5 block elements: set display for older browsers */
-header, section, footer, aside, nav, main, article, figure {
+/* Images are block-level by default in Docutils */
+/* New HTML5 block elements: set display for older browsers */
+img, header, section, footer, aside, nav, main, article, figure, video {
display: block;
}
+/* inline images */
+p img, p video, figure img, figure video {
+ display: inline;
+}
Modified: trunk/docutils/docutils/writers/html5_polyglot/plain.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/plain.css 2021-03-09 12:54:27 UTC (rev 8634)
+++ trunk/docutils/docutils/writers/html5_polyglot/plain.css 2021-03-19 00:23:19 UTC (rev 8635)
@@ -25,23 +25,26 @@
margin: 0;
background-color: #dbdbdb;
}
-div.document,
-main {
+main, footer, header {
line-height:1.3;
- counter-reset: table figure;
/* avoid long lines --> better reading */
- /* optimum is 45…75 characters/line <http://webtypography.net/2.1.2> */
+ /* optimum is 45…75 characters/line <http://webtypography.net/2.1.2> */
/* OTOH: lines should not be too short because of missing hyphenation, */
- max-width: 50em;
+ max-width: 50rem;
padding: 1px 2%; /* 1px on top avoids grey bar above title (mozilla) */
margin: auto;
+}
+main {
+ counter-reset: table figure;
background-color: white;
}
+footer, header {
+ font-size: smaller;
+ padding: 0.5em 2%;
+ border: none;
+}
-/* Sections */
-
/* Transitions */
-
hr.docutils {
width: 80%;
margin-top: 1em;
@@ -50,7 +53,6 @@
}
/* Paragraphs */
-/* ========== */
/* vertical space (parskip) */
p, ol, ul, dl, li, dd,
@@ -118,28 +120,16 @@
font-style: normal;
}
-/* Citations */
-dl.citation dt.label {
- font-weight: bold;
-}
-span.fn-backref {
- font-weight: normal;
-}
-
/* Text Blocks */
/* =========== */
/* Literal Blocks */
-
-pre.literal-block,
-pre.doctest-block,
-pre.math,
-pre.code {
+pre.literal-block, pre.doctest-block,
+pre.math, pre.code {
font-family: monospace;
}
/* Block Quotes */
-
blockquote > table,
div.topic > table {
margin-top: 0;
@@ -201,26 +191,24 @@
/* Images and Figures */
/* let content flow to the side of aligned images and figures */
-.figure.align-left,
figure.align-left,
img.align-left,
+video.align-left,
object.align-left {
- display: block;
clear: left;
float: left;
margin-right: 1em;
}
-.figure.align-right,
figure.align-right,
img.align-right,
+video.align-right,
object.align-right {
- display: block;
clear: right;
float: right;
margin-left: 1em;
}
-/* Stop floating sidebars, images and figures at section level 1,2,3 */
-h1, h2, h3, h4 { clear: both; }
+/* Stop floating sidebars, images and figures */
+h1, h2, h3, h4, footer, header { clear: both; }
/* Numbered figures */
figure.numbered > figcaption > p:before {
@@ -229,32 +217,19 @@
font-weight: bold;
}
-
/* Admonitions and System Messages */
-
-div.admonition,
-div.system-message,
-aside.sidebar {
- border: medium outset;
- margin: 1em 1.5em;
- padding: 0.5em 1em;
-}
-
-div.caution p.admonition-title,
-div.attention p.admonition-title,
-div.danger p.admonition-title,
-div.error p.admonition-title,
-div.warning p.admonition-title,
+.caution p.admonition-title,
+.attention p.admonition-title,
+.danger p.admonition-title,
+.error p.admonition-title,
+.warning p.admonition-title,
div.error {
color: red;
}
-
/* Sidebar */
-
/* Move right. In a layout with fixed margins, */
/* it can be moved into the margin. */
-div.sidebar,
aside.sidebar {
width: 30%;
max-width: 26em;
@@ -264,7 +239,6 @@
}
/* Code */
-
pre.code { padding: 0.7ex }
pre.code, code { background-color: #eeeeee }
pre.code .ln { color: gray; } /* line numbers */
@@ -286,28 +260,9 @@
/* Compound Paragraph */
/* Container */
-/* Document Header and Footer */
-
-footer, header {
- font-size: smaller;
- clear: both;
- padding: 0.5em 2%;
- background-color: #ebebee;
- border: none;
-}
-
/* Inline Markup */
/* ============= */
-/* Emphasis */
-/* em */
-/* Strong Emphasis */
-/* strong */
-/* Interpreted Text */
-/* span.interpreted */
-/* Title Reference */
-/* cite */
-
/* Inline Literals */
/* possible values: normal, nowrap, pre, pre-wrap, pre-line */
/* span.docutils.literal { white-space: pre-wrap; } */
Modified: trunk/docutils/docutils/writers/html5_polyglot/responsive.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/responsive.css 2021-03-09 12:54:27 UTC (rev 8634)
+++ trunk/docutils/docutils/writers/html5_polyglot/responsive.css 2021-03-19 00:23:19 UTC (rev 8635)
@@ -27,15 +27,18 @@
body {
background-color: #fafaf6;
margin: auto;
+ --field-indent: 6.6em; /* indent of fields in field lists */
+ --sidebar-margin-right: 0; /* adapted in media queries below */
}
main {
counter-reset: figure table;
}
-main, header, footer {
+body > * {
background-color: white;
line-height: 1.6;
- /* smooth transition from 5% to 15% (see media queries below) */
- padding: 0.5rem calc(25% - 5.8rem);
+ padding: 0.5rem calc(29% - 7.2rem); /* go from 5% to 15% (8.15em/54em) */
+ margin: auto;
+ max-width: 100rem;
}
/* Vertical Space (Parskip) */
@@ -50,13 +53,6 @@
dl > dd {
margin-bottom: 0.5em;
}
-/* exceptions */
-p:first-child {
- margin-top: 0;
-}
-p:last-child {
- margin-bottom: 0;
-}
blockquote > table,
div.topic > table {
margin-top: 0;
@@ -119,11 +115,11 @@
/* Lists */
ul, ol {
- padding-left: 1.1em;
+ padding-left: 1.1em; /* indent by bullet width (Firefox, DejaVu fonts) */
}
dl.field-list > dd,
dl.docinfo > dd {
- margin-left: 6.4em;
+ margin-left: var(--field-indent); /* adapted in media queries or HTML */
}
dl.option-list > dd {
margin-left: 20%;
@@ -161,6 +157,8 @@
border-left: solid;
border-left-width: thin;
}
+dt.label > span.fn-backref {
+}
/* Images, Figures, and Tables */
img {
@@ -209,18 +207,16 @@
}
/* Admonitions and System Messages */
-div.admonition,
+.admonition,
div.system-message {
- border-style: solid;
- border-color: silver;
- border-width: thin;
+ border: thin solid silver;
margin: 1em 2%;
padding: 0.5em;
}
-div.caution p.admonition-title,
-div.attention p.admonition-title,
-div.danger p.admonition-title,
-div.warning p.admonition-title,
+.caution p.admonition-title,
+.attention p.admonition-title,
+.danger p.admonition-title,
+.warning p.admonition-title,
div.error {
color: maroon;
}
@@ -242,7 +238,7 @@
/* Hyperlink References */
a {
text-decoration: none;
- text-decoration-skip-ink: auto; /* underline that clears descenders (nonstandard) */
+ /* text-decoration-skip-ink: auto; !!nonstandard, default in modern browsers */
}
/* Wrap links at any place, if this is the only way to prevent overflow */
a:link{
@@ -277,6 +273,7 @@
}
img.align-left,
+video.align-left,
figure.align-left,
table.align-left {
margin-left: 0;
@@ -286,6 +283,7 @@
float: left;
}
img.align-right,
+video.align-right,
figure.align-right,
table.align-right {
margin-left: 0.5em;
@@ -299,9 +297,10 @@
aside.sidebar,
.marginal,
.admonition.marginal {
- max-width: min(40%, 20rem);
+ max-width: 40%;
+ border: none;
background-color: #efefea;
- margin: 0.5em 0 0.5em 1em;
+ margin: 0.5em var(--sidebar-margin-right) 0.5em 1em;
padding: 0.5em;
clear: right;
float: right;
@@ -316,7 +315,7 @@
@media (max-width: 30em) {
/* Smaller margins and no floating elements for small screens */
/* (main text less than 40 characters/line) */
- main, header, footer {
+ body > * {
padding: 0.5rem 5%;
line-height: 1.4
}
@@ -331,13 +330,11 @@
pre {
margin-left: 0;
}
- dl.field-list > dd {
- margin-left: 4em;
+ body {
+ --field-indent: 4em;
}
- dl.field-list.narrow > dd,
- dl.docinfo > dd,
- dl.option-list > dd {
- margin-left: 2.4em;
+ dl.field-list.narrow, dl.docinfo, dl.option-list {
+ --field-indent: 2.4em;
}
pre, pre * {
font-size: 0.9em;
@@ -348,17 +345,21 @@
@media (min-width: 54em) {
/* Move ToC to the left */
/* Main text width before: 70% ≙ 35em ≙ 75…95 chrs (Dejavu/Times) */
- /* after: ≳ 30em ≙ 54…70 chrs (Dejavu/Times) */
- main, header, footer {
- margin-left: 10%;
- padding-left: min(20%, 18rem);
+ /* after: ≳ 30em ≙ 54…70 chrs (Dejavu/Times) */
+ body.with-toc {
+ padding-left: 8%;
+ }
+ body.with-toc > * {
+ margin-left: 0;
+ padding-left: 22rem; /* fallback for webkit */
+ padding-left: min(22%, 22rem);
padding-right: 7%;
}
- main > div.topic.contents {
+ main > div.topic.contents { /* exclude local ToCs */
position: fixed;
top: 0;
left: 0;
- width: min(25%, 28em);
+ width: min(25%, 25em);
height: 100vh;
margin: 0;
background-color: #fafaf6;
@@ -377,57 +378,69 @@
}
@media (min-width: 70em) {
- dl.field-list > dd,
- dl.docinfo > dd {
- margin-left: 9em;
+ body {
+ --field-indent: 9em;
}
}
-@media (min-width: 80em) {
- /* limit main text to 50em ≙ 85…100 characters DejaVu rsp. …120 Times */
- main, header, footer {
- padding-right: calc(70% - 50em);
+@media (min-width: 77em) {
+ /* Move marginalia to 6rem from right border */
+ /* aside.sidebar, */
+ /* .marginal, */
+ /* .admonition.marginal { */
+ /* margin-right: calc(6rem - 15%); */
+ /* } */
+ /* BUG: margin is calculated for break point width */
+ /* workaround: variable + many breakpoints */
+ body > * {
+ padding-left: 18%;
+ padding-right: 28%; /* fallback for webkit */
+ padding-right: min(28%, 28rem);
+ --sidebar-margin-right: -20rem;
}
- /* Move marginalia to 6rem from right border */
- /* TODO: why does this fail ?? */
- /* aside.sidebar, */
- /* .marginal, */
- /* .admonition.marginal { */
- /* margin-right: calc(6rem - 15vh); */
- /* } */
+ /* limit main text to ~ 50em ≙ 85…100 characters DejaVu rsp. …120 Times */
+ body.with-toc > * {
+ padding-left: min(22%, 22rem);
+ padding-right: calc(78% - 50rem); /* fallback for webkit */
+ padding-right: min(78% - 50rem, 28rem);
+ --sidebar-margin-right: 0;
+ }
}
-@media (min-width: 92em) {
+@media (min-width: 85em) {
+ body.with-toc > * {
+ --sidebar-margin-right: -9rem;
+ }
+}
+
+@media (min-width: 90em) {
/* move marginalia into the margin */
- aside.sidebar,
- .admonition.marginal,
- .marginal {
- margin-right: -12rem;
+ body > * {
+ padding-left: min(22%, 22rem);
+ --sidebar-margin-right: -23rem;
}
+ body.with-toc > * {
+ --sidebar-margin-right: -14rem;
+ }
}
-@media (min-width: 106em) {
+@media (min-width: 99em) {
/* move marginalia out of main text area */
- aside.sidebar,
+ body.with-toc > * {
+ --sidebar-margin-right: -20rem;
+ }
+ body > *, body.with-toc > * { /* for webkit */
+ padding-left: 22rem;
+ padding-right: 28rem;
+ }
.admonition.marginal,
.marginal {
- width: 20rem;
- /* background-color: inherit; */
- margin-right: -22rem;
+ width: 40%; /* make marginal figures, ... "full width" */
}
}
-@media (min-width: 117em) {
- /* maximal sensible width of main area reached */
- main, header, footer {
- width: 98rem;
- margin-right: 0;
- padding-left: 18rem;
- padding-right: 30rem;
+@media (min-width: 104em) {
+ body.with-toc > * {
+ --sidebar-margin-right: -23rem;
}
- aside.sidebar,
- .marginal,
- .admonition.marginal {
- margin-right: -24rem; /* move into the padding, 6rem from border */
- }
}
Modified: trunk/docutils/docutils/writers/html5_polyglot/tuftig.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/tuftig.css 2021-03-09 12:54:27 UTC (rev 8634)
+++ trunk/docutils/docutils/writers/html5_polyglot/tuftig.css 2021-03-19 00:23:19 UTC (rev 8635)
@@ -25,11 +25,6 @@
/* General Settings */
/* ================ */
-@viewport {
- zoom: 1.0;
- width: extend-to-zoom;
-}
-
body {
font-family: et-book, Palatino, Georgia, serif;
background-color: #fafaf6;
@@ -281,7 +276,7 @@
}
/* Admonitions and System Messages */
-div.admonition,
+.admonition,
div.system-message {
border-style: solid;
border-color: silver;
@@ -289,10 +284,10 @@
margin: 1em 0;
padding: 0.5em;
}
-div.caution p.admonition-title,
-div.attention p.admonition-title,
-div.danger p.admonition-title,
-div.warning p.admonition-title,
+.caution p.admonition-title,
+.attention p.admonition-title,
+.danger p.admonition-title,
+.warning p.admonition-title,
div.error {
color: maroon;
}
@@ -326,7 +321,7 @@
}
a:link {
text-decoration: underline;
- text-decoration-skip-ink: auto; /* nonstandard selector */
+ /* text-decoration-skip-ink: auto; nonstandard selector */
}
/* undecorated links */
.contents a:link, a.toc-backref:link, a.image-reference:link,
Modified: trunk/docutils/test/functional/expected/standalone_rst_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-03-09 12:54:27 UTC (rev 8634)
+++ trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-03-19 00:23:19 UTC (rev 8635)
@@ -18,7 +18,7 @@
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
<link rel="stylesheet" href="../input/data/math.css" type="text/css" />
</head>
-<body>
+<body class="with-toc">
<header>
<p>Document header</p>
</header>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-03-19 00:23:36
|
Revision: 8636
http://sourceforge.net/p/docutils/code/8636
Author: milde
Date: 2021-03-19 00:23:33 +0000 (Fri, 19 Mar 2021)
Log Message:
-----------
HTML5: Place code-block line numbers in pseudo-elements.
This way, they are skipped when copying text from code blocks.
Solves feature request #32.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/writers/html5_polyglot/__init__.py
trunk/docutils/docutils/writers/html5_polyglot/minimal.css
trunk/docutils/docutils/writers/html5_polyglot/plain.css
trunk/docutils/docutils/writers/html5_polyglot/responsive.css
trunk/docutils/docutils/writers/html5_polyglot/tuftig.css
trunk/docutils/test/functional/expected/standalone_rst_html5.html
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-03-19 00:23:19 UTC (rev 8635)
+++ trunk/docutils/HISTORY.txt 2021-03-19 00:23:33 UTC (rev 8636)
@@ -109,6 +109,10 @@
- Add a `viewport meta tag`__ to fix rendering in mobile browsers.
__ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
+
+ - Add code line numbers as "data-*" arguments.
+ This way, they may be skipped when copying text from code blocks
+ (see minimal.css). Solves feature request #32.
* docutils/writers/html5_polyglot/minimal.css
Modified: trunk/docutils/docutils/writers/html5_polyglot/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/__init__.py 2021-03-19 00:23:19 UTC (rev 8635)
+++ trunk/docutils/docutils/writers/html5_polyglot/__init__.py 2021-03-19 00:23:33 UTC (rev 8636)
@@ -322,6 +322,13 @@
classes.remove(tags[0])
else:
node.html5tagname = 'span'
+ if (classes == ['ln'] and isinstance(node.parent, nodes.literal_block)
+ and 'code' in node.parent.get('classes')):
+ if self.body[-1] == '<code>':
+ self.body[-1] = '<code data-lineno="%s">'%node.astext()
+ else:
+ self.body.append('</code><code data-lineno="%s">'
+ % node.astext())
self.body.append(self.starttag(node, node.html5tagname, ''))
def depart_inline(self, node):
@@ -413,7 +420,7 @@
# (see responsive.css how this is used for sidebar navigation).
# TODO: use the new HTML5 element <aside>?
def visit_topic(self, node):
- if ('contents' in node['classes']
+ if ('contents' in node['classes']
and isinstance(node.parent, nodes.document)):
self.body_prefix[0] = '</head>\n<body class="with-toc">\n'
self.body.append(self.starttag(node, 'div', CLASS='topic'))
Modified: trunk/docutils/docutils/writers/html5_polyglot/minimal.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/minimal.css 2021-03-19 00:23:19 UTC (rev 8635)
+++ trunk/docutils/docutils/writers/html5_polyglot/minimal.css 2021-03-19 00:23:33 UTC (rev 8636)
@@ -145,8 +145,8 @@
span.option { white-space: nowrap; }
/* Footnotes and Citations */
-dl.footnote.superscript > dd {margin-left: 1em; }
-dl.footnote.brackets > dd {margin-left: 2em; }
+dl.footnote.superscript > dd { margin-left: 1em; }
+dl.footnote.brackets > dd { margin-left: 2em; }
dl.footnote > dt { font-weight: normal; }
a.footnote-reference.brackets:before,
dt.label > span.brackets:before { content: "["; }
@@ -209,8 +209,14 @@
}
div.line-block { display: block; }
div.line-block div.line-block, pre { margin-left: 2em; }
-pre.code .ln { color: gray; } /* line numbers */
+/* Code line numbers: dropped when copying text from the page */
+pre.code .ln { display: none; }
+pre.code code:before {
+ content: attr(data-lineno); /* …, none) fallback not supported by any browser */
+ color: gray;
+}
+
/* Tables */
table {
border-collapse: collapse;
Modified: trunk/docutils/docutils/writers/html5_polyglot/plain.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/plain.css 2021-03-19 00:23:19 UTC (rev 8635)
+++ trunk/docutils/docutils/writers/html5_polyglot/plain.css 2021-03-19 00:23:33 UTC (rev 8636)
@@ -241,7 +241,6 @@
/* Code */
pre.code { padding: 0.7ex }
pre.code, code { background-color: #eeeeee }
-pre.code .ln { color: gray; } /* line numbers */
/* basic highlighting: for a complete scheme, see */
/* http://docutils.sourceforge.net/sandbox/stylesheets/ */
pre.code .comment, code .comment { color: #5C6576 }
Modified: trunk/docutils/docutils/writers/html5_polyglot/responsive.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/responsive.css 2021-03-19 00:23:19 UTC (rev 8635)
+++ trunk/docutils/docutils/writers/html5_polyglot/responsive.css 2021-03-19 00:23:33 UTC (rev 8636)
@@ -225,7 +225,6 @@
}
/* Literal and Code */
-pre.code .ln { color: gray; } /* line numbers */
/* basic highlighting: for a complete scheme, see */
/* http://docutils.sourceforge.net/sandbox/stylesheets/ */
pre.code .comment, code .comment { color: #5C6576 }
Modified: trunk/docutils/docutils/writers/html5_polyglot/tuftig.css
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/tuftig.css 2021-03-19 00:23:19 UTC (rev 8635)
+++ trunk/docutils/docutils/writers/html5_polyglot/tuftig.css 2021-03-19 00:23:33 UTC (rev 8636)
@@ -299,7 +299,6 @@
/* font-size: 0.9em; */
overflow: auto;
}
-pre.code .ln { color: gray; } /* line numbers */
/* basic highlighting: for a complete scheme, see */
/* http://docutils.sourceforge.net/sandbox/stylesheets/ */
pre.code .comment, code .comment { color: #5C6576 }
Modified: trunk/docutils/test/functional/expected/standalone_rst_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-03-19 00:23:19 UTC (rev 8635)
+++ trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-03-19 00:23:33 UTC (rev 8636)
@@ -1005,9 +1005,9 @@
<pre class="code python literal-block"><code>print 'This is Python code.'</code></pre>
<p>The <span class="docutils literal"><span class="pre">:number-lines:</span></span> option (with optional start value) generates line
numbers:</p>
-<pre class="code python literal-block"><code><span class="ln"> 8 </span># print integers from 0 to 9:
-<span class="ln"> 9 </span>for i in range(10):
-<span class="ln">10 </span> print i</code></pre>
+<pre class="code python literal-block"><code data-lineno=" 8 "><span class="ln"> 8 </span># print integers from 0 to 9:
+</code><code data-lineno=" 9 "><span class="ln"> 9 </span>for i in range(10):
+</code><code data-lineno="10 "><span class="ln">10 </span> print i</code></pre>
<p>For inline code snippets, there is the <cite>code</cite> role, which can be used
directly (the code will not be parsed/tagged, as the language is not known)
or as base for special code roles, e.g. the LaTeX code in the next
@@ -1016,8 +1016,8 @@
<code class="tex">\alpha = f(x)</code> prints <span class="formula"><i>α</i> = <i>f</i>(<i>x</i>)</span>.</p>
<p>The <span class="docutils literal">:code:</span> option of the <cite>include</cite> directive sets the included content
as a code block, here the rst file <span class="docutils literal">header_footer.txt</span> with line numbers:</p>
-<pre class="code rst literal-block"><code><span class="ln">1 </span>.. header:: Document header
-<span class="ln">2 </span>.. footer:: Document footer</code></pre>
+<pre class="code rst literal-block"><code data-lineno="1 "><span class="ln">1 </span>.. header:: Document header
+</code><code data-lineno="2 "><span class="ln">2 </span>.. footer:: Document footer</code></pre>
</section>
<section id="meta">
<h4><a class="toc-backref" href="#toc-entry-63"><span class="sectnum">2.14.11</span> Meta</a></h4>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-03-20 23:47:00
|
Revision: 8637
http://sourceforge.net/p/docutils/code/8637
Author: milde
Date: 2021-03-20 23:46:52 +0000 (Sat, 20 Mar 2021)
Log Message:
-----------
Fixup for r8636: use <small> for line numbers.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/writers/html5_polyglot/__init__.py
trunk/docutils/test/functional/expected/standalone_rst_html5.html
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-03-19 00:23:33 UTC (rev 8636)
+++ trunk/docutils/HISTORY.txt 2021-03-20 23:46:52 UTC (rev 8637)
@@ -110,15 +110,17 @@
__ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
- - Add code line numbers as "data-*" arguments.
- This way, they may be skipped when copying text from code blocks
- (see minimal.css). Solves feature request #32.
+ - Use <small> for code line numbers and also add them as "data-*" arguments.
* docutils/writers/html5_polyglot/minimal.css
- Move non-essential styling to ``plain.css``.
- Support "captionbelow" class value for tables.
Small fixes and tweaks.
+
+ - Support "captionbelow" class value for tables.
+
+ - Display code line numbers as pseudo-elements which are skipped
+ when copying text from code blocks. Solves feature request #32.
* docutils/writers/html5_polyglot/plain.css
Modified: trunk/docutils/docutils/writers/html5_polyglot/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/html5_polyglot/__init__.py 2021-03-19 00:23:33 UTC (rev 8636)
+++ trunk/docutils/docutils/writers/html5_polyglot/__init__.py 2021-03-20 23:46:52 UTC (rev 8637)
@@ -320,19 +320,22 @@
if len(tags):
node.html5tagname = tags[0]
classes.remove(tags[0])
- else:
- node.html5tagname = 'span'
- if (classes == ['ln'] and isinstance(node.parent, nodes.literal_block)
+ elif (classes == ['ln'] and isinstance(node.parent, nodes.literal_block)
and 'code' in node.parent.get('classes')):
if self.body[-1] == '<code>':
- self.body[-1] = '<code data-lineno="%s">'%node.astext()
+ del(self.body[-1])
else:
- self.body.append('</code><code data-lineno="%s">'
- % node.astext())
+ self.body.append('</code>')
+ node.html5tagname = 'small'
+ else:
+ node.html5tagname = 'span'
self.body.append(self.starttag(node, node.html5tagname, ''))
def depart_inline(self, node):
self.body.append('</%s>' % node.html5tagname)
+ if (node.html5tagname == 'small' and node.get('classes') == ['ln']
+ and isinstance(node.parent, nodes.literal_block)):
+ self.body.append('<code data-lineno="%s">' % node.astext())
del(node.html5tagname)
# place inside HTML5 <figcaption> element (together with caption)
Modified: trunk/docutils/test/functional/expected/standalone_rst_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-03-19 00:23:33 UTC (rev 8636)
+++ trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-03-20 23:46:52 UTC (rev 8637)
@@ -1005,9 +1005,9 @@
<pre class="code python literal-block"><code>print 'This is Python code.'</code></pre>
<p>The <span class="docutils literal"><span class="pre">:number-lines:</span></span> option (with optional start value) generates line
numbers:</p>
-<pre class="code python literal-block"><code data-lineno=" 8 "><span class="ln"> 8 </span># print integers from 0 to 9:
-</code><code data-lineno=" 9 "><span class="ln"> 9 </span>for i in range(10):
-</code><code data-lineno="10 "><span class="ln">10 </span> print i</code></pre>
+<pre class="code python literal-block"><small class="ln"> 8 </small><code data-lineno=" 8 "># print integers from 0 to 9:
+</code><small class="ln"> 9 </small><code data-lineno=" 9 ">for i in range(10):
+</code><small class="ln">10 </small><code data-lineno="10 "> print i</code></pre>
<p>For inline code snippets, there is the <cite>code</cite> role, which can be used
directly (the code will not be parsed/tagged, as the language is not known)
or as base for special code roles, e.g. the LaTeX code in the next
@@ -1016,8 +1016,8 @@
<code class="tex">\alpha = f(x)</code> prints <span class="formula"><i>α</i> = <i>f</i>(<i>x</i>)</span>.</p>
<p>The <span class="docutils literal">:code:</span> option of the <cite>include</cite> directive sets the included content
as a code block, here the rst file <span class="docutils literal">header_footer.txt</span> with line numbers:</p>
-<pre class="code rst literal-block"><code data-lineno="1 "><span class="ln">1 </span>.. header:: Document header
-</code><code data-lineno="2 "><span class="ln">2 </span>.. footer:: Document footer</code></pre>
+<pre class="code rst literal-block"><small class="ln">1 </small><code data-lineno="1 ">.. header:: Document header
+</code><small class="ln">2 </small><code data-lineno="2 ">.. footer:: Document footer</code></pre>
</section>
<section id="meta">
<h4><a class="toc-backref" href="#toc-entry-63"><span class="sectnum">2.14.11</span> Meta</a></h4>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-03-20 23:47:09
|
Revision: 8638
http://sourceforge.net/p/docutils/code/8638
Author: milde
Date: 2021-03-20 23:47:07 +0000 (Sat, 20 Mar 2021)
Log Message:
-----------
Update comments and advertised future changes.
Modified Paths:
--------------
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docutils/writers/_html_base.py
trunk/docutils/docutils/writers/html4css1/__init__.py
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2021-03-20 23:46:52 UTC (rev 8637)
+++ trunk/docutils/RELEASE-NOTES.txt 2021-03-20 23:47:07 UTC (rev 8638)
@@ -26,8 +26,14 @@
and/or ``\DUtitle`` or set to "True".
* `html5` writer:
- Use <aside> instad of <dl> for footnote text and citations
- and <nav> instead of <div> for the Table of Contents.
+ Semantic tags:
+ Use <aside> instad of <dl> for footnote text and citations,
+ <aside> for topics (except abstract), admonitions, and system messages,
+ and <nav> for the Table of Contents.
+
+ Write footnote brackets and field term colons to HTML, so that
+ they are present also without CSS and when copying text.
+ Hide with CSS if required.
Use <summary> and <details> tags for term and definition of a
definition list with class value "details".
Modified: trunk/docutils/docutils/writers/_html_base.py
===================================================================
--- trunk/docutils/docutils/writers/_html_base.py 2021-03-20 23:46:52 UTC (rev 8637)
+++ trunk/docutils/docutils/writers/_html_base.py 2021-03-20 23:47:07 UTC (rev 8638)
@@ -244,7 +244,7 @@
Used by visit_* and depart_* functions in conjunction with the tree
traversal. Make sure that the pops correspond to the pushes."""
- self.topic_classes = [] # TODO: replace with self_in_contents
+ self.topic_classes = []
self.colspecs = []
self.compact_p = True
self.compact_simple = False
@@ -515,7 +515,8 @@
and not self.settings.compact_lists):
return False
# more special cases:
- if (self.topic_classes == ['contents']): # TODO: self.in_contents
+ if (self.topic_classes == ['contents']):
+ # TODO: look for "auto-toc" instead and remove self.topic_classes
return True
# check the list items:
return self.check_simple_list(node)
@@ -973,14 +974,16 @@
imagedata = imagefile.read()
except IOError as err:
err_msg = str(err)
- if not err_msg:
- # TODO (test mimetype for SVG and insert directly)
+ if not err_msg:
+ # TODO: insert SVG as-is?
+ # if mimetype == 'image/svg+xml':
+ # read/parse, apply arguments,
+ # insert as <svg ....> ... </svg> # (about 1/3 less data)
data64 = base64.b64encode(imagedata).decode()
uri = u'data:%s;base64,%s' % (mimetype, data64)
else:
# raise NotImplementedError(os.getcwd() + err_msg)
self.document.reporter.error("Cannot embed image\n "+err_msg)
-
if mimetype == 'application/x-shockwave-flash':
atts['type'] = mimetype
# do NOT use an empty tag: incorrect rendering in browsers
@@ -1373,7 +1376,6 @@
def depart_rubric(self, node):
self.body.append('</p>\n')
- # TODO: use the new HTML 5 element <section>?
def visit_section(self, node):
self.section_level += 1
self.body.append(
@@ -1383,7 +1385,7 @@
self.section_level -= 1
self.body.append('</div>\n')
- # TODO: use the new HTML5 element <aside>? (Also for footnote text)
+ # TODO: use the new HTML5 element <aside>
def visit_sidebar(self, node):
self.body.append(
self.starttag(node, 'div', CLASS='sidebar'))
@@ -1586,17 +1588,13 @@
def depart_title_reference(self, node):
self.body.append('</cite>')
- # TODO: use the new HTML5 element <aside>? (Also for footnote text)
def visit_topic(self, node):
self.body.append(self.starttag(node, 'div', CLASS='topic'))
self.topic_classes = node['classes']
- # TODO: replace with ::
- # self.in_contents = 'contents' in node['classes']
def depart_topic(self, node):
self.body.append('</div>\n')
self.topic_classes = []
- # TODO self.in_contents = False
def visit_transition(self, node):
self.body.append(self.emptytag(node, 'hr', CLASS='docutils'))
Modified: trunk/docutils/docutils/writers/html4css1/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/html4css1/__init__.py 2021-03-20 23:46:52 UTC (rev 8637)
+++ trunk/docutils/docutils/writers/html4css1/__init__.py 2021-03-20 23:47:07 UTC (rev 8638)
@@ -537,13 +537,15 @@
def visit_generated(self, node):
pass
- # Use <object> instead of <img> for some image types:
-
- # SVG not supported by IE up to version 8
- # (html4css1 strives for IE6 compatibility)
+ # Backwards-compatibility implementation:
+ # * Do not use <video>,
+ # * don't embed images,
+ # * use <object> instead of <img> for SVG.
+ # (SVG not supported by IE up to version 8,
+ # html4css1 strives for IE6 compatibility.)
object_image_types = {'.svg': 'image/svg+xml',
'.swf': 'application/x-shockwave-flash'}
-
+ #
def visit_image(self, node):
atts = {}
uri = node['uri']
@@ -621,7 +623,6 @@
def depart_label(self, node):
self.body.append(']%s</td><td>%s' % (self.context.pop(), self.context.pop()))
-
# ersatz for first/last pseudo-classes
def visit_list_item(self, node):
self.body.append(self.starttag(node, 'li', ''))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-03-20 23:47:33
|
Revision: 8639
http://sourceforge.net/p/docutils/code/8639
Author: milde
Date: 2021-03-20 23:47:29 +0000 (Sat, 20 Mar 2021)
Log Message:
-----------
HTML5 writer: support <video>.
Use <video> for images with video MIME types supported by HTML5.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/writers/html5_polyglot/__init__.py
Added Paths:
-----------
trunk/docutils/docs/user/rst/images/pens.mp4
trunk/docutils/test/functional/expected/video.html
trunk/docutils/test/functional/input/data/video.txt
trunk/docutils/test/functional/tests/html5_video.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-03-20 23:47:07 UTC (rev 8638)
+++ trunk/docutils/HISTORY.txt 2021-03-20 23:47:29 UTC (rev 8639)
@@ -103,6 +103,7 @@
is found in `inline` and `literal` elements.
Use <ins> and <del> if a matching class value
is found in `inline`, `literal`, or `container` elements.
+ Use <small> for generated code line numbers.
- Fix bug #398: properly close link tag to "schema.dcterms".
@@ -110,7 +111,7 @@
__ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
- - Use <small> for code line numbers and also add them as "data-*" arguments.
+ - Use <video> for images with video MIME types supported by HTML5.
* docutils/writers/html5_polyglot/minimal.css
Added: trunk/docutils/docs/user/rst/images/pens.mp4
===================================================================
--- trunk/docutils/docs/user/rst/images/pens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F3n+wm{\xC5}\xE2I\xFCFT\xA4\x8B\x85\xD6s\xFA\x9F\xA2<\xD0\xDEl{v\xFC<\xFF\xFDx\xFF\xC9\xF5\xE7\xE60\xF9\xFF\x80\xCEE\xED1\x82m00k\xF2y4bx\x997\xDC\xFF`\xD0D\xFE;\xFF7D\x82+q|V%\xFD\xEFO8{aE\xD4C\xDD\xF7q[\xEBL\xEC>"+ww~\xE48tDW\xDD\xFDB\xB1\xB4\xC9n \xDD\xF5;\xF6_\x8CW\xBFx3w`ǀEB\xE3\xF5P.m\\xB9\xA8n\xFB\xABu\xFF\x82a\x90\x9Et]\xDD\xDD\xD3w{\xBB\xC9\xFB;*\x87\xD4Ǿ4\xDE\xF7\xBE\xFB\x82H)\x8A\xDA~]\x83\xBD\xA68\xEB]\xCB\xF0\x9Fg\xC6\xE7#\\xB0\xFCq7\xC9\xE6\x8E\x8E\xE0\x84A\xCB\xDDň\xA1\xBE\xF3C\xAE\xC6\xC1\xD7\xE10\x9A\xFB\x85S\x85\xA5\xCAtqpo\xB9\xE3W=\xC2l\xF6\xEE\xEE\xFB\xCB\xDD\xED\xF9\x82\x9B\xBCV\xE2\xB7\xC48\xE7\xF8\xEB\xFA\xD4+\xBE\xEE\xEE\xEE\xEE\xEF|\x9E\x81\x84\xE7xB+\xBB\xB9yo{\xEAy\xF1\xC0_\x81/\xA3\xB9vp\xBD{\xB8\xACV+\x8A\xEF\xAC q\xBD\xC5n\xF6 Â\xAFx\xAE+\xF8\xF9.-\xB0{\xBBޮ,e\xDD\xDE\xEE\xEE\xEE\xEF}\xE68\xFBhV.\xEEy\xDD\xE3u \xE8"\xA8...
[truncated message content] |
|
From: <mi...@us...> - 2021-03-26 13:51:39
|
Revision: 8644
http://sourceforge.net/p/docutils/code/8644
Author: milde
Date: 2021-03-26 13:51:36 +0000 (Fri, 26 Mar 2021)
Log Message:
-----------
Documentation update.
Fix or remove broken links.
Adapt to changes in recent versions.
Adapt to state of the art in HTML and web browsers.
Modified Paths:
--------------
trunk/docutils/BUGS.txt
trunk/docutils/FAQ.txt
trunk/docutils/README.txt
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docs/dev/policies.txt
trunk/docutils/docs/howto/html-stylesheets.txt
trunk/docutils/docs/howto/security.txt
trunk/docutils/docs/index.txt
trunk/docutils/docs/peps/pep-0256.txt
trunk/docutils/docs/peps/pep-0258.txt
trunk/docutils/docs/ref/rst/restructuredtext.txt
trunk/docutils/docs/user/config.txt
trunk/docutils/docs/user/links.txt
trunk/docutils/docs/user/tools.txt
trunk/docutils/docutils/writers/_html_base.py
Modified: trunk/docutils/BUGS.txt
===================================================================
--- trunk/docutils/BUGS.txt 2021-03-26 13:51:21 UTC (rev 8643)
+++ trunk/docutils/BUGS.txt 2021-03-26 13:51:36 UTC (rev 8644)
@@ -208,8 +208,8 @@
over implicit targets. But if an explicit target comes after an
implicit target with the same name, the ID of the first (implicit)
target remains based on the implicit name. Since HTML fragment
- identifiers based on the IDs, the first target keeps the name. For
- example::
+ identifiers are based on the IDs, the first target keeps the name.
+ For example::
.. contents::
Modified: trunk/docutils/FAQ.txt
===================================================================
--- trunk/docutils/FAQ.txt 2021-03-26 13:51:21 UTC (rev 8643)
+++ trunk/docutils/FAQ.txt 2021-03-26 13:51:36 UTC (rev 8644)
@@ -11,7 +11,7 @@
:Date: $Date$
:Revision: $Revision$
-:Web site: http://docutils.sourceforge.net/
+:Web site: https://docutils.sourceforge.io/
:Copyright: This document has been placed in the public domain.
.. contents::
@@ -26,7 +26,7 @@
to the `Docutils-users`_ mailing list. Project members should feel
free to edit the source text file directly.
-.. _master copy: http://docutils.sourceforge.net/FAQ.html
+.. _master copy: https://docutils.sourceforge.io/FAQ.html
.. _let us know:
.. _Docutils-users: docs/user/mailing-lists.html#docutils-users
@@ -40,10 +40,10 @@
Docutils_ is a system for processing plaintext documentation into
useful formats, such as HTML, XML, and LaTeX. It supports multiple
-types of input, such as standalone files (implemented), inline
-documentation from Python modules and packages (under development),
-`PEPs (Python Enhancement Proposals)`_ (implemented), and others as
-discovered.
+types of input, such as standalone files, `PEPs (Python Enhancement
+Proposals)`_, and string input. Client code may add other input types,
+e.g. Sphinx_ comes with an extension to extract inline documentation
+from Python modules and packages.
The Docutils distribution consists of:
@@ -52,7 +52,7 @@
* several `front-end tools`_ (such as ``rst2html.py``, which converts
reStructuredText input into HTML output);
* a `test suite`_; and
-* extensive documentation_.
+* documentation_.
For an overview of the Docutils project implementation, see `PEP
258`_, "Docutils Design Specification".
@@ -59,7 +59,7 @@
Docutils is implemented in Python_.
-.. _Docutils: http://docutils.sourceforge.net/
+.. _Docutils: https://docutils.sourceforge.io/
.. _PEPs (Python Enhancement Proposals):
http://www.python.org/peps/pep-0012.html
.. _can be used by client code: docs/api/publisher.html
@@ -108,35 +108,37 @@
Is there a GUI authoring environment for Docutils?
--------------------------------------------------
-DocFactory_ is under development. It uses wxPython and looks very
-promising.
+DocFactory_ is under development. See also the links to editors_
+supporting reStructuredText.
.. _DocFactory:
http://docutils.sf.net/sandbox/gschwant/docfactory/doc/
+.. _editors: docs/user/links.html#editors
What is the status of the Docutils project?
-------------------------------------------
-Although useful and relatively stable, Docutils is experimental code,
-with APIs and architecture subject to change.
+Docutils is mainly stable, with documented APIs and architecture
+subject to change after announcement and a transition period.
-Our highest priority is to fix bugs as they are reported. So the
-latest code from the repository_ (or the snapshots_) is almost always
-the most stable (bug-free) as well as the most featureful.
+We fix bugs as they are reported. So the latest code from the
+repository_ (or the snapshots_) are almost always the most stable
+as well as the most featureful.
What is the Docutils project release policy?
--------------------------------------------
-It's "release early & often". We also have automatically-generated
+Besides the regular releases_, we provide automatically-generated
snapshots_ which always contain the latest code from the repository_.
As the project matures, we may formalize on a
stable/development-branch scheme, but we're not using anything like
that yet.
+.. _releases: https://pypi.org/project/docutils/#history
+.. _snapshots: https://sourceforge.net/p/docutils/code/HEAD/tree/trunk/docutils/
.. _repository: docs/dev/repository.html
-.. _snapshots: http://docutils.sourceforge.net/#download
reStructuredText
@@ -163,10 +165,10 @@
.. _Quick reStructuredText: docs/user/rst/quickref.html
.. _reStructuredText Markup Specification:
docs/ref/rst/restructuredtext.html
-.. _reStructuredText: http://docutils.sourceforge.net/rst.html
+.. _reStructuredText: https://docutils.sourceforge.io/rst.html
.. _StructuredText:
http://dev.zope.org/Members/jim/StructuredTextWiki/FrontPage/
-.. _Setext: http://docutils.sourceforge.net/mirror/setext.html
+.. _Setext: https://docutils.sourceforge.io/mirror/setext.html
Why is it called "reStructuredText"?
@@ -211,11 +213,9 @@
Are there any reStructuredText editor extensions?
-------------------------------------------------
-See `Editor Support for reStructuredText`__.
+See the list of editors_ supporting reStructuredText.
-__ tools/editors/README.html
-
How can I indicate the document title? Subtitle?
-------------------------------------------------
@@ -288,10 +288,7 @@
|yen| 600 for a complete meal? That's cheap!
-For earlier versions of Docutils, equivalent files containing
-character entity set substitution definitions using the "unicode_"
-directive `are available`_. Please read the `description and
-instructions`_ for use. Thanks to David Priest for the original idea.
+Thanks to David Priest for the original idea.
If you insist on using XML-style charents, you'll have to implement a
pre-processing system to convert to UTF-8 or something. That
@@ -312,8 +309,8 @@
:trim:
Now you can write dashes using pure ASCII: "``foo |--| bar; foo |---|
-bar``", rendered as "foo |--| bar; foo |---| bar". (Note that Mozilla
-and Firefox may render this incorrectly.) The ``:trim:`` option for
+bar``", rendered as "foo |--| bar; foo |---| bar".
+The ``:trim:`` option for
the em dash is necessary because you cannot write "``foo|---|bar``";
thus you need to add spaces ("``foo |---| bar``") and advise the
reStructuredText parser to trim the spaces.
@@ -320,10 +317,10 @@
.. _Standard Substitution Definition Sets: docs/ref/rst/definitions.html
.. _unicode: docs/ref/rst/directives.html#unicode-character-codes
-.. _are available: http://docutils.sourceforge.net/tmp/charents/
-.. _tarball: http://docutils.sourceforge.net/tmp/charents.tgz
+.. _are available: https://docutils.sourceforge.io/tmp/charents/
+.. _tarball: https://docutils.sourceforge.io/tmp/charents.tgz
.. _description and instructions:
- http://docutils.sourceforge.net/tmp/charents/README.html
+ https://docutils.sourceforge.io/tmp/charents/README.html
.. _to-do list: docs/dev/todo.html
@@ -763,10 +760,10 @@
or geresh_) will suffice.
Moreover, it's possible to translate_ all reStructuredText keywords.
-This was not yet done for any RTL language, but when it is, it will be
-possible to write an RTL document with vitually no English. This will
-allow reasonable use of editors limited to a single base direction for
-the whole document (like Notepad, Vim and text boxes in Firefox).
+Docutils 0.17 includes translations for Arab, Hebrew, and
+Persian/Farsi. This should allow reasonable use of editors limited to
+a single base direction for the whole document (like Notepad, Vim and
+text boxes in Firefox).
.. _Unicode Bidi Algorithm: http://www.unicode.org/reports/tr9/
.. _geresh: http://www.typo.co.il/~mooffie/geresh/
@@ -778,7 +775,7 @@
* Grab http://cben-hacks.sourceforge.net/bidi/hibidi.py and
http://cben-hacks.sourceforge.net/bidi/rst2html_hibidi.py.
Put them both in the same directory and make them executable.
-
+
* Use ``rst2html_hibidi.py`` instead of ``rst2html.py``.
* It infers dir attributes in the HTML from the text. It does it
@@ -817,7 +814,7 @@
* Select this new stylesheet with ``--stylesheet=<file>`` or the
stylesheet_ setting.
-
+
* Now if you need to override the direction of some element (from a
paragraph to a whole section), write::
@@ -855,16 +852,16 @@
--------------------------------------------------------
While there is no registered MIME type for reStructuredText, the
-"official unofficial" standard MIME type is "text/x-rst". This was
+"official unofficial" standard MIME type is "text/x-rst". [#]_ This was
invented for the build system for PEPs (Python Enhancement Proposals),
and it's used by the python.org web site build system.
-(The "x-" prefix means it's an unregistered MIME type.)
-
Also see `What's the standard filename extension for a
reStructuredText file?`_
+.. [#] The "x-" prefix means it's an unregistered MIME type.
+
HTML Writer
===========
@@ -871,28 +868,16 @@
What is the status of the HTML Writer?
--------------------------------------
-The HTML Writer module, ``docutils/writers/html4css1.py``, is a
-proof-of-concept reference implementation. While it is a complete
-implementation, some aspects of the HTML it produces may be incompatible
-with older browsers or specialized applications (such as web templating).
-The sandbox has some alternative HTML writers, contributions are welcome.
+The default HTML Writer module, ``docutils/writers/html4css1.py``, is
+a proof-of-concept reference implementation. While it is a complete
+implementation, some aspects of the HTML it produces may be outdated or
+incompatible with older browsers or specialized applications (such as
+web templating).
+For the full selection see `Docutils HTML writers`_
-What kind of HTML does it produce?
-----------------------------------
+.. _Docutils HTML writers: docs/user/html.html
-It produces XHTML compatible with the `XHTML 1.0`_ specification. A
-cascading stylesheet is required for proper viewing with a modern
-graphical browser. Correct rendering of the HTML produced depends on
-the CSS support of the browser. A general-purpose stylesheet,
-``html4css1.css`` is provided with the code, and is embedded by
-default. It is installed in the "writers/html4css1/" subdirectory
-within the Docutils package. Use the ``--help`` command-line option
-to see the specific location on your machine.
-
-.. _XHTML 1.0: http://www.w3.org/TR/xhtml1/
-
-
What browsers are supported?
----------------------------
@@ -899,9 +884,9 @@
No specific browser is targeted; all modern graphical browsers should
work. Some older browsers, text-only browsers, and browsers without
full CSS support are known to produce inferior results. Firefox,
-Safari, Mozilla (version 1.0 and up), Opera, and MS Internet Explorer
-(version 5.0 and up) are known to give good results. Reports of
-experiences with other browsers are welcome.
+Safari, Opera, Chrome, Edge, and MS Internet Explorer (version 5.0 and up)
+are known to give good results. Reports of experiences with other
+browsers are welcome.
Unexpected results from tools/rst2html.py: H1, H1 instead of H1, H2. Why?
@@ -967,12 +952,12 @@
effectively reserve these tags to provide 6 levels of heading beyond the
single document title.
-HTML is being used for dumb formatting for nothing but final display.
-A stylesheet *is required*, and one is provided; see `What kind of
-HTML does it produce?`_ above. Of course, you're welcome to roll your
-own. The default stylesheet provides rules to format ``<h1
-class="title">`` and ``<h2 class="subtitle">`` differently from
-ordinary ``<h1>`` and ``<h2>``::
+With "html4css1", HTML is being used for dumb formatting for nothing
+but final display. A stylesheet *is required*, and one is provided;
+see `Docutils HTML writers`_. Of course, you're
+welcome to roll your own. The default stylesheet provides rules to
+format ``<h1 class="title">`` and ``<h2 class="subtitle">``
+differently from ordinary ``<h1>`` and ``<h2>``::
h1.title {
text-align: center }
@@ -1001,6 +986,7 @@
__ https://www.w3.org/TR/html53/sections.html#headings-and-sections
+
How are lists formatted in HTML?
--------------------------------
@@ -1061,8 +1047,8 @@
markers) is completely governed by the stylesheet, so either the
browser can't find the stylesheet (try enabling the
`embed_stylesheet`_ setting [``--embed-stylesheet`` option]), or the
-browser can't understand it (try a recent Firefox, Mozilla, Konqueror,
-Opera, Safari, or even MSIE).
+browser can't understand it (try a not too old Firefox, Chrome, Opera,
+Safari, Edge, or even MSIE).
.. _embed_stylesheet: docs/user/config.html#embed-stylesheet
@@ -1151,26 +1137,18 @@
Shouldn't this be "application/xhtml+xml" instead of "text/html"?
-In a perfect web, the Docutils XHTML output would be 100% strict
-XHTML. But it's not a perfect web, and a major source of imperfection
-is Internet Explorer. Despite it's drawbacks, IE still represents the
-majority of web browsers, and cannot be ignored.
-
Short answer: if we didn't serve XHTML as "text/html" (which is a
perfectly valid thing to do), it couldn't be viewed in Internet
Explorer.
-Long answer: see the `"Criticisms of Internet Explorer" Wikipedia
-entry <http://en.wikipedia.org/wiki/Criticisms_of_Internet_Explorer#XHTML>`__.
+Long answer: In a perfect web, the Docutils XHTML output would be 100%
+strict XHTML. But it's not a perfect web, and a major source of
+imperfection is Internet Explorer. When the "html4css1"
+writer was created, IE represented the overwhelming majority of web
+browsers "in the wild".
+The behaviour is kept for backwards compatibility while
+modern, semantic HTML output is available with the "html5" writer.
-However, there's also `Sending XHTML as text/html Considered
-Harmful`__. What to do, what to do? We're damned no matter what we
-do. So we'll continue to do the practical instead of the pure:
-support the browsers that are actually out there, and not fight for
-strict standards compliance.
-
-__ http://hixie.ch/advocacy/xhtml
-
(Thanks to Martin F. Krafft, Robert Kern, Michael Foord, and Alan
G. Isaac.)
@@ -1234,11 +1212,11 @@
.. Here's a code css to make a table colourful::
/* Table: */
-
+
th {
background-color: #ede;
}
-
+
/* alternating colors in table rows */
table.docutils tr:nth-child(even) {
background-color: #F3F3FF;
@@ -1246,9 +1224,9 @@
table.docutils tr:nth-child(odd) {
background-color: #FFFFEE;
}
-
+
table.docutils tr {
border-style: solid none solid none;
border-width: 1px 0 1px 0;
border-color: #AAAAAA;
- }
+ }
Modified: trunk/docutils/README.txt
===================================================================
--- trunk/docutils/README.txt 2021-03-26 13:51:21 UTC (rev 8643)
+++ trunk/docutils/README.txt 2021-03-26 13:51:36 UTC (rev 8644)
@@ -44,8 +44,8 @@
The purpose of the Docutils project is to create a set of tools for
processing plaintext documentation into useful formats, such as HTML,
-XML, and LaTeX. Support for the following sources has been
-implemented:
+LaTeX, troff (man pages), OpenOffice, and native XML. Support for the
+following sources has been implemented:
* Standalone files.
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2021-03-26 13:51:21 UTC (rev 8643)
+++ trunk/docutils/RELEASE-NOTES.txt 2021-03-26 13:51:36 UTC (rev 8644)
@@ -28,19 +28,19 @@
* `html5` writer:
Semantic tags:
Use <aside> instad of <dl> for footnote text and citations,
- <aside> for topics (except abstract), admonitions, and system messages,
+ <aside> for topics (except abstract), admonitions, and system messages,
and <nav> for the Table of Contents.
-
+
Write footnote brackets and field term colons to HTML, so that
- they are present also without CSS and when copying text.
- Hide with CSS if required.
+ they are present also without CSS and when copying text.
+ Hide with CSS if required.
Use <summary> and <details> tags for term and definition of a
definition list with class value "details".
-
+
Move attribution behind the blockquote to comply with
https://html.spec.whatwg.org/#the-blockquote-element.
-
+
* `s5_html` writer:
Remove the IE PNG Fix by Angus Turnbull. IE has native PNG
support since version 7.
@@ -75,7 +75,8 @@
* The default value for auto_id_prefix_ will change to "%". This means
auto-generated IDs will use the tag name as prefix. Set auto_id_prefix_ to
- "id" if you want unchanged auto-IDs or to "%" if you want descriptive IDs.
+ "id" if you want unchanged auto-IDs or to "%" if you want the new
+ feature already in 0.17.
* The default HTML writer "html" with frontend ``rst2html.py`` may change
from "html4css1" to "html5".
@@ -83,9 +84,9 @@
Use ``get_writer_by_name('html')`` or the rst2html.py_ front end, if you
want the output to be up-to-date automatically.
- Use a specific writer name or front end, if you depend on stability of the
- generated HTML code, e.g. because you use a custom style sheet or
- post-processing that may break otherwise.
+ Use the "html4" writer or ``rst2html4.py``, if you depend on
+ stability of the generated HTML code, e.g. because you use a custom
+ style sheet or post-processing that may break otherwise.
.. _id_prefix: docs/user/config.html#id-prefix
.. _auto_id_prefix: docs/user/config.html#auto-id-prefix
@@ -100,9 +101,9 @@
* Installing with ``setup.py`` now requires setuptools_.
Alternatively, install with pip_.
-* The generic command line front end ``docutils-cli.py`` allows the
- free selection of reader, parser, and writer components.
-
+* The generic command line front end tool docutils_cli.py_ allows
+ the free selection of reader, parser, and writer components.
+
* New, experimental wrapper to integrate the
`recommonmark`__ Markdown parser for use with Docutils.
@@ -128,7 +129,6 @@
- New optional style ``responsive.css``, adapts to different screen
sizes.
-
.. _initial_header_level: docs/user/config.html#initial-header-level
__ https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article
@@ -152,6 +152,7 @@
.. _setuptools: https://pypi.org/project/setuptools/
.. _pip: https://pypi.org/project/pip/
+.. _docutils_cli.py: docs/user/tools.html#docutils-cli-py
.. _legacy_class_functions: docs/user/config.html#legacy-class-functions
.. _graphicx_option: docs/user/config.html#graphicx-option
.. _docutils.sty: https://ctan.org/pkg/docutils
Modified: trunk/docutils/docs/dev/policies.txt
===================================================================
--- trunk/docutils/docs/dev/policies.txt 2021-03-26 13:51:21 UTC (rev 8643)
+++ trunk/docutils/docs/dev/policies.txt 2021-03-26 13:51:36 UTC (rev 8644)
@@ -93,7 +93,7 @@
* Look at the Docutils sources to see how similar features are implemented,
learn to do it "the Docutils way".
-* Prepare the a patch or an addition to the existing documentation.
+* Prepare a patch or an addition to the existing documentation.
Include links.
* If you are familiar with version control, consider creating a `feature
@@ -634,13 +634,10 @@
For the bash shell, add this to your ``~/.profile``::
PYTHONPATH=$HOME/projects/docutils/docutils
- PYTHONPATH=$PYTHONPATH:$HOME/projects/docutils/docutils
export PYTHONPATH
The first line points to the directory containing the ``docutils``
- package. The second line adds the directory containing the
- third-party modules Docutils depends on. The third line exports
- this environment variable.
+ package. The second line exports this environment variable.
You many also want to add the ``tools`` directory to your binary ``PATH``::
@@ -656,9 +653,9 @@
/usr/local/lib/python2.7/site-packages/
Alternatively, use a `path configuration file`__.
-
+
__ https://docs.python.org/library/site.html
-
+
You may also want to copy or link the front-end tools in
``docutils/tools`` to a suitable place in your binary PATH, e.g., ::
Modified: trunk/docutils/docs/howto/html-stylesheets.txt
===================================================================
--- trunk/docutils/docs/howto/html-stylesheets.txt 2021-03-26 13:51:21 UTC (rev 8643)
+++ trunk/docutils/docs/howto/html-stylesheets.txt 2021-03-26 13:51:36 UTC (rev 8644)
@@ -51,12 +51,12 @@
h1, h2, h3, h4, h5, h6, p.topic-title {
font-family: sans-serif }
-For help on the CSS syntax, please see `the WDG's guide to Cascading
-Style Sheets`__ and, in particular, their `list of CSS properties`__.
-Another good reference site is http://selfhtml.org (German and French).
+For help on the CSS syntax, see, e.g., the `W3C Specification`_, the
+`WDG's guide to Cascading Style Sheets`__, or the `MDN Web Docs`__.
+.. _W3C Specification: https://www.w3.org/Style/CSS/#specs
__ http://www.htmlhelp.com/reference/css/
-__ http://www.htmlhelp.com/reference/css/all-properties.html
+__ https://developer.mozilla.org/en-US/docs/Web/CSS
It is important that you do not edit a copy of ``html4css1.css``
directly because ``html4css1.css`` is frequently updated with each new
Modified: trunk/docutils/docs/howto/security.txt
===================================================================
--- trunk/docutils/docs/howto/security.txt 2021-03-26 13:51:21 UTC (rev 8643)
+++ trunk/docutils/docs/howto/security.txt 2021-03-26 13:51:36 UTC (rev 8644)
@@ -159,12 +159,15 @@
`"Configuration Files"`_ section of `Docutils Configuration`_.
To fully secure a recent Docutils installation, the configuration file
-should contain the following lines::
+should contain the following lines ::
[general]
file-insertion-enabled: off
raw-enabled: no
+and untrusted users must be prevented to modify or create local
+configuration files that overwrite these settings.
+
.. _Docutils front-end tools: ../user/tools.html
.. _"Configuration Files": ../user/config.html#configuration-files
.. _Docutils Configuration: ../user/config.html
@@ -173,13 +176,13 @@
Version Applicability
=====================
-The ``file_insertion_enabled`` & ``raw_enabled`` settings were added
-to Docutils 0.3.9; previous versions will ignore these settings.
+The "file_insertion_enabled_" and "raw_enabled_" settings were added
+to Docutils 0.3.9; previous versions will ignore these settings.
A bug existed in the configuration file handling of these settings in
-Docutils 0.4 and earlier: the right-hand-side of the (the
-values) needed to be left blank::
-
+Docutils 0.4 and earlier: the right-hand-side needed to be left blank
+(no values)::
+
[general]
file-insertion-enabled:
raw-enabled:
@@ -186,7 +189,9 @@
The bug was fixed with the 0.4.1 release on 2006-11-12.
+The "line_length_limit_" is new in Docutils 0.17.
+
Related Documents
=================
Modified: trunk/docutils/docs/index.txt
===================================================================
--- trunk/docutils/docs/index.txt 2021-03-26 13:51:21 UTC (rev 8643)
+++ trunk/docutils/docs/index.txt 2021-03-26 13:51:36 UTC (rev 8644)
@@ -94,8 +94,8 @@
`reStructuredText <http://docutils.sourceforge.net/rst.html>`_:
-* `A ReStructuredText Primer (HTML) <user/rst/quickstart.html>`__ (or
- `text source <user/rst/quickstart.txt>`__)
+* `A ReStructuredText Primer <user/rst/quickstart.html>`__
+ (see also the `text source <user/rst/quickstart.txt>`__)
* `Quick reStructuredText <user/rst/quickref.html>`__ (user reference)
* `reStructuredText Cheat Sheet <user/rst/cheatsheet.txt>`__ (text
only; 1 page for syntax, 1 page directive & role reference)
Modified: trunk/docutils/docs/peps/pep-0256.txt
===================================================================
--- trunk/docutils/docs/peps/pep-0256.txt 2021-03-26 13:51:21 UTC (rev 8643)
+++ trunk/docutils/docs/peps/pep-0256.txt 2021-03-26 13:51:36 UTC (rev 8644)
@@ -4,7 +4,7 @@
Last-Modified: $Date$
Author: David Goodger <go...@py...>
Discussions-To: <do...@py...>
-Status: Draft
+Status: Rejected
Type: Standards Track
Content-Type: text/x-rst
Created: 01-Jun-2001
@@ -11,6 +11,12 @@
Post-History: 13-Jun-2001
+Rejection Notice
+================
+
+This proposal seems to have run out of steam.
+
+
Abstract
========
Modified: trunk/docutils/docs/peps/pep-0258.txt
===================================================================
--- trunk/docutils/docs/peps/pep-0258.txt 2021-03-26 13:51:21 UTC (rev 8643)
+++ trunk/docutils/docs/peps/pep-0258.txt 2021-03-26 13:51:36 UTC (rev 8644)
@@ -4,7 +4,7 @@
Last-Modified: $Date$
Author: David Goodger <go...@py...>
Discussions-To: <do...@py...>
-Status: Draft
+Status: Rejected
Type: Standards Track
Content-Type: text/x-rst
Requires: 256, 257
@@ -12,6 +12,15 @@
Post-History: 13-Jun-2001
+================
+Rejection Notice
+================
+
+While this may serve as an interesting design document for the
+now-independent docutils, it is no longer slated for inclusion in the
+standard library.
+
+
==========
Abstract
==========
Modified: trunk/docutils/docs/ref/rst/restructuredtext.txt
===================================================================
--- trunk/docutils/docs/ref/rst/restructuredtext.txt 2021-03-26 13:51:21 UTC (rev 8643)
+++ trunk/docutils/docs/ref/rst/restructuredtext.txt 2021-03-26 13:51:36 UTC (rev 8644)
@@ -1263,7 +1263,7 @@
-- Sherlock Holmes
A block quote may end with an attribution: a text block beginning with
-"--", "---", or a true em-dash, flush left within the block quote. If
+``--``, ``---``, or a true em-dash, flush left within the block quote. If
the attribution consists of multiple lines, the left edges of the
second and subsequent lines must align.
@@ -2472,12 +2472,12 @@
5. If an inline markup start-string is immediately preceded by one of the
ASCII characters ``' " < ( [ {`` or a similar
non-ASCII character [#openers]_, it must not be followed by the
- corresponding closing character from ``' " ) ] } >`` or a similar non-ASCII
- character [#closers]_. (For quotes, matching characters can be any of
- the `quotation marks in international usage`_.)
+ corresponding closing character from ``' " > ) ] }`` or a similar
+ non-ASCII character [#closers]_. (For quotes, matching characters can
+ be any of the `quotation marks in international usage`_.)
-If the configuration setting `simple-inline-markup`_ is False (default),
-additional conditions apply to the characters "around" the
+If the configuration setting `character-level-inline-markup`_ is False
+(default), additional conditions apply to the characters "around" the
inline markup:
6. Inline markup start-strings must start a text block or be
@@ -2548,15 +2548,15 @@
For languages that don't use whitespace between words (e.g. Japanese or
-Chinese) it is recommended to set `simple-inline-markup`_ to True and
-eventually escape inline markup characters.
+Chinese) it is recommended to set `character-level-inline-markup`_ to
+True and eventually escape inline markup characters.
The examples breaking rules 6 and 7 above show which constructs may need
special attention.
+.. _character-level-inline-markup:
+ ../../user/config.html#character-level-inline-markup
-.. _simple-inline-markup: ../../user/config.html#simple-inline-markup
-
Recognition order
-----------------
Modified: trunk/docutils/docs/user/config.txt
===================================================================
--- trunk/docutils/docs/user/config.txt 2021-03-26 13:51:21 UTC (rev 8643)
+++ trunk/docutils/docs/user/config.txt 2021-03-26 13:51:36 UTC (rev 8644)
@@ -116,8 +116,8 @@
Example
=======
-This is the contents of the ``tools/docutils.conf`` configuration file
-supplied with Docutils::
+This is from the ``tools/docutils.conf`` configuration file supplied
+with Docutils::
# These entries affect all processing:
[general]
@@ -126,12 +126,17 @@
generator: on
# These entries affect HTML output:
+ [html writers]
+ embed-stylesheet: no
+
[html4css1 writer]
- # Required for docutils-update, the website build system:
- stylesheet-path: ../docutils/writers/html4css1/html4css1.css
- embed-stylesheet: no
+ stylesheet-path: docutils/writers/html4css1/html4css1.css
field-name-limit: 20
+ [html5 writer]
+ stylesheet-dirs: docutils/writers/html5_polyglot/
+ stylesheet-path: minimal.css, responsive.css
+
Individual configuration sections and settings are described in the
following section.
@@ -602,7 +607,7 @@
character_level_inline_markup
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Experimental setting to relax the `inline markup recognition rules`_
+Relax the `inline markup recognition rules`_
requiring whitespace or punctuation around inline markup.
Allows character level inline markup without escaped whithespace and is
@@ -646,7 +651,7 @@
definition. To p...
[truncated message content] |
|
From: <mi...@us...> - 2021-03-27 16:32:31
|
Revision: 8645
http://sourceforge.net/p/docutils/code/8645
Author: milde
Date: 2021-03-27 16:20:24 +0000 (Sat, 27 Mar 2021)
Log Message:
-----------
Fix typo.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docs/user/tools.txt
trunk/docutils/tools/docutils-cli.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-03-26 13:51:36 UTC (rev 8644)
+++ trunk/docutils/HISTORY.txt 2021-03-27 16:20:24 UTC (rev 8645)
@@ -201,7 +201,7 @@
- Run python3 test like python2 against source not the build/-directory
-* tools/docutils_cli.py
+* tools/docutils-cli.py
- New generic command line front end that allows the free selection of
reader, parser, and writer components.
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2021-03-26 13:51:36 UTC (rev 8644)
+++ trunk/docutils/RELEASE-NOTES.txt 2021-03-27 16:20:24 UTC (rev 8645)
@@ -101,7 +101,7 @@
* Installing with ``setup.py`` now requires setuptools_.
Alternatively, install with pip_.
-* The generic command line front end tool docutils_cli.py_ allows
+* The generic command line front end tool docutils-cli.py_ allows
the free selection of reader, parser, and writer components.
* New, experimental wrapper to integrate the
@@ -152,7 +152,7 @@
.. _setuptools: https://pypi.org/project/setuptools/
.. _pip: https://pypi.org/project/pip/
-.. _docutils_cli.py: docs/user/tools.html#docutils-cli-py
+.. _docutils-cli.py: docs/user/tools.html#docutils-cli-py
.. _legacy_class_functions: docs/user/config.html#legacy-class-functions
.. _graphicx_option: docs/user/config.html#graphicx-option
.. _docutils.sty: https://ctan.org/pkg/docutils
Modified: trunk/docutils/docs/user/tools.txt
===================================================================
--- trunk/docutils/docs/user/tools.txt 2021-03-26 13:51:36 UTC (rev 8644)
+++ trunk/docutils/docs/user/tools.txt 2021-03-27 16:20:24 UTC (rev 8645)
@@ -18,7 +18,7 @@
Once the Docutils package is unpacked, you will discover a "``tools``"
directory containing several front ends for common Docutils
processing.
-In addition to the all-purpose program docutils_cli.py_, Docutils has
+In addition to the all-purpose program docutils-cli.py_, Docutils has
many small front ends, each specialized for a specific "Reader" (which
knows how to interpret a file in context), a "Parser" (which
understands the syntax of the text), and a "Writer" (which knows how
@@ -60,7 +60,7 @@
Generic Command Line Front End
==============================
-docutils_cli.py
+docutils-cli.py
---------------
:Readers: Standalone, PEP
Modified: trunk/docutils/tools/docutils-cli.py
===================================================================
--- trunk/docutils/tools/docutils-cli.py 2021-03-26 13:51:36 UTC (rev 8644)
+++ trunk/docutils/tools/docutils-cli.py 2021-03-27 16:20:24 UTC (rev 8645)
@@ -28,8 +28,8 @@
from docutils.core import publish_cmdline, default_description
-description = (u'Generate documents from reStructuredText sources.'
- )
+description = u'Generate documents from reStructuredText or Markdown sources.'
+
epilog = (u'Currently, the component selection cannot be specified in the '
u'configuration file. '
u'The availability of some options depends on the selected '
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gr...@us...> - 2021-04-03 11:43:39
|
Revision: 8653
http://sourceforge.net/p/docutils/code/8653
Author: grubert
Date: 2021-04-03 11:43:37 +0000 (Sat, 03 Apr 2021)
Log Message:
-----------
release 0.17
Modified Paths:
--------------
trunk/docutils/README.txt
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docutils/__init__.py
trunk/docutils/setup.py
trunk/docutils/test/functional/expected/compact_lists.html
trunk/docutils/test/functional/expected/dangerous.html
trunk/docutils/test/functional/expected/embed_images_html5.html
trunk/docutils/test/functional/expected/field_name_limit.html
trunk/docutils/test/functional/expected/footnotes_html5.html
trunk/docutils/test/functional/expected/math_output_html.html
trunk/docutils/test/functional/expected/math_output_latex.html
trunk/docutils/test/functional/expected/math_output_mathjax.html
trunk/docutils/test/functional/expected/math_output_mathml.xhtml
trunk/docutils/test/functional/expected/misc_rst_html4css1.html
trunk/docutils/test/functional/expected/pep_html.html
trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
trunk/docutils/test/functional/expected/standalone_rst_html5.html
trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html
trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html
trunk/docutils/test/functional/expected/video.html
Modified: trunk/docutils/README.txt
===================================================================
--- trunk/docutils/README.txt 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/README.txt 2021-04-03 11:43:37 UTC (rev 8653)
@@ -1,6 +1,6 @@
-============================
- README: Docutils 0.17b2.dev
-============================
+=======================
+ README: Docutils 0.17
+=======================
:Author: David Goodger
:Contact: go...@py...
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/RELEASE-NOTES.txt 2021-04-03 11:43:37 UTC (rev 8653)
@@ -98,8 +98,8 @@
.. _identifier normalization: docs/ref/rst/directives.html#identifier-normalization
-Release 0.17
-============
+Release 0.17 (2021-04-03)
+=========================
* Installing with ``setup.py`` now requires setuptools_.
Alternatively, install with pip_.
Modified: trunk/docutils/docutils/__init__.py
===================================================================
--- trunk/docutils/docutils/__init__.py 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/docutils/__init__.py 2021-04-03 11:43:37 UTC (rev 8653)
@@ -56,7 +56,7 @@
__docformat__ = 'reStructuredText'
-__version__ = '0.17b2.dev'
+__version__ = '0.17'
"""Docutils version identifier (complies with PEP 440)::
major.minor[.micro][releaselevel[serial]][.dev]
@@ -113,10 +113,10 @@
major=0,
minor=17,
micro=0,
- releaselevel='beta', # one of 'alpha', 'beta', 'candidate', 'final'
+ releaselevel='final', # one of 'alpha', 'beta', 'candidate', 'final'
# pre-release serial number (0 for final releases and active development):
- serial=2,
- release=False # True for official releases and pre-releases
+ serial=0,
+ release=True # True for official releases and pre-releases
)
"""Comprehensive version information tuple. See 'Version Numbering' in
docs/dev/policies.txt."""
Modified: trunk/docutils/setup.py
===================================================================
--- trunk/docutils/setup.py 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/setup.py 2021-04-03 11:43:37 UTC (rev 8653)
@@ -31,7 +31,7 @@
input Docutils supports reStructuredText, an easy-to-read,
what-you-see-is-what-you-get plaintext markup syntax.""", # wrap at col 60
'url': 'http://docutils.sourceforge.net/',
- 'version': '0.17b2.dev',
+ 'version': '0.17',
'author': 'David Goodger',
'author_email': 'go...@py...',
'maintainer': 'docutils-develop list',
Modified: trunk/docutils/test/functional/expected/compact_lists.html
===================================================================
--- trunk/docutils/test/functional/expected/compact_lists.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/compact_lists.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>compact_lists.txt</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/dangerous.html
===================================================================
--- trunk/docutils/test/functional/expected/dangerous.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/dangerous.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>dangerous.txt</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/embed_images_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/embed_images_html5.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/embed_images_html5.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>Embedded Images</title>
<link rel="stylesheet" href="../../../docutils/writers/html5_polyglot/minimal.css" type="text/css" />
<link rel="stylesheet" href="../../../docutils/writers/html5_polyglot/plain.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/field_name_limit.html
===================================================================
--- trunk/docutils/test/functional/expected/field_name_limit.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/field_name_limit.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>field_list.txt</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/footnotes_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/footnotes_html5.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/footnotes_html5.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>Test footnote and citation rendering</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/math_output_html.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_html.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/math_output_html.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
<link rel="stylesheet" href="../input/data/math.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/math_output_latex.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_latex.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/math_output_latex.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/math_output_mathjax.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_mathjax.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/math_output_mathjax.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<script type="text/javascript" src="/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS_CHTML"></script>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/math_output_mathml.xhtml
===================================================================
--- trunk/docutils/test/functional/expected/math_output_mathml.xhtml 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/math_output_mathml.xhtml 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/misc_rst_html4css1.html
===================================================================
--- trunk/docutils/test/functional/expected/misc_rst_html4css1.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/misc_rst_html4css1.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>link_in_substitution.txt</title>
<link rel="stylesheet" href="foo&bar.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/pep_html.html
===================================================================
--- trunk/docutils/test/functional/expected/pep_html.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/pep_html.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -8,7 +8,7 @@
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+ <meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>PEP 100 -- Test PEP</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml 2021-04-03 11:43:37 UTC (rev 8653)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document PUBLIC "+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML" "http://docutils.sourceforge.net/docs/ref/docutils.dtd">
-<!-- Generated by Docutils 0.17b2.dev -->
+<!-- Generated by Docutils 0.17 -->
<document ids="restructuredtext-test-document doctitle" names="restructuredtext\ test\ document doctitle" source="functional/input/standalone_rst_docutils_xml.txt" title="reStructuredText Test Document">
<title>reStructuredText Test Document</title>
<subtitle ids="examples-of-syntax-constructs subtitle" names="examples\ of\ syntax\ constructs subtitle">Examples of Syntax Constructs</subtitle>
Modified: trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>reStructuredText Test Document</title>
<meta name="author" content="David Goodger" />
<meta name="authors" content="Me Myself I" />
Modified: trunk/docutils/test/functional/expected/standalone_rst_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>reStructuredText Test Document</title>
<meta name="author" content="David Goodger" />
<meta name="author" content="Me" />
Modified: trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<meta name="version" content="S5 1.1" />
<title>Slide Shows</title>
<meta name="author" content="David Goodger" />
Modified: trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<meta name="version" content="S5 1.1" />
<title>Slide Shows</title>
<meta name="author" content="David Goodger" />
Modified: trunk/docutils/test/functional/expected/video.html
===================================================================
--- trunk/docutils/test/functional/expected/video.html 2021-04-03 11:42:24 UTC (rev 8652)
+++ trunk/docutils/test/functional/expected/video.html 2021-04-03 11:43:37 UTC (rev 8653)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17: http://docutils.sourceforge.net/" />
<title>Moving images (video)</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gr...@us...> - 2021-04-04 18:48:17
|
Revision: 8664
http://sourceforge.net/p/docutils/code/8664
Author: grubert
Date: 2021-04-04 18:48:10 +0000 (Sun, 04 Apr 2021)
Log Message:
-----------
Apply patch #160: move macro defs above .TH (thanks Willie and sorry for the delay).
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/writers/manpage.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-04-04 18:33:42 UTC (rev 8663)
+++ trunk/docutils/HISTORY.txt 2021-04-04 18:48:10 UTC (rev 8664)
@@ -17,6 +17,10 @@
Changes Since 0.17
==================
+* manpage writer
+
+ - Apply patch #160: move macro defs above .TH (thanks Willie and sorry for the delay).
+
Release 0.17 (2021-04-03)
=========================
Modified: trunk/docutils/docutils/writers/manpage.py
===================================================================
--- trunk/docutils/docutils/writers/manpage.py 2021-04-04 18:33:42 UTC (rev 8663)
+++ trunk/docutils/docutils/writers/manpage.py 2021-04-04 18:48:10 UTC (rev 8664)
@@ -385,10 +385,11 @@
"""append header with .TH and .SH NAME"""
# NOTE before everything
# .TH title_upper section date source manual
+ # BUT macros before .TH for whatis database generators.
if self.header_written:
return
+ self.head.append(MACRO_DEF)
self.head.append(self.header())
- self.head.append(MACRO_DEF)
self.header_written = 1
def visit_address(self, node):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gr...@us...> - 2021-04-05 08:26:48
|
Revision: 8666
http://sourceforge.net/p/docutils/code/8666
Author: grubert
Date: 2021-04-05 08:26:41 +0000 (Mon, 05 Apr 2021)
Log Message:
-----------
replace unicode copyright by ``(c)``.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/writers/latex2e/docutils.sty
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-04-04 18:48:39 UTC (rev 8665)
+++ trunk/docutils/HISTORY.txt 2021-04-05 08:26:41 UTC (rev 8666)
@@ -17,6 +17,10 @@
Changes Since 0.17
==================
+* latex docutils.sty
+
+ - replace unicode copyright by ``(c)``.
+
* manpage writer
- Apply patch #160: move macro defs above .TH (thanks Willie and sorry for the delay).
Modified: trunk/docutils/docutils/writers/latex2e/docutils.sty
===================================================================
--- trunk/docutils/docutils/writers/latex2e/docutils.sty 2021-04-04 18:48:39 UTC (rev 8665)
+++ trunk/docutils/docutils/writers/latex2e/docutils.sty 2021-04-05 08:26:41 UTC (rev 8666)
@@ -1,6 +1,6 @@
%% docutils.sty: macros for Docutils LaTeX output.
%%
-%% Copyright © 2020 Günter Milde
+%% Copyright (c) 2020 Günter Milde
%% Released under the terms of the `2-Clause BSD license`, in short:
%%
%% Copying and distribution of this file, with or without modification,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-04-07 12:04:39
|
Revision: 8670
http://sourceforge.net/p/docutils/code/8670
Author: milde
Date: 2021-04-07 12:04:36 +0000 (Wed, 07 Apr 2021)
Log Message:
-----------
Clean up parser code.
Simplify conditional loading and mock definition for recommonmark.
Do not repeat generic settings in rst parser.
Modified Paths:
--------------
trunk/docutils/docutils/parsers/__init__.py
trunk/docutils/docutils/parsers/recommonmark_wrapper.py
trunk/docutils/docutils/parsers/rst/__init__.py
trunk/docutils/test/test_parsers/test_recommonmark/test_misc.py
trunk/docutils/test/test_parsers/test_rst/test_directives/test_include.py
Modified: trunk/docutils/docutils/parsers/__init__.py
===================================================================
--- trunk/docutils/docutils/parsers/__init__.py 2021-04-06 19:50:57 UTC (rev 8669)
+++ trunk/docutils/docutils/parsers/__init__.py 2021-04-07 12:04:36 UTC (rev 8670)
@@ -15,16 +15,25 @@
class Parser(Component):
-
settings_spec = (
'Generic Parser Options',
None,
- (('Disable the "raw" directives; replaced with a "warning" '
- 'system message.',
+ (('Disable directives that insert the contents of an external file; '
+ 'replaced with a "warning" system message.',
+ ['--no-file-insertion'],
+ {'action': 'store_false', 'default': 1,
+ 'dest': 'file_insertion_enabled',
+ 'validator': frontend.validate_boolean}),
+ ('Enable directives that insert the contents '
+ 'of an external file. (default)',
+ ['--file-insertion-enabled'],
+ {'action': 'store_true'}),
+ ('Disable the "raw" directive; '
+ 'replaced with a "warning" system message.',
['--no-raw'],
{'action': 'store_false', 'default': 1, 'dest': 'raw_enabled',
'validator': frontend.validate_boolean}),
- ('Enable the "raw" directive. Enabled by default.',
+ ('Enable the "raw" directive. (default)',
['--raw-enabled'],
{'action': 'store_true'}),
('Maximal number of characters in an input line. Default 10 000.',
Modified: trunk/docutils/docutils/parsers/recommonmark_wrapper.py
===================================================================
--- trunk/docutils/docutils/parsers/recommonmark_wrapper.py 2021-04-06 19:50:57 UTC (rev 8669)
+++ trunk/docutils/docutils/parsers/recommonmark_wrapper.py 2021-04-07 12:04:36 UTC (rev 8670)
@@ -19,16 +19,14 @@
"""
import docutils.parsers
-from docutils import nodes
+from docutils import nodes, Component
try:
- from recommonmark.parser import CommonMarkParser as _recommonmarkParser
- _recommonmarkParser.supported = ('recommonmark', 'commonmark',
- 'markdown', 'md')
- with_recommonmark = True
+ from recommonmark.parser import CommonMarkParser
+ from recommonmark.transform import AutoStructify
except ImportError as err:
- with_recommonmark = False
- class _recommonmarkParser(docutils.parsers.Parser):
+ CommonMarkParser = None
+ class Parser(docutils.parsers.Parser):
def parse(self, inputstring, document):
error = document.reporter.warning(
'Missing dependency: MarkDown input is processed by a 3rd '
@@ -36,89 +34,101 @@
'"recommonmark" (https://pypi.org/project/recommonmark/).')
document.append(error)
-class Parser(_recommonmarkParser):
- config_section = 'recommonmark parser'
- config_section_dependencies = ('parsers',)
- def parse(self, inputstring, document):
- """Use the upstream parser and clean up afterwards.
- """
- # check for exorbitantly long lines
- for i, line in enumerate(inputstring.split('\n')):
- if len(line) > document.settings.line_length_limit:
- error = document.reporter.error(
- 'Line %d exceeds the line-length-limit.'%(i+1))
+if CommonMarkParser:
+ class Parser(CommonMarkParser):
+ """MarkDown parser based on recommonmark."""
+ # TODO: settings for AutoStructify
+ # settings_spec = docutils.parsers.Parser.settings_spec + (
+ # see https://recommonmark.readthedocs.io/en/latest/#autostructify
+
+ supported = ('recommonmark', 'commonmark',
+ 'markdown', 'md')
+ config_section = 'recommonmark parser'
+ config_section_dependencies = ('parsers',)
+
+ # def get_transforms(self):
+ # return Component.get_transforms(self) + [AutoStructify]
+
+ def parse(self, inputstring, document):
+ """Use the upstream parser and clean up afterwards.
+ """
+ # check for exorbitantly long lines
+ for i, line in enumerate(inputstring.split('\n')):
+ if len(line) > document.settings.line_length_limit:
+ error = document.reporter.error(
+ 'Line %d exceeds the line-length-limit.'%(i+1))
+ document.append(error)
+ return
+
+ # pass to upstream parser
+ try:
+ CommonMarkParser.parse(self, inputstring, document)
+ except Exception as err:
+ error = document.reporter.error('Parsing with "recommonmark" '
+ 'returned the error:\n%s'%err)
document.append(error)
- return
- # pass to upstream parser
- try:
- _recommonmarkParser.parse(self, inputstring, document)
- except Exception as err:
- error = document.reporter.error('Parsing with "recommonmark" '
- 'returned the error:\n%s'%err)
- document.append(error)
+ # Post-Processing
+ # ---------------
- # Post-Processing
- # ---------------
+ # merge adjoining Text nodes:
+ for node in document.traverse(nodes.TextElement):
+ children = node.children
+ i = 0
+ while i+1 < len(children):
+ if (isinstance(children[i], nodes.Text)
+ and isinstance(children[i+1], nodes.Text)):
+ children[i] = nodes.Text(children[i]+children.pop(i+1))
+ children[i].parent = node
+ else:
+ i += 1
- # merge adjoining Text nodes:
- for node in document.traverse(nodes.TextElement):
- children = node.children
- i = 0
- while i+1 < len(children):
- if (isinstance(children[i], nodes.Text)
- and isinstance(children[i+1], nodes.Text)):
- children[i] = nodes.Text(children[i]+children.pop(i+1))
- children[i].parent = node
- else:
- i += 1
+ # add "code" class argument to inline literal (code spans)
+ for node in document.traverse(lambda n: isinstance(n,
+ (nodes.literal, nodes.literal_block))):
+ node['classes'].append('code')
+ # move "language" argument to classes
+ for node in document.traverse(nodes.literal_block):
+ if 'language' in node.attributes:
+ node['classes'].append(node['language'])
+ del node['language']
- # add "code" class argument to inline literal (code spans)
- for node in document.traverse(lambda n: isinstance(n,
- (nodes.literal, nodes.literal_block))):
- node['classes'].append('code')
- # move "language" argument to classes
- for node in document.traverse(nodes.literal_block):
- if 'language' in node.attributes:
- node['classes'].append(node['language'])
- del node['language']
+ # remove empty target nodes
+ for node in document.traverse(nodes.target):
+ # remove empty name
+ node['names'] = [v for v in node['names'] if v]
+ if node.children or [v for v in node.attributes.values() if v]:
+ continue
+ node.parent.remove(node)
- # remove empty target nodes
- for node in document.traverse(nodes.target):
- # remove empty name
- node['names'] = [v for v in node['names'] if v]
- if node.children or [v for v in node.attributes.values() if v]:
- continue
- node.parent.remove(node)
+ # replace raw nodes if raw is not allowed
+ if not document.settings.raw_enabled:
+ for node in document.traverse(nodes.raw):
+ warning = document.reporter.warning('Raw content disabled.')
+ node.parent.replace(node, warning)
- # replace raw nodes if raw is not allowed
- if not document.settings.raw_enabled:
- for node in document.traverse(nodes.raw):
- warning = document.reporter.warning('Raw content disabled.')
- node.parent.replace(node, warning)
+ # fix section nodes
+ for node in document.traverse(nodes.section):
+ # remove spurious IDs (first may be from duplicate name)
+ if len(node['ids']) > 1:
+ node['ids'].pop()
+ # fix section levels
+ section_level = self.get_section_level(node)
+ if node['level'] != section_level:
+ warning = document.reporter.warning(
+ 'Title level inconsistent. Changing from %d to %d.'
+ %(node['level'], section_level),
+ nodes.literal_block('', node[0].astext()))
+ node.insert(1, warning)
+ # remove non-standard attribute "level"
+ del node['level'] # TODO: store the original md level somewhere
- # fix section nodes
- for node in document.traverse(nodes.section):
- # remove spurious IDs (first may be from duplicate name)
- if len(node['ids']) > 1:
- node['ids'].pop()
- # fix section levels
- section_level = self.get_section_level(node)
- if node['level'] != section_level:
- warning = document.reporter.warning(
- 'Title level inconsistent. Changing from %d to %d.'
- %(node['level'], section_level),
- nodes.literal_block('', node[0].astext()))
- node.insert(1, warning)
- # remove non-standard attribute "level"
- del node['level'] # TODO: store the original md level somewhere
-
- def get_section_level(self, node):
- level = 1
- while True:
- node = node.parent
- if isinstance(node, nodes.document):
- return level
- if isinstance(node, nodes.section):
- level += 1
+ def get_section_level(self, node):
+ level = 1
+ while True:
+ node = node.parent
+ if isinstance(node, nodes.document):
+ return level
+ if isinstance(node, nodes.section):
+ level += 1
Modified: trunk/docutils/docutils/parsers/rst/__init__.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/__init__.py 2021-04-06 19:50:57 UTC (rev 8669)
+++ trunk/docutils/docutils/parsers/rst/__init__.py 2021-04-07 12:04:36 UTC (rev 8670)
@@ -84,7 +84,7 @@
supported = ('restructuredtext', 'rst', 'rest', 'restx', 'rtxt', 'rstx')
"""Aliases this parser supports."""
- settings_spec = (
+ settings_spec = docutils.parsers.Parser.settings_spec + (
'reStructuredText Parser Options',
None,
(('Recognize and link to standalone PEP references (like "PEP 258").',
@@ -115,28 +115,6 @@
('Leave spaces before footnote references.',
['--leave-footnote-reference-space'],
{'action': 'store_false', 'dest': 'trim_footnote_reference_space'}),
- ('Disable directives that insert the contents of external file '
- '("include" & "raw"); replaced with a "warning" system message.',
- ['--no-file-insertion'],
- {'action': 'store_false', 'default': 1,
- 'dest': 'file_insertion_enabled',
- 'validator': frontend.validate_boolean}),
- ('Enable directives that insert the contents of external file '
- '("include" & "raw"). Enabled by default.',
- ['--file-insertion-enabled'],
- {'action': 'store_true'}),
- ('Disable the "raw" directives; replaced with a "warning" '
- 'system message.',
- ['--no-raw'],
- {'action': 'store_false', 'default': 1, 'dest': 'raw_enabled',
- 'validator': frontend.validate_boolean}),
- ('Enable the "raw" directive. Enabled by default.',
- ['--raw-enabled'],
- {'action': 'store_true'}),
- ('Maximal number of characters in an input line. Default 10 000.',
- ['--line-length-limit'],
- {'metavar': '<length>', 'type': 'int', 'default': 10000,
- 'validator': frontend.validate_nonnegative_int}),
('Token name set for parsing code with Pygments: one of '
'"long", "short", or "none" (no parsing). Default is "long".',
['--syntax-highlight'],
Modified: trunk/docutils/test/test_parsers/test_recommonmark/test_misc.py
===================================================================
--- trunk/docutils/test/test_parsers/test_recommonmark/test_misc.py 2021-04-06 19:50:57 UTC (rev 8669)
+++ trunk/docutils/test/test_parsers/test_recommonmark/test_misc.py 2021-04-07 12:04:36 UTC (rev 8670)
@@ -50,7 +50,7 @@
class reCommonMarkParserTests(unittest.TestCase):
- @unittest.skipUnless(recommonmark_wrapper.with_recommonmark, skip_msg)
+ @unittest.skipUnless(recommonmark_wrapper.CommonMarkParser, skip_msg)
def test_parsing_error(self):
output = publish_string(sample1, parser_name='recommonmark',
settings_overrides={'warning_stream': ''})
@@ -58,7 +58,7 @@
self.assertIn(b'Parsing with "recommonmark" returned the error:',
output)
- @unittest.skipUnless(recommonmark_wrapper.with_recommonmark, skip_msg)
+ @unittest.skipUnless(recommonmark_wrapper.CommonMarkParser, skip_msg)
def test_raw_disabled(self):
output = publish_string(sample_with_html, parser_name='recommonmark',
settings_overrides={'warning_stream': '',
@@ -67,7 +67,7 @@
self.assertIn(b'<system_message', output)
self.assertIn(b'Raw content disabled.', output)
- @unittest.skipUnless(recommonmark_wrapper.with_recommonmark, skip_msg)
+ @unittest.skipUnless(recommonmark_wrapper.CommonMarkParser, skip_msg)
def test_raw_disabled_inline(self):
output = publish_string('foo <a href="uri">', parser_name='recommonmark',
settings_overrides={'warning_stream': '',
@@ -78,7 +78,7 @@
self.assertIn(b'Raw content disabled.', output)
- @unittest.skipUnless(recommonmark_wrapper.with_recommonmark, skip_msg)
+ @unittest.skipUnless(recommonmark_wrapper.CommonMarkParser, skip_msg)
def test_raw_disabled(self):
output = publish_string(sample_with_html, parser_name='recommonmark',
settings_overrides={'warning_stream': '',
@@ -88,7 +88,7 @@
self.assertNotIn(b'<raw>', output)
self.assertNotIn(b'<system_message', output)
- @unittest.skipIf(recommonmark_wrapper.with_recommonmark,
+ @unittest.skipIf(recommonmark_wrapper.CommonMarkParser,
'recommonmark_wrapper: parser found, fallback not used')
def test_fallback_parser(self):
output = publish_string(sample1, parser_name='recommonmark',
Modified: trunk/docutils/test/test_parsers/test_rst/test_directives/test_include.py
===================================================================
--- trunk/docutils/test/test_parsers/test_rst/test_directives/test_include.py 2021-04-06 19:50:57 UTC (rev 8669)
+++ trunk/docutils/test/test_parsers/test_rst/test_directives/test_include.py 2021-04-07 12:04:36 UTC (rev 8670)
@@ -15,7 +15,7 @@
import __init__
from test_parsers import DocutilsTestSupport
from docutils.parsers.rst import states
-from docutils.parsers.recommonmark_wrapper import with_recommonmark
+from docutils.parsers import recommonmark_wrapper
from docutils.utils.code_analyzer import with_pygments
if sys.version_info >= (3, 0):
@@ -76,7 +76,7 @@
# Parsing with Markdown (recommonmark) is an optional feature depending
# on 3rd-party modules:
-if with_recommonmark:
+if recommonmark_wrapper.CommonMarkParser:
markdown_parsing_result = """\
<section ids="title-1" names="title\\ 1">
<title>
@@ -1048,6 +1048,89 @@
.
""" % reldir(include1)],
["""\
+TAB expansion with included code:
+
+.. include:: %s
+ :code: rst
+""" % include_literal,
+"""\
+<document source="test data">
+ <paragraph>
+ TAB expansion with included code:
+ <literal_block classes="code rst" source="%s" xml:space="preserve">
+ Literal included this should \n\
+ <inline classes="generic strong">
+ **not**
+ be \n\
+ <inline classes="generic emph">
+ *marked*
+ \n\
+ <inline classes="name variable">
+ `up`
+ .
+ <- leading raw tab.
+ \n\
+ Newlines
+ are
+ normalized.
+""" % include_literal],
+["""\
+Custom TAB expansion with included code:
+
+.. include:: %s
+ :code: rst
+ :tab-width: 2
+""" % include_literal,
+"""\
+<document source="test data">
+ <paragraph>
+ Custom TAB expansion with included code:
+ <literal_block classes="code rst" source="%s" xml:space="preserve">
+ Literal included this should \n\
+ <inline classes="generic strong">
+ **not**
+ be \n\
+ <inline classes="generic emph">
+ *marked*
+ \n\
+ <inline classes="name variable">
+ `up`
+ .
+ <- leading raw tab.
+ \n\
+ Newlines
+ are
+ normalized.
+""" % include_literal],
+["""\
+Custom TAB expansion with included code:
+
+.. include:: %s
+ :code: rst
+ :tab-width: -1
+""" % include_literal,
+"""\
+<document source="test data">
+ <paragraph>
+ Custom TAB expansion with included code:
+ <literal_block classes="code rst" source="%s" xml:space="preserve">
+ Literal included this should \n\
+ <inline classes="generic strong">
+ **not**
+ be \n\
+ <inline classes="generic emph">
+ *marked*
+ \n\
+ <inline classes="name variable">
+ `up`
+ .
+ \t<- leading raw tab.
+ \n\
+ Newlines
+ are
+ normalized.
+""" % include_literal],
+["""\
Including includes/include14.txt
.. include:: %s
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-04-07 12:09:54
|
Revision: 8671
http://sourceforge.net/p/docutils/code/8671
Author: milde
Date: 2021-04-07 12:09:51 +0000 (Wed, 07 Apr 2021)
Log Message:
-----------
Provide fallbacks for parser config settings.
Some 3rd party applications fail with AttributeError due to
missing values in the document.settings object.
a) because they don't follow the requirement documented in
utils.new_document:
If you will use the document object with any Docutils components,
you must provide their default settings as well.
b) because they may provide a hard-coded set missing new settings.
This should fix bug #415 and
https://github.com/readthedocs/recommonmark/issues/220.
See also the sphinx issue with Docutils 0.13.1
https://github.com/sphinx-doc/sphinx/issues/3951.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/frontend.py
trunk/docutils/docutils/parsers/__init__.py
trunk/docutils/docutils/parsers/rst/__init__.py
trunk/docutils/docutils/transforms/frontmatter.py
trunk/docutils/docutils/transforms/parts.py
trunk/docutils/docutils/transforms/universal.py
trunk/docutils/docutils/utils/__init__.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-04-07 12:04:36 UTC (rev 8670)
+++ trunk/docutils/HISTORY.txt 2021-04-07 12:09:51 UTC (rev 8671)
@@ -8,22 +8,23 @@
:Contact: doc...@li...
:Date: $Date$
:Revision: $Revision$
-:Web site: http://docutils.sourceforge.net/
+:Web site: https://docutils.sourceforge.io/
:Copyright: This document has been placed in the public domain.
.. contents::
-
Changes Since 0.17
==================
-* latex docutils.sty
+* manpage writer
- - replace unicode copyright by ``(c)``.
+ - Apply patch #160: move macro defs above ``.TH``
+ (thanks Willie and sorry for the delay).
-* manpage writer
+* docutils/parsers/*.py, docutils/transforms/*.py
- - Apply patch #160: move macro defs above .TH (thanks Willie and sorry for the delay).
+ - Provide fallbacks for parser config settings
+ to facilitate programmatic use.
Release 0.17 (2021-04-03)
=========================
Modified: trunk/docutils/docutils/frontend.py
===================================================================
--- trunk/docutils/docutils/frontend.py 2021-04-07 12:04:36 UTC (rev 8670)
+++ trunk/docutils/docutils/frontend.py 2021-04-07 12:09:51 UTC (rev 8671)
@@ -332,6 +332,13 @@
def copy(self):
"""Return a shallow copy of `self`."""
return self.__class__(defaults=self.__dict__)
+
+ def setdefault(self, name, default):
+ """V.setdefault(n[,d]) -> getattr(V,n,d), also set D.n=d if n not in D or None.
+ """
+ if getattr(self, name, None) is None:
+ setattr(self, name, default)
+ return getattr(self, name)
class Option(optparse.Option):
@@ -637,7 +644,7 @@
option = group.add_option(help=help_text, *option_strings,
**kwargs)
if kwargs.get('action') == 'append':
- self.lists[option.dest] = 1
+ self.lists[option.dest] = True
if component.settings_defaults:
self.defaults.update(component.settings_defaults)
for component in components:
Modified: trunk/docutils/docutils/parsers/__init__.py
===================================================================
--- trunk/docutils/docutils/parsers/__init__.py 2021-04-07 12:04:36 UTC (rev 8670)
+++ trunk/docutils/docutils/parsers/__init__.py 2021-04-07 12:09:51 UTC (rev 8671)
@@ -51,6 +51,10 @@
def setup_parse(self, inputstring, document):
"""Initial parse setup. Call at start of `self.parse()`."""
self.inputstring = inputstring
+ # provide fallbacks in case the document has only generic settings
+ document.settings.setdefault('file_insertion_enabled', False)
+ document.settings.setdefault('raw_enabled', False)
+ document.settings.setdefault('line_length_limit', 10000)
self.document = document
document.reporter.attach_observer(document.note_parse_message)
Modified: trunk/docutils/docutils/parsers/rst/__init__.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/__init__.py 2021-04-07 12:04:36 UTC (rev 8670)
+++ trunk/docutils/docutils/parsers/rst/__init__.py 2021-04-07 12:09:51 UTC (rev 8671)
@@ -163,6 +163,9 @@
def parse(self, inputstring, document):
"""Parse `inputstring` and populate `document`, a document tree."""
self.setup_parse(inputstring, document)
+ # provide fallbacks in case the document has only generic settings
+ self.document.settings.setdefault('tab_width', 8)
+ self.document.settings.setdefault('syntax_highlight', 'long')
self.statemachine = states.RSTStateMachine(
state_classes=self.state_classes,
initial_state=self.initial_state,
Modified: trunk/docutils/docutils/transforms/frontmatter.py
===================================================================
--- trunk/docutils/docutils/transforms/frontmatter.py 2021-04-07 12:04:36 UTC (rev 8670)
+++ trunk/docutils/docutils/transforms/frontmatter.py 2021-04-07 12:09:51 UTC (rev 8671)
@@ -241,7 +241,7 @@
self.document['title'] = self.document[0].astext()
def apply(self):
- if getattr(self.document.settings, 'doctitle_xform', 1):
+ if self.document.settings.setdefault('doctitle_xform', True):
# promote_(sub)title defined in TitlePromoter base class.
if self.promote_title(self.document):
# If a title has been promoted, also try to promote a
@@ -279,7 +279,7 @@
default_priority = 350
def apply(self):
- if not getattr(self.document.settings, 'sectsubtitle_xform', 1):
+ if not self.document.settings.setdefault('sectsubtitle_xform', True):
return
for section in self.document._traverse(nodes.section):
# On our way through the node tree, we are modifying it
@@ -383,7 +383,7 @@
bibliographic fields (field_list)."""
def apply(self):
- if not getattr(self.document.settings, 'docinfo_xform', 1):
+ if not self.document.settings.setdefault('docinfo_xform', True):
return
document = self.document
index = document.first_child_not_matching_class(
@@ -508,7 +508,7 @@
def authors_from_one_paragraph(self, field):
"""Return list of Text nodes for authornames.
-
+
The set of separators is locale dependent (default: ";"- or ",").
"""
# @@ keep original formatting? (e.g. ``:authors: A. Test, *et-al*``)
Modified: trunk/docutils/docutils/transforms/parts.py
===================================================================
--- trunk/docutils/docutils/transforms/parts.py 2021-04-07 12:04:36 UTC (rev 8670)
+++ trunk/docutils/docutils/transforms/parts.py 2021-04-07 12:09:51 UTC (rev 8671)
@@ -86,10 +86,8 @@
default_priority = 720
def apply(self):
- try: # let the writer (or output software) build the contents list?
- toc_by_writer = self.document.settings.use_latex_toc
- except AttributeError:
- toc_by_writer = False
+ # let the writer (or output software) build the contents list?
+ toc_by_writer = getattr(self.document.settings, 'use_latex_toc', False)
details = self.startnode.details
if 'local' in details:
startnode = self.startnode.parent.parent
Modified: trunk/docutils/docutils/transforms/universal.py
===================================================================
--- trunk/docutils/docutils/transforms/universal.py 2021-04-07 12:04:36 UTC (rev 8670)
+++ trunk/docutils/docutils/transforms/universal.py 2021-04-07 12:09:51 UTC (rev 8671)
@@ -260,7 +260,8 @@
yield ('plain', txt)
def apply(self):
- smart_quotes = self.document.settings.smart_quotes
+ smart_quotes = self.document.settings.setdefault('smart_quotes',
+ False)
if not smart_quotes:
return
try:
Modified: trunk/docutils/docutils/utils/__init__.py
===================================================================
--- trunk/docutils/docutils/utils/__init__.py 2021-04-07 12:04:36 UTC (rev 8670)
+++ trunk/docutils/docutils/utils/__init__.py 2021-04-07 12:09:51 UTC (rev 8671)
@@ -552,9 +552,8 @@
If trim_footnote_reference_space is None, return False unless the
footnote reference style is 'superscript'.
"""
- if settings.trim_footnote_reference_space is None:
- return hasattr(settings, 'footnote_references') and \
- settings.footnote_references == 'superscript'
+ if settings.setdefault('trim_footnote_reference_space', None) is None:
+ return getattr(settings, 'footnote_references', None) == 'superscript'
else:
return settings.trim_footnote_reference_space
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-04-07 12:10:09
|
Revision: 8672
http://sourceforge.net/p/docutils/code/8672
Author: milde
Date: 2021-04-07 12:10:06 +0000 (Wed, 07 Apr 2021)
Log Message:
-----------
Update documentation
rST parser is no longer the only one.
Modified Paths:
--------------
trunk/docutils/docs/user/config.txt
trunk/docutils/docutils/utils/__init__.py
trunk/docutils/docutils/writers/xetex/__init__.py
Modified: trunk/docutils/docs/user/config.txt
===================================================================
--- trunk/docutils/docs/user/config.txt 2021-04-07 12:09:51 UTC (rev 8671)
+++ trunk/docutils/docs/user/config.txt 2021-04-07 12:10:06 UTC (rev 8672)
@@ -466,6 +466,10 @@
Default: None. Option: ``--record-dependencies``.
+.. [#dependencies] Images are only added to the dependency list if they
+ are embedded into the output or the reStructuredText parser extracted
+ image dimensions from the file.
+
report_level
------------
@@ -598,9 +602,47 @@
[parsers]
=========
-Docutils currently supports only one parser, for reStructuredText.
+Generic parser options:
+file_insertion_enabled
+----------------------
+Enable or disable directives or directive that insert the contents of
+external files, such as "include_" or "raw_" with option "url".
+A "warning" system message (including the directive text) is inserted
+instead. (See also raw_enabled_ for another security-relevant setting.)
+
+Default: enabled (True).
+Options: ``--file-insertion-enabled, --no-file-insertion``.
+
+.. _include: ../ref/rst/directives.html#include
+.. _raw: ../ref/rst/directives.html#raw
+
+line_length_limit
+-----------------
+
+Maximal number of characters in an input line or `substitution`_
+definition. To prevent extraordinary high processing times or memory
+usage for certain input constructs, a "warning" system message is
+inserted instead.
+
+Default: 10 000.
+Option: ``--line-length-limit``
+
+New in Docutils 0.17.
+
+.. _substitution: ../ref/rst/directives.html#substitution
+
+raw_enabled
+-----------
+
+Enable or disable the "raw_" directive. A "warning" system message
+(including the directive text) is inserted instead. See also
+file_insertion_enabled_ for another security-relevant setting.
+
+Default: enabled (True). Options: ``--raw-enabled, --no-raw``.
+
+
[restructuredtext parser]
-------------------------
@@ -630,35 +672,6 @@
New in Docutils 0.13.
-file_insertion_enabled
-~~~~~~~~~~~~~~~~~~~~~~
-
-Enable or disable directives that insert the contents of external
-files, such as the "include_" & "raw_". A "warning" system
-message (including the directive text) is inserted instead. (See
-also raw_enabled_ for another security-relevant setting.)
-
-Default: enabled (True).
-Options: ``--file-insertion-enabled, --no-file-insertion``.
-
-.. _include: ../ref/rst/directives.html#include
-.. _raw: ../ref/rst/directives.html#raw
-
-line_length_limit
-~~~~~~~~~~~~~~~~~
-
-Maximal number of characters in an input line or `substitution`_
-definition. To prevent extraordinary high processing times or memory
-usage for certain input constructs, a "warning" system message is
-inserted instead.
-
-Default: 10 000.
-Option: ``--line-length-limit``
-
-New in Docutils 0.17.
-
-.. _substitution: ../ref/rst/directives.html#substitution
-
pep_references
~~~~~~~~~~~~~~
@@ -682,15 +695,6 @@
Default: "pep-%04d". Option: ``--pep-file-url``.
-raw_enabled
-~~~~~~~~~~~
-
-Enable or disable the "raw_" directive. A "warning" system message
-(including the directive text) is inserted instead. See also
-file_insertion_enabled_ for another security-relevant setting.
-
-Default: enabled (True). Options: ``--raw-enabled, --no-raw``.
-
rfc_references
~~~~~~~~~~~~~~
@@ -794,18 +798,23 @@
trim_footnote_reference_space
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Remove spaces before `footnote references`_. [#]_
+Remove spaces before `footnote references`_?
-Default: don't (None) rsp. depending on the writer-specific
-`footnote_references setting`_. [#footnote_space]_
+Default: None [#]_
Options: ``--trim-footnote-reference-space, --leave-footnote-reference-space``.
-.. [#] The footnote space is trimmed if the reference style is
- "superscript", and it is left if the reference style is "brackets".
+.. [#] Depending on the writer-specific `footnote_references setting`_.
+ The footnote space is trimmed if the reference style is "superscript",
+ and it is left if the reference style is "brackets".
+[markdown parser]
+-----------------
+based on recommonmark_
+.. _recommonmark: https://pypi.org/project/recommonmark/
+
[readers]
=========
@@ -985,8 +994,8 @@
Format for `footnote references`_, one of "superscript" or "brackets".
See also `footnote_references [latex writers]`_.
-Overrides [#override]_ trim_footnote_reference_space_, if
-applicable. [#footnote_space]_
+Overrides [#override]_ trim_footnote_reference_space_,
+if the parser supports this option.
Default: "brackets". Option: ``--footnote-references``.
@@ -1501,8 +1510,8 @@
Format for `footnote references`_: one of "superscript" or "brackets".
See also `footnote_references [html writers]`_.
-Overrides [#override]_ trim_footnote_reference_space_, if
-applicable. [#footnote_space]_
+Overrides [#override]_ trim_footnote_reference_space_,
+if the parser supports this option.
Default: "superscript". Option: ``--footnote-references``.
@@ -2128,6 +2137,7 @@
Default: stdin (None). No command-line options.
+--------------------------------------------------------------------------
.. _language tag: http://www.w3.org/International/articles/language-tags/
.. _BCP 47: http://www.rfc-editor.org/rfc/bcp/bcp47.txt
@@ -2144,13 +2154,7 @@
do the overriding explicitly, by assigning ``None`` to the other
settings.
-.. [#dependencies] Images are only added to the dependency list if the
- reStructuredText parser extracted image dimensions from the file.
-.. [#footnote_space] The overriding only happens if the parser supports
- the trim_footnote_reference_space option.
-
-
------------------------------
Old-Format Configuration Files
------------------------------
Modified: trunk/docutils/docutils/utils/__init__.py
===================================================================
--- trunk/docutils/docutils/utils/__init__.py 2021-04-07 12:09:51 UTC (rev 8671)
+++ trunk/docutils/docutils/utils/__init__.py 2021-04-07 12:10:06 UTC (rev 8672)
@@ -434,7 +434,7 @@
Runtime settings. If none are provided, a default core set will
be used. If you will use the document object with any Docutils
components, you must provide their default settings as well. For
- example, if parsing, at least provide the parser settings,
+ example, if parsing rST, at least provide the rst-parser settings,
obtainable as follows::
settings = docutils.frontend.OptionParser(
Modified: trunk/docutils/docutils/writers/xetex/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/xetex/__init__.py 2021-04-07 12:09:51 UTC (rev 8671)
+++ trunk/docutils/docutils/writers/xetex/__init__.py 2021-04-07 12:10:06 UTC (rev 8672)
@@ -63,7 +63,7 @@
def __init__(self):
latex2e.Writer.__init__(self)
- self.settings_defaults.update({'fontencoding': ''}) # use default (EU1 or EU2)
+ self.settings_defaults.update({'fontencoding': ''}) # use default (TU)
self.translator_class = XeLaTeXTranslator
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-04-07 17:57:30
|
Revision: 8673
http://sourceforge.net/p/docutils/code/8673
Author: milde
Date: 2021-04-07 17:57:27 +0000 (Wed, 07 Apr 2021)
Log Message:
-----------
Improve help and error msg for docutils-cli.
Modified Paths:
--------------
trunk/docutils/docutils/writers/__init__.py
trunk/docutils/tools/docutils-cli.py
Modified: trunk/docutils/docutils/writers/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/__init__.py 2021-04-07 12:10:06 UTC (rev 8672)
+++ trunk/docutils/docutils/writers/__init__.py 2021-04-07 17:57:27 UTC (rev 8673)
@@ -16,7 +16,6 @@
from docutils import languages, Component
from docutils.transforms import universal
-
class Writer(Component):
"""
@@ -147,5 +146,8 @@
try:
module = import_module('docutils.writers.'+writer_name)
except ImportError:
- module = import_module(writer_name)
+ try:
+ module = import_module(writer_name)
+ except ImportError as err:
+ raise ImportError('No writer named "%s".' % writer_name)
return module.Writer
Modified: trunk/docutils/tools/docutils-cli.py
===================================================================
--- trunk/docutils/tools/docutils-cli.py 2021-04-07 12:10:06 UTC (rev 8672)
+++ trunk/docutils/tools/docutils-cli.py 2021-04-07 17:57:27 UTC (rev 8673)
@@ -27,6 +27,7 @@
import sys
from docutils.core import publish_cmdline, default_description
+from docutils.utils import SystemMessage
description = u'Generate documents from reStructuredText or Markdown sources.'
@@ -36,20 +37,21 @@
u'components, the list below adapts to your selection.'
)
-parser = argparse.ArgumentParser(add_help=False, description=description,
- epilog=epilog)
+parser = argparse.ArgumentParser(add_help=False,
+ description=description, epilog=epilog,
+ formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--reader', choices=('standalone', 'pep'),
- help=u'Reader name (default "standalone").',
+ help=u'Reader name.',
default='standalone')
parser.add_argument('--parser', choices=('markdown', 'rst'),
- help=u'Parser name (default "rst").',
+ help=u'Parser name.',
default='rst')
parser.add_argument('--writer',
# choices=('html', 'html4', 'html5', 'latex', 'xelatex',
# 'odt', 'xml', 'pseudoxml', 'manpage',
# 'pep_html', 's5_html'),
- help=u'Writer name (default "html5").',
+ help=u'Writer name.',
default='html5')
(args, remainder) = parser.parse_known_args()
@@ -59,9 +61,12 @@
print(parser.format_help())
print('')
-
-publish_cmdline(reader_name=args.reader,
- parser_name=args.parser,
- writer_name=args.writer,
- description=default_description,
- argv=remainder)
+try:
+ publish_cmdline(reader_name=args.reader,
+ parser_name=args.parser,
+ writer_name=args.writer,
+ description=default_description,
+ argv=remainder)
+except ImportError as error:
+ print(parser.format_help())
+ print('ImportError:', error)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-04-07 20:45:07
|
Revision: 8674
http://sourceforge.net/p/docutils/code/8674
Author: milde
Date: 2021-04-07 20:45:05 +0000 (Wed, 07 Apr 2021)
Log Message:
-----------
Fix bug #414: error with Py3k when locale encoding is "ascii".
Open "docutils.sty" with encoding set to "utf8".
(We know the encoding as we provide the file.)
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/writers/latex2e/__init__.py
trunk/docutils/docutils/writers/latex2e/docutils.sty
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-04-07 17:57:27 UTC (rev 8673)
+++ trunk/docutils/HISTORY.txt 2021-04-07 20:45:05 UTC (rev 8674)
@@ -16,10 +16,10 @@
Changes Since 0.17
==================
-* manpage writer
+* docutils/writers/latex2e/__init__.py:
- - Apply patch #160: move macro defs above ``.TH``
- (thanks Willie and sorry for the delay).
+ - Open "docutils.sty" with encoding set to "utf8".
+ Fixes bug #414: error with Py3k when locale encoding is "ascii".
* docutils/parsers/*.py, docutils/transforms/*.py
@@ -26,6 +26,11 @@
- Provide fallbacks for parser config settings
to facilitate programmatic use.
+* docutils/writers/manpage.py
+
+ - Apply patch #160: move macro defs above ``.TH``
+ (thanks Willie and sorry for the delay).
+
Release 0.17 (2021-04-03)
=========================
Modified: trunk/docutils/docutils/writers/latex2e/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/latex2e/__init__.py 2021-04-07 17:57:27 UTC (rev 8673)
+++ trunk/docutils/docutils/writers/latex2e/__init__.py 2021-04-07 20:45:05 UTC (rev 8674)
@@ -13,10 +13,11 @@
#
# convention deactivate code by two # i.e. ##.
-import sys
+from io import open
import os
import re
import string
+import sys
try:
import roman
@@ -23,7 +24,8 @@
except ImportError:
import docutils.utils.roman as roman
-from docutils import frontend, nodes, languages, writers, utils, io
+import docutils
+from docutils import frontend, nodes, languages, writers, utils
from docutils.utils.error_reporting import SafeString
from docutils.transforms import writer_aux
from docutils.utils.math import pick_math_environment, unichar2tex
@@ -571,7 +573,7 @@
_du_sty = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'docutils.sty')
-with open(_du_sty) as fp:
+with open(_du_sty, encoding='utf8') as fp:
for line in fp:
line = line.strip('% \n')
if not line.endswith('::'):
@@ -1330,7 +1332,7 @@
if is_package:
path = base + '.sty' # ensure extension
try:
- content = io.FileInput(source_path=path,
+ content = docutils.io.FileInput(source_path=path,
encoding='utf-8').read()
self.settings.record_dependencies.add(path)
except IOError as err:
Modified: trunk/docutils/docutils/writers/latex2e/docutils.sty
===================================================================
--- trunk/docutils/docutils/writers/latex2e/docutils.sty 2021-04-07 17:57:27 UTC (rev 8673)
+++ trunk/docutils/docutils/writers/latex2e/docutils.sty 2021-04-07 20:45:05 UTC (rev 8674)
@@ -1,6 +1,6 @@
%% docutils.sty: macros for Docutils LaTeX output.
%%
-%% Copyright (c) 2020 Günter Milde
+%% Copyright © 2020 Günter Milde
%% Released under the terms of the `2-Clause BSD license`, in short:
%%
%% Copying and distribution of this file, with or without modification,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-04-08 16:36:02
|
Revision: 8675
http://sourceforge.net/p/docutils/code/8675
Author: milde
Date: 2021-04-08 16:35:54 +0000 (Thu, 08 Apr 2021)
Log Message:
-----------
Fix bug #406 (MathML translation of ``\mathbf``).
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/utils/math/latex2mathml.py
trunk/docutils/test/functional/expected/math_output_mathml.xhtml
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-04-07 20:45:05 UTC (rev 8674)
+++ trunk/docutils/HISTORY.txt 2021-04-08 16:35:54 UTC (rev 8675)
@@ -16,6 +16,10 @@
Changes Since 0.17
==================
+* docutils/utils/math/latex2mathml.py
+
+ - Fix bug #406 (MathML translation of ``\mathbf``).
+
* docutils/writers/latex2e/__init__.py:
- Open "docutils.sty" with encoding set to "utf8".
Modified: trunk/docutils/docutils/utils/math/latex2mathml.py
===================================================================
--- trunk/docutils/docutils/utils/math/latex2mathml.py 2021-04-07 20:45:05 UTC (rev 8674)
+++ trunk/docutils/docutils/utils/math/latex2mathml.py 2021-04-08 16:35:54 UTC (rev 8675)
@@ -524,7 +524,7 @@
node = node.append(mo(negatables[operator]))
skip += len(operator)
elif name == 'mathbf':
- style = mstyle(nchildren=1, fontweight='bold')
+ style = mstyle(nchildren=1, mathvariant='bold')
node.append(style)
node = style
elif name == 'mathbb':
Modified: trunk/docutils/test/functional/expected/math_output_mathml.xhtml
===================================================================
--- trunk/docutils/test/functional/expected/math_output_mathml.xhtml 2021-04-07 20:45:05 UTC (rev 8674)
+++ trunk/docutils/test/functional/expected/math_output_mathml.xhtml 2021-04-08 16:35:54 UTC (rev 8675)
@@ -46,7 +46,7 @@
<math xmlns="http://www.w3.org/1998/Math/MathML" mode="display">
<mtable>
<mtr>
-<mtd><mstyle fontweight="bold">
+<mtd><mstyle mathvariant="bold">
<mrow><mi>M</mi></mrow></mstyle><mo>=</mo><mfenced open="(" close=")">
<mrow>
<mtable>
@@ -58,7 +58,7 @@
<mtd><mi>d</mi></mtd></mtr></mtable></mrow></mfenced></mtd></mtr></mtable></math>
</div>
<p>is <math xmlns="http://www.w3.org/1998/Math/MathML">
-<mrow><mo>|</mo><mstyle fontweight="bold">
+<mrow><mo>|</mo><mstyle mathvariant="bold">
<mrow><mi>M</mi></mrow></mstyle><mo>|</mo><mo>=</mo><mi>a</mi><mi>d</mi><mo>-</mo><mi>b</mi><mi>c</mi></mrow></math>.</p>
<p>More than one display math block can be put in one math directive.
For example, the following sum and integral with limits:</p>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gr...@us...> - 2021-04-09 13:54:52
|
Revision: 8681
http://sourceforge.net/p/docutils/code/8681
Author: grubert
Date: 2021-04-09 13:46:40 +0000 (Fri, 09 Apr 2021)
Log Message:
-----------
set version to 0.17.1b.dev
Modified Paths:
--------------
trunk/docutils/README.txt
trunk/docutils/docutils/__init__.py
trunk/docutils/setup.py
trunk/docutils/test/functional/expected/compact_lists.html
trunk/docutils/test/functional/expected/dangerous.html
trunk/docutils/test/functional/expected/embed_images_html5.html
trunk/docutils/test/functional/expected/field_name_limit.html
trunk/docutils/test/functional/expected/footnotes_html5.html
trunk/docutils/test/functional/expected/math_output_html.html
trunk/docutils/test/functional/expected/math_output_latex.html
trunk/docutils/test/functional/expected/math_output_mathjax.html
trunk/docutils/test/functional/expected/math_output_mathml.xhtml
trunk/docutils/test/functional/expected/misc_rst_html4css1.html
trunk/docutils/test/functional/expected/pep_html.html
trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
trunk/docutils/test/functional/expected/standalone_rst_html5.html
trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html
trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html
trunk/docutils/test/functional/expected/video.html
Modified: trunk/docutils/README.txt
===================================================================
--- trunk/docutils/README.txt 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/README.txt 2021-04-09 13:46:40 UTC (rev 8681)
@@ -1,6 +1,6 @@
-============================
- README: Docutils 0.18b.dev
-============================
+==============================
+ README: Docutils 0.17.1b.dev
+==============================
:Author: David Goodger
:Contact: go...@py...
Modified: trunk/docutils/docutils/__init__.py
===================================================================
--- trunk/docutils/docutils/__init__.py 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/docutils/__init__.py 2021-04-09 13:46:40 UTC (rev 8681)
@@ -56,7 +56,7 @@
__docformat__ = 'reStructuredText'
-__version__ = '0.18b.dev'
+__version__ = '0.17.1b.dev'
"""Docutils version identifier (complies with PEP 440)::
major.minor[.micro][releaselevel[serial]][.dev]
@@ -111,8 +111,8 @@
__version_info__ = VersionInfo(
major=0,
- minor=18,
- micro=0,
+ minor=17,
+ micro=1,
releaselevel='beta', # one of 'alpha', 'beta', 'candidate', 'final'
# pre-release serial number (0 for final releases and active development):
serial=0,
Modified: trunk/docutils/setup.py
===================================================================
--- trunk/docutils/setup.py 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/setup.py 2021-04-09 13:46:40 UTC (rev 8681)
@@ -31,7 +31,7 @@
input Docutils supports reStructuredText, an easy-to-read,
what-you-see-is-what-you-get plaintext markup syntax.""", # wrap at col 60
'url': 'http://docutils.sourceforge.net/',
- 'version': '0.18b.dev',
+ 'version': '0.17.1b.dev',
'author': 'David Goodger',
'author_email': 'go...@py...',
'maintainer': 'docutils-develop list',
Modified: trunk/docutils/test/functional/expected/compact_lists.html
===================================================================
--- trunk/docutils/test/functional/expected/compact_lists.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/compact_lists.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>compact_lists.txt</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/dangerous.html
===================================================================
--- trunk/docutils/test/functional/expected/dangerous.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/dangerous.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>dangerous.txt</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/embed_images_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/embed_images_html5.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/embed_images_html5.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>Embedded Images</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/field_name_limit.html
===================================================================
--- trunk/docutils/test/functional/expected/field_name_limit.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/field_name_limit.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>field_list.txt</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/footnotes_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/footnotes_html5.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/footnotes_html5.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>Test footnote and citation rendering</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/math_output_html.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_html.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/math_output_html.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
<link rel="stylesheet" href="../input/data/math.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/math_output_latex.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_latex.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/math_output_latex.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/math_output_mathjax.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_mathjax.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/math_output_mathjax.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<script type="text/javascript" src="/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS_CHTML"></script>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/math_output_mathml.xhtml
===================================================================
--- trunk/docutils/test/functional/expected/math_output_mathml.xhtml 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/math_output_mathml.xhtml 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/misc_rst_html4css1.html
===================================================================
--- trunk/docutils/test/functional/expected/misc_rst_html4css1.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/misc_rst_html4css1.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>link_in_substitution.txt</title>
<link rel="stylesheet" href="foo&bar.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/pep_html.html
===================================================================
--- trunk/docutils/test/functional/expected/pep_html.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/pep_html.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -8,7 +8,7 @@
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+ <meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>PEP 100 -- Test PEP</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml 2021-04-09 13:46:40 UTC (rev 8681)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document PUBLIC "+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML" "http://docutils.sourceforge.net/docs/ref/docutils.dtd">
-<!-- Generated by Docutils 0.18b.dev -->
+<!-- Generated by Docutils 0.17.1b.dev -->
<document ids="restructuredtext-test-document doctitle" names="restructuredtext\ test\ document doctitle" source="functional/input/standalone_rst_docutils_xml.txt" title="reStructuredText Test Document">
<title>reStructuredText Test Document</title>
<subtitle ids="examples-of-syntax-constructs subtitle" names="examples\ of\ syntax\ constructs subtitle">Examples of Syntax Constructs</subtitle>
Modified: trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>reStructuredText Test Document</title>
<meta name="author" content="David Goodger" />
<meta name="authors" content="Me Myself I" />
Modified: trunk/docutils/test/functional/expected/standalone_rst_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>reStructuredText Test Document</title>
<meta name="author" content="David Goodger" />
<meta name="author" content="Me" />
Modified: trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<meta name="version" content="S5 1.1" />
<title>Slide Shows</title>
<meta name="author" content="David Goodger" />
Modified: trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<meta name="version" content="S5 1.1" />
<title>Slide Shows</title>
<meta name="author" content="David Goodger" />
Modified: trunk/docutils/test/functional/expected/video.html
===================================================================
--- trunk/docutils/test/functional/expected/video.html 2021-04-09 13:39:03 UTC (rev 8680)
+++ trunk/docutils/test/functional/expected/video.html 2021-04-09 13:46:40 UTC (rev 8681)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.18b.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1b.dev: http://docutils.sourceforge.net/" />
<title>Moving images (video)</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-04-09 15:44:33
|
Revision: 8683
http://sourceforge.net/p/docutils/code/8683
Author: milde
Date: 2021-04-09 15:44:23 +0000 (Fri, 09 Apr 2021)
Log Message:
-----------
recommonmark tests currently fail with newer versions.
Skip for now if recommonmark.__version__ != 0.4.0
to allow a fast bugfix release.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/parsers/recommonmark_wrapper.py
trunk/docutils/test/DocutilsTestSupport.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-04-09 15:43:59 UTC (rev 8682)
+++ trunk/docutils/HISTORY.txt 2021-04-09 15:44:23 UTC (rev 8683)
@@ -72,8 +72,9 @@
* docutils/parsers/recommonmark_wrapper.py
- - New, experimental wrapper to integrate the
+ - New, **experimental** wrapper to integrate the
`recommonmark`__ Markdown parser for use with Docutils.
+ Currently only tested with recommonmark version 0.4.0.
__ https://pypi.org/project/recommonmark/
Modified: trunk/docutils/docutils/parsers/recommonmark_wrapper.py
===================================================================
--- trunk/docutils/docutils/parsers/recommonmark_wrapper.py 2021-04-09 15:43:59 UTC (rev 8682)
+++ trunk/docutils/docutils/parsers/recommonmark_wrapper.py 2021-04-09 15:44:23 UTC (rev 8683)
@@ -23,7 +23,7 @@
try:
from recommonmark.parser import CommonMarkParser
- from recommonmark.transform import AutoStructify
+ # from recommonmark.transform import AutoStructify
except ImportError as err:
CommonMarkParser = None
class Parser(docutils.parsers.Parser):
@@ -42,8 +42,7 @@
# settings_spec = docutils.parsers.Parser.settings_spec + (
# see https://recommonmark.readthedocs.io/en/latest/#autostructify
- supported = ('recommonmark', 'commonmark',
- 'markdown', 'md')
+ supported = ('recommonmark', 'commonmark', 'markdown', 'md')
config_section = 'recommonmark parser'
config_section_dependencies = ('parsers',)
Modified: trunk/docutils/test/DocutilsTestSupport.py
===================================================================
--- trunk/docutils/test/DocutilsTestSupport.py 2021-04-09 15:43:59 UTC (rev 8682)
+++ trunk/docutils/test/DocutilsTestSupport.py 2021-04-09 15:44:23 UTC (rev 8683)
@@ -541,6 +541,10 @@
def generateTests(self, dict, dictname='totest'):
if 'recommonmark' not in recommonmark_wrapper.Parser.supported:
return
+ # TODO: currently the tests are too version-specific
+ from recommonmark import __version__ as recommonmark_version
+ if recommonmark_version != '0.4.0':
+ return
# suppress UserWarnings from recommonmark parser
warnings.filterwarnings('ignore', message='Unsupported.*type')
ParserTestSuite.generateTests(self, dict, dictname='totest')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mi...@us...> - 2021-04-13 14:49:39
|
Revision: 8691
http://sourceforge.net/p/docutils/code/8691
Author: milde
Date: 2021-04-13 14:49:37 +0000 (Tue, 13 Apr 2021)
Log Message:
-----------
Documentation update.
Modified Paths:
--------------
trunk/docutils/README.txt
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docs/user/config.txt
Modified: trunk/docutils/README.txt
===================================================================
--- trunk/docutils/README.txt 2021-04-12 21:16:44 UTC (rev 8690)
+++ trunk/docutils/README.txt 2021-04-13 14:49:37 UTC (rev 8691)
@@ -21,14 +21,15 @@
See Requirements_ below for details.
-2. Install the latest release from PyPi with pip_::
+2. Install the latest stable release from PyPi with pip_::
python -m pip install docutils
- To install a `development version`_, follow
- the instructions in section `Installation`_ below.
+ To install a pre-relase, append the option ``--pre``.
+ To install a `development version`_, follow the instructions in
+ section `Installation`_ below.
-3. Use the front-end scripts to convert reStructuredText documents.
+3. Use the `front-end scripts`_ to convert reStructuredText documents.
Try for example::
rst2html.py FAQ.txt FAQ.html (Unix)
@@ -73,26 +74,41 @@
============
To run the code, Python_ must be installed.
-Docutils is compatible with Python versions 2.7 and 3.5 to 3.7.
-Starting with Docutils 0.16, the code base supports both Python 2.7
-and 3.5+ natively. [#]_
-.. [#] Up to version 0.15, the Docutils codebase was translated "on-demand"
- using the 2to3 tool.
+* Docutils 0.16 and later supports Python 2.7 and 3.5+ natively. [#2to3]_
+* Docutils 0.14 dropped Python 2.4, 2.5, 3.1 and 3.2 support.
+* Docutils 0.10 dropped Python 2.3 support.
+* From version 0.6, Docutils is compatible with Python 3. [#2to3]_
+* For Docutils 0.5, Python 2.2.1+ is required.
+* Up to Docutils 0.4, Python 2.1 is required.
-Docutils uses the following packages for enhanced functionality,
-if they are installed:
+.. [#2to3] Up to version 0.15, the Docutils codebase was translated
+ "on-demand" using the 2to3 tool.
+Recommendations
+---------------
+
+Docutils uses the following packages for enhanced functionality, if they
+are installed:
+
+* Installation_ is usually done with pip_ or setuptools_.
+
* The `Python Imaging Library`_, or PIL, is used for some image
manipulation operations.
-* The `Pygments`_ syntax highlighter is used for content of `code`
- directives and roles.
+* The `Pygments`_ package provides syntax highlight of "code" directives
+ and roles.
+* The `recommonmark`_ parser is used to parse input in Markdown format.
+
+The `Docutils Link List <docs/user/links.html>`__ records projects that
+users of Docutils and reStructuredText may find useful.
+
.. _Python: http://www.python.org/.
.. _Python Imaging Library: http://www.pythonware.com/products/pil/
.. _Pygments: https://pypi.org/project/Pygments/
.. _setuptools: https://pypi.org/project/setuptools/
+.. _recommonmark: https://github.com/rtfd/recommonmark
Development version
@@ -136,9 +152,9 @@
.. [#setup-requires-setuptools] ``setup.py`` requires the `setuptools`_
package. For a manual install see the options in `Setting up for Docutils
development`__.
-
+
__ docs/dev/policies.html#setting-up-for-docutils-development
-
+
Optional steps:
* `running the test suite`_
@@ -209,9 +225,9 @@
Installation under Unix places copies in the PATH.
You may want to begin with the "rst2html.py" front-end tool. Most
tools take up to two arguments, the source path and destination path,
-with STDIN and STDOUT being the defaults. Use the "--help" option to
+with STDIN and STDOUT being the defaults. Use the ``--help`` option to
the front-end tools for details on options and arguments. See
-Docutils Front-End Tools (``docs/user/tools.txt``) for full documentation.
+`Docutils Front-End Tools`_ for full documentation.
The package modules are continually growing and evolving. The
``docutils.statemachine`` module is usable independently. It contains
@@ -219,6 +235,8 @@
Contributions are welcome!
+.. _front-end scripts:
+.. _Docutils Front-End Tools: docs/user/tools.html
Project Files & Directories
===========================
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2021-04-12 21:16:44 UTC (rev 8690)
+++ trunk/docutils/RELEASE-NOTES.txt 2021-04-13 14:49:37 UTC (rev 8691)
@@ -8,7 +8,7 @@
:Maintainer: doc...@li...
:Date: $Date$
:Revision: $Revision$
-:Web site: http://docutils.sourceforge.net/
+:Web site: https://docutils.sourceforge.io/
:Copyright: This document has been placed in the public domain.
Modified: trunk/docutils/docs/user/config.txt
===================================================================
--- trunk/docutils/docs/user/config.txt 2021-04-12 21:16:44 UTC (rev 8690)
+++ trunk/docutils/docs/user/config.txt 2021-04-13 14:49:37 UTC (rev 8691)
@@ -811,7 +811,7 @@
[markdown parser]
-----------------
-based on recommonmark_
+Experimental, based on recommonmark_.
.. _recommonmark: https://pypi.org/project/recommonmark/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gr...@us...> - 2021-04-17 12:41:29
|
Revision: 8705
http://sourceforge.net/p/docutils/code/8705
Author: grubert
Date: 2021-04-17 12:41:26 +0000 (Sat, 17 Apr 2021)
Log Message:
-----------
release 0.17.1
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/README.txt
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docutils/__init__.py
trunk/docutils/setup.py
trunk/docutils/test/functional/expected/compact_lists.html
trunk/docutils/test/functional/expected/dangerous.html
trunk/docutils/test/functional/expected/embed_images_html5.html
trunk/docutils/test/functional/expected/field_name_limit.html
trunk/docutils/test/functional/expected/footnotes_html5.html
trunk/docutils/test/functional/expected/math_output_html.html
trunk/docutils/test/functional/expected/math_output_latex.html
trunk/docutils/test/functional/expected/math_output_mathjax.html
trunk/docutils/test/functional/expected/math_output_mathml.xhtml
trunk/docutils/test/functional/expected/misc_rst_html4css1.html
trunk/docutils/test/functional/expected/pep_html.html
trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
trunk/docutils/test/functional/expected/standalone_rst_html5.html
trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html
trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html
trunk/docutils/test/functional/expected/video.html
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/HISTORY.txt 2021-04-17 12:41:26 UTC (rev 8705)
@@ -13,9 +13,10 @@
.. contents::
-Changes Since 0.17
-==================
+Release 0.17.1 (2021-04-16)
+===========================
+
* docutils/utils/math/latex2mathml.py
- Fix bug #406 (MathML translation of ``\mathbf``).
Modified: trunk/docutils/README.txt
===================================================================
--- trunk/docutils/README.txt 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/README.txt 2021-04-17 12:41:26 UTC (rev 8705)
@@ -1,5 +1,5 @@
===============================
- README: Docutils 0.17.1b2.dev
+ README: Docutils 0.17.1
===============================
:Author: David Goodger
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/RELEASE-NOTES.txt 2021-04-17 12:41:26 UTC (rev 8705)
@@ -95,9 +95,12 @@
.. _identifier normalization:
docs/ref/rst/directives.html#identifier-normalization
-Release 0.17.1b.dev
-==========================
+Release 0.17.1 (2021-04-16)
+===========================
+
+(Release 0.17.1b.dev)
+
* Bug fixes (for details see the Docutils `HISTORY`_).
Release 0.17 (2021-04-03)
Modified: trunk/docutils/docutils/__init__.py
===================================================================
--- trunk/docutils/docutils/__init__.py 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/docutils/__init__.py 2021-04-17 12:41:26 UTC (rev 8705)
@@ -56,7 +56,7 @@
__docformat__ = 'reStructuredText'
-__version__ = '0.17.1b2.dev'
+__version__ = '0.17.1'
"""Docutils version identifier (complies with PEP 440)::
major.minor[.micro][releaselevel[serial]][.dev]
@@ -113,10 +113,10 @@
major=0,
minor=17,
micro=1,
- releaselevel='beta', # one of 'alpha', 'beta', 'candidate', 'final'
+ releaselevel='final', # one of 'alpha', 'beta', 'candidate', 'final'
# pre-release serial number (0 for final releases and active development):
- serial=2,
- release=False # True for official releases and pre-releases
+ serial=0,
+ release=True # True for official releases and pre-releases
)
"""Comprehensive version information tuple. See 'Version Numbering' in
docs/dev/policies.txt."""
Modified: trunk/docutils/setup.py
===================================================================
--- trunk/docutils/setup.py 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/setup.py 2021-04-17 12:41:26 UTC (rev 8705)
@@ -31,7 +31,7 @@
input Docutils supports reStructuredText, an easy-to-read,
what-you-see-is-what-you-get plaintext markup syntax.""", # wrap at col 60
'url': 'http://docutils.sourceforge.net/',
- 'version': '0.17.1b2.dev',
+ 'version': '0.17.1',
'author': 'David Goodger',
'author_email': 'go...@py...',
'maintainer': 'docutils-develop list',
Modified: trunk/docutils/test/functional/expected/compact_lists.html
===================================================================
--- trunk/docutils/test/functional/expected/compact_lists.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/compact_lists.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>compact_lists.txt</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/dangerous.html
===================================================================
--- trunk/docutils/test/functional/expected/dangerous.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/dangerous.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>dangerous.txt</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/embed_images_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/embed_images_html5.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/embed_images_html5.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>Embedded Images</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/field_name_limit.html
===================================================================
--- trunk/docutils/test/functional/expected/field_name_limit.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/field_name_limit.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>field_list.txt</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/footnotes_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/footnotes_html5.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/footnotes_html5.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>Test footnote and citation rendering</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/math_output_html.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_html.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/math_output_html.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
<link rel="stylesheet" href="../input/data/math.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/math_output_latex.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_latex.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/math_output_latex.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/math_output_mathjax.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_mathjax.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/math_output_mathjax.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<script type="text/javascript" src="/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS_CHTML"></script>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/math_output_mathml.xhtml
===================================================================
--- trunk/docutils/test/functional/expected/math_output_mathml.xhtml 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/math_output_mathml.xhtml 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/misc_rst_html4css1.html
===================================================================
--- trunk/docutils/test/functional/expected/misc_rst_html4css1.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/misc_rst_html4css1.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>link_in_substitution.txt</title>
<link rel="stylesheet" href="foo&bar.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/pep_html.html
===================================================================
--- trunk/docutils/test/functional/expected/pep_html.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/pep_html.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -8,7 +8,7 @@
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+ <meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>PEP 100 -- Test PEP</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml 2021-04-17 12:41:26 UTC (rev 8705)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document PUBLIC "+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML" "http://docutils.sourceforge.net/docs/ref/docutils.dtd">
-<!-- Generated by Docutils 0.17.1b2.dev -->
+<!-- Generated by Docutils 0.17.1 -->
<document ids="restructuredtext-test-document doctitle" names="restructuredtext\ test\ document doctitle" source="functional/input/standalone_rst_docutils_xml.txt" title="reStructuredText Test Document">
<title>reStructuredText Test Document</title>
<subtitle ids="examples-of-syntax-constructs subtitle" names="examples\ of\ syntax\ constructs subtitle">Examples of Syntax Constructs</subtitle>
Modified: trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>reStructuredText Test Document</title>
<meta name="author" content="David Goodger" />
<meta name="authors" content="Me Myself I" />
Modified: trunk/docutils/test/functional/expected/standalone_rst_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>reStructuredText Test Document</title>
<meta name="author" content="David Goodger" />
<meta name="author" content="Me" />
Modified: trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta name="version" content="S5 1.1" />
<title>Slide Shows</title>
<meta name="author" content="David Goodger" />
Modified: trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<meta name="version" content="S5 1.1" />
<title>Slide Shows</title>
<meta name="author" content="David Goodger" />
Modified: trunk/docutils/test/functional/expected/video.html
===================================================================
--- trunk/docutils/test/functional/expected/video.html 2021-04-17 12:35:23 UTC (rev 8704)
+++ trunk/docutils/test/functional/expected/video.html 2021-04-17 12:41:26 UTC (rev 8705)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17.1b2.dev: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
<title>Moving images (video)</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <gr...@us...> - 2021-04-17 14:57:45
|
Revision: 8711
http://sourceforge.net/p/docutils/code/8711
Author: grubert
Date: 2021-04-17 14:57:38 +0000 (Sat, 17 Apr 2021)
Log Message:
-----------
version 0.17.2b.dev
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/README.txt
trunk/docutils/docutils/__init__.py
trunk/docutils/setup.py
trunk/docutils/test/functional/expected/compact_lists.html
trunk/docutils/test/functional/expected/dangerous.html
trunk/docutils/test/functional/expected/embed_images_html5.html
trunk/docutils/test/functional/expected/field_name_limit.html
trunk/docutils/test/functional/expected/footnotes_html5.html
trunk/docutils/test/functional/expected/math_output_html.html
trunk/docutils/test/functional/expected/math_output_latex.html
trunk/docutils/test/functional/expected/math_output_mathjax.html
trunk/docutils/test/functional/expected/math_output_mathml.xhtml
trunk/docutils/test/functional/expected/misc_rst_html4css1.html
trunk/docutils/test/functional/expected/pep_html.html
trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
trunk/docutils/test/functional/expected/standalone_rst_html5.html
trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html
trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html
trunk/docutils/test/functional/expected/video.html
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/HISTORY.txt 2021-04-17 14:57:38 UTC (rev 8711)
@@ -13,10 +13,12 @@
.. contents::
+Changes Since 0.17.1
+====================
+
Release 0.17.1 (2021-04-16)
===========================
-
* docutils/utils/math/latex2mathml.py
- Fix bug #406 (MathML translation of ``\mathbf``).
Modified: trunk/docutils/README.txt
===================================================================
--- trunk/docutils/README.txt 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/README.txt 2021-04-17 14:57:38 UTC (rev 8711)
@@ -1,5 +1,5 @@
===============================
- README: Docutils 0.17.1
+ README: Docutils 0.17.2b.dev
===============================
:Author: David Goodger
Modified: trunk/docutils/docutils/__init__.py
===================================================================
--- trunk/docutils/docutils/__init__.py 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/docutils/__init__.py 2021-04-17 14:57:38 UTC (rev 8711)
@@ -56,7 +56,7 @@
__docformat__ = 'reStructuredText'
-__version__ = '0.17.1'
+__version__ = '0.17.2b.dev'
"""Docutils version identifier (complies with PEP 440)::
major.minor[.micro][releaselevel[serial]][.dev]
@@ -112,11 +112,11 @@
__version_info__ = VersionInfo(
major=0,
minor=17,
- micro=1,
- releaselevel='final', # one of 'alpha', 'beta', 'candidate', 'final'
+ micro=2,
+ releaselevel='beta', # one of 'alpha', 'beta', 'candidate', 'final'
# pre-release serial number (0 for final releases and active development):
serial=0,
- release=True # True for official releases and pre-releases
+ release=False # True for official releases and pre-releases
)
"""Comprehensive version information tuple. See 'Version Numbering' in
docs/dev/policies.txt."""
Modified: trunk/docutils/setup.py
===================================================================
--- trunk/docutils/setup.py 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/setup.py 2021-04-17 14:57:38 UTC (rev 8711)
@@ -31,7 +31,7 @@
input Docutils supports reStructuredText, an easy-to-read,
what-you-see-is-what-you-get plaintext markup syntax.""", # wrap at col 60
'url': 'http://docutils.sourceforge.net/',
- 'version': '0.17.1',
+ 'version': '0.17.2b.dev',
'author': 'David Goodger',
'author_email': 'go...@py...',
'maintainer': 'docutils-develop list',
Modified: trunk/docutils/test/functional/expected/compact_lists.html
===================================================================
--- trunk/docutils/test/functional/expected/compact_lists.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/compact_lists.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>compact_lists.txt</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/dangerous.html
===================================================================
--- trunk/docutils/test/functional/expected/dangerous.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/dangerous.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>dangerous.txt</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/embed_images_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/embed_images_html5.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/embed_images_html5.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>Embedded Images</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/field_name_limit.html
===================================================================
--- trunk/docutils/test/functional/expected/field_name_limit.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/field_name_limit.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>field_list.txt</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/footnotes_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/footnotes_html5.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/footnotes_html5.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>Test footnote and citation rendering</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/math_output_html.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_html.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/math_output_html.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
<link rel="stylesheet" href="../input/data/math.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/math_output_latex.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_latex.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/math_output_latex.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/math_output_mathjax.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_mathjax.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/math_output_mathjax.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<script type="text/javascript" src="/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS_CHTML"></script>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/math_output_mathml.xhtml
===================================================================
--- trunk/docutils/test/functional/expected/math_output_mathml.xhtml 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/math_output_mathml.xhtml 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>Mathematics</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
Modified: trunk/docutils/test/functional/expected/misc_rst_html4css1.html
===================================================================
--- trunk/docutils/test/functional/expected/misc_rst_html4css1.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/misc_rst_html4css1.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>link_in_substitution.txt</title>
<link rel="stylesheet" href="foo&bar.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/pep_html.html
===================================================================
--- trunk/docutils/test/functional/expected/pep_html.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/pep_html.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -8,7 +8,7 @@
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+ <meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>PEP 100 -- Test PEP</title>
<link rel="stylesheet" href="../input/data/html4css1.css" type="text/css" />
</head>
Modified: trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml 2021-04-17 14:57:38 UTC (rev 8711)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document PUBLIC "+//IDN docutils.sourceforge.net//DTD Docutils Generic//EN//XML" "http://docutils.sourceforge.net/docs/ref/docutils.dtd">
-<!-- Generated by Docutils 0.17.1 -->
+<!-- Generated by Docutils 0.17.2b.dev -->
<document ids="restructuredtext-test-document doctitle" names="restructuredtext\ test\ document doctitle" source="functional/input/standalone_rst_docutils_xml.txt" title="reStructuredText Test Document">
<title>reStructuredText Test Document</title>
<subtitle ids="examples-of-syntax-constructs subtitle" names="examples\ of\ syntax\ constructs subtitle">Examples of Syntax Constructs</subtitle>
Modified: trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>reStructuredText Test Document</title>
<meta name="author" content="David Goodger" />
<meta name="authors" content="Me Myself I" />
Modified: trunk/docutils/test/functional/expected/standalone_rst_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>reStructuredText Test Document</title>
<meta name="author" content="David Goodger" />
<meta name="author" content="Me" />
Modified: trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/standalone_rst_s5_html_1.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<meta name="version" content="S5 1.1" />
<title>Slide Shows</title>
<meta name="author" content="David Goodger" />
Modified: trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/standalone_rst_s5_html_2.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<meta name="version" content="S5 1.1" />
<title>Slide Shows</title>
<meta name="author" content="David Goodger" />
Modified: trunk/docutils/test/functional/expected/video.html
===================================================================
--- trunk/docutils/test/functional/expected/video.html 2021-04-17 14:57:11 UTC (rev 8710)
+++ trunk/docutils/test/functional/expected/video.html 2021-04-17 14:57:38 UTC (rev 8711)
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
-<meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
+<meta name="generator" content="Docutils 0.17.2b.dev: http://docutils.sourceforge.net/" />
<title>Moving images (video)</title>
<link rel="stylesheet" href="../input/data/minimal.css" type="text/css" />
<link rel="stylesheet" href="../input/data/plain.css" type="text/css" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|