| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
""" |
| 8 |
A front end to the Docutils Publisher, producing OpenOffice documents. |
| 9 |
""" |
| 10 |
|
| 11 |
try: |
| 12 |
import locale |
| 13 |
locale.setlocale(locale.LC_ALL, '') |
| 14 |
except Exception: |
| 15 |
pass |
| 16 |
|
| 17 |
from docutils.core import publish_cmdline, default_description |
| 18 |
from docutils.writers.odf_odt import Writer, Reader |
| 19 |
|
| 20 |
|
| 21 |
description = ('Generates OpenDocument/OpenOffice/ODF documents from ' |
| 22 |
'standalone reStructuredText sources. ' + default_description) |
| 23 |
|
| 24 |
|
| 25 |
writer = Writer() |
| 26 |
reader = Reader() |
| 27 |
output = publish_cmdline(reader=reader, writer=writer, description=description) |