root/Encode-JP-Mobile/trunk/lib/Encode/JP/Mobile.pm

Revision 2269 (checked in by miyagawa, 13 years ago)

Checking in changes prior to tagging of version 0.05. Changelog diff is:

=== Changes
==================================================================
--- Changes (revision 6778)
+++ Changes (local)
@@ -1,3 +1,7 @@
+0.05 Mon May 28 20:53:44 PDT 2007
+ - Fixes that fallback flag was ignored in the Vodafone encoding
+ (Thanks to Tokuhiro Matsuno)
+

0.04 Fri May 25 16:31:03 PDT 2007

- Support KDDI/AU <-> NTT DoCoMo? mapping

(Thanks to Tokuhiro Matsuno)

  • Property svn:keywords set to Id Revision
Line 
1 package Encode::JP::Mobile;
2 our $VERSION = "0.05";
3
4 use Encode;
5 use XSLoader;
6 XSLoader::load(__PACKAGE__, $VERSION);
7
8 use Encode::Alias;
9 define_alias('shift_jis-docomo' => 'shift_jis-imode');
10 define_alias('shift_jis-ezweb' => 'shift_jis-kddi');
11 define_alias('shift_jis-airh' => 'shift_jis-airedge');
12
13 use Encode::JP::Mobile::Vodafone;
14
15 1;
16 __END__
17
18 =head1 NAME
19
20 Encode::JP::Mobile - Shift_JIS variants of Japanese Mobile phones
21
22 =head1 SYNOPSIS
23
24   use Encode::JP::Mobile;
25
26   my $char   = "\x82\xb1\xf9\x5d\xf8\xa0\x82\xb1";
27   my $string = decode("shift_jis-imode", $char);
28
29 =head1 DESCRIPTION
30
31 Encode::JP::Mobile is an Encode module to support Shift_JIS variants used in Japaese mobile phone browsers.
32
33 This module is B<EXPERIMENTAL>. That means API and implementations will sometimge be backward incompatible.
34
35 =head1 ENCODINGS
36
37 This module currently supports the following encodings.
38
39 =over 4
40
41 =item shift_jis-imode
42
43 for DoCoMo pictograms. C<shift_jis-docomo> is alias.
44
45 =item shift_jis-vodafone
46
47 for Vodafone pictograms. Since it uses escape sequence, decoding algorithm is not based on ucm file.
48
49 =item shift_jis-kddi
50
51 for KDDI/AU pictograms. C<shift_jis-ezweb> is alias.
52
53 =item shift_jis-airedge
54
55 for AirEDGE pictograms. C<shift_jis-airh> is alias.
56
57 =back
58
59 =head1 NOTES
60
61 =over 4
62
63 =item *
64
65 ucm files are based on C<cp932.ucm>, not C<shiftjis.ucm>, since it
66 looks more appropriate for possible use cases. I'm open for any
67 suggesitions on this matter.
68
69 =item *
70
71 Pictogram characters are defined to be round-trip safe. However, they
72 use Unicode Private Area for such characters, that means you'll have
73 interoperability issues, which this module doesn't try yet to solve
74 completely.
75
76 =item *
77
78 As of version 0.04, this module tries to do auto-conversion of KDDI/AU
79 and NTT-DoCoMo pictogram characters. Supporting Softbank characters
80 are still left TODO.
81
82 =back
83
84 =head1 TODO
85
86 =over 4
87
88 =item *
89
90 Support KDDI encodings for 7bit E-mail (C<iso-2022-jp-kddi>).
91
92 =item *
93
94 Implement all merged C<shift_jis-mobile-jp> encoding.
95
96 =back
97
98 =head1 AUTHOR
99
100 Tatsuhiko Miyagawa E<lt>miyagawa@bulknews.netE<gt>
101
102 This library is free software, licensed under the same terms with Perl.
103
104 =head1 SEE ALSO
105
106 L<Encode>, L<HTML::Entities::ImodePictogram>
107
108 http://www.nttdocomo.co.jp/p_s/imode/make/emoji/
109 http://www.au.kddi.com/ezfactory/tec/spec/3.html
110 http://developers.vodafone.jp/dp/tool_dl/web/picword_top.php
111 http://www.willcom-inc.com/p_s/products/airh_phone/homepage.html
112
113 =cut
Note: See TracBrowser for help on using the browser.