1 |
wakaba |
1.1 |
#?PESRC/1.0 |
2 |
|
|
Name: |
3 |
|
|
ISO2022::JUNETCompatible |
4 |
|
|
ShortDescription: |
5 |
|
|
An Encode module of 7-bit ISO/IEC 2022 |
6 |
|
|
based compatible coding systems for Japanese |
7 |
|
|
POD:DESCRIPTION: |
8 |
|
|
Due to the historical reason, some of current |
9 |
|
|
implementions of JIS coded character sets support |
10 |
|
|
pairs of same characters dupplicately, with |
11 |
|
|
halfwidth/fullwidth property. |
12 |
|
|
|
13 |
|
|
Although this situation is undesirable, we can't ignore |
14 |
|
|
such historical implementions and latest JIS coded |
15 |
|
|
character set standards admire such dupulicate |
16 |
|
|
encoding to and only to "keep compatibility with |
17 |
|
|
current practice." |
18 |
|
|
|
19 |
|
|
This module provides encoder and decoder for such |
20 |
|
|
coding systems that comform to JIS and that based |
21 |
|
|
on 7-bit ISO/IEC 2022 structure. |
22 |
|
|
|
23 |
|
|
Those coding systems SHOULD not be used for new |
24 |
|
|
implemention or new data. They may not comform |
25 |
|
|
to future version of JIS or other standards. |
26 |
|
|
|
27 |
|
|
{ |
28 |
|
|
Name: |
29 |
|
|
iso-2022-jp-fullwidth |
30 |
|
|
Cversion: |
31 |
|
|
C:bit=7 |
32 |
|
|
C:G0=G94:B |
33 |
|
|
C:designate:*:default=-1 |
34 |
|
|
C:designate:G94:B=0 ## ASCII |
35 |
|
|
C:designate:G94:J=0 ## JIS X 0201 Roman |
36 |
|
|
C:designate:G94n:@=0 ## JIS X 0208-1978 |
37 |
|
|
C:designate:G94n:B=0 ## JIS X 0208-1983 |
38 |
|
|
C:designate:G94n:B@=0 ## JIS X 0208-1990 |
39 |
|
|
C:option:{use_revision}=0 |
40 |
|
|
C:option:{undef_char}=["\x22\x2E", {type => 'G94n', charset => 'B'}] |
41 |
|
|
Encode: |
42 |
|
|
C:GR=undef |
43 |
|
|
C:C1=C1:~ |
44 |
|
|
C:G1=G96:~ |
45 |
|
|
=>ucs_to_ascii ucs_to_jisx0208_1983_irv ucs_to_jisx0208_1978_irv ucs_to_jisx0201_latin |
46 |
|
|
->iso2022:C |
47 |
|
|
Decode: |
48 |
|
|
<-iso2022:C |
49 |
|
|
<=jisx0208_1983_irv_to_ucs jisx0208_1978_irv_to_ucs jisx0201_latin_to_ucs jisx0201_katakana_to_ucs jisx0212_1990_irv_to_ucs jisx0208_1997_irv_to_ucs |
50 |
|
|
Description: |
51 |
|
|
ISO/IEC 2022 based 7-bit encoding for Japanese, |
52 |
|
|
ASCII + JIS X 0201 + JIS X 0208-1978 + JIS X 0208-1983. |
53 |
|
|
Some characters defined in JIS X 0208 are mapped to FULLWIDTH |
54 |
|
|
area of UCS as specified in JIS X 0208:1997. |
55 |
|
|
|
56 |
|
|
This encoding is a "compatible" version of |
57 |
|
|
C<iso-2022-jp> defined in Encode::ISO2022::JUNET. |
58 |
|
|
|
59 |
|
|
When decoding, mapping tables from coded character |
60 |
|
|
sets listed below to UCS are also loaded to restore |
61 |
|
|
incorrectly labeled data. |
62 |
|
|
|
63 |
|
|
JIS X 0201 Katakana coded character set, |
64 |
|
|
JIS X 0212-1990, JIS X 0213:2000 |
65 |
|
|
|
66 |
|
|
Note that for Windows user, Encode::ISO2022::CP932 |
67 |
|
|
may be useful to try to restore broken "ISO-2022-JP" |
68 |
|
|
data. |
69 |
|
|
} |
70 |
|
|
|
71 |
|
|
{ |
72 |
|
|
Name: |
73 |
|
|
iso-2022-jp-3-fullwidth |
74 |
|
|
Cversion: |
75 |
|
|
C:bit=7 |
76 |
|
|
C:G0=G94:B |
77 |
|
|
C:designate:*:default=-1 |
78 |
|
|
C:designate:G94:B=0 ## ASCII |
79 |
|
|
#C:designate:G94n:B=0 ## JIS X 0213:2000 plane 1 |
80 |
|
|
C:designate:G94n:O=0 ## JIS X 0213:2000 plane 1 |
81 |
|
|
C:designate:G94n:P=0 ## JIS X 0213:2000 plane 2 |
82 |
|
|
C:option:{undef_char}=["\x22\x2E", {type => 'G94n', charset => 'O'}] |
83 |
|
|
Encode: |
84 |
|
|
C:GR=undef |
85 |
|
|
C:C1=C1:~ |
86 |
|
|
C:G1=G96:~ |
87 |
|
|
=>ucs_to_ascii ucs_to_jisx0213_2000_1_irv ucs_to_jisx0213_2000_2 |
88 |
|
|
->iso2022:C |
89 |
|
|
Decode: |
90 |
|
|
<-iso2022:C |
91 |
|
|
<=jisx0213_2000_1_irv_to_ucs jisx0213_2000_2_to_ucs jisx0208_1997_irv_to_ucs |
92 |
|
|
Description: |
93 |
|
|
ISO/IEC 2022 based 7-bit encoding for Japanese, |
94 |
|
|
ISO/IEC 646 IRV + JIS X 0213:2000. Some characters |
95 |
|
|
defined in JIS X 0213 are mapped to FULLWIDTH |
96 |
|
|
area of UCS as specified in JIS X 0213:2000. |
97 |
|
|
|
98 |
|
|
This encoding is a "compatible" version of |
99 |
|
|
C<iso-2022-jp-3> defined in Encode::ISO2022::JUNET. |
100 |
|
|
} |
101 |
|
|
|
102 |
|
|
POD:SEE ALSO: |
103 |
|
|
%%ReferenceJISX0212_1995%% |
104 |
|
|
|
105 |
|
|
%%ReferenceJISX0208_1997%% |
106 |
|
|
|
107 |
|
|
%%ReferenceJISX0213_2000%% |
108 |
|
|
|
109 |
|
|
%%ReferenceRFC1468%% |
110 |
|
|
|
111 |
|
|
L<Encode::ISO2022::EightBit> |
112 |
|
|
|
113 |
|
|
POD:LICENSE: |
114 |
|
|
Copyright %%YEAR%% Wakaba <w@suika.fam.cx> |
115 |
|
|
|
116 |
|
|
%%PerlLicense%% |