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
(9) |
Oct
(30) |
Nov
(1) |
Dec
|
|
From: Alan G. I. <ala...@gm...> - 2023-01-14 17:39:54
|
With current docutils on Windows:
--stylesheet=C:/Users/aisaac/svn/aisaac/mydocs/372/372slides
is producing
%%% User specified packages and stylesheets
\usepackage{C:\Users\aisaac\svn\aisaac\mydocs\372\372slides}
The forward slashes need to be retained, of course.
This might (?) be related to this in the history:
docutils/utils/__init__.py
find_file_in_dirs() now returns a POSIX path also on Windows; get_stylesheet_list() no longer converts "" to "/".
If so, that is a breaking change.
Alan Isaac
|
|
From: Alan G. I. <ala...@gm...> - 2023-01-14 16:42:45
|
I'm using current docutils. rst2beamer uses the LaTeX writer. Has a ``_use_latex_citations`` attribute been removed from the docutils LaTeXTranslator? This missing attribute looks to be causing the problem. Thanks, Alan On 1/14/2023 3:42 AM, Guenter Milde via Docutils-users wrote: > On 2023-01-14, Alan G. Isaac wrote: >> I can no longer compile some documents with rst2beamer. >> (They compiled a year ago.) > > Which Docutils version are you using now, which a year ago? > Are you using the LaTeX or the XeTeX writer? > >> Did something change with --use-latex-citations? >> (I'm not setting it.) > > Not yet. (See RELEASE-NOTES) > > Suggested diagnosis: > > Look out for changes between the relevant versions in the RELEASE-NOTES and > the HISTORY (there were some default changes recently). > >> Suggested fix? > > Adapt rst2beamer.py to the new behaviour. > > As a stop gap measure: try the various "--legacy..." and "--use-latex..." > settings. > > > Günter > > > > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. |
|
From: Guenter M. <mi...@us...> - 2023-01-14 08:43:05
|
On 2023-01-14, Alan G. Isaac wrote: > I can no longer compile some documents with rst2beamer. > (They compiled a year ago.) Which Docutils version are you using now, which a year ago? Are you using the LaTeX or the XeTeX writer? > Did something change with --use-latex-citations? > (I'm not setting it.) Not yet. (See RELEASE-NOTES) Suggested diagnosis: Look out for changes between the relevant versions in the RELEASE-NOTES and the HISTORY (there were some default changes recently). > Suggested fix? Adapt rst2beamer.py to the new behaviour. As a stop gap measure: try the various "--legacy..." and "--use-latex..." settings. Günter |
|
From: Alan G. I. <ala...@gm...> - 2023-01-14 00:45:44
|
I can no longer compile some documents with rst2beamer.
(They compiled a year ago.)
Did something change with --use-latex-citations?
(I'm not setting it.)
Suggested fix?
Alan Isaac
Traceback (most recent call last):
File "C:\Program Files\Python38\Scripts\rst2beamer-script.py", line 11, in <module>
load_entry_point('rst2beamer3k==0.9.1', 'console_scripts', 'rst2beamer')()
File "C:\Program Files\Python38\lib\site-packages\rst2beamer.py", line 1304, in main
publish_cmdline(
File "C:\Program Files\Python38\lib\site-packages\docutils-0.20b0.dev0-py3.8.egg\docutils\core.py", line 391, in publish_cmdline
output = pub.publish(
File "C:\Program Files\Python38\lib\site-packages\docutils-0.20b0.dev0-py3.8.egg\docutils\core.py", line 227, in publish
output = self.writer.write(self.document, self.destination)
File "C:\Program Files\Python38\lib\site-packages\docutils-0.20b0.dev0-py3.8.egg\docutils\writers\__init__.py", line 76, in write
self.translate()
File "C:\Program Files\Python38\lib\site-packages\docutils-0.20b0.dev0-py3.8.egg\docutils\writers\latex2e\__init__.py", line 267, in translate
self.document.walkabout(visitor)
File "C:\Program Files\Python38\lib\site-packages\docutils-0.20b0.dev0-py3.8.egg\docutils\nodes.py", line 199, in walkabout
visitor.dispatch_departure(self)
File "C:\Program Files\Python38\lib\site-packages\docutils-0.20b0.dev0-py3.8.egg\docutils\nodes.py", line 2019, in dispatch_departure
return method(node)
File "C:\Program Files\Python38\lib\site-packages\rst2beamer.py", line 930, in depart_document
if self._use_latex_citations and len(self._bibitems) > 0:
AttributeError: 'BeamerTranslator' object has no attribute '_use_latex_citations'
|
|
From: Matthias G. <mat...@gm...> - 2023-01-07 11:20:26
|
Dear docutils maintainers. A few months ago, I've reported a problem with sphinxcontrib-bibtex (https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/309), which turned out to actually be a problem with docutils. There is also a related Sphinx issue (https://github.com/sphinx-doc/sphinx/issues/10784) which shows that the problem can also appear without using sphinxcontrib-bibtex. The maintainer of sphinxcontrib-bibtex has kindly provided a patch (https://sourceforge.net/p/docutils/patches/195/), which has already been merged in the meantime. I don't know the release procedure nor the roadmap of docutils, but would it be possible to create a new docutils release that contains this fix (and maybe other improvements)? Thanks in advance! In case you are wondering how the problem looks in practice, here is an example: https://nbsphinx.readthedocs.io/en/0.8.11/a-normal-rst-file.html#citations cheers, Matthias |
|
From: Satish B.D. <bds...@gm...> - 2022-09-12 13:29:51
|
Thanks Günter, > I know of a "math extension" for sphinx that designs a special meaning > (start/stop mathematical mode) to $. There may be other extensions or > pre-/post-processing changing the outcome... Indeed it was a post-processing bug, where the dollar had to be escaped. Sorry for the noise. Regards, Satish |
|
From: Guenter M. <mi...@us...> - 2022-09-12 12:32:41
|
On 2022-09-09, Satish B.D. wrote: > Hi, > Does the dollar sign have any meaning inside double asterisks in rst? > I want the following in bold: > **US $25** > The HTML is rendered as: ><p><strong>US 5<p><strong> Here, converting your example line with both, `rst2html` as well as `rst2html5` results in:: <p><strong>US $25</strong></p> Docutils version 0.19.1dev > Where did the $2 disappear? Am I missing something? I can only guess: In standard rST, the character "$" has no special meaning. I know of a "math extension" for sphinx that designs a special meaning (start/stop mathematical mode) to $. There may be other extensions or pre-/post-processing changing the outcome... Günter |
|
From: Satish B.D. <bds...@gm...> - 2022-09-09 17:33:15
|
Hi, Does the dollar sign have any meaning inside double asterisks in rst? I want the following in bold: **US $25** The HTML is rendered as: <p><strong>US 5<p><strong> Where did the $2 disappear? Am I missing something? Thanks and regards, Satish |
|
From: engelbert g. <eng...@gm...> - 2022-07-05 20:24:08
|
Release 0.19 (2022-07-05)
=========================
(Release 0.19b1 (2022-06-21))
* Drop support for Python 2.7, 3.5, and 3.6.
* Output changes:
HTML5:
Wrap groups of footnotes in an ``<aside>`` for easier styling.
The CSS rule ``.footnote-list { display: contents; }`` can be used to
restore the behaviour of custom CSS styles.
* After package installation, the CLI commands ``python -m docutils`` and
``docutils`` start the `generic command line front end tool`__.
__ docs/user/tools.html#generic-command-line-front-end
* Support parsing "Markdown" input with 3rd party parsers
myst_, pycmark_, or recommonmark_.
* The default values for the "pep-references", "rfc-base-url",
and "python-home" `configuration settings`_ now use the "https:" scheme.
The PEP-writer template's header is updated to fix links and
resemble the header of official PEPs.
* Various bugfixes and improvements (see HISTORY_).
.. _myst: https://pypi.org/project/myst-docutils
.. _pycmark: https://pypi.org/project/pycmark/
.. _recommonmark: https://pypi.org/project/recommonmark/
.. _configuration settings: docs/user/config.html
|
|
From: engelbert g. <eng...@gm...> - 2022-06-21 22:25:20
|
Thanks to Günter and Adam several changes happened that made a release
necessary
RELEASE NOTES 0.19
* Drop support for Python 2.7, 3.5, and 3.6.
* Output changes:
HTML5:
Wrap groups of footnotes in an ``<aside>`` for easier styling.
The CSS rule ``.footnote-list { display: contents; }`` can be used to
restore the behaviour of custom CSS styles.
* After package installation, the CLI commands ``python -m docutils`` and
``docutils`` start the `generic command line front end tool`__.
__ docs/user/tools.html#generic-command-line-front-end
* Support parsing "Markdown" input with 3rd party parsers
myst_, pycmark_, or recommonmark_.
* The default values for the "pep-references", "rfc-base-url",
and "python-home" `configuration settings`_ now use the "https:" scheme.
The PEP-writer template's header is updated to fix links and
resemble the header of official PEPs.
* Various bugfixes and improvements (see HISTORY_).
install with : pip install docutils --pre
Release 0.19 is planned for july 5th
cheers and all the best
engelbert
|
|
From: engelbert g. <eng...@gm...> - 2022-06-19 12:54:45
|
Hello due to the work of Günter and Adam a release is necessary current plan is 0.19.0b1 on tuesday june 21 0.19 on july 5 cheers and thanks for the work e |
|
From: Adam T. <aat...@ou...> - 2022-06-09 11:55:53
|
Using Python 3.10's ``-X warn_default_encoding`` argument to Python, we can see a large number of places where the default encoding is used. On posix systems this is now UTF-8 following PEP 538 [1], but on Windows a non-unicode codepage can be used. The attached patch fixes the majority of these instances. A [1]: https://peps.python.org/pep-0538/ |
|
From: Adam T. <aat...@ou...> - 2022-06-09 10:59:05
|
test_CLI fails on Python 3.7 as "utf-8" is capitalised in the actual output. Attached is a patch to fix the failure. A |
|
From: Sorin P. <sor...@gm...> - 2022-05-08 10:39:35
|
Hi Engelbert!
I found that there is a separate pip3 package, rst2html that works.
The one included in docutils-0.18.1 isn't working. Also, this rst2html
package is installing the rst2html command in $PATH, while the one
included in docutils is installing only rst2html.py in $PATH.
I will currently stay with the separate package.
Best regards,
Sorin.
În dum., 8 mai 2022 la 13:06, engelbert gruber
<eng...@gm...> a scris:
>
> hi sorin
>
> sorry for the slow reply.
> did you manage to succeed ?
>
>
> i tried successfully ... rst2html5.py --template=afile.txt
>
> and the template :
>
> %(head_prefix)s
> %(head)s
> %(stylesheet)s
> %(body_prefix)s
> <div id="eins">
> %(body_pre_docinfo)s
> %(docinfo)s
> %(body)s
> </div>
> %(body_suffix)s
>
> On Thu, 28 Apr 2022 at 20:44, Sorin Pânca <sor...@gm...> wrote:
>>
>> Hello!
>> (I am not a subscriber of the mailing list and this is my first message.)
>>
>> I have an issue using --template from file: the {head} and {body}
>> placeholders are not replaced. I installed docutils 0.18.1 using pip3
>> install docutils on Majaro Linux. The template I'm using does not
>> contain something different than the example template, only the URLs
>> inside are changed and a <div> added around {body}.
>> When I'm not using --template, the html is generated properly. When
>> using --template from file, the generated document is the same as the
>> template and it contains the placeholders, just like the template was
>> copied over as output.
>>
>> Am I doing something wrong or is this a bug?
>> Command: rst2html5.py --template='site-root/htdocs/template.html'
>> --no-source-link --report=${ERROR_LEVEL} --no-generator
>> --toc-entry-backlinks --no-section-numbering --strip-comments --strict
>> --tab-width=4 doc.rst >> doc.html
>>
>> Thank you!
>>
>> --
>> Sorin Pânca.
>>
>>
>> _______________________________________________
>> Docutils-users mailing list
>> Doc...@li...
>> https://lists.sourceforge.net/lists/listinfo/docutils-users
>>
>> Please use "Reply All" to reply to the list.
--
Sorin Pânca.
|
|
From: Guenter M. <mi...@us...> - 2022-05-07 09:05:18
|
On 2022-05-06, Guenter Milde via Docutils-users wrote:
> Testing with the minimal example (provided in private mail) revealed that
> a backslash must be quadrupled to appear in the output (rsp. the doctree).
> This is a common "feature" if the same escape character is used two times...
> (The first escape-round is the generic rST escape handling.)
Some more experiments showed, that the CSV escape handling is first and
rST escape handling second::
.. csv-table::
:header: "testa\" \\*testb*", "testa \*testb*", 2\\\\a, 3\\b
:stub-columns: 1
1,"(1\\2)","(2,\ *3*)","(3,4)"
2,"(1,3)","(2,4)","(3,5)"
3,"(1,4)","(2,5)","(3,6)"
> Looking at the definitions in docutils/parsers/rst/directives/tables.py
> reveals that headers from the argument list and table content are parsed
> using different "CSV dialects": HeaderDialect vs. DocutilsDialect.
> Only the first defines an escape character.
>> If so, it this intentional? (In the csv-table data,
>> they just need to be doubled.)
> Given that this two different csv dialects are defined in tables.py
> since at least 2004, it may be intentional or a side-effect of some
> intention.
> OTOH, the documentation
> https://docutils.sourceforge.io/docs/ref/rst/directives.html#csv-table-1
> says regarding the "header" option:
> Must use the same CSV format as the main CSV data.
> Either implementation or documentation should be changed. Now we need to
> find out / decide which.
I favour a common dialect for content and header, because
using "\" as escapechar means "\\\\" is required for a literal
backslash in the header (but not the content cells)
because "\" is also used by the rST escape mechanism :(.
However, I may be just missing the motivation for
a separate HeaderDialect since the initial implementation
(r2309 "table-related directives" goodger 2004-06-18).
Günter
|
|
From: Guenter M. <mi...@us...> - 2022-05-06 22:29:45
|
On 2022-05-04, Alan G. Isaac wrote: > Are backslashes stripped out of the csv-table header? Testing with the minimal example (provided in private mail) revealed that a backslash must be quadrupled to appear in the output (rsp. the doctree). This is a common "feature" if the same escape character is used two times... (The first escape-round is the generic rST escape handling.) Looking at the definitions in docutils/parsers/rst/directives/tables.py reveals that headers from the argument list and table content are parsed using different "CSV dialects": HeaderDialect vs. DocutilsDialect. Only the first defines an escape character. > If so, it this intentional? (In the csv-table data, > they just need to be doubled.) Given that this two different csv dialects are defined in tables.py since at least 2004, it may be intentional or a side-effect of some intention. OTOH, the documentation https://docutils.sourceforge.io/docs/ref/rst/directives.html#csv-table-1 says regarding the "header" option: Must use the same CSV format as the main CSV data. Either implementation or documentation should be changed. Now we need to find out / decide which. Günter |
|
From: Guenter M. <mi...@us...> - 2022-05-05 16:06:05
|
Dear Agathe, On 2022-05-03, Agathe Porte wrote: ... > As I dig further and further into html5_polyglot, I am sad to see that > <video> has no first class support in reStructuredText. Video is a relatively new addition and only rarely used up to now. This is also related to poor support in the target document formats (just HTML5, no ODF, LaTeX, or troff (manpage)). > I did a local patch to add more attributes to the renderer, then > another patch for allowing alternative source format, thank you for sharing > but I think that a new video class should be added instead of hacking > the image class so deeply. This has been done in a plugin for sphinx > [2]: full support of a distinct video node that can support extra > attributes. I suppose "class" here means a new document node class and maybe matching directive? This is one way to do it, it would mean a change to the Docutils document model https://docutils.sourceforge.io/docs/ref/doctree.html as well as the reStructuredText specification https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html. What would be the advantage over a common <image> node for both still and moving images? > One quirk of using "classes" for detecting {loop,controls,autoplay} is > that the video keeps the "loop" CSS style class, which seems not useful > and can conflict with CSS classes. This may be solved by popping the relevant values from the "classes" list (as is done with "language-.." values and, in `html5_polyglot` for the classes corresponding to semantic HTML5 tags (cf. the `html5-text-level-tags.txt` functional test input and resulting `standalone_rst_html5.html`). (CSS stylesheet rules can also use the "loop" attribute as selector.) > I was not able to see prior discussion for proper video support in > docutils using a search engine. Please enlighten my light if anything > seems wrong with this proposal. Alternative sources are also useful (and supported for) still images in HTML5. cf. https://sourceforge.net/p/docutils/mailman/docutils-develop/thread/a461cd5a-6222-45bc-ac66-0be0117e6002%40Spark/#msg37264494 Another use case is providing for alternative formats in the rst source for different output formats (e.g. SVG for HTML, PDF for LaTeX). Different writers would filter out non-supported formats. Instead of the HTML "srcset" syntax, I consider adding support for optional nested <source> nodes (similar to the ones in HTML5 <video>). This would, IMO, give a clearer way to specify image resolution and sizes than the "srcset" and "sizes" attributes. We should/could start a dedicated thread in docutils-develop or feature-enhancement ticket for this. Thanks, Günter |
|
From: Guenter M. <mi...@us...> - 2022-05-05 15:09:10
|
On 2022-05-04, Alan G. Isaac wrote: > Are backslashes stripped out of the csv-table header? > If so, it this intentional? (In the csv-table data, > they just need to be doubled.) Doubling the backslash should also work in the csv table header. Can you provide a *minimal* example (just the rST and description of how you convert it)? Günter |
|
From: Alan G. I. <ala...@gm...> - 2022-05-04 20:28:42
|
Are backslashes stripped out of the csv-table header? If so, it this intentional? (In the csv-table data, they just need to be doubled.) Thank you, Alan Isaac |
|
From: Agathe P. <mic...@mi...> - 2022-05-03 14:23:27
|
Hi,
29/04/2022 10:54, Guenter Milde :
>> However, according to the documentation [1], this should export a
>> <video> tag instead of a <img> tag given that the file extension is ".mp4".
> It seems that Pelican (at least with your configuration) uses the
> traditional HTML4 writer for HTML export.
>
> Only the `HTML5 writer`_ supports video. Finding out how/whether Pelican
> can be configured to use the HTML5 writer is left as an exercise for the
> reader.
>
I was able to configure pelican to use html5_polyglot using
rst_with_html5 Pelican plugin [1]. As I dig further and further into
html5_polyglot, I am sad to see that <video> has no first class support
in reStructuredText. I did a local patch to add more attributes to the
renderer, then another patch for allowing alternative source format, but
I think that a new video class should be added instead of hacking the
image class so deeply.
This has been done in a plugin for sphinx [2]: full support of a
distinct video node that can support extra attributes. One quirk of
using "classes" for detecting {loop,controls,autoplay} is that the video
keeps the "loop" CSS style class, which seems not useful and can
conflict with CSS classes.
I was not able to see prior discussion for proper video support in
docutils using a search engine. Please enlighten my light if anything
seems wrong with this proposal. I can volonteer to implement this
feature and document it for docutils. I think it would be better than
the current two alternatives: using out-of-tree plugins or hacking image
nodes.
Bests,
Agata
[1] https://github.com/bekcpear/pelican-rst_with_html5
[2]
https://github.com/sphinx-contrib/video/blob/master/sphinxcontrib/video.py
|
|
From: Guenter M. <mi...@us...> - 2022-04-29 09:07:54
|
On 2022-04-27, Agathe Porte wrote in gmane.text.docutils.user: > Dear Docutils maintainers, > I am using docutils 0.18.1. When feeding the following input to docutils > via pelican [0] : > .. image:: > /blog/2022/04/27/exporting-mov-and-mp4-animations-from-gimp/out.mp4 > :alt: test > I get the following HTML output: ><img alt="test" > src="/blog/2022/04/27/exporting-mov-and-mp4-animations-from-gimp/out.mp4"> > However, according to the documentation [1], this should export a ><video> tag instead of a <img> tag given that the file extension is ".mp4". It seems that Pelican (at least with your configuration) uses the traditional HTML4 writer for HTML export. Only the `HTML5 writer`_ supports video. Finding out how/whether Pelican can be configured to use the HTML5 writer is left as an exercise for the reader. .. HTML5 writer: https://docutils.sourceforge.io/docs/user/html.html#html5-polyglot > [0] https://blog.getpelican.com/ > [1] https://docutils.sourceforge.io/docs/ref/rst/directives.html#footnote-1 y |
|
From: Agathe P. <mic...@mi...> - 2022-04-27 12:03:32
|
Dear Docutils maintainers, I am using docutils 0.18.1. When feeding the following input to docutils via pelican [0] : .. image:: /blog/2022/04/27/exporting-mov-and-mp4-animations-from-gimp/out.mp4 :alt: test I get the following HTML output: <img alt="test" src="/blog/2022/04/27/exporting-mov-and-mp4-animations-from-gimp/out.mp4"> However, according to the documentation [1], this should export a <video> tag instead of a <img> tag given that the file extension is ".mp4". [0] https://blog.getpelican.com/ [1] https://docutils.sourceforge.io/docs/ref/rst/directives.html#footnote-1 Please keep me in Cc, I am not subscribed to this list. Best regards, Agata. |
|
From: Sorin P. <sor...@gm...> - 2022-04-25 11:48:31
|
Hello!
(I am not a subscriber of the mailing list and this is my first message.)
I have an issue using --template from file: the {head} and {body}
placeholders are not replaced. I installed docutils 0.18.1 using pip3
install docutils on Majaro Linux. The template I'm using does not
contain something different than the example template, only the URLs
inside are changed and a <div> added around {body}.
When I'm not using --template, the html is generated properly. When
using --template from file, the generated document is the same as the
template and it contains the placeholders, just like the template was
copied over as output.
Am I doing something wrong or is this a bug?
Command: rst2html5.py --template='site-root/htdocs/template.html'
--no-source-link --report=${ERROR_LEVEL} --no-generator
--toc-entry-backlinks --no-section-numbering --strip-comments --strict
--tab-width=4 doc.rst >> doc.html
Thank you!
--
Sorin Pânca.
|
|
From: Jeff M. <jmc...@ga...> - 2022-02-23 14:49:25
|
On 2022-02-22 3:29 p.m., Wol wrote: > > Sorry. I looked on the Sphinx web site for the support mailing list, and > this was it ... if it's not where you go for Sphinx support, then > somebody needs to tell the Sphinx webmaster! For Sphinx support, goto the Sphinx website ( https://www.sphinx-doc.org/en/master/ ) and look on the right-side panel on that opening page for the text "Questions? Suggestions? Join the sphinx-users mailing list on Google Groups" and click that link. Hope that helps, -jeff -- Jeff McKenna GatewayGeo: Developers of MS4W, MapServer Consulting and Training co-founder of FOSS4G http://gatewaygeo.com/ |
|
From: Adam T. <aat...@ou...> - 2022-02-22 22:05:50
|
> It would be very helpful for you to share a link to a repo that contains > a minimal reproducer - I've had to guess a few things about your setup here. This request stands, it is challenging to help when I don't have all the detail! > As you can see, it doesn't like it ... Testing locally, it is fine. Your excerpt below is missing the blank line between the directive and the table, though. That might be the source of the error. It also depends on what Sphinx theme you're using, as that will have different classes, so borderless may not work. (The directive applies a class to the Docutils tree, which is used as a CSS class in the HTML output -- your CSS file needs to know what to do with .borderless.) From your reply to Günter, the best way to raise an issue for Sphinx is the issue tracker, https://github.com/sphinx-doc/sphinx/issues/new/choose A |