Re: reStructuredText writer?
Benoît Bryon <[email protected]> Mon, 13 May 2013 15:19:46 +0200
| Newsgroups | gmane.comp.python.documentation |
|---|---|
| Message-ID | <[email protected]> |
Hi, Le 13/05/2013 14:31, Masklinn a écrit : > I'm using docutils to transform and extract information from rst/sphinx > documents[0]. I've made good progress, but I'm now looking for a way to > extract inline content from the documents and re-serialize it to rST. > The extraction should work (just recurse through non-Text non-Inline > content and grab Inline and Text stuff) but I don't really see a way to > re-serialize content to rST (such as an rST writer, which should be > useful to apply mechanical transformations to rST documents anyway), > is there none built-in or available through a third-party? > > [0] to move from a terrible home-grown translation system to Sphinx's builtin one > _______________________________________________ > Doc-SIG maillist - [email protected] > http://mail.python.org/mailman/listinfo/doc-sig `rst2rst <https://pypi.python.org/pypi/rst2rst/0.2>`_ is a third-party project. It has a partial implementation of such a reStructuredText writer. Since the implementation is not complete, it cannot handle most documents... That said, contributions are welcome! As an example, I haven't found a smart implementation for elements such as lists. Let me know if you have questions about the project. Benoit _______________________________________________ Doc-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/doc-sig