From 470e4917bbf197121082fefdd50bf86e5a72389f Mon Sep 17 00:00:00 2001 From: wiemann Date: Tue, 27 Jul 2004 16:25:22 +0000 Subject: renamed docutils-xml.py to rst2xml.py git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2468 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- tools/rst2xml.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 tools/rst2xml.py (limited to 'tools/rst2xml.py') diff --git a/tools/rst2xml.py b/tools/rst2xml.py new file mode 100755 index 000000000..8e2ad757f --- /dev/null +++ b/tools/rst2xml.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 Docutils XML. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates Docutils-native XML from standalone ' + 'reStructuredText sources. ' + default_description) + +publish_cmdline(writer_name='xml', description=description) -- cgit v1.2.1