Discussion:
[Docutils-users] reStructuredText writer
Jimmy Thrasibule
2017-05-08 17:30:29 UTC
Permalink
Hi,

The docutils package does not come with any reStructuredText writer. How
easy would it be to code one?

The primary use case would be to combine multiple documents into a single
document tree and re-write the result as reStructuredText.

Regards,
Jimmy
Guenter Milde
2017-05-10 05:54:47 UTC
Permalink
Post by Jimmy Thrasibule
The docutils package does not come with any reStructuredText writer. How
easy would it be to code one?
Easy to medium. It depends on the details and knowledge of the inner
structures of Docutils.

There is an unfinished attempt in the SVN repository tree
"lossless-rst-writer".
Post by Jimmy Thrasibule
The primary use case would be to combine multiple documents into a single
document tree and re-write the result as reStructuredText.
An alternative is the export to XML and conversion to rST with X
"xml2rst", an XSLT stylesheet written by Stefan Merten.

http://www.merten-home.de/FreeSoftware/xml2rst/index.html

Günter
Kevin Horn
2017-05-10 18:06:27 UTC
Permalink
Rstgen might also help: https://bitbucket.org/khorn/rstgen

It was written years ago to convert some documentation from another format
into restructuredText

Probably I should clean it up and publish it on PyPI, but I've never
managed to get around to it.
Post by Guenter Milde
Post by Jimmy Thrasibule
The docutils package does not come with any reStructuredText writer. How
easy would it be to code one?
Easy to medium. It depends on the details and knowledge of the inner
structures of Docutils.
There is an unfinished attempt in the SVN repository tree
"lossless-rst-writer".
Post by Jimmy Thrasibule
The primary use case would be to combine multiple documents into a single
document tree and re-write the result as reStructuredText.
An alternative is the export to XML and conversion to rST with X
"xml2rst", an XSLT stylesheet written by Stefan Merten.
http://www.merten-home.de/FreeSoftware/xml2rst/index.html
GÃŒnter
------------------------------------------------------------
------------------
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
https://lists.sourceforge.net/lists/listinfo/docutils-users
Please use "Reply All" to reply to the list.
--
--
Kevin Horn
Roberto Alsina
2017-05-10 18:13:15 UTC
Permalink
I wrote a rst2rst once, too, it must be somewhere.
Post by Kevin Horn
Rstgen might also help: https://bitbucket.org/khorn/rstgen
It was written years ago to convert some documentation from another format
into restructuredText
Probably I should clean it up and publish it on PyPI, but I've never
managed to get around to it.
Post by Guenter Milde
Post by Jimmy Thrasibule
The docutils package does not come with any reStructuredText writer. How
easy would it be to code one?
Easy to medium. It depends on the details and knowledge of the inner
structures of Docutils.
There is an unfinished attempt in the SVN repository tree
"lossless-rst-writer".
Post by Jimmy Thrasibule
The primary use case would be to combine multiple documents into a
single
Post by Jimmy Thrasibule
document tree and re-write the result as reStructuredText.
An alternative is the export to XML and conversion to rST with X
"xml2rst", an XSLT stylesheet written by Stefan Merten.
http://www.merten-home.de/FreeSoftware/xml2rst/index.html
GÃŒnter
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/docutils-users
Please use "Reply All" to reply to the list.
--
--
Kevin Horn
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/docutils-users
Please use "Reply All" to reply to the list.
Loading...