summaryrefslogtreecommitdiff
path: root/docutils/tools
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-06-11 03:18:08 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-06-11 03:18:08 +0000
commite40c688a9cc15d87b4741b58c0110678699cd586 (patch)
treedde1d168529ad4ef1b7da77ad4eeab8905561fe5 /docutils/tools
parent9cb14652bf6df0a354a93c356863dde8e2661d02 (diff)
downloaddocutils-e40c688a9cc15d87b4741b58c0110678699cd586.tar.gz
added header comments
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3467 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/tools')
-rwxr-xr-xdocutils/tools/unicode2rstsubs.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/docutils/tools/unicode2rstsubs.py b/docutils/tools/unicode2rstsubs.py
index 20f88153d..bc86fe014 100755
--- a/docutils/tools/unicode2rstsubs.py
+++ b/docutils/tools/unicode2rstsubs.py
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# Author: David Goodger
-# Contact: goodger@users.sourceforge.net
+# Contact: goodger@python.org
# Revision: $Revision$
# Date: $Date$
# Copyright: This program has been placed in the public domain.
@@ -68,6 +68,14 @@ class CharacterEntitySetExtractor:
unwanted_entity_sets = ['stix', # unknown, buggy set
'predefined']
+ header = """\
+.. This data file has been placed in the public domain.
+.. Derived from the Unicode character mappings available at
+ <http://www.w3.org/2003/entities/xml/unicode.xml>.
+ Processed by unicode2rstsubs.py
+ (part of Docutils, http://docutils.sourceforge.net).
+"""
+
def __init__(self, infile):
self.infile = infile
"""Input unicode.xml file."""
@@ -165,6 +173,7 @@ class CharacterEntitySetExtractor:
outname = set_name + '.txt'
outfile = open(outname, 'w')
print 'writing file "%s"' % outname
+ print >>outfile, self.header
set = self.sets[set_name]
entities = [(e.lower(), e) for e in set.keys()]
entities.sort()