6 (($n, $m, $d) = split(" ", $_, 3)) >= 3 || next;
15 foreach $name (@NAME) {
19 print STDERR "$name\t$map\t$desc\n";
23 (($c, $u) = split(" ")) || next;
26 if (($c < 0xA140 || $c > 0xF9FE) &&
40 open(OUT, "> ${name}_ucs_p2.map");
42 @ucs = sort { $a <=> $b } keys %to_ucs;
48 #define N_${name}_ucs_p2_map $nucs
52 static wc_map ${name}_ucs_p2_map[ N_${name}_ucs_p2_map ] = {
56 printf OUT " { 0x%.4X, 0x%.4X },\n", $_, $x;
59 @ucs = sort { $a <=> $b } keys %from_ucs;
65 #define N_ucs_p2_${name}_map $nucs
69 static wc_map ucs_p2_${name}_map[ N_ucs_p2_${name}_map ] = {
73 printf OUT " { 0x%.4X, 0x%.4X },\n", $_, $x;
81 hkscs private/hkscs_p2.txt HKSCS (Chinese Hong Kong)