You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(15) |
Oct
(21) |
Nov
(18) |
Dec
(59) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(43) |
Feb
(35) |
Mar
(78) |
Apr
(65) |
May
(163) |
Jun
(169) |
Jul
(137) |
Aug
(77) |
Sep
(47) |
Oct
(27) |
Nov
(43) |
Dec
(68) |
2004 |
Jan
(61) |
Feb
(39) |
Mar
(11) |
Apr
(42) |
May
(86) |
Jun
(82) |
Jul
(24) |
Aug
(26) |
Sep
(37) |
Oct
(62) |
Nov
(131) |
Dec
(43) |
2005 |
Jan
(31) |
Feb
(56) |
Mar
(65) |
Apr
(165) |
May
(106) |
Jun
(97) |
Jul
(65) |
Aug
(150) |
Sep
(78) |
Oct
(115) |
Nov
(41) |
Dec
(26) |
2006 |
Jan
(50) |
Feb
(39) |
Mar
(56) |
Apr
(67) |
May
(89) |
Jun
(68) |
Jul
(116) |
Aug
(65) |
Sep
(58) |
Oct
(103) |
Nov
(28) |
Dec
(52) |
2007 |
Jan
(92) |
Feb
(60) |
Mar
(124) |
Apr
(96) |
May
(69) |
Jun
(79) |
Jul
(25) |
Aug
(22) |
Sep
(7) |
Oct
(17) |
Nov
(27) |
Dec
(32) |
2008 |
Jan
(57) |
Feb
(87) |
Mar
(51) |
Apr
(43) |
May
(56) |
Jun
(62) |
Jul
(25) |
Aug
(82) |
Sep
(58) |
Oct
(42) |
Nov
(38) |
Dec
(86) |
2009 |
Jan
(50) |
Feb
(33) |
Mar
(84) |
Apr
(90) |
May
(109) |
Jun
(37) |
Jul
(22) |
Aug
(51) |
Sep
(93) |
Oct
(86) |
Nov
(31) |
Dec
(62) |
2010 |
Jan
(33) |
Feb
(57) |
Mar
(62) |
Apr
(43) |
May
(30) |
Jun
(49) |
Jul
(20) |
Aug
(40) |
Sep
(152) |
Oct
(38) |
Nov
(15) |
Dec
(32) |
2011 |
Jan
(29) |
Feb
(25) |
Mar
(65) |
Apr
(45) |
May
(27) |
Jun
(11) |
Jul
(14) |
Aug
(8) |
Sep
(13) |
Oct
(117) |
Nov
(60) |
Dec
(19) |
2012 |
Jan
(23) |
Feb
(32) |
Mar
(24) |
Apr
(41) |
May
(56) |
Jun
(24) |
Jul
(15) |
Aug
(11) |
Sep
(26) |
Oct
(21) |
Nov
(12) |
Dec
(31) |
2013 |
Jan
(32) |
Feb
(24) |
Mar
(39) |
Apr
(44) |
May
(44) |
Jun
(8) |
Jul
(9) |
Aug
(12) |
Sep
(34) |
Oct
(19) |
Nov
(5) |
Dec
(9) |
2014 |
Jan
(22) |
Feb
(12) |
Mar
(7) |
Apr
(2) |
May
(13) |
Jun
(17) |
Jul
(8) |
Aug
(10) |
Sep
(7) |
Oct
(4) |
Nov
|
Dec
(39) |
2015 |
Jan
(13) |
Feb
(12) |
Mar
(12) |
Apr
(40) |
May
(5) |
Jun
(22) |
Jul
(3) |
Aug
(42) |
Sep
(5) |
Oct
(10) |
Nov
|
Dec
(10) |
2016 |
Jan
(9) |
Feb
(43) |
Mar
(5) |
Apr
(14) |
May
(17) |
Jun
(5) |
Jul
(5) |
Aug
(22) |
Sep
(5) |
Oct
|
Nov
(4) |
Dec
(18) |
2017 |
Jan
(28) |
Feb
(29) |
Mar
(9) |
Apr
(23) |
May
(48) |
Jun
(5) |
Jul
(32) |
Aug
(9) |
Sep
(13) |
Oct
(13) |
Nov
(6) |
Dec
(4) |
2018 |
Jan
(6) |
Feb
(5) |
Mar
(1) |
Apr
(2) |
May
(5) |
Jun
(17) |
Jul
(12) |
Aug
(15) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
2019 |
Jan
|
Feb
(6) |
Mar
(3) |
Apr
(5) |
May
(10) |
Jun
(6) |
Jul
(6) |
Aug
|
Sep
(11) |
Oct
(18) |
Nov
(10) |
Dec
(7) |
2020 |
Jan
(3) |
Feb
(14) |
Mar
(2) |
Apr
(1) |
May
(5) |
Jun
|
Jul
(1) |
Aug
(11) |
Sep
(8) |
Oct
|
Nov
(1) |
Dec
(14) |
2021 |
Jan
(7) |
Feb
(2) |
Mar
(1) |
Apr
(8) |
May
(23) |
Jun
(7) |
Jul
(10) |
Aug
(1) |
Sep
|
Oct
(7) |
Nov
(10) |
Dec
(2) |
2022 |
Jan
|
Feb
(21) |
Mar
|
Apr
(3) |
May
(7) |
Jun
(4) |
Jul
(1) |
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
2023 |
Jan
(18) |
Feb
|
Mar
(1) |
Apr
|
May
(9) |
Jun
|
Jul
|
Aug
(5) |
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
(2) |
Mar
(3) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
2025 |
Jan
(4) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(3) |
Jun
(6) |
Jul
(22) |
Aug
(5) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Guenter M. <mi...@us...> - 2025-08-10 11:30:50
|
Dear Schimon, On 2025-08-08, Schimon Jehudah via Docutils-users wrote: > Of course, there is already a discussion at SF.net. > https://sourceforge.net/p/docutils/patches/200/ Mind, that this patch is about adding the "gemini:" scheme to the schemes that are recognized in "standalone hyperlinks", i.e. not the addition of another export format but a change to the reStructuredText specification (a releated, but distinct topic). Günter |
From: Guenter M. <mi...@us...> - 2025-08-10 11:25:34
|
Dear Schimon, On 2025-08-08, Schimon Jehudah via Docutils-users wrote: > Are there intentions to merge rst2gemtext into docutils? ... > https://github.com/flozz/rst2gemtext/issues/9 Currently not. I agree, that "gemtext" export is a useful addition to Docutils, especially as both formats are "text centered" and try to stay distraction free. However, I am less sure merging is the best way forward at the current stage. Instead, I propose to develop the project as an "independent sister-project", using Docutils' plug-in architecture. This means generating a "gemtext" writer that can be used as docutils --writer=gemtext mydoc.rst > mydoc.gemtext as well as in the `Publisher Interface`__ provided by `docutils.core` (https://docutils.sourceforge.io/docs/api/publisher.html). In Docutils, we can provide cross-links in the Documentation similar to what we already do for "markdown" parsers. Not only in the "Docutils Link List", but also in, e.g., https://docutils.sourceforge.io/docs/user/config.html#docutils-application Regards, Günter |
From: Schimon J. <sc...@fe...> - 2025-08-08 06:21:34
|
Of course, there is already a discussion at SF.net. https://sourceforge.net/p/docutils/patches/200/ Schimon On Fri, 8 Aug 2025 09:17:43 +0300 Schimon Jehudah via Docutils-users <doc...@li...> wrote: > Good day. > > Are there intentions to merge rst2gemtext into docutils? > > I think that it would be of at most useful to many people. > > https://github.com/flozz/rst2gemtext/issues/9 > > Kind regards, > Schimon > > > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. |
From: Schimon J. <sc...@fe...> - 2025-08-08 06:18:03
|
Good day. Are there intentions to merge rst2gemtext into docutils? I think that it would be of at most useful to many people. https://github.com/flozz/rst2gemtext/issues/9 Kind regards, Schimon |
From: Schimon J. <sc...@fe...> - 2025-08-03 15:33:36
|
Good evening. I suppose, that 2026 should be replaced by 2025. https://docutils.sourceforge.io/HISTORY.html#toc-entry-2 Regards, Schimon |
From: Jeff M. <jmc...@ga...> - 2025-07-29 17:57:00
|
minor change: the 0.22 release notes is tagged with the incorrect date: 2026-07-29. ( https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-22-2026-07-29 ) -jeff On 2025-07-29 1:22 p.m., engelbert gruber wrote: > Hei everyone, > > after one month of rc5 > > the final 0.22 is in the open > sorry for the long wait > > the Release consists of ... maybe see online https:// > docutils.sourceforge.io/0.22/RELEASE-NOTES.html <https:// > docutils.sourceforge.io/0.22/RELEASE-NOTES.html> > > all the best and onto next > e > > Release 0.22rc5 (2025-06-24) > ============================ > > Targets generated from hyperlink references with embedded URI or alias > are no longer "explicit" but "implicit" (i.e. with the same priority as > auto-generated section targets, see `implicit hyperlink targets`__). > > __ https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html > <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html> > #implicit-hyperlink-targets > > Don't report an error for duplicate targets with identical refname. > > Release 0.22rc4 (2025-06-17) > ============================ > > Drop the "name" option of the "target-notes" directive. > (Report an error instead of silently ignoring the value.) > > New alias "rst-class" for the `"class"`_ directive to improve the > compatibility with Sphinx. > > > Release 0.22rc3 (2025-06-10) > ============================ > > New objects > `transforms.references.CitationReferences` > Mark citation_references as resolved if the backend > uses a BibTeX database. > > Output changes > > manpage: > Do not drop text of internal targets. > > > Release 0.22rc2 (2025-05-22) > ============================ > > Fix backwards-compatibility problem: > reStructuredText section parsing no longer requires > `parsers.rst.states.RSTStateMachine.memo.section_parents` > (a cache introduced in Docutils 0.22rc1). > > Deprecate `parsers.rst.states.Struct` (obsoleted by > `types.SimpleNamespace`). > > > Release 0.22rc1 (2025-05-06) > ============================ > > reStructuredText: > - Support `CSS3 units`_. This adds "ch", "rem", "vw", "vh", "vmin", > "vmax", and "Q" to the `supported length units`__. Note that some > output formats don't support all units. > - New option "figname" for the `"figure"`_ directive. > > .. _CSS3 units: https://www.w3.org/TR/css-values-3/#lengths <https:// > www.w3.org/TR/css-values-3/#lengths> > __ docs/ref/rst/restructuredtext.html#length-units > > Document Tree / Docutils DTD > - Allow multiple <term> elements in a `\<definition_list_item>`__ > (third-party writers may need adaption). > - The first element in a <figure> may also be a <reference> > (with nested "clickable" <image>). > > __ docs/ref/doctree.html#definition-list-item > > Configuration changes > - Make MathML the default math_output_ for the "html5" writer. > - Change the default input_encoding_ from ``None`` (auto-detect) to > "utf-8". > - Drop short options ``-i`` and ``-o``. > Use the long equivalents ``--input-encoding`` and ``--output- > encoding``. > (See `command line interface`_ for the rationale.) > - Rename configuration setting "output" to "output_path_". > - New setting "validate_". > - The manpage writer now recognizes the sections [writers] and > [manpage writer] with the new setting `text_references`_. > > Output changes > LaTeX: > Don't wrap references with custom reference_label_ in a ``\hyperref`` > command. The "hyperref" package generates hyperlinks for labels by > default, so there is no change in the PDF > (except for the starred forms like ``reference_label = \ref*``). > > Stop requiring "ifthen.sty". Add "ifthen" to the stylesheet__ setting > or replace use of ``\ifthenelse{\isundefined...`` with the eTeX > primitive ``\ifdefined``. > > __ docs/user/config.html#stylesheet-2 > > HTML5: > Unitless image_ size measures__ are written as <img> "width" and > "hight" values instead of "style" rules. The current behaviour > is kept for values with units, so users may specify, e.g. ``:width: > 50px`` instead of ``:width: 50`` to override CSS stylesheet rules. > > __ docs/ref/doctree.html#measure > > manpage: > Don't UPPERCASE section headings. > > Handle hyperlink references (see the text_references_ setting). > > null: > The "null" writer output changed from None to the empty string. > > `publish_string()` now returns a `bytes` or `str` instance > for all writers (as documented). > > New objects > `parsers.docutils_xml` > parser for `Docutils XML`_ (e.g., the output of the "xml" writer). > Provisional. > > Try ``docutils --parser=xml test/data/multiple-term-definitions.xml`` > or use the :parser: option of the `"include"`_ directive to include > an XML file in a rST document. > > `nodes.Element.validate()` > Raise `nodes.ValidationError` if the element does not comply with > the `Docutils Document Model`_. > Provisional. > > `writers.DoctreeTranslator` > Generic Docutils document tree translator base class with > `uri2path()` auxiliary method. > Provisional. > > Removed objects > `core.Publisher.setup_option_parser()` > internal, obsolete, > `frontend.ConfigParser.get_section()` > obsoleted by the configparser's "Mapping Protocol Access", > `frontend.OptionParser.set_defaults_from_dict()` > obsolete, > `nodes.Element.set_class()` > obsolete, append to Element['classes'] directly, > `parsers.rst.directives.tables.CSVTable.decode_from_csv()` > not required with Python 3, > `parsers.rst.directives.tables.CSVTable.encode_from_csv()` > not required with Python 3, > `transforms.writer_aux.Compound` > not used since Dec 2010, > `utils.error_reporting` > obsolete in Python 3, > `utils.Reporter.set_conditions()` > obsolete, set attributes via configuration settings or directly. > > Removed localisations > Mistranslations of the "admonition" directive name: > Use "advies" (af), "varsel" (da), "warnhinweis" (de), "aviso" (es), > "sciigo" (eo), "annonce" (fr), "avviso" (it), "advies" (nl), > "zauważenie" (pl) (introduced in Docutils 0.21) > or the English name "admonition". > > New files > ``docutils/parsers/rst/include/html-roles.txt`` > `Standard definition file`_ for additional roles matching HTML tags. > > Removed files > ``tools/rst2odt_prepstyles.py`` > Obsoleted by `writers.odf_odt.prepstyles`. > ``docutils/utils/roman.py`` > Obsoleted by ``docutils/utils/_roman_numerals.py`` > > Bugfixes and improvements (see https://docutils.sourceforge.io/0.22/ > HISTORY.html <https://docutils.sourceforge.io/0.22/HISTORY.html>). > > > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. -- Jeff McKenna GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev co-founder of FOSS4G http://gatewaygeo.com/ |
From: engelbert g. <eng...@gm...> - 2025-07-29 16:23:08
|
Hei everyone, after one month of rc5 the final 0.22 is in the open sorry for the long wait the Release consists of ... maybe see online https://docutils.sourceforge.io/0.22/RELEASE-NOTES.html all the best and onto next e Release 0.22rc5 (2025-06-24) ============================ Targets generated from hyperlink references with embedded URI or alias are no longer "explicit" but "implicit" (i.e. with the same priority as auto-generated section targets, see `implicit hyperlink targets`__). __ https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html #implicit-hyperlink-targets Don't report an error for duplicate targets with identical refname. Release 0.22rc4 (2025-06-17) ============================ Drop the "name" option of the "target-notes" directive. (Report an error instead of silently ignoring the value.) New alias "rst-class" for the `"class"`_ directive to improve the compatibility with Sphinx. Release 0.22rc3 (2025-06-10) ============================ New objects `transforms.references.CitationReferences` Mark citation_references as resolved if the backend uses a BibTeX database. Output changes manpage: Do not drop text of internal targets. Release 0.22rc2 (2025-05-22) ============================ Fix backwards-compatibility problem: reStructuredText section parsing no longer requires `parsers.rst.states.RSTStateMachine.memo.section_parents` (a cache introduced in Docutils 0.22rc1). Deprecate `parsers.rst.states.Struct` (obsoleted by `types.SimpleNamespace`). Release 0.22rc1 (2025-05-06) ============================ reStructuredText: - Support `CSS3 units`_. This adds "ch", "rem", "vw", "vh", "vmin", "vmax", and "Q" to the `supported length units`__. Note that some output formats don't support all units. - New option "figname" for the `"figure"`_ directive. .. _CSS3 units: https://www.w3.org/TR/css-values-3/#lengths __ docs/ref/rst/restructuredtext.html#length-units Document Tree / Docutils DTD - Allow multiple <term> elements in a `\<definition_list_item>`__ (third-party writers may need adaption). - The first element in a <figure> may also be a <reference> (with nested "clickable" <image>). __ docs/ref/doctree.html#definition-list-item Configuration changes - Make MathML the default math_output_ for the "html5" writer. - Change the default input_encoding_ from ``None`` (auto-detect) to "utf-8". - Drop short options ``-i`` and ``-o``. Use the long equivalents ``--input-encoding`` and ``--output-encoding``. (See `command line interface`_ for the rationale.) - Rename configuration setting "output" to "output_path_". - New setting "validate_". - The manpage writer now recognizes the sections [writers] and [manpage writer] with the new setting `text_references`_. Output changes LaTeX: Don't wrap references with custom reference_label_ in a ``\hyperref`` command. The "hyperref" package generates hyperlinks for labels by default, so there is no change in the PDF (except for the starred forms like ``reference_label = \ref*``). Stop requiring "ifthen.sty". Add "ifthen" to the stylesheet__ setting or replace use of ``\ifthenelse{\isundefined...`` with the eTeX primitive ``\ifdefined``. __ docs/user/config.html#stylesheet-2 HTML5: Unitless image_ size measures__ are written as <img> "width" and "hight" values instead of "style" rules. The current behaviour is kept for values with units, so users may specify, e.g. ``:width: 50px`` instead of ``:width: 50`` to override CSS stylesheet rules. __ docs/ref/doctree.html#measure manpage: Don't UPPERCASE section headings. Handle hyperlink references (see the text_references_ setting). null: The "null" writer output changed from None to the empty string. `publish_string()` now returns a `bytes` or `str` instance for all writers (as documented). New objects `parsers.docutils_xml` parser for `Docutils XML`_ (e.g., the output of the "xml" writer). Provisional. Try ``docutils --parser=xml test/data/multiple-term-definitions.xml`` or use the :parser: option of the `"include"`_ directive to include an XML file in a rST document. `nodes.Element.validate()` Raise `nodes.ValidationError` if the element does not comply with the `Docutils Document Model`_. Provisional. `writers.DoctreeTranslator` Generic Docutils document tree translator base class with `uri2path()` auxiliary method. Provisional. Removed objects `core.Publisher.setup_option_parser()` internal, obsolete, `frontend.ConfigParser.get_section()` obsoleted by the configparser's "Mapping Protocol Access", `frontend.OptionParser.set_defaults_from_dict()` obsolete, `nodes.Element.set_class()` obsolete, append to Element['classes'] directly, `parsers.rst.directives.tables.CSVTable.decode_from_csv()` not required with Python 3, `parsers.rst.directives.tables.CSVTable.encode_from_csv()` not required with Python 3, `transforms.writer_aux.Compound` not used since Dec 2010, `utils.error_reporting` obsolete in Python 3, `utils.Reporter.set_conditions()` obsolete, set attributes via configuration settings or directly. Removed localisations Mistranslations of the "admonition" directive name: Use "advies" (af), "varsel" (da), "warnhinweis" (de), "aviso" (es), "sciigo" (eo), "annonce" (fr), "avviso" (it), "advies" (nl), "zauważenie" (pl) (introduced in Docutils 0.21) or the English name "admonition". New files ``docutils/parsers/rst/include/html-roles.txt`` `Standard definition file`_ for additional roles matching HTML tags. Removed files ``tools/rst2odt_prepstyles.py`` Obsoleted by `writers.odf_odt.prepstyles`. ``docutils/utils/roman.py`` Obsoleted by ``docutils/utils/_roman_numerals.py`` Bugfixes and improvements (see https://docutils.sourceforge.io/0.22/HISTORY.html). |
From: Schimon J. <sc...@fe...> - 2025-07-28 12:45:00
|
Günter. Good afternoon. On Mon, 28 Jul 2025 09:45:57 -0000 (UTC) Guenter Milde via Docutils-users <doc...@li...> wrote: > On 2025-07-28, Schimon Jehudah wrote: > > On Sun, 27 Jul 2025 Guenter Milde wrote: > >> On 2025-07-26, Schimon Jehudah wrote: > >> > On Sat, 26 Jul 2025 Guenter Milde wrote: > >> >> On 2025-07-25, Schimon Jehudah wrote: > > >> >> > Is it feasible to set the routine (i.e. default) element to > >> >> > "span", or any other element, instead of element "p"? > > ... > > >> This is something you may do in a custom HTML writer or as a > >> post-processing with an XSLT stylesheet rule but it seems wrong for > >> standard HTML output. > > > Yes. I can so that. I can process it again afterwards. > > > >> What is your problem with paragraphs? Is it about <p> in table > >> cells, list items etc.? > > > Yes. I suppose, because I attach the output to an XSLT stylesheet, > > as a part of customizing XSLT stylesheets and make them as usuable > > as so called "template engines" (e.g. Jinja2). > > > This is the raw code of the XSLT stylesheet. > > ><nav id="xslt-navigation-bottom"/> > > > This is the processed code of the XSLT stylesheet. > > ><nav id="xslt-navigation-bottom"> > > <p> > > <a class="reference external" href="/about" rel="noopener > > noreferrer">About</a> <a class="reference external" > > href="/about/rss" rel="noopener noreferrer">Atom</a> <a > > class="reference external" href="/v" rel="noopener > > noreferrer">V</a> <a class="reference external" href="/about/xmpp" > > rel="noopener noreferrer">XMPP</a> <a class="reference external" > > href="/help" rel="noopener noreferrer">Help</a> </p> > ></nav> > > > The element "p" is not intended to be included. > > > https://journal.woodpeckersnest.eu/ > > > So, I resorted to create a CSS rule. > > > nav p { > > all: unset; > > } > > > https://journal.woodpeckersnest.eu/css/stylesheet.css > > > As you suggested, post-processing would be a good solution. > > This could be merged with the post processing to wrap text spans. > After all, the output of Docutils HTML writers is valid XML but no > XSLT ;) > Of course. I only add that code as static code for XSLT, as a part of its role as a templating engine. > ... > > >> Mind, that "xhtml" and "html5" are both aliases for the > >> "html5_polyglot" writer. It produces HTML5 that is also valid XML. > >> https://docutils.sourceforge.io/docs/user/html.html#html5 > > >> For clarity and brevity, I prefer to call this writer "html5" and > >> its output "HTML" or "HTML5". > > >> The term "XHTML" is a bit ambiguous, because the legacy > >> `"html4css1" writer`__ (with aliases "html", "html4" and > >> "xhtml10") produces `XHTML 1 Transitional`__. > > >> __ https://docutils.sourceforge.io/docs/user/html.html#html4css1 > >> __ https://www.w3.org/TR/xhtml1/ > > > > Until recently, I have utilized "html". > > > I will try "xhtml10" also. > > Using the Docutils writer name "html" or "xhtml10" will make no > difference, both refer to the legacy "html4css1" writer. > > > I only need a valid XML output. > > Using the writer names "html5" or "xhtml" will also result in valid > XML output. The difference is a more semantic output (more CSS styling > instead of hard-coded layout) and better support for advanced features > like SVG images, math formulas, and video images. > I only need the HTML code, which are then embedded into XSLT stylesheets. https://git.xmpp-it.net/sch/Rivista/src/branch/main/rivista/utility/rst.py from docutils.core import publish_parts html_content_str = publish_parts(source=rst_content_str, writer_name="xhtml") html_content_str["fragment"] > > Regards, > > Günter > Best, Schimon |
From: Guenter M. <mi...@us...> - 2025-07-28 09:46:16
|
On 2025-07-28, Schimon Jehudah wrote: > On Sun, 27 Jul 2025 Guenter Milde wrote: >> On 2025-07-26, Schimon Jehudah wrote: >> > On Sat, 26 Jul 2025 Guenter Milde wrote: >> >> On 2025-07-25, Schimon Jehudah wrote: >> >> > Is it feasible to set the routine (i.e. default) element to >> >> > "span", or any other element, instead of element "p"? ... >> This is something you may do in a custom HTML writer or as a >> post-processing with an XSLT stylesheet rule but it seems wrong for >> standard HTML output. > Yes. I can so that. I can process it again afterwards. >> What is your problem with paragraphs? Is it about <p> in table cells, >> list items etc.? > Yes. I suppose, because I attach the output to an XSLT stylesheet, as > a part of customizing XSLT stylesheets and make them as usuable as so > called "template engines" (e.g. Jinja2). > This is the raw code of the XSLT stylesheet. ><nav id="xslt-navigation-bottom"/> > This is the processed code of the XSLT stylesheet. ><nav id="xslt-navigation-bottom"> > <p> > <a class="reference external" href="/about" rel="noopener noreferrer">About</a> > <a class="reference external" href="/about/rss" rel="noopener noreferrer">Atom</a> > <a class="reference external" href="/v" rel="noopener noreferrer">V</a> > <a class="reference external" href="/about/xmpp" rel="noopener noreferrer">XMPP</a> > <a class="reference external" href="/help" rel="noopener noreferrer">Help</a> > </p> ></nav> > The element "p" is not intended to be included. > https://journal.woodpeckersnest.eu/ > So, I resorted to create a CSS rule. > nav p { > all: unset; > } > https://journal.woodpeckersnest.eu/css/stylesheet.css > As you suggested, post-processing would be a good solution. This could be merged with the post processing to wrap text spans. After all, the output of Docutils HTML writers is valid XML but no XSLT ;) ... >> Mind, that "xhtml" and "html5" are both aliases for the >> "html5_polyglot" writer. It produces HTML5 that is also valid XML. >> https://docutils.sourceforge.io/docs/user/html.html#html5 >> For clarity and brevity, I prefer to call this writer "html5" and its >> output "HTML" or "HTML5". >> The term "XHTML" is a bit ambiguous, because the legacy `"html4css1" >> writer`__ (with aliases "html", "html4" and "xhtml10") produces >> `XHTML 1 Transitional`__. >> __ https://docutils.sourceforge.io/docs/user/html.html#html4css1 >> __ https://www.w3.org/TR/xhtml1/ > Until recently, I have utilized "html". > I will try "xhtml10" also. Using the Docutils writer name "html" or "xhtml10" will make no difference, both refer to the legacy "html4css1" writer. > I only need a valid XML output. Using the writer names "html5" or "xhtml" will also result in valid XML output. The difference is a more semantic output (more CSS styling instead of hard-coded layout) and better support for advanced features like SVG images, math formulas, and video images. Regards, Günter |
From: Schimon J. <sc...@fe...> - 2025-07-28 01:15:04
|
Günter. Good day. Thank you for your elaboration on this concern. I have responded further. On Sun, 27 Jul 2025 18:57:56 -0000 (UTC) Guenter Milde via Docutils-users <doc...@li...> wrote: > Dear Schimon, > > On 2025-07-26, Schimon Jehudah via Docutils-users wrote: > > On Sat, 26 Jul 2025 08:06:50 -0000 (UTC) > > Guenter Milde > wrote: > >> On 2025-07-25, Schimon Jehudah via Docutils-users wrote: > > >> > Is it feasible to set the routine (i.e. default) element to > >> > "span", or any other element, instead of element "p"? > > >> Isn't this what XSLT is made for? > > > I meant, that the produced output of docutils utilizes the tag "p". > > > > The Docutils HTML writers use the HTML tag <p> for native > <pararagraph> elements, because both are the basic block-level > elements. > https://docutils.sourceforge.io/docs/ref/doctree.html#paragraph > > Using a HTML <span> instead would mean using a HTML inline element > for a native block element and prevent paragraph separation. > This is something you may do in a custom HTML writer or as a > post-processing with an XSLT stylesheet rule but it seems wrong for > standard HTML output. > Yes. I can so that. I can process it again afterwards. > What is your problem with paragraphs? Is it about <p> in table cells, > list items etc.? > Yes. I suppose, because I attach the output to an XSLT stylesheet, ass a part of customizing XSLT stylesheets and make them as usuable as so called "template engines" (e.g. Jinja2). This is the raw code of the XSLT stylesheet. <nav id="xslt-navigation-bottom"/> This is the processed code of the XSLT stylesheet. <nav id="xslt-navigation-bottom"> <p> <a class="reference external" href="/about" rel="noopener noreferrer">About</a> <a class="reference external" href="/about/rss" rel="noopener noreferrer">Atom</a> <a class="reference external" href="/v" rel="noopener noreferrer">V</a> <a class="reference external" href="/about/xmpp" rel="noopener noreferrer">XMPP</a> <a class="reference external" href="/help" rel="noopener noreferrer">Help</a> </p> </nav> The element "p" is not intended to be included. https://journal.woodpeckersnest.eu/ So, I resorted to create a CSS rule. nav p { all: unset; } https://journal.woodpeckersnest.eu/css/stylesheet.css As you suggested, post-processing would be a good solution. > > >> When processing Docutils output with XSLT, you may consider using > >> Docutils native XML format as starting point. HTML is missing > >> several features of Docutils documents (e.g. footnotes) that must > >> be emulated. Starting from Docutils XML saves you from reverse > >> engineering. > > >> See https://docutils.sourceforge.io/docs/ref/docutils.dtd > >> and https://docutils.sourceforge.io/docs/ref/doctree.html. > > >> :: > > >> from docutils.core import publish_string > >> publish_string(source="Text with link: https://example.org", > >> writer_name="xml", > >> settings_overrides={"indents": True, > >> "output_encoding": > >> "unicode"}) > > >> With the upcoming Docutils 0.22, you will be able to re-read the > >> processed Docutils XML with the "xml" parser and export to all > >> supported formats. > > > > This is done separately. > > > Docutils is utilized to convert reStructuredText to XHTML, and then > > LXML is utilized to incorporate that output to XSLT. > > Does this mean you don't transform docutils output *with* some XSLT > stylesheet but transform it *into* an XSLT template? > Yes. Precisely, as I have detailed. > > >> If you want HTML output from Docutils, you may consider the more > >> modern "html5" writer. Both, the "xhtml" writer and the "html5" > >> writer emit HTML that is also valid XML. However the "xhtml" writer > >> (an alias for "html4css1") is less semantic in its output. > >> (On the other hand, the "xhtml" writer is more stable, because it > >> is mainly kept for backwards compatibility.) > > > I will try the option of XHTML. > > Mind, that "xhtml" and "html5" are both aliases for the > "html5_polyglot" writer. It produces HTML5 that is also valid XML. > https://docutils.sourceforge.io/docs/user/html.html#html5 > > For clarity and brevity, I prefer to call this writer "html5" and its > output "HTML" or "HTML5". > > The term "XHTML" is a bit ambiguous, because the legacy `"html4css1" > writer`__ (with aliases "html", "html4" and "xhtml10") produces > `XHTML 1 Transitional`__. > > __ https://docutils.sourceforge.io/docs/user/html.html#html4css1 > __ https://www.w3.org/TR/xhtml1/ > Until recently, I have utilized "html". I will try "xhtml10" also. I only need a valid XML output. > > Regards, > > Günter > > Thank you, Schimon |
From: Guenter M. <mi...@us...> - 2025-07-27 18:58:14
|
Dear Schimon, On 2025-07-26, Schimon Jehudah via Docutils-users wrote: > On Sat, 26 Jul 2025 08:06:50 -0000 (UTC) > Guenter Milde > wrote: >> On 2025-07-25, Schimon Jehudah via Docutils-users wrote: >> > Is it feasible to set the routine (i.e. default) element to "span", >> > or any other element, instead of element "p"? >> Isn't this what XSLT is made for? > I meant, that the produced output of docutils utilizes the tag "p". The Docutils HTML writers use the HTML tag <p> for native <pararagraph> elements, because both are the basic block-level elements. https://docutils.sourceforge.io/docs/ref/doctree.html#paragraph Using a HTML <span> instead would mean using a HTML inline element for a native block element and prevent paragraph separation. This is something you may do in a custom HTML writer or as a post-processing with an XSLT stylesheet rule but it seems wrong for standard HTML output. What is your problem with paragraphs? Is it about <p> in table cells, list items etc.? >> When processing Docutils output with XSLT, you may consider using >> Docutils native XML format as starting point. HTML is missing several >> features of Docutils documents (e.g. footnotes) that must be >> emulated. Starting from Docutils XML saves you from reverse >> engineering. >> See https://docutils.sourceforge.io/docs/ref/docutils.dtd >> and https://docutils.sourceforge.io/docs/ref/doctree.html. >> :: >> from docutils.core import publish_string >> publish_string(source="Text with link: https://example.org", >> writer_name="xml", >> settings_overrides={"indents": True, >> "output_encoding": "unicode"}) >> With the upcoming Docutils 0.22, you will be able to re-read the >> processed Docutils XML with the "xml" parser and export to all >> supported formats. > This is done separately. > Docutils is utilized to convert reStructuredText to XHTML, and then > LXML is utilized to incorporate that output to XSLT. Does this mean you don't transform docutils output *with* some XSLT stylesheet but transform it *into* an XSLT template? >> If you want HTML output from Docutils, you may consider the more >> modern "html5" writer. Both, the "xhtml" writer and the "html5" >> writer emit HTML that is also valid XML. However the "xhtml" writer >> (an alias for "html4css1") is less semantic in its output. >> (On the other hand, the "xhtml" writer is more stable, because it is >> mainly kept for backwards compatibility.) > I will try the option of XHTML. Mind, that "xhtml" and "html5" are both aliases for the "html5_polyglot" writer. It produces HTML5 that is also valid XML. https://docutils.sourceforge.io/docs/user/html.html#html5 For clarity and brevity, I prefer to call this writer "html5" and its output "HTML" or "HTML5". The term "XHTML" is a bit ambiguous, because the legacy `"html4css1" writer`__ (with aliases "html", "html4" and "xhtml10") produces `XHTML 1 Transitional`__. __ https://docutils.sourceforge.io/docs/user/html.html#html4css1 __ https://www.w3.org/TR/xhtml1/ Regards, Günter |
From: Schimon J. <sc...@fe...> - 2025-07-26 18:23:15
|
On Sat, 26 Jul 2025 08:06:50 -0000 (UTC) Guenter Milde via Docutils-users <doc...@li...> wrote: > On 2025-07-25, Schimon Jehudah via Docutils-users wrote: > > Good day. > > > Is it feasible to set the routine (i.e. default) element to "span", > > or any other element, instead of element "p"? > > Isn't this what XSLT is made for? > I meant, that the produced output of docutils utilizes the tag "p". > > >>>> from docutils.core import publish_parts > >>>> publish_parts(source="This an XHTML text with a `link > >>>> <https://movim.eu>`_ for XMPP PubSub", > >>>> writer_name="xhtml")["fragment\ > > "] > > '<p>This an XHTML text with a <a class="reference external" > > href="https://movim.eu">link</a> for XMPP PubSub</p>\n' > > When processing Docutils output with XSLT, you may consider using > Docutils native XML format as starting point. HTML is missing several > features of Docutils documents (e.g. footnotes) that must be > emulated. Starting from Docutils XML saves you from reverse > engineering. > > See https://docutils.sourceforge.io/docs/ref/docutils.dtd > and https://docutils.sourceforge.io/docs/ref/doctree.html. > > :: > > from docutils.core import publish_string > publish_string(source="Text with link: https://example.org", > writer_name="xml", > settings_overrides={"indents": True, > "output_encoding": "unicode"}) > > With the upcoming Docutils 0.22, you will be able to re-read the > processed Docutils XML with the "xml" parser and export to all > supported formats. > This is done separately. Docutils is utilized to convert reStructuredText to XHTML, and then LXML is utilized to incorporate that output to XSLT. https://git.xmpp-it.net/sch/Rivista/src/branch/main/rivista/interface/http.py https://git.xmpp-it.net/sch/Rivista/src/branch/main/rivista/utility/rst.py https://git.xmpp-it.net/sch/Rivista/src/branch/main/rivista/parser/xml.py Should XML output be utilized, would links be realized with the tag "a"? > If you want HTML output from Docutils, you may consider the more > modern "html5" writer. Both, the "xhtml" writer and the "html5" > writer emit HTML that is also valid XML. However the "xhtml" writer > (an alias for "html4css1") is less semantic in its output. > (On the other hand, the "xhtml" writer is more stable, because it is > mainly kept for backwards compatibility.) > > Günter > I will try the option of XHTML. Thank you, Schimon. |
From: Guenter M. <mi...@us...> - 2025-07-26 08:07:02
|
On 2025-07-25, Schimon Jehudah via Docutils-users wrote: > Good day. > Is it feasible to set the routine (i.e. default) element to "span", or any > other element, instead of element "p"? Isn't this what XSLT is made for? >>>> from docutils.core import publish_parts >>>> publish_parts(source="This an XHTML text with a `link <https://movim.eu>`_ for XMPP PubSub", writer_name="xhtml")["fragment\ > "] > '<p>This an XHTML text with a <a class="reference external" href="https://movim.eu">link</a> for XMPP PubSub</p>\n' When processing Docutils output with XSLT, you may consider using Docutils native XML format as starting point. HTML is missing several features of Docutils documents (e.g. footnotes) that must be emulated. Starting from Docutils XML saves you from reverse engineering. See https://docutils.sourceforge.io/docs/ref/docutils.dtd and https://docutils.sourceforge.io/docs/ref/doctree.html. :: from docutils.core import publish_string publish_string(source="Text with link: https://example.org", writer_name="xml", settings_overrides={"indents": True, "output_encoding": "unicode"}) With the upcoming Docutils 0.22, you will be able to re-read the processed Docutils XML with the "xml" parser and export to all supported formats. If you want HTML output from Docutils, you may consider the more modern "html5" writer. Both, the "xhtml" writer and the "html5" writer emit HTML that is also valid XML. However the "xhtml" writer (an alias for "html4css1") is less semantic in its output. (On the other hand, the "xhtml" writer is more stable, because it is mainly kept for backwards compatibility.) Günter |
From: Schimon J. <sc...@fe...> - 2025-07-25 08:38:54
|
Greetings. I am answering to myself. This code works, and the results are good, despite the lack of the desired element </xsl:text>. --- BEGIN PYTHON CODE --- from docutils.core import publish_parts import lxml.etree as ET class UtilityRst: def convert_to_html(rst_content_str): html_content_str = publish_parts(source=rst_content_str, writer_name="html") return html_content_str["fragment"] class ParserXml: def append_xhtml_to_xslt(filepath_xslt, filepath_rst): document_xslt = ET.parse(filepath_xslt) rst_content_str = open(filepath_rst, mode="r").read() xhtml_content_str = UtilityRst.convert_to_html(rst_content_str) lines = rst_content_str.split("\n") for line in lines: if line.startswith(".. xpath"): expression_xpath = line.split(": ")[1] break element_xml = document_xslt.xpath(expression_xpath) if element_xml: subelement = ET.fromstring(xhtml_content_str) element_xml[0].append(subelement) document_xslt.write(filepath_xslt, pretty_print=True) --- END PYTHON CODE --- This code will be featured in project Rivista (Vivista). https://git.xmpp-it.net/sch/Rivista (Current brand) https://git.xmpp-it.net/sch/Vivista (Future brand) Kind regards, Schimon On Thu, 24 Jul 2025 04:22:15 +0300 Schimon Jehudah via Docutils-users <doc...@li...> wrote: > Greetings. > > I am working to create a publishing system which is enntirely based on > XML (Atom Syndication Format) with XSLT stylesheets to transform XML > to XHTML. > > > Preface > ------- > > XSLT stylesheets are utilized instead of templating engines (e.g. > Jinja2), in order to generalize theming systems for CMS and other > types of publishing platforms. > > However, modifying of XSLT for navigation links is essential for this > idea to succeed. > > > Concern > ------- > > While adding plain text, as is, should be workable, I would rather > enclose text within tag </xsl:text>, if possible. > > <xsl:text>This an</xsl:text> > <xsl:text> </xsl:text> > <a href="?xml">Atom Syndication Format</a> > <xsl:text> </xsl:text> > <xsl:text>document which was transformed to HTML with</xsl:text> > <xsl:text> </xsl:text> > <a href="/about/xslt">XSLT stylesheets</a> > > > Questions > --------- > > Is this possible to do with docutils? > > Would it applicable to ask for such feature? > > > Kind regards, > Schimon > > > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. |
From: Schimon J. <sc...@fe...> - 2025-07-25 08:29:36
|
Good day. Is it feasible to set the routine (i.e. default) element to "span", or any other element, instead of element "p"? >>> from docutils.core import publish_parts >>> publish_parts(source="This an XHTML text with a `link <https://movim.eu>`_ for XMPP PubSub", writer_name="xhtml")["fragment\ "] '<p>This an XHTML text with a <a class="reference external" href="https://movim.eu">link</a> for XMPP PubSub</p>\n' Kind regards, Schimon |
From: Schimon J. <sc...@fe...> - 2025-07-24 01:22:28
|
Greetings. I am working to create a publishing system which is enntirely based on XML (Atom Syndication Format) with XSLT stylesheets to transform XML to XHTML. Preface ------- XSLT stylesheets are utilized instead of templating engines (e.g. Jinja2), in order to generalize theming systems for CMS and other types of publishing platforms. However, modifying of XSLT for navigation links is essential for this idea to succeed. Concern ------- While adding plain text, as is, should be workable, I would rather enclose text withing tag </xsl:text>, if possible. <xsl:text>This an</xsl:text> <xsl:text> </xsl:text> <a href="?xml">Atom Syndication Format</a> <xsl:text> </xsl:text> <xsl:text>document which was transformed to HTML with</xsl:text> <xsl:text> </xsl:text> <a href="/about/xslt">XSLT stylesheets</a> Questions --------- Is this possible to do with docutils? Would it applicable to ask for such feature? Kind regards, Schimon |
From: Viktor R. <vik...@gm...> - 2025-07-22 06:53:13
|
Hello Guenter, Am Mo., 21. Juli 2025 um 19:49 Uhr schrieb Guenter Milde via Docutils-users <doc...@li...>: > ... > On 2025-06-30, Viktor Ransmayr wrote: > ... > > test-IETF-URI-issue.rst:18: (ERROR/3) Unknown target name: > "k4-l4mk7qa". > > > For me it is not clear, if the second mailarchive URI really does > 'violate' > > the reStructuredText Markup Specification - or - if it is a 'docutils' > > issue. > > The parsing result conforms with the reStructuredText specification > https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html. > > Why? > ==== > > Let us simplify the example to the two paragraphs:: > > works: https://example.org/msg/TljW9V_sIzQJ1PpO4axkKmiWCZI/ > > fails: https://example.org/msg/k4-L4mK7Qa_-F3svmF6uFKKPZ6I/ > > Each paragraph is parsed for *inline markup*. According to the > `recognition order`_ standalone hyperlinks are last to be recognised. > I.e., before looking for an URI, the paragraph is checked for emphasis, > literals, ..., hyperlink references, and interpreted text. > > The second URI contains inline markup consistent with the > `hyperlink reference`_ "k4-l4mk7qa". > > Unfortunately, the `inline markup recognition rules`_ are rather complex.¹ > > * A hyperlink reference has no start-string and the end-string "_". > > * end-strings must end the text block or be followed by whitespace or > punctuation (ASCII characters - : / ' " < ( [ { or similar non-ASCII > characters). > ... > > Workarounds > =========== > > escape_ the underscore: > https://example.org/msg/k4-L4mK7Qa\_-F3svmF6uFKKPZ6I/ > > Mark up as hyperlink reference with `embedded URI`_:: > > `<https://example.org/msg/k4-L4mK7Qa_-F3svmF6uFKKPZ6I/>`__ > > Wrapping in angle brackets helps for standalone hyperlinks with trailing > punctuation like <https://example.org/msg.> but does not help with > underscores. > ... Thanks a lot for your detailled answer & the two workarounds ! With kind regards, Viktor |
From: Guenter M. <mi...@us...> - 2025-07-21 17:48:54
|
Dear Viktor, welcome to the list and thanks for your feedback. On 2025-06-30, Viktor Ransmayr wrote: ... > I noted issues with certain IETF mailarchive URIs already a while ago - but > - only now took the time to follow up & create a simple test file (see > attachment) demonstrating the issue. > This file contains two IETF mailarchive URI instances. - The first one is > processed without an issue - and - the second one is processed with an > error. ... > test-IETF-URI-issue.rst:18: (ERROR/3) Unknown target name: "k4-l4mk7qa". > For me it is not clear, if the second mailarchive URI really does 'violate' > the reStructuredText Markup Specification - or - if it is a 'docutils' > issue. The parsing result conforms with the reStructuredText specification https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html. Why? ==== Let us simplify the example to the two paragraphs:: works: https://example.org/msg/TljW9V_sIzQJ1PpO4axkKmiWCZI/ fails: https://example.org/msg/k4-L4mK7Qa_-F3svmF6uFKKPZ6I/ Each paragraph is parsed for *inline markup*. According to the `recognition order`_ standalone hyperlinks are last to be recognised. I.e., before looking for an URI, the paragraph is checked for emphasis, literals, ..., hyperlink references, and interpreted text. The second URI contains inline markup consistent with the `hyperlink reference`_ "k4-l4mk7qa". Unfortunately, the `inline markup recognition rules`_ are rather complex.¹ * A hyperlink reference has no start-string and the end-string "_". * end-strings must end the text block or be followed by whitespace or punctuation (ASCII characters - : / ' " < ( [ { or similar non-ASCII characters). In the working example, the underscore is followed by a letter, so it is not recognised as a hyperlink reference end-string. In the failing example, the underscore is followed by "-", so it is interpreted as end-string of a simple hyperlink reference. The text from "/" to "_" forms the `simple reference name`_ "k4-l4mk7qa". (The "violation" of proper rST syntax is, that there is no matching target_.)² In the first URI, the "random" directory name ``TljW9V_sIzQJ1PpO4axkKmiWCZI/`` contains an underscore, too. However, it is not recognised as inline markup end-string, because it is followed by a letter. Workarounds =========== escape_ the underscore: https://example.org/msg/k4-L4mK7Qa\_-F3svmF6uFKKPZ6I/ Mark up as hyperlink reference with `embedded URI`_:: `<https://example.org/msg/k4-L4mK7Qa_-F3svmF6uFKKPZ6I/>`__ Wrapping in angle brackets helps for standalone hyperlinks with trailing punctuation like <https://example.org/msg.> but does not help with underscores. I hope this helps to understand and work around the problem, Günter ¹They were devised to allow 90% of non-markup uses of *, `, _, and | without escaping. ²After parsing, the first paragraph contains: * the text "fails: ", * a reference to "https://example.org/", * the nonfunctional reference to the internal target "k4-l4mk7qa", * and the text "-F3svmF6uFKKPZ6I/". .. _recognition order: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#recognition-order .. _inline markup recognition rules: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#inline-markup-recognition-rules .. _simple reference name: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#simple-reference-names .. _target: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#hyperlink-targets .. _escape: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#escaping-mechanism .. _embedded URI: https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases |
From: Guenter M. <mi...@us...> - 2025-07-21 00:08:18
|
On 2025-07-14, Schimon Jehudah via Docutils-users wrote: > Good day. > I am interested to know whether it is possible to output an HTML code, > preferably XHTML formatted, without elements "head" nor "body". Yes, this is easily possible with the "publish_parts()" function. https://docutils.sourceforge.io/docs/api/publisher.html#publish-parts (The "html_body" part is the <body> content.) Both, the "html4css1" writer and the "html5" writer export valid XML. Günter |
From: Guenter M. <mi...@us...> - 2025-07-21 00:08:13
|
On 2025-07-18, Schimon Jehudah via Docutils-users wrote: > Good afternoon. > Is there any intention to add more tags, such as audio and video? > I did read the object and video reference. > https://docutils.sourceforge.io/docs/ref/rst/directives.html#footnote-reference-1 > I do know that it is possible to add raw HTML code. > https://docutils.sourceforge.io/docs/ref/rst/directives.html#raw-data-pass-through > I think, that having these settled more explicitly would be best, > especially for Atom/RSS attachments (i.e. enclosures). > Please advise. It seems you are looking at reStructuredText as a kind of "HTML-input-language". However, the underlying document model differs from HTML in both, element set and structure: https://docutils.sourceforge.io/docs/ref/doctree.html. While reStructuredText documents can be converted to HTML, this is not the only output format. There is no plan to provide input methods for every HTML element/tag in "stock rST". Especially not for elements that do not have an analogon in other supported output formats like LaTeX/PDF, ODT, or man pages (roff). OTOH, there is this syntax construct called "directive" (https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#directives) whith a set of widely supported standard directives (https://docutils.sourceforge.io/docs/ref/rst/directives.html). These include a directive to include images into the output document, as images are widely used to aide in documentation and supported by most output formats (with limitations). For HTML, this includes moving images. Directives are an extension mechanism, so applications can add their own directives (see, e.g. Sphinx for a large set of additional directives). The downside is, that documents using custom directives cannot be handled by the "vanilla" Docutils tools. Günter |
From: Schimon J. <sc...@fe...> - 2025-07-19 18:33:53
|
Good evening. Never mind. Please ignore my message. I am attempting to create an Atom Syndication Format based content management system (i.e. static site generator), and I have mixed RST with XML. Also, I can add attribute "class" to elements which I want to be of enclosure or anything else. This is a concern of software-level. Regards, Schimon On Sat, 19 Jul 2025 16:40:53 +0200 Marc Rintsch <ma...@ri...> wrote: > On 18.07.25 15:57, Schimon Jehudah via Docutils-users wrote: > > Should reStructuredText have a directive for enclosures? > > > > It is possible to scan HTML code for potential attachments (e.g. > > torrent, ipfs, magnet, ogg, etc.), yet it might be better to have an > > explicit directive to indicate of a media which is intended to be > > realized as an attachment. > > I'm a bit puzzled what is meant by the terms „enclosure“ and > „attachment“ here. That's not really terminology used in > reStructuredText or HTML. > > Ciao, > Marc 'BlackJack' Rintsch |
From: Marc R. <ma...@ri...> - 2025-07-19 15:14:07
|
On 18.07.25 15:57, Schimon Jehudah via Docutils-users wrote: > Should reStructuredText have a directive for enclosures? > > It is possible to scan HTML code for potential attachments (e.g. > torrent, ipfs, magnet, ogg, etc.), yet it might be better to have an > explicit directive to indicate of a media which is intended to be > realized as an attachment. I'm a bit puzzled what is meant by the terms „enclosure“ and „attachment“ here. That's not really terminology used in reStructuredText or HTML. Ciao, Marc 'BlackJack' Rintsch -- Norton SystemWorks 2002 includes a file erasure program called Wipe Info. In the manual (page 160), we learn that “Wipe Info uses hexadecimal values to wipe files. This provides more security than wiping with decimal values.” Who writes this stuff? -- Bruce Schneier in CRYPTO-GRAM |
From: Schimon J. <sc...@fe...> - 2025-07-18 15:59:03
|
Good afternoon. Should reStructuredText have a directive for enclosures? It is possible to scan HTML code for potential attachments (e.g. torrent, ipfs, magnet, ogg, etc.), yet it might be better to have an explicit directive to indicate of a media which is intended to be realized as an attachment. Perhaps a value for attribute "class" would be more appropriate. Please advise. Kind regards, Schimon |
From: Schimon J. <sc...@fe...> - 2025-07-18 15:55:43
|
Good afternoon. Is there any intention to add more tags, such as audio and video? I did read the object and video reference. https://docutils.sourceforge.io/docs/ref/rst/directives.html#footnote-reference-1 I do know that it is possible to add raw HTML code. https://docutils.sourceforge.io/docs/ref/rst/directives.html#raw-data-pass-through I think, that having these settled more explicitly would be best, especially for Atom/RSS attachments (i.e. enclosures). Please advise. Kind regards, Schimon |
From: Schimon J. <sc...@fe...> - 2025-07-14 17:55:25
|
Alan. Good evening. Thank you very much! https://git.xmpp-it.net/sch/Rivista/commit/9f422a8813e467db5ae62e850c660d02c0601e45 Respectfully, Schimon On Mon, 14 Jul 2025 09:28:14 -0400 Alan <ala...@gm...> wrote: > Here is what (free) Copilot says. > > [image: image.png] > > On Mon, Jul 14, 2025 at 8:30 AM Schimon Jehudah via Docutils-users < > doc...@li...> wrote: > > > Good day. > > > > I am interested to know whether it is possible to output an HTML > > code, preferably XHTML formatted, without elements "head" nor > > "body". > > > > I am working with Atom Syndication Format and XSLT, and therefore, > > I am not interested in creating elements "head" or "body", because > > XSL Transformations already does the XHTML task. > > > > Kind regards, > > Schimon > > > > |