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
|
Dec
|
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. |
From: Stefan M. <st...@me...> - 2018-07-22 13:19:00
|
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 |
From: Ed B. <edm...@gm...> - 2018-07-21 12:41:07
|
Hi, On doing more tests, I am sorry to say that the toc update function is not working as supposed to be. buggy in fact, recreates a toc under the old toc or just inserts new entries into the toc. looks like emacs + rst == failure, I am shifting my work to vim , bit PITA but rst works better now. best of luck Ed |
From: Stefan M. <st...@me...> - 2018-07-18 17:10:50
|
Hi Ed! 3 hours ago Ed Brunelle wrote: > I have the following test.rst : > > list1 > ----- > > list2 > ----- > > list3 > ----- Thanks. I can reproduce the problem. `rst-toc-insert` is somewhat picky in what it accepts. I do not use it myself (and have not developed it myself) and doubt it's use. Thus I did not do anything to make it more useful. I just removed a couple of bugs ;-) . In fact you have found something I call a mis-feature in my unit tests for this function. Please read the documentation of `rst-toc-insert` carefully: Insert the table of contents of the current section at the current column. By default the top level is ignored if there is only one, because we assume that the document will have a single title. Your document has neither a title nor is the cursor in a section. Try it with this example: ===== TITLE ===== list1 ----- list2 ----- list3 ----- Now in the line after the title `rst-toc-insert` works as documented. However, the intended usage of this function is to use it at the point marked by ``^@``: ===== TITLE ===== .. ^@ list1 ----- list2 ----- list3 ----- Grüße Stefan |
From: Ed B. <edm...@gm...> - 2018-07-18 17:02:50
|
HI, that's it! Putting a title fixed it!! Many thanks Stefan! Ed On 18 July 2018 at 17:57, Stefan Merten <st...@me...> wrote: > Hi Ed! > > 3 hours ago Ed Brunelle wrote: > > I have the following test.rst : > > > > list1 > > ----- > > > > list2 > > ----- > > > > list3 > > ----- > > Thanks. I can reproduce the problem. > > `rst-toc-insert` is somewhat picky in what it accepts. I do not use it > myself (and have not developed it myself) and doubt it's use. Thus I > did not do anything to make it more useful. I just removed a couple of > bugs ;-) . > > In fact you have found something I call a mis-feature in my unit > tests for this function. > > Please read the documentation of `rst-toc-insert` carefully: > > Insert the table of contents of the current section at the current > column. > By default the top level is ignored if there is only one, because > we assume that the document will have a single title. > > Your document has neither a title nor is the cursor in a section. Try > it with this example: > > ===== > TITLE > ===== > > list1 > ----- > > list2 > ----- > > list3 > ----- > > > Now in the line after the title `rst-toc-insert` works as documented. > > However, the intended usage of this function is to use it at the point > marked by ``^@``: > > ===== > TITLE > ===== > > .. ^@ > > list1 > ----- > > list2 > ----- > > list3 > ----- > > > Grüße > > Stefan > |
From: Ed B. <edm...@gm...> - 2018-07-18 13:02:11
|
just to add: I have the following test.rst : list1 ----- list2 ----- list3 ----- when I perform a C-c C-t C-t, a new buffer opens "Table of Contents" that displays the 'headers' list1 list2 list3 so I assume the index function works, but there is no way to create ir on the top of the screen (cursor on the top left corner + C-c C-T TAB) thanks ed |
From: Ed B. <edm...@gm...> - 2018-07-18 12:54:56
|
Many thanks of the help guys. rst version: *Its value is "1.5.2"* and the emacs i am running now: *Its value is "26.1"* No problem to share it on public anyway. On 16 July 2018 at 20:12, Stefan Merten <st...@me...> wrote: > Hi Ed! > > I'm the maintainer of rst.el which implements the reStructuredText > support in Emacs. > > Yesterday Ed Brunelle wrote: > > I am trying rst on emacs (both versions 25 and 27) on windows 8.1. > > The rst-toc-insert command is not working, produces nothing. > > > > is this a feature only for emacs on linux/unix? > > No, this feature does not depend on the operating system in any way. > In general the feature is supposed to work though I'm not using it > myself. > > Can you please give me some details (private mail preferred)? Please > give me the output of > > C-h v rst-version > > and > > C-h v emacs-version > > In addition a small example file would be useful and a description of > what you are trying to do. > > > Grüße > > Stefan > > |
From: Ed B. <edm...@gm...> - 2018-07-18 12:51:57
|
No error... just nothing on the screen Even with a "M-x rst-toc-insert" I am getting only : You can run the command `rst-toc-insert` with C-c C-t TAB On 17 July 2018 at 09:47, Matěj Cepl <mc...@ce...> wrote: > On 2018-07-15, 09:38 GMT, Ed Brunelle wrote: > > I am trying rst on emacs (both versions 25 and 27) on windows > > 8.1. The rst-toc-insert command is not working, produces > > nothing. > > Don't you get some error message somewhere? > > Best, > > Matěj > -- > https://matej.ceplovi.cz/blog/, Jabber: mc...@ce... > GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 > > Basically, the only “intuitive” interface is the nipple. After > that, it's all learned. > -- Bruce Ediger when discussing intuivity of Mac OS > http://groups.google.com/group/comp.sys.next.advocacy\ > /msg/7fa8c580900353d0 > > > ------------------------------------------------------------ > ------------------ > 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: Matěj C. <mc...@ce...> - 2018-07-17 09:30:22
|
On 2018-07-15, 09:38 GMT, Ed Brunelle wrote: > I am trying rst on emacs (both versions 25 and 27) on windows > 8.1. The rst-toc-insert command is not working, produces > nothing. Don't you get some error message somewhere? Best, Matěj -- https://matej.ceplovi.cz/blog/, Jabber: mc...@ce... GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 Basically, the only “intuitive” interface is the nipple. After that, it's all learned. -- Bruce Ediger when discussing intuivity of Mac OS http://groups.google.com/group/comp.sys.next.advocacy\ /msg/7fa8c580900353d0 |
From: Stefan M. <st...@me...> - 2018-07-16 19:36:51
|
Hi Ed! I'm the maintainer of rst.el which implements the reStructuredText support in Emacs. Yesterday Ed Brunelle wrote: > I am trying rst on emacs (both versions 25 and 27) on windows 8.1. > The rst-toc-insert command is not working, produces nothing. > > is this a feature only for emacs on linux/unix? No, this feature does not depend on the operating system in any way. In general the feature is supposed to work though I'm not using it myself. Can you please give me some details (private mail preferred)? Please give me the output of C-h v rst-version and C-h v emacs-version In addition a small example file would be useful and a description of what you are trying to do. Grüße Stefan |
From: Ed B. <edm...@gm...> - 2018-07-15 09:38:31
|
Hi, I am trying rst on emacs (both versions 25 and 27) on windows 8.1. The rst-toc-insert command is not working, produces nothing. is this a feature only for emacs on linux/unix? thank you in advance, Ed |
From: Ashim G. <ash...@gm...> - 2018-06-30 15:43:13
|
Hello Docutils-users, The documentation webpage about Directives_ seems to be missing. It has a filesize of 0 kb. The page was available some time ago: https://web.archive.org/web/20180521031733/http://docutils.sourceforge.net/docs/ref/rst/directives.html. It is a valuable reference. I'm not subscribed to this mailing list: just passing through. Thank You for the great software. .. _Directives: http://docutils.sourceforge.net/docs/ref/rst/directives.html -- Regards, Ashim Ghosh :) |
From: Guenter M. <mi...@us...> - 2018-06-29 19:53:52
|
On 2018-06-09, Cédric Van Rompay wrote: > Hi, > In a previous email [1] I mentioned the following command to install > docutils using pipenv from the sourceforge SVN repo: > pipenv install -e > svn+https://svn.code.sf.net/p/docutils/code/trunk/docutils#egg=docutils > Well actually it does not work. When I try to import docutils I get: > NameError: name 'StandardError' is not defined > From a quick Google search this is an issue of Python 2 to Python 3 > conversion (I am using Python 3). > Previously I was using pipenv and Python 3 but getting the code from > the Pypi repos and had no such problem. > My guess would be that pip (same problem if using pip instead of > pipenv, here pipenv simply calls pip) runs the "setup.py" with the > Python 2 runtime and not the Python 3 one. This would be a bit > surprising though, as my pip explicitly uses Python 3: > $ pip --version > pip 10.0.1 from > /home/cedric/.local/share/virtualenvs/docutils-from-sourceforge-UNMQpB5a/lib/python3.6/site-packages/pip > (python 3.6) > Any idea how to fix that ? Unfortunately not. It seems to be a pip/pipenv problem rather than a Docutils problem, though. As a workaround, you may try to separate download and installation. Using the "traditional" install tools (as described in the documentation) should work. > Or alternatively, do you know when the Pypi repository will be updated > to revision >=8217 ? > [1]: https://sourceforge.net/p/docutils/mailman/docutils-users/thread/CAJKLPhz%2Bi3qfCXdD%3DKeC_0s7tJ%3D9x5nP8MDwnD-EJCTHkAetwg%40mail.gmail.com/#msg36338595 There are currently no plans for a new release as we have several bugfixes in the pipeline waiting for approvement by David G. Günter |
From: Guenter M. <mi...@us...> - 2018-06-28 10:34:55
|
Dear Tongtong Shen, Thank you for reporting the problem. On 2018-06-25, Tongtong Shen wrote: > Good afternoon! > Thank you for your time. > I encountered a problem when running > ./buildhtml.py ../ > with the "--traceback" output as the following: ... > /// Processing directory: ../docs/ref/rst ... > ::: Processing: directives.txt > Traceback (most recent call last): ... > File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 2833, in definition_list_item > termlist, messages = self.term(termline, lineno) > File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 2869, in term > classifier_node[0].rawsource = part > File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/nodes.py", line 569, in __getitem__ > return self.children[key] > IndexError: list index out of range > Docutils version (0.15b.dev) > Python version (2.7.15) > My OS type & version: macOS High Sierra, Version 10.13.5 (17F77) > Command line used: ./buildhtml.py ../ The problem seems to be solved with the (unpublished) changes in my local setup (see the latest patches for bug 332 https://sourceforge.net/p/docutils/bugs/332/). Unfortunately, I am waiting since January for an OK to commit. Thanks again, Günter |
From: Tongtong S. <sh...@pu...> - 2018-06-25 23:07:04
|
Good afternoon! Thank you for your time. I encountered a problem when running ./buildhtml.py ../ with the "--traceback" output as the following: /// Processing directory: ../ ::: Processing: COPYING.txt ::: Processing: RELEASE-NOTES.txt ::: Processing: BUGS.txt ::: Processing: FAQ.txt ::: Processing: THANKS.txt ::: Processing: README.txt ::: Processing: HISTORY.txt /// ...Skipping directory (pruned): ../tools /// ...Skipping directory (pruned): ../test /// ...Skipping directory (pruned): ../licenses /// ...Skipping directory (pruned): ../docutils /// Processing directory: ../docs ::: Processing: index.txt /// Processing directory: ../docs/ref ::: Processing: doctree.txt ::: Processing: transforms.txt /// Processing directory: ../docs/ref/rst ::: Processing: restructuredtext.txt ::: Processing: directives.txt Traceback (most recent call last): File "./buildhtml.py", line 249, in <module> Builder().run() File "./buildhtml.py", line 197, in run self.visit(root, files, dirs) File "./buildhtml.py", line 220, in visit self.process_txt(directory, name) File "./buildhtml.py", line 242, in process_txt settings=settings) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/core.py", line 380, in publish_file enable_exit_status=enable_exit_status) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/core.py", line 664, in publish_programmatically output = pub.publish(enable_exit_status=enable_exit_status) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/core.py", line 217, in publish self.settings) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/readers/__init__.py", line 72, in read self.parse() File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/readers/__init__.py", line 78, in parse self.parser.parse(self.input, document) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/__init__.py", line 191, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 171, in run input_source=document['source']) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/statemachine.py", line 239, in run context, state, transitions) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/statemachine.py", line 460, in check_line return method(match, context, next_state) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 3010, in text self.section(title.lstrip(), source, style, lineno + 1, messages) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 327, in section self.new_subsection(title, lineno, messages) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 395, in new_subsection node=section_node, match_titles=True) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse node=node, match_titles=match_titles) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/statemachine.py", line 239, in run context, state, transitions) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/statemachine.py", line 460, in check_line return method(match, context, next_state) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 3010, in text self.section(title.lstrip(), source, style, lineno + 1, messages) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 327, in section self.new_subsection(title, lineno, messages) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 395, in new_subsection node=section_node, match_titles=True) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse node=node, match_titles=match_titles) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/statemachine.py", line 239, in run context, state, transitions) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/statemachine.py", line 460, in check_line return method(match, context, next_state) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 2771, in underline self.section(title, source, style, lineno - 1, messages) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 327, in section self.new_subsection(title, lineno, messages) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 395, in new_subsection node=section_node, match_titles=True) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse node=node, match_titles=match_titles) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/statemachine.py", line 239, in run context, state, transitions) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/statemachine.py", line 460, in check_line return method(match, context, next_state) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 2728, in indent blank_finish=blank_finish, blank_finish_state='Definition') File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 319, in nested_list_parse node=node, match_titles=match_titles) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/statemachine.py", line 239, in run context, state, transitions) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/statemachine.py", line 460, in check_line return method(match, context, next_state) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 2910, in indent itemnode, blank_finish = self.definition_list_item(context) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 2833, in definition_list_item termlist, messages = self.term(termline, lineno) File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/parsers/rst/states.py", line 2869, in term classifier_node[0].rawsource = part File "/Users/shentongtong/Library/Python/2.7/lib/python/site-packages/docutils/nodes.py", line 569, in __getitem__ return self.children[key] IndexError: list index out of range Docutils version (0.15b.dev) Python version (2.7.15) My OS type & version: macOS High Sierra, Version 10.13.5 (17F77) Command line used: ./buildhtml.py ../ Thank you for your help! Regards, Tongtong. |
From: Aleksandr S. <al...@go...> - 2018-06-10 15:23:00
|
Hello! I have a script that converts XHTML files produced by Sphinx epub builder back to reStructuredText. If anyone is interested, I can publish the source. The problem I had to solve is this: we have some documents in rST, and we've got to make a translation. Unfortunately, CAT (Computer-assisted translation) tools do not play well with plain text files. So I gave XHTML files to my translators, and I got back HTML files with most of the markup preserved. The script parses an (X)HTML input to build a Docutils AST, and then runs a NodeVisitor to build rST text. The script does not cover all of the Docutils nodes, but it works for me. Best wishes, alex. |
From: Cédric V. R. <ced...@gm...> - 2018-06-09 09:37:00
|
Hi, In a previous email [1] I mentioned the following command to install docutils using pipenv from the sourceforge SVN repo: pipenv install -e svn+https://svn.code.sf.net/p/docutils/code/trunk/docutils#egg=docutils Well actually it does not work. When I try to import docutils I get: NameError: name 'StandardError' is not defined >From a quick Google search this is an issue of Python 2 to Python 3 conversion (I am using Python 3). Previously I was using pipenv and Python 3 but getting the code from the Pypi repos and had no such problem. My guess would be that pip (same problem if using pip instead of pipenv, here pipenv simply calls pip) runs the "setup.py" with the Python 2 runtime and not the Python 3 one. This would be a bit surprising though, as my pip explicitly uses Python 3: $ pip --version pip 10.0.1 from /home/cedric/.local/share/virtualenvs/docutils-from-sourceforge-UNMQpB5a/lib/python3.6/site-packages/pip (python 3.6) Any idea how to fix that ? Or alternatively, do you know when the Pypi repository will be updated to revision >=8217 ? [1]: https://sourceforge.net/p/docutils/mailman/docutils-users/thread/CAJKLPhz%2Bi3qfCXdD%3DKeC_0s7tJ%3D9x5nP8MDwnD-EJCTHkAetwg%40mail.gmail.com/#msg36338595 Regards, -- Cédric Van Rompay +33631475604 cedricvanrompay.fr |
From: Cédric V. R. <ced...@gm...> - 2018-06-09 09:06:57
|
Hi, The quick start guide [1] gives the following address to get the latest version: http://docutils.svn.sourceforge.net/viewvc/docutils/trunk/docutils/?view=tar This address leads to a HTTP 404 error. It should be replaced with the following address: https://svn.code.sf.net/p/docutils/code/trunk/ By the way, I would suggest to add the instructions on how to install docutils from the SVN repo using the new "pipenv" tool: $ pipenv install -e svn+https://svn.code.sf.net/p/docutils/code/trunk/docutils#egg=docutils Regards, [1] http://docutils.sourceforge.net/README.html#quick-start -- Cédric Van Rompay +33631475604 cedricvanrompay.fr |
From: Guenter M. <mi...@us...> - 2018-06-05 14:37:25
|
On 2018-05-26, Cédric Van Rompay wrote: > Hi, > When switching from "html" to "html5" writer, I got the following > problem: the docinfo is now included in the "body" parts when using > "publish_parts". Fixed in rev. 8217 https://sourceforge.net/p/docutils/code/8217/ Thank you for reporting, Günter |