From f690fd071a3fc3441cf3ab8f6d8f845acc66b789 Mon Sep 17 00:00:00 2001 From: wiemann Date: Tue, 27 Jul 2004 16:23:44 +0000 Subject: renamed publish.py to rst2pseudoxml.py git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2467 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- tools/rst2pseudoxml.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 tools/rst2pseudoxml.py (limited to 'tools/rst2pseudoxml.py') diff --git a/tools/rst2pseudoxml.py b/tools/rst2pseudoxml.py new file mode 100755 index 000000000..627b3d198 --- /dev/null +++ b/tools/rst2pseudoxml.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python + +# Author: David Goodger +# Contact: goodger@users.sourceforge.net +# Revision: $Revision$ +# Date: $Date$ +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing pseudo-XML. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates pseudo-XML from standalone reStructuredText ' + 'sources (for testing purposes). ' + default_description) + +publish_cmdline(description=description) -- cgit v1.2.1