Project: Perl
Code Location: git://perl5.git.perl.org/perl.gitmaint-5.12
Browse
/
Download File
README.tw
If you read this file _as_is_, just ignore the funny characters you
see. It is written in the POD format (see perlpod manpage) which is
specially designed to be readable as is.

The following documentation is written in Big5 encoding.

�pGA�Τ@�몺��rs�边�\��o�����, �Щ����夤�_�S����Or��.
�o�����OH POD (²����榡) �g��; �o�خ榡�O���F����H����Ū��,
�ӯS�O�]�p��. �����榡���i�@�B��T, �аѦ� perlpoduW���.

=encoding big5

=head1 NAME

perltw - ���餤�� Perl ��n

=head1 DESCRIPTIONw��Ө� Perl ���Ѧa!

�q 5.8.0 ���}�l, Perl ��ƤF������ Unicode (�U��X) �䴩,
�]�sa�䴩�F�\�h�ԤB�ytH�~���sX�覡; CJK (������) �KO�䤤���@����.
UnicodeO��کʪ��з�, �չϲ[�\�@�ɤW�Ҧ����r��: ���@��, �F��@��,
�H�Ψ�̶����@�� (��þ��, �ԧQ�Ȥ�, ��ԧB��, �ƧB�Ӥ�, �L�פ�,
�Law��, ����). ���]�e�ǤF�h�ا@�~�t�λP���O (�p PC �γ�����).

Perl �����H Unicodei��ާ@. �o��� Perl �������r���ƥi�� Unicode
���; Perl ���禡�P��� (�Ҧp���W��ܦ����) �]��� Unicodei��ާ@.
�b��J�ο�X��, ���FBzH Unicode ���e���sX�覡�xs�����, Perl
���ѤF Encodeo�ӼҲ�, �iH��A�����aŪ��μg�J�¦����sX���.

Encode ����Ҳդ䴩�UC���餤�媺�sX�覡 ('big5' ��� 'big5-eten'):

    big5-eten	Big5sX (�t�ʤѩ���r��)
    big5-hkscs	Big5 + ����~�r��, 2001 �~��
    cp950rX�� 950 (Big5 + �LnK�[���r��)

�|�Ҩӻ�, �N Big5sX���ɮ��ন Unicode, ������JUC��O:

    perl -Mencoding=big5,STDOUT,utf8 -pe1 < file.big5 > file.utf8

Perl �]�����F "piconv", �@�䧹���H Perlg�����r���ഫ�u��{��, �Ϊk�pU:

    piconv -f big5 -t utf8 < file.big5 > file.utf8
    piconv -f utf8 -t big5 < file.utf8 > file.big5t�~, �Q�� encoding �Ҳ�, �AiH�����gXHr�Ŭ���쪺�{���X, �pU�ҥ�:

    #!/usr/bin/env perl
    # �Ұ� big5r��ѪR; �зǿ�XJ�μзǿ�~���]�� big5sX
    use encoding 'big5', STDIN => 'big5', STDOUT => 'big5';
    print length("�d�m");	     #  2 (��޸���ܦr��)
    print length('�dm');	     #  4 (��޸���ܦ줸��)
    print index("�ναл�", "να"); # -1 (���]�t���lr��)
    print index('�ναл�', 'να'); #  1 (�q�ĤG�Ӧ줸�ն}�l)

�b�̫�@�C�Ҥl��, "��" ���ĤG�Ӧ줸�ջP "��" ���Ĥ@�Ӧ줸�յ��X�� Big5X�� "ν"; "��" ���ĤG�Ӧ줸�իh�P "��" ���Ĥ@�Ӧ줸�յ��X�� "α".
�o�ѨM�FHe Big5X���BzW�`�������D.

=head2B�~������sXpG�ݭn��h������sX, �iHq CPAN (L<http://www.cpan.org/>) �U��
Encode::HanExtra �Ҳ�. ���ثe���ѤU�CsX�覡:

    cccii	1980 �~��ط|�������T�洫�X
    euc-tw	Unix ����r�Ŷ�, �]�t CNS11643 ���� 1-7
    big5plus	����Ʀ�Ƨ޳N���s����|�� Big5+
    big5ext	����Ʀ�Ƨ޳N���s����|�� Big5et�~, Encode::HanConvert �Ҳիh���ѤF²�c�ഫ�Ϊ���ؽs�X:

    big5-simp	Big5 ���餤��P Unicode ²�餤�夬��
    gbk-trad	GBK ²�餤��P Unicode ���餤�夬��

�YQb GBKP Big5 ��������, �аѦҸӼҲդ����� b2g.plP g2b.pl ���{��,
�Φb�{�����ϥΤU�Cgk:

    use Encode::HanConvert;
    $euc_cn = big5_to_gb($big5); # �q Big5 �ର GBK
    $big5 = gb_to_big5($euc_cn); # �q GBK �ର Big5

=head2i�@�B����T

�аѦ� Perl �������jq������ (�������O�έ^��g��), �ӾDzߧ�h����
Perl ������, �H�� Unicode ���ϥΤ覡. ���L, �~�����귽�۷��״I:

=head2 ���� Perl �귽�����}

=over 4

=item L<http://www.perl.com/>

Perl ������ (�Ѽڵ�§���q���@)

=item L<http://www.cpan.org/>

Perl ��X���ú� (Comprehensive Perl Archive Network)

=item L<http://lists.perl.org/>

Perll���׾¤@��

=back

=head2 �Dz� Perl �����}

=over 4

=item L<http://www.oreilly.com.tw/product_perl.php?id=index_perl>

���餤�媩���ڵ�§ Perl ����

=item L<http://groups.google.com/groups?q=tw.bbs.comp.lang.perl>

�OW PerlsuQ�װ� (�]�NOUj BBS �� Perlsu��)

=back

=head2 Perl �ϥΪ̶��|

=over 4

=item L<http://www.pm.org/groups/asia.html>

�OW Perl ���s�դ@��

=item L<http://irc.elixus.org/>

���ߨ�uW��ѫ�

=back

=head2 Unicode �������}

=over 4

=item L<http://www.unicode.org/>

Unicode �dzN�Ƿ| (Unicode �зǪ���w��)

=item L<http://www.cl.cam.ac.uk/%7Emgk25/unicode.html>

Unix/LinuxW�� UTF-8 �� Unicode ���Ȱ�

=back

=head2 ����Ƹ�T

=over 4

=item ����Ƴn���p��

L<http://www.cpatch.org/>

=item Linuxn�餤��ƭp��

L<http://www.linux.org.tw/CLDP/>

=back

=head1 SEE ALSO

L<Encode>, L<Encode::TW>, L<encoding>, L<perluniintro>, L<perlunicode>

=head1 AUTHORS

Jarkko Hietaniemi E<lt>jhi@iki.fiE<gt>

Audrey Tang (���) E<lt>audreyt@audreyt.orgE<gt>

=cut