Benjamin Franz > Unicode-MapUTF8 > pod/MapUTF8.ja_JP.eucjp.pod

Download:
Unicode-MapUTF8-1.11.tar.gz

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source  

̾�� ^

Unicode::MapUTF8 - Ǥ�դ�ʸ�����åȤ��顿�ؤ�UTF8���Ѵ�

���� ^

 use Unicode::MapUTF8 qw(to_utf8 from_utf8 utf8_supported_charset);

 # 'ISO-8859-1'��ʸ������ 'UTF8'���Ѵ�����
 my $output = to_utf8({ -string => 'An example', -charset => 'ISO-8859-1' });

 # 'UTF8'���󥳡��ǥ��󥰤�ʸ�����򥨥󥳡��ǥ����� 'ISO-8859-1'���Ѵ�����
 my $other  = from_utf8({ -string => 'Other text', -charset => 'ISO-8859-1' });

 # ���ѤǤ���ʸ�����åȥ��󥳡��ǥ��󥰤Υꥹ��
 my @character_sets = utf8_supported_charset;

 # ʸ�����å���̾���ɲ�
 utf8_charset_alias({ 'ms-japanese' => 'sjis' });

 # ���Ĥ�Ǥ�դΡʤ������礭���ߴ����Τ�����ʸ�����åȥ��󥳡��ǥ��󥰤Ǥ��Ѵ�
 # (SJIS to EUC-JP)
 my $utf8_string   = to_utf8({ -string =>$sjis_string, -charset => 'sjis'});
 my $euc_jp_string = from_utf8({ -string => $utf8_string, -charset => 'euc-jp' })

 # ������ʸ�����åȤ����ݡ��Ȥ����Ƥ��뤫����ǧ
 if (utf8_supported_charset('ISO-8859-1') {
     # Yes
 }

���� ^

UTF8�Ȥ���¾�Υ��󥳡��ǥ��󥰤��顿�ؤ��Ѵ��Τ��������ˤȤʤ��롼�����δ֤Υ����ץ��ؤ��󶡤��ޤ����ܼ�Ū�ˤϡ�ʣ��¸�ߤ��� Unicode�⥸�塼���ؤΣ��Ĥζ��̤Υ��󥿡��ե����������ߤ��ˤʤäƤ����������Τ뤳�Ȥʤ�����ñ��UTF8���顿��¾��ʸ�����åȥ��󥳡��ǥ� �����Ѵ�����ñ�ˤ����ʤ��ޤ������Τ��ᡢ������Unicode::String��Unicode::Map8��Unicode::Map��Jcode�� ���塼����ɸ�ಽ���줿��ñ��API���������ߤޤ���

�ޤ�������UTF-8���١����˰���Ū��ʸ�����å��Ѵ����󶡤��ޤ��ݤ����ϣ��ʳ����Ѵ��Ĥʤ��뤳�Ȥˤ��ꡢ���Ĥθߴ��������ꡢ���ݡ��Ȥ����Ƥ���ʸ�����åȤDz�ǽ�Ǥ���

�ۤȤ��ɤΤ��Ȥ�PerlŪ�ʤΤǡݤ��ߺդ��оݤȤ��ƿ�¿���ξ������ʤ��Τ��������ˣ��������礭�ʸǤޤ���Ϳ�����ȡ�1�ô֤ˤ���¿����ʸ���򰷤��ޤ���

�߷פǤϡ��о줹�뤤���ʤ뿷����ʸ�����åȡ����󥳡��ǥ������Ѵ��⥸�塼�������������褦�˴�ñ�˳�ĥ���뤳�Ȥ��Ǥ��ޤ���

�ѹ��� ^

�ʸ�ʸ�Τޤޡ�

 1.11 2005.10.10   Documentation changes. Addition of Build.PL support.
                   Added various build tests, LICENSE, Artistic_License.txt,
                   GPL_License.txt. Split documentation into seperate
                   .pod file. Added Japanese translation of POD.

 1.10 2005.05.22 - Fixed bug in conversion of ISO-2022-JP to UTF-8.
                   Problem and fix found by Masahiro HONMA
                   <masahiro.honma@tsutaya.co.jp>.

                   Similar bugs in conversions of shift_jis and euc-jp
                   to UTF-8 fixed as well.
                  
 1.09 2001.08.22 - Fixed multiple typo occurances of 'uft'
                   where 'utf' was meant in code. Problem affected
                   utf16 and utf7 encodings. Problem found
                   by devon smith <devon@taller.PSCL.cwru.edu>

 1.08 2000.11.06 - Added 'utf8_charset_alias' function to
                   allow for runtime setting of character
                   set aliases. Added several alternate
                   names for 'sjis' (shiftjis, shift-jis,
                   shift_jis, s-jis, and s_jis).

                   Corrected 'croak' messages for
                   'from_utf8' functions to appropriate
                   function name.

                   Tightened up initialization encapsulation

                   Corrected fatal problem in jcode from
                   unicode internals. Problem and fix
                   found by Brian Wisti <wbrian2@uswest.net>.

 1.07 2000.11.01 - Added 'croak' to use Carp declaration to
                   fix error messages.  Problem and fix
                   found by Brian Wisti
                   <wbrian2@uswest.net>.

 1.06 2000.10.30 - Fix to handle change in stringification
                   of overloaded objects between Perl 5.005
                   and 5.6. Problem noticed by Brian Wisti
                   <wbrian2@uswest.net>.

 1.05 2000.10.23 - Error in conversions from UTF8 to
                   multibyte encodings corrected

 1.04 2000.10.23 - Additional diagnostic messages added
                   for internal error conditions

 1.03 2000.10.22 - Bug fix for load time autodetction of
                   Unicode::Map8 encodings

 1.02 2000.10.22 - Added load time autodetection of
                   Unicode::Map8 supported character set
                   encodings.

                   Fixed internal calling error for some
                   character sets with 'from_utf8'. Thanks
                   goes to Ilia Lobsanov
                   <ilia@lobsanov.com> for reporting this
                   problem.

 1.01 2000.10.02 - Fixed handling of empty strings and
                   added more identification for error
                   messages.

 1.00 2000.09.29 - Pre-release version

�ؿ� ^

utf8_charset_alias({ $alias => $charset });

ʸ�����å���̾�μ¹Ի��������˻Ȥ����ޤ���

�����ʤ��ǸƤФ����ȡ����������Ƥ�����̾�ȡ������˥ޥåפ�����ʸ�����åȤΥϥå������֤��ޤ���

�㡧:

  my $aliases     = utf8_charset_alias;
  my @alias_names = keys %$aliases;

���ĤΥѥ��᡼���դ��ǸƤФ����ȡ��⤷������̾�����������Ƥ����С�'������'ʸ�����åȤ�̾�����֤��ޤ������줬��̾�˸��Ĥ����ʤ�����undef���֤��ޤ���

�㡧

    if (! utf8_charset_alias('VISCII')) {
        # No alias for this
    }

�⤷'alias' => 'charset'���ȤΥꥹ�ȤǸƤФ����С�����������̾���Ȥ����褦���������ޤ���

�㡧

    utf8_charset_alias({ 'japanese' => 'sjis', 'japan' => 'sjis' });

���ա��Ϥ��줿�Ȥ���ͽ�����������Ƥ���ʸ�����åȡ����󥳡��ǥ��󥰤ν��������������Ƥ���ʸ�����åȤ˥ޥåפ����ʤ����С�croak���ޤ���������¾����̾�ؤ���̾����ƤϤ��ޤ�����

ʣ����ʸ�����åȤ򣱲��θƽФ������ꤹ�뤳�Ȥ��Ǥ��ޤ���

��̾�򥯥꡼�󤹤뤿���ˤϡ�undef��ʸ�����åȥޥåԥ󥰤��Ϥ��ޤ���

�㡧

    utf8_charset_alias({ 'japanese' => undef });

��̾�����ꤵ���Ƥ����֡��⤷ͽ�����������Ƥ���ʸ�����åȤǤ����С�'utf8_supported_charset' �ؿ�����̾���֤��ޤ���

���ܤ��������줿ʸ�����󥳡��ǥ��󥰤���̾�ǥ����С��饤�ɤ����ȡ�ɸ�२�顼��STDERR)�ؤηٹ����å��������Ф��ޤ���

