Package: rst2textile
rst2textileis docutils textile writer convert reStructuredText(rst) to Textile format.FeaturesDocutils writer for textile.supported syntaxes are:headings: h1/h2..docinfo: field-list (like:Date: today) at top of rst file.paragraphemphasis:*em*strong:**strong**list-item:* eggenum-item:#. hamblockquotelink:`foo <http://example.com/>`_image:.. image:: http://example.com/image.pngliteral:``some code``and::Sphinx textile builder (experimental).write conf.pyextensions = [‘docutils_textile’]build bysphinx-build -b textile source _build/textileInstall$ pip install rst2textileIf you wanto to use unrelease version, you can install from repository:$ pip install -e hg+https://bitbucket.org/shimizukawa/rst2textile#egg=rst2textileRun$ rst2textile.py input.rst output.txtor:$ python -m rst2textile input.rst output.txtTest$ python setup.py testor:$ python test.pyDependsPython 2.6, 2.7, 3.3, 3.4Docutils 0.12, 0.11, 0.10LimitationNot supported: some textile syntax athttp://redcloth.org/textileToDoDocumentationImplement some textile format.CHANGES0.2.1 (2014/10/04)Fix: number of table columns reduced to shorter row.0.2.0 (2014/10/04)add support textile table output. Thanks to tell-k.remove pysetup related lines.change supported python versions: 2.6, 2.7, 3.3, 3.4change supported docutils versions: 0.12, 0.11, 0.100.1.1 (2012/4/29)add supported python versions: 2.4, 2.5, 2.6, 3.1, 3.2, 3.30.1.0 (2012/4/22)first releasesupported syntax: h1/h2.., docinfo, paragraph,em,strong, list-item, enum-item, blockquote, link, image, literalConvert SamplesHeading1rst:==========
Heading1
==========textile:h1. Heading1Headingsrst:==========
Heading1
==========

Heading2
==========

Heading3
----------

Heading4
^^^^^^^^^^textile:h1. Heading1


h2. Heading2


h3. Heading3


h4. Heading4Document Informationrst:HelloWorld
===========

:Date: Today
:Author: SpamEgg
:Location: Heretextile:h1. HelloWorld

Date:
   Today

Author:
   SpamEgg

Location:
   HereParagraphrst:Normal Texttextile:Normal TextEmphasizedrst:*emphasized* (e.g., italics)textile:_emphasized_ (e.g., italics)Strongly emphasizedrst:**strongly emphasized** (e.g., boldface)textile:*strongly emphasized* (e.g., boldface)List itemsrst:- An item in a bulleted (unordered) list

- Another item in a bulleted list

  - Second Level

  * Second Level Items

    * Third leveltextile:* An item in a bulleted (unordered) list
* Another item in a bulleted list
** Second Level
** Second Level Items
*** Third levelEnumerated list itemsrst:#. An item in an enumerated (ordered) list xxxxxxx
#. Another item in an enumerated list yyyyyy

   #. Another level in an enumerated list vvvvvvvv
   #. Another level in an enumerated list vvvvvvvv

#. 3rd element at indent level1textile:# An item in an enumerated (ordered) list xxxxxxx
# Another item in an enumerated list yyyyyy
## Another level in an enumerated list vvvvvvvv
## Another level in an enumerated list vvvvvvvv
# 3rd element at indent level1Blockquotesrst:Blockquotes

   This text will be enclosed in an HTML blockquote element.

   Second Paragraph.textile:Blockquotes

bq. This text will be enclosed in an HTML blockquote element.
bq. Second Paragraph.Linksrst:`link text and link target url <http://www.example.com/link/target/address>`_textile:"link text and link target url":http://www.example.com/link/target/addressImagesrst:.. image:: http://example.com/image.jpg

.. figure:: local/image/path.pngtextile:!http://example.com/image.jpg!

!local/image/path.png!Inner Referencerst:HelloWorld
===========

reference to HelloWorld_ !textile:h1. HelloWorld

reference to "HelloWorld" !Literal (code)rst:::

   class Foo(object):

       def __init__(self, value):
           print "value = %d" % value
           raise NotImplementedError(u'EmptyClass')textile:<pre>
class Foo(object):

    def __init__(self, value):
        print "value = %d" % value
        raise NotImplementedError(u'EmptyClass')
</pre>Tablesrst:+------------------------+------------+----------+----------+
| Header row, column 1   | Header 2   | Header 3 | Header 4 |
| (header rows optional) |            |          |          |
+========================+============+==========+==========+
| body row 1, column 1   | column 2   | column 3 | column 4 |
+------------------------+------------+----------+----------+
| body row 2             | ...        | ...      |          |
+------------------------+------------+----------+----------+textile:|_.  Header row, column 1
(header rows optional)|_.  Header 2     |_.  Header 3   |_.  Header 4   |
| body row 1, column 1     | column 2     | column 3   | column 4   |
| body row 2               | ...          | ...        |            |rst:=====  =====  =======
A      B      A and B
=====  =====  =======
False  False  False
True   False  False
False  True   False
True   True   True
=====  =====  =======textile:|_.  A     |_.  B     |_.  A and B |
| False | False | False   |
| True  | False | False   |
| False | True  | False   |
| True  | True  | True    |CSV Tablerst:.. csv-table::
   :header: "Treat", "Quantity", "Description"
   :widths: 15, 10, 30

   "Albatross", 2.99, "On a stick!"
   "Crunchy Frog", 1.49, "If we took the bones out, it wouldn't be
   crunchy, now would it?"
   "Gannet Ripple", 1.99, "On a stick!"textile:|_.  Treat           |_.  Quantity   |_.  Description                    |
| Albatross       | 2.99       | On a stick!                    |
| Crunchy Frog    | 1.49       | If we took the bones out, it wouldn't be
crunchy, now would it?|
| Gannet Ripple   | 1.99       | On a stick!                    |List Tablerst:.. list-table::
   :widths: 15 10 30
   :header-rows: 1

   * - Treat
     - Quantity
     - Description
   * - Albatross
     - 2.99
     - On a stick!
   * - Crunchy Frog
     - 1.49
     - If we took the bones out, it wouldn't be
       crunchy, now would it?
   * - Gannet Ripple
     - 1.99
     - On a stick!textile:|_.  Treat           |_.  Quantity   |_.  Description                    |
| Albatross       | 2.99       | On a stick!                    |
| Crunchy Frog    | 1.49       | If we took the bones out, it wouldn't be
crunchy, now would it?|
| Gannet Ripple   | 1.99       | On a stick!                    |