6 (($n, $m, $c) = split(" ", $_, 3)) >= 3 || next;
12 foreach $name (@NAME) {
17 print "$name\t$map\t$code\n";
22 open(OUT, "> ${name}_ucs.map");
26 (($i, $u) = split(" ")) || next;
29 ($u >= 0xAC00 && $u <= 0xD7A3) && next;
30 ($i >= 0xD800) && next;
40 # These conversion tables between $code and
41 # Unicode were made from
43 # ftp://ftp.unicode.org/Public/MAPPINGS/$map.
46 @ucs = sort { $a <=> $b } keys %to_ucs;
52 #define N_${name}2_ucs_map $nucs
54 static wc_map ${name}2_ucs_map[ N_${name}2_ucs_map ] = {
57 printf OUT " { 0x%.4X, 0x%.4X },\n", $_, $to_ucs{$_};
60 @ucs = sort { $a <=> $b } keys %from_ucs;
66 #define N_ucs_${name}2_map $nucs
68 static wc_map ucs_${name}2_map[ N_ucs_${name}2_map ] = {
71 printf OUT " { 0x%.4X, 0x%.4X },\n", $_, $from_ucs{$_};
82 johab EASTASIA/KSC/JOHAB.TXT Johab (Korean)