home *** CD-ROM | disk | FTP | other *** search
- 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.
-
- ªp¬GºAÑ╬ñ@»δ¬║ñσªr╜s┐Φ╛╣╛\─²│oÑ≈ñσÑ≤, ╜╨⌐┐▓ññσññ⌐_»S¬║╡∙░Oªr▓┼.
- │oÑ≈ñσÑ≤¼OÑH POD (┬▓⌐·ñσÑ≤«µªí) ╝gª¿; │o║╪«µªí¼O¼░ñF»α┼²ñH¬╜▒╡┼¬¿·,
- ª╙»SºO│]¡p¬║. ├÷⌐≤ª╣«µªí¬║╢iñ@¿B╕Ω░T, ╜╨░╤ª╥ perlpod ╜uñWñσÑ≤.
-
- =head1 NAME
-
- perltw - Ñ┐┼Θñññσ Perl ½ⁿ½n
-
- =head1 DESCRIPTION
-
- ┼w¬∩¿╙¿∞ Perl ¬║ñ╤ªa!
-
- ▒q 5.8.0 ¬⌐╢}⌐l, Perl ¿π│╞ñFº╣╡╜¬║ Unicode (╕U░Ω╜X) ñΣ┤⌐,
- ñ]│s▒añΣ┤⌐ñF│\ªh⌐╘ñB╗y¿tÑHÑ~¬║╜s╜XñΦªí; CJK (ñññΘ┴·) ½K¼O¿Σññ¬║ñ@│íÑ≈.
- Unicode ¼O░Ω╗┌⌐╩¬║╝╨╖╟, ╕╒╣╧▓[╗\Ñ@¼╔ñW⌐╥ª│¬║ªr▓┼: ªΦñΦÑ@¼╔, ¬FñΦÑ@¼╔,
- ÑHñ╬¿Γ¬╠╢í¬║ñ@ñ┴ (º╞├╛ñσ, ▒╘ºQ¿╚ñσ, ¬ⁿ⌐╘ºBñσ, º╞ºB¿╙ñσ, ªL½╫ñσ,
- ªLªaªwñσ, ╡Ñ╡Ñ). Ѫñ]«e»╟ñFªh║╪º@╖~¿t▓╬╗PÑ¡╗O (ªp PC ñ╬│┴¬≈╢≡).
-
- Perl Ñ╗¿¡ÑH Unicode ╢iªµ╛▐º@. │o¬φÑ▄ Perl ñ║│í¬║ªrªΩ╕Ω«╞ÑiÑ╬ Unicode
- ¬φÑ▄; Perl ¬║¿τªí╗P║Γ▓┼ (¿╥ªpÑ┐│W¬φÑ▄ªíñ±╣∩) ñ]»α╣∩ Unicode ╢iªµ╛▐º@.
- ªb┐ΘñJñ╬┐ΘÑX«╔, ¼░ñF│B▓zÑH Unicode ñº½e¬║╜s╜XñΦªí└xªs¬║╕Ω«╞, Perl
- ┤ú¿╤ñF Encode │o¡╙╝╥▓╒, ÑiÑH┼²ºA╗┤⌐÷ªa┼¬¿·ñ╬╝gñJ┬┬ª│¬║╜s╜X╕Ω«╞.
-
- Encode ⌐╡ª∙╝╥▓╒ñΣ┤⌐ñUªCÑ┐┼Θñññσ¬║╜s╜XñΦªí ('big5' ¬φÑ▄ 'big5-eten'):
-
- big5-eten Big5 ╜s╜X (ºt¡╩ñ╤⌐╡ª∙ªrº╬)
- big5-hkscs Big5 + ¡╗┤ΣÑ~ªr╢░, 2001 ª~¬⌐
- cp950 ªr╜X¡╢ 950 (Big5 + ╖L│n▓KÑ[¬║ªr▓┼)
-
- ┴|¿╥¿╙╗í, ▒N Big5 ╜s╜X¬║└╔«╫┬ন Unicode, »¡╗▌┴ΣñJñUªC½ⁿÑO:
-
- perl -Mencoding=big5,STDOUT,utf8 -pe1 < file.big5 > file.utf8
-
- Perl ñ]ñ║¬■ñF "piconv", ñ@ñΣº╣Ñ■ÑH Perl ╝gª¿¬║ªr▓┼┬α┤½ñu¿π╡{ªí, Ñ╬¬kªpñU:
-
- piconv -f big5 -t utf8 < file.big5 > file.utf8
- piconv -f utf8 -t big5 < file.utf8 > file.big5
-
- ÑtÑ~, ºQÑ╬ encoding ╝╥▓╒, ºAÑiÑH╗┤⌐÷╝gÑXÑHªr▓┼¼░│µª∞¬║╡{ªí╜X, ªpñU⌐╥Ñ▄:
-
- #!/usr/bin/env perl
- # ▒╥░╩ big5 ªrªΩ╕╤¬R; ╝╨╖╟┐ΘÑXñJñ╬╝╨╖╟┐∙╗~│ú│]¼░ big5 ╜s╜X
- use encoding 'big5', STDIN => 'big5', STDOUT => 'big5';
- print length("└d╛m"); # 2 (┬∙ñ▐╕╣¬φÑ▄ªr▓┼)
- print length('└d╛m'); # 4 (│µñ▐╕╣¬φÑ▄ª∞ñ╕▓╒)
- print index("╜╬╜╬▒╨╗ú", "╬╜╬▒"); # -1 (ñúÑ]ºtª╣ñlªrªΩ)
- print index('╜╬╜╬▒╨╗ú', '╬╜╬▒'); # 1 (▒q▓─ñG¡╙ª∞ñ╕▓╒╢}⌐l)
-
- ªb│╠½ßñ@ªC¿╥ñl╕╠, "╜╬" ¬║▓─ñG¡╙ª∞ñ╕▓╒╗P "╜╬" ¬║▓─ñ@¡╙ª∞ñ╕▓╒╡▓ªXª¿ Big5
- ╜X¬║ "╬╜"; "╜╬" ¬║▓─ñG¡╙ª∞ñ╕▓╒½h╗P "▒╨" ¬║▓─ñ@¡╙ª∞ñ╕▓╒╡▓ªXª¿ "╬▒".
- │o╕╤¿MñFÑH½e Big5 ╜Xñ±╣∩│B▓zñW▒`¿ú¬║░▌├D.
-
- =head2 ├BÑ~¬║ñññσ╜s╜X
-
- ªp¬G╗▌¡nº≤ªh¬║ñññσ╜s╜X, ÑiÑH▒q CPAN (L<http://www.cpan.org/>) ñU╕ⁿ
- Encode::HanExtra ╝╥▓╒. ѪÑ╪½e┤ú¿╤ñUªC╜s╜XñΦªí:
-
- cccii 1980 ª~ñσ½╪╖|¬║ñññσ╕Ω░Tѵ┤½╜X
- euc-tw Unix ⌐╡ª∙ªr▓┼╢░, Ñ]ºt CNS11643 Ñ¡¡▒ 1-7
- big5plus ñññσ╝╞ª∞ñ╞º▐│N▒└╝s░≥¬≈╖|¬║ Big5+
- big5ext ñññσ╝╞ª∞ñ╞º▐│N▒└╝s░≥¬≈╖|¬║ Big5e
-
- ÑtÑ~, Encode::HanConvert ╝╥▓╒½h┤ú¿╤ñF┬▓┴c┬α┤½Ñ╬¬║¿Γ║╪╜s╜X:
-
- big5-simp Big5 Ñ┐┼Θñññσ╗P Unicode ┬▓┼Θñññσñ¼┬α
- gbk-trad GBK ┬▓┼Θñññσ╗P Unicode Ñ┐┼Θñññσñ¼┬α
-
- ¡Y╖Qªb GBK ╗P Big5 ñº╢íñ¼┬α, ╜╨░╤ª╥╕╙╝╥▓╒ñ║¬■¬║ b2g.pl ╗P g2b.pl ¿ΓñΣ╡{ªí,
- ⌐╬ªb╡{ªíñ║¿╧Ñ╬ñUªC╝g¬k:
-
- use Encode::HanConvert;
- $euc_cn = big5_to_gb($big5); # ▒q Big5 ┬α¼░ GBK
- $big5 = gb_to_big5($euc_cn); # ▒q GBK ┬α¼░ Big5
-
- =head2 ╢iñ@¿B¬║╕Ω░T
-
- ╜╨░╤ª╥ Perl ñ║¬■¬║ñj╢q╗í⌐·ñσÑ≤ (ñú⌐»Ñ■¼OÑ╬¡^ñσ╝g¬║), ¿╙╛╟▓▀º≤ª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/>
-
- Perl ╢l╗╝╜╫╛┬ñ@─²
-
- =back
-
- =head2 ╛╟▓▀ Perl ¬║║⌠º}
-
- =over 4
-
- =item L<http://www.oreilly.com.tw/chinese/perl/index.html>
-
- Ñ┐┼Θñññσ¬⌐¬║╝┌╡▄┬º Perl «╤┬╟
-
- =item L<http://groups.google.com/groups?q=tw.bbs.comp.lang.perl>
-
- ╗O╞W Perl │s╜u░Q╜╫░╧ (ñ]┤N¼OªUñj BBS ¬║ Perl │s╜u¬⌐)
-
- =back
-
- =head2 Perl ¿╧Ñ╬¬╠╢░╖|
-
- =over 4
-
- =item L<http://www.pm.org/groups/asia.shtml#Taiwan>
-
- ╗O╞W Perl ▒└╝s▓╒ñ@─²
-
- =item L<http://irc.elixus.org/>
-
- ├└Ñ▀¿≤╜uñW▓ßñ╤½╟
-
- =back
-
- =head2 Unicode ¼█├÷║⌠º}
-
- =over 4
-
- =item L<http://www.unicode.org/>
-
- Unicode ╛╟│N╛╟╖| (Unicode ╝╨╖╟¬║¿ε⌐w¬╠)
-
- =item L<http://www.cl.cam.ac.uk/%7Emgk25/unicode.html>
-
- Unix/Linux ñW¬║ UTF-8 ñ╬ Unicode ╡¬½╚░▌
-
- =back
-
- =head2 ñññσñ╞╕Ω░T
-
- =over 4
-
- =item ¼░ñ░╗≥Ñs "Ñ┐┼Θñññσ" ñúÑs "┴c┼Θñññσ"?
-
- L<http://www.csie.ntu.edu.tw/~b7506051/mozilla/faq.html#faqglossary>
-
- =item ñññσñ╞│n┼Θ┴p╖∙
-
- L<http://www.cpatch.org/>
-
- =item Linux │n┼Θñññσñ╞¡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>
-
- Autrijus Tang (¡≡⌐v║~) E<lt>autrijus@autrijus.orgE<gt>
-
- =cut
-