/[pub]/test/oldencodeutils/lib/Encode/ISO2022/JUNETCompatible.esr
Suika

Contents of /test/oldencodeutils/lib/Encode/ISO2022/JUNETCompatible.esr

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Thu Dec 19 01:27:01 2002 UTC (23 years, 7 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +6 -3 lines
*** empty log message ***

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 wakaba 1.3 Those coding systems SHOULD NOT be used for new
24     implemention NOR new data. They may not comform
25 wakaba 1.1 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 wakaba 1.2 Encode:Prepare:
42 wakaba 1.1 C:GR=undef
43     C:C1=C1:~
44     C:G1=G96:~
45 wakaba 1.2 Encode:
46 wakaba 1.1 =>ucs_to_ascii ucs_to_jisx0208_1983_irv ucs_to_jisx0208_1978_irv ucs_to_jisx0201_latin
47     ->iso2022:C
48     Decode:
49     <-iso2022:C
50     <=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
51     Description:
52     ISO/IEC 2022 based 7-bit encoding for Japanese,
53     ASCII + JIS X 0201 + JIS X 0208-1978 + JIS X 0208-1983.
54     Some characters defined in JIS X 0208 are mapped to FULLWIDTH