rst2textile is docutils textile writer convert reStructuredText(rst) to Textile format, written in Python.
Install
pip install rst2textile
or:
pysetup install docutils
pysetup install rst2textile
If you wanto to use unrelease version, you can install from repository:
pysetup install https://bitbucket.org/shimizukawa/rst2textile/get/tip.zip
Run
rst2textile.py input.rst output.txt
or:
python -m rst2textile input.rst output.txt
Test
python setup.py test
or:
python test.py
currently, 'pysetup run test' not working.
Product's homepage
Here are some key features of "rst2textile":
· Docutils writer for textile.
supported syntaxes are:
· headings: h1/h2..
· docinfo: field-list (like :Date: today) at top of rst file.
· paragraph
· emphasis: *em*
· strong: **strong**
· list-item: * egg
· enum-item: #. ham
· blockquote
· link: `foo `_
· image: .. image:: http://example.com/image.png
literal: ``some code`` and ::
· Sphinx textile builder (experimental).
· write conf.py extensions = ['docutils_textile']
· build by sphinx-build -b textile source _build/textile
Requirements:
· Python
· Docutils
Limitations:
· Not supported: some textile syntax at http://redcloth.org/textile
· pysetup: Not support auto install dependency libraries(docutils).
What's New in This Release: [ read full changelog ]
· Add supported python versions: 2.4, 2.5, 2.6, 3.1, 3.2, 3.3