/[pub]/test/oldencodeutils/lib/Encode/ISO2022/SevenBit.pm
Suika

Diff of /test/oldencodeutils/lib/Encode/ISO2022/SevenBit.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by wakaba, Mon Sep 16 02:17:48 2002 UTC revision 1.6 by wakaba, Sun Sep 22 11:08:23 2002 UTC
# Line 47  sub __2022__common ($) { Line 47  sub __2022__common ($) {
47  }  }
48  sub __2022_encode ($) {  sub __2022_encode ($) {
49    my $C = shift->__2022__common;    my $C = shift->__2022__common;
50      $C->{GR} = undef;
51    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set
52    $C;    $C;
53  }  }
# Line 60  package Encode::ISO2022::SevenBit::JP; Line 61  package Encode::ISO2022::SevenBit::JP;
61  use vars qw/@ISA/;  use vars qw/@ISA/;
62  push @ISA, 'Encode::ISO2022::SevenBit';  push @ISA, 'Encode::ISO2022::SevenBit';
63  __PACKAGE__->Define (qw/iso-2022-jp junet-code japanese-iso-7bit csiso2022jp  __PACKAGE__->Define (qw/iso-2022-jp junet-code japanese-iso-7bit csiso2022jp
64   cp50220 iso2022jp/);   iso2022jp/);
65    
66  =item iso-2022-jp  =item iso-2022-jp
67    
68  ISO/IEC 2022 based 7-bit encoding for Japanese.  ISO/IEC 2022 based 7-bit encoding for Japanese.
69  Defined by Junet no tebiki, RFC 1468 and JIS X 0208:1997 Appendix 2.  Defined by Junet no tebiki, RFC 1468 and JIS X 0208:1997 Appendix 2.
70  (Alias: junet-code, japanese-iso-7bit (emacsen), csISO2022JP (IANA),  (Alias: junet-code, japanese-iso-7bit (emacsen), csISO2022JP (IANA))
 CP50220 (M$))  
