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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Dec 16 09:37:09 2002 UTC (21 years, 11 months ago) by wakaba
Branch: MAIN
JIS.esr: New file.

1 wakaba 1.1 #?PESRC/1.0
2     Name:
3     SJIS::JIS
4     ShortDescription:
5     The Encode module for shift JIS coding systems
6     Description:
7     This module defines convertion between perl internal
8     representation and shift JIS coding systems defined
9     in standards of JIS (Japan Industrial Standards).
10    
11     {
12     Name:
13     shift-jis-1997
14     Alias:
15     shift_jis csshiftjis japanese-shift-jis
16     Cversion:
17     C:bit=8
18     C:G0=G94:J ## JIS X 0201:1997 Graphic character set for Latin letters
19     C:G1=G94n:B@ ## JIS X 0208:1997
20     C:G2=G94:I ## JIS X 0201:1997 Graphic character set for Katakana
21     C:G3=G94n: @ ## undefined
22     C:option:{undef_char}=["\x22\x2E", {type => 'G94n', charset => 'B', revision => '@'}]
23     Encode:
24     =>ucs_to_jisx0201_latin ucs_to_jisx0208_1997 ucs_to_jisx0201_katakana
25     ->sjis:C
26     Decode:
27     <-sjis:C
28     <=jisx0201_latin_to_ucs jisx0208_1997_to_ucs jisx0201_katakana_to_ucs
29     Description:
30     Shift coded representation defined by JIS X 0208:1997 Appendix 1.
31    
32     Note that although IANA registry [IANAREG] assignes the name "MS_Kanji"
33     as an alias of "Shift_JIS", in this module this name is not aliased
34     for the shift-coded representation of JIS X 0208, since it is more
35     apropreate to associate this name with
36     Microsoft-defined-Shift-JIS. (Microsoft's shift JIS is a superset of
37     "shifted" form of JIS X 0208-1990, so it causes no problem to decode,
38     despite MS Shift JIS does not comform to JIS X 0208:1997.)
39     }
40    
41     {
42     Name:
43     shift-jis-1997-ascii
44     Alias:
45     shift_jis-ascii
46     Cversion:
47     C:bit=8
48     C:G0=G94:B ## ISO/IEC 646:1991 IRV
49     C:G1=G94n:B@ ## JIS X 0208:1997
50     C:G2=G94:I ## JIS X 0201:1997 Graphic character set for Katakana
51     C:G3=G94n: @ ## undefined
52     C:option:{undef_char}=["\x22\x2E", {type => 'G94n', charset => 'B', revision => '@'}]
53     Encode:
54     =>ucs_to_ascii ucs_to_jisx0208_1997 ucs_to_jisx0201_katakana
55     ->sjis:C
56     Decode:
57     <-sjis:C
58     <=jisx0208_1997_to_ucs jisx0201_katakana_to_ucs
59     Description:
60     Same as shift-jis-1997 but ASCII (ISO/IEC 646 IRV)
61     instead of JIS X 0201:1997 Latin character set.
62    
63     Note that this coding system does NOT comform to
64     JIS X 0208:1997 Appendix 1.
65     }
66    
67     {
68     Name:
69     shift_jisx0213
70     Alias:
71     japanese-shift-jisx0213 shift-jisx0213 x-shift_jisx0213 shift-jis-3 shift-jis-2000 sjisx0213
72     Cversion:
73     C:bit=8
74     C:G0=G94:J ## JIS X 0201:1997 Graphic character set for Latin letters
75     C:G1=G94n:O ## JIS X 0213:2000 plane 1
76     C:G2=G94:I ## JIS X 0201:1997 Graphic character set for Katakana
77     C:G3=G94n:P ## JIS X 0213:2000 plane 2
78     C:option:{undef_char}=["\x22\x2E", {type => 'G94n', charset => 'O'}]
79     Encode:
80     =>ucs_to_jisx0201_latin ucs_to_jisx0213_2000_1 ucs_to_jisx0213_2000_2 ucs_to_jisx0201_katakana
81     ->sjis:C
82     Decode:
83     <-sjis:C
84     <=jisx0201_latin_to_ucs jisx0213_2000_1_to_ucs jisx0213_2000_2_to_ucs jisx0201_katakana_to_ucs
85     Description:
86     Shift_JISX0213 coded representation, defined by
87     JIS X 0213:2000 Appendix 1 (implemention level 4).
88     }
89    
90     {
91     Name:
92     shift_jisx0213-ascii
93     Alias:
94     shift-jis-2000-ascii
95     Cversion:
96     C:bit=8
97     C:G0=G94:B ## ISO/IEC 646:1991 IRV
98     C:G1=G94n:O ## JIS X 0213:2000 plane 1
99     C:G2=G94:I ## JIS X 0201:1997 Graphic character set for Katakana
100     C:G3=G94n:P ## JIS X 0213:2000 plane 2
101     C:option:{undef_char}=["\x22\x2E", {type => 'G94n', charset => 'O'}]
102     Encode:
103     =>ucs_to_ascii ucs_to_jisx0213_2000_1 ucs_to_jisx0213_2000_2 ucs_to_jisx0201_katakana
104     ->sjis:C
105     Decode:
106     <-sjis:C
107     <=jisx0213_2000_1_to_ucs jisx0213_2000_2_to_ucs jisx0201_katakana_to_ucs
108     Description:
109     Same as Shift_JISX0213 but using ASCII (ISO/IEC 646 IRV)
110     instead of JIS X 0201:1997 Latin character set.
111     (Alias: shift-jis-2000-ascii)
112    
113     Note that this coding system does NOT comform to
114     JIS X 0213:2000 Appendix 1.
115     }
116    
117     {
118     Name:
119     shift_jisx0213-plane1
120     Cversion:
121     C:bit=8
122     C:G0=G94:J ## JIS X 0201:1997 Graphic character set for Latin letters
123     C:G1=G94n:O ## JIS X 0213:2000 plane 1
124     C:G2=G94:I ## JIS X 0201:1997 Graphic character set for Katakana
125     C:G3=G94n: @ ## undefined
126     C:option:{undef_char}=["\x22\x2E", {type => 'G94n', charset => 'O'}]
127     Encode:
128     =>ucs_to_jisx0201_latin ucs_to_jisx0213_2000_1 ucs_to_jisx0201_katakana
129     ->sjis:C
130     Decode:
131     <-sjis:C
132     <=jisx0201_latin_to_ucs jisx0213_2000_1_to_ucs jisx0201_katakana_to_ucs
133     Description:
134     Shift_JISX0213-plane1 coded representation defined by JIS X 0213:2000
135     Appendix 1 (i.e. implemention level 3).
136     }
137    
138     POD:ENCODING:POSTAMBLE:
139     Shift JISes using alternative character names defined
140     by JIS X 0208:1997 or JIS X 0213:2000 (so some characters
141     are mapped to HALFWIDTH or FULLWIDTH area of UCS) are not
142     included in this module but in L<Encode::SJIS::JISCompatible>.
143    
144     Shift JISes with JIS X 0208-1978, -1983, -1990 are not
145     included in this module since these standards did NOT
146     define them (but some vendor did implement them as non-standard
147     encodings). They are defined in Encode::SJIS::* modules
148     other than this.
149    
150     Being ones of Shift JISes defined in *JIS* TR, Shift JIS
151     variants defined by JIS TR X 0015 "XML Japanese profile"
152     is not supported by this module, but by other Encode::SJIS::*
153     modulss. Shift JISes which is given their names by JIS TR X 0015
154     are all vendor defined variants of Shift JISes and do NOT part
155     of formal JIS coded character set standards NOR comform to
156     those standards. (It might sound strange that JIS TR defines
157     names for encodings clealy not comforming to JIS standards.
158     JIS TR "standalization" process is much looser than JIS standard's.)
159    
160     POD:SEE ALSO:
161     %%ReferenceJISX0201_1997%%
162    
163     %%ReferenceJISX0208_1997%%
164    
165     %%ReferenceJISX0213_2000%%
166    
167     L<Encode::SJIS>
168    
169     %%ReferemceIANAREG%%
170    
171     POD:LICENSE:
172     Copyright %%YEAR%% Nanashi-san <nanashi-san@nanashi.invalid>
173    
174     %%PerlLicense%%

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24