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
(23) |
Nov
|
Dec
|
From: Guenter M. <mi...@us...> - 2019-02-13 00:54:27
|
On 2019-02-08, Dave Kuhlman wrote: ... > So, I need to ask: We want a *single* version that runs under both > Python 2 and Python 3, right? This is a long term goal, but currently, Docutils requires conversion with 2to3 during installation to run with Py 3. > Since a version that has been converted with `2to3` only runs under > Python 3, I'll need to do the following: > 1. Convert `odf_odt/__init__.py` so that it runs under both Python 2 > and Python 3. Then do a commit and check-in. > 2. Add Gilles's change. Then do a commit and check-in. > 3. Do the clean-up for `flake8` and `pep8`. Then do a commit and > check-in. > I'm pretty sure that is what we want. But, I thought I'd ask, > because the number of changes needed for Python 3 is quite large. This will become easier once we drop supporting Python 2.6 and older 3.x versions after the 0.15 release. > In the meantime, I'll get started. Suggestions and guidance will be > welcomed. If you are not put off by the large changes, go ahead now. Otherwise add the change to the Python-2 version and run the tests on both. I do the Python 3 tests with # convert with 2to3: cd ~/Code/Python/docutils/docutils python3 setup.py build || exit $? # and run the tests there:: python3.5 test3/alltests.py || exit $? Günter |
From: Dave K. <dku...@da...> - 2019-02-09 00:42:02
|
I've run into a bit of a problem. I've used docutils `odf_odt/__init__.py` under Python3. That works. But, the reason is because the version I've used is out of the Anaconda Python 3 distribution, *and* that has been converted for Python 3. The version in the docutils SVN repository has *not* been converted. Maybe Gilles is using the Anaconda version, too. I'm pretty sure that they (the people at `https://www.anaconda.com`) ran `odf_odt/__init__.py` through `2to3` and used that result, as is. When I run the Python 2 version through `2to3` I get a file that's identical to theirs, except for one more recent change. So, I need to ask: We want a *single* version that runs under both Python 2 and Python 3, right? Since a version that has been converted with `2to3` only runs under Python 3, I'll need to do the following: 1. Convert `odf_odt/__init__.py` so that it runs under both Python 2 and Python 3. Then do a commit and check-in. 2. Add Gilles's change. Then do a commit and check-in. 3. Do the clean-up for `flake8` and `pep8`. Then do a commit and check-in. I'm pretty sure that is what we want. But, I thought I'd ask, because the number of changes needed for Python 3 is quite large. In the meantime, I'll get started. Suggestions and guidance will be welcomed. Dave On Thu, Feb 07, 2019 at 12:04:47PM -0800, Dave Kuhlman wrote: > Gilles, > > Ugh. Did I really do that? > > Thanks for this fix. > > I'll do some testing and will check the unit tests. Then I'll push > it back to the repo. > > Question for the docutils list: When I apply the `flake8` style and > error checker to `__init__.py`, I get lots of warnings (405 when I > count them with `wc`). Most of them have to do with indentation, > missing or extra blank lines, missing or extra spaces, etc. I'm > willing to clean those up. Or, would that amount of changes be too > disruptive (for example, in making svn history less useful)? Anyone > have an opinion? Clean it up? Leave it alone? If I do it, I'll > make an extra check-in with only those cleanup changes. > > Dave K > > On Thu, Feb 07, 2019 at 01:48:42PM +0100, POIRET via Docutils-users wrote: > > Hello, > > > > I guess I've found a bug on rst2odt.py > > > > -- > > > > I wanted to apply custom style with rst2odt, and discovered the > > --odf-config-file option. > > > > This option allows to map the default style to a custom one (so, used in > > conjunction with --template option). > > > > But it was not working on my environment (Debian 9, python3, docutils 1.4) > > > > -- > > > > The __init__ method (l. 888) of the ODFTranslator class initializes a > > dictionary : format_map, but it's filled only for python2 > > > > Involved file: > > /usr/lib/python3/dist-packages/docutils/writers/odf_odt/__init__.py > > > > parser = ConfigParser() > > parser.read(self.settings.odf_config_file) > > for rststyle, format in parser.items("Formats"): > > if rststyle not in self.used_styles: > > self.document.reporter.warning( > > 'Style "%s" is not a style used by odtwriter.' % ( > > rststyle, )) > > if sys.version_info.major == 2: > > self.format_map[rststyle] = format.decode('utf-8') > > # my addition below > > > > else: > > self.format_map[rststyle] = format > > > > --- > > > > After applying my update, it works. (never tested with python2) > > > > > > Let me know if I can do something else. > > > > Regards, > > > > -- > > > > Gilles > > > > > > > > > > > > > > > > _______________________________________________ > > Docutils-users mailing list > > Doc...@li... > > https://lists.sourceforge.net/lists/listinfo/docutils-users > > > > Please use "Reply All" to reply to the list. > > > -- > > Dave Kuhlman > http://www.davekuhlman.org > > > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. -- Dave Kuhlman http://www.davekuhlman.org |
From: Matěj C. <mc...@ce...> - 2019-02-08 01:04:42
|
On 2019-02-07, 20:04 GMT, Dave Kuhlman wrote: > Question for the docutils list: When I apply the `flake8` > style and error checker to `__init__.py`, I get lots of > warnings (405 when I count them with `wc`). Most of them have > to do with indentation, missing or extra blank lines, missing > or extra spaces, etc. I'm willing to clean those up. Or, > would that amount of changes be too disruptive (for example, > in making svn history less useful)? Anyone have an opinion? > Clean it up? Leave it alone? If I do it, I'll make an extra > check-in with only those cleanup changes. I have no authority to speak for anybody, but my comment would be: +1 but do it in one commit named "PEP8ization" or something like that, which should in effect have no change to the functionality. Don't mix it with the real changes like fixing bugs. Matěj -- https://matej.ceplovi.cz/blog/, Jabber: mc...@ce... GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 Give a man a regular expression and he’ll match a string… teach him to make his own regular expressions and you’ve got a man with problems. -- yakugo in http://regex.info/blog/2006-09-15/247#comment-3022 |
From: David G. <go...@py...> - 2019-02-07 20:48:31
|
Flake8: As long as you do a separate check-in, I don't see a problem. +0, because "A Foolish Consistency is the Hobgoblin of Little Minds" (as noted in PEP 8 itself). David Goodger <https://david.goodger.org> On Thu, 7 Feb 2019 at 14:32, Dave Kuhlman <dku...@da...> wrote: > > Gilles, > > Ugh. Did I really do that? > > Thanks for this fix. > > I'll do some testing and will check the unit tests. Then I'll push > it back to the repo. > > Question for the docutils list: When I apply the `flake8` style and > error checker to `__init__.py`, I get lots of warnings (405 when I > count them with `wc`). Most of them have to do with indentation, > missing or extra blank lines, missing or extra spaces, etc. I'm > willing to clean those up. Or, would that amount of changes be too > disruptive (for example, in making svn history less useful)? Anyone > have an opinion? Clean it up? Leave it alone? If I do it, I'll > make an extra check-in with only those cleanup changes. > > Dave K > > On Thu, Feb 07, 2019 at 01:48:42PM +0100, POIRET via Docutils-users wrote: > > Hello, > > > > I guess I've found a bug on rst2odt.py > > > > -- > > > > I wanted to apply custom style with rst2odt, and discovered the > > --odf-config-file option. > > > > This option allows to map the default style to a custom one (so, used in > > conjunction with --template option). > > > > But it was not working on my environment (Debian 9, python3, docutils 1.4) > > > > -- > > > > The __init__ method (l. 888) of the ODFTranslator class initializes a > > dictionary : format_map, but it's filled only for python2 > > > > Involved file: > > /usr/lib/python3/dist-packages/docutils/writers/odf_odt/__init__.py > > > > parser = ConfigParser() > > parser.read(self.settings.odf_config_file) > > for rststyle, format in parser.items("Formats"): > > if rststyle not in self.used_styles: > > self.document.reporter.warning( > > 'Style "%s" is not a style used by odtwriter.' % ( > > rststyle, )) > > if sys.version_info.major == 2: > > self.format_map[rststyle] = format.decode('utf-8') > > # my addition below > > > > else: > > self.format_map[rststyle] = format > > > > --- > > > > After applying my update, it works. (never tested with python2) > > > > > > Let me know if I can do something else. > > > > Regards, > > > > -- > > > > Gilles > > > > > > > > > > > > > > > > _______________________________________________ > > Docutils-users mailing list > > Doc...@li... > > https://lists.sourceforge.net/lists/listinfo/docutils-users > > > > Please use "Reply All" to reply to the list. > > > -- > > Dave Kuhlman > http://www.davekuhlman.org > > > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. |
From: Dave K. <dku...@da...> - 2019-02-07 20:32:34
|
Gilles, Ugh. Did I really do that? Thanks for this fix. I'll do some testing and will check the unit tests. Then I'll push it back to the repo. Question for the docutils list: When I apply the `flake8` style and error checker to `__init__.py`, I get lots of warnings (405 when I count them with `wc`). Most of them have to do with indentation, missing or extra blank lines, missing or extra spaces, etc. I'm willing to clean those up. Or, would that amount of changes be too disruptive (for example, in making svn history less useful)? Anyone have an opinion? Clean it up? Leave it alone? If I do it, I'll make an extra check-in with only those cleanup changes. Dave K On Thu, Feb 07, 2019 at 01:48:42PM +0100, POIRET via Docutils-users wrote: > Hello, > > I guess I've found a bug on rst2odt.py > > -- > > I wanted to apply custom style with rst2odt, and discovered the > --odf-config-file option. > > This option allows to map the default style to a custom one (so, used in > conjunction with --template option). > > But it was not working on my environment (Debian 9, python3, docutils 1.4) > > -- > > The __init__ method (l. 888) of the ODFTranslator class initializes a > dictionary : format_map, but it's filled only for python2 > > Involved file: > /usr/lib/python3/dist-packages/docutils/writers/odf_odt/__init__.py > > parser = ConfigParser() > parser.read(self.settings.odf_config_file) > for rststyle, format in parser.items("Formats"): > if rststyle not in self.used_styles: > self.document.reporter.warning( > 'Style "%s" is not a style used by odtwriter.' % ( > rststyle, )) > if sys.version_info.major == 2: > self.format_map[rststyle] = format.decode('utf-8') > # my addition below > > else: > self.format_map[rststyle] = format > > --- > > After applying my update, it works. (never tested with python2) > > > Let me know if I can do something else. > > Regards, > > -- > > Gilles > > > > > > > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. -- Dave Kuhlman http://www.davekuhlman.org |
From: POIRET <gil...@bz...> - 2019-02-07 13:01:50
|
Hello, I guess I've found a bug on rst2odt.py -- I wanted to apply custom style with rst2odt, and discovered the --odf-config-file option. This option allows to map the default style to a custom one (so, used in conjunction with --template option). But it was not working on my environment (Debian 9, python3, docutils 1.4) -- The __init__ method (l. 888) of the ODFTranslator class initializes a dictionary : format_map, but it's filled only for python2 Involved file: /usr/lib/python3/dist-packages/docutils/writers/odf_odt/__init__.py parser = ConfigParser() parser.read(self.settings.odf_config_file) for rststyle, format in parser.items("Formats"): if rststyle not in self.used_styles: self.document.reporter.warning( 'Style "%s" is not a style used by odtwriter.' % ( rststyle, )) if sys.version_info.major == 2: self.format_map[rststyle] = format.decode('utf-8') # my addition below else: self.format_map[rststyle] = format --- After applying my update, it works. (never tested with python2) Let me know if I can do something else. Regards, -- Gilles |
From: Guenter M. <mi...@us...> - 2018-10-13 09:08:31
|
On 2018-10-11, Gregory Elkinbard wrote: > Hi folks, > I have URLs which are longer then 79 characters, how do I break them up > in docutils compliant manner. I tried “\cr” but this results in an > error. You can insert linebreaks in the link target:: test_ .. _test: http://exam ple.org results in the pseudoxml output :: <document source="/tmp/url.rst"> <paragraph> <reference name="test" refuri="http://example.org"> test <target ids="test" names="test" refuri="http://example.org"> with the line break and leading whitespace removed from the URL. Günter |
From: Gregory E. <gel...@ju...> - 2018-10-11 22:20:31
|
Hi folks, I have URLs which are longer then 79 characters, how do I break them up in docutils compliant manner. I tried “\cr” but this results in an error. Thanks Greg |
From: Guenter M. <mi...@us...> - 2018-08-31 17:22:33
|
Dear Chris, On 2018-08-28, Chris Pickel wrote: > [-- Type: text/plain, Encoding: quoted-printable --] > I tried using the “include” directive with :code: and :tab-width: -1. > For some reason, all of the tabs disappeared. ... > If I remove :tab-width: -1, Pygments no longer detects the tabbed > lines as errors, but the quoted output still can’t be copy-pasted, as > hard tabs are required in Makefiles. Thank you for reporting the problem. Indeed, negative values for the "tab-width" option work only with files included as "literal". This restriction is currently not documented in http://docutils.sourceforge.net/docs/ref/rst/directives.html#including-an-external-document-fragment Literal tabs can be preserved in "code" inclusions, too --- please try the following patch for the directive code: diff --git a/trunk/docutils/docutils/parsers/rst/directives/misc.py b/trunk/docutils/docutils/parsers/rst/directives/misc.py index 638974230..fab450a6d 100644 --- a/trunk/docutils/docutils/parsers/rst/directives/misc.py +++ b/trunk/docutils/docutils/parsers/rst/directives/misc.py @@ -144,6 +144,9 @@ class Include(Directive): return [literal_block] if 'code' in self.options: self.options['source'] = path + # Convert tabs to spaces, if `tab_width` is negative. + if tab_width < 0: + include_lines = rawtext.splitlines() codeblock = CodeBlock(self.name, [self.options.pop('code')], # arguments self.options, LaTeX ignores leading whitespace, so the following is a workaround to get a visible representation of literal tabs in LaTeX-generated PDF (there is no easy way to achieve preservation of TAB characters in drag and drop from the PDF, though). diff --git a/trunk/docutils/docutils/writers/latex2e/__init__.py b/trunk/docutils/docutils/writers/latex2e/__init__.py index 0463e3504..fafab2c34 100644 --- a/trunk/docutils/docutils/writers/latex2e/__init__.py +++ b/trunk/docutils/docutils/writers/latex2e/__init__.py @@ -1516,6 +1516,10 @@ class LaTeXTranslator(nodes.NodeVisitor): table[ord('>')] = ur'\textgreater{}' if self.insert_non_breaking_blanks: table[ord(' ')] = ur'~' + # tab chars may occur in included files (literal or code) + # quick-and-dirty replacement with spaces + # (for better results use `--literal-block-env=lstlisting`) + table[ord('\t')] = u'~' * self.settings.tab_width # Unicode replacements for 8-bit tex engines (not required with XeTeX/LuaTeX): if not self.is_xetex: if not self.latex_encoding.startswith('utf8'): sincerely, Günter |
From: Guenter M. <mi...@us...> - 2018-08-30 15:48:30
|
On 2018-08-30, R. Diez via Docutils-users wrote: >> as this, keeping paragraphs and tables together, is a layout >> problem and therefore is depending on the output format, >> it actually is nothing docutils, or AsciiDoc could or should do. >> [...] > I do not understand this point of view. This is a basic feature. > Without it, documents look unprofessional. It ist, however, a basic *layout* feature for page-based layouts. > Even CSS, arguably designed primarily for screen usage, offers more > control. See "page-break-inside: avoid", which you can add inside HTML. CSS is a layout description language. You can use CSS with Docutils to style the output accordingly. > When the browser renders the page on the screen, it ignores it. When it > prints it, or generates PDFs, it honours it. And that is independent of > the output format. > docutils or AsciiDoc should offer some sort of standard mark-up for > this. Even if it is in a subset considered "simple layout". The > distinction between plain information and layout gets a little blurry > at this point. One could think of "keep together" as a kind of "these > elements are semantically closer". There are several ways to convey the semantic of "keep together" in reStructuredText. It depends on your special need to find out which is best suited. > The whole point of such markup languages is that you have a single > source for many different output formats. However, PDF documents and > e-book readers have pages, and still are very popular output formats. > If you need to use different tags depending on the output format for > such simple matters, the promise of output format independence breaks. Indeed. However, you still need different stylesheets for the conversion of the semantic information in the rST source into a layout in, e.g. LaTeX-generated PDF or HTML for an ebook reader. Sincerely, Günter |
From: R. D. <rdi...@ya...> - 2018-08-30 06:37:41
|
> as this, keeping paragraphs and tables together, is a layout > problem and therefore is depending on the output format, > it actually is nothing docutils, or AsciiDoc could or should do. > [...] I do not understand this point of view. This is a basic feature. Without it, documents look unprofessional. Even CSS, arguably designed primarily for screen usage, offers more control. See "page-break-inside: avoid", which you can add inside HTML. When the browser renders the page on the screen, it ignores it. When it prints it, or generates PDFs, it honours it. And that is independent of the output format. docutils or AsciiDoc should offer some sort of standard mark-up for this. Even if it is in a subset considered "simple layout". The distinction between plain information and layout gets a little blurry at this point. One could think of "keep together" as a kind of "these elements are semantically closer". The whole point of such markup languages is that you have a single source for many different output formats. However, PDF documents and e-book readers have pages, and still are very popular output formats. If you need to use different tags depending on the output format for such simple matters, the promise of output format independence breaks. Best regards, rdiez |
From: R. D. <rdi...@ya...> - 2018-08-30 06:22:52
|
> With respect to LibreOffice and ODF files, > [...] The underlying problem is that LibreOffice only offers very limited page break control. As far as I know, this applies to Microsoft Word too. There are just options "do not split paragraph" and "keep with next paragraph", but those are not enough. See here for more information: Add new feature of 'keep with previous paragraph' formatting option for Writer https://bugs.documentfoundation.org/show_bug.cgi?id=64795 In fact, what you really need is some visible marker like <begin keep together in page> and <end keep together in page>. Marking single objects in an invisible is fiddly. Just add a new element later and watch your paging break again. Even CSS, arguably designed primarily for screen usage, offers more control. See "page-break-inside: avoid". Regards, rdiez |
From: Dave K. <dku...@da...> - 2018-08-29 21:14:30
|
With respect to LibreOffice and ODF files, something analogous to what Engelbert says about latex can be said about the generation of ODF files for LibreOffice Writer. After you have used rst2odt.py to translate your reST doc into an ODF file, you can open that file in LibreOffice Writer and control orphans and widows by setting paragraph styles. Look under menu item: Format --> Paragraph ... --> Text flow Then look for orphan and widow control, and also look for "Do not split paragraph" and "Keep with next paragraph". Or, click on: Styles --> Styles and Formatting And, edit the default paragraph style. And, if you work at it a bit and follow the rst2odt.py documentation, you can likely create a style-sheet (document) that initializes the orphan and widow options etc. the way you'd like. See the following for information about that: http://docutils.sourceforge.net/docs/user/odt.html#defining-and-using-a-custom-stylesheet Dave On Wed, Aug 29, 2018 at 10:07:12PM +0200, engelbert gruber wrote: > as this, keeping paragraphs and tables together, is a layout problem and > therefore is depending on the output format, it actually is nothing > docutils, or AsciiDoc could or should do. Docutils is no typesetter, that > would be the browser in the case of html, in which case the "page"-size is > volatile. > I would go for latex. latex is a system to produce correctly set > documents. > You can tweak the output by providing a your specific latex preamble > and in worst cases you have to change the text > i do not think roff is easier or better, although roff is smaller and > faster. > all the best > On Tue, 28 Aug 2018 at 10:19, R. Diez via Docutils-users > <doc...@li...> wrote: > > Hi there: > > I am evaluating reStructuredText for my documentation needs. > > The one thing that bothers me most often with Microsoft Word or > LibreOffice Writer is that paragraphs or tables are not kept together > when generating a PDF or printing. Not everyone can always read the docs > on a screen. It looks unprofessional when a page break comes at the > wrong time. > > I haven't learnt much about reStructuredText yet, but I could not > (quickly) find a way to mark paragraphs or tables to be kept together on > a page. > > For more detailed information about why I need an easy, consistent way > for this kind of thing, check out the following discussion about > AsciiDoc, which, in my opinion, does not fit the bill in this respect: > > How to keep paragraphs or table rows together in a consistent manner > > https://groups.google.com/forum/#!topic/asciidoc/5TA3SzU0W84 > > Thanks in advance, > Â rdiez > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. -- Dave Kuhlman http://www.davekuhlman.org |
From: engelbert g. <eng...@gm...> - 2018-08-29 20:07:32
|
as this, keeping paragraphs and tables together, is a layout problem and therefore is depending on the output format, it actually is nothing docutils, or AsciiDoc could or should do. Docutils is no typesetter, that would be the browser in the case of html, in which case the "page"-size is volatile. I would go for latex. latex is a system to produce correctly set documents. You can tweak the output by providing a your specific latex preamble and in worst cases you have to change the text i do not think roff is easier or better, although roff is smaller and faster. all the best On Tue, 28 Aug 2018 at 10:19, R. Diez via Docutils-users < doc...@li...> wrote: > Hi there: > > I am evaluating reStructuredText for my documentation needs. > > The one thing that bothers me most often with Microsoft Word or > LibreOffice Writer is that paragraphs or tables are not kept together when > generating a PDF or printing. Not everyone can always read the docs on a > screen. It looks unprofessional when a page break comes at the wrong time. > > I haven't learnt much about reStructuredText yet, but I could not > (quickly) find a way to mark paragraphs or tables to be kept together on a > page. > > For more detailed information about why I need an easy, consistent way for > this kind of thing, check out the following discussion about AsciiDoc, > which, in my opinion, does not fit the bill in this respect: > > How to keep paragraphs or table rows together in a consistent manner > > https://groups.google.com/forum/#!topic/asciidoc/5TA3SzU0W84 > > Thanks in advance, > rdiez > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. > |
From: R. D. <rdi...@ya...> - 2018-08-28 08:18:46
|
Hi there: I am evaluating reStructuredText for my documentation needs. The one thing that bothers me most often with Microsoft Word or LibreOffice Writer is that paragraphs or tables are not kept together when generating a PDF or printing. Not everyone can always read the docs on a screen. It looks unprofessional when a page break comes at the wrong time. I haven't learnt much about reStructuredText yet, but I could not (quickly) find a way to mark paragraphs or tables to be kept together on a page. For more detailed information about why I need an easy, consistent way for this kind of thing, check out the following discussion about AsciiDoc, which, in my opinion, does not fit the bill in this respect: How to keep paragraphs or table rows together in a consistent manner https://groups.google.com/forum/#!topic/asciidoc/5TA3SzU0W84 Thanks in advance, rdiez |
From: Chris P. <sf...@tw...> - 2018-08-28 07:52:14
|
I tried using the “include” directive with :code: and :tab-width: -1. For some reason, all of the tabs disappeared. The attached example demonstrates this by including a Makefile. Here’s the output: https://files.twotaled.com/sf...@tw.../www/rst-tabs/out.html If I remove :tab-width: -1, Pygments no longer detects the tabbed lines as errors, but the quoted output still can’t be copy-pasted, as hard tabs are required in Makefiles. The inputs, for quick viewing: https://files.twotaled.com/sf...@tw.../www/rst-tabs/doc.rst https://files.twotaled.com/sf...@tw.../www/rst-tabs/Makefile My system information: Darwin joyeuse.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64 rst2html.py (Docutils 0.14, Python 3.6.5, on darwin) |
From: Guenter M. <mi...@us...> - 2018-08-15 07:45:18
|
On 2018-08-09, Glyn Davies wrote: > Hi Folks, > I am looking for a a way to include linux commandline output into my > RST/Sphinx documentation. > The issue is with random indentation and line length and while I can > trim the lines it spoils the readability of the output and removing the > indentation completely screws the context. Below is an example of the > kind of thing I would like to include if possible. The usual way to do this would be a `literal block`__. If the content resides in an external file, use `include`__ with the "literal" option. This keeps the formatting as-is and uses a fixed-width font. As a downside, you will evt. see very long lines (overrunning the page in LaTeX output, requiring scrolling in HTML). If this is a one-off, you could manually break overfull lines in the rST source. In HTML, you may solve this via CSS (separate side-scrolling for a fixed-width literal-block element). __ http://docutils.sf.net/docs/user/rst/quickref.html#literal-blocks __ http://docutils.sf.net/docs/ref/rst/directives.html#including-an-external-document-fragment `Class arguments`__ may be used to scale down the font size of blocks with too long lines. http://docutils.sf.net/docs/ref/rst/directives.html#class Your example contains line breaks that are probably from the terminal. Maybe using a full-screen terminal to capture the output helps. Hope this gets you started, Günter |
From: Glyn D. <gly...@ca...> - 2018-08-09 19:13:14
|
Hi Folks, I am looking for a a way to include linux commandline output into my RST/Sphinx documentation. The issue is with random indentation and line length and while I can trim the lines it spoils the readability of the output and removing the indentation completely screws the context. Below is an example of the kind of thing I would like to include if possible. Cheers, Glyn Name: helloworld-deployment Namespace: default CreationTimestamp: Mon, 16 Jul 2018 15:32:11 +1200 Labels: app=helloworld Annotations: deployment.kubernetes.io/revision=2 Selector: app=helloworld Replicas: 6 desired | 6 updated | 6 total | 6 available | 0 unavailable StrategyType: RollingUpdate MinReadySeconds: 20 RollingUpdateStrategy: 1 max unavailable, 1 max surge Pod Template: Labels: app=helloworld Containers: helloworld: Image: chelios/helloworld-flask:latest Port: 5000/TCP Host Port: 0/TCP Environment: <none> Mounts: <none> Volumes: <none> Conditions: Type Status Reason ---- ------ ------ Available True MinimumReplicasAvailable Progressing True NewReplicaSetAvailable OldReplicaSets: <none> NewReplicaSet: helloworld-deployment-5896b9988 (6/6 replicas created) Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal ScalingReplicaSet 6m deployment-controller Scaled up replica set helloworld-deployment-58d59d965b to 3 Normal ScalingReplicaSet 2m deployment-controller Scaled up replica set helloworld-deployment-58d59d965b to 6 Normal ScalingReplicaSet 2m deployment-controller Scaled up replica set helloworld-deployment-5896b9988 to 1 Normal ScalingReplicaSet 2m deployment-controller Scaled down replica set helloworld-deployment-58d59d965b to 5 Normal ScalingReplicaSet 2m deployment-controller Scaled up replica set helloworld-deployment-5896b9988 to 2 Normal ScalingReplicaSet 2m deployment-controller Scaled down replica set helloworld-deployment-58d59d965b to 3 Normal ScalingReplicaSet 2m deployment-controller Scaled up replica set helloworld-deployment-5896b9988 to 4 Normal ScalingReplicaSet 1m deployment-controller Scaled down replica set helloworld-deployment-58d59d965b to 1 Normal ScalingReplicaSet 1m deployment-controller Scaled up replica set helloworld-deployment-5896b9988 to 6 Normal ScalingReplicaSet 1m deployment-controller (combined from similar events): Scaled down replica set helloworld-deployment- 58d59d965b to 0 |
From: Xavier P. <xpe...@gm...> - 2018-08-03 16:30:23
|
Opps, apologizes, it's shown in the Help. On 03/08/18 18:25, Xavier Pegenaute wrote: > Dear, > > is there any way to do not create a section per ReST heading while > converting to ODT ? > > Regards, > > Xavi > > |
From: Xavier P. <xpe...@gm...> - 2018-08-03 16:25:56
|
Dear, is there any way to do not create a section per ReST heading while converting to ODT ? Regards, Xavi |
From: george b. <bo...@gm...> - 2018-08-03 16:15:41
|
2018-08-03 18:04 GMT+03:00 David Goodger <go...@py...>: > You can also inject language modules from your custom tool: > > # appropriate imports here > docutils.parsers.rst.languages._languages[language_code] = > input_language_module > docutils.languages._languages[language_code] = output_language_module Thanks David, I really appreciate your reply. This will do it. |
From: David G. <go...@py...> - 2018-08-03 15:05:30
|
There are actually two places for language/translation modules: one for input (docutils/parsers/rst/languages/) and one for output (docutils/languages/). For this info and other background & instructions, please read "Docutils Internationalization": http://docutils.sourceforge.net/docs/howto/i18n.html The easiest way to develop new language modules is in-situ. Just put the new modules in the appropriate directories; edit and test them from there. You can also inject language modules from your custom tool:: # appropriate imports here docutils.parsers.rst.languages._languages[language_code] = input_language_module docutils.languages._languages[language_code] = output_language_module When you have completed the new language modules, please send them in and we'll add them to Docutils! David Goodger <https://david.goodger.org> On Fri, 3 Aug 2018 at 05:23, george boukeas <bo...@gm...> wrote: > > Hello everyone. > > I hope you can help me with a question: I am writing a custom tool > that parses reST in HTML and I need the output to be in a language > that is not currently supported, i.e. it is not in docutils/languages. > As far as I can tell from reading the code, docutils only checks in > docutils/languages for translation files. There doesn't seem to be a > way for me to specify that it should also check some local user > directory for the appropriate <language>.py file. > > So, is there any way to accomplish this? > > Thank you very much. > > -- George Boukeas. |
From: george b. <bo...@gm...> - 2018-08-03 10:23:03
|
Hello everyone. I hope you can help me with a question: I am writing a custom tool that parses reST in HTML and I need the output to be in a language that is not currently supported, i.e. it is not in docutils/languages. As far as I can tell from reading the code, docutils only checks in docutils/languages for translation files. There doesn't seem to be a way for me to specify that it should also check some local user directory for the appropriate <language>.py file. So, is there any way to accomplish this? Thank you very much. -- George Boukeas. |
From: Stefan M. <st...@me...> - 2018-07-24 19:09:46
|
Hi Ed! Yesterday Ed Brunelle wrote: > Anyway, I m back on emacs to edit my rst docs, thanks to a friend I > discovered that I don't need really to have the TOC on the top of the > screen. That is what I thought all the time. > I can use the C-t C-t to quick navigate to the entries, all i wanted > the TOC is when I have the rst files exported as HTML, a python util > called rst2htl > puts automatically a TOC on the top of each HTML file. Exactly. These are reasons why I consider this function superfluous. May be I should remove it entirely. Grüße Stefan |
From: Ed B. <edm...@gm...> - 2018-07-23 07:55:52
|
Hi, Guys, thank you for the help, I really appreciate it. Well, as I read on the current online manual (its just covers the v 1.4.1 I could not find anything newer than this) (http://docutils.sourceforge.net/docs/user/emacs.html) the command rst-toc-update " will automatically update an inserted table of contents following a .. contents:: directive laid out like the example above." I assume then its a bug, or this is not working on emacs under windows. as the rst-toc-update -in my case- the toc produces duplicate lines on its entries, indeed it refreshes the TOC, but usually the last entries of it are duplicated all the time. Stefan i will try to record a session of my scree to email it to you/ Anyway, I m back on emacs to edit my rst docs, thanks to a friend I discovered that I don't need really to have the TOC on the top of the screen. I can use the C-t C-t to quick navigate to the entries, all i wanted the TOC is when I have the rst files exported as HTML, a python util called rst2htl puts automatically a TOC on the top of each HTML file. kind regards Ed On Sun, 22 Jul 2018 at 14:19, Stefan Merten <st...@me...> wrote: > > Hi Ed! > > Yesterday Ed Brunelle wrote: > > On doing more tests, I am sorry to say that the toc update function is > > not working as supposed to be. > > So what is it supposed to work like? You seem to know it while I as > the maintainer do not. May be you can help me out? I'd be grateful. > > There are a couple of other functions around tocs which IMHO are far > more useful. For instance try C-c C-t C-t (rst-toc). That is what I am > using all the time for navigating in a long document. > > > looks like emacs + rst == failure, I am shifting my work to vim , bit > > PITA but rst works better now. > > AFAICS you tried one function. Indeed the one which I consider a PITA > and from my point of view could be removed without anyone noticing. > > I'd say the rest of `rst.el` works like a charm and frankly through > all the years I can't remember any such complaint. > > > Grüße > > Stefan > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Docutils-users mailing list > Doc...@li... > https://lists.sourceforge.net/lists/listinfo/docutils-users > > Please use "Reply All" to reply to the list. |