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");
25 (($i, $u) = split(" ")) || next;
36 # These conversion tables between $code and
37 # Unicode were made from
39 # http://www.vnet.org/vanlangsj/mozilla/$map.
44 static wc_uint16 ${name}1_ucs_map[ 0x80 ] = {
47 foreach $i (0x10 .. 0x1F) {
53 printf OUT " 0x%.4X,", $u;
64 static wc_uint16 ${name}2_ucs_map[ 0x20 ] = {
67 foreach $i (0x0 .. 0x3) {
73 printf OUT " 0x%.4X,", $u;
82 @ucs = sort { $a <=> $b } keys %from_ucs;
88 #define N_ucs_${name}_map $nucs
90 static wc_map ucs_${name}_map[ N_ucs_${name}_map ] = {
93 printf OUT " { 0x%.4X, 0x%.2X },\n", $_, $from_ucs{$_};
104 tcvn5712 tcvn_uni.txt TCVN-5712 VN-1 (Vietnamese)
105 viscii11 vis_uni.txt VISCII 1.1 (Vietnamese)
106 vps vps_uni.txt VPS (Vietnamese)