summaryrefslogtreecommitdiff
path: root/sandbox/rst2wordml/rst2wordml.py
blob: 1e4a54ad97e65bf72037360daddc98cb470d77dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!C:\dev\Python25\python.exe

# Author: Jay Kint
# Contact: bilbo@hobbit-hole.org
# Revision: $Revision$
# Date: $Date$
# Copyright: This module is copyright 2007 by Jay Kint, licensed by the BSD License.

"""
A minimal front end to the Docutils Publisher, producing WordML for Microsoft Word 2003+.
"""

try:
    import locale
    locale.setlocale(locale.LC_ALL, '')
except:
    pass

from docutils.core import publish_cmdline, default_description


description = ('Generates WordML from standalone '
               'reStructuredText sources.  ' + default_description)

publish_cmdline(writer_name='docutils_wordml', description=description)