srcanamdw/codescanner/pyinstaller/doc/source/tools/rst2newlatex.py
author noe\swadi
Thu, 18 Feb 2010 12:29:02 +0530
changeset 1 22878952f6e2
permissions -rw-r--r--
Committing the CodeScanner Core tool This component has been moved from the StaticAnaApps package. BUG : 5889 (http://developer.symbian.org/webbugs/show_bug.cgi?id=5889).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     1
#!/usr/bin/env python
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     2
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     3
# Author: David Goodger
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     4
# Contact: goodger@users.sourceforge.net
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     5
# Revision: $Revision: 1.1 $
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     6
# Date: $Date: 2009/02/05 23:03:30 $
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     7
# Copyright: This module has been placed in the public domain.
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     8
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
     9
"""
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    10
A minimal front end to the Docutils Publisher, producing LaTeX using
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    11
the new LaTeX writer.
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    12
"""
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    13
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    14
try:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    15
    import locale
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    16
    locale.setlocale(locale.LC_ALL, '')
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    17
except:
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    18
    pass
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    19
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    20
from docutils.core import publish_cmdline, default_description
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    21
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    22
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    23
description = ('Generates LaTeX documents from standalone reStructuredText '
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    24
               'sources. This writer is EXPERIMENTAL and should not be used '
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    25
               'in a production environment. ' + default_description)
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    26
22878952f6e2 Committing the CodeScanner Core tool
noe\swadi
parents:
diff changeset
    27
publish_cmdline(writer_name='newlatex2e', description=description)