]> mj.ucw.cz Git - libucw.git/commitdiff
Renamed mkuni to add-charnames and changed the path to the UnicodeData file.
authorMartin Mares <mj@ucw.cz>
Sat, 11 Oct 2003 08:53:40 +0000 (08:53 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 11 Oct 2003 08:53:40 +0000 (08:53 +0000)
charset/misc/add-charnames [new file with mode: 0755]
charset/misc/mkuni [deleted file]

diff --git a/charset/misc/add-charnames b/charset/misc/add-charnames
new file mode 100755 (executable)
index 0000000..faf4af5
--- /dev/null
@@ -0,0 +1,19 @@
+#!/usr/bin/perl
+#
+#  Add Unicode Character Names to a character set table file
+#  (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+#
+
+open (UNI, "unicode/UnicodeData.txt") || die "No Unicode Data File";
+while (<UNI>) {
+       ($num,$name) = split /;/;
+       $name{$num} = $name;
+}
+close UNI;
+
+while (<>) {
+       ($code,$uni) = split /[ \t\n]+/;
+       $name = $name{$uni};
+       ($name eq "") && ($name = "????");
+       print "$code\t$uni\t$name\n";
+}
diff --git a/charset/misc/mkuni b/charset/misc/mkuni
deleted file mode 100644 (file)
index 59bba64..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/perl
-#
-#  Add Unicode Character Names to a character set table file
-#  (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
-#
-
-open (UNI, "/tmp/unicode") || die "No Unicode Data File";
-while (<UNI>) {
-       ($num,$name) = split /;/;
-       $name{$num} = $name;
-}
-close UNI;
-
-while (<>) {
-       ($code,$uni) = split /[ \t\n]+/;
-       $name = $name{$uni};
-       ($name eq "") && ($name = "????");
-       print "$code\t$uni\t$name\n";
-}