/[suikacvs]/perl/lib/Encode/SJIS/JISCompatible.esr
Suika

Contents of /perl/lib/Encode/SJIS/JISCompatible.esr

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Dec 19 01:27:01 2002 UTC (21 years, 11 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
*** empty log message ***

1 #?PESRC/1.0
2 Name:
3 SJIS::JISCompatible
4 ShortDescription:
5 The Encode module for shift JIS compatible coding systems
6 Description:
7 This module defines convertion between perl internal
8 representation and compatible shift JIS coding systems defined
9 in standards of JIS (Japan Industrial Standards).
10
11 Although this situation is undesirable, we can't ignore
12 such historical implementions and latest JIS coded
13 character set standards admire such dupulicate
14 encoding to and only to "keep compatibility with
15 current practice."
16
17 This module provides encoder and decoder for such
18 coding systems that comform to JIS and that based
19 on the Shift JIS structure.
20
21 Those coding systems SHOULD NOT be used for new
22 implemention NOR new data. They may not comform
23 to future version of JIS or other standards.
24
25 {
26 Name:
27 shift-jis-1997-fullwidth
28 Cversion:
29 C:bit=8
30 C:G0=G94:J ## JIS X 0201:1997 Graphic character set for Latin letters
31 C:G1=G94n:B@ ## JIS X 0208:1997
32 C:G2=G94:I ## JIS X 0201:1997 Graphic character set for Katakana
33 C:G3=G94n:~ ## undefined
34 C:option:{undef_char}=["\x22\x2E", {type => 'G94n', charset => 'B', revision => '@'}]
35 Encode:
36 =>ucs_to_jisx0201_latin ucs_to_jisx0208_1997_latin ucs_to_jisx0201_katakana_hw
37 ->sjis:C
38 Decode:
39 <-sjis:C
40 <=jisx0201_latin_to_ucs jisx0208_1997_latin_to_ucs jisx0201_katakana_hw_to_ucs
41 Description:
42 Shift coded representation defined by JIS X 0208:1997 Appendix 1,
43 with "compatible" mapping table as defined in JIS X 0208:1997.
44
45 This coding system is the "compatible" version of C<shift-jis-1997>
46 defined in L<Encode::SJIS::JIS>.
47 }
48
49 {
50 Name:
51 shift-jis-1997-ascii-fullwidth
52 Cversion:
53 C:bit=8
54 C:G0=G94:B ## ISO/IEC 646:1991 IRV
55 C:G1=G94n:B@ ## JIS X 0208:1997
56 C:G2=G94:I ## JIS X 0201:1997 Graphic character set for Katakana
57 C:G3=G94n:~ ## undefined
58 C:option:{undef_char}=["\x22\x2E", {type => 'G94n', charset => 'B', revision => '@'}]
59 Encode:
60 =>ucs_to_ascii ucs_to_jisx0208_1997_irv ucs_to_jisx0201_katakana_hw
61 ->sjis:C
62 Decode:
63 <-sjis:C
64 <=jisx0208_1997_irv_to_ucs jisx0201_katakana_hw_to_ucs
65 Description:
66 Same as shift-jis-1997-fullwidth but ASCII (ISO/IEC 646 IRV)
67 instead of JIS X 0201:1997 Latin character set.
68
69 Note that this coding system DOES NOT comform to
70 JIS X 0208:1997 Appendix 1.
71
72 This coding system is the "compatible" version of C<shift-jis-1997-ascii>
73 defined in L<Encode::SJIS::JIS>.
74 }
75
76 {
77 Name:
78 shift_jisx0213-fullwidth
79 Cversion:
80 C:bit=8
81 C:G0=G94:J ## JIS X 0201:1997 Graphic character set for Latin letters
82 C:G1=G94n:O ## JIS X 0213:2000 plane 1
83 C:G2=G94:I ## JIS X 0201:1997 Graphic character set for Katakana
84 C:G3=G94n:P ## JIS X 0213:2000 plane 2
85 C:option:{undef_char}=["\x22\x2E", {type => 'G94n', charset => 'O'}]
86 Encode:
87 =>ucs_to_jisx0201_latin ucs_to_jisx0213_2000_1_latin ucs_to_jisx0213_2000_2 ucs_to_jisx0201_katakana_hw
88 ->sjis:C
89 Decode:
90 <-sjis:C
91 <=jisx0201_latin_to_ucs jisx0213_2000_1_latin_to_ucs jisx0213_2000_2_to_ucs jisx0201_katakana_hw_to_ucs
92 Description:
93 Shift_JISX0213 coded representation, defined by
94 JIS X 0213:2000 Appendix 1 (implemention level 4),
95 with the "compatible" mapping defined by JIS X 0213:2000.
96
97 This coding system is the "compatible" version of C<shift_jisx0213>
98 defined in L<Encode::SJIS::JIS>.
99 }
100
101 {
102 Name:
103 shift_jisx0213-ascii-fullwidth
104 Cversion:
105 C:bit=8
106 C:G0=G94:B ## ISO/IEC 646:1991 IRV
107 C:G1=G94n:O ## JIS X 0213:2000 plane 1
108 C:G2=G94:I ## JIS X 0201:1997 Graphic character set for Katakana
109 C:G3=G94n:P ## JIS X 0213:2000 plane 2
110 C:option:{undef_char}=["\x22\x2E", {type => 'G94n', charset => 'O'}]
111 Encode:
112 =>ucs_to_ascii ucs_to_jisx0213_2000_1_irv ucs_to_jisx0213_2000_2 ucs_to_jisx0201_katakana_hw
113 ->sjis:C
114 Decode:
115 <-sjis:C
116 <=jisx0213_2000_1_irv_to_ucs jisx0213_2000_2_to_ucs jisx0201_katakana_hw_to_ucs
117 Description:
118 Same as Shift_JISX0213-fullwidth but using ASCII (ISO/IEC 646 IRV)
119 instead of JIS X 0201:1997 Latin character set.
120
121 Note that this coding system does NOT comform to
122 JIS X 0213:2000 Appendix 1.
123
124 This coding system is the "compatible" version of C<shift_jisx0213-ascii>
125 defined in L<Encode::SJIS::JIS>.
126 }
127
128 POD:SEE ALSO:
129 %%ReferenceJISX0201_1997%%
130
131 %%ReferenceJISX0208_1997%%
132
133 %%ReferenceJISX0213_2000%%
134
135 L<Encode::SJIS>, L<Encode::SJIS::JIS>
136
137 L<Encode::ISO2022::JUNETCompatible>, L<Encode::ISO2022::EUCJACompatible>
138
139 POD:LICENSE:
140 Copyright %%YEAR%% Nanashi-san <nanashi-san@nanashi.invalid>
141
142 %%PerlLicense%%

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24