You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
423 B
20 lines
423 B
4 months ago
|
#!/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, "unidata/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";
|
||
|
}
|