summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaz Solc <tomaz.solc@tablix.org>2014-12-18 15:28:19 +0100
committerTomaz Solc <tomaz.solc@tablix.org>2014-12-18 15:28:19 +0100
commit50dc6861d27fd96a62a5e1e2096800cfe0029d06 (patch)
tree1a4a2f75e73ad273483f6911d4a60b8d5c749ac6
parent7d56475454537036c355c54ea4f3d938b3d8d316 (diff)
parentbef99c64a111cb8448c370a0211b87f440136173 (diff)
downloadunidecode-release-0.04.17.tar.gz
Merge branch 'unidecode-1.00'release-0.04.17
-rw-r--r--perl2python.pl6
-rw-r--r--unidecode/x021.py8
2 files changed, 9 insertions, 5 deletions
diff --git a/perl2python.pl b/perl2python.pl
index 98a2963..34438f9 100644
--- a/perl2python.pl
+++ b/perl2python.pl
@@ -1,3 +1,6 @@
+# usage:
+#
+# perl perl2python.pl --input=Text-Unidecode-1.00_01/lib/Text/Unidecode --output unidecode
use Getopt::Long;
my $input = ".";
@@ -21,6 +24,7 @@ sub python_escape {
# print "$input\n";
push(@INC, $input);
+mkdir $output;
my $n;
for($n = 0; $n < 256; $n++) {
@@ -31,7 +35,7 @@ for($n = 0; $n < 256; $n++) {
# print "$n\n";
- open(PYTHON, sprintf(">%s/x%02x.py", $output, $n));
+ open(PYTHON, sprintf(">%s/x%03x.py", $output, $n));
print PYTHON "data = (\n";
my $m = 0;
diff --git a/unidecode/x021.py b/unidecode/x021.py
index 9a4cc07..067d9bd 100644
--- a/unidecode/x021.py
+++ b/unidecode/x021.py
@@ -59,10 +59,10 @@ data = (
'', # 0x39
'', # 0x3a
'FAX', # 0x3b
-'[?]', # 0x3c
-'[?]', # 0x3d
-'[?]', # 0x3e
-'[?]', # 0x3f
+'', # 0x3c
+'', # 0x3d
+'', # 0x3e
+'', # 0x3f
'[?]', # 0x40
'[?]', # 0x41
'[?]', # 0x42