71    
72  =cut  =cut
73    
# Line 90  sub __2022__common ($) { Line 90  sub __2022__common ($) {
90  }  }
91  sub __2022_encode ($) {  sub __2022_encode ($) {
92    my $C = shift->__2022__common;    my $C = shift->__2022__common;
93      $C->{GR} = undef;
94    $C->{C1} = $Encode::ISO2022::CHARSET{C1}->{"\x7E"};   ## empty set    $C->{C1} = $Encode::ISO2022::CHARSET{C1}->{"\x7E"};   ## empty set
95    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set
96    $C;    $C;
# Line 99  package Encode::ISO2022::SevenBit::JP197 Line 100  package Encode::ISO2022::SevenBit::JP197
100  use vars qw/@ISA/;  use vars qw/@ISA/;
101  push @ISA, 'Encode::ISO2022::SevenBit::JP';  push @ISA, 'Encode::ISO2022::SevenBit::JP';
102  __PACKAGE__->Define (qw/iso-2022-jp-1978-irv japanese-iso-7bit-1978-irv old-jis  __PACKAGE__->Define (qw/iso-2022-jp-1978-irv japanese-iso-7bit-1978-irv old-jis
103    x-obsoleted-iso-2022-jp/);    x-obsoleted-iso-2022-jp jis78/);
104    
105  =item iso-2022-jp-1978-irv  =item iso-2022-jp-1978-irv
106    
107  ISO/IEC 2022 based 7-bit encoding for Japanese.  ISO/IEC 2022 based 7-bit encoding for Japanese,
108  (Alias: japanese-iso-7bit-1978-irv (emacsen), old-jis (emacsen))  using JIS X 0208-1978.
109    (Alias: japanese-iso-7bit-1978-irv (emacsen), old-jis (emacsen),
110    jis78)
111    
112  =cut  =cut
113    
114  sub __2022_encode ($) {  sub __2022_encode ($) {
115    my $C = shift->__2022__common;    my $C = shift->__2022__common;
116      $C->{GR} = undef;
117    $C->{option}->{designate_to}->{G94}->{"\x4A"} = -1;   ## JIS X 0201 roman    $C->{option}->{designate_to}->{G94}->{"\x4A"} = -1;   ## JIS X 0201 roman
118    $C->{option}->{designate_to}->{G94n}->{"\x42"} = -1;  ## JIS X 0208-1983    $C->{option}->{designate_to}->{G94n}->{"\x42"} = -1;  ## JIS X 0208-1983
119    $C->{option}->{designate_to}->{G94n}->{"\x42\x40"} = -1;      ## JIS X 0208-1990    $C->{option}->{designate_to}->{G94n}->{"\x42\x40"} = -1;      ## JIS X 0208-1990
# Line 138  sub __2022__common ($) { Line 142  sub __2022__common ($) {
142  package Encode::ISO2022::SevenBit::JP3;  package Encode::ISO2022::SevenBit::JP3;
143  use vars qw/@ISA/;  use vars qw/@ISA/;
144  push @ISA, 'Encode::ISO2022::SevenBit::JP';  push @ISA, 'Encode::ISO2022::SevenBit::JP';
145  __PACKAGE__->Define (qw/iso-2022-jp-3 x-iso-2022-jp-3   iso-2022-jp-3-compatible iso-2022-jp-3-strict/);  __PACKAGE__->Define (qw/iso-2022-jp-3 x-iso-2022-jp-3
146     jis0213   iso-2022-jp-3-compatible iso-2022-jp-3-strict/);
147    
148  =item iso-2022-jp-3  =item iso-2022-jp-3
149    
150  ISO/IEC 2022 based 7-bit encoding for Japanese,  ISO/IEC 2022 based 7-bit encoding for Japanese,
151  defined by JIS X 0213:2000 Appendix 2.  defined by JIS X 0213:2000 Appendix 2.
152  (Alias: x-iso-2022-jp-3)  (Alias: x-iso-2022-jp-3, jis0213)
153    
154  =item iso-2022-jp-3-compatible  =item iso-2022-jp-3-compatible
155    
# Line 241  sub __2022__common ($) { Line 246  sub __2022__common ($) {
246  }  }
247  sub __2022_encode ($) {  sub __2022_encode ($) {
248    my $C = shift->__2022__common;    my $C = shift->__2022__common;
249      $C->{GR} = undef;
250    $C->{C1} = $Encode::ISO2022::CHARSET{C1}->{"\x7E"};   ## empty set    $C->{C1} = $Encode::ISO2022::CHARSET{C1}->{"\x7E"};   ## empty set
251    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set
252    $C;    $C;
# Line 286  sub __2022__common ($) { Line 292  sub __2022__common ($) {
292  }  }
293  sub __2022_encode ($) {  sub __2022_encode ($) {
294    my $C = shift->__2022__common;    my $C = shift->__2022__common;
295      $C->{GR} = undef;
296    $C->{C1} = $Encode::ISO2022::CHARSET{C1}->{"\x7E"};   ## empty set    $C->{C1} = $Encode::ISO2022::CHARSET{C1}->{"\x7E"};   ## empty set
297    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set
298    $C;    $C;
# Line 323  sub __2022__common ($) { Line 330  sub __2022__common ($) {
330  }  }
331  sub __2022_encode ($) {  sub __2022_encode ($) {
332    my $C = shift->__2022__common;    my $C = shift->__2022__common;
333      $C->{GR} = undef;
334    $C->{C1} = $Encode::ISO2022::CHARSET{C1}->{"\x7E"};   ## empty set    $C->{C1} = $Encode::ISO2022::CHARSET{C1}->{"\x7E"};   ## empty set
335    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set
336    $C;    $C;
# Line 366  sub __2022__common ($) { Line 374  sub __2022__common ($) {
374  }  }
375  sub __2022_encode ($) {  sub __2022_encode ($) {
376    my $C = shift->__2022__common;    my $C = shift->__2022__common;
377      $C->{GR} = undef;
378    $C->{C1} = $Encode::ISO2022::CHARSET{C1}->{"\x7E"};   ## empty set    $C->{C1} = $Encode::ISO2022::CHARSET{C1}->{"\x7E"};   ## empty set
379    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set
380    $C;    $C;
# Line 443  sub __2022__common ($) { Line 452  sub __2022__common ($) {
452  }  }
453  sub __2022_encode ($) {  sub __2022_encode ($) {
454    my $C = shift->__2022__common;    my $C = shift->__2022__common;
455      $C->{GR} = undef;
456    $C->{C1} = $Encode::ISO2022::CHARSET{C1}->{"\x7E"};   ## empty set    $C->{C1} = $Encode::ISO2022::CHARSET{C1}->{"\x7E"};   ## empty set
457    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set    $C->{G1} = $Encode::ISO2022::CHARSET{G96}->{"\x7E"};  ## empty set
458    $C;    $C;
# Line 492  __END__ Line 502  __END__
502    
503  =head1 LICENSE  =head1 LICENSE
504    
505  Copyright 2002 wakaba <w@suika.fam.cx>  Copyright 2002 Wakaba <w@suika.fam.cx>
506    
507  This library is free software; you can redistribute it  This library is free software; you can redistribute it
508  and/or modify it under the same terms as Perl itself.  and/or modify it under the same terms as Perl itself.

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.6

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24