lib/Jacode4e.pm

filter: Statementstmt 83.5% 602 / 721 Branchbran 75.8% 320 / 422 Conditioncond 65.8% 85 / 129 MC/DCmcdc 47.3% 36 / 76 Subroutinesub 97.6% 127 / 130 Podpod 0.0% 0 / 8 totaltotal 78.7% 1170 / 1486 CC 245 SCAR 41.4
CC
245
Cov
79%
END
635.0
convert
72.1
menkuten_to_sjis2004
56.0
CRAP 62.9
↑ Summary
1 package Jacode4e;
2 76 $VERSION = '2.13.6.23';
3 # 如果您可以阅读此字符,则可以通过选择所有内容并将其保存为文件名“Jacode4e.pm”来将其用作模块。
4 # 如果您可以閱讀此字符,則可以通過選擇所有內容並將其保存為文件名“Jacode4e.pm”來將其用作模塊。
5 # この文字が読める場合は、内容を全て選択してファイル名を "Jacode4e.pm" にして保存すればそのままモジュールとして利用することができます。
6 # 이 문자를 읽을 수 있는 경우는, 내용을 모두 선택해 파일명을 "Jacode4e.pm" 로 해 보존하면 그대로 모듈로서 이용할 수가 있습니다.
7 # But that is very far into the future isn't it?
8 ####################################################################
9 #
10 # Jacode4e - Converts Character Encodings for Enterprise in Japan
11 #
12 # Copyright (c) 2018, 2019, 2021, 2022, 2023, 2026 INABA Hitoshi <ina.cpan@gmail.com> in a CPAN
13 ######################################################################
14  
15 76 $VERSION = $VERSION;
16  
17 76 ▶use 5.00503;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 76 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 76 ▶BEGIN { $INC{'warnings.pm'} = '' if $] < 5.006 }; use warnings; $^W=1;
Subroutine BEGIN: called CC=2 SCAR=7.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
if $] < "5.006" 0 76 76
20  
21 76 my %tr = ();
22 76 my @encodings = qw(
23 cp932x
24 cp932
25 cp932ibm
26 cp932nec
27 sjis1978
28 sjis1983
29 sjis1990
30 sjis2000
31 sjis2004
32 cp00930
33 keis78
34 keis83
35 keis90
36 jef
37 jipsj
38 jipse
39 letsj
40 unicode
41 utf8
42 utf8.1
43 utf8jp
44 );
45 76 my @io_encodings = grep( ! /^(?:unicode)$/, @encodings);
46  
47 #---------------------------------------------------------------------
48 # make DBCS codepoints (used by the ROUND_TRIP option, see below)
49 #---------------------------------------------------------------------
50 20 ▶sub dbcs {
Subroutine dbcs: called CC=3 SCAR=11.0
Pod undocumented
51 20 my @dbcs = ();
52 20 for my $octet1 (@{$_[0]}) {
53 924 for my $octet2 (@{$_[1]}) {
54 85656 push @dbcs, pack('CC', $octet1, $octet2);
55 }
56 }
57 20 return @dbcs;
58 }
59  
60 #---------------------------------------------------------------------
61 # make DBCS codepoints JIPS(E) (used by the ROUND_TRIP option)
62 #---------------------------------------------------------------------
63 4 ▶sub dbcs_jipse {
Subroutine dbcs_jipse: called CC=3 SCAR=11.0
Pod undocumented
64 4 my @dbcs = ();
65  
66 # JIPS(J) --> JIPS(E) table
67 # http://ameblo.jp/geckoman/entry-11634710872.html
68 4 my @jtoe = (
69 0x00,0x01,0x02,0x03,0x37,0x2D,0x2E,0x2F,0x16,0x05,0x15,0x0B,0x0C,0x0D,0x0E,0x0F, # 0
70 0x10,0x11,0x12,0x13,0x3C,0x3D,0x32,0x26,0x18,0x19,0x3F,0x27,0x1C,0x1D,0x1E,0x1F, # 1
71 0x40,0x4F,0x7F,0x7B,0xE0,0x6C,0x50,0x7D,0x4D,0x5D,0x5C,0x4E,0x6B,0x60,0x4B,0x61, # 2
72 0xF0,0xF1,0xF2,0xF3,0xF4,0xF5,0xF6,0xF7,0xF8,0xF9,0x7A,0x5E,0x4C,0x7E,0x6E,0x6F, # 3
73 0x7C,0xC1,0xC2,0xC3,0xC4,0xC5,0xC6,0xC7,0xC8,0xC9,0xD1,0xD2,0xD3,0xD4,0xD5,0xD6, # 4
74 0xD7,0xD8,0xD9,0xE2,0xE3,0xE4,0xE5,0xE6,0xE7,0xE8,0xE9,0x4A,0x5B,0x5A,0x5F,0x6D, # 5
75 0x79,0x57,0x59,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x70,0x71,0x72,0x73,0x74, # 6
76 0x75,0x76,0x77,0x78,0x80,0x8B,0x9B,0x9C,0xA0,0xAB,0xB0,0xC0,0x6A,0xD0,0xA1,0x00, # 7
77 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, # 8
78 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, # 9
79 0x00,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x51,0x52,0x53,0x54,0x55,0x56, # A
80 0x58,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8A,0x8C,0x8D,0x8E,0x8F,0x90, # B
81 0x91,0x92,0x93,0x94,0x95,0x96,0x97,0x98,0x99,0x9A,0x9D,0x9E,0x9F,0xA2,0xA3,0xA4, # C
82 0xA5,0xA6,0xA7,0xA8,0xA9,0xAA,0xAC,0xAD,0xAE,0xAF,0xBA,0xBB,0xBC,0xBD,0xBE,0xBF, # D
83 0xB2,0xB3,0xB4,0xB5,0xB6,0xB7,0xB8,0xB9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xDA,0xDB, # E
84 0xDC,0xDD,0xDE,0xDF,0xEA,0xEB,0xEC,0xED,0xEE,0xEF,0xFA,0xFB,0xFC,0xFD,0xFE,0x00, # F
85 );
86  
87 4 for my $octet1 (@{$_[0]}) {
88 84 for my $octet2 (@{$_[1]}) {
89 7896 push @dbcs, pack('CC', $jtoe[$octet1], $jtoe[$octet2]);
90 }
91 }
92 4 return @dbcs;
93 }
94  
95 # User-defined (GAIJI) area of each encoding, used to allocate a
96 # code point for a character that has no native code in the encoding.
97 # This makes round-trip conversion possible with the ROUND_TRIP option.
98 #
99 # CP00930 User-defined Area: ([\x69-\x71][\x41-\xFE]|[\x72][\x41-\xEA])
100 # KEIS User-defined Area: ([\x81-\x9E\xA0][\xA1-\xFE]|[\x41-\x80][\xA1-\xFE]|[\x41-\xFE][\x41-\xA0])
101 # JEF User-defined Area: ([\x80-\xA0][\xA1-\xFE])
102 # JIPS User-defined Area: ([\x74-\x7E][\x21-\x7E]|[\xE0-\xFE][\xA1-\xFE])
103 # LetsJ User-defined Area: ([\x31-\x40\x6D-\x78][\xA1-\xFE])
104 # UTF-8 User-defined Area: ([\xE0][\xA0-\xBF][\x80-\xBF]|[\xE1-\xEF][\x80-\xBF][\x80-\xBF])
105 #
106 # (see the POD of Jacode4e::RoundTrip for the reference documents)
107  
108 2 ▶sub _userarea {
Subroutine _userarea: called CC=1 SCAR=0.0
109 2 my %userarea = ();
110 2 @{$userarea{'cp00930'}} = (dbcs([0x69..0x71],[0x41..0xFE]), dbcs([0x72],[0x41..0xEA]));
111 2 @{$userarea{'keis78'}} =
112 2 @{$userarea{'keis83'}} =
113 2 @{$userarea{'keis90'}} = (dbcs([0x81..0x9E,0xA0],[0xA1..0xFE]), dbcs([0x41..0x80],[0xA1..0xFE]), dbcs([0x41..0xFE],[0x41..0xA0]));
114 2 @{$userarea{'jef'}} =
115 2 @{$userarea{'jef9p'}} = (dbcs([0x80..0xA0],[0xA1..0xFE]));
116 2 @{$userarea{'jipsj'}} = (dbcs ([0x74..0x7E],[0x21..0x7E]), dbcs ([0xE0..0xFE],[0xA1..0xFE]));
117 2 @{$userarea{'jipse'}} = (dbcs_jipse([0x74..0x7E],[0x21..0x7E]), dbcs_jipse([0xE0..0xFE],[0xA1..0xFE]));
118 2 @{$userarea{'letsj'}} = (dbcs([0x31..0x40,0x6D..0x78],[0xA1..0xFE]));
119 2 @{$userarea{'utf8'}} =
120 2 @{$userarea{'utf8.1'}} = (map { "\xEF" . $_ } dbcs([0x80..0xBF],[0x80..0xBF]));
121 2 return \%userarea;
122 }
123  
124 #---------------------------------------------------------------------
125 # JIS X 0213 men-ku-ten (plane-row-cell) conversion, used by the
126 # 'euc2004' (EUC-JIS-2004) and 'jis2004' (ISO-2022-JP-2004) encodings.
127 #
128 # The 'sjis2004' column of the table already has all JIS X 0213
129 # characters in Shift_JIS-2004 form. 'euc2004' and 'jis2004' are
130 # derived from 'sjis2004' by computing the men-ku-ten and re-encoding,
131 # so no new mapping data is needed.
132 #
133 # JIS X 0213 plane 2 uses only rows 1, 3, 4, 5, 8, 12, 13, 14, 15, and
134 # 78 to 94. In Shift_JIS-2004 the lead byte 0xF0 to 0xFC maps to these
135 # rows non-linearly, so the correspondence is a hard-coded table.
136 #---------------------------------------------------------------------
137  
138 # Shift_JIS-2004 plane 2 lead byte => [ row of low half, row of high half ]
139 76 my %sjis2004_men2_row = (
140 0xF0 => [ 1, 8], 0xF1 => [ 3, 4], 0xF2 => [ 5, 12], 0xF3 => [13, 14],
141 0xF4 => [15, 78], 0xF5 => [79, 80], 0xF6 => [81, 82], 0xF7 => [83, 84],
142 0xF8 => [85, 86], 0xF9 => [87, 88], 0xFA => [89, 90], 0xFB => [91, 92],
143 0xFC => [93, 94],
144 );
145  
146 # reverse table: "men,row" => Shift_JIS-2004 lead byte and half (0=low, 1=high)
147 76 my %sjis2004_men2_lead = ();
148 76 for my $lead (keys %sjis2004_men2_row) {
149 988 $sjis2004_men2_lead{"2,$sjis2004_men2_row{$lead}[0]"} = [$lead, 0];
150 988 $sjis2004_men2_lead{"2,$sjis2004_men2_row{$lead}[1]"} = [$lead, 1];
151 }
152  
153 # Shift_JIS-2004 (2 octets) => (men, ku, ten), or () if not DBCS
154 3291222 ▶sub sjis2004_to_menkuten {
Subroutine sjis2004_to_menkuten: called CC=13 SCAR=26.9
Pod undocumented
155 3291222 my($c1, $c2) = unpack('CC', $_[0]);
156 3291222 ▶ my $high = ($c2 >= 0x9F) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$c2 >= 159 ? : 1636554 1654668 3291222
157 3291222 my($men, $ku, $ten);
158 3291222 ▶ if ((0x81 <= $c1) and ($c1 <= 0x9F)) { $men = 1; $ku = ($c1 - 0x81) * 2 + 1 + $high; }
Branch: 3 branches
BranchTrueFalseTotal
if (129 <= $c1 and $c1 <= 159) { } 2002470 1288752 3291222
elsif (224 <= $c1 and $c1 <= 239) { } 913608 375144 1288752
elsif (exists $sjis2004_men2_row{$c1}) { } 375144 0 375144
Condition66%2/3
129 <= $c1 and $c1 <= 159
!ll&&!rl&&r
012887522002470
MC/DC50%1/2
129 <= $c1 and $c1 <= 159
129 <= $c1 $c1 <= 159
Truth table66%2/3
A and B
A= 129 <= $c1B= $c1 <= 159
ABresult
0X0
100
111
159 913608 ▶ elsif ((0xE0 <= $c1) and ($c1 <= 0xEF)) { $men = 1; $ku = ($c1 - 0xE0) * 2 + 63 + $high; }
Condition66%2/3
224 <= $c1 and $c1 <= 239
!ll&&!rl&&r
0375144913608
MC/DC50%1/2
224 <= $c1 and $c1 <= 239
224 <= $c1 $c1 <= 239
Truth table66%2/3
A and B
A= 224 <= $c1B= $c1 <= 239
ABresult
0X0
100
111
160 375144 elsif (exists $sjis2004_men2_row{$c1}) { $men = 2; $ku = $sjis2004_men2_row{$c1}[$high]; }
161 0 else { return (); }
162 3291222 ▶ if ((0x40 <= $c2) and ($c2 <= 0x7E)) { $ten = $c2 - 0x40 + 1; }
Branch: 3 branches
BranchTrueFalseTotal
if (64 <= $c2 and $c2 <= 126) { } 1114332 2176890 3291222
elsif (128 <= $c2 and $c2 <= 158) { } 540336 1636554 2176890
elsif (159 <= $c2 and $c2 <= 252) { } 1636554 0 1636554
Condition66%2/3
64 <= $c2 and $c2 <= 126
!ll&&!rl&&r
021768901114332
MC/DC50%1/2
64 <= $c2 and $c2 <= 126
64 <= $c2 $c2 <= 126
Truth table66%2/3
A and B
A= 64 <= $c2B= $c2 <= 126
ABresult
0X0
100
111
163 540336 ▶ elsif ((0x80 <= $c2) and ($c2 <= 0x9E)) { $ten = $c2 - 0x80 + 64; }
Condition66%2/3
128 <= $c2 and $c2 <= 158
!ll&&!rl&&r
01636554540336
MC/DC50%1/2
128 <= $c2 and $c2 <= 158
128 <= $c2 $c2 <= 158
Truth table66%2/3
A and B
A= 128 <= $c2B= $c2 <= 158
ABresult
0X0
100
111
164 1636554 ▶ elsif ((0x9F <= $c2) and ($c2 <= 0xFC)) { $ten = $c2 - 0x9F + 1; }
Condition33%1/3
159 <= $c2 and $c2 <= 252
!ll&&!rl&&r
001636554
MC/DC0%0/2
159 <= $c2 and $c2 <= 252
159 <= $c2 $c2 <= 252
Truth table33%1/3
A and B
A= 159 <= $c2B= $c2 <= 252
ABresult
0X0
100
111
165 0 else { return (); }
166 3291222 return ($men, $ku, $ten);
167 }
168  
169 # (men, ku, ten) => Shift_JIS-2004 (2 octets)
170 0 ▶sub menkuten_to_sjis2004 {
Subroutine menkuten_to_sjis2004: not called CC=7 SCAR=40.3
Pod undocumented
171 0 my($men, $ku, $ten) = @_;
172 0 my($c1, $high);
173 0 ▶ if ($men == 1) {
Branch: 1 branch
BranchTrueFalseTotal
if ($men == 1) { } 0 0 0
174 0 ▶ if ($ku <= 62) { $c1 = int(($ku - 1) / 2) + 0x81; }
Branch: 1 branch
BranchTrueFalseTotal
if ($ku <= 62) { } 0 0 0
175 0 else { $c1 = int(($ku - 63) / 2) + 0xE0; }
176 0 ▶ $high = ($ku % 2 == 0) ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$ku % 2 == 0 ? : 0 0 0
177 }
178 else {
179 0 my $entry = $sjis2004_men2_lead{"2,$ku"};
180 0 ▶ return undef if not defined $entry;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $entry 0 0 0
181 0 ($c1, $high) = @{$entry};
182 }
183 0 my $c2;
184 0 ▶ if ($high) {
Branch: 1 branch
BranchTrueFalseTotal
if ($high) { } 0 0 0
185 0 $c2 = $ten + 0x9F - 1;
186 }
187 else {
188 0 ▶ $c2 = ($ten <= 63) ? ($ten + 0x40 - 1) : ($ten + 0x80 - 64);
Branch: 1 branch
BranchTrueFalseTotal
$ten <= 63 ? : 0 0 0
189 }
190 0 return pack('CC', $c1, $c2);
191 }
192  
193 # (men, ku, ten) => EUC-JIS-2004 octets
194 # plane 1: GR GR ; plane 2: SS3(0x8F) GR GR
195 3291222 ▶sub menkuten_to_euc2004 {
Subroutine menkuten_to_euc2004: called CC=2 SCAR=6.9
Pod undocumented
196 3291222 my($men, $ku, $ten) = @_;
197 3291222 ▶ return ($men == 1) ? pack('CC', $ku + 0xA0, $ten + 0xA0)
Branch: 1 branch
BranchTrueFalseTotal
$men == 1 ? : 2916078 375144 3291222
198 : pack('CCC', 0x8F, $ku + 0xA0, $ten + 0xA0);
199 }
200  
201 # EUC-JIS-2004 octets => (men, ku, ten)
202 # (0x8F lead means plane 2)
203 0 ▶sub euc2004_to_menkuten {
Subroutine euc2004_to_menkuten: not called CC=2 SCAR=17.9
Pod undocumented
204 0 ▶ if ($_[0] =~ m/^\x8F/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($_[0] =~ /^\x8F/) { } 0 0 0
205 0 my($ss3, $b1, $b2) = unpack('CCC', $_[0]);
206 0 return (2, $b1 - 0xA0, $b2 - 0xA0);
207 }
208 else {
209 0 my($b1, $b2) = unpack('CC', $_[0]);
210 0 return (1, $b1 - 0xA0, $b2 - 0xA0);
211 }
212 }
213  
214 76 ▶if ($0 eq __FILE__) {
Branch: 1 branch
BranchTrueFalseTotal
if ($0 eq __FILE__) 0 76 76
215 0 ▶ if (not @ARGV) {
Branch: 1 branch
BranchTrueFalseTotal
unless (@ARGV) 0 0 0
216 0 die <<END;
217  
218 usage:
219 perl $0 --dumptable
220 perl $0 --dumptable-roundtrip
221  
222 END
223 }
224 }
225  
226 76 my @DATA_lines = ();
227  
228 76 ▶while (<DATA>) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline DATA)) 901436 0 901436
229 901436 ▶ last if /^__EUC_X0212__$/;
Branch: 1 branch
BranchTrueFalseTotal
if /^__EUC_X0212__$/ 76 901360 901436
230 901360 ▶ next if /^#/;
Branch: 1 branch
BranchTrueFalseTotal
if /^#/ 21432 879928 901360
231 879928 chomp;
232  
233 # keep all data lines so that the ROUND_TRIP table can be built
234 # lazily on the first ROUND_TRIP call (the DATA filehandle can be
235 # read only once)
236 879928 push @DATA_lines, $_;
237  
238 879928 my %hex = ();
239 879928 @hex{@encodings} = split(/ +/,$_);
240  
241 879928 my %bin = ();
242 879928 for my $encoding (@io_encodings) {
243 17598560 ▶ $bin{$encoding} = (($hex{$encoding} =~ /^[0123456789ABCDEF]+$/) ? pack('H*', $hex{$encoding}) : '');
Branch: 1 branch
BranchTrueFalseTotal
$hex{$encoding} =~ /^[0123456789ABCDEF]+$/ ? : 14210328 3388232 17598560
244 }
245  
246 879928 for my $encoding (@io_encodings) {
247 17598560 ▶ if (($bin{$encoding} ne '') and ($bin{'utf8jp'} ne '')) {
Branch: 1 branch
BranchTrueFalseTotal
if ($bin{$encoding} ne "" and $bin{"utf8jp"} ne "") 14210328 3388232 17598560
Condition66%2/3
$bin{$encoding} ne "" and $bin{"utf8jp"} ne ""
!ll&&!rl&&r
3388232014210328
MC/DC50%1/2
$bin{$encoding} ne "" and $bin{"utf8jp"} ne ""
$bin{$encoding} ne "" $bin{"utf8jp"} ne ""
Truth table66%2/3
A and B
A= $bin{$encoding} ne ""B= $bin{"utf8jp"} ne ""
ABresult
0X0
100
111
248 14210328 ▶ if ($encoding eq 'utf8jp') {
Branch: 3 branches
BranchTrueFalseTotal
if ($encoding eq 'utf8jp') { } 879928 13330400 14210328
elsif (defined $tr{'utf8jp'}{$encoding}{$bin{$encoding}} and $tr{'utf8jp'}{$encoding}{$bin{$encoding}} ne '') { } 0 13330400 13330400
elsif (defined $tr{$encoding}{'utf8jp'}{$bin{'utf8jp'}} and $tr{$encoding}{'utf8jp'}{$bin{'utf8jp'}} ne '') { } 0 26660800 26660800
249 }
250 ▶ elsif (defined($tr{'utf8jp'}{$encoding}{$bin{$encoding}}) and ($tr{'utf8jp'}{$encoding}{$bin{$encoding}} ne '')) {
Condition33%1/3
defined $tr{"utf8jp"}{$encoding}{$bin{$encoding}} and $tr{"utf8jp"}{$encoding}{$bin{$encoding}} ne ""
!ll&&!rl&&r
1333040000
MC/DC0%0/2
defined $tr{"utf8jp"}{$encoding}{$bin{$encoding}} and $tr{"utf8jp"}{$encoding}{$bin{$encoding}} ne ""
defined $tr{"utf8jp"}{$encoding}{$bin{$encoding}} $tr{"utf8jp"}{$encoding}{$bin{$encoding}} ne ""
Truth table33%1/3
A and B
A= defined $tr{"utf8jp"}{$encoding}{$bin{$encoding}}B= $tr{"utf8jp"}{$encoding}{$bin{$encoding}} ne ""
ABresult
0X0
100
111
251 0 die qq{@{[__FILE__]} duplicate definitions \$tr{'utf8jp'}{'$encoding'}{'$hex{$encoding}'} = "$hex{utf8}($bin{utf8})" and "} . uc unpack('H*',$tr{'utf8jp'}{$encoding}{$bin{$encoding}}) . qq{"($tr{'utf8jp'}{$encoding}{$bin{$encoding}})\n};
252 }
253 ▶ elsif (defined($tr{$encoding}{'utf8jp'}{$bin{'utf8jp' }}) and ($tr{$encoding}{'utf8jp'}{$bin{'utf8jp' }} ne '')) {
Condition33%1/3
defined $tr{$encoding}{"utf8jp"}{$bin{"utf8jp"}} and $tr{$encoding}{"utf8jp"}{$bin{"utf8jp"}} ne ""
!ll&&!rl&&r
1333040000
MC/DC0%0/2
defined $tr{$encoding}{"utf8jp"}{$bin{"utf8jp"}} and $tr{$encoding}{"utf8jp"}{$bin{"utf8jp"}} ne ""
defined $tr{$encoding}{"utf8jp"}{$bin{"utf8jp"}} $tr{$encoding}{"utf8jp"}{$bin{"utf8jp"}} ne ""
Truth table33%1/3
A and B
A= defined $tr{$encoding}{"utf8jp"}{$bin{"utf8jp"}}B= $tr{$encoding}{"utf8jp"}{$bin{"utf8jp"}} ne ""
ABresult
0X0
100
111
254 0 die qq{@{[__FILE__]} duplicate definitions \$tr{'$encoding'}{'utf8jp'}{'$hex{utf8}'} = "$hex{$encoding}" and "} . uc unpack('H*',$tr{$encoding}{'utf8jp'}{$bin{'utf8jp'}}) . qq{"\n};
255 }
256 14210328 ▶ if ($bin{$encoding} ne '') {
Branch: 1 branch
BranchTrueFalseTotal
if ($bin{$encoding} ne "") 14210328 0 14210328
257 14210328 $tr{'utf8jp'}{$encoding}{$bin{$encoding}} = $bin{'utf8jp'};
258 14210328 $tr{$encoding}{'utf8jp'}{$bin{'utf8jp'} } = $bin{$encoding};
259 }
260 }
261 }
262 }
263  
264 76 my $data_count = scalar(keys %{$tr{'utf8jp'}{'utf8jp'}});
265 76 ▶if ($data_count != 11578) {
Branch: 1 branch
BranchTrueFalseTotal
if ($data_count != 11578) 0 76 76
266 0 die qq{@{[__FILE__]} is probably broken(data_count=$data_count).\n};
267 }
268  
269 #---------------------------------------------------------------------
270 # build the 'euc' and 'jis' tables from the 'sjis' table of each era
271 # (via men-ku-ten). No new mapping data is needed:
272 #
273 # sjis1978 => euc1978 => jis1978 JIS C 6226-1978
274 # sjis1983 => euc1983 => jis1983 JIS X 0208-1983
275 # sjis1990 => euc1990 => jis1990 JIS X 0208-1990 (year-less)
276 # sjis2000 => euc2000 JIS X 0213:2000 (jis2000 shares euc2000)
277 # sjis2004 => euc2004 JIS X 0213:2004 (jis2004 shares euc2004)
278 #
279 # 'euc' of an era is built from 'sjis' of the same era by computing the
280 # men-ku-ten and re-encoding as EUC-JP/EUC-JIS-2004 form.
281 #
282 # 'jis' of a JIS X 0208 era (1978, 1983, 1990) is built from 'euc' of
283 # the same era by converting the GR octets to GL (7bit JIS) octets;
284 # 'jis2000' and 'jis2004' share the 'euc2000' and 'euc2004' tables (the
285 # GL octets are converted to the EUC-JIS-2004 form for the lookup, like
286 # JIS X 0212 did for 'jis').
287 #
288 # Because 'euc' and 'jis' are derived from 'sjis' (which has no JIS X
289 # 0212), the JIS X 0212 (EUC-JP code set 3, ESC $ ( D) repertoire is not
290 # available in these encodings.
291 #---------------------------------------------------------------------
292  
293 # build $tr{$euc}{...} and $tr{...}{$euc} from $tr{...}{$sjis}
294 380 ▶sub _build_euc_by_sjis {
Subroutine _build_euc_by_sjis: called CC=8 SCAR=21.1
295 380 my($TR, $sjis_name, $euc_name) = @_;
296 380 for my $sjis (keys %{$TR->{'utf8jp'}{$sjis_name}}) {
297 3351220 ▶ if (length($sjis) == 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (length $sjis == 2) { } 3268760 82460 3351220
elsif (length $sjis == 1) { } 82460 0 82460
298 3268760 my($men, $ku, $ten) = sjis2004_to_menkuten($sjis);
299 3268760 ▶ if (defined $men) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $men) 3268760 0 3268760
300 3268760 my $euc = menkuten_to_euc2004($men, $ku, $ten);
301 3268760 my $utf8jp = $TR->{'utf8jp'}{$sjis_name}{$sjis};
302 3268760 $TR->{$euc_name}{'utf8jp'}{$utf8jp} = $euc;
303 3268760 $TR->{'utf8jp'}{$euc_name}{$euc} = $utf8jp;
304 }
305 }
306 elsif (length($sjis) == 1) {
307  
308 # single-byte (JIS X 0201) characters of sjis are the same
309 # in EUC-JP/EUC-JIS-2004 code set 0 (0x00-0x7F) and code
310 # set 2 (SS2 0x8E + 0xA1-0xDF)
311  
312 82460 my $utf8jp = $TR->{'utf8jp'}{$sjis_name}{$sjis};
313 82460 my($c) = unpack('C', $sjis);
314 82460 ▶ my $euc = ($c <= 0x7F) ? $sjis : pack('CC', 0x8E, $c);
Branch: 1 branch
BranchTrueFalseTotal
$c <= 127 ? : 48640 33820 82460
315 82460 ▶ $TR->{$euc_name}{'utf8jp'}{$utf8jp} = $euc if not defined $TR->{$euc_name}{'utf8jp'}{$utf8jp};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $TR->{$euc_name}{"utf8jp"}{$utf8jp} 82460 0 82460
316 82460 ▶ $TR->{'utf8jp'}{$euc_name}{$euc} = $utf8jp if not defined $TR->{'utf8jp'}{$euc_name}{$euc};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $TR->{"utf8jp"}{$euc_name}{$euc} 82460 0 82460
317 }
318 }
319 }
320  
321 # build $tr{$jis}{...} and $tr{...}{$jis} (7bit JIS, GL octets) from
322 # $tr{...}{$euc} of a JIS X 0208 era
323 228 ▶sub _build_jis_by_euc {
Subroutine _build_jis_by_euc: called CC=8 SCAR=21.7
324 228 my($TR, $euc_name, $jis_name) = @_;
325 228 for my $euc (keys %{$TR->{'utf8jp'}{$euc_name}}) {
326 1605956 my $jis = undef;
327 1605956 ▶ if (length($euc) == 1) {
Branch: 4 branches
BranchTrueFalseTotal
if (length $euc == 1) { } 29184 1576772 1605956
elsif ($euc =~ /^\x8E([\xA1-\xDF])$/) { } 14364 1562408 1576772
elsif ($euc =~ /^\x8F/) { } 0 1562408 1562408
elsif (length $euc == 2) { } 1562408 0 1562408
328 29184 $jis = $euc; # ASCII 0x00-0x7F
329 }
330 elsif ($euc =~ m/^\x8E([\xA1-\xDF])$/) {
331 14364 $jis = $1; # JIS X 0201 Katakana as GR octet (8bit JIS)
332 }
333 elsif ($euc =~ m/^\x8F/) {
334 0 next; # code set 3 has no 7bit JIS X 0208 form
335 }
336 elsif (length($euc) == 2) {
337 1562408 my($b1, $b2) = unpack('CC', $euc);
338 1562408 $jis = pack('CC', $b1 & 0x7F, $b2 & 0x7F); # GL (7bit JIS) octets
339 }
340 else {
341 0 next;
342 }
343 1605956 my $utf8jp = $TR->{'utf8jp'}{$euc_name}{$euc};
344 1605956 ▶ $TR->{$jis_name}{'utf8jp'}{$utf8jp} = $jis if not defined $TR->{$jis_name}{'utf8jp'}{$utf8jp};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $TR->{$jis_name}{"utf8jp"}{$utf8jp} 1605956 0 1605956
345 1605956 ▶ $TR->{'utf8jp'}{$jis_name}{$jis} = $utf8jp if not defined $TR->{'utf8jp'}{$jis_name}{$jis};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $TR->{"utf8jp"}{$jis_name}{$jis} 1605956 0 1605956
346 }
347 }
348  
349 76 for my $era (qw(1978 1983 1990 2000 2004)) {
350 380 _build_euc_by_sjis(\%tr, "sjis$era", "euc$era");
351 }
352 76 for my $era (qw(1978 1983 1990)) {
353 228 _build_jis_by_euc(\%tr, "euc$era", "jis$era");
354 }
355  
356 #---------------------------------------------------------------------
357 # JIS X 0212 (EUC-JP code set 3 / ISO-2022-JP-1 "ESC $ ( D") supplement
358 # for 'euc1990' (and, through it, 'jis1990'; the year-less 'euc'/'jis'
359 # alias to the 1990 era, see %era_alias below).
360 #
361 # JIS X 0212 has no Shift_JIS code point (Shift_JIS has no code set 3),
362 # so 'euc1990', being derived from 'sjis1990' via men-ku-ten, cannot
363 # represent it by construction (see the comment above
364 # _build_euc_by_sjis() above). This block restores JIS X 0212 for
365 # every character that ALREADY has a row in the table -- i.e. that
366 # already has a Jacode4e-internal 'utf8jp' code because some other
367 # encoding (CP932X, CP932, CP932IBM, CP932NEC, CP00930, KEIS78/83/90,
368 # JEF, JIPS(J)/(E), or LetsJ) maps it. A character whose ONLY
369 # repertoire membership is JIS X 0212 still has no row and is
370 # unaffected (GETA on 'euc1990'/'jis1990' input/output, unchanged
371 # from 2.13.6.23); giving such characters a row would require
372 # allocating new UTF-8-SPUA-JP code points, which shifts the whole
373 # 'utf8jp' pivot allocation and is intentionally out of scope here.
374 #
375 # The __EUC_X0212__ block below (JIS X 0212 GL octets, Unicode BMP
376 # code point) is derived from the JIS X 0212 (1990) to Unicode 1.1
377 # Table, http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/JIS0212.TXT
378 # (bundled at make__DATA__/LetsJ/...JIS0212.TXT). When the source Unicode
379 # code point has two or more JIS X 0212 GL octet pairs, the LAST one
380 # in the source file wins (matches make__DATA__/JIS/fill_euc_codeset3.pl);
381 # when a table row's Unicode code point would be assigned an
382 # EUC-JP code set 3 code already used by an earlier row (possible
383 # because some rows share a Unicode code point, such as the rows of
384 # Microsoft Knowledge Base Article ID 170559), the FIRST row (in
385 # __DATA__ order) wins, so the euc1990/jis1990 <=> utf8jp mapping
386 # stays one-to-one and deterministic.
387 #---------------------------------------------------------------------
388 {
389 76 my %gl_by_unicode = ();
390 76 ▶ while (<DATA>) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline DATA)) 461092 76 461168
391 461092 chomp;
392 461092 ▶ next if ($_ eq '');
Branch: 1 branch
BranchTrueFalseTotal
if $_ eq "" 0 461092 461092
393 461092 my($gl, $ucs) = split(/ /, $_);
394 461092 $gl_by_unicode{$ucs} = $gl;
395 }
396  
397 76 my %euc_used = ();
398 76 for my $line (@DATA_lines) {
399 879928 my %hex = ();
400 879928 @hex{@encodings} = split(/ +/, $line);
401 879928 my $ucs = $hex{'unicode'};
402 879928 ▶ next if not defined $gl_by_unicode{$ucs};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $gl_by_unicode{$ucs} 655044 224884 879928
403  
404 224884 my $utf8jp = pack('H*', $hex{'utf8jp'});
405 224884 ▶ next if (defined($tr{'euc1990'}{'utf8jp'}{$utf8jp}) and ($tr{'euc1990'}{'utf8jp'}{$utf8jp} ne ''));
Branch: 1 branch
BranchTrueFalseTotal
if defined $tr{"euc1990"}{"utf8jp"}{$utf8jp} and $tr{"euc1990"}{"utf8jp"}{$utf8jp} ne "" 76 224808 224884
Condition66%2/3
defined $tr{"euc1990"}{"utf8jp"}{$utf8jp} and $tr{"euc1990"}{"utf8jp"}{$utf8jp} ne ""
!ll&&!rl&&r
224808076
MC/DC50%1/2
defined $tr{"euc1990"}{"utf8jp"}{$utf8jp} and $tr{"euc1990"}{"utf8jp"}{$utf8jp} ne ""
defined $tr{"euc1990"}{"utf8jp"}{$utf8jp} $tr{"euc1990"}{"utf8jp"}{$utf8jp} ne ""
Truth table66%2/3
A and B
A= defined $tr{"euc1990"}{"utf8jp"}{$utf8jp}B= $tr{"euc1990"}{"utf8jp"}{$utf8jp} ne ""
ABresult
0X0
100
111
406  
407 224808 my($gl1, $gl2) = unpack('A2A2', $gl_by_unicode{$ucs});
408 224808 my $euc = pack('CCC', 0x8F, hex($gl1) | 0x80, hex($gl2) | 0x80);
409 224808 ▶ next if $euc_used{$euc};
Branch: 1 branch
BranchTrueFalseTotal
if $euc_used{$euc} 0 224808 224808
410 224808 $euc_used{$euc} = 1;
411  
412 224808 $tr{'euc1990'}{'utf8jp'}{$utf8jp} = $euc;
413 224808 $tr{'utf8jp'}{'euc1990'}{$euc} = $utf8jp;
414 }
415 }
416  
417 #---------------------------------------------------------------------
418 # ROUND_TRIP conversion table (built lazily on the first ROUND_TRIP call)
419 #---------------------------------------------------------------------
420 # When the ROUND_TRIP option is true, Jacode4e::convert() uses %tr_roundtrip
421 # instead of %tr. %tr_roundtrip is the same as %tr, except that a character
422 # that has no native code in an encoding is allocated a code point from the
423 # user-defined (GAIJI) area of the encoding, so that the conversion is
424 # reversible (round-trip). The encodings that can be round-tripped are
425 # cp932x, cp00930, keis78, keis83, keis90, jef, jef9p, jipsj, jipse, letsj,
426 # utf8, utf8.1, and utf8jp.
427 #
428 # CAUTION: to round-trip, the SAME VERSION of Jacode4e must be used for
429 # "A to B" and "B to A", because the allocation order of the user-defined
430 # area depends on the order of the data table of this version.
431  
432 76 my %tr_roundtrip = ();
433 76 my $tr_roundtrip_built = 0;
434  
435 # %tr (default) or %tr_roundtrip (ROUND_TRIP option) is selected here.
436 # Jacode4e::convert() localizes $CURRENT_TR to \%tr_roundtrip when the
437 # ROUND_TRIP option is true. The codec closures (getc/putc) and the
438 # JIS X 0212 output fallback read the table through $CURRENT_TR.
439 76 ▶use vars qw($CURRENT_TR);
Subroutine BEGIN: called CC=1 SCAR=0.0
440 76 $CURRENT_TR = \%tr;
441  
442 2785217 ▶sub _build_tr_roundtrip {
Subroutine _build_tr_roundtrip: called CC=22 SCAR=33.6
443 2785217 ▶ return if $tr_roundtrip_built;
Branch: 1 branch
BranchTrueFalseTotal
if $tr_roundtrip_built 2785215 2 2785217
444  
445 2 my $userarea = _userarea();
446  
447 2 for my $line (@DATA_lines) {
448 23156 my %hex = ();
449 23156 @hex{@encodings} = split(/ +/, $line);
450  
451 23156 my %bin = ();
452 23156 for my $encoding (@io_encodings) {
453 463120 ▶ $bin{$encoding} = (($hex{$encoding} =~ /^[0123456789ABCDEF]+$/) ? pack('H*', $hex{$encoding}) : '');
Branch: 1 branch
BranchTrueFalseTotal
$hex{$encoding} =~ /^[0123456789ABCDEF]+$/ ? : 373956 89164 463120
454 }
455  
456 23156 for my $encoding (@io_encodings) {
457 463120 ▶ if ($bin{'utf8jp'} ne '') {
Branch: 1 branch
BranchTrueFalseTotal
if ($bin{"utf8jp"} ne "") 463120 0 463120
458 463120 ▶ if ($bin{$encoding} ne '') {
Branch: 2 branches
BranchTrueFalseTotal
if ($bin{$encoding} ne '') { } 373956 89164 463120
elsif (exists $userarea->{$encoding}) { } 37598 51566 89164
459 373956 ▶ if ($encoding eq 'utf8jp') {
Branch: 3 branches
BranchTrueFalseTotal
if ($encoding eq 'utf8jp') { } 23156 350800 373956
elsif (defined $tr_roundtrip{'utf8jp'}{$encoding}{$bin{$encoding}} and $tr_roundtrip{'utf8jp'}{$encoding}{$bin{$encoding}} ne '') { } 0 350800 350800
elsif (defined $tr_roundtrip{$encoding}{'utf8jp'}{$bin{'utf8jp'}} and $tr_roundtrip{$encoding}{'utf8jp'}{$bin{'utf8jp'}} ne '') { } 0 701600 701600
460 }
461 ▶ elsif (defined($tr_roundtrip{'utf8jp'}{$encoding}{$bin{$encoding}}) and ($tr_roundtrip{'utf8jp'}{$encoding}{$bin{$encoding}} ne '')) {
Condition33%1/3
defined $tr_roundtrip{"utf8jp"}{$encoding}{$bin{$encoding}} and $tr_roundtrip{"utf8jp"}{$encoding}{$bin{$encoding}} ne ""
!ll&&!rl&&r
35080000
MC/DC0%0/2
defined $tr_roundtrip{"utf8jp"}{$encoding}{$bin{$encoding}} and $tr_roundtrip{"utf8jp"}{$encoding}{$bin{$encoding}} ne ""
defined $tr_roundtrip{"utf8jp"}{$encoding}{$bin{$encoding}} $tr_roundtrip{"utf8jp"}{$encoding}{$bin{$encoding}} ne ""
Truth table33%1/3
A and B
A= defined $tr_roundtrip{"utf8jp"}{$encoding}{$bin{$encoding}}B= $tr_roundtrip{"utf8jp"}{$encoding}{$bin{$encoding}} ne ""
ABresult
0X0
100
111
462 0 die qq{@{[__FILE__]} duplicate definitions \$tr_roundtrip{'utf8jp'}{'$encoding'}{'$hex{$encoding}'} = "$hex{utf8}($bin{utf8})" and "} . uc unpack('H*',$tr_roundtrip{'utf8jp'}{$encoding}{$bin{$encoding}}) . qq{"($tr_roundtrip{'utf8jp'}{$encoding}{$bin{$encoding}})\n};
463 }
464 ▶ elsif (defined($tr_roundtrip{$encoding}{'utf8jp'}{$bin{'utf8jp' }}) and ($tr_roundtrip{$encoding}{'utf8jp'}{$bin{'utf8jp' }} ne '')) {
Condition33%1/3
defined $tr_roundtrip{$encoding}{"utf8jp"}{$bin{"utf8jp"}} and $tr_roundtrip{$encoding}{"utf8jp"}{$bin{"utf8jp"}} ne ""
!ll&&!rl&&r
35080000
MC/DC0%0/2
defined $tr_roundtrip{$encoding}{"utf8jp"}{$bin{"utf8jp"}} and $tr_roundtrip{$encoding}{"utf8jp"}{$bin{"utf8jp"}} ne ""
defined $tr_roundtrip{$encoding}{"utf8jp"}{$bin{"utf8jp"}} $tr_roundtrip{$encoding}{"utf8jp"}{$bin{"utf8jp"}} ne ""
Truth table33%1/3
A and B
A= defined $tr_roundtrip{$encoding}{"utf8jp"}{$bin{"utf8jp"}}B= $tr_roundtrip{$encoding}{"utf8jp"}{$bin{"utf8jp"}} ne ""
ABresult
0X0
100
111
465 0 die qq{@{[__FILE__]} duplicate definitions \$tr_roundtrip{'$encoding'}{'utf8jp'}{'$hex{utf8}'} = "$hex{$encoding}" and "} . uc unpack('H*',$tr_roundtrip{$encoding}{'utf8jp'}{$bin{'utf8jp'}}) . qq{"\n};
466 }
467  
468 373956 $tr_roundtrip{'utf8jp'}{$encoding}{$bin{$encoding}} = $bin{'utf8jp'};
469 373956 $tr_roundtrip{$encoding}{'utf8jp'}{$bin{'utf8jp'} } = $bin{$encoding};
470 }
471 elsif (exists $userarea->{$encoding}) {
472 37598 ▶ if (my $bin_encoding = shift(@{$userarea->{$encoding}})) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $bin_encoding = shift @{$$userarea{$encoding};}) { } 37598 0 37598
473 37598 $tr_roundtrip{'utf8jp'}{$encoding}{$bin_encoding} = $bin{'utf8jp'};
474 37598 $tr_roundtrip{$encoding}{'utf8jp'}{$bin{'utf8jp'}} = $bin_encoding;
475 }
476 else {
477 0 die qq{@{[__FILE__]} User area of '$encoding' is not enough\n};
478 }
479 }
480 }
481 }
482 }
483  
484 # build the 'euc2004' table for ROUND_TRIP from the 'sjis2004'
485 # table (same men-ku-ten derivation as the default table; sjis2004
486 # is not affected by the user-defined area allocation)
487 2 for my $sjis2004 (keys %{$tr_roundtrip{'utf8jp'}{'sjis2004'}}) {
488 22974 ▶ if (length($sjis2004) == 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (length $sjis2004 == 2) { } 22462 512 22974
elsif (length $sjis2004 == 1) { } 512 0 512
489 22462 my($men, $ku, $ten) = sjis2004_to_menkuten($sjis2004);
490 22462 ▶ if (defined $men) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $men) 22462 0 22462
491 22462 my $euc2004 = menkuten_to_euc2004($men, $ku, $ten);
492 22462 my $utf8jp = $tr_roundtrip{'utf8jp'}{'sjis2004'}{$sjis2004};
493 22462 $tr_roundtrip{'euc2004'}{'utf8jp'}{$utf8jp} = $euc2004;
494 22462 $tr_roundtrip{'utf8jp'}{'euc2004'}{$euc2004} = $utf8jp;
495 }
496 }
497 elsif (length($sjis2004) == 1) {
498 512 my $utf8jp = $tr_roundtrip{'utf8jp'}{'sjis2004'}{$sjis2004};
499 512 my($c) = unpack('C', $sjis2004);
500 512 ▶ my $euc2004 = ($c <= 0x7F) ? $sjis2004 : pack('CC', 0x8E, $c);
Branch: 1 branch
BranchTrueFalseTotal
$c <= 127 ? : 256 256 512
501 512 ▶ $tr_roundtrip{'euc2004'}{'utf8jp'}{$utf8jp} = $euc2004 if not defined $tr_roundtrip{'euc2004'}{'utf8jp'}{$utf8jp};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $tr_roundtrip{"euc2004"}{"utf8jp"}{$utf8jp} 512 0 512
502 512 ▶ $tr_roundtrip{'utf8jp'}{'euc2004'}{$euc2004} = $utf8jp if not defined $tr_roundtrip{'utf8jp'}{'euc2004'}{$euc2004};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $tr_roundtrip{"utf8jp"}{"euc2004"}{$euc2004} 512 0 512
503 }
504 }
505  
506 2 $tr_roundtrip_built = 1;
507 }
508  
509 76 my %Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode = ();
510 76 for (split /\n/, <<'END') {
511 # https://support.microsoft.com/ja-jp/help/170559/prb-conversion-problem-between-shift-jis-and-unicode
512 # CodePage 932 : 398 non-round-trip mappings
513 0x8790 -> U+2252 -> 0x81e0 Approximately Equal To Or The Image Of
514 0x8791 -> U+2261 -> 0x81df Identical To
515 0x8792 -> U+222b -> 0x81e7 Integral
516 0x8795 -> U+221a -> 0x81e3 Square Root
517 0x8796 -> U+22a5 -> 0x81db Up Tack
518 0x8797 -> U+2220 -> 0x81da Angle
519 0x879a -> U+2235 -> 0x81e6 Because
520 0x879b -> U+2229 -> 0x81bf Intersection
521 0x879c -> U+222a -> 0x81be Union
522 0xed40 -> U+7e8a -> 0xfa5c CJK Unified Ideograph
523 0xed41 -> U+891c -> 0xfa5d CJK Unified Ideograph
524 0xed42 -> U+9348 -> 0xfa5e CJK Unified Ideograph
525 0xed43 -> U+9288 -> 0xfa5f CJK Unified Ideograph
526 0xed44 -> U+84dc -> 0xfa60 CJK Unified Ideograph
527 0xed45 -> U+4fc9 -> 0xfa61 CJK Unified Ideograph
528 0xed46 -> U+70bb -> 0xfa62 CJK Unified Ideograph
529 0xed47 -> U+6631 -> 0xfa63 CJK Unified Ideograph
530 0xed48 -> U+68c8 -> 0xfa64 CJK Unified Ideograph
531 0xed49 -> U+92f9 -> 0xfa65 CJK Unified Ideograph
532 0xed4a -> U+66fb -> 0xfa66 CJK Unified Ideograph
533 0xed4b -> U+5f45 -> 0xfa67 CJK Unified Ideograph
534 0xed4c -> U+4e28 -> 0xfa68 CJK Unified Ideograph
535 0xed4d -> U+4ee1 -> 0xfa69 CJK Unified Ideograph
536 0xed4e -> U+4efc -> 0xfa6a CJK Unified Ideograph
537 0xed4f -> U+4f00 -> 0xfa6b CJK Unified Ideograph
538 0xed50 -> U+4f03 -> 0xfa6c CJK Unified Ideograph
539 0xed51 -> U+4f39 -> 0xfa6d CJK Unified Ideograph
540 0xed52 -> U+4f56 -> 0xfa6e CJK Unified Ideograph
541 0xed53 -> U+4f92 -> 0xfa6f CJK Unified Ideograph
542 0xed54 -> U+4f8a -> 0xfa70 CJK Unified Ideograph
543 0xed55 -> U+4f9a -> 0xfa71 CJK Unified Ideograph
544 0xed56 -> U+4f94 -> 0xfa72 CJK Unified Ideograph
545 0xed57 -> U+4fcd -> 0xfa73 CJK Unified Ideograph
546 0xed58 -> U+5040 -> 0xfa74 CJK Unified Ideograph
547 0xed59 -> U+5022 -> 0xfa75 CJK Unified Ideograph
548 0xed5a -> U+4fff -> 0xfa76 CJK Unified Ideograph
549 0xed5b -> U+501e -> 0xfa77 CJK Unified Ideograph
550 0xed5c -> U+5046 -> 0xfa78 CJK Unified Ideograph
551 0xed5d -> U+5070 -> 0xfa79 CJK Unified Ideograph
552 0xed5e -> U+5042 -> 0xfa7a CJK Unified Ideograph
553 0xed5f -> U+5094 -> 0xfa7b CJK Unified Ideograph
554 0xed60 -> U+50f4 -> 0xfa7c CJK Unified Ideograph
555 0xed61 -> U+50d8 -> 0xfa7d CJK Unified Ideograph
556 0xed62 -> U+514a -> 0xfa7e CJK Unified Ideograph
557 0xed63 -> U+5164 -> 0xfa80 CJK Unified Ideograph
558 0xed64 -> U+519d -> 0xfa81 CJK Unified Ideograph
559 0xed65 -> U+51be -> 0xfa82 CJK Unified Ideograph
560 0xed66 -> U+51ec -> 0xfa83 CJK Unified Ideograph
561 0xed67 -> U+5215 -> 0xfa84 CJK Unified Ideograph
562 0xed68 -> U+529c -> 0xfa85 CJK Unified Ideograph
563 0xed69 -> U+52a6 -> 0xfa86 CJK Unified Ideograph
564 0xed6a -> U+52c0 -> 0xfa87 CJK Unified Ideograph
565 0xed6b -> U+52db -> 0xfa88 CJK Unified Ideograph
566 0xed6c -> U+5300 -> 0xfa89 CJK Unified Ideograph
567 0xed6d -> U+5307 -> 0xfa8a CJK Unified Ideograph
568 0xed6e -> U+5324 -> 0xfa8b CJK Unified Ideograph
569 0xed6f -> U+5372 -> 0xfa8c CJK Unified Ideograph
570 0xed70 -> U+5393 -> 0xfa8d CJK Unified Ideograph
571 0xed71 -> U+53b2 -> 0xfa8e CJK Unified Ideograph
572 0xed72 -> U+53dd -> 0xfa8f CJK Unified Ideograph
573 0xed73 -> U+fa0e -> 0xfa90 CJK compatibility Ideograph
574 0xed74 -> U+549c -> 0xfa91 CJK Unified Ideograph
575 0xed75 -> U+548a -> 0xfa92 CJK Unified Ideograph
576 0xed76 -> U+54a9 -> 0xfa93 CJK Unified Ideograph
577 0xed77 -> U+54ff -> 0xfa94 CJK Unified Ideograph
578 0xed78 -> U+5586 -> 0xfa95 CJK Unified Ideograph
579 0xed79 -> U+5759 -> 0xfa96 CJK Unified Ideograph
580 0xed7a -> U+5765 -> 0xfa97 CJK Unified Ideograph
581 0xed7b -> U+57ac -> 0xfa98 CJK Unified Ideograph
582 0xed7c -> U+57c8 -> 0xfa99 CJK Unified Ideograph
583 0xed7d -> U+57c7 -> 0xfa9a CJK Unified Ideograph
584 0xed7e -> U+fa0f -> 0xfa9b CJK compatibility Ideograph
585 0xed80 -> U+fa10 -> 0xfa9c CJK compatibility Ideograph
586 0xed81 -> U+589e -> 0xfa9d CJK Unified Ideograph
587 0xed82 -> U+58b2 -> 0xfa9e CJK Unified Ideograph
588 0xed83 -> U+590b -> 0xfa9f CJK Unified Ideograph
589 0xed84 -> U+5953 -> 0xfaa0 CJK Unified Ideograph
590 0xed85 -> U+595b -> 0xfaa1 CJK Unified Ideograph
591 0xed86 -> U+595d -> 0xfaa2 CJK Unified Ideograph
592 0xed87 -> U+5963 -> 0xfaa3 CJK Unified Ideograph
593 0xed88 -> U+59a4 -> 0xfaa4 CJK Unified Ideograph
594 0xed89 -> U+59ba -> 0xfaa5 CJK Unified Ideograph
595 0xed8a -> U+5b56 -> 0xfaa6 CJK Unified Ideograph
596 0xed8b -> U+5bc0 -> 0xfaa7 CJK Unified Ideograph
597 0xed8c -> U+752f -> 0xfaa8 CJK Unified Ideograph
598 0xed8d -> U+5bd8 -> 0xfaa9 CJK Unified Ideograph
599 0xed8e -> U+5bec -> 0xfaaa CJK Unified Ideograph
600 0xed8f -> U+5c1e -> 0xfaab CJK Unified Ideograph
601 0xed90 -> U+5ca6 -> 0xfaac CJK Unified Ideograph
602 0xed91 -> U+5cba -> 0xfaad CJK Unified Ideograph
603 0xed92 -> U+5cf5 -> 0xfaae CJK Unified Ideograph
604 0xed93 -> U+5d27 -> 0xfaaf CJK Unified Ideograph
605 0xed94 -> U+5d53 -> 0xfab0 CJK Unified Ideograph
606 0xed95 -> U+fa11 -> 0xfab1 CJK compatibility Ideograph
607 0xed96 -> U+5d42 -> 0xfab2 CJK Unified Ideograph
608 0xed97 -> U+5d6d -> 0xfab3 CJK Unified Ideograph
609 0xed98 -> U+5db8 -> 0xfab4 CJK Unified Ideograph
610 0xed99 -> U+5db9 -> 0xfab5 CJK Unified Ideograph
611 0xed9a -> U+5dd0 -> 0xfab6 CJK Unified Ideograph
612 0xed9b -> U+5f21 -> 0xfab7 CJK Unified Ideograph
613 0xed9c -> U+5f34 -> 0xfab8 CJK Unified Ideograph
614 0xed9d -> U+5f67 -> 0xfab9 CJK Unified Ideograph
615 0xed9e -> U+5fb7 -> 0xfaba CJK Unified Ideograph
616 0xed9f -> U+5fde -> 0xfabb CJK Unified Ideograph
617 0xeda0 -> U+605d -> 0xfabc CJK Unified Ideograph
618 0xeda1 -> U+6085 -> 0xfabd CJK Unified Ideograph
619 0xeda2 -> U+608a -> 0xfabe CJK Unified Ideograph
620 0xeda3 -> U+60de -> 0xfabf CJK Unified Ideograph
621 0xeda4 -> U+60d5 -> 0xfac0 CJK Unified Ideograph
622 0xeda5 -> U+6120 -> 0xfac1 CJK Unified Ideograph
623 0xeda6 -> U+60f2 -> 0xfac2 CJK Unified Ideograph
624 0xeda7 -> U+6111 -> 0xfac3 CJK Unified Ideograph
625 0xeda8 -> U+6137 -> 0xfac4 CJK Unified Ideograph
626 0xeda9 -> U+6130 -> 0xfac5 CJK Unified Ideograph
627 0xedaa -> U+6198 -> 0xfac6 CJK Unified Ideograph
628 0xedab -> U+6213 -> 0xfac7 CJK Unified Ideograph
629 0xedac -> U+62a6 -> 0xfac8 CJK Unified Ideograph
630 0xedad -> U+63f5 -> 0xfac9 CJK Unified Ideograph
631 0xedae -> U+6460 -> 0xfaca CJK Unified Ideograph
632 0xedaf -> U+649d -> 0xfacb CJK Unified Ideograph
633 0xedb0 -> U+64ce -> 0xfacc CJK Unified Ideograph
634 0xedb1 -> U+654e -> 0xfacd CJK Unified Ideograph
635 0xedb2 -> U+6600 -> 0xface CJK Unified Ideograph
636 0xedb3 -> U+6615 -> 0xfacf CJK Unified Ideograph
637 0xedb4 -> U+663b -> 0xfad0 CJK Unified Ideograph
638 0xedb5 -> U+6609 -> 0xfad1 CJK Unified Ideograph
639 0xedb6 -> U+662e -> 0xfad2 CJK Unified Ideograph
640 0xedb7 -> U+661e -> 0xfad3 CJK Unified Ideograph
641 0xedb8 -> U+6624 -> 0xfad4 CJK Unified Ideograph
642 0xedb9 -> U+6665 -> 0xfad5 CJK Unified Ideograph
643 0xedba -> U+6657 -> 0xfad6 CJK Unified Ideograph
644 0xedbb -> U+6659 -> 0xfad7 CJK Unified Ideograph
645 0xedbc -> U+fa12 -> 0xfad8 CJK compatibility Ideograph
646 0xedbd -> U+6673 -> 0xfad9 CJK Unified Ideograph
647 0xedbe -> U+6699 -> 0xfada CJK Unified Ideograph
648 0xedbf -> U+66a0 -> 0xfadb CJK Unified Ideograph
649 0xedc0 -> U+66b2 -> 0xfadc CJK Unified Ideograph
650 0xedc1 -> U+66bf -> 0xfadd CJK Unified Ideograph
651 0xedc2 -> U+66fa -> 0xfade CJK Unified Ideograph
652 0xedc3 -> U+670e -> 0xfadf CJK Unified Ideograph
653 0xedc4 -> U+f929 -> 0xfae0 CJK compatibility Ideograph
654 0xedc5 -> U+6766 -> 0xfae1 CJK Unified Ideograph
655 0xedc6 -> U+67bb -> 0xfae2 CJK Unified Ideograph
656 0xedc7 -> U+6852 -> 0xfae3 CJK Unified Ideograph
657 0xedc8 -> U+67c0 -> 0xfae4 CJK Unified Ideograph
658 0xedc9 -> U+6801 -> 0xfae5 CJK Unified Ideograph
659 0xedca -> U+6844 -> 0xfae6 CJK Unified Ideograph
660 0xedcb -> U+68cf -> 0xfae7 CJK Unified Ideograph
661 0xedcc -> U+fa13 -> 0xfae8 CJK compatibility Ideograph
662 0xedcd -> U+6968 -> 0xfae9 CJK Unified Ideograph
663 0xedce -> U+fa14 -> 0xfaea CJK compatibility Ideograph
664 0xedcf -> U+6998 -> 0xfaeb CJK Unified Ideograph
665 0xedd0 -> U+69e2 -> 0xfaec CJK Unified Ideograph
666 0xedd1 -> U+6a30 -> 0xfaed CJK Unified Ideograph
667 0xedd2 -> U+6a6b -> 0xfaee CJK Unified Ideograph
668 0xedd3 -> U+6a46 -> 0xfaef CJK Unified Ideograph
669 0xedd4 -> U+6a73 -> 0xfaf0 CJK Unified Ideograph
670 0xedd5 -> U+6a7e -> 0xfaf1 CJK Unified Ideograph
671 0xedd6 -> U+6ae2 -> 0xfaf2 CJK Unified Ideograph
672 0xedd7 -> U+6ae4 -> 0xfaf3 CJK Unified Ideograph
673 0xedd8 -> U+6bd6 -> 0xfaf4 CJK Unified Ideograph
674 0xedd9 -> U+6c3f -> 0xfaf5 CJK Unified Ideograph
675 0xedda -> U+6c5c -> 0xfaf6 CJK Unified Ideograph
676 0xeddb -> U+6c86 -> 0xfaf7 CJK Unified Ideograph
677 0xeddc -> U+6c6f -> 0xfaf8 CJK Unified Ideograph
678 0xeddd -> U+6cda -> 0xfaf9 CJK Unified Ideograph
679 0xedde -> U+6d04 -> 0xfafa CJK Unified Ideograph
680 0xeddf -> U+6d87 -> 0xfafb CJK Unified Ideograph
681 0xede0 -> U+6d6f -> 0xfafc CJK Unified Ideograph
682 0xede1 -> U+6d96 -> 0xfb40 CJK Unified Ideograph
683 0xede2 -> U+6dac -> 0xfb41 CJK Unified Ideograph
684 0xede3 -> U+6dcf -> 0xfb42 CJK Unified Ideograph
685 0xede4 -> U+6df8 -> 0xfb43 CJK Unified Ideograph
686 0xede5 -> U+6df2 -> 0xfb44 CJK Unified Ideograph
687 0xede6 -> U+6dfc -> 0xfb45 CJK Unified Ideograph
688 0xede7 -> U+6e39 -> 0xfb46 CJK Unified Ideograph
689 0xede8 -> U+6e5c -> 0xfb47 CJK Unified Ideograph
690 0xede9 -> U+6e27 -> 0xfb48 CJK Unified Ideograph
691 0xedea -> U+6e3c -> 0xfb49 CJK Unified Ideograph
692 0xedeb -> U+6ebf -> 0xfb4a CJK Unified Ideograph
693 0xedec -> U+6f88 -> 0xfb4b CJK Unified Ideograph
694 0xeded -> U+6fb5 -> 0xfb4c CJK Unified Ideograph
695 0xedee -> U+6ff5 -> 0xfb4d CJK Unified Ideograph
696 0xedef -> U+7005 -> 0xfb4e CJK Unified Ideograph
697 0xedf0 -> U+7007 -> 0xfb4f CJK Unified Ideograph
698 0xedf1 -> U+7028 -> 0xfb50 CJK Unified Ideograph
699 0xedf2 -> U+7085 -> 0xfb51 CJK Unified Ideograph
700 0xedf3 -> U+70ab -> 0xfb52 CJK Unified Ideograph
701 0xedf4 -> U+710f -> 0xfb53 CJK Unified Ideograph
702 0xedf5 -> U+7104 -> 0xfb54 CJK Unified Ideograph
703 0xedf6 -> U+715c -> 0xfb55 CJK Unified Ideograph
704 0xedf7 -> U+7146 -> 0xfb56 CJK Unified Ideograph
705 0xedf8 -> U+7147 -> 0xfb57 CJK Unified Ideograph
706 0xedf9 -> U+fa15 -> 0xfb58 CJK compatibility Ideograph
707 0xedfa -> U+71c1 -> 0xfb59 CJK Unified Ideograph
708 0xedfb -> U+71fe -> 0xfb5a CJK Unified Ideograph
709 0xedfc -> U+72b1 -> 0xfb5b CJK Unified Ideograph
710 0xee40 -> U+72be -> 0xfb5c CJK Unified Ideograph
711 0xee41 -> U+7324 -> 0xfb5d CJK Unified Ideograph
712 0xee42 -> U+fa16 -> 0xfb5e CJK compatibility Ideograph
713 0xee43 -> U+7377 -> 0xfb5f CJK Unified Ideograph
714 0xee44 -> U+73bd -> 0xfb60 CJK Unified Ideograph
715 0xee45 -> U+73c9 -> 0xfb61 CJK Unified Ideograph
716 0xee46 -> U+73d6 -> 0xfb62 CJK Unified Ideograph
717 0xee47 -> U+73e3 -> 0xfb63 CJK Unified Ideograph
718 0xee48 -> U+73d2 -> 0xfb64 CJK Unified Ideograph
719 0xee49 -> U+7407 -> 0xfb65 CJK Unified Ideograph
720 0xee4a -> U+73f5 -> 0xfb66 CJK Unified Ideograph
721 0xee4b -> U+7426 -> 0xfb67 CJK Unified Ideograph
722 0xee4c -> U+742a -> 0xfb68 CJK Unified Ideograph
723 0xee4d -> U+7429 -> 0xfb69 CJK Unified Ideograph
724 0xee4e -> U+742e -> 0xfb6a CJK Unified Ideograph
725 0xee4f -> U+7462 -> 0xfb6b CJK Unified Ideograph
726 0xee50 -> U+7489 -> 0xfb6c CJK Unified Ideograph
727 0xee51 -> U+749f -> 0xfb6d CJK Unified Ideograph
728 0xee52 -> U+7501 -> 0xfb6e CJK Unified Ideograph
729 0xee53 -> U+756f -> 0xfb6f CJK Unified Ideograph
730 0xee54 -> U+7682 -> 0xfb70 CJK Unified Ideograph
731 0xee55 -> U+769c -> 0xfb71 CJK Unified Ideograph
732 0xee56 -> U+769e -> 0xfb72 CJK Unified Ideograph
733 0xee57 -> U+769b -> 0xfb73 CJK Unified Ideograph
734 0xee58 -> U+76a6 -> 0xfb74 CJK Unified Ideograph
735 0xee59 -> U+fa17 -> 0xfb75 CJK compatibility Ideograph
736 0xee5a -> U+7746 -> 0xfb76 CJK Unified Ideograph
737 0xee5b -> U+52af -> 0xfb77 CJK Unified Ideograph
738 0xee5c -> U+7821 -> 0xfb78 CJK Unified Ideograph
739 0xee5d -> U+784e -> 0xfb79 CJK Unified Ideograph
740 0xee5e -> U+7864 -> 0xfb7a CJK Unified Ideograph
741 0xee5f -> U+787a -> 0xfb7b CJK Unified Ideograph
742 0xee60 -> U+7930 -> 0xfb7c CJK Unified Ideograph
743 0xee61 -> U+fa18 -> 0xfb7d CJK compatibility Ideograph
744 0xee62 -> U+fa19 -> 0xfb7e CJK compatibility Ideograph
745 0xee63 -> U+fa1a -> 0xfb80 CJK compatibility Ideograph
746 0xee64 -> U+7994 -> 0xfb81 CJK Unified Ideograph
747 0xee65 -> U+fa1b -> 0xfb82 CJK compatibility Ideograph
748 0xee66 -> U+799b -> 0xfb83 CJK Unified Ideograph
749 0xee67 -> U+7ad1 -> 0xfb84 CJK Unified Ideograph
750 0xee68 -> U+7ae7 -> 0xfb85 CJK Unified Ideograph
751 0xee69 -> U+fa1c -> 0xfb86 CJK compatibility Ideograph
752 0xee6a -> U+7aeb -> 0xfb87 CJK Unified Ideograph
753 0xee6b -> U+7b9e -> 0xfb88 CJK Unified Ideograph
754 0xee6c -> U+fa1d -> 0xfb89 CJK compatibility Ideograph
755 0xee6d -> U+7d48 -> 0xfb8a CJK Unified Ideograph
756 0xee6e -> U+7d5c -> 0xfb8b CJK Unified Ideograph
757 0xee6f -> U+7db7 -> 0xfb8c CJK Unified Ideograph
758 0xee70 -> U+7da0 -> 0xfb8d CJK Unified Ideograph
759 0xee71 -> U+7dd6 -> 0xfb8e CJK Unified Ideograph
760 0xee72 -> U+7e52 -> 0xfb8f CJK Unified Ideograph
761 0xee73 -> U+7f47 -> 0xfb90 CJK Unified Ideograph
762 0xee74 -> U+7fa1 -> 0xfb91 CJK Unified Ideograph
763 0xee75 -> U+fa1e -> 0xfb92 CJK compatibility Ideograph
764 0xee76 -> U+8301 -> 0xfb93 CJK Unified Ideograph
765 0xee77 -> U+8362 -> 0xfb94 CJK Unified Ideograph
766 0xee78 -> U+837f -> 0xfb95 CJK Unified Ideograph
767 0xee79 -> U+83c7 -> 0xfb96 CJK Unified Ideograph
768 0xee7a -> U+83f6 -> 0xfb97 CJK Unified Ideograph
769 0xee7b -> U+8448 -> 0xfb98 CJK Unified Ideograph
770 0xee7c -> U+84b4 -> 0xfb99 CJK Unified Ideograph
771 0xee7d -> U+8553 -> 0xfb9a CJK Unified Ideograph
772 0xee7e -> U+8559 -> 0xfb9b CJK Unified Ideograph
773 0xee80 -> U+856b -> 0xfb9c CJK Unified Ideograph
774 0xee81 -> U+fa1f -> 0xfb9d CJK compatibility Ideograph
775 0xee82 -> U+85b0 -> 0xfb9e CJK Unified Ideograph
776 0xee83 -> U+fa20 -> 0xfb9f CJK compatibility Ideograph
777 0xee84 -> U+fa21 -> 0xfba0 CJK compatibility Ideograph
778 0xee85 -> U+8807 -> 0xfba1 CJK Unified Ideograph
779 0xee86 -> U+88f5 -> 0xfba2 CJK Unified Ideograph
780 0xee87 -> U+8a12 -> 0xfba3 CJK Unified Ideograph
781 0xee88 -> U+8a37 -> 0xfba4 CJK Unified Ideograph
782 0xee89 -> U+8a79 -> 0xfba5 CJK Unified Ideograph
783 0xee8a -> U+8aa7 -> 0xfba6 CJK Unified Ideograph
784 0xee8b -> U+8abe -> 0xfba7 CJK Unified Ideograph
785 0xee8c -> U+8adf -> 0xfba8 CJK Unified Ideograph
786 0xee8d -> U+fa22 -> 0xfba9 CJK compatibility Ideograph
787 0xee8e -> U+8af6 -> 0xfbaa CJK Unified Ideograph
788 0xee8f -> U+8b53 -> 0xfbab CJK Unified Ideograph
789 0xee90 -> U+8b7f -> 0xfbac CJK Unified Ideograph
790 0xee91 -> U+8cf0 -> 0xfbad CJK Unified Ideograph
791 0xee92 -> U+8cf4 -> 0xfbae CJK Unified Ideograph
792 0xee93 -> U+8d12 -> 0xfbaf CJK Unified Ideograph
793 0xee94 -> U+8d76 -> 0xfbb0 CJK Unified Ideograph
794 0xee95 -> U+fa23 -> 0xfbb1 CJK compatibility Ideograph
795 0xee96 -> U+8ecf -> 0xfbb2 CJK Unified Ideograph
796 0xee97 -> U+fa24 -> 0xfbb3 CJK compatibility Ideograph
797 0xee98 -> U+fa25 -> 0xfbb4 CJK compatibility Ideograph
798 0xee99 -> U+9067 -> 0xfbb5 CJK Unified Ideograph
799 0xee9a -> U+90de -> 0xfbb6 CJK Unified Ideograph
800 0xee9b -> U+fa26 -> 0xfbb7 CJK compatibility Ideograph
801 0xee9c -> U+9115 -> 0xfbb8 CJK Unified Ideograph
802 0xee9d -> U+9127 -> 0xfbb9 CJK Unified Ideograph
803 0xee9e -> U+91da -> 0xfbba CJK Unified Ideograph
804 0xee9f -> U+91d7 -> 0xfbbb CJK Unified Ideograph
805 0xeea0 -> U+91de -> 0xfbbc CJK Unified Ideograph
806 0xeea1 -> U+91ed -> 0xfbbd CJK Unified Ideograph
807 0xeea2 -> U+91ee -> 0xfbbe CJK Unified Ideograph
808 0xeea3 -> U+91e4 -> 0xfbbf CJK Unified Ideograph
809 0xeea4 -> U+91e5 -> 0xfbc0 CJK Unified Ideograph
810 0xeea5 -> U+9206 -> 0xfbc1 CJK Unified Ideograph
811 0xeea6 -> U+9210 -> 0xfbc2 CJK Unified Ideograph
812 0xeea7 -> U+920a -> 0xfbc3 CJK Unified Ideograph
813 0xeea8 -> U+923a -> 0xfbc4 CJK Unified Ideograph
814 0xeea9 -> U+9240 -> 0xfbc5 CJK Unified Ideograph
815 0xeeaa -> U+923c -> 0xfbc6 CJK Unified Ideograph
816 0xeeab -> U+924e -> 0xfbc7 CJK Unified Ideograph
817 0xeeac -> U+9259 -> 0xfbc8 CJK Unified Ideograph
818 0xeead -> U+9251 -> 0xfbc9 CJK Unified Ideograph
819 0xeeae -> U+9239 -> 0xfbca CJK Unified Ideograph
820 0xeeaf -> U+9267 -> 0xfbcb CJK Unified Ideograph
821 0xeeb0 -> U+92a7 -> 0xfbcc CJK Unified Ideograph
822 0xeeb1 -> U+9277 -> 0xfbcd CJK Unified Ideograph
823 0xeeb2 -> U+9278 -> 0xfbce CJK Unified Ideograph
824 0xeeb3 -> U+92e7 -> 0xfbcf CJK Unified Ideograph
825 0xeeb4 -> U+92d7 -> 0xfbd0 CJK Unified Ideograph
826 0xeeb5 -> U+92d9 -> 0xfbd1 CJK Unified Ideograph
827 0xeeb6 -> U+92d0 -> 0xfbd2 CJK Unified Ideograph
828 0xeeb7 -> U+fa27 -> 0xfbd3 CJK compatibility Ideograph
829 0xeeb8 -> U+92d5 -> 0xfbd4 CJK Unified Ideograph
830 0xeeb9 -> U+92e0 -> 0xfbd5 CJK Unified Ideograph
831 0xeeba -> U+92d3 -> 0xfbd6 CJK Unified Ideograph
832 0xeebb -> U+9325 -> 0xfbd7 CJK Unified Ideograph
833 0xeebc -> U+9321 -> 0xfbd8 CJK Unified Ideograph
834 0xeebd -> U+92fb -> 0xfbd9 CJK Unified Ideograph
835 0xeebe -> U+fa28 -> 0xfbda CJK compatibility Ideograph
836 0xeebf -> U+931e -> 0xfbdb CJK Unified Ideograph
837 0xeec0 -> U+92ff -> 0xfbdc CJK Unified Ideograph
838 0xeec1 -> U+931d -> 0xfbdd CJK Unified Ideograph
839 0xeec2 -> U+9302 -> 0xfbde CJK Unified Ideograph
840 0xeec3 -> U+9370 -> 0xfbdf CJK Unified Ideograph
841 0xeec4 -> U+9357 -> 0xfbe0 CJK Unified Ideograph
842 0xeec5 -> U+93a4 -> 0xfbe1 CJK Unified Ideograph
843 0xeec6 -> U+93c6 -> 0xfbe2 CJK Unified Ideograph
844 0xeec7 -> U+93de -> 0xfbe3 CJK Unified Ideograph
845 0xeec8 -> U+93f8 -> 0xfbe4 CJK Unified Ideograph
846 0xeec9 -> U+9431 -> 0xfbe5 CJK Unified Ideograph
847 0xeeca -> U+9445 -> 0xfbe6 CJK Unified Ideograph
848 0xeecb -> U+9448 -> 0xfbe7 CJK Unified Ideograph
849 0xeecc -> U+9592 -> 0xfbe8 CJK Unified Ideograph
850 0xeecd -> U+f9dc -> 0xfbe9 CJK compatibility Ideograph
851 0xeece -> U+fa29 -> 0xfbea CJK compatibility Ideograph
852 0xeecf -> U+969d -> 0xfbeb CJK Unified Ideograph
853 0xeed0 -> U+96af -> 0xfbec CJK Unified Ideograph
854 0xeed1 -> U+9733 -> 0xfbed CJK Unified Ideograph
855 0xeed2 -> U+973b -> 0xfbee CJK Unified Ideograph
856 0xeed3 -> U+9743 -> 0xfbef CJK Unified Ideograph
857 0xeed4 -> U+974d -> 0xfbf0 CJK Unified Ideograph
858 0xeed5 -> U+974f -> 0xfbf1 CJK Unified Ideograph
859 0xeed6 -> U+9751 -> 0xfbf2 CJK Unified Ideograph
860 0xeed7 -> U+9755 -> 0xfbf3 CJK Unified Ideograph
861 0xeed8 -> U+9857 -> 0xfbf4 CJK Unified Ideograph
862 0xeed9 -> U+9865 -> 0xfbf5 CJK Unified Ideograph
863 0xeeda -> U+fa2a -> 0xfbf6 CJK compatibility Ideograph
864 0xeedb -> U+fa2b -> 0xfbf7 CJK compatibility Ideograph
865 0xeedc -> U+9927 -> 0xfbf8 CJK Unified Ideograph
866 0xeedd -> U+fa2c -> 0xfbf9 CJK compatibility Ideograph
867 0xeede -> U+999e -> 0xfbfa CJK Unified Ideograph
868 0xeedf -> U+9a4e -> 0xfbfb CJK Unified Ideograph
869 0xeee0 -> U+9ad9 -> 0xfbfc CJK Unified Ideograph
870 0xeee1 -> U+9adc -> 0xfc40 CJK Unified Ideograph
871 0xeee2 -> U+9b75 -> 0xfc41 CJK Unified Ideograph
872 0xeee3 -> U+9b72 -> 0xfc42 CJK Unified Ideograph
873 0xeee4 -> U+9b8f -> 0xfc43 CJK Unified Ideograph
874 0xeee5 -> U+9bb1 -> 0xfc44 CJK Unified Ideograph
875 0xeee6 -> U+9bbb -> 0xfc45 CJK Unified Ideograph
876 0xeee7 -> U+9c00 -> 0xfc46 CJK Unified Ideograph
877 0xeee8 -> U+9d70 -> 0xfc47 CJK Unified Ideograph
878 0xeee9 -> U+9d6b -> 0xfc48 CJK Unified Ideograph
879 0xeeea -> U+fa2d -> 0xfc49 CJK compatibility Ideograph
880 0xeeeb -> U+9e19 -> 0xfc4a CJK Unified Ideograph
881 0xeeec -> U+9ed1 -> 0xfc4b CJK Unified Ideograph
882 0xeeef -> U+2170 -> 0xfa40 Small Roman Numeral One
883 0xeef0 -> U+2171 -> 0xfa41 Small Roman Numeral Two
884 0xeef1 -> U+2172 -> 0xfa42 Small Roman Numeral Three
885 0xeef2 -> U+2173 -> 0xfa43 Small Roman Numeral Four
886 0xeef3 -> U+2174 -> 0xfa44 Small Roman Numeral Five
887 0xeef4 -> U+2175 -> 0xfa45 Small Roman Numeral Six
888 0xeef5 -> U+2176 -> 0xfa46 Small Roman Numeral Seven
889 0xeef6 -> U+2177 -> 0xfa47 Small Roman Numeral Eight
890 0xeef7 -> U+2178 -> 0xfa48 Small Roman Numeral Nine
891 0xeef8 -> U+2179 -> 0xfa49 Small Roman Numeral Ten
892 0xeef9 -> U+ffe2 -> 0x81ca Fullwidth Not Sign
893 0xeefa -> U+ffe4 -> 0xfa55 Fullwidth Broken Bar
894 0xeefb -> U+ff07 -> 0xfa56 Fullwidth Apostrophe
895 0xeefc -> U+ff02 -> 0xfa57 Fullwidth Quotation Mark
896 0xfa4a -> U+2160 -> 0x8754 Roman Numeral One
897 0xfa4b -> U+2161 -> 0x8755 Roman Numeral Two
898 0xfa4c -> U+2162 -> 0x8756 Roman Numeral Three
899 0xfa4d -> U+2163 -> 0x8757 Roman Numeral Four
900 0xfa4e -> U+2164 -> 0x8758 Roman Numeral Five
901 0xfa4f -> U+2165 -> 0x8759 Roman Numeral Six
902 0xfa50 -> U+2166 -> 0x875a Roman Numeral Seven
903 0xfa51 -> U+2167 -> 0x875b Roman Numeral Eight
904 0xfa52 -> U+2168 -> 0x875c Roman Numeral Nine
905 0xfa53 -> U+2169 -> 0x875d Roman Numeral Ten
906 0xfa54 -> U+ffe2 -> 0x81ca Fullwidth Not Sign
907 0xfa58 -> U+3231 -> 0x878a Parenthesized Ideograph Stock
908 0xfa59 -> U+2116 -> 0x8782 Numero Sign
909 0xfa5a -> U+2121 -> 0x8784 Telephone Sign
910 0xfa5b -> U+2235 -> 0x81e6 Because
911 END
912 30400 ▶ next if /^#/;
Branch: 1 branch
BranchTrueFalseTotal
if /^#/ 152 30248 30400
913 30248 ▶ if (my($cp932a, $Unicode, $cp932b) = / 0x([0123456789abcdef]{4}) .+? U\+([0123456789abcdef]{4}) .+? 0x([0123456789abcdef]{4}) /x) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = / 0x([0123456789abcdef]{4}) .+? U\+([0123456789abcdef]{4}) .+? 0x([0123456789abcdef]{4}) /x) 30248 0 30248
914 30248 $Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{ pack('H*',uc($cp932a)) } = pack('H*',uc($cp932b));
915 }
916 }
917  
918 76 my $jis_kana = 0;
919 76 my $jis_x0212 = 0;
920 76 my $jis_sosi = 0;
921 76 my $jis_gl_ctype = 'SBCS';
922 76 my $jis_gl_kana = 0;
923  
924 # state for the 'jis2004' encoding (ISO-2022-JP-2004)
925 76 my $jis2004_men = 0; # 0 = SBCS/ASCII, 1 = plane 1, 2 = plane 2
926 76 my $jis2004_kana = 0; # ESC ( I JIS X 0201 Katakana
927  
928 my %x = (
929  
930 # kana shifting state of 'jis' encoding on input
931 # (see 'reset' of $x{'jis'}, initialized on every convert() call)
932 # my $jis_kana is declared just before %x so that the closures in
933 # %x can share it
934  
935 # utf8jp(UTF-8-SPUA-JP) is best choice as internal encoding, because it
936 # makes one character by one code point on fixed length without grapheme
937 # clustering.
938 # Other all are not so.
939  
940 'cp932x' => {
941 180 ▶ 'get_ctype' => sub { m!^[^\x81-\x9F\xE0-\xFC]! ? 'SBCS' : m!^[\x81-\x9F\xE0-\xFC]! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.2
Branch: 2 branches
BranchTrueFalseTotal
/^[^\x81-\x9F\xE0-\xFC]/ ? : 3 177 180
/^[\x81-\x9F\xE0-\xFC]/ ? : 177 0 177
942 4 ▶ 'set_ctype' => sub { q!! },
Subroutine __ANON__: called CC=1 SCAR=0.0
943 2884 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^((?:\x9C\x5A)?[\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 1641 1243 2884
944 2850 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'cp932x'}{$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]}||$_[0]} },
Subroutine __ANON__: called CC=2 SCAR=6.9
Condition100%3/3
$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]} || $_[0]
l!l&&r!l&&!r
39824466
MC/DC100%2/2
$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]} || $_[0]
$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]} $_[0]
Truth table100%3/3
A || B
A= $Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]}B= $_[0]
ABresult
1X1
011
000
945 9379 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'cp932x'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
946 },
947 'cp932' => {
948 717 ▶ 'get_ctype' => sub { m!^[^\x81-\x9F\xE0-\xFC]! ? 'SBCS' : m!^[\x81-\x9F\xE0-\xFC]! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.2
Branch: 2 branches
BranchTrueFalseTotal
/^[^\x81-\x9F\xE0-\xFC]/ ? : 324 393 717
/^[\x81-\x9F\xE0-\xFC]/ ? : 393 0 393
949 4 ▶ 'set_ctype' => sub { q!! },
Subroutine __ANON__: called CC=1 SCAR=0.0
950 35181 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 324 34857 35181
951 35180 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'cp932'}{$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]}||$_[0]} },
Subroutine __ANON__: called CC=2 SCAR=6.9
Condition100%3/3
$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]} || $_[0]
l!l&&r!l&&!r
409347692
MC/DC100%2/2
$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]} || $_[0]
$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]} $_[0]
Truth table100%3/3
A || B
A= $Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]}B= $_[0]
ABresult
1X1
011
000
952 10724 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'cp932'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
953 },
954 'cp932ibm' => {
955 6 ▶ 'get_ctype' => sub { m!^[^\x81-\x9F\xE0-\xFC]! ? 'SBCS' : m!^[\x81-\x9F\xE0-\xFC]! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.2
Branch: 2 branches
BranchTrueFalseTotal
/^[^\x81-\x9F\xE0-\xFC]/ ? : 3 3 6
/^[\x81-\x9F\xE0-\xFC]/ ? : 3 0 3
956 4 ▶ 'set_ctype' => sub { q!! },
Subroutine __ANON__: called CC=1 SCAR=0.0
957 6 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 3 3 6
958 # 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'cp932ibm'}{$_[0]} },
959 # VVVVVVVV--- 'cp932' with KB170559 is better than only 'cp932ibm' on read
960 6 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'cp932' }{$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]}||$_[0]} },
Subroutine __ANON__: called CC=2 SCAR=8.1
Condition33%1/3
$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]} || $_[0]
l!l&&r!l&&!r
060
MC/DC0%0/2
$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]} || $_[0]
$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]} $_[0]
Truth table33%1/3
A || B
A= $Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]}B= $_[0]
ABresult
1X1
011
000
961 18 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'cp932ibm'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
962 },
963 'cp932nec' => {
964 6 ▶ 'get_ctype' => sub { m!^[^\x81-\x9F\xE0-\xFC]! ? 'SBCS' : m!^[\x81-\x9F\xE0-\xFC]! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.2
Branch: 2 branches
BranchTrueFalseTotal
/^[^\x81-\x9F\xE0-\xFC]/ ? : 3 3 6
/^[\x81-\x9F\xE0-\xFC]/ ? : 3 0 3
965 4 ▶ 'set_ctype' => sub { q!! },
Subroutine __ANON__: called CC=1 SCAR=0.0
966 6 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 3 3 6
967 # 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'cp932nec'}{$_[0]} },
968 # VVVVVVVV--- 'cp932' with KB170559 is better than only 'cp932nec' on read
969 6 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'cp932' }{$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]}||$_[0]} },
Subroutine __ANON__: called CC=2 SCAR=8.1
Condition33%1/3
$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]} || $_[0]
l!l&&r!l&&!r
060
MC/DC0%0/2
$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]} || $_[0]
$Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]} $_[0]
Truth table33%1/3
A || B
A= $Knowledge_Base_Article_ID_170559_prb_conversion_problem_between_shift_jis_and_unicode{$_[0]}B= $_[0]
ABresult
1X1
011
000
970 18 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'cp932nec'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
971 },
972 'sjis2004' => {
973 11 ▶ 'get_ctype' => sub { m!^[^\x81-\x9F\xE0-\xFC]! ? 'SBCS' : m!^[\x81-\x9F\xE0-\xFC]! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.2
Branch: 2 branches
BranchTrueFalseTotal
/^[^\x81-\x9F\xE0-\xFC]/ ? : 5 6 11
/^[\x81-\x9F\xE0-\xFC]/ ? : 6 0 6
974 6 ▶ 'set_ctype' => sub { q!! },
Subroutine __ANON__: called CC=1 SCAR=0.0
975 11 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 5 6 11
976 11 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'sjis2004'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
977 26 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'sjis2004'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
978 },
979  
980 # 'euc2004' is JISC EUC-JIS-2004: code set 0 (ASCII/JIS X 0201
981 # Roman), code set 1 (JIS X 0213 plane 1, two GR octets), code
982 # set 2 (SS2 0x8E + JIS X 0201 Katakana, SBCS), and code set 3
983 # (SS3 0x8F + JIS X 0213 plane 2, three octets, DBCS).
984  
985 'euc2004' => {
986 15 ▶ 'get_ctype' => sub { m!^(?:\x8F|[\xA1-\xFE])! ? 'DBCS' : m!^[\x00-\x8E\x90-\xA0\xFF]! ? 'SBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.2
Branch: 2 branches
BranchTrueFalseTotal
/^(?:\x8F|[\xA1-\xFE])/ ? : 7 8 15
/^[\x00-\x8E\x90-\xA0\xFF]/ ? : 8 0 8
987 2 ▶ 'set_ctype' => sub { q!! },
Subroutine __ANON__: called CC=1 SCAR=0.0
988 15 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^(\x8E[\xA1-\xDF]|[\x00-\xFF])!! : s!^(\x8F[\xA1-\xFE][\xA1-\xFE]|[\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 8 7 15
989 15 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'euc2004'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
990 12 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'euc2004'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
991 },
992  
993 # 'jis2004' is JISC ISO-2022-JP-2004.
994 # On input, these escape sequences shift the ctype:
995 # ESC ( B US-ASCII => SBCS
996 # ESC ( J JIS X 0201 Roman => SBCS
997 # ESC ( I JIS X 0201 Katakana => SBCS (0x21..0x5F => 0xA1..0xDF)
998 # ESC $ ( Q JIS X 0213:2004 plane 1 => DBCS (plane 1)
999 # ESC $ ( O JIS X 0213:2000 plane 1 => DBCS (plane 1)
1000 # ESC $ B JIS X 0208-1983 => DBCS (plane 1, as a subset)
1001 # ESC $ @ JIS C 6226-1978 => DBCS (plane 1, as a subset)
1002 # ESC $ ( P JIS X 0213:2000 plane 2 => DBCS (plane 2)
1003 # On output, ESC ( B for SBCS, ESC $ ( Q for plane 1 (default) or
1004 # ESC $ ( O with the JIS2004_PLANE1 => 'O' (2000) option, and
1005 # ESC $ ( P for plane 2. The plane 1/2 GL octets are converted to
1006 # the EUC-JIS-2004 form so that the euc2004 table can be shared.
1007  
1008 'jis2004' => {
1009 15 ▶ 'get_ctype' => sub {
Subroutine __ANON__: called CC=7 SCAR=19.5
1010 15 my $ctype = undef;
1011 15 while (1) {
1012 27 ▶ if (s!^\x1B\x28\x49!!) { $jis2004_kana = 1; $jis2004_men = 0; $ctype = 'SBCS'; }
Branch: 6 branches
BranchTrueFalseTotal
if (s/^\x1B\x28\x49//) { } 2 25 27
elsif (s/^\x1B\x28[\x42\x4A\x48]//) { } 5 20 25
elsif (s/^\x1B\x24\x28\x51//) { } 2 18 20
elsif (s/^\x1B\x24\x28\x4F//) { } 1 17 18
elsif (s/^\x1B\x24\x28\x50//) { } 1 16 17
elsif (s/^\x1B\x24[\x40\x42]//) { } 1 15 16
1013 5 elsif (s!^\x1B\x28[\x42\x4A\x48]!!) { $jis2004_kana = 0; $jis2004_men = 0; $ctype = 'SBCS'; }
1014 2 elsif (s!^\x1B\x24\x28\x51!!) { $jis2004_kana = 0; $jis2004_men = 1; $ctype = 'DBCS'; }
1015 1 elsif (s!^\x1B\x24\x28\x4F!!) { $jis2004_kana = 0; $jis2004_men = 1; $ctype = 'DBCS'; }
1016 1 elsif (s!^\x1B\x24\x28\x50!!) { $jis2004_kana = 0; $jis2004_men = 2; $ctype = 'DBCS'; }
1017 1 elsif (s!^\x1B\x24[\x40\x42]!!) { $jis2004_kana = 0; $jis2004_men = 1; $ctype = 'DBCS'; }
1018 15 else { last; }
1019 }
1020 15 $ctype;
1021 },
1022 15 ▶ 'set_ctype' => sub { q!! },
Subroutine __ANON__: called CC=1 SCAR=0.0
1023 11 ▶ 'getoct' => sub {
Subroutine __ANON__: called CC=8 SCAR=21.1
1024 11 ▶ if ($jis2004_kana and s!^([\x21-\x5F])!!) {
Branch: 1 branch
BranchTrueFalseTotal
if ($jis2004_kana and s/^([\x21-\x5F])//) 2 9 11
Condition66%2/3
$jis2004_kana and s/^([\x21-\x5F])//
!ll&&!rl&&r
902
MC/DC50%1/2
$jis2004_kana and s/^([\x21-\x5F])//
$jis2004_kana s/^([\x21-\x5F])//
Truth table66%2/3
A and B
A= $jis2004_kanaB= s/^([\x21-\x5F])//
ABresult
0X0
100
111
1025  
1026 # return in the EUC-JIS-2004 code set 2 form (SS2 0x8E
1027 # + GR octet) so that the euc2004 table can be shared
1028  
1029 2 return "\x8E" . pack('C', unpack('C',$1) | 0x80);
1030 }
1031 9 ▶ if (($_[0] eq 'DBCS') and $jis2004_men and s!^([\x21-\x7E])([\x21-\x7E])!!) {
Branch: 1 branch
BranchTrueFalseTotal
if ($_[0] eq "DBCS" and $jis2004_men and s/^([\x21-\x7E])([\x21-\x7E])//) 5 4 9
Condition66%4/6
$_[0] eq "DBCS" and $jis2004_men and s/^([\x21-\x7E])([\x21-\x7E])//
!ll&&!rl&&r
405
$_[0] eq "DBCS" and $jis2004_men
!ll&&!rl&&r
405
MC/DC33%1/3
$_[0] eq "DBCS" and $jis2004_men and s/^([\x21-\x7E])([\x21-\x7E])//
$_[0] eq "DBCS" $jis2004_men s/^([\x21-\x7E])([\x21-\x7E])//
Truth table50%2/4
A and B and C
A= $_[0] eq "DBCS"B= $jis2004_menC= s/^([\x21-\x7E])([\x21-\x7E])//
ABCresult
0XX0
10X0
1100
1111
1032  
1033 # return in the EUC-JIS-2004 form for the shared lookup:
1034 # plane 1 = two GR octets, plane 2 = SS3 + two GR octets
1035  
1036 5 ▶ if ($jis2004_men == 2) {
Branch: 1 branch
BranchTrueFalseTotal
if ($jis2004_men == 2) { } 1 4 5
1037 1 return "\x8F" . pack('CC', unpack('C',$1) | 0x80, unpack('C',$2) | 0x80);
1038 }
1039 else {
1040 4 return pack('CC', unpack('C',$1) | 0x80, unpack('C',$2) | 0x80);
1041 }
1042 }
1043 4 ▶ $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!;
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 4 0 4
1044 4 $1;
1045 },
1046 8 ▶ 'reset' => sub { $jis2004_kana = 0; $jis2004_men = 0; },
Subroutine __ANON__: called CC=1 SCAR=0.0
1047 11 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'euc2004'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1048 16 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'euc2004'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1049 },
1050  
1051 # 'sjis' is JISC Shift_JIS: JIS X 0201 and JIS X 0208 only.
1052 # CP932 extended characters (NEC special, NEC selected IBM extended,
1053 # IBM extended, user defined area) are not converted, use 'cp932'
1054 # for them. JIS X 0201 Katakana is one octet 0xA1..0xDF as usual.
1055  
1056 'sjis' => {
1057 425 ▶ 'get_ctype' => sub { m!^[^\x81-\x9F\xE0-\xFC]! ? 'SBCS' : m!^[\x81-\x9F\xE0-\xFC]! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.2
Branch: 2 branches
BranchTrueFalseTotal
/^[^\x81-\x9F\xE0-\xFC]/ ? : 400 25 425
/^[\x81-\x9F\xE0-\xFC]/ ? : 25 0 25
1058 4 ▶ 'set_ctype' => sub { q!! },
Subroutine __ANON__: called CC=1 SCAR=0.0
1059 34845 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 400 34445 34845
1060 34845 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'sjis'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1061 13997 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'sjis'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1062 },
1063  
1064 # 'euc' is JISC EUC-JP: code set 0 (ASCII/JIS X 0201 Roman),
1065 # code set 1 (JIS X 0208), code set 2 (SS2 0x8E + JIS X 0201
1066 # Katakana, ctype is SBCS because it is a halfwidth character),
1067 # and code set 3 (SS3 0x8F + JIS X 0212, three octets, ctype is
1068 # DBCS because it is a fullwidth character).
1069  
1070 'euc' => {
1071 233 ▶ 'get_ctype' => sub { m!^(?:\x8F|[\xA1-\xFE])! ? 'DBCS' : m!^[\x00-\x8E\x90-\xA0\xFF]! ? 'SBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.2
Branch: 2 branches
BranchTrueFalseTotal
/^(?:\x8F|[\xA1-\xFE])/ ? : 24 209 233
/^[\x00-\x8E\x90-\xA0\xFF]/ ? : 209 0 209
1072 4 ▶ 'set_ctype' => sub { q!! },
Subroutine __ANON__: called CC=1 SCAR=0.0
1073 7114 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^(\x8E[\xA1-\xDF]|[\x00-\xFF])!! : s!^(\x8F[\xA1-\xFE][\xA1-\xFE]|[\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 210 6904 7114
1074 7114 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'euc'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1075 16944 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'euc'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1076 },
1077  
1078 # 'jis' is JISC ISO-2022-JP (7bit JIS), JIS X 0201, JIS X 0208,
1079 # and JIS X 0212 (ISO-2022-JP-1).
1080 # On input, these escape sequences shift the ctype:
1081 # ESC ( B US-ASCII => SBCS
1082 # ESC ( J JIS X 0201 Roman => SBCS
1083 # ESC ( H JIS X 0201 Roman (old wrong habit) => SBCS
1084 # ESC ( I JIS X 0201 Katakana => SBCS (following 0x21..0x5F
1085 # are read as 0xA1..0xDF)
1086 # ESC $ @ JIS C 6226-1978 => DBCS (as JIS X 0208 codes)
1087 # ESC $ B JIS X 0208-1983 => DBCS
1088 # ESC $ ( @ JIS C 6226-1978 (ISO 2022 general form) => DBCS
1089 # ESC $ ( B JIS X 0208-1983 (ISO 2022 general form) => DBCS
1090 # ESC $ ( D JIS X 0212-1990 => DBCS (as JIS X 0212 codes)
1091 # ESC & @ ESC $ B JIS X 0208-1990 => DBCS
1092 # These shift functions are also accepted on input, but only with
1093 # the JIS_SOSI option true (because octets 0x0E and 0x0F pass
1094 # through as data octets by default):
1095 # SO (0x0E) JIS X 0201 Katakana => SBCS (following 0x21..0x5F
1096 # are read as 0xA1..0xDF,
1097 # JIS7 katakana habit)
1098 # SI (0x0F) return from SO => the GL designation before
1099 # SO is restored (SO/SI are
1100 # invocations; the escape
1101 # sequence designations
1102 # persist across them)
1103 # JIS X 0201 Katakana as GR octet 0xA1..0xDF (8bit JIS) is also
1104 # accepted on input, and is used on output by default (see the
1105 # JIS_KANA option for ESC ( I and SO/SI output).
1106 # On output with OUTPUT_SHIFTING true, ESC ( B and ESC $ B are
1107 # used as shift codes by default (see the JIS_SBCS and JIS_DBCS
1108 # options for other escape sequences, and the JIS_X0212 option
1109 # for ESC $ ( D output).
1110  
1111 'jis' => {
1112 269 ▶ 'get_ctype' => sub {
Subroutine __ANON__: called CC=11 SCAR=24.0
1113 269 my $ctype = undef;
1114 269 while (1) {
1115 330 ▶ if (s!^\x1B\x28\x49!!) { $jis_kana = 1; $jis_x0212 = 0; $ctype = 'SBCS'; $jis_gl_ctype = 'SBCS'; $jis_gl_kana = 1; }
Branch: 8 branches
BranchTrueFalseTotal
if (s/^\x1B\x28\x49//) { } 6 324 330
elsif (s/^\x1B\x28[\x42\x4A\x48]//) { } 14 310 324
elsif (s/^\x1B\x26\x40\x1B\x24\x42//) { } 1 309 310
elsif (s/^\x1B\x24\x28\x44//) { } 3 306 309
elsif (s/^\x1B\x24\x28[\x40\x42]//) { } 3 303 306
elsif (s/^\x1B\x24[\x40\x42]//) { } 22 281 303
elsif ($jis_sosi and s/^\x0E//) { } 6 275 281
elsif ($jis_sosi and s/^\x0F//) { } 6 269 275
1116 14 elsif (s!^\x1B\x28[\x42\x4A\x48]!!) { $jis_kana = 0; $jis_x0212 = 0; $ctype = 'SBCS'; $jis_gl_ctype = 'SBCS'; $jis_gl_kana = 0; }
1117 1 elsif (s!^\x1B\x26\x40\x1B\x24\x42!!) { $jis_kana = 0; $jis_x0212 = 0; $ctype = 'DBCS'; $jis_gl_ctype = 'DBCS'; $jis_gl_kana = 0; }
1118 3 elsif (s!^\x1B\x24\x28\x44!!) { $jis_kana = 0; $jis_x0212 = 1; $ctype = 'DBCS'; $jis_gl_ctype = 'DBCS'; $jis_gl_kana = 0; }
1119 3 elsif (s!^\x1B\x24\x28[\x40\x42]!!) { $jis_kana = 0; $jis_x0212 = 0; $ctype = 'DBCS'; $jis_gl_ctype = 'DBCS'; $jis_gl_kana = 0; }
1120 22 elsif (s!^\x1B\x24[\x40\x42]!!) { $jis_kana = 0; $jis_x0212 = 0; $ctype = 'DBCS'; $jis_gl_ctype = 'DBCS'; $jis_gl_kana = 0; }
1121 6 ▶ elsif ($jis_sosi and s!^\x0E!!) { $jis_kana = 1; $ctype = 'SBCS'; }
Condition100%3/3
$jis_sosi and s/^\x0E//
!ll&&!rl&&r
251246
MC/DC100%2/2
$jis_sosi and s/^\x0E//
$jis_sosi s/^\x0E//
Truth table100%3/3
A and B
A= $jis_sosiB= s/^\x0E//
ABresult
0X0
100
111
1122 6 ▶ elsif ($jis_sosi and s!^\x0F!!) { $jis_kana = $jis_gl_kana; $ctype = $jis_gl_ctype; }
Condition100%3/3
$jis_sosi and s/^\x0F//
!ll&&!rl&&r
251186
MC/DC100%2/2
$jis_sosi and s/^\x0F//
$jis_sosi s/^\x0F//
Truth table100%3/3
A and B
A= $jis_sosiB= s/^\x0F//
ABresult
0X0
100
111
1123 269 else { last; }
1124 }
1125 269 $ctype;
1126 },
1127 51 ▶ 'set_ctype' => sub { {'SBCS'=>"\x1B\x28\x42", 'DBCS'=>"\x1B\x24\x42", }->{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1128 7144 ▶ 'getoct' => sub {
Subroutine __ANON__: called CC=7 SCAR=19.5
1129 7144 ▶ if ($jis_kana and s!^([\x21-\x5F])!!) {
Branch: 1 branch
BranchTrueFalseTotal
if ($jis_kana and s/^([\x21-\x5F])//) 13 7131 7144
Condition66%2/3
$jis_kana and s/^([\x21-\x5F])//
!ll&&!rl&&r
7131013
MC/DC50%1/2
$jis_kana and s/^([\x21-\x5F])//
$jis_kana s/^([\x21-\x5F])//
Truth table66%2/3
A and B
A= $jis_kanaB= s/^([\x21-\x5F])//
ABresult
0X0
100
111
1130 13 return pack('C', unpack('C',$1) | 0x80);
1131 }
1132 7131 ▶ if (($_[0] eq 'DBCS') and $jis_x0212 and s!^([\x21-\x7E])([\x21-\x7E])!!) {
Branch: 1 branch
BranchTrueFalseTotal
if ($_[0] eq "DBCS" and $jis_x0212 and s/^([\x21-\x7E])([\x21-\x7E])//) 3 7128 7131
Condition83%5/6
$_[0] eq "DBCS" and $jis_x0212 and s/^([\x21-\x7E])([\x21-\x7E])//
!ll&&!rl&&r
712803
$_[0] eq "DBCS" and $jis_x0212
!ll&&!rl&&r
22169073
MC/DC66%2/3
$_[0] eq "DBCS" and $jis_x0212 and s/^([\x21-\x7E])([\x21-\x7E])//
$_[0] eq "DBCS" $jis_x0212 s/^([\x21-\x7E])([\x21-\x7E])//
Truth table75%3/4
A and B and C
A= $_[0] eq "DBCS"B= $jis_x0212C= s/^([\x21-\x7E])([\x21-\x7E])//
ABCresult
0XX0
10X0
1100
1111
1133  
1134 # JIS X 0212 octets are returned in the EUC-JP code
1135 # set 3 form (SS3 + GR octets) so that the euc table
1136 # can be shared for the lookup
1137  
1138 3 return "\x8F" . pack('CC', unpack('C',$1) | 0x80, unpack('C',$2) | 0x80);
1139 }
1140 7128 ▶ $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!;
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 221 6907 7128
1141 7128 $1;
1142 },
1143 7110 ▶ 'reset' => sub { $jis_kana = 0; $jis_x0212 = 0; $jis_gl_ctype = 'SBCS'; $jis_gl_kana = 0; },
Subroutine __ANON__: called CC=1 SCAR=0.0
1144 7144 ▶ 'getc' => sub { local $^W; ($_[0] =~ m/^\x8F/) ? $CURRENT_TR->{'utf8jp'}{'euc'}{$_[0]} : $CURRENT_TR->{'utf8jp'}{'jis'}{$_[0]} },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] =~ /^\x8F/ ? : 3 7141 7144
1145 14020 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'jis'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1146 },
1147 'cp00930' => {
1148 8 ▶ 'get_ctype' => sub { s!^\x0F!! ? 'SBCS' : s!^\x0E!! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.0
Branch: 2 branches
BranchTrueFalseTotal
s/^\x0F// ? : 3 5 8
s/^\x0E// ? : 3 2 5
1149 65 ▶ 'set_ctype' => sub { {'SBCS'=>"\x0F", 'DBCS'=>"\x0E", }->{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1150 204066 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 259 203807 204066
1151 204060 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'cp00930'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1152 306060 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'cp00930'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1153 },
1154 'keis78' => {
1155 6 ▶ 'get_ctype' => sub { s!^\x0A\x41!! ? 'SBCS' : s!^\x0A\x42!! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.0
Branch: 2 branches
BranchTrueFalseTotal
s/^\x0A\x41// ? : 2 4 6
s/^\x0A\x42// ? : 2 2 4
1156 4 ▶ 'set_ctype' => sub { {'SBCS'=>"\x0A\x41", 'DBCS'=>"\x0A\x42", }->{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1157 204576 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 771 203805 204576
1158 204570 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'keis78'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1159 306687 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'keis78'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1160 },
1161 'keis83' => {
1162 8 ▶ 'get_ctype' => sub { s!^\x0A\x41!! ? 'SBCS' : s!^\x0A\x42!! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.0
Branch: 2 branches
BranchTrueFalseTotal
s/^\x0A\x41// ? : 3 5 8
s/^\x0A\x42// ? : 3 2 5
1163 65 ▶ 'set_ctype' => sub { {'SBCS'=>"\x0A\x41", 'DBCS'=>"\x0A\x42", }->{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1164 203813 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 3 203810 203813
1165 203807 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'keis83'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1166 306587 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'keis83'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1167 },
1168 'keis90' => {
1169 6 ▶ 'get_ctype' => sub { s!^\x0A\x41!! ? 'SBCS' : s!^\x0A\x42!! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.0
Branch: 2 branches
BranchTrueFalseTotal
s/^\x0A\x41// ? : 2 4 6
s/^\x0A\x42// ? : 2 2 4
1170 4 ▶ 'set_ctype' => sub { {'SBCS'=>"\x0A\x41", 'DBCS'=>"\x0A\x42", }->{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1171 203808 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 3 203805 203808
1172 203802 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'keis90'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1173 305913 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'keis90'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1174 },
1175 'jef' => {
1176 12 ▶ 'get_ctype' => sub { s!^\x29!! ? 'SBCS' : s!^[\x28\x38]!! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.0
Branch: 2 branches
BranchTrueFalseTotal
s/^\x29// ? : 4 8 12
s/^[\x28\x38]// ? : 6 2 8
1177 68 ▶ 'set_ctype' => sub { {'SBCS'=>"\x29", 'DBCS'=>"\x28", }->{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1178 215456 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 295 215161 215456
1179 215456 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'jef'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1180 330789 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'jef'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1181 },
1182 'jef9p' => {
1183 6 ▶ 'get_ctype' => sub { s!^\x29!! ? 'SBCS' : s!^[\x28\x38]!! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.0
Branch: 2 branches
BranchTrueFalseTotal
s/^\x29// ? : 2 4 6
s/^[\x28\x38]// ? : 2 2 4
1184 4 ▶ 'set_ctype' => sub { {'SBCS'=>"\x29", 'DBCS'=>"\x38", }->{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1185 6 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 3 3 6
1186 6 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'jef'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1187 505 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'jef'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1188 },
1189 'jipsj' => {
1190 6 ▶ 'get_ctype' => sub { s!^\x1A\x71!! ? 'SBCS' : s!^\x1A\x70!! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.0
Branch: 2 branches
BranchTrueFalseTotal
s/^\x1A\x71// ? : 2 4 6
s/^\x1A\x70// ? : 2 2 4
1191 10 ▶ 'set_ctype' => sub { {'SBCS'=>"\x1A\x71", 'DBCS'=>"\x1A\x70", }->{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1192 203802 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 3 203799 203802
1193 203802 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'jipsj'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1194 306388 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'jipsj'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1195 },
1196 'jipse' => {
1197 6 ▶ 'get_ctype' => sub { s!^\x3F\x76!! ? 'SBCS' : s!^\x3F\x75!! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.0
Branch: 2 branches
BranchTrueFalseTotal
s/^\x3F\x76// ? : 2 4 6
s/^\x3F\x75// ? : 2 2 4
1198 4 ▶ 'set_ctype' => sub { {'SBCS'=>"\x3F\x76", 'DBCS'=>"\x3F\x75", }->{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1199 204058 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 259 203799 204058
1200 204058 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'jipse'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1201 305974 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'jipse'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1202 },
1203 'letsj' => {
1204 6 ▶ 'get_ctype' => sub { s!^\x93\xF1!! ? 'SBCS' : s!^\x93\x70!! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.0
Branch: 2 branches
BranchTrueFalseTotal
s/^\x93\xF1// ? : 2 4 6
s/^\x93\x70// ? : 2 2 4
1205 8 ▶ 'set_ctype' => sub { {'SBCS'=>"\x93\xF1", 'DBCS'=>"\x93\x70", }->{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1206 203802 ▶ 'getoct' => sub { $_[0] eq 'SBCS' ? s!^([\x00-\xFF])!! : s!^([\x00-\xFF]{1,2})!!; $1 },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[0] eq 'SBCS' ? : 3 203799 203802
1207 203802 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'letsj'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1208 305719 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'letsj'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1209 },
1210 'utf8' => {
1211 212283 ▶ 'get_ctype' => sub { m!^[\x00-\x7F\xFE\xFF]! ? 'SBCS' : m!^[^\x00-\x7F\xFE\xFF]! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.2
Branch: 2 branches
BranchTrueFalseTotal
/^[\x00-\x7F\xFE\xFF]/ ? : 171 212112 212283
/^[^\x00-\x7F\xFE\xFF]/ ? : 212112 0 212112
1212 4 ▶ 'set_ctype' => sub { q!! },
Subroutine __ANON__: called CC=1 SCAR=0.0
1213 212283 ▶ 'getoct' => sub { s!^(
Subroutine __ANON__: called CC=1 SCAR=0.0
1214 [\x00-\x7F\x80-\xBF\xC0-\xC1\xF5-\xFF] |
1215 [\xE0-\xE2\xE4-\xEF][\x80-\xBF]{2} |
1216 \xE3(?:
1217 \x81\x8B\xE3\x82\x9A | # U+304B+309A
1218 \x81\x8D\xE3\x82\x9A | # U+304D+309A
1219 \x81\x8F\xE3\x82\x9A | # U+304F+309A
1220 \x81\x91\xE3\x82\x9A | # U+3051+309A
1221 \x81\x93\xE3\x82\x9A | # U+3053+309A
1222 \x82\xAB\xE3\x82\x9A | # U+30AB+309A
1223 \x82\xAD\xE3\x82\x9A | # U+30AD+309A
1224 \x82\xAF\xE3\x82\x9A | # U+30AF+309A
1225 \x82\xB1\xE3\x82\x9A | # U+30B1+309A
1226 \x82\xB3\xE3\x82\x9A | # U+30B3+309A
1227 \x82\xBB\xE3\x82\x9A | # U+30BB+309A
1228 \x83\x84\xE3\x82\x9A | # U+30C4+309A
1229 \x83\x88\xE3\x82\x9A | # U+30C8+309A
1230 \x87\xB7\xE3\x82\x9A | # U+31F7+309A
1231 [\x80-\xBF]{2}
1232 ) |
1233 [\xC2\xC4-\xC8\xCC-\xDF][\x80-\xBF] |
1234 \xC3(?:
1235 \xA6\xCC\x80 | # U+00E6+0300
1236 [\x80-\xBF]
1237 ) |
1238 \xC9(?:
1239 \x94\xCC\x80 | # U+0254+0300
1240 \x94\xCC\x81 | # U+0254+0301
1241 \x99\xCC\x80 | # U+0259+0300
1242 \x99\xCC\x81 | # U+0259+0301
1243 \x9A\xCC\x80 | # U+025A+0300
1244 \x9A\xCC\x81 | # U+025A+0301
1245 [\x80-\xBF]
1246 ) |
1247 \xCA(?:
1248 \x8C\xCC\x80 | # U+028C+0300
1249 \x8C\xCC\x81 | # U+028C+0301
1250 [\x80-\xBF]
1251 ) |
1252 \xCB(?:
1253 \xA5\xCB\xA9 | # U+02E5+02E9
1254 \xA9\xCB\xA5 | # U+02E9+02E5
1255 [\x80-\xBF]
1256 ) |
1257 [\xF0-\xF4][\x80-\xBF]{3} |
1258 [\x00-\xFF]
1259 212283 )!!xs; $1 },
1260 212277 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'utf8'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1261 321174 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'utf8'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1262 },
1263 'utf8.1' => {
1264 69 ▶ 'get_ctype' => sub { m!^[\x00-\x7F\xFE\xFF]! ? 'SBCS' : m!^[^\x00-\x7F\xFE\xFF]! ? 'DBCS' : undef },
Subroutine __ANON__: called CC=3 SCAR=11.2
Branch: 2 branches
BranchTrueFalseTotal
/^[\x00-\x7F\xFE\xFF]/ ? : 3 66 69
/^[^\x00-\x7F\xFE\xFF]/ ? : 66 0 66
1265 4 ▶ 'set_ctype' => sub { q!! },
Subroutine __ANON__: called CC=1 SCAR=0.0
1266 69 ▶ 'getoct' => sub { s!^(
Subroutine __ANON__: called CC=1 SCAR=0.0
1267 [\x00-\x7F\x80-\xBF\xC0-\xC1\xF5-\xFF] |
1268 [\xE0-\xE2\xE4-\xEF][\x80-\xBF]{2} |
1269 \xE3(?:
1270 \x81\x8B\xE3\x82\x9A | # U+304B+309A
1271 \x81\x8D\xE3\x82\x9A | # U+304D+309A
1272 \x81\x8F\xE3\x82\x9A | # U+304F+309A
1273 \x81\x91\xE3\x82\x9A | # U+3051+309A
1274 \x81\x93\xE3\x82\x9A | # U+3053+309A
1275 \x82\xAB\xE3\x82\x9A | # U+30AB+309A
1276 \x82\xAD\xE3\x82\x9A | # U+30AD+309A
1277 \x82\xAF\xE3\x82\x9A | # U+30AF+309A
1278 \x82\xB1\xE3\x82\x9A | # U+30B1+309A
1279 \x82\xB3\xE3\x82\x9A | # U+30B3+309A
1280 \x82\xBB\xE3\x82\x9A | # U+30BB+309A
1281 \x83\x84\xE3\x82\x9A | # U+30C4+309A
1282 \x83\x88\xE3\x82\x9A | # U+30C8+309A
1283 \x87\xB7\xE3\x82\x9A | # U+31F7+309A
1284 [\x80-\xBF]{2}
1285 ) |
1286 [\xC2\xC4-\xC8\xCC-\xDF][\x80-\xBF] |
1287 \xC3(?:
1288 \xA6\xCC\x80 | # U+00E6+0300
1289 [\x80-\xBF]
1290 ) |
1291 \xC9(?:
1292 \x94\xCC\x80 | # U+0254+0300
1293 \x94\xCC\x81 | # U+0254+0301
1294 \x99\xCC\x80 | # U+0259+0300
1295 \x99\xCC\x81 | # U+0259+0301
1296 \x9A\xCC\x80 | # U+025A+0300
1297 \x9A\xCC\x81 | # U+025A+0301
1298 [\x80-\xBF]
1299 ) |
1300 \xCA(?:
1301 \x8C\xCC\x80 | # U+028C+0300
1302 \x8C\xCC\x81 | # U+028C+0301
1303 [\x80-\xBF]
1304 ) |
1305 \xCB(?:
1306 \xA5\xCB\xA9 | # U+02E5+02E9
1307 \xA9\xCB\xA5 | # U+02E9+02E5
1308 [\x80-\xBF]
1309 ) |
1310 [\xF0-\xF4][\x80-\xBF]{3} |
1311 [\x00-\xFF]
1312 69 )!!xs; $1 },
1313 63 ▶ 'getc' => sub { local $^W; $CURRENT_TR->{'utf8jp'}{'utf8.1'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1314 195 ▶ 'putc' => sub { local $^W; $CURRENT_TR->{'utf8.1'}{'utf8jp'}{$_[0]} },
Subroutine __ANON__: called CC=1 SCAR=0.0
1315 },
1316 'utf8jp' => {
1317 940864 ▶ 'get_ctype' => sub { m!^\xF3\xB0(?:[\x80-\x82][\x80-\xBF]|\x83[\x80-\xBE])! ? 'SBCS' : 'DBCS' },
Subroutine __ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
/^\xF3\xB0(?:[\x80-\x82][\x80-\xBF]|\x83[\x80-\xBE])/ ? : 3 940861 940864
1318 4 ▶ 'set_ctype' => sub { q!! },
Subroutine __ANON__: called CC=1 SCAR=0.0
1319 940864 ▶ 'getoct' => sub { s!^(\xF3[\xB0-\xB5][\x80-\xBF][\x80-\xBF]|[\x00-\xFF])!!; $1; },
Subroutine __ANON__: called CC=1 SCAR=0.0
1320 940864 ▶ 'getc' => sub { $_[0] },
Subroutine __ANON__: called CC=1 SCAR=0.0
1321 11376 ▶ 'putc' => sub { $_[0] },
Subroutine __ANON__: called CC=1 SCAR=0.0
1322 },
1323 76 );
1324  
1325 #---------------------------------------------------------------------
1326 # resolve an era-specific encoding name to its internal codec and the
1327 # era table(s) to alias for a convert() call.
1328 #
1329 # Each entry is [ internal_codec, slotA, tableA, slotB, tableB ]:
1330 # on INPUT the table $tr{'utf8jp'}{tableX} is aliased into
1331 # $CURRENT_TR->{'utf8jp'}{slotX} (getc direction)
1332 # on OUTPUT the table $tr{tableX}{'utf8jp'} is aliased into
1333 # $CURRENT_TR->{slotX}{'utf8jp'} (putc direction)
1334 # An empty slot ('') is a no-op. The year-less 'sjis', 'euc', and 'jis'
1335 # are the 1990 (JIS X 0208-1990) era.
1336 #---------------------------------------------------------------------
1337 76 my %era_alias = (
1338 'sjis' => ['sjis', 'sjis', 'sjis1990', '', '' ],
1339 'sjis1978' => ['sjis', 'sjis', 'sjis1978', '', '' ],
1340 'sjis1983' => ['sjis', 'sjis', 'sjis1983', '', '' ],
1341 'sjis1990' => ['sjis', 'sjis', 'sjis1990', '', '' ],
1342 'sjis2000' => ['sjis2004', 'sjis2004', 'sjis2000', '', '' ],
1343 'sjis2004' => ['sjis2004', '', '', '', '' ],
1344 'euc' => ['euc', 'euc', 'euc1990', '', '' ],
1345 'euc1978' => ['euc', 'euc', 'euc1978', '', '' ],
1346 'euc1983' => ['euc', 'euc', 'euc1983', '', '' ],
1347 'euc1990' => ['euc', 'euc', 'euc1990', '', '' ],
1348 'euc2000' => ['euc2004', 'euc2004', 'euc2000', '', '' ],
1349 'euc2004' => ['euc2004', '', '', '', '' ],
1350 'jis' => ['jis', 'jis', 'jis1990', 'euc', 'euc1990'],
1351 'jis1978' => ['jis', 'jis', 'jis1978', 'euc', 'euc1978'],
1352 'jis1983' => ['jis', 'jis', 'jis1983', 'euc', 'euc1983'],
1353 'jis1990' => ['jis', 'jis', 'jis1990', 'euc', 'euc1990'],
1354 'jis2000' => ['jis2004', 'euc2004', 'euc2000', '', '' ],
1355 'jis2004' => ['jis2004', '', '', '', '' ],
1356 );
1357  
1358 #---------------------------------------------------------------------
1359 # convert encoding to OUTPUT_encoding from INPUT_encoding
1360 #---------------------------------------------------------------------
1361 2883285 ▶sub convert {
Subroutine convert: called CC=69 SCAR=42.8
Pod undocumented
1362 2883285 local $_ = ${$_[0]};
1363 2883285 my $OUTPUT_encoding = $_[1];
1364 2883285 my $INPUT_encoding = $_[2];
1365 2883285 ▶ my $option = ($_[3] || {});
Condition100%2/2
$_[3] || {}
l!l
2882606679
MC/DC100%1/1
$_[3] || {}
$_[3]
Truth table100%2/2
A
A= $_[3]
Aresult
11
00
1366 2883285 my $last_ctype = undef;
1367 2883285 my $output = '';
1368 2883285 my $count = 0;
1369 2883285 ▶ $option->{'OVERRIDE_MAPPING'} ||= {};
Condition100%2/2
$option->{"OVERRIDE_MAPPING"} ||= {}
l!l
712883214
MC/DC100%1/1
$option->{"OVERRIDE_MAPPING"} ||= {}
$option->{"OVERRIDE_MAPPING"}
Truth table100%2/2
A
A= $option->{"OVERRIDE_MAPPING"}
Aresult
11
00
1370  
1371 # resolve era-specific encoding names (sjis1978..sjis2004,
1372 # euc1978..euc2004, jis1978..jis2004, and the year-less sjis, euc,
1373 # jis which mean the 1990 era) to the internal codec. The era table
1374 # is aliased into $CURRENT_TR after the ROUND_TRIP handling below.
1375 2883285 my $OUTPUT_encoding_era = $OUTPUT_encoding;
1376 2883285 my $INPUT_encoding_era = $INPUT_encoding;
1377 2883285 ▶ my $out_alias = $era_alias{$OUTPUT_encoding} || [$OUTPUT_encoding, '', '', '', ''];
Condition100%2/2
$era_alias{$OUTPUT_encoding} || [$OUTPUT_encoding, '', '', '', '']
l!l
505392832746
MC/DC100%1/1
$era_alias{$OUTPUT_encoding} || [$OUTPUT_encoding, '', '', '', '']
$era_alias{$OUTPUT_encoding}
Truth table100%2/2
A
A= $era_alias{$OUTPUT_encoding}
Aresult
11
00
1378 2883285 ▶ my $in_alias = $era_alias{$INPUT_encoding} || [$INPUT_encoding, '', '', '', ''];
Condition100%2/2
$era_alias{$INPUT_encoding} || [$INPUT_encoding, '', '', '', '']
l!l
490612834224
MC/DC100%1/1
$era_alias{$INPUT_encoding} || [$INPUT_encoding, '', '', '', '']
$era_alias{$INPUT_encoding}
Truth table100%2/2
A
A= $era_alias{$INPUT_encoding}
Aresult
11
00
1379 2883285 $OUTPUT_encoding = $out_alias->[0];
1380 2883285 $INPUT_encoding = $in_alias->[0];
1381  
1382 2883285 ▶ if (ref($_[0]) ne 'SCALAR') {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $_[0] ne "SCALAR") 0 2883285 2883285
1383 0 die "@{[__FILE__]} \$_[0] isn't scalar reference\n";
1384 }
1385 2883285 ▶ if (not exists $x{$OUTPUT_encoding}) {
Branch: 1 branch
BranchTrueFalseTotal
unless (exists $x{$OUTPUT_encoding}) 1 2883284 2883285
1386 1 die "@{[__FILE__]} unknown OUTPUT encoding '$OUTPUT_encoding_era'\n";
1387 }
1388 2883284 ▶ if (not exists $x{$INPUT_encoding}) {
Branch: 1 branch
BranchTrueFalseTotal
unless (exists $x{$INPUT_encoding}) 0 2883284 2883284
1389 0 die "@{[__FILE__]} unknown INPUT encoding '$INPUT_encoding_era'\n";
1390 }
1391  
1392 # ROUND_TRIP option: use %tr_roundtrip (which allocates a code point
1393 # from the user-defined area for a character that has no native code)
1394 # instead of %tr. The table is built lazily on the first ROUND_TRIP
1395 # call. The default (no ROUND_TRIP option) uses %tr as before.
1396 #
1397 # CAUTION: both "A to B" and "B to A" need the ROUND_TRIP option, and
1398 # must use the same version of Jacode4e.
1399 2883284 local $CURRENT_TR = $CURRENT_TR;
1400 2883284 ▶ if ($option->{'ROUND_TRIP'}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($option->{"ROUND_TRIP"}) 2785217 98067 2883284
1401 2785217 _build_tr_roundtrip();
1402 2785217 $CURRENT_TR = \%tr_roundtrip;
1403 }
1404  
1405 # alias the era table into $CURRENT_TR for the duration of this call.
1406 # INPUT aliases the getc direction ($CURRENT_TR->{'utf8jp'}{slot}),
1407 # OUTPUT aliases the putc direction ($CURRENT_TR->{slot}{'utf8jp'}).
1408 # These are different slots, so INPUT and OUTPUT of the same internal
1409 # codec but different eras do not conflict. Empty slots are no-ops.
1410 2883284 local $CURRENT_TR->{'utf8jp'}{$in_alias->[1]} = $tr{'utf8jp'}{$in_alias->[2]};
1411 2883284 local $CURRENT_TR->{'utf8jp'}{$in_alias->[3]} = $tr{'utf8jp'}{$in_alias->[4]};
1412 2883284 local $CURRENT_TR->{$out_alias->[1]}{'utf8jp'} = $tr{$out_alias->[2]}{'utf8jp'};
1413 2883284 local $CURRENT_TR->{$out_alias->[3]}{'utf8jp'} = $tr{$out_alias->[4]}{'utf8jp'};
1414  
1415 2883284 ▶ if (exists $x{$INPUT_encoding}{'reset'}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $x{$INPUT_encoding}{"reset"}) 7118 2876166 2883284
1416 7118 $x{$INPUT_encoding}{'reset'}->();
1417 }
1418  
1419 # SO/SI (0x0E/0x0F) of 'jis' input are shift functions only when
1420 # the JIS_SOSI option is true, and are data octets by default
1421  
1422 2883284 ▶ $jis_sosi = ((($INPUT_encoding eq 'jis') and $option->{'JIS_SOSI'}) ? 1 : 0);
Branch: 1 branch
BranchTrueFalseTotal
$INPUT_encoding eq 'jis' && $option->{'JIS_SOSI'} ? : 6 2883278 2883284
Condition100%3/3
$INPUT_encoding eq "jis" and $option->{"JIS_SOSI"}
!ll&&!rl&&r
287617471046
MC/DC100%2/2
$INPUT_encoding eq "jis" and $option->{"JIS_SOSI"}
$INPUT_encoding eq "jis" $option->{"JIS_SOSI"}
Truth table100%3/3
A and B
A= $INPUT_encoding eq "jis"B= $option->{"JIS_SOSI"}
ABresult
0X0
100
111
1423  
1424 2883284 my $INPUT_LAYOUT = undef;
1425 2883284 my @ctype = ();
1426 2883284 ▶ if ($INPUT_encoding =~ /^(?:cp932x|cp932|cp932ibm|cp932nec|sjis2004|sjis|euc2004|euc|jis2004|jis|cp00930|keis78|keis83|keis90|jef|jef9p|jipsj|jipse|letsj)$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($INPUT_encoding =~ /^(?:cp932x|cp932|cp932ibm|cp932nec|sjis2004|sjis|euc2004|euc|jis2004|jis|cp00930|keis78|keis83|keis90|jef|jef9p|jipsj|jipse|letsj)$/) 1730121 1153163 2883284
1427 1730121 ▶ if (defined $option->{'INPUT_LAYOUT'}) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $option->{"INPUT_LAYOUT"}) 1728467 1654 1730121
1428 1728467 $INPUT_LAYOUT = $option->{'INPUT_LAYOUT'};
1429 0 $INPUT_LAYOUT =~ s/([SD])([0-9]+)/$1 x $2/ge;
1430 1728467 ▶ if ($INPUT_LAYOUT =~ /^[SD]*$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($INPUT_LAYOUT =~ /^[SD]*$/) { } 1728467 0 1728467
1431 1728467 @ctype = map {{'S'=>'SBCS', 'D'=>'DBCS',}->{$_}} split(//,$INPUT_LAYOUT);
1432 }
1433 else {
1434 0 die "@{[__FILE__]} INPUT_LAYOUT isn't 'S' or 'D' sequence '$INPUT_LAYOUT'";
1435 }
1436 }
1437 }
1438  
1439 2883284 ▶ while ($_ ne '') {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ ne "") 2883832 2883272 5767104
1440 2883832 my $ctype = '';
1441 2883832 ▶ if (defined $INPUT_LAYOUT) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $INPUT_LAYOUT) { } 1728675 1155157 2883832
1442 1728675 ▶ $ctype = (shift(@ctype) || 'SBCS');
Condition50%1/2
shift @ctype || 'SBCS'
l!l
17286750
MC/DC0%0/1
shift @ctype || 'SBCS'
shift @ctype
Truth table50%1/2
A
A= shift @ctype
Aresult
11
00
1443 }
1444 else {
1445 1155157 ▶ $ctype = ($x{$INPUT_encoding}{'get_ctype'}->() || $last_ctype || 'SBCS');
Condition100%5/5
$x{$INPUT_encoding}{'get_ctype'}->() || $last_ctype || 'SBCS'
l!l
1154952205
$x{$INPUT_encoding}{"get_ctype"}->() or $last_ctype
l!l&&r!l&&!r
115492626205
MC/DC100%2/2
$x{$INPUT_encoding}{'get_ctype'}->() || $last_ctype || 'SBCS'
$x{$INPUT_encoding}{"get_ctype"}->() $last_ctype
Truth table100%3/3
A or B
A= $x{$INPUT_encoding}{"get_ctype"}->()B= $last_ctype
ABresult
1X1
011
000
1446 }
1447  
1448 2883832 ▶ if (not defined($last_ctype) or ($ctype ne $last_ctype)) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $last_ctype or $ctype ne $last_ctype) 2883670 162 2883832
Condition100%3/3
not defined $last_ctype or $ctype ne $last_ctype
l!l&&r!l&&!r
2883284386162
MC/DC100%2/2
not defined $last_ctype or $ctype ne $last_ctype
not defined $last_ctype $ctype ne $last_ctype
Truth table100%3/3
not(A) or B
A= not defined $last_ctypeB= $ctype ne $last_ctype
ABresult
1X1
011
000
1449 2883670 ▶ if ($option->{'OUTPUT_SHIFTING'}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($option->{"OUTPUT_SHIFTING"}) 342 2883328 2883670
1450 342 $output .= $x{$OUTPUT_encoding}{'set_ctype'}->($ctype);
1451 }
1452 2883670 $last_ctype = $ctype;
1453 }
1454  
1455 # the remaining input was only shifting code(s), so there is no
1456 # character octet to get and to count (the closing shifting code
1457 # for OUTPUT_SHIFTING has already been emitted just above)
1458 2883832 ▶ last if ($_ eq '');
Branch: 1 branch
BranchTrueFalseTotal
if $_ eq "" 12 2883820 2883832
1459  
1460 2883820 my $input_octets = $x{$INPUT_encoding}{'getoct'}->($ctype);
1461 2883820 ▶ if (defined $input_octets) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $input_octets) 2883820 0 2883820
1462 2883820 ▶ if (defined $option->{'OVERRIDE_MAPPING'}{$input_octets}) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $option->{'OVERRIDE_MAPPING'}{$input_octets}) { } 71 2883749 2883820
1463 71 $output .= $option->{'OVERRIDE_MAPPING'}{$input_octets};
1464 }
1465 else {
1466 2883749 my $char = $x{$INPUT_encoding}{'getc'}->($input_octets);
1467 2883749 ▶ if (not defined $char) {
Branch: 2 branches
BranchTrueFalseTotal
if (not defined $char) { } 14761 2868988 2883749
elsif ($char eq "\363\260\204\200") { } 836 2868152 2868988
1468 14761 ▶ if (defined $option->{'GETA'}) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $option->{'GETA'}) { } 11183 3578 14761
1469 11183 $output .= $option->{'GETA'};
1470 }
1471 else {
1472 3578 $output .= $x{$OUTPUT_encoding}{'putc'}->("\xF3\xB0\x85\xAB");
1473 }
1474 }
1475 elsif ($char eq "\xF3\xB0\x84\x80") {
1476 836 ▶ if (defined $option->{'SPACE'}) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $option->{'SPACE'}) { } 52 784 836
1477 52 $output .= $option->{'SPACE'};
1478 }
1479 else {
1480 784 $output .= $x{$OUTPUT_encoding}{'putc'}->($char);
1481 }
1482 }
1483 else {
1484 2868152 my $output_octets = $x{$OUTPUT_encoding}{'putc'}->($char);
1485  
1486 # JIS X 0212 output for 'jis' (ISO-2022-JP-1):
1487 # a character that has no JIS X 0208 code but has a
1488 # JIS X 0212 code is written in the EUC-JP code set 3
1489 # form here, and is wrapped in ESC $ ( D after the
1490 # main loop. This requires OUTPUT_SHIFTING because
1491 # escape sequences must be allowed in the output.
1492  
1493 2868152 ▶ if ((not defined($output_octets) or ($output_octets eq '')) and
Branch: 1 branch
BranchTrueFalseTotal
if (!defined($output_octets) || $output_octets eq "" and $OUTPUT_encoding eq "jis" and $option->{"JIS_X0212"} and $option->{"OUTPUT_SHIFTING"}) 3 2868149 2868152
Condition83%10/12
!defined($output_octets) || $output_octets eq "" and $OUTPUT_encoding eq "jis" and $option->{"JIS_X0212"} and $option->{"OUTPUT_SHIFTING"}
!ll&&!rl&&r
286814903
!defined($output_octets) || $output_octets eq "" and $OUTPUT_encoding eq "jis" and $option->{"JIS_X0212"}
!ll&&!rl&&r
286814813
!defined($output_octets) || $output_octets eq "" and $OUTPUT_encoding eq "jis"
!ll&&!rl&&r
2868055934
not defined $output_octets or $output_octets eq ""
l!l&&r!l&&!r
9702868055
MC/DC60%3/5
!defined($output_octets) || $output_octets eq "" and $OUTPUT_encoding eq "jis" and $option->{"JIS_X0212"} and $option->{"OUTPUT_SHIFTING"}
not defined $output_octets $output_octets eq "" $OUTPUT_encoding eq "jis" $option->{"JIS_X0212"} $option->{"OUTPUT_SHIFTING"}
Truth table44%4/9
not(A) or B and C and D and E
A= not defined $output_octetsB= $output_octets eq ""C= $OUTPUT_encoding eq "jis"D= $option->{"JIS_X0212"}E= $option->{"OUTPUT_SHIFTING"}
ABCDEresult
00XXX0
1X0XX0
010XX0
1X10X0
0110X0
1X1100
011100
1X1111
011111
1494 ($OUTPUT_encoding eq 'jis') and
1495 $option->{'JIS_X0212'} and
1496 $option->{'OUTPUT_SHIFTING'}
1497 ) {
1498 3 local $^W;
1499 3 my $codeset3 = $CURRENT_TR->{'euc'}{'utf8jp'}{$char};
1500 3 ▶ if (defined($codeset3) and ($codeset3 =~ m/^\x8F/)) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $codeset3 and $codeset3 =~ /^\x8F/) 3 0 3
Condition33%1/3
defined $codeset3 and $codeset3 =~ /^\x8F/
!ll&&!rl&&r
003
MC/DC0%0/2
defined $codeset3 and $codeset3 =~ /^\x8F/
defined $codeset3 $codeset3 =~ /^\x8F/
Truth table33%1/3
A and B
A= defined $codeset3B= $codeset3 =~ /^\x8F/
ABresult
0X0
100
111
1501 3 $output_octets = $codeset3;
1502 }
1503 }
1504  
1505 2868152 ▶ if (not defined ($output_octets) or ($output_octets eq '')) {
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $output_octets or $output_octets eq '') { } 94 2868058 2868152
Condition66%2/3
not defined $output_octets or $output_octets eq ""
l!l&&r!l&&!r
9402868058
MC/DC50%1/2
not defined $output_octets or $output_octets eq ""
not defined $output_octets $output_octets eq ""
Truth table66%2/3
not(A) or B
A= not defined $output_octetsB= $output_octets eq ""
ABresult
1X1
011
000
1506 94 ▶ if (defined $option->{'GETA'}) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $option->{'GETA'}) { } 87 7 94
1507 87 $output .= $option->{'GETA'};
1508 }
1509 else {
1510 7 $output .= $x{$OUTPUT_encoding}{'putc'}->("\xF3\xB0\x85\xAB");
1511 }
1512 }
1513 else {
1514 2868058 $output .= $output_octets;
1515 }
1516 }
1517 }
1518 }
1519  
1520 2883820 $count++;
1521 }
1522  
1523 # 'jis' output variations
1524 2883284 ▶ if ($OUTPUT_encoding eq 'jis') {
Branch: 1 branch
BranchTrueFalseTotal
if ($OUTPUT_encoding eq "jis") 13986 2869298 2883284
1525  
1526 # JIS X 0212 runs (written in EUC-JP code set 3 form by the
1527 # main loop) are wrapped in ESC $ ( D here. An ESC $ B just
1528 # before the run is absorbed. After the run, ESC $ B is
1529 # re-emitted when JIS X 0208 octets (0x21..0x7E) or JIS X 0201
1530 # Katakana octets (0xA1..0xDF) follow directly (without a new
1531 # escape sequence).
1532  
1533 13986 ▶ if ($option->{'JIS_X0212'} and $option->{'OUTPUT_SHIFTING'}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($option->{"JIS_X0212"} and $option->{"OUTPUT_SHIFTING"}) 4 13982 13986
Condition66%2/3
$option->{"JIS_X0212"} and $option->{"OUTPUT_SHIFTING"}
!ll&&!rl&&r
1398204
MC/DC50%1/2
$option->{"JIS_X0212"} and $option->{"OUTPUT_SHIFTING"}
$option->{"JIS_X0212"} $option->{"OUTPUT_SHIFTING"}
Truth table66%2/3
A and B
A= $option->{"JIS_X0212"}B= $option->{"OUTPUT_SHIFTING"}
ABresult
0X0
100
111
1534 4 $output =~ s{(?:\x1B\x24\x42)?((?:\x8F[\xA1-\xFE][\xA1-\xFE])+)(\x1B|[\x21-\x7E]|[\xA1-\xDF]|$)}{
1535 2 my($run, $next) = ($1, $2);
1536 2 $run =~ s/\x8F([\xA1-\xFE])([\xA1-\xFE])/pack('CC', unpack('C',$1) & 0x7F, unpack('C',$2) & 0x7F)/ge;
1537 2 ▶ "\x1B\x24\x28\x44" . $run . (($next =~ m!^[\x21-\x7E\xA1-\xDF]!) ? "\x1B\x24\x42" : '') . $next;
Branch: 1 branch
BranchTrueFalseTotal
$next =~ /^[\x21-\x7E\xA1-\xDF]/ ? : 1 1 2
1538 }ge;
1539 }
1540  
1541 # JIS X 0201 Katakana output style:
1542 # 'GR' (default) GR octets 0xA1..0xDF (8bit JIS)
1543 # 'I' ESC ( I + GL octets (requires OUTPUT_SHIFTING;
1544 # an ESC $ B just before the run is absorbed;
1545 # the run ends with ESC $ B when JIS X 0208
1546 # octets follow directly, with ESC ( B at end
1547 # of output, or with the following escape
1548 # sequence as is)
1549 # 'SO' SO + GL octets + SI
1550  
1551 13986 ▶ if (defined($option->{'JIS_KANA'}) and ($option->{'JIS_KANA'} ne 'GR')) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $option->{"JIS_KANA"} and $option->{"JIS_KANA"} ne "GR") 7 13979 13986
Condition66%2/3
defined $option->{"JIS_KANA"} and $option->{"JIS_KANA"} ne "GR"
!ll&&!rl&&r
1397907
MC/DC50%1/2
defined $option->{"JIS_KANA"} and $option->{"JIS_KANA"} ne "GR"
defined $option->{"JIS_KANA"} $option->{"JIS_KANA"} ne "GR"
Truth table66%2/3
A and B
A= defined $option->{"JIS_KANA"}B= $option->{"JIS_KANA"} ne "GR"
ABresult
0X0
100
111
1552 7 ▶ if ($option->{'JIS_KANA'} eq 'I') {
Branch: 2 branches
BranchTrueFalseTotal
if ($option->{'JIS_KANA'} eq 'I') { } 5 2 7
elsif ($option->{'JIS_KANA'} eq 'SO') { } 1 1 2
1553 5 ▶ if (not $option->{'OUTPUT_SHIFTING'}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($option->{"OUTPUT_SHIFTING"}) 1 4 5
1554 1 die "@{[__FILE__]} JIS_KANA 'I' requires OUTPUT_SHIFTING option\n";
1555 }
1556 4 $output =~ s{(?:\x1B\x24\x42)?([\xA1-\xDF]+)(\x1B|[\x21-\x7E]|$)}{
1557 4 my($run, $next) = ($1, $2);
1558 4 $run =~ tr/\xA1-\xDF/\x21-\x5F/;
1559 4 ▶ "\x1B\x28\x49" . $run .
Branch: 2 branches
BranchTrueFalseTotal
$next =~ /^\x1B/ ? : 2 2 4
$next =~ /^[\x21-\x7E]/ ? : 1 1 2
1560 (($next =~ m!^\x1B!) ? '' :
1561 ($next =~ m!^[\x21-\x7E]!) ? "\x1B\x24\x42" :
1562 "\x1B\x28\x42") . $next;
1563 }ge;
1564 }
1565 elsif ($option->{'JIS_KANA'} eq 'SO') {
1566 1 $output =~ s{([\xA1-\xDF]+)}{
1567 1 my($run) = ($1);
1568 1 $run =~ tr/\xA1-\xDF/\x21-\x5F/;
1569 1 "\x0E" . $run . "\x0F";
1570 }ge;
1571 }
1572 else {
1573 1 die "@{[__FILE__]} JIS_KANA must be 'GR', 'I', or 'SO', not '$option->{'JIS_KANA'}'\n";
1574 }
1575 }
1576  
1577 # DBCS escape sequence selection:
1578 # 'B' (default) ESC $ B JIS X 0208-1983
1579 # '@' ESC $ @ JIS C 6226-1978
1580 # '&@B' ESC & @ ESC $ B JIS X 0208-1990
1581 # '(B' ESC $ ( B JIS X 0208-1983 (ISO 2022 general form)
1582 # '(@' ESC $ ( @ JIS C 6226-1978 (ISO 2022 general form)
1583 # The default is 'B' (ESC $ B) except for the 'jis1978' output
1584 # encoding, whose default is '@' (ESC $ @, JIS C 6226-1978).
1585  
1586 13984 ▶ my $jis_dbcs = defined($option->{'JIS_DBCS'}) ? $option->{'JIS_DBCS'} :
Branch: 2 branches
BranchTrueFalseTotal
defined $option->{'JIS_DBCS'} ? : 6 13978 13984
$OUTPUT_encoding_era eq 'jis1978' ? : 3 13975 13978
1587 ($OUTPUT_encoding_era eq 'jis1978') ? '@' : 'B';
1588 13984 ▶ if ($jis_dbcs ne 'B') {
Branch: 1 branch
BranchTrueFalseTotal
if ($jis_dbcs ne "B") 9 13975 13984
1589 my $esc_dbcs = {
1590 '@' => "\x1B\x24\x40",
1591 '&@B' => "\x1B\x26\x40\x1B\x24\x42",
1592 '(B' => "\x1B\x24\x28\x42",
1593 '(@' => "\x1B\x24\x28\x40",
1594 9 }->{$jis_dbcs};
1595 9 ▶ if (not defined $esc_dbcs) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $esc_dbcs) 1 8 9
1596 1 die "@{[__FILE__]} JIS_DBCS must be 'B', '\@', '&\@B', '(B', or '(\@', not '$jis_dbcs'\n";
1597 }
1598 8 $output =~ s/\x1B\x24\x42/$esc_dbcs/g;
1599 }
1600  
1601 # SBCS escape sequence selection:
1602 # 'B' (default) ESC ( B US-ASCII
1603 # 'J' ESC ( J JIS X 0201 Roman
1604 # 'H' ESC ( H JIS X 0201 Roman (old wrong habit)
1605  
1606 13983 ▶ if (defined($option->{'JIS_SBCS'}) and ($option->{'JIS_SBCS'} ne 'B')) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $option->{"JIS_SBCS"} and $option->{"JIS_SBCS"} ne "B") 4 13979 13983
Condition66%2/3
defined $option->{"JIS_SBCS"} and $option->{"JIS_SBCS"} ne "B"
!ll&&!rl&&r
1397904
MC/DC50%1/2
defined $option->{"JIS_SBCS"} and $option->{"JIS_SBCS"} ne "B"
defined $option->{"JIS_SBCS"} $option->{"JIS_SBCS"} ne "B"
Truth table66%2/3
A and B
A= defined $option->{"JIS_SBCS"}B= $option->{"JIS_SBCS"} ne "B"
ABresult
0X0
100
111
1607 my $esc_sbcs = {
1608 'J' => "\x1B\x28\x4A",
1609 'H' => "\x1B\x28\x48",
1610 4 }->{$option->{'JIS_SBCS'}};
1611 4 ▶ if (not defined $esc_sbcs) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $esc_sbcs) 1 3 4
1612 1 die "@{[__FILE__]} JIS_SBCS must be 'B', 'J', or 'H', not '$option->{'JIS_SBCS'}'\n";
1613 }
1614 3 $output =~ s/\x1B\x28\x42/$esc_sbcs/g;
1615 }
1616 }
1617  
1618 # 'jis2004' output: the main loop writes JIS X 0213 characters in
1619 # the EUC-JIS-2004 form (plane 1 = two GR octets, plane 2 = SS3 +
1620 # two GR octets). Here they are converted to the ISO-2022-JP-2004
1621 # form: plane 1 = ESC $ ( Q (default) or ESC $ ( O (JIS2004_PLANE1
1622 # => 'O', the :2000 designation) + GL octets, plane 2 = ESC $ ( P
1623 # + GL octets. SBCS (ESC ( B) is restored between DBCS runs.
1624  
1625 2883280 ▶ if ($OUTPUT_encoding eq 'jis2004') {
Branch: 1 branch
BranchTrueFalseTotal
if ($OUTPUT_encoding eq "jis2004") 12 2883268 2883280
1626  
1627 12 my $esc_plane1 = "\x1B\x24\x28\x51"; # ESC $ ( Q JIS X 0213:2004 plane 1
1628 12 ▶ if ($OUTPUT_encoding_era eq 'jis2000') {
Branch: 1 branch
BranchTrueFalseTotal
if ($OUTPUT_encoding_era eq "jis2000") 2 10 12
1629 2 $esc_plane1 = "\x1B\x24\x28\x4F"; # ESC $ ( O JIS X 0213:2000 plane 1
1630 }
1631 12 ▶ if (defined $option->{'JIS2004_PLANE1'}) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $option->{"JIS2004_PLANE1"}) 3 9 12
1632 3 ▶ if ($option->{'JIS2004_PLANE1'} eq 'Q') { $esc_plane1 = "\x1B\x24\x28\x51"; }
Branch: 2 branches
BranchTrueFalseTotal
if ($option->{'JIS2004_PLANE1'} eq 'Q') { } 1 2 3
elsif ($option->{'JIS2004_PLANE1'} eq 'O') { } 1 1 2
1633 1 elsif ($option->{'JIS2004_PLANE1'} eq 'O') { $esc_plane1 = "\x1B\x24\x28\x4F"; }
1634 else {
1635 1 die "@{[__FILE__]} JIS2004_PLANE1 must be 'Q' (2004) or 'O' (2000), not '$option->{'JIS2004_PLANE1'}'\n";
1636 }
1637 }
1638 11 my $esc_plane2 = "\x1B\x24\x28\x50"; # ESC $ ( P JIS X 0213 plane 2
1639 11 my $esc_kana = "\x1B\x28\x49"; # ESC ( I JIS X 0201 Katakana
1640 11 my $esc_sbcs = "\x1B\x28\x42"; # ESC ( B US-ASCII
1641  
1642 11 ▶ if ($option->{'OUTPUT_SHIFTING'}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($option->{'OUTPUT_SHIFTING'}) { } 11 0 11
1643  
1644 # The main loop wrote each JIS X 0213 character in the
1645 # EUC-JIS-2004 form. Here each run of the same code set is
1646 # wrapped in its designation escape, and ESC ( B is emitted
1647 # when a US-ASCII (SBCS) octet follows a DBCS/kana run.
1648 #
1649 # $sbcs tracks whether the current designation is US-ASCII,
1650 # so that ESC ( B is emitted only when needed.
1651  
1652 11 my $result = '';
1653 11 my $sbcs = 1;
1654 11 ▶ while (length $output) {
Branch: 1 branch
BranchTrueFalseTotal
if (length $output) 15 11 26
1655 15 ▶ if ($output =~ s/^((?:\x8F[\xA1-\xFE][\xA1-\xFE])+)//) {
Branch: 3 branches
BranchTrueFalseTotal
if ($output =~ s/^((?:\x8F[\xA1-\xFE][\xA1-\xFE])+)//) { } 2 13 15
elsif ($output =~ s/^((?:[\xA1-\xFE][\xA1-\xFE])+)//) { } 7 6 13
elsif ($output =~ s/^((?:\x8E[\xA1-\xDF])+)//) { } 1 5 6
1656 2 my $run = $1;
1657 2 $run =~ s/\x8F([\xA1-\xFE])([\xA1-\xFE])/pack('CC', unpack('C',$1) & 0x7F, unpack('C',$2) & 0x7F)/ge;
1658 2 $result .= $esc_plane2 . $run;
1659 2 $sbcs = 0;
1660 }
1661 elsif ($output =~ s/^((?:[\xA1-\xFE][\xA1-\xFE])+)//) {
1662 7 my $run = $1;
1663 7 $run =~ tr/\xA1-\xFE/\x21-\x7E/;
1664 7 $result .= $esc_plane1 . $run;
1665 7 $sbcs = 0;
1666 }
1667 elsif ($output =~ s/^((?:\x8E[\xA1-\xDF])+)//) {
1668 1 my $run = $1;
1669 1 $run =~ s/\x8E([\xA1-\xDF])/pack('C', unpack('C',$1) & 0x7F)/ge;
1670 1 $result .= $esc_kana . $run;
1671 1 $sbcs = 0;
1672 }
1673 else {
1674 5 $output =~ s/^([\x00-\xFF])//;
1675 5 my $octet = $1;
1676 5 ▶ if (not $sbcs) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($sbcs) 2 3 5
1677 2 $result .= $esc_sbcs;
1678 2 $sbcs = 1;
1679 }
1680 5 $result .= $octet;
1681 }
1682 }
1683 11 $output = $result;
1684 }
1685 else {
1686  
1687 # without OUTPUT_SHIFTING no escape sequences are wanted;
1688 # convert the GL octets bare (this is unusual for jis2004)
1689 0 $output =~ s/\x8F([\xA1-\xFE])([\xA1-\xFE])/pack('CC', unpack('C',$1) & 0x7F, unpack('C',$2) & 0x7F)/ge;
1690 0 $output =~ s/\x8E([\xA1-\xDF])/pack('C', unpack('C',$1) & 0x7F)/ge;
1691 0 $output =~ tr/\xA1-\xFE/\x21-\x7E/;
1692 }
1693 }
1694  
1695 2883279 ${$_[0]} = $output;
1696 2883279 return $count;
1697 }
1698  
1699 #---------------------------------------------------------------------
1700 # confirm version
1701 #---------------------------------------------------------------------
1702 0 ▶sub VERSION {
Subroutine VERSION: not called CC=2 SCAR=17.9
Pod undocumented
1703 0 my($version) = @_;
1704 0 ▶ if ($version ne $Jacode4e::VERSION) {
Branch: 1 branch
BranchTrueFalseTotal
if ($version ne $Jacode4e::VERSION) 0 0 0
1705 0 die "@{[__FILE__]} $Jacode4e::VERSION isn't $version";
1706 }
1707 }
1708  
1709 #---------------------------------------------------------------------
1710 # dump encoding tables
1711 #---------------------------------------------------------------------
1712 76 ▶END {
Subroutine END: called CC=26 SCAR=64.5
1713 76 ▶ if (
Branch: 1 branch
BranchTrueFalseTotal
if ($0 eq __FILE__ and defined $ARGV[0] and $ARGV[0] eq "--dumptable" || $ARGV[0] eq "--dumptable-roundtrip") 0 76 76
Condition22%2/9
$0 eq __FILE__ and defined $ARGV[0] and $ARGV[0] eq "--dumptable" || $ARGV[0] eq "--dumptable-roundtrip"
!ll&&!rl&&r
7600
$0 eq __FILE__ and defined $ARGV[0]
!ll&&!rl&&r
7600
$ARGV[0] eq "--dumptable" or $ARGV[0] eq "--dumptable-roundtrip"
l!l&&r!l&&!r
000
MC/DC0%0/4
$0 eq __FILE__ and defined $ARGV[0] and $ARGV[0] eq "--dumptable" || $ARGV[0] eq "--dumptable-roundtrip"
$0 eq __FILE__ defined $ARGV[0] $ARGV[0] eq "--dumptable" $ARGV[0] eq "--dumptable-roundtrip"
Truth table20%1/5
A and B and C or D
A= $0 eq __FILE__B= defined $ARGV[0]C= $ARGV[0] eq "--dumptable"D= $ARGV[0] eq "--dumptable-roundtrip"
ABCDresult
0XXX0
10XX0
11000
111X1
11011
1714 ($0 eq __FILE__) and
1715 defined($ARGV[0]) and
1716 (($ARGV[0] eq '--dumptable') or ($ARGV[0] eq '--dumptable-roundtrip'))
1717 ) {
1718  
1719 # --dumptable-roundtrip dumps the ROUND_TRIP table (with the
1720 # user-defined area allocation) into "*.ROUNDTRIP.*.txt" files,
1721 # separately from the default table dumped by --dumptable
1722 0 ▶ my $roundtrip = ($ARGV[0] eq '--dumptable-roundtrip') ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
$ARGV[0] eq '--dumptable-roundtrip' ? : 0 0 0
1723 0 ▶ my $rtinfix = $roundtrip ? 'ROUNDTRIP.' : '';
Branch: 1 branch
BranchTrueFalseTotal
$roundtrip ? : 0 0 0
1724 0 ▶ my %rtoption = $roundtrip ? ('ROUND_TRIP'=>1) : ();
Branch: 1 branch
BranchTrueFalseTotal
$roundtrip ? : 0 0 0
1725  
1726 # dump DBCS tables
1727 0 for my $encoding (qw(
1728 cp932 cp932ibm cp932nec sjis1978 sjis1983 sjis1990 sjis2000 sjis2004 euc1978 euc1983 euc1990 euc2000 euc2004 jis1978 jis1983 jis1990 jis2000 jis2004 cp00930 keis78 keis83 keis90 jef jef9p jipsj jipse letsj
1729 )) {
1730 0 ▶ open(FILE,">$0-$Jacode4e::VERSION.TABLE.${rtinfix}\U$encoding\E.txt") || die;
Branch: 1 branch
BranchTrueFalseTotal
open FILE, ">$0-$Jacode4e::VERSION.TABLE.$rtinfix\U$encoding\E.txt" or die 0 0 0
1731 0 binmode(FILE);
1732 0 ▶ for (my $octet1=0x00; $octet1<=0xFF; $octet1+=0x01) {
Branch: 1 branch
BranchTrueFalseTotal
if ($octet1 <= 255) 0 0 0
1733  
1734 # EUC-JP/EUC-JIS-2004 code set 3 (SS3 0x8F + two GR
1735 # octets, JIS X 0212 or JIS X 0213 plane 2) is three octets
1736 0 ▶ if (($encoding =~ /^euc(?:2000|2004)$/) and ($octet1 == 0x8F)) {
Branch: 1 branch
BranchTrueFalseTotal
if ($encoding =~ /^euc(?:2000|2004)$/ and $octet1 == 143) 0 0 0
Condition0%0/3
$encoding =~ /^euc(?:2000|2004)$/ and $octet1 == 143
!ll&&!rl&&r
000
MC/DC0%0/2
$encoding =~ /^euc(?:2000|2004)$/ and $octet1 == 143
$encoding =~ /^euc(?:2000|2004)$/ $octet1 == 143
Truth table0%0/3
A and B
A= $encoding =~ /^euc(?:2000|2004)$/B= $octet1 == 143
ABresult
0X0
100
111
1737 0 ▶ for (my $octet2=0xA1; $octet2<=0xFE; $octet2+=0x01) {
Branch: 1 branch
BranchTrueFalseTotal
if ($octet2 <= 254) 0 0 0
1738 0 ▶ for (my $octet3=0xA0; $octet3<=0xF0; $octet3+=0x10) {
Branch: 1 branch
BranchTrueFalseTotal
if ($octet3 <= 240) 0 0 0
1739 0 my @line = ();
1740 0 ▶ for (my $column=0x00; $column<=0x0F; $column+=0x01) {
Branch: 1 branch
BranchTrueFalseTotal
if ($column <= 15) 0 0 0
1741 0 my $octets = pack('CCC', $octet1, $octet2, $octet3 + $column);
1742 0 Jacode4e::convert(\$octets, q{utf8}, $encoding, { q{INPUT_LAYOUT}=>q{D}, q{GETA}=>" ", %rtoption });
1743 0 push @line, $octets;
1744 }
1745 0 ▶ if (grep(!/ /,@line) >= 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (grep((!/\343\200\200/), @line) >= 1) 0 0 0
1746 0 printf FILE ('%s %02X%02X%02X: ', uc $encoding, $octet1, $octet2, $octet3);
1747 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[ 0], $line[ 1], $line[ 2], $line[ 3]);
1748 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[ 4], $line[ 5], $line[ 6], $line[ 7]);
1749 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[ 8], $line[ 9], $line[10], $line[11]);
1750 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[12], $line[13], $line[14], $line[15]);
1751 0 print FILE "\n";
1752 }
1753 }
1754 }
1755 0 next;
1756 }
1757  
1758 0 ▶ for (my $octet2=0x00; $octet2<=0xF0; $octet2+=0x10) {
Branch: 1 branch
BranchTrueFalseTotal
if ($octet2 <= 240) 0 0 0
1759 0 my @line = ();
1760 0 ▶ for (my $column=0x00; $column<=0x0F; $column+=0x01) {
Branch: 1 branch
BranchTrueFalseTotal
if ($column <= 15) 0 0 0
1761 0 my $octets = pack('CC', $octet1, $octet2 + $column);
1762 0 Jacode4e::convert(\$octets, q{utf8}, $encoding, { q{INPUT_LAYOUT}=>q{D}, q{GETA}=>" ", %rtoption });
1763 0 push @line, $octets;
1764 }
1765 0 ▶ if (grep(!/ /,@line) >= 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (grep((!/\343\200\200/), @line) >= 1) 0 0 0
1766 0 printf FILE ('%s %02X%02X: ', uc $encoding, $octet1, $octet2);
1767 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[ 0], $line[ 1], $line[ 2], $line[ 3]);
1768 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[ 4], $line[ 5], $line[ 6], $line[ 7]);
1769 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[ 8], $line[ 9], $line[10], $line[11]);
1770 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[12], $line[13], $line[14], $line[15]);
1771 0 print FILE "\n";
1772 }
1773 }
1774 }
1775 0 close(FILE);
1776 }
1777  
1778 # dump CP932X table
1779 0 ▶ open(FILE,">$0-$Jacode4e::VERSION.TABLE.${rtinfix}CP932X.txt") || die;
Branch: 1 branch
BranchTrueFalseTotal
open FILE, ">$0-$Jacode4e::VERSION.TABLE.${rtinfix}CP932X.txt" or die 0 0 0
1780 0 binmode(FILE);
1781 0 ▶ for (my $octet1=0x00; $octet1<=0xFF; $octet1+=0x01) {
Branch: 1 branch
BranchTrueFalseTotal
if ($octet1 <= 255) 0 0 0
1782 0 ▶ for (my $octet2=0x00; $octet2<=0xF0; $octet2+=0x10) {
Branch: 1 branch
BranchTrueFalseTotal
if ($octet2 <= 240) 0 0 0
1783 0 my @line = ();
1784 0 ▶ for (my $column=0x00; $column<=0x0F; $column+=0x01) {
Branch: 1 branch
BranchTrueFalseTotal
if ($column <= 15) 0 0 0
1785 0 my $octets = pack('CC', $octet1, $octet2 + $column);
1786 0 Jacode4e::convert(\$octets, q{utf8}, 'cp932x', { q{INPUT_LAYOUT}=>q{D}, q{GETA}=>" ", %rtoption });
1787 0 push @line, $octets;
1788 }
1789 0 ▶ for (my $column=0x00; $column<=0x0F; $column+=0x01) {
Branch: 1 branch
BranchTrueFalseTotal
if ($column <= 15) 0 0 0
1790 0 my $octets = pack('CCCC', 0x9C, 0x5A, $octet1, $octet2 + $column);
1791 0 Jacode4e::convert(\$octets, q{utf8}, 'cp932x', { q{INPUT_LAYOUT}=>q{D}, q{GETA}=>" ", %rtoption });
1792 0 push @line, $octets;
1793 }
1794 0 ▶ if (grep(!/ /,@line) >= 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (grep((!/\343\200\200/), @line) >= 1) 0 0 0
1795 0 printf FILE ('CP932X %02X%02X: ', $octet1, $octet2);
1796 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[ 0], $line[ 1], $line[ 2], $line[ 3]);
1797 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[ 4], $line[ 5], $line[ 6], $line[ 7]);
1798 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[ 8], $line[ 9], $line[10], $line[11]);
1799 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[12], $line[13], $line[14], $line[15]);
1800 0 print FILE ' ';
1801 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[16], $line[17], $line[18], $line[19]);
1802 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[20], $line[21], $line[22], $line[23]);
1803 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[24], $line[25], $line[26], $line[27]);
1804 0 printf FILE ('%-2s%-2s%-2s%-2s ', $line[28], $line[29], $line[30], $line[31]);
1805 0 print FILE "\n";
1806 }
1807 }
1808 }
1809 0 close(FILE);
1810  
1811 0 exit;
1812 }
1813 }
1814  
1815 #---------------------------------------------------------------------
1816 # document
1817 #---------------------------------------------------------------------
1818  
1819 =pod
1820  
1821 =encoding utf8
1822  
1823 =head1 NAME
1824  
1825 Jacode4e - Converts Character Encodings for Enterprise in Japan
1826  
1827 =head1 SYNOPSIS
1828  
1829 use FindBin;
1830 use lib "$FindBin::Bin/lib";
1831 use Jacode4e;
1832  
1833 $char_count =
1834 Jacode4e::convert(\$line, $OUTPUT_encoding, $INPUT_encoding [, { %option }]);
1835  
1836 =head2 $char_count
1837  
1838 Count of characters in $line
1839  
1840 =head2 $line
1841  
1842 String to convert. Passed by reference and overwritten in place.
1843  
1844 =head2 $OUTPUT_encoding
1845  
1846 The encoding mnemonic for output. See encoding table below.
1847  
1848 =head2 $INPUT_encoding
1849  
1850 Converts encoding of $line from $INPUT_encoding to $OUTPUT_encoding then overwrites $line.
1851  
1852 $OUTPUT_encoding and $INPUT_encoding cannot omit.
1853  
1854 You can use mnemonic as encoding name of $INPUT_encoding and $OUTPUT_encoding:
1855  
1856 mnemonic means
1857 -----------------------------------------------------------------------
1858 cp932x CP932X, Extended CP932 to JIS X 0213 using 0x9C5A as single shift
1859 cp932 Microsoft CP932, IANA Windows-31J
1860 cp932ibm IBM CP932
1861 cp932nec NEC CP932
1862 sjis2004 JISC Shift_JIS-2004
1863 sjis JISC Shift_JIS (JIS X 0201, JIS X 0208)
1864 euc2004 JISC EUC-JIS-2004 (JIS X 0201, JIS X 0213 plane 1 and plane 2)
1865 euc JISC EUC-JP (JIS X 0201, JIS X 0208, JIS X 0212)
1866 jis2004 JISC ISO-2022-JP-2004 (JIS X 0201, JIS X 0213 plane 1 and plane 2)
1867 jis JISC ISO-2022-JP (JIS X 0201, JIS X 0208, JIS X 0212)
1868 cp00930 IBM CP00930(CP00290+CP00300), CCSID 5026 katakana
1869 keis78 HITACHI KEIS78
1870 keis83 HITACHI KEIS83
1871 keis90 HITACHI KEIS90
1872 jef FUJITSU JEF (12 point size for printing with option OUTPUT_SHIFTING)
1873 jef9p FUJITSU JEF ( 9 point size for printing with option OUTPUT_SHIFTING)
1874 jipsj NEC JIPS(J)
1875 jipse NEC JIPS(E)
1876 letsj UNISYS LetsJ
1877 utf8 UTF-8.0 (aka UTF-8)
1878 utf8.1 UTF-8.1 (conversion based on Shift_JIS-Unicode mapping, not CP932)
1879 utf8jp UTF-8-SPUA-JP, JIS X 0213 on SPUA ordered by JIS level, plane, row, cell
1880 -----------------------------------------------------------------------
1881  
1882 =head2 { %option }
1883  
1884 Hash reference "{ %option }" can omit.
1885  
1886 You can following mnemonics as keys of hash reference "{ %option }":
1887  
1888 =over 2
1889  
1890 =item *
1891  
1892 INPUT_LAYOUT
1893  
1894 input record layout by 'S' and 'D' sequence
1895  
1896 'S' means one char as SBCS, 'D' means one char as DBCS
1897  
1898 each letter may optionally be followed by a number indicating the repeat count, see samples
1899  
1900 =item *
1901  
1902 OUTPUT_SHIFTING
1903  
1904 true means use output shift code, false means not use
1905  
1906 default is false
1907  
1908 =item *
1909  
1910 SPACE
1911  
1912 output space code in DBCS/MBCS
1913  
1914 =item *
1915  
1916 GETA
1917  
1918 output geta code in DBCS/MBCS
1919  
1920 =item *
1921  
1922 OVERRIDE_MAPPING
1923  
1924 hash reference of FROM => TO override mapping { "\x12\x34"=>"\x56\x78", "\x9A\xBC"=>"\xDE\xFE", }
1925  
1926 (CAUTION! override also SPACE option)
1927  
1928 =item *
1929  
1930 JIS_SOSI
1931  
1932 true means SO (0x0E) and SI (0x0F) of 'jis' input are used as shift functions to JIS X 0201 Katakana (JIS7 katakana habit): the octets 0x21..0x5F following SO are read as 0xA1..0xDF, and SI restores the GL designation before SO
1933  
1934 false means 0x0E and 0x0F pass through as data octets
1935  
1936 default is false, effective only when $INPUT_encoding is 'jis'
1937  
1938 =item *
1939  
1940 JIS_X0212
1941  
1942 true means a character that has no JIS X 0208 code but has a JIS X 0212 code is written as ESC $ ( D and JIS X 0212 codes on 'jis' output (ISO-2022-JP-1)
1943  
1944 only characters that also have a code in some OTHER supported encoding (cp932x, cp932, cp932ibm, cp932nec, cp00930, keis78, keis83, keis90, jef, jipsj, jipse, or letsj) are covered; a character whose ONLY repertoire membership is JIS X 0212 has no code in Jacode4e and becomes GETA even with this option true (see L</"JIS X 0212 COVERAGE">)
1945  
1946 requires "'OUTPUT_SHIFTING' => 1" because escape sequences must be allowed in the output
1947  
1948 default is false, effective only when $OUTPUT_encoding is 'jis'
1949  
1950 =item *
1951  
1952 JIS_KANA
1953  
1954 JIS X 0201 Katakana style on 'jis' output
1955  
1956 'GR' means GR octets 0xA1..0xDF (8bit JIS), 'I' means ESC ( I and GL octets (requires "'OUTPUT_SHIFTING' => 1"), 'SO' means SO (0x0E), GL octets, and SI (0x0F)
1957  
1958 default is 'GR', effective only when $OUTPUT_encoding is 'jis'
1959  
1960 =item *
1961  
1962 JIS_DBCS
1963  
1964 DBCS escape sequence on 'jis' output
1965  
1966 'B' means ESC $ B (JIS X 0208-1983), '@' means ESC $ @ (JIS C 6226-1978), '&@B' means ESC & @ ESC $ B (JIS X 0208-1990), '(B' means ESC $ ( B (ISO 2022 general form), '(@' means ESC $ ( @ (ISO 2022 general form)
1967  
1968 default is 'B', effective only when $OUTPUT_encoding is 'jis'
1969  
1970 =item *
1971  
1972 JIS_SBCS
1973  
1974 SBCS escape sequence on 'jis' output
1975  
1976 'B' means ESC ( B (US-ASCII), 'J' means ESC ( J (JIS X 0201 Roman), 'H' means ESC ( H (JIS X 0201 Roman, old wrong habit)
1977  
1978 default is 'B', effective only when $OUTPUT_encoding is 'jis'
1979  
1980 =item *
1981  
1982 JIS2004_PLANE1
1983  
1984 plane 1 designation escape sequence on 'jis2004' output
1985  
1986 'Q' means ESC $ ( Q (JIS X 0213:2004 plane 1), 'O' means ESC $ ( O (JIS X 0213:2000 plane 1)
1987  
1988 default is 'Q', effective only when $OUTPUT_encoding is 'jis2004' (plane 2 always uses ESC $ ( P; on input, ESC $ ( Q, ESC $ ( O, ESC $ B, ESC $ @, and ESC $ ( P are all accepted)
1989  
1990 =item *
1991  
1992 ROUND_TRIP
1993  
1994 true means round-trip (reversible) conversion: a character that has no native code in an encoding is allocated a code point from the user-defined (GAIJI) area of the encoding, so that "A to B" and "B to A" restore the original data
1995  
1996 The encodings that can be round-tripped are cp932x, cp00930, keis78, keis83, keis90, jef, jef9p, jipsj, jipse, letsj, utf8, utf8.1, and utf8jp
1997  
1998 false (default) means the ordinary conversion of Jacode4e (a character that has no native code becomes GETA)
1999  
2000 B<CAUTION: both "A to B" and "B to A" must specify "'ROUND_TRIP' => 1", and must use the SAME VERSION of Jacode4e, because the allocation order of the user-defined area depends on the data table of the version. If the versions differ, the round-trip is not guaranteed.>
2001  
2002 The ROUND_TRIP table is built lazily on the first ROUND_TRIP call, so there is no extra cost when the option is not used
2003  
2004 =back
2005  
2006 If you need round-trip conversion, specify the "'ROUND_TRIP' => 1" option (see above). This is the same feature as the separate Jacode4e::RoundTrip module, now built into Jacode4e.
2007  
2008 =head1 SAMPLES
2009  
2010 Converts from cp00930 to cp932x using option ('INPUT_LAYOUT' => 'SSSDDDSSDDSDSD')
2011  
2012 use FindBin;
2013 use lib "$FindBin::Bin/lib";
2014 use Jacode4e;
2015 while (<>) {
2016 $char_count =
2017 Jacode4e::convert(\$_, 'cp932x', 'cp00930', {
2018 'INPUT_LAYOUT' => 'SSSDDDSSDDSDSD',
2019 'OUTPUT_SHIFTING' => 0,
2020 'SPACE' => "\x81\xA2",
2021 'GETA' => "\x81\xA1",
2022 'OVERRIDE_MAPPING' => { "\x44\x5A" => "\x81\x7C", },
2023 });
2024 print $_;
2025 }
2026  
2027 Converts from cp00930 to cp932x using option ('INPUT_LAYOUT' => 'S3D3S2D2SDSD')
2028  
2029 use FindBin;
2030 use lib "$FindBin::Bin/lib";
2031 use Jacode4e;
2032 while (<>) {
2033 $char_count =
2034 Jacode4e::convert(\$_, 'cp932x', 'cp00930', {
2035 'INPUT_LAYOUT' => 'S3D3S2D2SDSD',
2036 'OUTPUT_SHIFTING' => 0,
2037 'SPACE' => "\x81\xA2",
2038 'GETA' => "\x81\xA1",
2039 'OVERRIDE_MAPPING' => { "\x44\x5A" => "\x81\x7C", },
2040 });
2041 print $_;
2042 }
2043  
2044 Converts from utf8.1 to cp932ibm
2045  
2046 use FindBin;
2047 use lib "$FindBin::Bin/lib";
2048 use Jacode4e;
2049 while (<>) {
2050 Jacode4e::convert(\$_, 'cp932ibm', 'utf8.1', {});
2051 print $_;
2052 }
2053  
2054 Converts from utf8 to utf8.1
2055  
2056 use FindBin;
2057 use lib "$FindBin::Bin/lib";
2058 use Jacode4e;
2059 while (<>) {
2060 $char_count =
2061 Jacode4e::convert(\$_, 'utf8.1', 'utf8', {
2062 # FULLWIDTH TILDE => WAVE DASH
2063 'OVERRIDE_MAPPING' => { "\xEF\xBD\x9E" => "\xE3\x80\x9C", },
2064 });
2065 print $_;
2066 }
2067  
2068 Round-trip conversion (cp932x to jef and back to cp932x)
2069  
2070 use FindBin;
2071 use lib "$FindBin::Bin/lib";
2072 use Jacode4e;
2073  
2074 # both directions need 'ROUND_TRIP' => 1 and the same Jacode4e version
2075 my $original = $cp932x_data;
2076  
2077 my $jef = $original;
2078 Jacode4e::convert(\$jef, 'jef', 'cp932x', { 'ROUND_TRIP' => 1 });
2079  
2080 my $cp932x = $jef;
2081 Jacode4e::convert(\$cp932x, 'cp932x', 'jef', { 'ROUND_TRIP' => 1 });
2082  
2083 # $cp932x is now identical to $original
2084 ($cp932x eq $original) or die "round-trip failed\n";
2085  
2086 =head1 INPUT SI/SO code
2087  
2088 Wikipedia L<https://ja.wikipedia.org/wiki/%E6%BC%A2%E5%AD%97%E3%82%B7%E3%83%95%E3%83%88%E3%82%B3%E3%83%BC%E3%83%89> tells us Kanji shift code (means DBCS shift code) of each encoding of vendors.
2089 Jacode4e::convert() handle SI/SO(Shift In and Shift Out) code in $line automatically.
2090 If $line has no SI/SO code, we can use option "INPUT_LAYOUT" instead of SI/SO code.
2091  
2092 Realistically saying, we have to use option "INPUT_LAYOUT" almost always, if $INPUT_encoding is any of enterprise encodings(cp00930, keis78, keis83, keis90, jef, jef9p, jipsj, jipse, and letsj).
2093 Because SI/SO codes are rarely used.
2094  
2095 If $INPUT_encoding is any of cp932x, cp932, cp932ibm, cp932nec, sjis2004, sjis, euc2004, and euc, "INPUT_LAYOUT" option is unnecessary.
2096 Because SBCS and DBCS can be judged from the character string itself.
2097 However, you can also use "INPUT_LAYOUT" option to force conversion as SBCS.
2098  
2099 If $INPUT_encoding is 'jis', escape sequences in $line switch SBCS and DBCS:
2100 ESC ( B, ESC ( J, and ESC ( H switch to SBCS,
2101 ESC ( I switches to SBCS as JIS X 0201 Katakana (following octets 0x21..0x5F are read as 0xA1..0xDF),
2102 ESC $ @, ESC $ B, ESC $ ( @, ESC $ ( B, and ESC & @ ESC $ B switch to DBCS as JIS X 0208 codes,
2103 ESC $ ( D switches to DBCS as JIS X 0212 codes (ISO-2022-JP-1).
2104 JIS X 0201 Katakana as GR octets 0xA1..0xDF (8bit JIS) is also accepted.
2105 SO (0x0E) and SI (0x0F) are shift functions to JIS X 0201 Katakana only with option "'JIS_SOSI' => 1" (see { %option }), and are data octets by default.
2106 If $line has no escape sequence, we can use option "INPUT_LAYOUT" instead.
2107  
2108 ---------------------------------------------------------------------------
2109 SO(Shift Out) SI(Shift In)
2110 $INPUT_encoding KI(KANJI In) KO(KANJI Out)
2111 mnemonic switch to DBCS switch to SBCS %option
2112 ---------------------------------------------------------------------------
2113 'cp932x' (nothing) (nothing) also 'INPUT_LAYOUT' => ...
2114 'cp932' (nothing) (nothing) also 'INPUT_LAYOUT' => ...
2115 'cp932ibm' (nothing) (nothing) also 'INPUT_LAYOUT' => ...
2116 'cp932nec' (nothing) (nothing) also 'INPUT_LAYOUT' => ...
2117 'sjis2004' (nothing) (nothing) also 'INPUT_LAYOUT' => ...
2118 'sjis' (nothing) (nothing) also 'INPUT_LAYOUT' => ...
2119 'euc2004' (nothing) (nothing) also 'INPUT_LAYOUT' => ...
2120 'euc' (nothing) (nothing) also 'INPUT_LAYOUT' => ...
2121 'jis2004' "\x1B\x24\x28\x51" or "\x1B\x28\x42" or xor 'INPUT_LAYOUT' => ...
2122 "\x1B\x24\x28\x4F" or "\x1B\x28\x4A" or
2123 "\x1B\x24\x28\x50" or "\x1B\x28\x49"
2124 "\x1B\x24\x42"
2125 'jis' "\x1B\x24\x42" or "\x1B\x28\x42" or xor 'INPUT_LAYOUT' => ...
2126 "\x1B\x24\x40" or "\x1B\x28\x4A" or
2127 "\x1B\x26\x40" . "\x1B\x28\x48" or
2128 "\x1B\x24\x42" "\x1B\x28\x49"
2129 'cp00930' "\x0E" "\x0F" xor 'INPUT_LAYOUT' => ...
2130 'keis78' "\x0A\x42" "\x0A\x41" xor 'INPUT_LAYOUT' => ...
2131 'keis83' "\x0A\x42" "\x0A\x41" xor 'INPUT_LAYOUT' => ...
2132 'keis90' "\x0A\x42" "\x0A\x41" xor 'INPUT_LAYOUT' => ...
2133 'jef' "\x28" or "\x38" "\x29" xor 'INPUT_LAYOUT' => ...
2134 'jef9p' "\x28" or "\x38" "\x29" xor 'INPUT_LAYOUT' => ...
2135 'jipsj' "\x1A\x70" "\x1A\x71" xor 'INPUT_LAYOUT' => ...
2136 'jipse' "\x3F\x75" "\x3F\x76" xor 'INPUT_LAYOUT' => ...
2137 'letsj' "\x93\x70" "\x93\xF1" xor 'INPUT_LAYOUT' => ...
2138 'utf8' (nothing) (nothing)
2139 'utf8.1' (nothing) (nothing)
2140 'utf8jp' (nothing) (nothing)
2141 ---------------------------------------------------------------------------
2142  
2143 =head1 OUTPUT SI/SO code
2144  
2145 Jacode4e::convert() doesn't output SI/SO code on default.
2146 Thus, if you need SI/SO code then you have to use option "'OUTPUT_SHIFTING' => 1".
2147  
2148 ---------------------------------------------------------------------------
2149 SO(Shift Out) SI(Shift In)
2150 $OUTPUT_encoding KI(KANJI In) KO(KANJI Out)
2151 mnemonic switch to DBCS switch to SBCS %option
2152 ---------------------------------------------------------------------------
2153 'cp932x' (nothing) (nothing)
2154 'cp932' (nothing) (nothing)
2155 'cp932ibm' (nothing) (nothing)
2156 'cp932nec' (nothing) (nothing)
2157 'sjis2004' (nothing) (nothing)
2158 'sjis' (nothing) (nothing)
2159 'euc2004' (nothing) (nothing)
2160 'euc' (nothing) (nothing)
2161 'jis2004' "\x1B\x24\x28\x51" "\x1B\x28\x42" 'OUTPUT_SHIFTING' => 1
2162 'jis' "\x1B\x24\x42" "\x1B\x28\x42" 'OUTPUT_SHIFTING' => 1
2163 'cp00930' "\x0E" "\x0F" 'OUTPUT_SHIFTING' => 1
2164 'keis78' "\x0A\x42" "\x0A\x41" 'OUTPUT_SHIFTING' => 1
2165 'keis83' "\x0A\x42" "\x0A\x41" 'OUTPUT_SHIFTING' => 1
2166 'keis90' "\x0A\x42" "\x0A\x41" 'OUTPUT_SHIFTING' => 1
2167 'jef' "\x28" "\x29" 'OUTPUT_SHIFTING' => 1
2168 'jef9p' "\x38" "\x29" 'OUTPUT_SHIFTING' => 1
2169 'jipsj' "\x1A\x70" "\x1A\x71" 'OUTPUT_SHIFTING' => 1
2170 'jipse' "\x3F\x75" "\x3F\x76" 'OUTPUT_SHIFTING' => 1
2171 'letsj' "\x93\x70" "\x93\xF1" 'OUTPUT_SHIFTING' => 1
2172 'utf8' (nothing) (nothing)
2173 'utf8.1' (nothing) (nothing)
2174 'utf8jp' (nothing) (nothing)
2175 ---------------------------------------------------------------------------
2176  
2177 =head1 OUTPUT DBCS/MBCS SPACE code
2178  
2179 We implemented default space code below without arguing with others.
2180  
2181 (We would appreciate any statistical information about its using.)
2182  
2183 You can change the space code using option "SPACE" if you want.
2184  
2185 ---------------------------------------------------------------------------
2186 $OUTPUT_encoding
2187 mnemonic default code %option
2188 ---------------------------------------------------------------------------
2189 'cp932x' "\x81\x40"
2190 'cp932' "\x81\x40"
2191 'cp932ibm' "\x81\x40"
2192 'cp932nec' "\x81\x40"
2193 'sjis2004' "\x81\x40" 'SPACE' => "\x20\x20" for CP/M-86 compatible
2194 'sjis' "\x81\x40"
2195 'euc2004' "\xA1\xA1"
2196 'euc' "\xA1\xA1"
2197 'jis2004' "\x21\x21"
2198 'jis' "\x21\x21"
2199 'cp00930' "\x40\x40"
2200 'keis78' "\xA1\xA1"
2201 'keis83' "\xA1\xA1"
2202 'keis90' "\xA1\xA1"
2203 'jef' "\xA1\xA1" 'SPACE' => "\x40\x40" for 99FR-0012-2 and 99FR-0012-3 compatible
2204 'jef9p' "\xA1\xA1" 'SPACE' => "\x40\x40" for 99FR-0012-2 and 99FR-0012-3 compatible
2205 'jipsj' "\x21\x21"
2206 'jipse' "\x4F\x4F"
2207 'letsj' "\x20\x20" 'SPACE' => "\xA1\xA1" for EUC-JP like space
2208 'utf8' "\xE3\x80\x80"
2209 'utf8.1' "\xE3\x80\x80"
2210 'utf8jp' "\xF3\xB0\x84\x80"
2211 ---------------------------------------------------------------------------
2212  
2213 =head1 OUTPUT DBCS/MBCS GETA code
2214  
2215 If a character isn't included in $OUTPUT_encoding set, GETA code will be used instead of converted code.
2216  
2217 The default GETA code is as follows.
2218 You can change GETA code using option "GETA" if you want.
2219  
2220 GETA doesn't mean GETA, but means B<GETA-MARK>.
2221  
2222 GETA is Japanese wooden shoes that made for walk on paddy field.
2223 One GETA has two teeth, and they make B<GETA-MARK> on the ground by bite the earth twice.
2224 Thus, GETA code is double byte code, or some time multibyte code.
2225  
2226 ---------------------------------------------------------------------------
2227 $OUTPUT_encoding
2228 mnemonic default code %option sample
2229 ---------------------------------------------------------------------------
2230 'cp932x' "\x81\xAC" 'GETA' => "\x81\xA1"
2231 'cp932' "\x81\xAC" 'GETA' => "\x81\x9C"
2232 'cp932ibm' "\x81\xAC" 'GETA' => "\x81\x9C"
2233 'cp932nec' "\x81\xAC" 'GETA' => "\x81\x9C"
2234 'sjis2004' "\x81\xAC" 'GETA' => "\x81\xFC"
2235 'sjis' "\x81\xAC"
2236 'euc2004' "\xA2\xAE"
2237 'euc' "\xA2\xAE"
2238 'jis2004' "\x22\x2E"
2239 'jis' "\x22\x2E"
2240 'cp00930' "\x44\x7D"
2241 'keis78' "\xA2\xAE"
2242 'keis83' "\xA2\xAE"
2243 'keis90' "\xA2\xAE"
2244 'jef' "\xA2\xAE"
2245 'jef9p' "\xA2\xAE"
2246 'jipsj' "\x22\x2E"
2247 'jipse' "\x7F\x4B"
2248 'letsj' "\xA2\xAE"
2249 'utf8' "\xE3\x80\x93"
2250 'utf8.1' "\xE3\x80\x93"
2251 'utf8jp' "\xF3\xB0\x85\xAB"
2252 ---------------------------------------------------------------------------
2253  
2254 =head1 RAISON D'ETRE(Reason For Existence)
2255  
2256 This software has been developed for use promotion of JIS X 0213.
2257  
2258 JIS X 0213 contains almost all of characters used in everyday life in Japan.
2259 In addition, JIS X 0213 was designed with consideration for use in Shift_JIS environment.
2260 However, because it did not consider CP932 and GAIJI, Shift_JIS-2004 is not so popular.
2261  
2262 B<"JIS X 0213 bridge" needs last one meter more to bridge us.>
2263  
2264 To solve the problem, Jacode4e proposes CP932X [shi:pi:kju:san'nikai].
2265  
2266 CP932X implements JIS X 0213 over on CP932.
2267  
2268 We can continue to use CP932 data, application programs, databases, and networks using CP932X.
2269  
2270 If you need round-trip conversion, specify the "'ROUND_TRIP' => 1" option of Jacode4e::convert() (see the OPTION section). Both "A to B" and "B to A" must specify the option and use the same version of Jacode4e.
2271  
2272 =head1 WHAT IS "CP932X"?
2273  
2274 =over 4
2275  
2276 =item *
2277  
2278 Mnemonic is "cp932x"
2279  
2280 =item *
2281  
2282 CP932X is almost CP932
2283  
2284 =item *
2285  
2286 Pronounce [si: pi: nain thri: tu: kai] in English
2287  
2288 =item *
2289  
2290 Pronounce [shi: pi: kju: san' ni kai] in Japanese
2291  
2292 =item *
2293  
2294 We have reserved [si: pi: nain thri: tu: iks] for Microsoft Corporation-san
2295  
2296 =item *
2297  
2298 CP932 upper compatible
2299  
2300 =item *
2301  
2302 Supports JIS X 0213 character set
2303  
2304 =item *
2305  
2306 Used ghost character "\x9C\x5A" as single shift code
2307  
2308 =item *
2309  
2310 Used "\x9C\x5A\x9C\x5A" for single "\x9C\x5A"
2311  
2312 =item *
2313  
2314 You can use private use characters you made
2315  
2316 =item *
2317  
2318 You can use your operating system, network, and database
2319  
2320 =item *
2321  
2322 In almost all cases, application programs can be used as it is
2323  
2324 =back
2325  
2326 =head1 HOW TO USE CP932X
2327  
2328 CP932X ("cp932x") is used exactly like any other Jacode4e encoding: pass
2329 it as $OUTPUT_encoding or $INPUT_encoding to Jacode4e::convert(). There is
2330 no special mode switch to turn on.
2331  
2332 use FindBin;
2333 use lib "$FindBin::Bin/lib";
2334 use Jacode4e;
2335  
2336 # bring existing CP932 data up to the JIS X 0213 repertoire
2337 my $line = $cp932_data;
2338 Jacode4e::convert(\$line, 'cp932x', 'cp932', {});
2339 # $line is now CP932X: every byte that was valid CP932 is unchanged,
2340 # and the data may now also carry JIS X 0213 characters
2341  
2342 Because CP932X is upper compatible with CP932 (see the WHAT IS "CP932X"?
2343 section above), a CP932-only reader still sees all the original CP932
2344 characters correctly; only the added JIS X 0213 characters, which are
2345 introduced by the single shift code 0x9C5A (the "ghost character"
2346 1-55-27), need a CP932X-aware reader. A literal 0x9C5A in the data is
2347 escaped as 0x9C5A 0x9C5A, so no information is lost.
2348  
2349 Typical uses:
2350  
2351 =over 2
2352  
2353 =item *
2354  
2355 Add JIS X 0213 characters to a system that is fixed on CP932 (files,
2356 databases, networks, application programs) WITHOUT migrating the whole
2357 system to Shift_JIS-2004 or UTF-8.
2358  
2359 =item *
2360  
2361 Interchange with mainframe host codes: convert host data (cp00930, keis78
2362 / keis83 / keis90, jef / jef9p, jipsj / jipse, letsj) to cp932x to obtain
2363 the full JIS X 0213 repertoire on a PC while staying byte compatible with
2364 CP932 tooling.
2365  
2366 =item *
2367  
2368 Reversible transport: with the 'ROUND_TRIP' => 1 option, cp932x can act as
2369 a reversible carrier for characters that have no native code in another
2370 encoding (see the ROUND_TRIP option and L</"SAMPLES">). Both directions
2371 must specify the option and use the same Jacode4e version.
2372  
2373 =back
2374  
2375 For WHY CP932X was designed this way, see the RAISON D'ETRE and the "Why
2376 and how to CP932X Born?" sections.
2377  
2378 =head1 WHAT IS "UTF-8-SPUA-JP"?
2379  
2380 =over 4
2381  
2382 =item *
2383  
2384 Mnemonic is "utf8jp"
2385  
2386 =item *
2387  
2388 UTF-8-SPUA-JP is UTF-8
2389  
2390 =item *
2391  
2392 Internal character encoding of Jacode4e and Jacode4e::RoundTrip, universally
2393  
2394 =item *
2395  
2396 Implements JIS X 0213 character set on to Unicode Supplementary Private Use Area-A
2397  
2398 =item *
2399  
2400 Code point ordered by JIS level, plane, row, cell
2401  
2402 =item *
2403  
2404 Uniformly length encoding
2405  
2406 =item *
2407  
2408 No grapheme clustering, one character by uniquely code point
2409  
2410 =back
2411  
2412 =head1 IBM, NEC EXTENSIONS, AND MICROSOFT CP932
2413  
2414 JIS X 0208 is a coded character set laid out as a 94x94 grid of "ku-ten"
2415 (row-cell), that is, rows No.1 to No.94. Everyday Japanese needs more
2416 characters than this grid provides (personal-name kanji, symbols, and so
2417 on), so before Windows appeared each vendor added its own characters on
2418 top of JIS X 0208 and burned them into the kanji ROM of its machines. Two
2419 of those private extensions became de facto standards, thanks to the
2420 market share of their vendors: the IBM extension and the NEC extension.
2421 Jacode4e keeps them separated as the encodings 'cp932ibm' and 'cp932nec',
2422 and offers Microsoft's unified set as 'cp932'.
2423  
2424 =head2 IBM extension ("IBM extended characters", IBM kakucho moji)
2425  
2426 388 characters. IBM placed them OUTSIDE the JIS X 0208 grid, in rows
2427 No.115 to No.119, i.e. the Shift_JIS lead-byte region 0xFA40 to 0xFC4B.
2428 They are mostly kanji used in personal and place names (for example
2429 "hashigo-daka" 髙 U+9AD9) plus a few symbols.
2430  
2431 =over 2
2432  
2433 =item *
2434  
2435 B<Merit:> all of the extended characters are outside JIS row No.1 to
2436 No.94, so the standard JIS X 0208 grid is left exactly as the standard
2437 defines it. Data stays clean when it is interchanged with enterprise host
2438 codes (CP00930, KEIS, JEF, JIPS, LetsJ) that keep the same "extended area
2439 is a separate region" discipline. This is why 'cp932ibm' is convenient for
2440 transfer to an enterprise system.
2441  
2442 =item *
2443  
2444 B<Demerit:> rows No.115 to No.119 are outside the 94x94 range, so an
2445 environment that accepts only rows No.1 to No.94 cannot carry them. In
2446 particular a straight conversion to EUC-JP code set 1 (0xA1 to 0xFE,
2447 exactly 94 positions per byte) has no room for them.
2448  
2449 =back
2450  
2451 =head2 NEC extension
2452  
2453 The NEC extension has two parts.
2454  
2455 =over 2
2456  
2457 =item *
2458  
2459 B<NEC special characters> (NEC tokushu moji): 83 characters in row No.13,
2460 Shift_JIS 0x8740 to 0x879C. These are symbols: circled numbers (①), Roman
2461 numerals (Ⅰ), unit and abbreviation ligatures (㍉, ㈱), and the like.
2462  
2463 =item *
2464  
2465 B<NEC-selected IBM extended characters> (NEC sentei IBM kakucho moji): 374
2466 characters in rows No.89 to No.92, Shift_JIS 0xED40 to 0xEEFC. These are
2467 the IBM extended characters re-encoded INSIDE the JIS X 0208 grid (rows
2468 No.1 to No.94), leaving out the ones NEC had already covered in row No.13.
2469  
2470 =back
2471  
2472 =over 2
2473  
2474 =item *
2475  
2476 B<Merit:> every extended character stays inside JIS row No.1 to No.94, so
2477 it maps directly onto EUC-JP code set 1 (0xA1 to 0xFE). This is why
2478 'cp932nec' is convenient when you convert data to EUC-JP.
2479  
2480 =item *
2481  
2482 B<Demerit:> rows No.89 to No.92 occupy the free area of the JIS X 0208
2483 grid, so they collide with characters that later standards place there.
2484 JIS X 0213 assigns those rows to level-3 kanji, which is why Shift_JIS-2004
2485 and the NEC-selected IBM extended characters cannot coexist.
2486  
2487 =back
2488  
2489 =head2 Duplication of the two extensions
2490  
2491 The two extensions overlap almost completely:
2492  
2493 =over 2
2494  
2495 =item *
2496  
2497 The NEC-selected IBM extended characters (374) are a subset of the IBM
2498 extended characters (388).
2499  
2500 =item *
2501  
2502 The 14 IBM extended characters that NEC did not select are already in the
2503 NEC special characters (row No.13). Hence NEC special characters plus
2504 NEC-selected IBM extended characters fully contain the IBM extended
2505 characters; every duplicated kanji is registered exactly twice.
2506  
2507 =item *
2508  
2509 About ten of the symbols additionally duplicate JIS X 0208 itself, because
2510 they were added to row No.2 by JIS X 0208-1983 (for example ≒ U+2252 and
2511 ≡ U+2261).
2512  
2513 =back
2514  
2515 =head2 Microsoft's definition of CP932 (Windows-31J)
2516  
2517 In 1993, for the Japanese edition of Windows 3.1, Microsoft withdrew the
2518 earlier policy of letting each OEM extend CP932 freely. To stay compatible
2519 with both of the dominant machines of the day (NEC PC-9800 series and IBM
2520 PC), it built one set on a JIS X 0208-1990 base and included BOTH vendor
2521 regions even though they duplicate each other:
2522  
2523 --------------------------------------------------------------------
2524 Region Rows Shift_JIS Count
2525 --------------------------------------------------------------------
2526 JIS X 0208-1990 1 - 94 (standard)
2527 NEC special characters 13 8740 - 879C 83
2528 NEC-selected IBM ext. chars 89 - 92 ED40 - EEFC 374
2529 User-defined area (GAIJI) 95 - 114 F040 - F9FC 1880
2530 IBM extended characters 115 - 119 FA40 - FC4B 388
2531 --------------------------------------------------------------------
2532  
2533 Microsoft registered this set at IANA as "Windows-31J" (from "Windows 3.1
2534 Japanese"). In Java the same set is "MS932" / "Windows-31J", as opposed to
2535 IBM's own "Cp932"; IBM later defined "CP943" with identical code points.
2536 Jacode4e's 'cp932' is this Microsoft set.
2537  
2538 =head2 Microsoft's resolution of the duplicated characters
2539  
2540 Because a character can sit at two code points, a conversion tool must
2541 decide which one to use. Microsoft resolved this by making the CP932 and
2542 Unicode mapping asymmetric:
2543  
2544 =over 2
2545  
2546 =item *
2547  
2548 B<CP932 to Unicode (decode): many-to-one.> Both code points of a
2549 duplicated character decode to the same single Unicode code point, so no
2550 information is lost on decode. For example both 0xEEE0 (NEC-selected) and
2551 0xFBFC (IBM) decode to 髙 U+9AD9.
2552  
2553 =item *
2554  
2555 B<Unicode to CP932 (encode): one-to-one, by priority.> Each Unicode code
2556 point is encoded to exactly one CP932 code point, using the fixed priority
2557 JIS X 0208 -> NEC special characters (row No.13) -> IBM extended characters
2558 (rows No.115 to No.119). The NEC-selected IBM extended characters (rows
2559 No.89 to No.92) are therefore decode-only; they are never an encode target.
2560 So a duplicated kanji is always emitted at its IBM code point.
2561  
2562 =back
2563  
2564 A consequence is that a round trip is stable only for the IBM side:
2565  
2566 0xEEE0 (NEC-selected) -> U+9AD9 -> 0xFBFC (IBM) ... code point moves
2567 0xFBFC (IBM) -> U+9AD9 -> 0xFBFC (IBM) ... code point stable
2568  
2569 One caveat: the NEC special characters that were also added to row No.2 by
2570 JIS X 0208-1983, such as ≒ U+2252 and ≡ U+2261, encode to their JIS X 0208
2571 code point, because JIS X 0208 has the highest priority.
2572  
2573 This asymmetry is exactly what Jacode4e's three encodings expose: 'cp932'
2574 follows Microsoft's priority (the NEC code for the row-13 symbols, the IBM
2575 code for the duplicated kanji), 'cp932ibm' always uses the IBM code point,
2576 and 'cp932nec' always uses the in-grid NEC code point. The following
2577 'CP932 vs. CP932IBM' and 'CP932 vs. CP932NEC' tables show the resulting
2578 differences byte by byte.
2579  
2580 =head1 CP932 vs. CP932IBM
2581  
2582 B<A merit of CP932IBM is that all of extended characters are outside of JIS row No.1 to No.94.>
2583  
2584 CP932IBM is useful when you transfer data to enterprise system.
2585  
2586 The following is difference between CP932 and CP932IBM.
2587  
2588 #+++++++----------------------------------------------------------------------------------------------------------- CP932X, Extended CP932 to JIS X 0213 using 0x9C5A as single shift
2589 #||||||| ++++------------------------------------------------------------------------------------------------------ Microsoft CP932, IANA Windows-31J
2590 #||||||| |||| ++++------------------------------------------------------------------------------------------------- IBM CP932
2591 #||||||| |||| |||| ++++-------------------------------------------------------------------------------------------- NEC CP932
2592 #||||||| |||| |||| |||| ++++--------------------------------------------------------------------------------------- JISC Shift_JIS-2004
2593 #||||||| |||| |||| |||| |||| ++++---------------------------------------------------------------------------------- IBM CP00930(CP00290+CP00300), CCSID 5026 katakana
2594 #||||||| |||| |||| |||| |||| |||| ++++----------------------------------------------------------------------------- HITACHI KEIS78
2595 #||||||| |||| |||| |||| |||| |||| |||| ++++------------------------------------------------------------------------ HITACHI KEIS83
2596 #||||||| |||| |||| |||| |||| |||| |||| |||| ++++------------------------------------------------------------------- HITACHI KEIS90
2597 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| ++++-------------------------------------------------------------- FUJITSU JEF
2598 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ++++--------------------------------------------------------- NEC JIPS(J)
2599 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ++++---------------------------------------------------- NEC JIPS(E)
2600 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ++++----------------------------------------------- UNISYS LetsJ
2601 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| +++++++++------------------------------------- Unicode
2602 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ||||||||| ++++++++++++------------------------ UTF-8.0 (aka UTF-8)
2603 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ||||||||| |||||||||||| ++++++++++++----------- UTF-8.1
2604 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ||||||||| |||||||||||| |||||||||||| ++++++++-- UTF-8-SPUA-JP, JIS X 0213 on SPUA ordered by JIS level, plane, row, cell
2605 #2345678 1234 1234 1234 1234 1234 1234 1234 1234 1234 1234 1234 1234 123456789 123456789012 123456789012 12345678
2606 #VVVVVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVVVVVVV VVVVVVVVVVVV VVVVVVVVVVVV VVVVVVVV
2607 8754 8754 FA4A 8754 8754 41F1 74B1 74B1 74B1 77DE 2D35 60F5 -- 2160 E285A0 E285A0 F3B095BC
2608 8755 8755 FA4B 8755 8755 41F2 74B2 74B2 74B2 77DF 2D36 60F6 -- 2161 E285A1 E285A1 F3B095BD
2609 8756 8756 FA4C 8756 8756 41F3 74B3 74B3 74B3 77E0 2D37 60F7 -- 2162 E285A2 E285A2 F3B095BE
2610 8757 8757 FA4D 8757 8757 41F4 74B4 74B4 74B4 77E1 2D38 60F8 -- 2163 E285A3 E285A3 F3B095BF
2611 8758 8758 FA4E 8758 8758 41F5 74B5 74B5 74B5 77E2 2D39 60F9 -- 2164 E285A4 E285A4 F3B09680
2612 8759 8759 FA4F 8759 8759 41F6 74B6 74B6 74B6 77E3 2D3A 607A -- 2165 E285A5 E285A5 F3B09681
2613 875A 875A FA50 875A 875A 41F7 74B7 74B7 74B7 77E4 2D3B 605E -- 2166 E285A6 E285A6 F3B09682
2614 875B 875B FA51 875B 875B 41F8 74B8 74B8 74B8 77E5 2D3C 604C -- 2167 E285A7 E285A7 F3B09683
2615 875C 875C FA52 875C 875C 41F9 74B9 74B9 74B9 77E6 2D3D 607E -- 2168 E285A8 E285A8 F3B09684
2616 875D 875D FA53 875D 875D 41FA 74BA 74BA 74BA 77E7 2D3E 606E -- 2169 E285A9 E285A9 F3B09685
2617 8782 8782 FA59 8782 8782 446E 72BE 72BE 72BE 76FA 2D62 6059 A271 2116 E28496 E28496 F3B096A9
2618 8784 8784 FA5A 8784 8784 446F 72B8 72B8 72B8 76F6 2D64 6063 -- 2121 E284A1 E284A1 F3B096AB
2619 878A 878A FA58 878A 878A 446D 73D0 73D0 73D0 78D5 2D6A 6069 -- 3231 E388B1 E388B1 F3B096B1
2620  
2621 =head1 CP932 vs. CP932NEC
2622  
2623 B<A merit of CP932NEC is that all of extended characters are inside JIS row No.1 to No.94.>
2624  
2625 CP932NEC is useful when you convert data to EUC-JP encoding.
2626  
2627 The following is difference between CP932 and CP932NEC.
2628  
2629 #+++++++----------------------------------------------------------------------------------------------------------- CP932X, Extended CP932 to JIS X 0213 using 0x9C5A as single shift
2630 #||||||| ++++------------------------------------------------------------------------------------------------------ Microsoft CP932, IANA Windows-31J
2631 #||||||| |||| ++++------------------------------------------------------------------------------------------------- IBM CP932
2632 #||||||| |||| |||| ++++-------------------------------------------------------------------------------------------- NEC CP932
2633 #||||||| |||| |||| |||| ++++--------------------------------------------------------------------------------------- JISC Shift_JIS-2004
2634 #||||||| |||| |||| |||| |||| ++++---------------------------------------------------------------------------------- IBM CP00930(CP00290+CP00300), CCSID 5026 katakana
2635 #||||||| |||| |||| |||| |||| |||| ++++----------------------------------------------------------------------------- HITACHI KEIS78
2636 #||||||| |||| |||| |||| |||| |||| |||| ++++------------------------------------------------------------------------ HITACHI KEIS83
2637 #||||||| |||| |||| |||| |||| |||| |||| |||| ++++------------------------------------------------------------------- HITACHI KEIS90
2638 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| ++++-------------------------------------------------------------- FUJITSU JEF
2639 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ++++--------------------------------------------------------- NEC JIPS(J)
2640 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ++++---------------------------------------------------- NEC JIPS(E)
2641 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ++++----------------------------------------------- UNISYS LetsJ
2642 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| +++++++++------------------------------------- Unicode
2643 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ||||||||| ++++++++++++------------------------ UTF-8.0 (aka UTF-8)
2644 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ||||||||| |||||||||||| ++++++++++++----------- UTF-8.1
2645 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ||||||||| |||||||||||| |||||||||||| ++++++++-- UTF-8-SPUA-JP, JIS X 0213 on SPUA ordered by JIS level, plane, row, cell
2646 #2345678 1234 1234 1234 1234 1234 1234 1234 1234 1234 1234 1234 1234 123456789 123456789012 123456789012 12345678
2647 #VVVVVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVVVVVVV VVVVVVVVVVVV VVVVVVVVVVVV VVVVVVVV
2648 FA40 FA40 FA40 EEEF 86B3 41B1 74C1 74C1 74C1 77EB A2BD 428E -- 2170 E285B0 E285B0 F3B2AB9C
2649 FA41 FA41 FA41 EEF0 86B4 41B2 74C2 74C2 74C2 77EC A2BE 428F -- 2171 E285B1 E285B1 F3B2AB9D
2650 FA42 FA42 FA42 EEF1 86B5 41B3 74C3 74C3 74C3 77ED A2BF 4290 -- 2172 E285B2 E285B2 F3B2AB9E
2651 FA43 FA43 FA43 EEF2 86B6 41B4 74C4 74C4 74C4 77EE A2C0 4291 -- 2173 E285B3 E285B3 F3B2AB9F
2652 FA44 FA44 FA44 EEF3 86B7 41B5 74C5 74C5 74C5 77EF A2C1 4292 -- 2174 E285B4 E285B4 F3B2ABA0
2653 FA45 FA45 FA45 EEF4 86B8 41B6 74C6 74C6 74C6 77F0 A2C2 4293 -- 2175 E285B5 E285B5 F3B2ABA1
2654 FA46 FA46 FA46 EEF5 86B9 41B7 74C7 74C7 74C7 77F1 A2C3 4294 -- 2176 E285B6 E285B6 F3B2ABA2
2655 FA47 FA47 FA47 EEF6 86BA 41B8 74C8 74C8 74C8 77F2 A2C4 4295 -- 2177 E285B7 E285B7 F3B2ABA3
2656 FA48 FA48 FA48 EEF7 86BB 41B9 74C9 74C9 74C9 77F3 A2C5 4296 -- 2178 E285B8 E285B8 F3B2ABA4
2657 FA49 FA49 FA49 EEF8 86BC 41BA 74CA 74CA 74CA 77F4 A2C6 4297 -- 2179 E285B9 E285B9 F3B2ABA5
2658 FA55 FA55 FA55 EEFA -- E9F5 -- -- -- 76A1 A5FB 45FB -- FFE4 EFBFA4 EFBFA4 F3B2ABB1
2659 FA56 FA56 FA56 EEFB 81AD 427D -- -- -- 76A2 A3F9 43EF -- FF07 EFBC87 EFBC87 F3B2ABB2
2660 FA57 FA57 FA57 EEFC 81AE 427F -- -- -- 76A3 A3FA 43FA -- FF02 EFBC82 EFBC82 F3B2ABB3
2661 FA5C FA5C FA5C ED40 EDB5 51BF 67FE 67FE 67FE 5FDC C9D8 9AAE D463 7E8A E7BA8A E7BA8A F3B2ABB8
2662 FA5D FA5D FA5D ED41 EE8E 51DA 69E8 69E8 69E8 64B5 CEA9 A349 DC5F 891C E8A49C E8A49C F3B2ABB9
2663 FA5E FA5E FA5E ED42 EF58 51F7 6CC7 6CC7 6CC7 6AD9 D2B9 A789 E469 9348 E98D88 E98D88 F3B2ABBA
2664 FA5F FA5F FA5F ED43 EF4D 524B 6CA3 6CA3 6CA3 69FE D1ED A6CF E378 9288 E98A88 E98A88 F3B2ABBB
2665 FA60 FA60 FA60 ED44 F8D3 527B 69AE 69AE 69AE 62C4 CCCA 9F9D D921 84DC E8939C E8939C F3B2ABBC
2666 FA61 FA61 FA61 ED45 87B7 5294 59E4 59E4 59E4 42C7 B2F6 82EC B13B 4FC9 E4BF89 E4BF89 F3B2ABBD
2667 FA62 FA62 FA62 ED46 F580 529E 63FE 63FE 63FE 70E1 C2FE 93FE -- 70BB E782BB E782BB F3B2ABBE
2668 FA63 FA63 FA63 ED47 EB54 52EB 60F8 60F8 60F8 51A3 BDBF 8E90 C22D 6631 E698B1 E698B1 F3B2ABBF
2669 FA64 FA64 FA64 ED48 EB89 5386 61DC 61DC 61DC 70CD BFB7 9087 C37C 68C8 E6A388 E6A388 F3B2AC80
2670 FA65 FA65 FA65 ED49 FB42 5394 6CBB 6CBB 6CBB 6AC9 D2B6 A786 E450 92F9 E98BB9 E98BB9 F3B2AC81
2671 FA66 FA66 FA66 ED4A EB56 5397 60D3 60D3 60D3 51FC BDD0 8EA5 C23F 66FB E69BBB E69BBB F3B2AC82
2672 FA67 FA67 FA67 ED4B EAB8 53C7 5ED8 5ED8 5ED8 4CF6 BAC7 8A98 BC74 5F45 E5BD85 E5BD85 F3B2AC83
2673 FA68 FA68 FA68 ED4C 87A2 5644 59AC 59AC 59AC 41AC B2AB 8252 B029 4E28 E4B8A8 E4B8A8 F3B2AC84
2674 FA69 FA69 FA69 ED4D 87A6 565D 59C1 59C1 59C1 41E8 B2C2 8293 B048 4EE1 E4BBA1 E4BBA1 F3B2AC85
2675 FA6A FA6A FA6A ED4E -- 5662 59C8 59C8 59C8 43CF B2D3 82A8 -- 4EFC E4BBBC E4BBBC F3B2AC86
2676 FA6B FA6B FA6B ED4F F05E 5665 59C7 59C7 59C7 41EF B2CD 82A2 B052 4F00 E4BC80 E4BC80 F3B2AC87
2677 FA6C FA6C FA6C ED50 87A9 5666 9FA1 9FA1 9FA1 41F0 B2CE 82A3 B054 4F03 E4BC83 E4BC83 F3B2AC88
2678 FA6D FA6D FA6D ED51 -- 566A 59CE 59CE 59CE 41FB B2DB 82BB B063 4F39 E4BCB9 E4BCB9 F3B2AC89
2679 FA6E FA6E FA6E ED52 87AE 566E 59CB 59CB 59CB 42A8 B2D6 82AC B06E 4F56 E4BD96 E4BD96 F3B2AC8A
2680 FA6F FA6F FA6F ED53 F06C 5670 59DB 59DB 59DB 42B5 B2EA 82CC B127 4F92 E4BE92 E4BE92 F3B2AC8B
2681 FA70 FA70 FA70 ED54 87B3 5671 59E0 59E0 59E0 42B3 B2E7 82B9 B123 4F8A E4BE8A E4BE8A F3B2AC8C
2682 FA71 FA71 FA71 ED55 F06D 5674 59DA 59DA 59DA 42B9 BADA 8ABA B12C 4F9A E4BE9A E4BE9A F3B2AC8D
2683 FA72 FA72 FA72 ED56 87B4 567B 59D9 59D9 59D9 42B7 B2E1 82B3 B129 4F94 E4BE94 E4BE94 F3B2AC8E
2684 FA73 FA73 FA73 ED57 -- 5686 59E6 59E6 59E6 42CA B2F5 82EB B13E 4FCD E4BF8D E4BF8D F3B2AC8F
2685 FA74 FA74 FA74 ED58 87BF 568A 5AA1 5AA1 5AA1 42E7 B3B2 8382 B15F 5040 E58180 E58180 F3B2AC90
2686 FA75 FA75 FA75 ED59 F07C 5691 59F1 59F1 59F1 42DF B3A1 8341 B158 5022 E580A2 E580A2 F3B2AC91
2687 FA76 FA76 FA76 ED5A -- 5694 59FA 59FA 59FA 43D0 B3B3 8383 B148 4FFF E4BFBF E4BFBF F3B2AC92
2688 FA77 FA77 FA77 ED5B F07B 5698 59F3 59F3 59F3 42DE B3A6 8346 B157 501E E5809E E5809E F3B2AC93
2689 FA78 FA78 FA78 ED5C F080 56A2 5AA7 5AA7 5AA7 42E9 B3C0 8391 B163 5046 E58186 E58186 F3B2AC94
2690 FA79 FA79 FA79 ED5D F087 56A3 5AAC 5AAC 5AAC 42F5 B3C3 8394 B174 5070 E581B0 E581B0 F3B2AC95
2691 FA7A FA7A FA7A ED5E F07E 56A4 5AA6 5AA6 5AA6 42E8 B3C4 8395 B161 5042 E58182 E58182 F3B2AC96
2692 FA7B FA7B FA7B ED5F 87C2 56A8 5AB0 5AB0 5AB0 42FC B3C6 8397 B223 5094 E58294 E58294 F3B2AC97
2693 FA7C FA7C FA7C ED60 -- 56B2 5ABE 5ABE 5ABE 43B9 B3D2 83A7 -- 50F4 E583B4 E583B4 F3B2AC98
2694 FA7D FA7D FA7D ED61 -- 56B5 5AC1 5AC1 5AC1 43B2 B3D5 83AA B23B 50D8 E58398 E58398 F3B2AC99
2695 FA7E FA7E FA7E ED62 87CD 56C9 5ACB 5ACB 5ACB 43D3 B3E8 83CA B266 514A E5858A E5858A F3B2AC9A
2696 FA80 FA80 FA80 ED63 -- 56CE 5AD3 5AD3 5AD3 43D9 B3F0 83DC B26D 5164 E585A4 E585A4 F3B2AC9B
2697 FA81 FA81 FA81 ED64 87D2 56DC 5AE1 5AE1 5AE1 43F2 B3F7 83ED B275 519D E5869D E5869D F3B2AC9C
2698 FA82 FA82 FA82 ED65 -- 56E8 5AE4 5AE4 5AE4 43F7 B4A2 8442 B27C 51BE E586BE E586BE F3B2AC9D
2699 FA83 FA83 FA83 ED66 -- 56EF 6DC3 6DC3 6DC3 44AC D4A8 A948 -- 51EC E587AC E587AC F3B2AC9E
2700 FA84 FA84 FA84 ED67 87DB 56F7 9FA3 9FA3 9FA3 44B4 B4B4 8484 B335 5215 E58895 E58895 F3B2AC9F
2701 FA85 FA85 FA85 ED68 -- 574F 5AF0 5AF0 5AF0 44F7 B4C1 8492 B358 529C E58A9C E58A9C F3B2ACA0
2702 FA86 FA86 FA86 ED69 F162 5750 5AF1 5AF1 5AF1 44D2 B4C3 8494 B35B 52A6 E58AA6 E58AA6 F3B2ACA1
2703 FA87 FA87 FA87 ED6A -- 5756 5AF7 5AF7 5AF7 44FA B4D0 84A5 B365 52C0 E58B80 E58B80 F3B2ACA2
2704 FA88 FA88 FA88 ED6B 87E5 5758 5BA1 5BA1 5BA1 44ED B4D8 84AE B36E 52DB E58B9B E58B9B F3B2ACA3
2705 FA89 FA89 FA89 ED6C 87E9 5761 5BA9 5BA9 5BA9 45A3 B4E8 84CA B37B 5300 E58C80 E58C80 F3B2ACA4
2706 FA8A FA8A FA8A ED6D 87EA 5763 5BAB 5BAB 5BAB 45A8 B4EC 84CE -- 5307 E58C87 E58C87 F3B2ACA5
2707 FA8B FA8B FA8B ED6E F16D 576B 5BAF 5BAF 5BAF 45B3 B4EF 84DB -- 5324 E58CA4 E58CA4 F3B2ACA6
2708 FA8C FA8C FA8C ED6F -- 577C 5BBC 5BBC 5BBC 45D2 B5A7 8547 B440 5372 E58DB2 E58DB2 F3B2ACA7
2709 FA8D FA8D FA8D ED70 87F0 5780 5BC4 5BC4 5BC4 45DB B5AD 8554 B447 5393 E58E93 E58E93 F3B2ACA8
2710 FA8E FA8E FA8E ED71 87F2 5787 5BC9 5BC9 5BC9 45E2 B5B1 8581 B450 53B2 E58EB2 E58EB2 F3B2ACA9
2711 FA8F FA8F FA8F ED72 -- 578B 5BCE 5BCE 5BCE 45F3 B5BC 858D B45E 53DD E58F9D E58F9D F3B2ACAA
2712 FA90 FA90 FA90 ED73 -- 578E 5BD3 5BD3 5BD3 45F2 B5BE 858F -- FA0E EFA88E EFA88E F3B2ACAB
2713 FA91 FA91 FA91 ED74 87F6 57A9 5BDB 5BDB 5BDB 46C4 B5D3 85A8 B52A 549C E5929C E5929C F3B2ACAC
2714 FA92 FA92 FA92 ED75 F18C 57AE 5BDA 5BDA 5BDA 46C1 B5CF 85A4 -- 548A E5928A E5928A F3B2ACAD
2715 FA93 FA93 FA93 ED76 8840 57BD 5BE1 5BE1 5BE1 46C9 B5DC 85BC B52F 54A9 E592A9 E592A9 F3B2ACAE
2716 FA94 FA94 FA94 ED77 8842 57C0 5BE3 5BE3 5BE3 45FA B5E0 85B2 B544 54FF E593BF E593BF F3B2ACAF
2717 FA95 FA95 FA95 ED78 8849 57DE 5BED 5BED 5BED 45F6 B5EE 85DA B568 5586 E59686 E59686 F3B2ACB0
2718 FA96 FA96 FA96 ED79 -- 5860 5CB2 5CB2 5CB2 48C9 B6D6 86AC -- 5759 E59D99 E59D99 F3B2ACB1
2719 FA97 FA97 FA97 ED7A -- 5863 5CB6 5CB6 5CB6 48CA B6DE 86BE B742 5765 E59DA5 E59DA5 F3B2ACB2
2720 FA98 FA98 FA98 ED7B F1EA 586C 5CB9 5CB9 5CB9 48CB B6E3 86B5 B764 57AC E59EAC E59EAC F3B2ACB3
2721 FA99 FA99 FA99 ED7C 886E 5870 5CBD 5CBD 5CBD 47F7 B6E5 86B7 B768 57C8 E59F88 E59F88 F3B2ACB4
2722 FA9A FA9A FA9A ED7D 886D 5873 9FA6 9FA6 9FA6 47F6 B6E6 86B8 B767 57C7 E59F87 E59F87 F3B2ACB5
2723 FA9B FA9B FA9B ED7E 886A 5877 5CBB 5CBB 5CBB 48CC B6E7 86B9 -- FA0F EFA88F EFA88F F3B2ACB6
2724 FA9C FA9C FA9C ED80 8876 5882 C4CD 5CC7 5CC7 C4CD 444D C4D4 -- FA10 EFA890 EFA890 F3B2ACB7
2725 FA9D FA9D FA9D ED81 887C 588A 5CD1 5CD1 5CD1 48BB B7A8 8748 -- 589E E5A29E E5A29E F3B2ACB8
2726 FA9E FA9E FA9E ED82 -- 588C 5CD3 5CD3 5CD3 48CD B7AE 8755 B84E 58B2 E5A2B2 E5A2B2 F3B2ACB9
2727 FA9F FA9F FA9F ED83 F259 58A1 5BCD 5BCD 5BCD 48D0 B7B8 8788 B861 590B E5A48B E5A48B F3B2ACBA
2728 FAA0 FAA0 FAA0 ED84 -- 58AD 5CE4 5CE4 5CE4 48E3 B7CB 879E B875 5953 E5A593 E5A593 F3B2ACBB
2729 FAA1 FAA1 FAA1 ED85 F264 58B0 5CE6 5CE6 5CE6 48E4 B7CF 87A4 B877 595B E5A59B E5A59B F3B2ACBC
2730 FAA2 FAA2 FAA2 ED86 8889 58B1 5CE8 5CE8 5CE8 48E5 B7CE 87A3 B878 595D E5A59D E5A59D F3B2ACBD
2731 FAA3 FAA3 FAA3 ED87 -- 58B2 5CE9 5CE9 5CE9 48EB B7D3 87A8 B87C 5963 E5A5A3 E5A5A3 F3B2ACBE
2732 FAA4 FAA4 FAA4 ED88 888D 58BE 5CF4 5CF4 5CF4 49A3 B7DB 87BB B92F 59A4 E5A6A4 E5A6A4 F3B2ACBF
2733 FAA5 FAA5 FAA5 ED89 -- 58C0 5CF7 5CF7 5CF7 49F0 B7E4 87B6 B937 59BA E5A6BA E5A6BA F3B2AD80
2734 FAA6 FAA6 FAA6 ED8A 9875 58EC 5DB3 5DB3 5DB3 49F2 B8B4 8884 BA3E 5B56 E5AD96 E5AD96 F3B2AD81
2735 FAA7 FAA7 FAA7 ED8B F0A2 58FC 5DC2 5DC2 5DC2 4AC9 B8CA 889D BA5B 5BC0 E5AF80 E5AF80 F3B2AD82
2736 FAA8 FAA8 FAA8 ED8C ECC7 58FE 5DC5 5DC5 5DC5 4ABD B8CC 889F CD2A 752F E794AF E794AF F3B2AD83
2737 FAA9 FAA9 FAA9 ED8D 9878 5942 5DC6 5DC6 5DC6 4AC0 B8CD 88A2 BA61 5BD8 E5AF98 E5AF98 F3B2AD84
2738 FAAA FAAA FAAA ED8E 9879 5944 5DC7 5DC7 5DC7 4AC6 B8D4 88A9 -- 5BEC E5AFAC E5AFAC F3B2AD85
2739 FAAB FAAB FAAB ED8F 987B 5951 5DD2 5DD2 5DD2 4AD4 B8E3 88B5 BA6B 5C1E E5B09E E5B09E F3B2AD86
2740 FAAC FAAC FAAC ED90 F0C1 5967 5DDE 5DDE 5DDE 4AF1 B8FB 88FB BB33 5CA6 E5B2A6 E5B2A6 F3B2AD87
2741 FAAD FAAD FAAD ED91 9889 5968 5DDD 5DDD 5DDD 4AF3 B8F9 88EF BB38 5CBA E5B2BA E5B2BA F3B2AD88
2742 FAAE FAAE FAAE ED92 -- 5970 5DE6 5DE6 5DE6 4BE4 B9A9 8949 -- 5CF5 E5B3B5 E5B3B5 F3B2AD89
2743 FAAF FAAF FAAF ED93 9891 5978 5DE8 5DE8 5DE8 4AFB B9B1 8981 BB4A 5D27 E5B4A7 E5B4A7 F3B2AD8A
2744 FAB0 FAB0 FAB0 ED94 9895 597F 5DF0 5DF0 5DF0 4BA3 C6B7 9787 -- 5D53 E5B593 E5B593 F3B2AD8B
2745 FAB1 FAB1 FAB1 ED95 9892 5980 5DEC 5DEC 5DEC 4BD0 B9BA 898A -- FA11 EFA891 EFA891 F3B2AD8C
2746 FAB2 FAB2 FAB2 ED96 F0D3 5984 5DEF 5DEF 5DEF 4BA2 B9BD 898E BB50 5D42 E5B582 E5B582 F3B2AD8D
2747 FAB3 FAB3 FAB3 ED97 9897 5987 9FA9 9FA9 9FA9 4BD3 B9C0 8991 BB5E 5D6D E5B5AD E5B5AD F3B2AD8E
2748 FAB4 FAB4 FAB4 ED98 989C 5993 5EA3 5EA3 5EA3 4BDF B9D3 89A8 BB74 5DB8 E5B6B8 E5B6B8 F3B2AD8F
2749 FAB5 FAB5 FAB5 ED99 F0E5 5995 5EA5 5EA5 5EA5 4BE0 B9D5 89AA BB75 5DB9 E5B6B9 E5B6B9 F3B2AD90
2750 FAB6 FAB6 FAB6 ED9A -- 5997 5EA7 5EA7 5EA7 4BE5 B9DA 89BA BB79 5DD0 E5B790 E5B790 F3B2AD91
2751 FAB7 FAB7 FAB7 ED9B -- 59C7 5ED2 5ED2 5ED2 4CEB BABF 8A90 BC64 5F21 E5BCA1 E5BCA1 F3B2AD92
2752 FAB8 FAB8 FAB8 ED9C EAB4 59CB 5ED3 5ED3 5ED3 4CEE BAC1 8A92 BC6D 5F34 E5BCB4 E5BCB4 F3B2AD93
2753 FAB9 FAB9 FAB9 ED9D EABC 59D8 5FCA 5FCA 5FCA 4DA2 BAD1 8AA6 BC7E 5F67 E5BDA7 E5BDA7 F3B2AD94
2754 FABA FABA FABA ED9E EAC3 59E8 5EE6 5EE6 5EE6 4DC0 BAEC 8ACE -- 5FB7 E5BEB7 E5BEB7 F3B2AD95
2755 FABB FABB FABB ED9F EAC5 59F1 5EEE 5EEE 5EEE 4DC7 BAFE 8AFE BD42 5FDE E5BF9E E5BF9E F3B2AD96
2756 FABC FABC FABC EDA0 -- 5A44 5EF8 5EF8 5EF8 4DCC BBA9 8C49 BD67 605D E6819D E6819D F3B2AD97
2757 FABD FABD FABD EDA1 -- 5A51 5EF9 5EF9 5EF9 4EA8 BBB1 8C81 -- 6085 E68285 E68285 F3B2AD98
2758 FABE FABE FABE EDA2 F2CB 5A57 5EF6 5EF6 5EF6 4DD0 B5E5 85B7 BD70 608A E6828A E6828A F3B2AD99
2759 FABF FABF FABF EDA3 -- 5A5F 5FA5 5FA5 5FA5 4EC1 BBC4 8C95 BE30 60DE E6839E E6839E F3B2AD9A
2760 FAC0 FAC0 FAC0 EDA4 EAD3 5A65 5FA3 5FA3 5FA3 4EBD BBBD 8C8E BE2C 60D5 E68395 E68395 F3B2AD9B
2761 FAC1 FAC1 FAC1 EDA5 -- 5A67 5FAA 5FAA 5FAA 4EED BBC9 8C9A -- 6120 E684A0 E684A0 F3B2AD9C
2762 FAC2 FAC2 FAC2 EDA6 F2D6 5A68 5FAD 5FAD 5FAD 4EC2 BBCE 8CA3 BE33 60F2 E683B2 E683B2 F3B2AD9D
2763 FAC3 FAC3 FAC3 EDA7 -- 5A76 5FAF 5FAF 5FAF 4EEE BBD4 8CA9 BE3D 6111 E68491 E68491 F3B2AD9E
2764 FAC4 FAC4 FAC4 EDA8 EAD9 5A79 5FB1 5FB1 5FB1 4ED0 BBD6 8CAC BE4D 6137 E684B7 E684B7 F3B2AD9F
2765 FAC5 FAC5 FAC5 EDA9 EAD8 5A7E 5FB3 5FB3 5FB3 4ECE BBD8 8CAE BE49 6130 E684B0 E684B0 F3B2ADA0
2766 FAC6 FAC6 FAC6 EDAA F2E7 5A94 5FBE 5FBE 5FBE 4EDB B6A8 8648 BE64 6198 E68698 E68698 F3B2ADA1
2767 FAC7 FAC7 FAC7 EDAB -- 5AB5 5BD7 5BD7 5BD7 4EF7 BBF9 8CEF BF28 6213 E68893 E68893 F3B2ADA2
2768 FAC8 FAC8 FAC8 EDAC F341 5ADA 5FD6 5FD6 5FD6 4FB5 BCB1 8D81 BF49 62A6 E68AA6 E68AA6 F3B2ADA3
2769 FAC9 FAC9 FAC9 EDAD EAF2 5AFB 5FE2 5FE2 5FE2 4FED BCCC 8D9F C044 63F5 E68FB5 E68FB5 F3B2ADA4
2770 FACA FACA FACA EDAE EAF8 5B50 5FEB 5FEB 5FEB 4FFA BCD9 8DAF C064 6460 E691A0 E691A0 F3B2ADA5
2771 FACB FACB FACB EDAF F36F 5B53 5FEE 5FEE 5FEE 50A2 BCDB 8DBB C074 649D E6929D E6929D F3B2ADA6
2772 FACC FACC FACC EDB0 EAFA 5B54 5FF2 5FF2 5FF2 4FA7 BCDC 8DBC C126 64CE E6938E E6938E F3B2ADA7
2773 FACD FACD FACD EDB1 -- 5B7E 5FF8 5FF8 5FF8 50C9 BCF0 8DDC -- 654E E6958E E6958E F3B2ADA8
2774 FACE FACE FACE EDB2 EB4B 5B97 60B3 60B3 60B3 51BD BDBD 8E8E C175 6600 E69880 E69880 F3B2ADA9
2775 FACF FACF FACF EDB3 EB4D 5B98 60B1 60B1 60B1 51C4 BDB5 8E85 C17C 6615 E69895 E69895 F3B2ADAA
2776 FAD0 FAD0 FAD0 EDB4 -- 4F9F B9B7 60B6 60B6 B9B7 3937 F9F7 -- 663B E698BB E698BB F3B2ADAB
2777 FAD1 FAD1 FAD1 EDB5 EB4C 5B9D 60AF 60AF 60AF 51C0 BDB7 8E87 C178 6609 E69889 E69889 F3B2ADAC
2778 FAD2 FAD2 FAD2 EDB6 -- 5BA0 60BE 60BE 60BE 51A1 BDC2 8E93 C22B 662E E698AE E698AE F3B2ADAD
2779 FAD3 FAD3 FAD3 EDB7 EB4E 5BA1 60C4 60C4 60C4 51C7 BDC4 8E95 C221 661E E6989E E6989E F3B2ADAE
2780 FAD4 FAD4 FAD4 EDB8 EB51 5BA4 60B9 60B9 60B9 51CA BDC7 8E98 C225 6624 E698A4 E698A4 F3B2ADAF
2781 FAD5 FAD5 FAD5 EDB9 EB5D 5BA7 60D1 60D1 60D1 51D9 BDD6 8EAC -- 6665 E699A5 E699A5 F3B2ADB0
2782 FAD6 FAD6 FAD6 EDBA F39E 5BA8 60D6 60D6 60D6 52A1 BDE0 8EB2 C238 6657 E69997 E69997 F3B2ADB1
2783 FAD7 FAD7 FAD7 EDBB EB5A 5BAB 60D7 60D7 60D7 51D4 BDDE 8EBE C23A 6659 E69999 E69999 F3B2ADB2
2784 FAD8 FAD8 FAD8 EDBC -- 5BAE 60DD 60DD 60DD 51DE BDE4 8EB6 -- FA12 EFA892 EFA892 F3B2ADB3
2785 FAD9 FAD9 FAD9 EDBD EB5E 5BAF 60E1 60E1 60E1 51B3 BDE6 8EB8 C244 6673 E699B3 E699B3 F3B2ADB4
2786 FADA FADA FADA EDBE F3AB 5BB4 60E6 60E6 60E6 51E5 BDF7 8EED C252 6699 E69A99 E69A99 F3B2ADB5
2787 FADB FADB FADB EDBF EB63 5BB6 60EA 60EA 60EA 51AB C5D8 96AE C257 66A0 E69AA0 E69AA0 F3B2ADB6
2788 FADC FADC FADC EDC0 EB64 5BB8 60EE 60EE 60EE 51EB BEA5 8F45 C25B 66B2 E69AB2 E69AB2 F3B2ADB7
2789 FADD FADD FADD EDC1 F3B1 5BBB 60EF 60EF 60EF 51F1 BEAC 8F53 C25E 66BF E69ABF E69ABF F3B2ADB8
2790 FADE FADE FADE EDC2 EB6B 5BC7 60C7 60C7 60C7 52A2 BDD1 8EA6 C26D 66FA E69BBA E69BBA F3B2ADB9
2791 FADF FADF FADF EDC3 -- 5BC8 60FC 60FC 60FC 52BC BEBC 8F8D C270 670E E69C8E E69C8E F3B2ADBA
2792 FAE0 FAE0 FAE0 EDC4 EB6D 5BC9 61A7 61A7 61A7 52AD BEBE 8F8F -- F929 EFA4A9 EFA4A9 F3B2ADBB
2793 FAE1 FAE1 FAE1 EDC5 EB6F 5BD8 61B2 61B2 61B2 70CE BEC8 8F99 C321 6766 E69DA6 E69DA6 F3B2ADBC
2794 FAE2 FAE2 FAE2 EDC6 EB77 5BE3 61BB 61BB 61BB 53B2 BED9 8FAF C335 67BB E69EBB E69EBB F3B2ADBD
2795 FAE3 FAE3 FAE3 EDC7 EB7D 5BEC 61BE 61BE 61BE 52EE BEE5 8FB7 C349 6852 E6A192 E6A192 F3B2ADBE
2796 FAE4 FAE4 FAE4 EDC8 EB79 5BF0 9FAC 9FAC 9FAC 53B4 BEE8 8FCA C339 67C0 E69F80 E69F80 F3B2ADBF
2797 FAE5 FAE5 FAE5 EDC9 EB7C 5BF3 61CC 61CC 61CC 53C0 BEE2 8FB4 -- 6801 E6A081 E6A081 F3B2AE80
2798 FAE6 FAE6 FAE6 EDCA F3DD 5BF9 61C6 61C6 61C6 53C7 BEF0 8FDC C358 6844 E6A184 E6A184 F3B2AE81
2799 FAE7 FAE7 FAE7 EDCB F3FB 5C5F 61DF 61DF 61DF 70CF BFBA 908A C37E 68CF E6A38F E6A38F F3B2AE82
2800 FAE8 FAE8 FAE8 EDCC F3F7 5C66 61E0 61E0 61E0 70D0 BFBC 908D -- FA13 EFA893 EFA893 F3B2AE83
2801 FAE9 FAE9 FAE9 EDCD EB98 5C6E 61E9 61E9 61E9 53ED BFC0 9091 C44C 6968 E6A5A8 E6A5A8 F3B2AE84
2802 FAEA FAEA FAEA EDCE EB9A 5C78 61F8 61F8 61F8 70D1 BFD7 90AD -- FA14 EFA894 EFA894 F3B2AE85
2803 FAEB FAEB FAEB EDCF F455 5C79 65F4 65F4 65F4 52F4 C6AA 9751 C459 6998 E6A698 E6A698 F3B2AE86
2804 FAEC FAEC FAEC EDD0 EBA0 5C90 61EF 61EF 61EF 70D2 BFE4 90B6 C46A 69E2 E6A7A2 E6A7A2 F3B2AE87
2805 FAED FAED FAED EDD1 F460 5C9A 62A3 62A3 62A3 70D3 BFE5 90B7 C47D 6A30 E6A8B0 E6A8B0 F3B2AE88
2806 FAEE FAEE FAEE EDD2 EBAE 5C9B 62A9 62A9 62A9 54AD BFE6 90B8 -- 6A6B E6A9AB E6A9AB F3B2AE89
2807 FAEF FAEF FAEF EDD3 F472 5CA6 62AE 62AE 62AE 52E8 BFEC 90CE C527 6A46 E6A986 E6A986 F3B2AE8A
2808 FAF0 FAF0 FAF0 EDD4 EBAF 5CA9 62B2 62B2 62B2 54AF BFF0 90DC C535 6A73 E6A9B3 E6A9B3 F3B2AE8B
2809 FAF1 FAF1 FAF1 EDD5 F479 5CAF 62B3 62B3 62B3 54B0 BFF8 90EE C536 6A7E E6A9BE E6A9BE F3B2AE8C
2810 FAF2 FAF2 FAF2 EDD6 -- 5CB9 62B9 62B9 62B9 54BC C0A8 9148 -- 6AE2 E6ABA2 E6ABA2 F3B2AE8D
2811 FAF3 FAF3 FAF3 EDD7 EBB6 5CBC 62B8 62B8 62B8 54BD C0A5 9145 C555 6AE4 E6ABA4 E6ABA4 F3B2AE8E
2812 FAF4 FAF4 FAF4 EDD8 EBC9 5CEA 62D0 62D0 62D0 54F8 C0CF 91A4 C638 6BD6 E6AF96 E6AF96 F3B2AE8F
2813 FAF5 FAF5 FAF5 EDD9 F4B3 5CF6 62D5 62D5 62D5 55B5 C0D9 91AF C657 6C3F E6B0BF E6B0BF F3B2AE90
2814 FAF6 FAF6 FAF6 EDDA EBD0 5CF9 62D6 62D6 62D6 55BD C0DE 91BE C660 6C5C E6B19C E6B19C F3B2AE91
2815 FAF7 FAF7 FAF7 EDDB EBD5 5CFD 62D8 62D8 62D8 55C3 C0E5 91B7 C66A 6C86 E6B286 E6B286 F3B2AE92
2816 FAF8 FAF8 FAF8 EDDC -- 5CFE 62D9 62D9 62D9 55BF C0EB 91CD C663 6C6F E6B1AF E6B1AF F3B2AE93
2817 FAF9 FAF9 FAF9 EDDD F4C2 5D4E 62E2 62E2 62E2 55D3 C0F4 91EA C721 6CDA E6B39A E6B39A F3B2AE94
2818 FAFA FAFA FAFA EDDE EBDF 5D58 62E4 62E4 62E4 55DE C1A7 9247 C72B 6D04 E6B484 E6B484 F3B2AE95
2819 FAFB FAFB FAFB EDDF EBE9 5D60 62EB 62EB 62EB 56A3 C1B6 9286 C747 6D87 E6B687 E6B687 F3B2AE96
2820 FAFC FAFC FAFC EDE0 -- 5D62 62F2 62F2 62F2 70DE C1C7 9298 C743 6D6F E6B5AF E6B5AF F3B2AE97
2821 FB40 FB40 FB40 EDE1 -- 5D6B 62EE 62EE 62EE 56A7 C1BF 9290 C74B 6D96 E6B696 E6B696 F3B2AE98
2822 FB41 FB41 FB41 EDE2 EBED 5D72 62FC 62FC 62FC 56AD C1CA 929D C74F 6DAC E6B6AC E6B6AC F3B2AE99
2823 FB42 FB42 FB42 EDE3 F4E6 5D74 63A4 63A4 63A4 56B2 C1D9 92AF C759 6DCF E6B78F E6B78F F3B2AE9A
2824 FB43 FB43 FB43 EDE4 -- 5D7A 62FD 62FD 62FD 56B8 C1CD 92A2 -- 6DF8 E6B7B8 E6B7B8 F3B2AE9B
2825 FB44 FB44 FB44 EDE5 -- 5D7F 63A6 63A6 63A6 70DF C1DF 92BF -- 6DF2 E6B7B2 E6B7B2 F3B2AE9C
2826 FB45 FB45 FB45 EDE6 EBF4 5D80 63BD 63BD 63BD 55B1 C1D1 92A6 C766 6DFC E6B7BC E6B7BC F3B2AE9D
2827 FB46 FB46 FB46 EDE7 -- 5D8A 63B7 63B7 63B7 56C2 C1FB 92FB C76E 6E39 E6B8B9 E6B8B9 F3B2AE9E
2828 FB47 FB47 FB47 EDE8 EBF8 5D8E 63B4 63B4 63B4 56CF C1F3 92DF C77C 6E5C E6B99C E6B99C F3B2AE9F
2829 FB48 FB48 FB48 EDE9 F4EE 5D93 63AE 63AE 63AE 56BE C1F4 92EA C76B 6E27 E6B8A7 E6B8A7 F3B2AEA0
2830 FB49 FB49 FB49 EDEA F4F1 5D95 63B8 63B8 63B8 56C3 C1F0 92DC C770 6E3C E6B8BC E6B8BC F3B2AEA1
2831 FB4A FB4A FB4A EDEB F543 5DA6 9FB6 9FB6 9FB6 56DF C2A8 9348 C831 6EBF E6BABF E6BABF F3B2AEA2
2832 FB4B FB4B FB4B EDEC EC4E 5DC1 63D8 63D8 63D8 56FE C2CE 93A3 C865 6F88 E6BE88 E6BE88 F3B2AEA3
2833 FB4C FB4C FB4C EDED F560 5DCA 63DF 63DF 63DF 57AE C2DF 93BF C878 6FB5 E6BEB5 E6BEB5 F3B2AEA4
2834 FB4D FB4D FB4D EDEE EC5A 5DD5 63E4 63E4 63E4 57B8 C2E4 93B6 C926 6FF5 E6BFB5 E6BFB5 F3B2AEA5
2835 FB4E FB4E FB4E EDEF EC5B 5DD7 63EB 63EB 63EB 57B9 C2EF 93DB C92B 7005 E78085 E78085 F3B2AEA6
2836 FB4F FB4F FB4F EDF0 F569 5DD8 63E8 63E8 63E8 57BA C2EE 93DA C92D 7007 E78087 E78087 F3B2AEA7
2837 FB50 FB50 FB50 EDF1 EC5D 5DE3 63F1 63F1 63F1 57BC C2F1 93DD -- 7028 E780A8 E780A8 F3B2AEA8
2838 FB51 FB51 FB51 EDF2 EC64 5DEA 63F8 63F8 63F8 57D1 C2FB 93FB C94A 7085 E78285 E78285 F3B2AEA9
2839 FB52 FB52 FB52 EDF3 EC66 5DED 63FD 63FD 63FD 57DE C2FC 93FC C953 70AB E782AB E782AB F3B2AEAA
2840 FB53 FB53 FB53 EDF4 EC6B 5DF5 9FB9 9FB9 9FB9 58A6 C3A8 9448 C969 710F E7848F E7848F F3B2AEAB
2841 FB54 FB54 FB54 EDF5 F58B 5DF6 64A5 64A5 64A5 58A5 C3A6 9446 C963 7104 E78484 E78484 F3B2AEAC
2842 FB55 FB55 FB55 EDF6 EC76 5DFB 64AD 64AD 64AD 57F1 C3B8 9488 C97C 715C E7859C E7859C F3B2AEAD
2843 FB56 FB56 FB56 EDF7 EC71 5DFC 64AE 64AE 64AE 57EB C3B9 9489 C974 7146 E78586 E78586 F3B2AEAE
2844 FB57 FB57 FB57 EDF8 EC72 5DFD 64AF 64AF 64AF 57EC C3BC 948D C975 7147 E78587 E78587 F3B2AEAF
2845 FB58 FB58 FB58 EDF9 EC79 5E49 64B9 64B9 64B9 70E3 C3CE 94A3 -- FA15 EFA895 EFA895 F3B2AEB0
2846 FB59 FB59 FB59 EDFA EC7D 5E4B 64B4 64B4 64B4 57F6 C3D0 94A5 CA33 71C1 E78781 E78781 F3B2AEB1
2847 FB5A FB5A FB5A EDFB EC81 5E5A 64C2 64C2 64C2 58A9 C3D5 94AA CA3D 71FE E787BE E787BE F3B2AEB2
2848 FB5B FB5B FB5B EDFC F5BB 5E73 64CC 64CC 64CC 58FA C3EB 94CD CA6F 72B1 E78AB1 E78AB1 F3B2AEB3
2849 FB5C FB5C FB5C EE40 EC89 5E75 9FBA 9FBA 9FBA 58D6 C3EE 94DA CA71 72BE E78ABE E78ABE F3B2AEB4
2850 FB5D FB5D FB5D EE41 -- 5E86 64D0 64D0 64D0 58ED C3FB 94FB CB2E 7324 E78CA4 E78CA4 F3B2AEB5
2851 FB5E FB5E FB5E EE42 EC8F 5E8A 64CE 64CE 64CE 58EF C3F8 94EE -- FA16 EFA896 EFA896 F3B2AEB6
2852 FB5F FB5F FB5F EE43 F5D5 5E94 64D2 64D2 64D2 58F6 C4A5 9545 CB4A 7377 E78DB7 E78DB7 F3B2AEB7
2853 FB60 FB60 FB60 EE44 -- 5E99 64DF 64DF 64DF 59BA C4BA 958A CB66 73BD E78EBD E78EBD F3B2AEB8
2854 FB61 FB61 FB61 EE45 EC99 5E9E 64DB 64DB 64DB 59BC C4B8 9588 CB6A 73C9 E78F89 E78F89 F3B2AEB9
2855 FB62 FB62 FB62 EE46 EC9B 5E9F 64E4 64E4 64E4 59C0 C4C1 9592 CB70 73D6 E78F96 E78F96 F3B2AEBA
2856 FB63 FB63 FB63 EE47 EC9D 5EA1 64E5 64E5 64E5 59C3 C4C2 9593 CB74 73E3 E78FA3 E78FA3 F3B2AEBB
2857 FB64 FB64 FB64 EE48 -- 5EA2 64E8 64E8 64E8 5AAC C4C6 9597 CB6E 73D2 E78F92 E78F92 F3B2AEBC
2858 FB65 FB65 FB65 EE49 EC9F 5EA7 64EB 64EB 64EB 59D0 C4C7 9598 CC25 7407 E79087 E79087 F3B2AEBD
2859 FB66 FB66 FB66 EE4A -- 5EA8 64EC 64EC 64EC 59C7 C4CB 959E CB79 73F5 E78FB5 E78FB5 F3B2AEBE
2860 FB67 FB67 FB67 EE4B ECA4 5EAA 64F5 64F5 64F5 59D7 C4D2 95A7 CC2B 7426 E790A6 E790A6 F3B2AEBF
2861 FB68 FB68 FB68 EE4C ECA6 5EAB 64F6 64F6 64F6 59DA C4D3 95A8 CC2E 742A E790AA E790AA F3B2AF80
2862 FB69 FB69 FB69 EE4D -- 5EAD 64FC 64FC 64FC 59D9 C4DB 95BB CC2D 7429 E790A9 E790A9 F3B2AF81
2863 FB6A FB6A FB6A EE4E ECA9 5EAE 64F8 64F8 64F8 59DD C4D7 95AD CC32 742E E790AE E790AE F3B2AF82
2864 FB6B FB6B FB6B EE4F ECB1 5EBC 65A8 65A8 65A8 5AAD C4ED 95CF CC42 7462 E791A2 E791A2 F3B2AF83
2865 FB6C FB6C FB6C EE50 ECB6 5EBD 65AE 65AE 65AE 59F4 C4F3 95DF CC50 7489 E79289 E79289 F3B2AF84
2866 FB6D FB6D FB6D EE51 ECB9 5EC0 65B2 65B2 65B2 59FB C4FB 95FB CC59 749F E7929F E7929F F3B2AF85
2867 FB6E FB6E FB6E EE52 ECC5 5ED1 65B9 65B9 65B9 5AB8 C5AC 9653 -- 7501 E79481 E79481 F3B2AF86
2868 FB6F FB6F FB6F EE53 ECC8 5EE7 65C3 65C3 65C3 5AD0 C5B4 9684 CD3B 756F E795AF E795AF F3B2AF87
2869 FB70 FB70 FB70 EE54 -- 5F69 65CA 65CA 65CA 5AFE C5D3 96A8 -- 7682 E79A82 E79A82 F3B2AF88
2870 FB71 FB71 FB71 EE55 F68F 5F70 65CE 65CE 65CE 5BA4 C5D9 96AF CE3B 769C E79A9C E79A9C F3B2AF89
2871 FB72 FB72 FB72 EE56 ECE1 5F71 65CF 65CF 65CF 5BA5 C5DA 96BA -- 769E E79A9E E79A9E F3B2AF8A
2872 FB73 FB73 FB73 EE57 ECDF 5F72 65D1 65D1 65D1 5AFD C5DB 96BB CE3A 769B E79A9B E79A9B F3B2AF8B
2873 FB74 FB74 FB74 EE58 ECE2 5F73 65D2 65D2 65D2 5BA9 C5DF 96BF CE43 76A6 E79AA6 E79AA6 F3B2AF8C
2874 FB75 FB75 FB75 EE59 -- 5F7A 65D8 65D8 65D8 5BB7 C5E5 96B7 -- FA17 EFA897 EFA897 F3B2AF8D
2875 FB76 FB76 FB76 EE5A ECF0 5F8E 65E6 65E6 65E6 5BCC C5F2 96DE CE72 7746 E79D86 E79D86 F3B2AF8E
2876 FB77 FB77 FB77 EE5B F163 5FAA 65F6 65F6 65F6 44DC B4C7 8498 B35D 52AF E58AAF E58AAF F3B2AF8F
2877 FB78 FB78 FB78 EE5C F6C1 5FAE 65F7 65F7 65F7 5BFC C6B1 9781 CF55 7821 E7A0A1 E7A0A1 F3B2AF90
2878 FB79 FB79 FB79 EE5D ED41 5FB2 65FA 65FA 65FA 5CA7 C6B5 9785 CF62 784E E7A18E E7A18E F3B2AF91
2879 FB7A FB7A FB7A EE5E F6C4 5FB3 66A1 66A1 66A1 5CAE C6BD 978E CF69 7864 E7A1A4 E7A1A4 F3B2AF92
2880 FB7B FB7B FB7B EE5F -- 5FB6 66A5 66A5 66A5 5CB2 C6C4 9795 CF6D 787A E7A1BA E7A1BA F3B2AF93
2881 FB7C FB7C FB7C EE60 F6DC 5FD1 66AE 66AE 66AE 5CCE C6DA 97BA -- 7930 E7A4B0 E7A4B0 F3B2AF94
2882 FB7D FB7D FB7D EE61 -- 5FD2 66B0 66B0 66B0 70E5 C6DD 97BD -- FA18 EFA898 EFA898 F3B2AF95
2883 FB7E FB7E FB7E EE62 ED5B 5FD5 66BB 66BB 66BB 5CDA C6EB 97CD -- FA19 EFA899 EFA899 F3B2AF96
2884 FB80 FB80 FB80 EE63 ED5C 5FD9 66C2 66C2 66C2 5CDC C6F7 97ED -- FA1A EFA89A EFA89A F3B2AF97
2885 FB81 FB81 FB81 EE64 F6E5 5FDC 66D0 66D0 66D0 5CE6 C7A3 9843 D065 7994 E7A694 E7A694 F3B2AF98
2886 FB82 FB82 FB82 EE65 ED60 5FDD 66D3 66D3 66D3 5CE4 C7A6 9846 -- FA1B EFA89B EFA89B F3B2AF99
2887 FB83 FB83 FB83 EE66 F6E8 5FDF 66D4 66D4 66D4 5CE8 C7AA 9851 D069 799B E7A69B E7A69B F3B2AF9A
2888 FB84 FB84 FB84 EE67 F758 604F 66FE 66FE 66FE 5DDD C7F2 98DE D168 7AD1 E7AB91 E7AB91 F3B2AF9B
2889 FB85 FB85 FB85 EE68 F759 6058 67A2 67A2 67A2 5DE1 C7F5 98EB -- 7AE7 E7ABA7 E7ABA7 F3B2AF9C
2890 FB86 FB86 FB86 EE69 -- 6059 67A6 67A6 67A6 5DE5 C7F7 98ED -- FA1C EFA89C EFA89C F3B2AF9D
2891 FB87 FB87 FB87 EE6A ED77 605A 67A4 67A4 67A4 5DE4 C7F8 98EE D16C 7AEB E7ABAB E7ABAB F3B2AF9E
2892 FB88 FB88 FB88 EE6B ED83 6082 67B7 67B7 67B7 5EA3 C8BB 998C D23B 7B9E E7AE9E E7AE9E F3B2AF9F
2893 FB89 FB89 FB89 EE6C -- 60AD 67CC 67CC 67CC 5ED3 C8E8 99CA -- FA1D EFA89D EFA89D F3B2AFA0
2894 FB8A FB8A FB8A EE6D EDA0 60C4 67DD 67DD 67DD 5EFD C9A7 9A47 D361 7D48 E7B588 E7B588 F3B2AFA1
2895 FB8B FB8B FB8B EE6E EDA2 60C6 67E1 67E1 67E1 5EE0 C9AC 9A53 D368 7D5C E7B59C E7B59C F3B2AFA2
2896 FB8C FB8C FB8C EE6F F7C5 60D4 67EC 67EC 67EC 5FE4 C9B9 9A89 D427 7DB7 E7B6B7 E7B6B7 F3B2AFA3
2897 FB8D FB8D FB8D EE70 EDA6 60DA 67EB 67EB 67EB 5FB6 C9B6 9A86 -- 7DA0 E7B6A0 E7B6A0 F3B2AFA4
2898 FB8E FB8E FB8E EE71 EDAA 60E1 67F1 67F1 67F1 5FBE C9BD 9A8E -- 7DD6 E7B796 E7B796 F3B2AFA5
2899 FB8F FB8F FB8F EE72 EDB3 60FD 67FB 67FB 67FB 5FD6 C9D5 9AAA D454 7E52 E7B992 E7B992 F3B2AFA6
2900 FB90 FB90 FB90 EE73 EDB7 6157 68A5 68A5 68A5 5FE8 BFFB 90FB D472 7F47 E7BD87 E7BD87 F3B2AFA7
2901 FB91 FB91 FB91 EE74 -- 616E 68AE 68AE 68AE 5FF7 C9F2 9ADE D52E 7FA1 E7BEA1 E7BEA1 F3B2AFA8
2902 FB92 FB92 FB92 EE75 -- 6177 68B2 68B2 68B2 60A1 C9F6 9AEC -- FA1E EFA89E EFA89E F3B2AFA9
2903 FB93 FB93 FB93 EE76 EDEA 61F8 68DA 68DA 68DA 61D9 CBB4 9E84 D75E 8301 E88C81 E88C81 F3B2AFAA
2904 FB94 FB94 FB94 EE77 EDEB 6248 68DD 68DD 68DD 70E7 CBD3 9EA8 -- 8362 E88DA2 E88DA2 F3B2AFAB
2905 FB95 FB95 FB95 EE78 F8B1 625B 68F2 68F2 68F2 61F0 CBD4 9EA9 D822 837F E88DBF E88DBF F3B2AFAC
2906 FB96 FB96 FB96 EE79 EDFB 6267 68FC 68FC 68FC 61FE CCA1 9F41 D837 83C7 E88F87 E88F87 F3B2AFAD
2907 FB97 FB97 FB97 EE7A -- 6274 68F8 68F8 68F8 62AA CBF7 9EED D841 83F6 E88FB6 E88FB6 F3B2AFAE
2908 FB98 FB98 FB98 EE7B EE47 627E 69A3 69A3 69A3 70E8 CCB2 9F82 D851 8448 E89188 E89188 F3B2AFAF
2909 FB99 FB99 FB99 EE7C EE4E 628A 69AF 69AF 69AF 70E9 CCC3 9F94 D874 84B4 E892B4 E892B4 F3B2AFB0
2910 FB9A FB9A FB9A EE7D F8EF 629E 69BE 69BE 69BE 62D1 CCEE 9FDA D946 8553 E89593 E89593 F3B2AFB1
2911 FB9B FB9B FB9B EE7E EE57 62A1 69BF 69BF 69BF 62D4 CCEA 9FCC D948 8559 E89599 E89599 F3B2AFB2
2912 FB9C FB9C FB9C EE80 -- 62A8 69BA 69BA 69BA 62D9 CCED 9FCF D951 856B E895AB E895AB F3B2AFB3
2913 FB9D FB9D FB9D EE81 EE59 62B9 69C1 69C1 69C1 62E4 CCFD 9FFD -- FA1F EFA89F EFA89F F3B2AFB4
2914 FB9E FB9E FB9E EE82 EE5F 62BB 69C9 69C9 69C9 62E5 CDA9 A249 -- 85B0 E896B0 E896B0 F3B2AFB5
2915 FB9F FB9F FB9F EE83 F957 62CE 69D0 69D0 69D0 70EA CDC2 A293 -- FA20 EFA8A0 EFA8A0 F3B2AFB6
2916 FBA0 FBA0 FBA0 EE84 F964 62E2 69D7 69D7 69D7 63DF CDD3 A2A8 -- FA21 EFA8A1 EFA8A1 F3B2AFB7
2917 FBA1 FBA1 FBA1 EE85 -- 635E 69DA 69DA 69DA 63E0 CDE2 A2B4 -- 8807 E8A087 E8A087 F3B2AFB8
2918 FBA2 FBA2 FBA2 EE86 EE8D 6390 69E6 69E6 69E6 63F9 CEA4 A344 DC53 88F5 E8A3B5 E8A3B5 F3B2AFB9
2919 FBA3 FBA3 FBA3 EE87 EE9D 63C5 69FE 69FE 69FE 64E4 CECA A39D DD48 8A12 E8A892 E8A892 F3B2AFBA
2920 FBA4 FBA4 FBA4 EE88 EEA0 63CB 6AA5 6AA5 6AA5 64EC CEDA A3BA DD54 8A37 E8A8B7 E8A8B7 F3B2AFBB
2921 FBA5 FBA5 FBA5 EE89 EEA6 63D4 6AAA 6AAA 6AAA 64DA CEDF A3BF DD6A 8A79 E8A9B9 E8A9B9 F3B2AFBC
2922 FBA6 FBA6 FBA6 EE8A EEA7 63DF 6AAB 6AAB 6AAB 65A7 CEE2 A3B4 DD7A 8AA7 E8AAA7 E8AAA7 F3B2AFBD
2923 FBA7 FBA7 FBA7 EE8B F9DE 63E1 6AAD 6AAD 6AAD 6BEA CEE3 A3B5 DE24 8ABE E8AABE E8AABE F3B2AFBE
2924 FBA8 FBA8 FBA8 EE8C EEA9 63ED 6AB3 6AB3 6AB3 65B3 CEEC A3CE DE30 8ADF E8AB9F E8AB9F F3B2AFBF
2925 FBA9 FBA9 FBA9 EE8D EEAC 63EE 6AB2 6AB2 6AB2 65B7 CEEA A3CC -- FA22 EFA8A2 EFA8A2 F3B2B080
2926 FBAA FBAA FBAA EE8E EEAB 63EF 6AB4 6AB4 6AB4 65B6 CEED A3CF DE35 8AF6 E8ABB6 E8ABB6 F3B2B081
2927 FBAB FBAB FBAB EE8F -- 6445 6ABE 6ABE 6ABE 65C7 CEF8 A3EE DE4B 8B53 E8AD93 E8AD93 F3B2B082
2928 FBAC FBAC FBAC EE90 F9ED 6450 6AC3 6AC3 6AC3 65D1 CEFE A3FE -- 8B7F E8ADBF E8ADBF F3B2B083
2929 FBAD FBAD FBAD EE91 FA4F 647C 6AD0 6AD0 6AD0 66AB CFBC A48D DF39 8CF0 E8B3B0 E8B3B0 F3B2B084
2930 FBAE FBAE FBAE EE92 EEB8 647D 6ACF 6ACF 6ACF 65F9 CFBB A48C -- 8CF4 E8B3B4 E8B3B4 F3B2B085
2931 FBAF FBAF FBAF EE93 EEBC 6485 6AD5 6AD5 6AD5 65F8 CFC2 A493 DF43 8D12 E8B492 E8B492 F3B2B086
2932 FBB0 FBB0 FBB0 EE94 -- 648D 6AD8 6AD8 6AD8 66B9 CFC5 A496 -- 8D76 E8B5B6 E8B5B6 F3B2B087
2933 FBB1 FBB1 FBB1 EE95 -- 648E 6AD9 6AD9 6AD9 66C3 CFC7 A498 -- FA23 EFA8A3 EFA8A3 F3B2B088
2934 FBB2 FBB2 FBB2 EE96 -- 64C9 6AE1 6AE1 6AE1 66ED CFDE A4BE E059 8ECF E8BB8F E8BB8F F3B2B089
2935 FBB3 FBB3 FBB3 EE97 FA8E 64F1 6AEB 6AEB 6AEB 70F9 CFFD A4FD -- FA24 EFA8A4 EFA8A4 F3B2B08A
2936 FBB4 FBB4 FBB4 EE98 -- 6549 6AFA 6AFA 6AFA 70FB D0C2 A593 -- FA25 EFA8A5 EFA8A5 F3B2B08B
2937 FBB5 FBB5 FBB5 EE99 -- 6553 6BA3 6BA3 6BA3 70FA D0CD A5A2 E162 9067 E981A7 E981A7 F3B2B08C
2938 FBB6 FBB6 FBB6 EE9A EEE5 6564 6BC7 6BC7 6BC7 68A6 D0EC A5CE -- 90DE E9839E E9839E F3B2B08D
2939 FBB7 FBB7 FBB7 EE9B EEE8 6566 6BCA 6BCA 6BCA 68A8 D0F2 A5DE -- FA26 EFA8A6 EFA8A6 F3B2B08E
2940 FBB8 FBB8 FBB8 EE9C EEEA 6567 6BCD 6BCD 6BCD 68DF D0F3 A5DF -- 9115 E98495 E98495 F3B2B08F
2941 FBB9 FBB9 FBB9 EE9D EEEE 656B 6BD1 6BD1 6BD1 68B0 D0F9 A5EF E247 9127 E984A7 E984A7 F3B2B090
2942 FBBA FBBA FBBA EE9E FACC 6583 6BD9 6BD9 6BD9 69BE D1B8 A688 E328 91DA E9879A E9879A F3B2B091
2943 FBBB FBBB FBBB EE9F EEFA 6585 6BD8 6BD8 6BD8 69BC D1B7 A687 E326 91D7 E98797 E98797 F3B2B092
2944 FBBC FBBC FBBC EEA0 -- 6586 6BDA 6BDA 6BDA 69BF D1B9 A689 E329 91DE E9879E E9879E F3B2B093
2945 FBBD FBBD FBBD EEA1 EF41 658A 6BDC 6BDC 6BDC 69C5 D1BB A68C E32F 91ED E987AD E987AD F3B2B094
2946 FBBE FBBE FBBE EEA2 FAD0 658C 6BE1 6BE1 6BE1 69C6 D1C1 A692 E330 91EE E987AE E987AE F3B2B095
2947 FBBF FBBF FBBF EEA3 EEFC 658D 6BE0 6BE0 6BE0 69C0 D1BE A68F E32A 91E4 E987A4 E987A4 F3B2B096
2948 FBC0 FBC0 FBC0 EEA4 EF40 658F 6BDF 6BDF 6BDF 69C1 D1BD A68E E32B 91E5 E987A5 E987A5 F3B2B097
2949 FBC1 FBC1 FBC1 EEA5 -- 6590 6BE5 6BE5 6BE5 69CD D1C6 A697 E33C 9206 E98886 E98886 F3B2B098
2950 FBC2 FBC2 FBC2 EEA6 EF44 6593 6BE9 6BE9 6BE9 69D1 D1C4 A695 E341 9210 E98890 E98890 F3B2B099
2951 FBC3 FBC3 FBC3 EEA7 FAD2 6595 6BE7 6BE7 6BE7 69D0 D1CB A69E E33F 920A E9888A E9888A F3B2B09A
2952 FBC4 FBC4 FBC4 EEA8 EF47 659B 6BF2 6BF2 6BF2 69E1 D1DC A6BC E355 923A E988BA E988BA F3B2B09B
2953 FBC5 FBC5 FBC5 EEA9 EF49 659E 6BEE 6BEE 6BEE 69E4 D1D6 A6AC E358 9240 E98980 E98980 F3B2B09C
2954 FBC6 FBC6 FBC6 EEAA EF48 659F 6BF3 6BF3 6BF3 69E2 D1D9 A6AF E356 923C E988BC E988BC F3B2B09D
2955 FBC7 FBC7 FBC7 EEAB FADA 65A1 6BEF 6BEF 6BEF 69E8 D1DD A6BD E35F 924E E9898E E9898E F3B2B09E
2956 FBC8 FBC8 FBC8 EEAC FADD 65A3 6BF1 6BF1 6BF1 69EE D1DB A6BB E363 9259 E98999 E98999 F3B2B09F
2957 FBC9 FBC9 FBC9 EEAD FADB 65A5 6BEC 6BEC 6BEC 69EA D1D1 A6A6 E361 9251 E98991 E98991 F3B2B0A0
2958 FBCA FBCA FBCA EEAE EF46 65A6 6BED 6BED 6BED 69E0 D1D3 A6A8 E354 9239 E988B9 E988B9 F3B2B0A1
2959 FBCB FBCB FBCB EEAF FAE1 65A8 6BF6 6BF6 6BF6 6BD2 D1E4 A6B6 E369 9267 E989A7 E989A7 F3B2B0A2
2960 FBCC FBCC FBCC EEB0 FAED 65AB 6CA6 6CA6 6CA6 6AA7 D1EE A6DA E426 92A7 E98AA7 E98AA7 F3B2B0A3
2961 FBCD FBCD FBCD EEB1 -- 65AC 6CA8 6CA8 6CA8 69F7 D1EF A6DB E371 9277 E989B7 E989B7 F3B2B0A4
2962 FBCE FBCE FBCE EEB2 EF4C 65AD 6CA5 6CA5 6CA5 69F8 D1E6 A6B8 E372 9278 E989B8 E989B8 F3B2B0A5
2963 FBCF FBCF FBCF EEB3 FAFA 65B4 6CB1 6CB1 6CB1 6AC4 D1F9 A6EF E44B 92E7 E98BA7 E98BA7 F3B2B0A6
2964 FBD0 FBD0 FBD0 EEB4 FAF7 65B5 6CAC 6CAC 6CAC 6ABC D1F0 A6DC E441 92D7 E98B97 E98B97 F3B2B0A7
2965 FBD1 FBD1 FBD1 EEB5 FAF8 65B6 6CB8 6CB8 6CB8 6ABE D1F7 A6ED E443 92D9 E98B99 E98B99 F3B2B0A8
2966 FBD2 FBD2 FBD2 EEB6 FAF6 65B7 6CB3 6CB3 6CB3 6AB8 D2A4 A744 E43E 92D0 E98B90 E98B90 F3B2B0A9
2967 FBD3 FBD3 FBD3 EEB7 -- 65B8 6CB7 6CB7 6CB7 6BD3 D2A6 A746 -- FA27 EFA8A7 EFA8A7 F3B2B0AA
2968 FBD4 FBD4 FBD4 EEB8 -- 65B9 6CB5 6CB5 6CB5 6ABB D2A3 A743 E440 92D5 E98B95 E98B95 F3B2B0AB
2969 FBD5 FBD5 FBD5 EEB9 EF52 65BC 6CB0 6CB0 6CB0 6AC2 D1FE A6FE E447 92E0 E98BA0 E98BA0 F3B2B0AC
2970 FBD6 FBD6 FBD6 EEBA EF51 65BD 9FCA 9FCA 9FCA 6ABA D1F4 A6EA E43F 92D3 E98B93 E98B93 F3B2B0AD
2971 FBD7 FBD7 FBD7 EEBB EF57 65C1 6CC3 6CC3 6CC3 6AD5 D2B4 A784 E460 9325 E98CA5 E98CA5 F3B2B0AE
2972 FBD8 FBD8 FBD8 EEBC EF56 65C3 6CBE 6CBE 6CBE 6AD3 D2A9 A749 E45E 9321 E98CA1 E98CA1 F3B2B0AF
2973 FBD9 FBD9 FBD9 EEBD FB43 65C5 6CCD 6CCD 6CCD 69B3 D2AF A756 E451 92FB E98BBB E98BBB F3B2B0B0
2974 FBDA FBDA FBDA EEBE -- 65C6 6CC2 6CC2 6CC2 6BD4 D2B7 A787 -- FA28 EFA8A8 EFA8A8 F3B2B0B1
2975 FBDB FBDB FBDB EEBF FB48 65C8 6CBF 6CBF 6CBF 6AD1 D2AB A752 E45C 931E E98C9E E98C9E F3B2B0B2
2976 FBDC FBDC FBDC EEC0 EF53 65C9 6CC1 6CC1 6CC1 6ACA D2B5 A785 E452 92FF E98BBF E98BBF F3B2B0B3
2977 FBDD FBDD FBDD EEC1 FB47 65CC 6CC4 6CC4 6CC4 6AD0 D2B3 A783 E45B 931D E98C9D E98C9D F3B2B0B4
2978 FBDE FBDE FBDE EEC2 FB44 65CE 6CC5 6CC5 6CC5 6ACC D2B2 A782 E454 9302 E98C82 E98C82 F3B2B0B5
2979 FBDF FBDF FBDF EEC3 EF5E 65D0 6CCA 6CCA 6CCA 6AE4 D2BB A78C E47A 9370 E98DB0 E98DB0 F3B2B0B6
2980 FBE0 FBE0 FBE0 EEC4 FB4F 65D5 6CCC 6CCC 6CCC 6ADE D2C3 A794 E46F 9357 E98D97 E98D97 F3B2B0B7
2981 FBE1 FBE1 FBE1 EEC5 -- 65D8 6CD8 6CD8 6CD8 6AF2 D2D3 A7A8 E533 93A4 E98EA4 E98EA4 F3B2B0B8
2982 FBE2 FBE2 FBE2 EEC6 EF62 65DD 6CE0 6CE0 6CE0 6AF9 D2DF A7BF E53F 93C6 E98F86 E98F86 F3B2B0B9
2983 FBE3 FBE3 FBE3 EEC7 EF63 65E4 6CDF 6CDF 6CDF 6BA3 D2DA A7BA E549 93DE E98F9E E98F9E F3B2B0BA
2984 FBE4 FBE4 FBE4 EEC8 -- 65E8 6CE6 6CE6 6CE6 6BAE D2E7 A7B9 E550 93F8 E98FB8 E98FB8 F3B2B0BB
2985 FBE5 FBE5 FBE5 EEC9 -- 65F0 6CEF 6CEF 6CEF 6BBD D2F2 A7DE E562 9431 E990B1 E990B1 F3B2B0BC
2986 FBE6 FBE6 FBE6 EECA FB6C 65F4 6CF0 6CF0 6CF0 6BC5 D2F3 A7DF E56A 9445 E99185 E99185 F3B2B0BD
2987 FBE7 FBE7 FBE7 EECB -- 65F6 6CF1 6CF1 6CF1 6BC6 D2F4 A7EA E56B 9448 E99188 E99188 F3B2B0BE
2988 FBE8 FBE8 FBE8 EECC -- 664A 6CF8 6CF8 6CF8 6BE1 D2FC A7FC -- 9592 E99692 E99692 F3B2B0BF
2989 FBE9 FBE9 FBE9 EECD EF7C 6674 6DA2 6DA2 6DA2 68CC D3B9 A889 -- F9DC EFA79C EFA79C F3B2B180
2990 FBEA FBEA FBEA EECE -- 6678 6DA4 6DA4 6DA4 68E0 D3C0 A891 -- FA29 EFA8A9 EFA8A9 F3B2B181
2991 FBEB FBEB FBEB EECF EF7D 6679 6DA5 6DA5 6DA5 68D4 D3C1 A892 E668 969D E99A9D E99A9D F3B2B182
2992 FBEC FBEC FBEC EED0 FB8C 667F 6DA6 6DA6 6DA6 68DB D3C4 A895 E66F 96AF E99AAF E99AAF F3B2B183
2993 FBED FBED FBED EED1 EF86 6697 9FCD 9FCD 9FCD 6CAC D3D4 A8A9 E72C 9733 E99CB3 E99CB3 F3B2B184
2994 FBEE FBEE FBEE EED2 EF87 6699 9FCE 9FCE 9FCE 6CAD D3D5 A8AA -- 973B E99CBB E99CBB F3B2B185
2995 FBEF FBEF FBEF EED3 -- 669E 6DAE 6DAE 6DAE 6CB0 D3D7 A8AD E72E 9743 E99D83 E99D83 F3B2B186
2996 FBF0 FBF0 FBF0 EED4 EF88 66A2 6DB0 6DB0 6DB0 6CB1 D3D9 A8AF -- 974D E99D8D E99D8D F3B2B187
2997 FBF1 FBF1 FBF1 EED5 EF8A 66A3 9FCF 9FCF 9FCF 6CAE D3DB A8BB E731 974F E99D8F E99D8F F3B2B188
2998 FBF2 FBF2 FBF2 EED6 -- 66A4 6DB1 6DB1 6DB1 6CB3 D3DC A8BC -- 9751 E99D91 E99D91 F3B2B189
2999 FBF3 FBF3 FBF3 EED7 FB9C 66A5 6DB2 6DB2 6DB2 6CB5 D3DE A8BE E732 9755 E99D95 E99D95 F3B2B18A
3000 FBF4 FBF4 FBF4 EED8 EF9F 66CB 6DC1 6DC1 6DC1 6CF3 D4A1 A941 E831 9857 E9A197 E9A197 F3B2B18B
3001 FBF5 FBF5 FBF5 EED9 EFA3 66CC 6DC2 6DC2 6DC2 6CF7 D4A4 A944 E836 9865 E9A1A5 E9A1A5 F3B2B18C
3002 FBF6 FBF6 FBF6 EEDA -- 66DD 6DC5 6DC5 6DC5 6DB3 D4B3 A983 -- FA2A EFA8AA EFA8AA F3B2B18D
3003 FBF7 FBF7 FBF7 EEDB -- 66DF 6DC6 6DC6 6DC6 6DB4 D4B4 A984 -- FA2B EFA8AB EFA8AB F3B2B18E
3004 FBF8 FBF8 FBF8 EEDC -- 66E5 6DC8 6DC8 6DC8 6DBD D4B7 A987 E85D 9927 E9A4A7 E9A4A7 F3B2B18F
3005 FBF9 FBF9 FBF9 EEDD -- 66E6 6DC9 6DC9 6DC9 6DBE D4B8 A988 -- FA2C EFA8AC EFA8AC F3B2B190
3006 FBFA FBFA FBFA EEDE EFA9 66F9 6DCC 6DCC 6DCC 5CF3 D4C3 A994 -- 999E E9A69E E9A69E F3B2B191
3007 FBFB FBFB FBFB EEDF EFB1 6759 6DD9 6DD9 6DD9 6DF6 D4D7 A9AD E951 9A4E E9A98E E9A98E F3B2B192
3008 FBFC FBFC FBFC EEE0 -- 676B 6DD4 6DD4 6DD4 6EA4 D4DC A9BC -- 9AD9 E9AB99 E9AB99 F3B2B193
3009 FC40 FC40 FC40 EEE1 FC51 676C 6DDC 6DDC 6DDC 6EA7 D4DE A9BE E96D 9ADC E9AB9C E9AB9C F3B2B194
3010 FC41 FC41 FC41 EEE2 EFC2 678F 9FD2 9FD2 9FD2 6ED0 D4F0 A9DC EA4D 9B75 E9ADB5 E9ADB5 F3B2B195
3011 FC42 FC42 FC42 EEE3 EFC1 6791 6DE0 6DE0 6DE0 6EEE D4EF A9DB -- 9B72 E9ADB2 E9ADB2 F3B2B196
3012 FC43 FC43 FC43 EEE4 EFC5 6793 6DE2 6DE2 6DE2 6ED8 D4F3 A9DF EA5B 9B8F E9AE8F E9AE8F F3B2B197
3013 FC44 FC44 FC44 EEE5 FC69 679B 6DE5 6DE5 6DE5 6EDB D4FB A9FB EA66 9BB1 E9AEB1 E9AEB1 F3B2B198
3014 FC45 FC45 FC45 EEE6 -- 679F 6DE7 6DE7 6DE7 6EEF D5A8 AA48 EA6A 9BBB E9AEBB E9AEBB F3B2B199
3015 FC46 FC46 FC46 EEE7 EFCD 67B1 9FD3 9FD3 9FD3 6EE3 D5AF AA56 EB25 9C00 E9B080 E9B080 F3B2B19A
3016 FC47 FC47 FC47 EEE8 EFDC 67E2 9FD8 9FD8 9FD8 6FA3 D3C9 A89A EB7B 9D70 E9B5B0 E9B5B0 F3B2B19B
3017 FC48 FC48 FC48 EEE9 FCB2 67E4 6DF2 6DF2 6DF2 6FA1 D5D4 AAA9 EB7A 9D6B E9B5AB E9B5AB F3B2B19C
3018 FC49 FC49 FC49 EEEA -- 67F4 6DF4 6DF4 6DF4 6FB2 D5DA AABA -- FA2D EFA8AD EFA8AD F3B2B19D
3019 FC4A FC4A FC4A EEEB FCCD 67FE 6EAC 6EAC 6EAC 6FAE D5DC AABC EC56 9E19 E9B899 E9B899 F3B2B19E
3020 FC4B FC4B FC4B EEEC EFF0 6856 6EA1 6EA1 6EA1 6FD6 D5EB AACD -- 9ED1 E9BB91 E9BB91 F3B2B19F
3021  
3022 =head1 UTF-8.0 vs. UTF-8.1
3023  
3024 The large character sets has always some problems.
3025 One of problem of UTF-8 is difference between Microsoft Corporation-san's definition and general definition.
3026 Already, in this software, "utf8" means Microsoft Corporation-san's definition.
3027 So we named the general UTF-8 "UTF-8.1" to distinguish them.
3028  
3029 Terminology and definitions
3030 -------------------------------------------------------------------------------
3031 UTF-8 [ju:ti:ef eit] could mean sometimes UTF-8.0, sometimes UTF-8.x
3032 UTF-8.0 [ju:ti:ef hatten-zero] is Microsoft's definition of the UTF-8
3033 UTF-8.1 [ju:ti:ef hatten-ichi] is general definition of the UTF-8
3034 UTF-8.x [ju:ti:ef hatten-ekks] means both UTF-8.0 and UTF-8.1
3035 -------------------------------------------------------------------------------
3036  
3037 The following is difference between UTF-8.0 and UTF-8.1.
3038  
3039 #+++++++----------------------------------------------------------------------------------------------------------- CP932X, Extended CP932 to JIS X 0213 using 0x9C5A as single shift
3040 #||||||| ++++------------------------------------------------------------------------------------------------------ Microsoft CP932, IANA Windows-31J
3041 #||||||| |||| ++++------------------------------------------------------------------------------------------------- IBM CP932
3042 #||||||| |||| |||| ++++-------------------------------------------------------------------------------------------- NEC CP932
3043 #||||||| |||| |||| |||| ++++--------------------------------------------------------------------------------------- JISC Shift_JIS-2004
3044 #||||||| |||| |||| |||| |||| ++++---------------------------------------------------------------------------------- IBM CP00930(CP00290+CP00300), CCSID 5026 katakana
3045 #||||||| |||| |||| |||| |||| |||| ++++----------------------------------------------------------------------------- HITACHI KEIS78
3046 #||||||| |||| |||| |||| |||| |||| |||| ++++------------------------------------------------------------------------ HITACHI KEIS83
3047 #||||||| |||| |||| |||| |||| |||| |||| |||| ++++------------------------------------------------------------------- HITACHI KEIS90
3048 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| ++++-------------------------------------------------------------- FUJITSU JEF
3049 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ++++--------------------------------------------------------- NEC JIPS(J)
3050 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ++++---------------------------------------------------- NEC JIPS(E)
3051 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ++++----------------------------------------------- UNISYS LetsJ
3052 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| +++++++++------------------------------------- Unicode
3053 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ||||||||| ++++++++++++------------------------ UTF-8.0 (aka UTF-8)
3054 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ||||||||| |||||||||||| ++++++++++++----------- UTF-8.1
3055 #||||||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ||||||||| |||||||||||| |||||||||||| ++++++++-- UTF-8-SPUA-JP, JIS X 0213 on SPUA ordered by JIS level, plane, row, cell
3056 #2345678 1234 1234 1234 1234 1234 1234 1234 1234 1234 1234 1234 1234 123456789 123456789012 123456789012 12345678
3057 #VVVVVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVV VVVVVVVVV VVVVVVVVVVVV VVVVVVVVVVVV VVVVVVVV
3058 815C 815C 815C 815C -- DDB7 A1BD A1BD A1BD A1BD 213D 4F7E A1BD 2015 E28095 E28094 F3B0849C
3059 8161 8161 8161 8161 81D2 DFE5 A1C2 A1C2 A1C2 A1C2 2142 4FC2 -- 2225 E288A5 E28096 F3B084A1
3060 817C 817C 817C 817C 81AF E9F3 A1DD A1DD A1DD A1DD 215D 4F5A -- FF0D EFBC8D E28892 F3B084BC
3061 9C5A815C -- -- -- 815C 444A -- -- -- -- -- -- -- 2014 E28094 E28095 F3B2B4AC
3062 9C5A8161 -- -- -- 8161 447C -- -- -- -- -- -- A1C2 2016 E28096 E288A5 F3B2B4B1
3063 9C5A817C -- -- -- 817C 4260 -- -- -- -- -- -- A1DD 2212 E28892 EFBC8D F3B2B58C
3064  
3065 =head1 ERRATAS OF MAPPINGS
3066  
3067 Mapping of Jacode4e version 2.13.6.17 or earlier has following errata:
3068  
3069 =head2 KEIS78, KEIS83, and KEIS90
3070  
3071 Mapping of 'keis78', 'keis83', and 'keis90' had following errata:
3072  
3073 ----------------------------------------------
3074 Unicode 2.13.6.18 2.13.6.17
3075 or later or older
3076 ----------------------------------------------
3077 芺 U+82BA KEIS:(no mapping) KEIS:68CF
3078 覀 U+8980 KEIS:(no mapping) KEIS:59A9
3079 麽 U+9EBD KEIS:6DFB KEIS:5EC3
3080 ----------------------------------------------
3081  
3082 =head2 JEF and JEF9P
3083  
3084 Mapping of 'jef' and 'jef9p' had following errata:
3085  
3086 ----------------------------------------------
3087 Unicode 2.13.6.18 2.13.6.17
3088 or later or older
3089 ----------------------------------------------
3090 漼 U+6F3C JEF:(no mapping) JEF:56F3
3091 臽 U+81FD JEF:(no mapping) JEF:52E1
3092 海 U+FA45 JEF:55FB JEF:53FA
3093 渚 U+FA46 JEF:BDED JEF:55FB
3094 漢 U+FA47 JEF:56E6 JEF:BDED
3095 煮 U+FA48 JEF:58A7 JEF:56E6
3096 爫 U+FA49 JEF:(no mapping) JEF:58A7
3097 社 U+FA4C JEF:5CD3 JEF:5CB3
3098 祉 U+FA4D JEF:5CD5 JEF:5CD3
3099 祈 U+FA4E JEF:5CD4 JEF:5CD5
3100 祐 U+FA4F JEF:5CD6 JEF:5CD4
3101 祖 U+FA50 JEF:5CD7 JEF:5CD6
3102 祝 U+FA51 JEF:5CD9 JEF:5CD7
3103 禍 U+FA52 JEF:5CE2 JEF:5CD9
3104 禎 U+FA53 JEF:5CE3 JEF:5CE2
3105 穀 U+FA54 JEF:5CF4 JEF:5CE3
3106 突 U+FA55 JEF:5DCD JEF:5CF4
3107 縉 U+FA58 JEF:(no mapping) JEF:5FC8
3108 署 U+FA5A JEF:5FF0 JEF:5EE3
3109 者 U+FA5B JEF:60B5 JEF:5FF0
3110 臭 U+FA5C JEF:60E3 JEF:60B5
3111 艹 U+FA5D JEF:(no mapping) JEF:60E3
3112 ~ U+FF5E JEF:(no mapping) JEF:A1C1
3113 ----------------------------------------------
3114  
3115 =head2 JIPS(J)
3116  
3117 Mapping of 'jipsj' had following errata:
3118  
3119 ----------------------------------------------
3120 Unicode 2.13.6.18 2.13.6.17
3121 or later or older
3122 ----------------------------------------------
3123 Ý U+00DD JIPSJ:(no mapping) JIPSJ:A5B1
3124 耰 U+8030 JIPSJ:(no mapping) JIPSJ:CAAB
3125 ----------------------------------------------
3126  
3127 =head2 JIPS(E)
3128  
3129 Mapping of 'jipse' had following errata:
3130  
3131 ----------------------------------------------
3132 Unicode 2.13.6.18 2.13.6.17
3133 or later or older
3134 ----------------------------------------------
3135 Ý U+00DD JIPSE:(no mapping) JIPSE:4581
3136 耰 U+8030 JIPSE:(no mapping) JIPSE:9D52
3137 ----------------------------------------------
3138  
3139 =head1 JIS X 0208 AND JIS X 0213 ERAS
3140  
3141 Jacode4e labels the 'sjis', 'euc', and 'jis' families by year edition:
3142 'sjis1978', 'sjis1983', 'sjis1990', 'sjis2000', 'sjis2004' (and the same
3143 1978..2004 suffixes for 'euc' and 'jis'). The year-less 'sjis', 'euc', and
3144 'jis' mean the 1990 edition.
3145  
3146 These five year labels span TWO different standards:
3147  
3148 label standard DBCS designation on 'jis' output
3149 ----------------------------------------------------------------------
3150 1978 JIS C 6226-1978 (78JIS) ESC $ @
3151 1983 JIS X 0208-1983 (83JIS) ESC $ B
3152 1990 JIS X 0208-1990 (90JIS) ESC $ B (rev. ESC & @ ESC $ B)
3153 2000 JIS X 0213:2000 ESC $ ( O (plane 1) / ESC $ ( P (plane 2)
3154 2004 JIS X 0213:2004 (JIS2004) ESC $ ( Q (plane 1) / ESC $ ( P (plane 2)
3155 ----------------------------------------------------------------------
3156  
3157 1978, 1983, and 1990 are the successive editions of the main kanji set
3158 JIS X 0208 (the 1978 edition was first published under the older name
3159 JIS C 6226). 2000 and 2004 are editions of JIS X 0213, the extended
3160 successor standard that adds a second plane on top of JIS X 0208 (see the
3161 JIS X 0212 vs. JIS X 0213 section below).
3162  
3163 =head2 1978 -> 1983
3164  
3165 The 1983 edition is NOT a pure superset of 1978. It:
3166  
3167 =over 2
3168  
3169 =item *
3170  
3171 exchanged the code positions of about two dozen pairs of kanji (the
3172 "moji-ire-kae"), so the SAME code point denotes a DIFFERENT character in
3173 1978 data and in 1983 data;
3174  
3175 =item *
3176  
3177 revised the reference glyphs of many second-level (hyougai) kanji toward
3178 simpler shinjitai-style forms;
3179  
3180 =item *
3181  
3182 added kanji and filled row 8 with box-drawing characters.
3183  
3184 =back
3185  
3186 Because of the position exchanges, 1978 and 1983 data cannot be treated as
3187 the same encoding: a converter must know which edition the bytes are in.
3188 This is exactly why Jacode4e keeps separate 'sjis1978' and 'sjis1983'
3189 tables. (See the O'Reilly "CJKV Information Processing" 78-vs-83 tables
3190 listed in the SEE ALSO section.)
3191  
3192 =head2 1983 -> 1990
3193  
3194 The 1990 edition is a small, upward revision of 1983: it added two
3195 second-level kanji (including U+51DC at row-cell 84-05) and adjusted the
3196 reference glyphs of a group of kanji (the set was typeset in Heisei
3197 Mincho). At existing code points 1990 is a superset of 1983. On 'jis'
3198 output the 1990 edition may be announced with the revision sequence
3199 ESC & @ ESC $ B, but ESC $ B alone is also accepted (see the JIS_DBCS
3200 option).
3201  
3202 JIS X 0208 was revised once more as JIS X 0208:1997, which added NO new
3203 characters; it only codified Shift_JIS as an appendix and tightened the
3204 duplicate-encoding and unification (hosetsu) rules. Its repertoire equals
3205 1990, so Jacode4e needs no separate 1997 table.
3206  
3207 =head2 2000 and 2004 (JIS X 0213)
3208  
3209 'sjis2000' / 'euc2000' / 'jis2000' and 'sjis2004' / 'euc2004' / 'jis2004'
3210 are the JIS X 0213 editions, NOT JIS X 0208. JIS X 0213 keeps plane 1 as a
3211 superset of JIS X 0208 and adds a second plane (see the next section). The
3212 2004 edition ("JIS2004") added 10 more kanji and changed the recommended
3213 glyphs of 168 kanji (for example the left-side radical of U+8FBB was
3214 changed from the three-stroke to the four-stroke shinnyou form). The
3215 Shift_JIS form of these editions is Shift_JIS-2004.
3216  
3217 =head1 JIS X 0212 vs. JIS X 0213
3218  
3219 JIS X 0212 and JIS X 0213 are two different answers to the same problem:
3220 JIS X 0208 does not contain enough kanji (personal names, place names, and
3221 other rare characters). They were designed a decade apart and with
3222 opposite strategies.
3223  
3224 =head2 JIS X 0212-1990 (supplementary kanji, "hojo kanji")
3225  
3226 =over 2
3227  
3228 =item *
3229  
3230 Established 1990-10-01, the same year as JIS X 0208-1990.
3231  
3232 =item *
3233  
3234 One 94x94 plane, 6067 characters = 5801 kanji + 266 non-kanji.
3235  
3236 =item *
3237  
3238 Designed as a SUPPLEMENT to JIS X 0208: its kanji are disjoint from the
3239 JIS X 0208 kanji (no overlap), meant to be used ALONGSIDE JIS X 0208, not
3240 to replace it.
3241  
3242 =item *
3243  
3244 Encodings: EUC-JP code set 3 (a 3-byte form, single shift SS3 0x8F then
3245 two GR bytes) and ISO-2022-JP-1 / -2 (ESC $ ( D). There is NO Shift_JIS
3246 form, because Shift_JIS has no free code space for a second plane.
3247  
3248 =item *
3249  
3250 Because the dominant PC encoding (Shift_JIS / CP932) could not carry it,
3251 JIS X 0212 was almost never used in practice. Its lasting contribution is
3252 that its 5801 kanji became one of the source sets for the CJK Unified
3253 Ideographs in Unicode.
3254  
3255 =back
3256  
3257 =head2 JIS X 0213 (2000, 2004, 2012)
3258  
3259 =over 2
3260  
3261 =item *
3262  
3263 First published 2000, revised 2004 (JIS2004) and 2012.
3264  
3265 =item *
3266  
3267 An EXTENSION and successor of JIS X 0208, not a disjoint supplement. It
3268 has two 94x94 planes. Plane 1 is a superset of JIS X 0208 (kanji levels
3269 1-3 plus non-kanji such as Ainu katakana, IPA letters, and accented
3270 Latin); plane 2 holds the level-4 kanji.
3271  
3272 =item *
3273  
3274 Added about 3695 kanji in total. Of these, 2743 were already in
3275 JIS X 0212 and 952 were new. Plane 1 fills the unused code space of
3276 JIS X 0208, and plane 2 was arranged to avoid colliding with the
3277 JIS X 0212 rows, so JIS X 0213 and JIS X 0212 can coexist in one EUC-JP
3278 stream.
3279  
3280 =item *
3281  
3282 Crucially, JIS X 0213 WAS given a Shift_JIS form (Shift_JIS-2004) -- the
3283 very thing JIS X 0212 lacked. This is why Jacode4e builds CP932X on
3284 JIS X 0213 rather than JIS X 0212 (see the RAISON D'ETRE and HOW TO USE
3285 CP932X sections).
3286  
3287 =back
3288  
3289 =head2 Summary
3290  
3291 aspect JIS X 0212-1990 JIS X 0213 (2000/2004)
3292 ----------------------------------------------------------------------
3293 role supplement to 0208 extension / successor of 0208
3294 planes 1 2 (plane 1 superset of 0208)
3295 overlap with 0208 disjoint kanji plane 1 includes all of 0208
3296 Shift_JIS form none Shift_JIS-2004
3297 kanji 5801 about 10050 (both planes)
3298 adoption effectively unused low (CP932 already entrenched)
3299 ----------------------------------------------------------------------
3300  
3301 Relative to each other: 2743 kanji are common to both; roughly 3058 are
3302 only in JIS X 0212 and 952 are only in JIS X 0213. For how many JIS X 0212
3303 code points Jacode4e can actually map (via the other supported encodings),
3304 see the JIS X 0212 COVERAGE section below.
3305  
3306 =head1 JIS X 0212 COVERAGE
3307  
3308 'euc1990' and 'jis1990' (and so the year-less 'euc' and 'jis', which
3309 mean the 1990 era) are derived from 'sjis1990' (see L</"SAMPLES"> and
3310 the encoding table above), and Shift_JIS has no JIS X 0212 repertoire,
3311 so JIS X 0212 (EUC-JP code set 3 on 'euc1990'; ESC $ ( D with the
3312 JIS_X0212 option on 'jis1990') cannot be derived that way.
3313  
3314 Since 2.13.6.23, JIS X 0212 is restored for every character that
3315 ALSO has a code in some OTHER Jacode4e-supported encoding (cp932x,
3316 cp932, cp932ibm, cp932nec, cp00930, keis78, keis83, keis90, jef,
3317 jipsj, jipse, or letsj): 2959 of the 6067 code points in the JIS
3318 X 0212 (1990) to Unicode 1.1 Table (see L</"SEE ALSO">) are covered
3319 this way. A character whose ONLY repertoire membership is JIS X 0212
3320 (the remaining 3108 code points) still has no code in Jacode4e and is
3321 GETA on 'euc1990'/'jis1990' input and output, with or without the
3322 JIS_X0212 option; giving such a character a code would require
3323 allocating a new UTF-8-SPUA-JP code point for it, shifting the whole
3324 internal code point allocation, which is out of scope.
3325  
3326 When a character is in both JIS X 0208-1990 and JIS X 0212, the
3327 JIS X 0208-1990 code always wins (JIS X 0212 was specifically
3328 designed as a supplement with no overlap in kanji, but a few symbols,
3329 such as ASCII tilde U+007E, are nominally listed in both).
3330  
3331 eras other than 1990 ('sjis'/'euc'/'jis' 1978, 1983, 2000, and 2004)
3332 are unaffected: JIS X 0212 was a 1990-era JIS supplement, and 2000/
3333 2004 already have a much larger repertoire of their own through
3334 JIS X 0213.
3335  
3336 See t/0312_euc_codeset3.t, t/0315_jis_x0212_output.t, and
3337 t/0319_euc_x0212_fill.t for worked examples, and
3338 make__DATA__/JIS/fill_euc_codeset3.pl for how the restored mapping is
3339 derived from the source table.
3340  
3341 =head1 Jacode4e vs. jacode.pl
3342  
3343 jacode.pl (also by the author of Jacode4e, and interface compatible with
3344 the classic jcode.pl) and Jacode4e solve different jobs. jacode.pl is for
3345 general Japanese text on the Web and in mail; Jacode4e is for enterprise
3346 and mainframe data interchange in Japan.
3347  
3348 =head2 Supported encodings
3349  
3350 =over 2
3351  
3352 =item *
3353  
3354 jacode.pl: 'jis' (ISO-2022-JP), 'sjis' (Shift_JIS), 'euc' (EUC-JP), and
3355 'utf8'. On Perl 5.8.1 or later, an encoding name it does not know itself is
3356 delegated to Encode::from_to.
3357  
3358 =item *
3359  
3360 Jacode4e: about twenty mnemonics, including cp932x, cp932 / cp932ibm /
3361 cp932nec, sjis / euc / jis (five year editions each; see the JIS X 0208
3362 AND JIS X 0213 ERAS section), sjis2004 / euc2004 / jis2004, the mainframe
3363 host codes cp00930, keis78 / keis83 / keis90, jef / jef9p, jipsj / jipse,
3364 letsj, and utf8 / utf8.1 / utf8jp.
3365  
3366 =back
3367  
3368 =head2 Supported character sets
3369  
3370 =over 2
3371  
3372 =item *
3373  
3374 jacode.pl: JIS X 0201, JIS X 0208, and (on input) JIS X 0212; JIS X 0213
3375 is not supported. A JIS X 0212 character becomes GETA when the target
3376 cannot hold it.
3377  
3378 =item *
3379  
3380 Jacode4e: JIS X 0201, JIS X 0208 (five editions), JIS X 0212 (partial; see
3381 the JIS X 0212 COVERAGE section), JIS X 0213 (both planes), plus the vendor
3382 and mainframe host repertoires (EBCDIC / EBCDIK with shift codes, and
3383 vendor GAIJI areas).
3384  
3385 =back
3386  
3387 =head2 Calling convention
3388  
3389 jacode.pl: jacode::convert(\$line, $OUTPUT [, $INPUT [, $option_string]])
3390 Jacode4e: Jacode4e::convert(\$line, $OUTPUT, $INPUT [, { %option }])
3391  
3392 =over 2
3393  
3394 =item *
3395  
3396 Input encoding: OPTIONAL in jacode.pl (it is guessed by jacode::getcode()
3397 when omitted); MANDATORY in Jacode4e (there is no code guessing, so the
3398 conversion is always deterministic).
3399  
3400 =item *
3401  
3402 Fourth argument: a short STRING ('z' / 'h' for kana width) in jacode.pl; a
3403 HASH REFERENCE of named options in Jacode4e (INPUT_LAYOUT, OUTPUT_SHIFTING,
3404 SPACE, GETA, OVERRIDE_MAPPING, the JIS_* controls, ROUND_TRIP, and so on).
3405  
3406 =back
3407  
3408 =head2 Features unique to each
3409  
3410 =over 2
3411  
3412 =item *
3413  
3414 Only in jacode.pl: code auto-detection (getcode / get_inout), half-width
3415 <-> full-width kana conversion (z2h_xxx / h2z_xxx), the jcode.pl Perl 4
3416 calling style, and Encode delegation on modern Perl.
3417  
3418 =item *
3419  
3420 Only in Jacode4e: CP932X and the JIS X 0213 repertoire, mainframe host
3421 codes with EBCDIC / EBCDIK shift handling, fixed-length record layouts
3422 (INPUT_LAYOUT), byte-exact GETA / SPACE control, OVERRIDE_MAPPING, and
3423 reversible ROUND_TRIP conversion through the GAIJI area.
3424  
3425 =back
3426  
3427 Both are pure Perl, take $line by reference and overwrite it in place, and
3428 return a character count. Both run on a wide range of Perl versions;
3429 Jacode4e runs from Perl 5.005_03 to the newest Perl.
3430  
3431 =head1 DEPENDENCIES
3432  
3433 perl version 5.005_03 to newest perl
3434  
3435 =head1 SOFTWARE LIFE CYCLE
3436  
3437 Jacode.pm
3438 jcode.pl Encode.pm jacode.pl Jacode4e Jacode4e::RoundTrip
3439 --------------------------------------------------------------------------------
3440 1993 Perl4.036 | |
3441 : : : :
3442 1999 Perl5.00503 | | | |
3443 2000 Perl5.6 | | | |
3444 2002 Perl5.8 | Born | | |
3445 2007 Perl5.10 V | | | |
3446 2010 Perl5.12 EOL | Born | |
3447 2011 Perl5.14 | | | |
3448 2012 Perl5.16 | | | |
3449 2013 Perl5.18 | | | |
3450 2014 Perl5.20 | | | |
3451 2015 Perl5.22 | | | |
3452 2016 Perl5.24 | | | |
3453 2017 Perl5.26 | | | |
3454 2018 Perl5.28 | | Born Born
3455 2019 Perl5.30 | | | |
3456 2020 Perl5.32 : : : :
3457 2030 Perl5.52 : : : :
3458 2040 Perl5.72 : : : :
3459 2050 Perl5.92 : : : :
3460 2060 Perl5.112 : : : :
3461 2070 Perl5.132 : : : :
3462 2080 Perl5.152 : : : :
3463 2090 Perl5.172 : : : :
3464 2100 Perl5.192 : : : :
3465 2110 Perl5.212 : : : :
3466 2120 Perl5.232 : : : :
3467 : : V V V V
3468 --------------------------------------------------------------------------------
3469  
3470 =head1 Why and how to CP932X Born?
3471  
3472 In order to know why CP932X exists the way it is, one must first know why CP932X born.
3473  
3474 Q1) Is CCS of JIS X 0208 enough?
3475  
3476 A1) No. Often we require GAIJI.
3477  
3478 Q2) Is CCS of JIS X 0213 enough?
3479  
3480 A2) It's not perfect, but enough for many people.
3481  
3482 Q3) Is CES by UTF-8 good?
3483  
3484 A3) No. On Japanese information processing, it's unstable and not popular still now.
3485  
3486 Q4) Is CES by Shift_JIS-2004 good?
3487  
3488 A4) No. Because Shift_JIS-2004 cannot support very popular CP932 and your GAIJI. We need a realistic solution to solving real problem.
3489  
3490 Q5) Is escape sequence good idea to support CCS of JIS X 0213?
3491  
3492 A5) No. Because the programming is so hard.
3493  
3494 Q6) Which character is best for single shift code to support CCS of JIS X 0213?
3495  
3496 =over 2
3497  
3498 =item *
3499  
3500 The single shift code must be a DBCS code, because field with DBCS type cannot store SBCS code in some cases
3501  
3502 =item *
3503  
3504 Moreover, all GAIJI code points must be yours
3505  
3506 =item *
3507  
3508 The impact of this solution must be minimum
3509  
3510 =back
3511  
3512 A6) We selected "1-55-27" for single shift code. Because it called "ghost character" and cannot use any purpose
3513  
3514 =head1 How To Update This Distribution
3515  
3516 Someday all authors of Jacode4e module may get run over by a bus.
3517  
3518 So we write here how to update this distribution for you.
3519  
3520 We wish you good luck.
3521  
3522 =over 2
3523  
3524 =item 1
3525  
3526 (MUST) update file "lib/Jacode4e.pm"
3527  
3528 =item 2
3529  
3530 (MUST) update $VERSION of file "lib/Jacode4e.pm"
3531  
3532 =item 3
3533  
3534 (MUST) append to change log to file "Changes"
3535  
3536 =item 4
3537  
3538 (if you need) update file "README"
3539  
3540 =item 5
3541  
3542 (if you need) update or add files "t/*.t"
3543  
3544 =item 6
3545  
3546 (if you need) update file "MANIFEST"
3547  
3548 =item 7
3549  
3550 repeat command: pmake test [Enter] until all tests PASS
3551  
3552 =item 8
3553  
3554 type command: pmake dist [Enter]
3555  
3556 =item 9
3557  
3558 upload *.tar.gz to PAUSE(The [Perl programming] Authors Upload Server)
3559  
3560 =back
3561  
3562 =head1 AUTHOR
3563  
3564 INABA Hitoshi L<ina.cpan@gmail.com> in a CPAN
3565  
3566 This project was originated by INABA Hitoshi.
3567  
3568 =head1 LICENSE AND COPYRIGHT
3569  
3570 This software is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See L<perlartistic>.
3571  
3572 This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
3573  
3574 =head1 SEE ALSO
3575  
3576 Windows-31J information
3577 http://www2d.biglobe.ne.jp/%7Emsyk/charcode/cp932/index.html
3578  
3579 Windows-31 J Character Set
3580 http://www2d.biglobe.ne.jp/%7Emsyk/charcode/cp932/Windows-31J-charset.html
3581  
3582 Windows-31 J Duplicate Coded Characters and Unicode
3583 http://www2d.biglobe.ne.jp/%7Emsyk/charcode/cp932/uni2sjis-Windows-31J.html
3584  
3585 Data transformation function provided by WebSphere MQ
3586 Chapter 11. Problems with converting certain characters (Japanese language related)
3587 https://www.ibm.com/developerworks/jp/websphere/library/wmq/mq_transform/11.html
3588 https://www.ibm.com/developerworks/jp/websphere/library/wmq/mq_transform/11-pdf.pdf
3589  
3590 CPGID 00290
3591 https://www-01.ibm.com/software/globalization/cdra/
3592 https://www-01.ibm.com/software/globalization/cp/cp00290.html
3593 ftp://ftp.software.ibm.com/software/globalization/gcoc/attachments/CP00290.pdf
3594 ftp://ftp.software.ibm.com/software/globalization/gcoc/attachments/CP00290.txt
3595  
3596 IBM Japanese Graphic Character Set, Kanji DBCS Host and DBCS - PC
3597 https://www-01.ibm.com/software/globalization/cdra/
3598 ftp://ftp.software.ibm.com/software/globalization/gcoc/attachments/CP00300.pdf
3599  
3600 IBM Kanji code list
3601 N:GC18-2040-3
3602  
3603 HiRDB Datareplicator Version 8 manuals, Hitachi, Ltd.
3604 http://itdoc.hitachi.co.jp/manuals/3020/3020636050/W3600001.HTM
3605 http://itdoc.hitachi.co.jp/manuals/3020/3020636050/W3600166.HTM
3606 http://itdoc.hitachi.co.jp/manuals/3020/30203J3820/ISUS0268.HTM
3607 http://itdoc.hitachi.co.jp/manuals/3000/30003D5820/CLNT0235.HTM
3608  
3609 KEIS code book, Culti Co.,Ltd.
3610 http://www.culti.co.jp/2016/02/01/%e3%82%ab%e3%83%ab%e3%83%81%e7%99%ba%e8%a1%8c%e6%9b%b8%e7%b1%8d/
3611  
3612 Appendix B.2 Character code differences
3613 http://itdoc.hitachi.co.jp/manuals/3020/3020759580/G5950334.HTM
3614  
3615 Appendix E Handling of character codes in PDE - Form Designer (applies only to distributed type PDE)
3616 http://itdoc.hitachi.co.jp/manuals/3020/30203p0360/PDEF0203.HTM
3617  
3618 HITAC Character code table (KEIS83)
3619 Document number 8080-2-30
3620 Document number 8080-2-074-10
3621 Document number 8080-2-100-10
3622 Document number 8080-2-109
3623  
3624 Linkexpress, FUJITSU LIMITED
3625 http://software.fujitsu.com/jp/manual/manualfiles/M080093/J2X15930/03Z200/index.html
3626 http://software.fujitsu.com/jp/manual/manualfiles/M080093/J2X15930/03Z200/unyo05/unyo0413.html
3627 http://software.fujitsu.com/jp/manual/manualfiles/m130010/b1fw5992/01z200/b5992-c-00-00.html
3628  
3629 JEF code book, Culti Co.,Ltd.
3630 http://www.culti.co.jp/2016/02/01/jef%e3%82%b3%e3%83%bc%e3%83%89%e3%83%96%e3%83%83%e3%82%af/
3631  
3632 Linkexpress operation manual J2X1-5930-03Z2(00) FUJITSU LIMITED
3633 http://software.fujitsu.com/jp/manual/manualfiles/M080093/J2X15930/03Z200/index.html
3634 http://software.fujitsu.com/jp/manual/manualfiles/M070086/J2X15930/01Z200/unyo05/unyo0416.html
3635 http://software.fujitsu.com/jp/manual/manualfiles/M070086/J2X15930/01Z200/unyo05/unyo0420.html
3636 http://software.fujitsu.com/jp/manual/manualfiles/M070086/J2X15930/01Z200/unyo05/unyo0421.html
3637 http://software.fujitsu.com/jp/manual/manualfiles/m120010/b1fw5691/05z200/index.html
3638 http://software.fujitsu.com/jp/manual/manualfiles/m120010/b1fw5691/05z200/b5691-g-00-00.html
3639 https://software.fujitsu.com/jp/manual/manualfiles/m200002/b1wd0741/14z200/b0741-c-01-00.html
3640 https://software.fujitsu.com/jp/manual/manualfiles/m200002/b1wd0741/14z200/b0741-c-07-00.html
3641 https://software.fujitsu.com/jp/manual/manualfiles/m200002/b1wd0741/14z200/b0741-c-08-00.html
3642 https://software.fujitsu.com/jp/manual/manualfiles/m200002/b1wd0741/14z200/b0741-c-09-00.html
3643  
3644 hidekatsu-izuno/jef4j
3645 https://github.com/hidekatsu-izuno/jef4j
3646  
3647 JHTc(JHT command edition)
3648 http://www.vector.co.jp/soft/winnt/util/se094205.html
3649  
3650 FACOM JEF Character code index dictionary
3651 Manual code 99FR-0012-3
3652 Manual code 99FR-8010-1
3653  
3654 JIPS code book, Culti Co.,Ltd.
3655 http://www.culti.co.jp/2016/02/01/jips%e3%82%b3%e3%83%bc%e3%83%89%e3%83%96%e3%83%83%e3%82%af/
3656  
3657 NEC Corporation Standard character set dictionary <BASIC>
3658 ZBB10-3
3659  
3660 NEC Corporation Standard character set dictionary <EXTENSION>
3661 ZBB11-2
3662  
3663 ClearPath Enterprise Servers MultiLingual System Administration, Operations, and Programming Guide ClearPath MCP 15.0 April 2013 8600 0288-308
3664 https://public.support.unisys.com/aseries/docs/ClearPath-MCP-16.0/PDF/86000288-308.pdf
3665  
3666 Heterogeneous database cooperation among heterogeneous OS environments
3667 http://www.unisys.co.jp/tec_info/tr56/5605.htm
3668  
3669 UNISYS_SJIS KANJI CONVERT(DOS ver)
3670 https://www.vector.co.jp/soft/dos/util/se238607.html
3671  
3672 ANSI X3.4-1968 (US-ASCII) with 0x60/0x27 as left/right single quotation mark to Unicode
3673 http://www.unicode.org/Public/MAPPINGS/VENDORS/MISC/US-ASCII-QUOTES.TXT
3674  
3675 JIS X 0201 (1976) to Unicode 1.1 Table
3676 http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/JIS0201.TXT
3677  
3678 JIS X 0208 (1990) to Unicode
3679 http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/JIS0208.TXT
3680  
3681 JIS X 0212 (1990) to Unicode
3682 http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/JIS0212.TXT
3683  
3684 cp932 to Unicode table
3685 ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP932.TXT
3686 https://support.microsoft.com/ja-jp/help/170559/prb-conversion-problem-between-shift-jis-and-unicode
3687  
3688 Shift_JIS-2004 to Unicode table
3689 http://x0213.org/codetable/sjis-0213-2004-std.txt
3690  
3691 UTF-8, a transformation format of ISO 10646
3692 https://www.rfc-editor.org/rfc/rfc3629.txt
3693  
3694 iDIVO Ver.1.4.0
3695 https://www.hulft.com/shukka/files/iDIVO/SP-DV1-CC-02-01.pdf
3696  
3697 Kanji shift code
3698 https://ja.wikipedia.org/wiki/%E6%BC%A2%E5%AD%97%E3%82%B7%E3%83%95%E3%83%88%E3%82%B3%E3%83%BC%E3%83%89
3699  
3700 U+32FF SQUARE ERA NAME REIWA
3701 https://unicode.org/versions/Unicode12.1.0/
3702 http://en.glyphwiki.org/wiki/u32ff
3703 https://www.ibm.com/support/pages/zos%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B%E6%96%B0%E5%85%83%E5%8F%B7%E5%AF%BE%E5%BF%9C%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6
3704 http://www.hitachi-support.com/alert/ss/HWS17-007/list.pdf#page=29
3705  
3706 CJKV Information Processing
3707 https://resources.oreilly.com/examples/9781565922242/tree/master/AppQ/78-vs-83-1.sjs
3708 https://resources.oreilly.com/examples/9781565922242/tree/master/AppQ/78-vs-83-2.sjs
3709 https://resources.oreilly.com/examples/9781565922242/tree/master/AppQ/78-vs-83-3.sjs
3710 https://resources.oreilly.com/examples/9781565922242/tree/master/AppQ/78-vs-83-4.sjs
3711 https://resources.oreilly.com/examples/9781565922242/tree/master/AppQ/83-vs-90-1.sjs
3712 https://resources.oreilly.com/examples/9781565922242/tree/master/AppQ/83-vs-90-2.sjs
3713 https://resources.oreilly.com/examples/9781565922242/tree/master/AppQ/TJ2.sjs
3714 https://resources.oreilly.com/examples/9781565922242/tree/master/AppQ/TJ3.sjs
3715 https://resources.oreilly.com/examples/9781565922242/tree/master/AppQ/TJ4.sjs
3716  
3717 Very old fj.kanji discussion
3718 http://www.ie.u-ryukyu.ac.jp/~kono/fj/fj.kanji/index.html
3719  
3720 jcode.pl: Perl library for Japanese character code conversion, Kazumasa Utashiro
3721 ftp://ftp.iij.ad.jp/pub/IIJ/dist/utashiro/perl/
3722 http://web.archive.org/web/20090608090304/http://srekcah.org/jcode/
3723 ftp://ftp.oreilly.co.jp/pcjp98/utashiro/
3724 http://mail.pm.org/pipermail/tokyo-pm/2002-March/001319.html
3725 https://twitter.com/uta46/status/11578906320
3726  
3727 jacode - Perl program for Japanese character code conversion
3728 https://metacpan.org/search?q=jacode.pl
3729  
3730 Jacode4e - Converts Character Encodings for Enterprise in Japan
3731 https://metacpan.org/pod/Jacode4e
3732  
3733 Jacode4e::RoundTrip - Jacode4e for round-trip conversion in JIS X 0213
3734 https://metacpan.org/pod/Jacode4e::RoundTrip
3735  
3736 Modern::Open - Autovivification, Autodie, and 3-args open support
3737 https://metacpan.org/pod/Modern::Open
3738  
3739 BackPAN
3740 http://backpan.perl.org/authors/id/I/IN/INA/
3741  
3742 =head1 ACKNOWLEDGEMENTS
3743  
3744 Thank on good luck and all stakeholders, we could make this software.
3745  
3746 We received character code table of KEIS, JEF, and JIPS by electronic data from Culti Co.,Ltd.-san.
3747 Moreover, they allowed that we make open source software using it.
3748  
3749 Thank you, Culti Co.,Ltd-san.!
3750  
3751 =head1 HELLO WORLD
3752  
3753 To support JIS X 0213:2004,
3754  
3755 Using ghost character 1-55-27(it's me!),
3756  
3757 Found by JIS X 0208:1997,
3758  
3759 Was born in JIS C 6226-1978.
3760  
3761 Hello world,
3762  
3763 What do we hack, today?
3764  
3765 -- 1-55-27, 2018-01-27
3766  
3767 =cut
3768  
3769 76 1;
3770  
3771 __DATA__
↑ Summary