Index of /sandbox/odf2docutils

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[DIR]odf2docutilslib/ 2018-06-17 08:52 -  
[DIR]tests.xslt/ 2018-06-17 08:52 -  
[DIR]tests/ 2018-06-17 08:52 -  
[   ]version.py 2018-06-17 08:52 18  
[TXT]tag.log 2018-06-17 08:52 19  
[   ]MANIFEST.in 2018-06-17 08:52 78  
[   ]setup.py 2018-06-17 08:52 555  
[TXT]odf2docutils.rst 2018-06-17 08:52 1.1K 
[TXT]odf2docutils.py 2018-06-17 08:52 5.5K 
[TXT]global.log 2018-06-17 08:52 68K 

odf2docutils

odf2docutils

What is odf2docutils?

odf2docutils is a tool to generate Docutils XML from Open Document Format (ODF). This way you can create a Docutils XML file from ODF input and then transform the result to reStructuredText by using xml2rst.

Using odf2docutils

Use odf2docutils by calling odf2docutils.py on an ODF file. Run odf2docutils --help for more information.

Availability

odf2docutils is available through the Docutils Subversion repository as part of the Docutils sandbox in sandbox/odf2docutils.

Moreover you can fetch it directly from the current maintainer at http://www.merten-home.de/FreeSoftware/odf2docutils/

Installation

odf2docutils depends on the lxml package [1]. Make sure this package is installed before running odf2docutils.

After you obtained the package run python setup.py install.

Development

Tests

There are test suites in tests. Use filterunit to run tests.

ToDos

So far only a small subset of ODF is supported. This may change over time.

Implementation

The core of odf2docutils is implemented as an XSLT stylesheet called odf2docutils.xsl. So far the script odf2docutils.py is only needed for handling ODF files and run the XSLT processor.