6 (($n, $m, $c) = split(" ", $_, 3)) >= 3 || next;
15 foreach $name (@NAME) {
20 print "$name\t$map\t$code\n";
25 (($i, $u) = split(" ")) || next;
28 if ($map =~ /^V/ && $u > 0x7f) {
32 if ($map =~ /^c/ && $i > 0x100) {
34 if (! defined($from_ucs{$u})) {
45 open(OUT, "> ${name}_ucs.map");
49 # These conversion tables between $code and
50 # Unicode were made from
52 # ftp://ftp.unicode.org/Public/MAPPINGS/$map.
57 static wc_uint16 ${name}_ucs_map[ 0x80 ] = {
60 foreach $i (0x10 .. 0x1F) {
66 printf OUT " 0x%.4X,", $u;
74 @cp = sort { $a <=> $b } keys %to_ucs2;
80 #define N_${name}2_ucs_map $cp
82 static wc_map ${name}2_ucs_map[ N_${name}2_ucs_map ] = {
85 printf OUT " { 0x%.4X, 0x%.4X },\n", $_, $to_ucs2{$_};
88 @ucs = sort { $a <=> $b } keys %from_ucs;
94 #define N_ucs_${name}_map $nucs
96 static wc_map ucs_${name}_map[ N_ucs_${name}_map ] = {
99 printf OUT " { 0x%.4X, 0x%.2X },\n", $_, $from_ucs{$_};
107 cp1258 VENDORS/MICSFT/WINDOWS/CP1258.TXT CP1258 (Vietnamese)
108 cp1258_2 cp1258_uni.txt CP1258 (Vietnamese)