You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
808 B

4 years ago
  1. #!/home/alpcentaur/ProjektA/PrototypeWebApp/venv/bin/python3.5
  2. # $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $
  3. # Author: Dave Kuhlman <dkuhlman@rexx.com>
  4. # Copyright: This module has been placed in the public domain.
  5. """
  6. A front end to the Docutils Publisher, producing OpenOffice documents.
  7. """
  8. import sys
  9. try:
  10. import locale
  11. locale.setlocale(locale.LC_ALL, '')
  12. except:
  13. pass
  14. from docutils.core import publish_cmdline_to_binary, default_description
  15. from docutils.writers.odf_odt import Writer, Reader
  16. description = ('Generates OpenDocument/OpenOffice/ODF documents from '
  17. 'standalone reStructuredText sources. ' + default_description)
  18. writer = Writer()
  19. reader = Reader()
  20. output = publish_cmdline_to_binary(reader=reader, writer=writer,
  21. description=description)