Upgrade to Encode 0.96, from Dan Kogai.
[p5sagit/p5-mst-13.2.git] / ext / Encode / JP / JP.pm
1 package Encode::JP;
2 BEGIN {
3     if (ord("A") == 193) {
4         die "Encode::JP not supported on EBCDIC\n";
5     }
6 }
7 use Encode;
8 our $VERSION = do { my @r = (q$Revision: 0.96 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
9
10 use XSLoader;
11 XSLoader::load('Encode::JP',$VERSION);
12
13 use Encode::JP::JIS;
14 use Encode::JP::ISO_2022_JP;
15
16 1;
17 __END__
18 =head1 NAME
19
20 Encode::JP - Japanese Encodings
21
22 =head1 SYNOPSIS
23
24     use Encode qw/encode decode/; 
25     $euc_jp = encode("euc-jp", $utf8);   # loads Encode::JP implicitly
26     $utf8   = decode("euc-jp", $euc_jp); # ditto
27
28 =head1 ABSTRACT
29
30 This module implements Japanese charset encodings.  Encodings
31 supported are as follows.
32
33   Canonical   Alias             Description
34   --------------------------------------------------------------------
35   euc-jp      /euc.*jp$/i       EUC (Extended Unix Character)
36               /jp.*euc/i   
37               /ujis$/i
38   shiftjis    /shift.*jis$/i    Shift JIS (aka MS Kanji)
39               /sjis$/i
40   7bit-jis    /^jis$/i          7bit JIS
41   iso-2022-jp                   ISO-2022-JP 
42                                 (7bit JIS with all Halfwidth Kana 
43                                  converted to Fullwidth)
44   macjapan      Mac Japan       (Shift JIS + Apple vendor mappings)
45   cp932         Code Page 932   (Shift JIS + MS/IBM vendor mappings)
46   --------------------------------------------------------------------
47
48 =head1 DESCRIPTION
49
50 To find how to use this module in detail, see L<Encode>.
51
52 =head1 BUGS
53
54 ASCII part (0x00-0x7f) is preserved for all encodings, even though it
55 conflicts with mappings by the Unicode Consortium.  See
56
57 F<http://www.debian.or.jp/~kubota/unicode-symbols.html.en>
58
59 to find why it is implemented that way.
60
61 =head1 SEE ALSO
62
63 L<Encode>
64
65 =cut