---------- rst2wordml ---------- `rst2wordml `__ is a `reStructuredText `__ (reST) to `WordprocessingML `__ (WordML) converter. You can use rst2wordml to convert reST text files to WordML. The resulting WordML file may then be loaded into MS Word 2003 or later. You can then edit, save, or print it as any format that MS Word supports, such as PDF. Installation ------------ Docutils should already be installed before installing rst2wordml. This guide assumes that Python is installed at C:\\Python25 and that Docutils has been installed in its default location, C:\\Python25\\Libs\\site-packages\\docutils. rst2wordml consists of 2 .py files and a template.xml file: +--------------------+-----------------------------------------------------+ | **File** | **Location** | +====================+=====================================================+ | docutils_wordml.py | C:\\Python25\\Lib\\site-packages\\docutils\\writers | +--------------------+-----------------------------------------------------+ | rst2wordml.py | C:\\Python25\\Scripts | +--------------------+-----------------------------------------------------+ | template.xml | Wherever the .rst file(s) to convert are. | +--------------------+-----------------------------------------------------+ The template.xml file is used by rst2wordml to give default styles and formatting options to its output. See Options_ for information on custom template files. Features -------- Currently not all the features supported by reST are converted by the rst2wordml converter. Here is a list of features and their level of support: - **Impl** means a feature is already implemented. - **Unknown** means a feature might work but hasn't been tested. - **Next** means that it should be coming in the near future. - **None** means that I have no intention of supporting this feature, although I will take patches to support the feature. +-------------------------------------+--------+-----------+--------+--------+ |**Feature** |**Impl**|**Unknown**|**Next**|**None**| +=====================================+========+===========+========+========+ |Paragraphs | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Inline markup (bold and italic) | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Hyperlinks | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Inline literals | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Bullet Lists | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Enumerated Lists | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Definition Lists | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Field Lists | | | X | | +-------------------------------------+--------+-----------+--------+--------+ |Option Lists | | | | X | +-------------------------------------+--------+-----------+--------+--------+ |Literal Blocks | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Line Blocks | | | X | | +-------------------------------------+--------+-----------+--------+--------+ |Block Quotes | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Doctest Blocks | | | | X | +-------------------------------------+--------+-----------+--------+--------+ |Tables | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Images [#]_ | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Footnotes [#]_ | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Citations | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Directives | | X | | | +-------------------------------------+--------+-----------+--------+--------+ |Substitutions | X | | | | +-------------------------------------+--------+-----------+--------+--------+ |Comments | X | | | | +-------------------------------------+--------+-----------+--------+--------+ This table isn't necessarily exhaustive, though I did go through the specification to come up with this list. Options ------- For now rst2wordml only supports a single option, --template=