1 |
#?PESRC/1.0 |
2 |
Name: |
3 |
ISO2022::SevenBit |
4 |
ShortDescription: |
5 |
Encode and decode of 7-bit ISO/IEC 2022 based encodings |
6 |
|
7 |
{ |
8 |
Name: |
9 |
iso-2022-7bit-ss2 |
10 |
Alias: |
11 |
x-iso-2022-jp-2 iso-2022-ss2-7 jis_encoding csjisencoding |
12 |
Cversion: |
13 |
C:bit=7 |
14 |
C:G0=G94:B |
15 |
C:designate:C0:default=0 |
16 |
C:designate:C1:default=1 |
17 |
C:designate:G94:default=0 |
18 |
C:designate:G96:default=2 |
19 |
C:designate:G94n:default=0 |
20 |
C:designate:G96n:default=2 |
21 |
C:designate:coding_system:default=0 |
22 |
C:option:{Ginvoked_by_single_shift}->[2]=1 |
23 |
Encode:Prepare: |
24 |
C:GR=undef |
25 |
C:G1=G96:~ |
26 |
Encode: |
27 |
->iso2022:C |
28 |
Decode: |
29 |
<-iso2022:C |
30 |
Description: |
31 |
ISO/IEC 2022 based 7-bit encoding using SS2 for 96-charset. |
32 |
} |
33 |
|
34 |
{ |
35 |
Name: |
36 |
iso-2022-jp-2 |
37 |
Alias: |
38 |
csiso2022jp2 iso2022jp-2 |
39 |
Cversion: |
40 |
C:bit=7 |
41 |
C:G0=G94:B |
42 |
C:C1=C1:G ## Minimum C1 |
43 |
C:designate:*:default=-1 |
44 |
C:designate:G94:B=0 ## ASCII |
45 |
C:designate:G94:J=0 ## JIS X 0201 Latin |
46 |
C:designate:G94n:@=0 ## JIS X 0208-1978 |
47 |
C:designate:G94n:A=0 ## GB 2312-80 |
48 |
C:designate:G94n:B=0 ## JIS X 0208-1983 |
49 |
C:designate:G94n:C=0 ## KS X 1001 |
50 |
C:designate:G94n:D=0 ## JIS X 0212-1990 |
51 |
C:designate:G96:A=2 ## ISO/IEC 8859-1 GR |
52 |
C:designate:G96:F=2 ## ISO/IEC 8859-7 GR |
53 |
C:option:{Ginvoked_by_single_shift}->[2]=1 |
54 |
Encode:Prepare: |
55 |
C:GR=undef |
56 |
C:G1=G96:~ |
57 |
Encode: |
58 |
=>ucs_to_ascii ucs_to_jisx0208_1983 ucs_to_jisx0212_1990 ucs_to_gb2312_1980 ucs_to_ksx1001_1992 ucs_to_jisx0208_1978 ucs_to_isoiec8859_1 ucs_to_isoiec8859_7 ucs_to_jisx0201_latin |
59 |
->iso2022:C |
60 |
Decode: |
61 |
<-iso2022:C |
62 |
<=jisx0208_1983_to_ucs jisx0208_1978_to_ucs jisx0201_latin_to_ucs gb2312_1980_to_ucs ksx1001_1992_to_ucs isoiec8859_7_to_ucs |
63 |
Description: |
64 |
ISO/IEC 2022 based 7-bit multilingual encoding, defined by |
65 |
RFC 1554. A profiled subset of iso-2022-7bit-ss2. |
66 |
} |
67 |
|
68 |
|
69 |
{ |
70 |
Name: |
71 |
iso-2022-7bit-lock |
72 |
Alias: |
73 |
iso7 |
74 |
Cversion: |
75 |
C:bit=7 |
76 |
C:G0=G94:B |
77 |
C:designate:C0:default=0 |
78 |
C:designate:C1:default=1 |
79 |
C:designate:G94:default=0 |
80 |
C:designate:G96:default=1 |
81 |
C:designate:G94n:default=0 |
82 |
C:designate:G96n:default=1 |
83 |
C:designate:coding_system:default=0 |
84 |
Encode:Prepare: |
85 |
C:GR=undef |
86 |
C:C1=C1:~ |
87 |
C:G1=G96:~ |
88 |
Encode: |
89 |
->iso2022:C |
90 |
Decode: |
91 |
<-iso2022:C |
92 |
Description: |
93 |
ISO/IEC 2022 based 7-bit encoding using G1 and |
94 |
locking-shift for 96-charset |
95 |
} |
96 |
|
97 |
{ |
98 |
Name: |
99 |
iso-2022-int |
100 |
Alias: |
101 |
iso-2022-int-* iso-2022-int-2 |
102 |
Cversion: |
103 |
C:bit=7 |
104 |
C:G0=G94:B |
105 |
C:designate:G94:default=0 |
106 |
C:designate:G96:default=1 |
107 |
C:designate:G94n:default=0 |
108 |
C:designate:G94n:C=1 ## KS X 1001 |
109 |
C:designate:G96n:default=1 |
110 |
Encode:Prepare: |
111 |
C:GR=undef |
112 |
C:C1=C1:~ |
113 |
C:G1=G96:~ |
114 |
Encode: |
115 |
->iso2022:C |
116 |
Decode: |
117 |
<-iso2022:C |
118 |
Description: |
119 |
ISO/IEC 2022 based 7-bit encoding using G1 and locking-shift for |
120 |
KS X 1001 and 96-charset. |
121 |
|
122 |
See draft-ohta-text-encoding (expired Internet Drafts) |
123 |
for more information. |
124 |
} |
125 |
|
126 |
{ |
127 |
Name: |
128 |
iso-2022-kr |
129 |
Alias: |
130 |
korean-iso-7bit csiso2022kr cp50225 kr2022 korean-mail |
131 |
Cversion: |
132 |
C:bit=7 |
133 |
C:G0=G94:B |
134 |
C:designate:*:default=-1 |
135 |
C:designate:G94:B=0 ## ASCII |
136 |
C:designate:G94n:C=1 ## KS X 1001 |
137 |
Encode:Prepare: |
138 |
C:GR=undef |
139 |
C:C1=C1:~ |
140 |
C:G1=G96:~ |
141 |
Encode: |
142 |
=>ucs_to_ascii ksx1001_1992_to_ucs |
143 |
->iso2022:C |
144 |
Decode: |
145 |
C:G1=G94n:C ## KS X 1001 |
146 |
<-iso2022:C |
147 |
<=ksx1001_1992_to_ucs |
148 |
Description: |
149 |
An ISO/IEC 2022 based 7-bit encoding for Korean, |
150 |
defined by RFC 1557. |
151 |
} |
152 |
|
153 |
{ |
154 |
Name: |
155 |
iso-2022-int-1 |
156 |
Cversion: |
157 |
C:bit=7 |
158 |
C:G0=G94:B |
159 |
C:designate:*:default=-1 |
160 |
C:designate:G94:B=0 ## ASCII |
161 |
C:designate:G94:J=0 ## JIS X 0201 Latin |
162 |
C:designate:G94n:@=0 ## JIS X 0208-1978 |
163 |
C:designate:G94n:A=0 ## GB 2312-80 |
164 |
C:designate:G94n:B=0 ## JIS X 0208-1983 |
165 |
C:designate:G94n:C=1 ## KS X 1001 |
166 |
C:designate:G94n:D=0 ## JIS X 0212-1990 |
167 |
C:designate:G96:A=1 ## ISO/IEC 8859-1 GR |
168 |
C:designate:G96:F=0 ## ISO/IEC 8859-7 GR |
169 |
Encode:Prepare: |
170 |
C:GR=undef |
171 |
C:C1=C1:~ |
172 |
C:G1=G96:~ |
173 |
Encode: |
174 |
=>ucs_to_ascii ucs_to_jisx0208_1983 ucs_to_gb2312_1980 ucs_to_ksx1001_1992 ucs_to_isoiec8859_1 ucs_to_isoiec8859_7 ucs_to_jisx0212_1990 ucs_to_jisx0208_1978 ucs_to_jisx0201_latin |
175 |
->iso2022:C |
176 |
Decode: |
177 |
C:G1=G94n:C ## KS X 1001 |
178 |
<-iso2022:C |
179 |
<=jisx0208_1983_to_ucs jisx0208_1978_to_ucs jisx0201_latin_to_ucs gb2312_1980_to_ucs ksx1001_1992_to_ucs isoiec8859_7_to_ucs |
180 |
Description: |
181 |
An ISO/IEC 2022 based 7-bit multilingual encoding, |
182 |
defined by draft-ohta-text-encoding. |
183 |
} |
184 |
|
185 |
|
186 |
{ |
187 |
Name: |
188 |
iso-2022-7bit-lock-ss2 |
189 |
Alias: |
190 |
iso-2022-cjk |
191 |
Cversion: |
192 |
require:private:gb |
193 |
require:private:cns |
194 |
require:private:mule |
195 |
C:bit=7 |
196 |
C:G0=G94:B |
197 |
C:designate:C0:default=0 |
198 |
C:designate:C1:default=1 |
199 |
C:designate:G94:default=0 |
200 |
C:designate:G94n:default=0 |
201 |
C:designate:G94n:A=1 ## GB 2312-80 |
202 |
C:designate:G94n:C=1 ## KS X 1001 |
203 |
C:designate:G94n:E=1 ## ISO-IR 165 |
204 |
C:designate:G94n:G=1 ## CNS 11643 plane 1 |
205 |
C:designate:G94n:CSgb12345=1 ## GB 12345-90 |
206 |
C:designate:G96:default=2 |
207 |
C:designate:G96n:default=2 |
208 |
C:designate:G94n:CSgb7589=2 ## GB 7589-87 |
209 |
C:designate:G94n:CSgb13131=2 ## GB 13131-91 |
210 |
C:designate:G94n:H=2 ## CNS 11643 plane 2 |
211 |
C:designate:G94n:CSgb7590=3 ## GB 7590-87 |
212 |
C:designate:G94n:CSgb13132=3 ## GB 13131-91 |
213 |
C:designate:G94n:I=3 ## CNS 11643 plane 3 |
214 |
C:designate:G94n:J=3 ## CNS 11643 plane 4 |
215 |
C:designate:G94n:K=3 ## CNS 11643 plane 5 |
216 |
C:designate:G94n:L=3 ## CNS 11643 plane 6 |
217 |
C:designate:G94n:M=3 ## CNS 11643 plane 7 |
218 |
C:designate:G94n:CScns11643_8=3 ## CNS 11643 plane 8 |
219 |
C:designate:G94n:CScns11643_9=3 ## CNS 11643 plane 9 |
220 |
C:designate:G94n:CScns11643_10=3 ## CNS 11643 plane 10 |
221 |
C:designate:G94n:CScns11643_11=3 ## CNS 11643 plane 11 |
222 |
C:designate:G94n:CScns11643_12=3 ## CNS 11643 plane 12 |
223 |
C:designate:G94n:CScns11643_13=3 ## CNS 11643 plane 13 |
224 |
C:designate:G94n:CScns11643_14=3 ## CNS 11643 plane 14 |
225 |
C:designate:G94n:CScns11643_15=3 ## CNS 11643 plane 15 |
226 |
C:designate:coding_system:default=0 |
227 |
Encode:Prepare: |
228 |
C:GR=undef |
229 |
C:C1=C1:~ |
230 |
C:G1=G96:~ |
231 |
Encode: |
232 |
->iso2022:C |
233 |
Decode: |
234 |
C:G1=G94n:C |
235 |
<-iso2022:C |
236 |
Description: |
237 |
An ISO/IEC 2022 based 7-bit encoding. Mixture of ISO-2022-JP, |
238 |
ISO-2022-KR, ISO-2022-CN. |
239 |
} |
240 |
|
241 |
{ |
242 |
Name: |
243 |
iso-2022-cn |
244 |
Alias: |
245 |
chinese-iso-7bit iso2022cn-gb |
246 |
Cversion: |
247 |
C:bit=7 |
248 |
C:G0=G94:B |
249 |
C:designate:*:default=-1 |
250 |
C:designate:G94:B=0 ## ASCII |
251 |
C:designate:G94n:A=1 ## GB 2312-80 |
252 |
C:designate:G94n:G=1 ## CNS 11643 plane 1 |
253 |
C:designate:G94n:H=2 ## CNS 11643 plane 2 |
254 |
Encode:Prepare: |
255 |
C:GR=undef |
256 |
C:C1=C1:~ |
257 |
C:G1=G96:~ |
258 |
Encode: |
259 |
=>ucs_to_ascii ucs_to_gb2312_1980 ucs_to_cns11643_1 ucs_to_cns11643_2 |
260 |
->iso2022:C |
261 |
Decode: |
262 |
<-iso2022:C |
263 |
<=gb2312_1980_to_ucs cns11643_1_to_ucs cns11643_2_to_ucs |
264 |
Description: |
265 |
An ISO/IEC 2022 based 7-bit encoding for Chinese, |
266 |
defined by RFC 1922. |
267 |
|
268 |
This coding system prefers GB 2312-80 (Some people |
269 |
names this as C<iso2022cn-gb>.) when encoding, because |
270 |
Taiwan people mainly use C<Big5>, not CNS 11643. |
271 |
CNS 11643-preferred version is named as C<iso2022cn-cns>. |
272 |
} |
273 |
|
274 |
{ |
275 |
Name: |
276 |
iso2022cn-cns |
277 |
Cversion: |
278 |
C:bit=7 |
279 |
C:G0=G94:B |
280 |
C:designate:*:default=-1 |
281 |
C:designate:G94:B=0 ## ASCII |
282 |
C:designate:G94n:A=1 ## GB 2312-80 |
283 |
C:designate:G94n:G=1 ## CNS 11643 plane 1 |
284 |
C:designate:G94n:H=2 ## CNS 11643 plane 2 |
285 |
Encode:Prepare: |
286 |
C:GR=undef |
287 |
C:C1=C1:~ |
288 |
C:G1=G96:~ |
289 |
Encode: |
290 |
=>ucs_to_ascii ucs_to_cns11643_1 ucs_to_cns11643_2 ucs_to_gb2312_1980 |
291 |
->iso2022:C |
292 |
Decode: |
293 |
<-iso2022:C |
294 |
<=cns11643_1_to_ucs cns11643_2_to_ucs gb2312_1980_to_ucs |
295 |
Description: |
296 |
An ISO/IEC 2022 based 7-bit encoding for Chinese, |
297 |
defined by RFC 1922. |
298 |
} |
299 |
|
300 |
{ |
301 |
Name: |
302 |
iso-2022-cn-ext |
303 |
Cversion: |
304 |
require:private:gb |
305 |
require:private:cns |
306 |
C:bit=7 |
307 |
C:G0=G94:B |
308 |
C:designate:*:default=-1 |
309 |
C:designate:G94n:A=1 ## GB 2312-80 |
310 |
C:designate:G94n:E=1 ## ISO-IR 165 |
311 |
C:designate:G94n:G=1 ## CNS 11643 plane 1 |
312 |
C:designate:G94n:CSgb12345=1 ## GB 12345-90 |
313 |
C:designate:G94n:CSgb7589=2 ## GB 7589-87 |
314 |
C:designate:G94n:CSgb13131=2 ## GB 13131-91 |
315 |
C:designate:G94n:H=2 ## CNS 11643 plane 2 |
316 |
C:designate:G94n:CSgb7590=3 ## GB 7590-87 |
317 |
C:designate:G94n:CSgb13132=3 ## GB 13131-91 |
318 |
C:designate:G94n:I=3 ## CNS 11643 plane 3 |
319 |
C:designate:G94n:J=3 ## CNS 11643 plane 4 |
320 |
C:designate:G94n:K=3 ## CNS 11643 plane 5 |
321 |
C:designate:G94n:L=3 ## CNS 11643 plane 6 |
322 |
C:designate:G94n:M=3 ## CNS 11643 plane 7 |
323 |
C:designate:G94n:CScns11643_8=3 ## CNS 11643 plane 8 |
324 |
C:designate:G94n:CScns11643_9=3 ## CNS 11643 plane 9 |
325 |
C:designate:G94n:CScns11643_10=3 ## CNS 11643 plane 10 |
326 |
C:designate:G94n:CScns11643_11=3 ## CNS 11643 plane 11 |
327 |
C:designate:G94n:CScns11643_12=3 ## CNS 11643 plane 12 |
328 |
C:designate:G94n:CScns11643_13=3 ## CNS 11643 plane 13 |
329 |
C:designate:G94n:CScns11643_14=3 ## CNS 11643 plane 14 |
330 |
C:designate:G94n:CScns11643_15=3 ## CNS 11643 plane 15 |
331 |
Encode:Prepare: |
332 |
C:GR=undef |
333 |
C:C1=C1:~ |
334 |
C:G1=G96:~ |
335 |
Encode: |
336 |
=>ucs_to_ascii ucs_to_gb2312_1980 ucs_to_iso_ir_165 ucs_to_cns11643_1 ucs_to_cns11643_2 ucs_to_cns11643_3 ucs_to_cns11643_4 ucs_to_cns11643_5 ucs_to_cns11643_6 ucs_to_cns11643_7 |
337 |
->iso2022:C |
338 |
Decode: |
339 |
<-iso2022:C |
340 |
<=gb2312_1980_to_ucs iso_ir_165_to_ucs cns11643_1_to_ucs cns11643_2_to_ucs cns11643_3_to_ucs cns11643_4_to_ucs cns11643_5_to_ucs cns11643_6_to_ucs cns11643_7_to_ucs |
341 |
Description: |
342 |
An ISO/IEC 2022 based 7-bit encoding for Chinese, |
343 |
defined by RFC 1922. |
344 |
} |
345 |
|
346 |
POD:SEE ALSO: |
347 |
L<Encode::ISO2022::JUNET>, L<Encode::ISO2022::JUNETCompatible> |
348 |
|
349 |
POD:LICENSE: |
350 |
Copyright %%YEAR%% Wakaba <w@suika.fam.cx> |
351 |
|
352 |
%%PerlLicense%% |