utf8_supported_charset($charset_name);

�ʥ桼��������������̾���ޤ��ơ�̾�Ť����줿ʸ�����åȤ����ݡ��Ȥ����Ƥ�����true���֤��ޤ���<p>�����Ǥʤ�����false���֤��ޤ���

�㡧

    if (! utf8_supported_charset('VISCII')) {
        # �ޤ����ݡ��Ȥ����Ƥ��ޤ���
    }

�ѥ��᡼���ʤ��ǡ��ꥹ�ȡ������ƥ����ȤǸƤФ����ȡ��ʥ桼��������������̾���ޤ��ơ˥��ݡ��Ȥ����Ƥ��뤹�٤Ƥ�ʸ�����å�̾�Υꥹ�Ȥ��֤��ޤ���

�㡧

    my @charsets = utf8_supported_charset;
to_utf8({ -string => $string, -charset => $source_charset });

���ꤵ�줿����ʸ�����å�(source charset)����UTF8���Ѵ����줿ʸ�������֤��ޤ���

from_utf8({ -string => $string, -charset => $target_charset});

UTF8�������ꤵ�줿�������åȤ�ʸ�����å�(target charset)���Ѵ����줿ʸ�������֤��ޤ���

�������� ^

1.11 - 2005.10.10

�����٤����� ^

Jcode��2�Х��ȡ����󥳡��ǥ��󥰤����ƥ��󥳡��ǥ�������̾�Τ����εչԥƥ���

���ͻ��� ^

Unicode::String Unicode::Map8 Unicode::Map Jcode

��� ^

Copyright 2000-2005, Benjamin Franz. All rights reserved.

���� ^

Benjamin Franz <snowhare@nihongo.org>

���쥸�å� ^

���繧ŵ "Kawai,Takanori" <GCD00051@nifty.ne.jp> - ˮ��

�饤������ ^

Perl ��Ʊ���饤���󥹡� Artistic License �� GPL �Υǥ奢���饤���󥹡�

�ʸ�ʸ�Τޤޡ�

This program is free software; you can redistribute it and/or modify it under the same terms and conditions as Perl itself.

This means that you can, at your option, redistribute it and/or modify it under either the terms the GNU Public License (GPL) version 1 or later, or under the Perl Artistic License.

See http://dev.perl.org/licenses/

DISCLAIMER ^

�ʸ�ʸ�Τޤޡ�

THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Use of this software in any way or in any form, source or binary, is not allowed in any country which prohibits disclaimers of any implied warranties of merchantability or fitness for a particular purpose or any disclaimers of a similar nature.

IN NO EVENT SHALL I BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION (INCLUDING, BUT NOT LIMITED TO, LOST PROFITS) EVEN IF I HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE

syntax highlighting: