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
(2) |
Nov
|
Dec
|
From: Andreas C. <And...@st...> - 2021-11-04 10:14:29
|
Never mind - I see its been available since 0.17 and now in 0.18 with `image_link` From: Andreas Christoffersen Sent: 4. november 2021 09:25 To: 'Doc...@li...' <Doc...@li...> Subject: rst2html - option to embed images in output? Rmarkdown embeds images in html files. It would be great if a similar option was available with docutils and rst2html. I often write documentation which I need to send via email and such. The html format is optimal - but embedding of images is necessary. This is my first time posting. Not yet subscribed to the mailinglist. Sincerely |
From: Andreas C. <And...@st...> - 2021-11-04 08:41:01
|
Rmarkdown embeds images in html files. It would be great if a similar option was available with docutils and rst2html. I often write documentation which I need to send via email and such. The html format is optimal - but embedding of images is necessary. This is my first time posting. Not yet subscribed to the mailinglist. Sincerely |
From: Guenter M. <mi...@us...> - 2021-10-30 21:20:01
|
On 2021-10-22, Alan G. Isaac wrote: > I am using rst2html5 with --no-footnote-backlinks. > This is supposed to turn off backlinks from citations too. > (Hmm; shd't these be separate? Anyway ...) > It does if the citation reference occurs only once. > But if the citation reference occurs multiple times, > then there is still a list of back references. > There shouldn't be; right? You are right. It is actually even worse, the once-referenced footnotes and citations contained a spurious closing tag making the HTML invalid. Fixed and tested locally, will be in 0.18.1. Thank you for the report, Günter |
From: engelbert g. <eng...@gm...> - 2021-10-26 12:55:25
|
done. Some Of The Changes ================== * Identifiers: During identifier normalization <https://docutils.sourceforge.io/docs/ref/rst/directives.html#identifier-normalization>, leading number and hyphen characters are no longer stripped from a reference name <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#reference-names>, if the id_prefix <https://docutils.sourceforge.io/docs/user/config.html#id-prefix> setting is non-empty. * HTML5: Use the semantic tag <aside> for footnote text and citations, topics (except abstract and toc), admonitions, and system messages. Use <nav> for the Table of Contents. Make "auto" table column widths the default: * Major refactoring and fixes/additions in docutils/utils/math/math2html.py and docutils/utils/math/latex2mathml.py For details consult https://docutils.sourceforge.io/RELEASE-NOTES.html |
From: Alan G. I. <ala...@gm...> - 2021-10-22 18:00:58
|
I am using rst2html5 with --no-footnote-backlinks. This is supposed to turn off backlinks from citations too. (Hmm; shd't these be separate? Anyway ...) It does if the citation reference occurs only once. But if the citation reference occurs multiple times, then there is still a list of back references. There shouldn't be; right? Thanks, Alan Isaac |
From: Pierre O. <os...@ce...> - 2021-10-12 13:38:57
|
On 12/10/2021 13:23, Guenter Milde wrote: > > Your example resembles example 7 in > https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#option-lists > > --an-even-longer-option > The description can also start on the next line. > > which also states the reasoning behind this behaviour. > Hmm... I completely missed that. :) > What is missing, is a caveat in the specification of definition lists: the > term may not start with a hyphen. This is now added in the repository. > That's a nice addition. Especially including a reference to how to escape around the issue. However I would also suggest some adjustments to the parts that tripped me up as I re-read the option list definition multiple times: > Option lists are two-column lists... ^^^^^^^^^^ > There must be at least two spaces between the option(s)... ^^^^^^^^^^^^^^^^^^^^^^^^^^^ > +----------------------------+-------------+ > | option [" " argument] " " | description | > +-------+--------------------+ | ^^^^ Perhaps a footnote or similar emphasizing that this has an exception? And should the permitted trailing single space be explicitly documented? > > Thank you for reporting, > No problem. Trying to spare the next person the head ache. :) Regards -- Pierre Ossman Software Development Cendio AB https://cendio.com Teknikringen 8 https://twitter.com/ThinLinc 583 30 Linköping https://facebook.com/ThinLinc Phone: +46-13-214600 A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? |
From: Guenter M. <mi...@us...> - 2021-10-12 11:24:13
|
Hej Pierre, On 2021-10-11, Pierre Ossman wrote in gmane.text.docutils.user: > Unfortunately there is a bug/deviation in the docutils implementation of > option lists compared to how they are described. This causes it to > misparse some definition lists as option lists instead. > E.g. this: > --something-that-looks-like-an-option > But it really isn't! We just like dashes! > Will result in an option list in the parsed doctree. But according to > the documentation an option list requires two or more spaces after the > option. Your example resembles example 7 in https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#option-lists --an-even-longer-option The description can also start on the next line. which also states the reasoning behind this behaviour. What is missing, is a caveat in the specification of definition lists: the term may not start with a hyphen. This is now added in the repository. Thank you for reporting, Günter |
From: Pierre O. <os...@ce...> - 2021-10-11 13:40:16
|
Unfortunately there is a bug/deviation in the docutils implementation of option lists compared to how they are described. This causes it to misparse some definition lists as option lists instead. E.g. this: --something-that-looks-like-an-option But it really isn't! We just like dashes! Will result in an option list in the parsed doctree. But according to the documentation an option list requires two or more spaces after the option. So this should really be a definition list. A casual glance at the code suggests that it is this regexp that is incorrect: 'option_marker': r'%(option)s(, %(option)s)*( +| ?$)' % pats, I don't think that last '| ?$' should be there. This code has been around for at least 19 years, and it even has a test that explicitly looks for this behaviour. So I'm not sure what to do here. Either the code or the documentation needs to change. Normally I'd advocate to fix the code, but I'm not so sure if there are people relying on this after it being around for so long. (not subscribed, so cc on replies would be appreciated) Regards -- Pierre Ossman Software Development Cendio AB https://cendio.com Teknikringen 8 https://twitter.com/ThinLinc 583 30 Linköping https://facebook.com/ThinLinc Phone: +46-13-214600 A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? |
From: engelbert g. <eng...@gm...> - 2021-10-05 21:42:21
|
anyone who wants to try it out can install it from pypi pip install --pre docutils or better in an virtualenvironment python3 -m venv du3 cd du3 pip install --pre docutils final release tuesday in two weeks if nothing breaks all the best |
From: Guido C. <gu...@gu...> - 2021-08-15 15:42:09
|
Hello, I have a problem with double quotes not being rendered in the term of an rst definition list in the mpv documentation: i show-text "Filename: ${filename}" shows the filename of the current file when pressing the ``i`` key The double quotes are rendered in the html version, but not in the manpage. With i show-text """Filename: ${filename}"", they are rendered in the manpage but the html version has all those quotes literally. If the first " is preceded by a character other than space, the " are rendered. Is this a bug or am I missing something? |
From: Guenter M. <mi...@us...> - 2021-07-08 09:35:15
|
On 2021-07-07, Alan G. Isaac wrote: > If I try to link to the stylesheet instead of embedding it > (in rst2html5) I get a path that is not relative to the > working directory. Instead it backs up to the root and > works it's way down. (But that's terrible, since the > target computer naturally has a different folder > structure.) > 1. Is this expected? > 2. Possibly relevant (?): I invoke a particular Python > by using it's full path. Use, depending on your use case, stylesheet__ or stylesheet_path__. __ https://docutils.sourceforge.io/docs/user/config.html#stylesheet __ https://docutils.sourceforge.io/docs/user/config.html#stylesheet-path-1 Günter |
From: Guenter M. <mi...@us...> - 2021-07-08 09:31:39
|
On 2021-07-06, Alan G. Isaac wrote: > Low priority inquiry: in the HTML writer, > why does an ``aside`` for a footnote have a ``brackets`` class? To distinguish it from footnotes using superscript. https://docutils.sourceforge.io/docs/user/config.html#footnote-references See also the provided stylesheets how this is handled. > Wdt it make more sense to add this to the span.label and the > use CSS to provide the actual brackets? No. It is actually a recent change to the HTML5 writer (r8734) that the brackets are written into the source: This way they are present when copying text from the browser (also with superscript labels, as the superscript feature is lost). Günter |
From: Guenter M. <mi...@us...> - 2021-07-08 09:26:31
|
On 2021-07-06, Alan G. Isaac wrote: > Would it make sense to add ``reference`` to the standard roles? This is a long-standing TODO issue. See https://docutils.sourceforge.io/docs/dev/todo.html#object-numbering-and-object-references . > Related aside: the ``rst2latex`` writer needs to move the figure label > to *after* the caption, otherwise ``--reference-label=ref`` > does not work correctly (i.e., does not produce the figure number). This option (like -use-bibtex) is experimental, undocumented and currently non-maintained. Could you file an enhancement report? Günter |
From: Alan G. I. <ala...@gm...> - 2021-07-07 19:20:23
|
If I try to link to the stylesheet instead of embedding it (in rst2html5) I get a path that is not relative to the working directory. Instead it backs up to the root and works it's way down. (But that's terrible, since the target computer naturally has a different folder structure.) 1. Is this expected? 2. Possibly relevant (?): I invoke a particular Python by using it's full path. Thanks, Alan Isaac |
From: Alan G. I. <ala...@gm...> - 2021-07-06 19:58:50
|
Low priority inquiry: in the HTML writer, why does an ``aside`` for a footnote have a ``brackets`` class? Wdt it make more sense to add this to the span.label and the use CSS to provide the actual brackets? Thanks, Alan Isaac |
From: Alan G. I. <ala...@gm...> - 2021-07-06 17:03:35
|
Would it make sense to add ``reference`` to the standard roles? Motivating example: I would like to produce a ``figure-ref`` role to link to figures with a ``name`` class; I imagine that this would subclass reference but would be styled differently. For example, for an HTML writer, as ``target-counter()`` becomes available, it would make use of the counter. Related aside: the ``rst2latex`` writer needs to move the figure label to *after* the caption, otherwise ``--reference-label=ref`` does not work correctly (i.e., does not produce the figure number). Alan Isaac |
From: Alan G. I. <ala...@gm...> - 2021-07-06 14:41:09
|
The release notes at https://docutils.sourceforge.io/HISTORY.html#release-0-17-2021-04-03 explain the use of text level tags by making reference to inline elements. This misled to me to think that this applied to the list of inline elements at https://docutils.sourceforge.io/docs/ref/doctree.html#inline-elements Instead, follow the examples at https://docutils.sourceforge.io/test/functional/input/data/html5-text-level-tags.txt This post is for other users. Thanks to Günter for helping me understand. fyi, Alan Isaac |
From: Alan G. I. <ala...@gm...> - 2021-07-03 19:55:14
|
This sounds great. Here is how I understand this: if I update from Subversion and install the latest revision (8786) that I should be able to use my custom `dfn(emphasis)` role and see a `dfn` element if I use the rst2html5.py script (which, iiuc, uses the rst2html5_polyglot writer). However, I still see an `em` element with a `dfn` class. Have I misunderstood? I'm looking at https://docutils.sourceforge.io/HISTORY.html#release-0-17-2021-04-03 Thanks, Alan Isaac On 7/3/2021 5:30 AM, Guenter Milde via Docutils-users wrote: > This goal is already easy to achieve since version: > > - Use HTML text-level 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. > Use <small> for generated code line numbers. > > -- HISTORY.txt |
From: Guenter M. <mi...@us...> - 2021-07-03 09:31:25
|
On 2021-07-02, Alan G. Isaac wrote: > Might docutils consider adding the `dfn` role? (It is already in Sphinx.) > For an HTML writer, this would become a `dfn` element. > Goal: add this semantic content to HTML output. This goal is already easy to achieve since version: - Use HTML text-level 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. Use <small> for generated code line numbers. -- HISTORY.txt For an example see the output of docutils/test/functional/input/data/html5-text-level-tags.txt in test/functional/expected/standalone_rst2html5.html I don't think it makes much sense to provide these output-format specific roles as default roles. I did consider an rST include-file in "docutils/parsers/rst/include/": Standard data files intended for inclusion in reStructuredText documents are distributed with the Docutils source code, located in the "docutils" package in the ``docutils/parsers/rst/include`` directory. To access these files, use the special syntax for standard "include" data files, angle brackets around the file name:: .. include:: <isonum.txt> -- directives.txt Günter |
From: Alan G. I. <ala...@gm...> - 2021-07-02 17:45:22
|
Might docutils consider adding the `dfn` role? (It is already in Sphinx.) For an HTML writer, this would become a `dfn` element. Goal: add this semantic content to HTML output. Thanks for considering, Alan Isaac |
From: Guenter M. <mi...@us...> - 2021-06-18 09:40:56
|
Dear Sidney, On 2021-05-27, Sidney Cadot wrote: >> This is not only impossible (with standard rST syntax), it is also an >> invalid Doctils document tree. >> https://docutils.sourceforge.io/docs/ref/docutils.dtd >> https://docutils.sourceforge.io/docs/ref/doctree.html#element-hierarchy > Ok, that settles it. The restriction seems strange and somewhat arbitrary > to my programmer's eye, but it is there alright. With more input and searching in the Docutils sources, I have to correct myself on both accounts. Details below. > > >> Second, if not: is there a fundamental reason why the second > > >> parse-tree would be incompatible with the document model of RsT? > > >> (If that's the case, why?) While your second example would be an invalid Docutils document, there is no need to have a valid document tree before the parsing and transformations are completed. In other words, a transient document tree state like <document source="/tmp/simple.rst"> <section ids="first-section" names="first\ section"> <title>First section</title> <paragraph>First lorem ipsum</paragraph> </section> ← place next element here! is not invalid per se. it depends on what would be the next element: * if the next element is <section level="1"> or <section level="2">, fine. * if the next element is *not* a <section> or a <section> with incompatible level (outside 1, ..., level_of_the_closed_section + 1), the final document tree is invalid. > > >> Third, if it is possible in principle, but not yet in practice, is > > >> there a way to implement this without touching the parser; say, by > > >> adding a docutils Directive? This should be possible -- directives can do "anything" that is possible in Python: As a new section can close the preceding section, there must be a way to do this programatically. The solution is described in the docstring for docutils.parser.rst.states.check_subsection(): Check for a valid subsection header. Return 1 (true) or None (false). When a new section is reached that isn't a subsection of the current section, back up the line count (use ``previous_line(-x)``), then ``raise EOFError``. The current StateMachine will finish, then the calling StateMachine can re-examine the title. This will work its way back up the calling chain until the correct section level isreached. @@@ Alternative: Evaluate the title, store the title info & level, and back up the chain until that level is reached. Store in memo? Or return in results? :Exception: `EOFError` when a sibling or supersection encountered. It should be possible to "close" a section by a directive raising `EOFError` and the following rST examples would generate valid documents:: A section --------- .. close-section:: Another section --------------- as well as :: A section --------- .. close-section:: .. directive-that-generates-a-section-with-compatible-level:: OTOH, such a directive will certainly not become part of the Docutils, because input like :: A section --------- Section content .. close-section:: Anything other than the preceding examples. would generate an invalid document. Therfore, my suggestion would be to incorporate the closing into the "directive-that-generates-a-section-with-compatible-level", e.g. so that you may write, e.g, :: A section --------- A subsection ~~~~~~~~~~~~ Subsection content. .. directive-that-generates-a-section-with-compatible-level:: :section-level: 1 Caveats: * This is not part of the API but an implementation detail that may change in future. * I did not test. * I don't know about side-effects. > A similar request was filed to the issue tracker. >> https://sourceforge.net/p/docutils/feature-requests/74 >> It turned out to be about an intermediate structure (adding sections by a >> directive). In this case, the resulting doctree would be valid but telling >> the section-adding-directive where to add these sections seems a better >> solution than changing rST syntax or adding a section-closing directive in >> Docutils. > Yes, that seems very much related to what I was thinking about. > As it turns out handling this stuff fully at the sphinx level has its own > set of challenges. Especially the toctree stuff and how it interacts with > the section headers seems quite badly designed I am sorry to say, to the > point that the general recommendation seems to be: don't use them in the > same document -- which is annoying (and hard to defend from a usability > perspective). I had hoped that some alternative solution with help from the > docutils level could be useful; but I guess this will need to be fully > fixed at the sphinx level after all. I am not familiar with the toctree and Sphinx extensions, so I cannot recommend here besides the general adwise to balance the gain in usability with added complexity. I hope this helps a bit, Günter |
From: Guenter M. <mi...@us...> - 2021-06-17 06:55:23
|
On 2021-06-16, Jorge Scandaliaris wrote: > Hi, > I am writing some documents in ReStructuredText which include source code > and I want the end result to be in PDF, so I used rst2latex to generate the > .tex files. I wanted to experiment with different stylesheets so I tried to > convert pygments CSS stylesheets to LaTeX using the pygments_css2sty.py > script. Is this script provided by Pygments or from the Docutils sandbox? https://docutils.sourceforge.io/sandbox/stylesheets/pygments_css2sty.py > I post here because my initial attempt failed with an error message from > the script. After troubleshooting a bit, I found that the first part of the > CSS generated by pygmentize seemed different to the rest. I tried removing > that part and the script worked fine. I guess the output from pygmentize > might have changed recently. There were several changes to Pygments since the last update of the Docutils sandbox script 2013-03-27, indeed. > What I did was: > pygmentize -f html -S colorful >pygments-colorful.css > and the part I had to remove from the top was something like: > pre { line-height: 125%; } > td.linenos .normal { color: inherit; background-color: transparent; > padding-left: 5px; padding-right: 5px; } > span.linenos { color: inherit; background-color: transparent; padding-left: > 5px; padding-right: 5px; } > td.linenos .special { color: #000000; background-color: #ffffc0; > padding-left: 5px; padding-right: 5px; } > span.linenos.special { color: #000000; background-color: #ffffc0; > padding-left: 5px; padding-right: 5px; } On my Debian/stable system, with Pygments version 2.3.1, the output of `pygmentize -f html -S colorful` does not contain these lines this further indicates that there was a "recent" addition. > Maybe the script has to be adapted to filter out this portion, or to > generate the correct output from it? I am quite ignorant in CSS and html, > so I can't really tell what's doing. Volunteers/patches welcome. Thank you for reporting, Günter |
From: Jorge S. <jsc...@gm...> - 2021-06-16 00:54:29
|
Hi, I am writing some documents in ReStructuredText which include source code and I want the end result to be in PDF, so I used rst2latex to generate the .tex files. I wanted to experiment with different stylesheets so I tried to convert pygments CSS stylesheets to LaTeX using the pygments_css2sty.py script. I post here because my initial attempt failed with an error message from the script. After troubleshooting a bit, I found that the first part of the CSS generated by pygmentize seemed different to the rest. I tried removing that part and the script worked fine. I guess the output from pygmentize might have changed recently. What I did was: pygmentize -f html -S colorful >pygments-colorful.css and the part I had to remove from the top was something like: pre { line-height: 125%; } td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } Maybe the script has to be adapted to filter out this portion, or to generate the correct output from it? I am quite ignorant in CSS and html, so I can't really tell what's doing. Regards, Jorge Scandaliaris |
From: Alan G. I. <ala...@gm...> - 2021-06-03 21:23:18
|
> On 2021-06-01, Alan G. Isaac wrote: >> Adding a comment within an epigraph directive produces >> an extra (empty) blockquote element in the output. E.g., > On 6/3/2021 9:48 AM, Guenter Milde via Docutils-users wrote: > I am not surprised: > The attribution only closes the block-quote, not the > directive Got it. Thanks. Alan Isaac |
From: Guenter M. <mi...@us...> - 2021-06-03 13:48:37
|
On 2021-06-01, Alan G. Isaac wrote: > Adding a comment within an epigraph directive produces > an extra (empty) blockquote element in the output. E.g., > .. epigraph:: > An epigraph. > -- A.U. Thor > .. a comment I am not surprised: * The “epigraph” directive produces an “epigraph”-class block quote. -- docutils/docs/ref/rst/directives.html#epigraph * Multiple block quotes may occur consecutively if terminated with attributions. -- docutils/docs/ref/rst/directives.html#epigraph * The directive block consists of any text on the first line of the directive after the directive marker, and any subsequent indented text. -- docutils/docs/ref/rst/restructuredtext.html#directives The attribution only closes the block-quote, not the directive. * The directive block consists of any text on the first line of the directive after the directive marker, and any subsequent indented text. -- docutils/docs/ref/rst/restructuredtext.html#directives The attribution only closes the block-quote, not the directive:: .. epigraph:: An epigraph. -- S. Ource Another epigraph * Comments may replace text blocks in syntax constructs:: This is a paragraph .. this is a comment in a block-quote See the pseudo-xml output of this example. * The directive block consists of any text on the first line of the directive after the directive marker, and any subsequent indented text. -- docutils/docs/ref/rst/restructuredtext.html#directives The attribution only closes the block-quote, not the directive. I agree that other outcomes may be equally feasible but I cannot see a clear winner in any other handling of the given input example. If you really want a block quote after the attribution without the "epigraph" class, the two input alternatives give the same result (except for the different place of the empty comment):: .. epigraph:: a block quote -- by someone .. the next block-quote: no epigraph .. class:: epigraph .. a block quote -- by someone the next block-quote: no longer epigraph Günter |