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;
31 if ($a >= 0xA1 && $a <= 0xFE && $b >= 0xA1 && $b <= 0xFE) {
32 ($i >= 0xA2E6 && $i <= 0xA2E7) || next;
41 # These conversion tables between $code and
42 # Unicode were made from
44 # ftp://ftp.unicode.org/Public/MAPPINGS/$map.
49 static wc_uint16 ${name}_ucs_map[ 0x20 * 0xB2 + 0x27 * 0x54 + 2 ] = {
52 for $ub (0x81 .. 0xA0) {
53 for $lb (0x41 .. 0x5A, 0x61 .. 0x7A, 0x81 .. 0xFE) {
54 $_ = ($ub << 8) + $lb;
55 printf OUT " 0x%.4X,\t/* 0x%.4X */\n", $to_ucs{$_}, $_;
58 for $ub (0xA1 .. 0xC7) {
59 for $lb (0x41 .. 0x5A, 0x61 .. 0x7A, 0x81 .. 0xA0) {
60 $_ = ($ub << 8) + $lb;
61 printf OUT " 0x%.4X,\t/* 0x%.4X */\n", $to_ucs{$_}, $_;
64 for $lb (0xE6 .. 0xE7) {
65 $_ = ($ub << 8) + $lb;
66 printf OUT " 0x%.4X,\t/* 0x%.4X */\n", $to_ucs{$_}, $_;
71 @ucs = sort { $a <=> $b } keys %from_ucs;
77 #define N_ucs_${name}_map $nucs
79 static wc_map ucs_${name}_map[ N_ucs_${name}_map ] = {
82 printf OUT " { 0x%.4X, 0x%.4X },\n", $_, $from_ucs{$_};
93 uhc VENDORS/MICSFT/WINDOWS/CP949.TXT UHC/CP949 (Korean)