home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / ActivePerl-5.8.4.810-MSWin32-x86.msi / _692016dcf1b3e7f8ff3043bd125626a3 < prev    next >
Encoding:
Text File  |  2004-06-01  |  4.5 KB  |  175 lines

  1. If you read this file _as_is_, just ignore the funny characters you
  2. see. It is written in the POD format (see perlpod manpage) which is
  3. specially designed to be readable as is.
  4.  
  5. The following documentation is written in Big5 encoding.
  6.  
  7. ªp¬GºAÑ╬ñ@»δ¬║ñσªr╜s┐Φ╛╣╛\─²│oÑ≈ñσÑ≤, ╜╨⌐┐▓ññσññ⌐_»S¬║╡∙░Oªr▓┼.
  8. │oÑ≈ñσÑ≤¼OÑH POD (┬▓⌐·ñσÑ≤«µªí) ╝gª¿; │o║╪«µªí¼O¼░ñF»α┼²ñH¬╜▒╡┼¬¿·,
  9. ª╙»SºO│]¡p¬║. ├÷⌐≤ª╣«µªí¬║╢iñ@¿B╕Ω░T, ╜╨░╤ª╥ perlpod ╜uñWñσÑ≤.
  10.  
  11. =head1 NAME
  12.  
  13. perltw - Ñ┐┼Θñññσ Perl ½ⁿ½n
  14.  
  15. =head1 DESCRIPTION
  16.  
  17. ┼w¬∩¿╙¿∞ Perl ¬║ñ╤ªa!
  18.  
  19. ▒q 5.8.0 ¬⌐╢}⌐l, Perl ¿π│╞ñFº╣╡╜¬║ Unicode (╕U░Ω╜X) ñΣ┤⌐,
  20. ñ]│s▒añΣ┤⌐ñF│\ªh⌐╘ñB╗y¿tÑHÑ~¬║╜s╜XñΦªí; CJK (ñññΘ┴·) ½K¼O¿Σññ¬║ñ@│íÑ≈.
  21. Unicode ¼O░Ω╗┌⌐╩¬║╝╨╖╟, ╕╒╣╧▓[╗\Ñ@¼╔ñW⌐╥ª│¬║ªr▓┼: ªΦñΦÑ@¼╔, ¬FñΦÑ@¼╔,
  22. ÑHñ╬¿Γ¬╠╢í¬║ñ@ñ┴ (º╞├╛ñσ, ▒╘ºQ¿╚ñσ, ¬ⁿ⌐╘ºBñσ, º╞ºB¿╙ñσ, ªL½╫ñσ,
  23. ªLªaªwñσ, ╡Ñ╡Ñ). Ñªñ]«e»╟ñFªh║╪º@╖~¿t▓╬╗PÑ¡╗O (ªp PC ñ╬│┴¬≈╢≡).
  24.  
  25. Perl Ñ╗¿¡ÑH Unicode ╢iªµ╛▐º@. │o¬φÑ▄ Perl ñ║│í¬║ªrªΩ╕Ω«╞ÑiÑ╬ Unicode
  26. ¬φÑ▄; Perl ¬║¿τªí╗P║Γ▓┼ (¿╥ªpÑ┐│W¬φÑ▄ªíñ±╣∩) ñ]»α╣∩ Unicode ╢iªµ╛▐º@.
  27. ªb┐ΘñJñ╬┐ΘÑX«╔, ¼░ñF│B▓zÑH Unicode ñº½e¬║╜s╜XñΦªí└xªs¬║╕Ω«╞, Perl
  28. ┤ú¿╤ñF Encode │o¡╙╝╥▓╒, ÑiÑH┼²ºA╗┤⌐÷ªa┼¬¿·ñ╬╝gñJ┬┬ª│¬║╜s╜X╕Ω«╞.
  29.  
  30. Encode ⌐╡ª∙╝╥▓╒ñΣ┤⌐ñUªCÑ┐┼Θñññσ¬║╜s╜XñΦªí ('big5' ¬φÑ▄ 'big5-eten'):
  31.  
  32.     big5-eten    Big5 ╜s╜X (ºt¡╩ñ╤⌐╡ª∙ªrº╬)
  33.     big5-hkscs    Big5 + ¡╗┤ΣÑ~ªr╢░, 2001 ª~¬⌐
  34.     cp950    ªr╜X¡╢ 950 (Big5 + ╖L│n▓KÑ[¬║ªr▓┼)
  35.  
  36. ┴|¿╥¿╙╗í, ▒N Big5 ╜s╜X¬║└╔«╫┬ন Unicode, »¡╗▌┴ΣñJñUªC½ⁿÑO:
  37.  
  38.     perl -Mencoding=big5,STDOUT,utf8 -pe1 < file.big5 > file.utf8
  39.  
  40. Perl ñ]ñ║¬■ñF "piconv", ñ@ñΣº╣Ñ■ÑH Perl ╝gª¿¬║ªr▓┼┬α┤½ñu¿π╡{ªí, Ñ╬¬kªpñU:
  41.  
  42.     piconv -f big5 -t utf8 < file.big5 > file.utf8
  43.     piconv -f utf8 -t big5 < file.utf8 > file.big5
  44.  
  45. ÑtÑ~, ºQÑ╬ encoding ╝╥▓╒, ºAÑiÑH╗┤⌐÷╝gÑXÑHªr▓┼¼░│µª∞¬║╡{ªí╜X, ªpñU⌐╥Ñ▄:
  46.  
  47.     #!/usr/bin/env perl
  48.     # ▒╥░╩ big5 ªrªΩ╕╤¬R; ╝╨╖╟┐ΘÑXñJñ╬╝╨╖╟┐∙╗~│ú│]¼░ big5 ╜s╜X
  49.     use encoding 'big5', STDIN => 'big5', STDOUT => 'big5';
  50.     print length("└d╛m");         #  2 (┬∙ñ▐╕╣¬φÑ▄ªr▓┼)
  51.     print length('└d╛m');         #  4 (│µñ▐╕╣¬φÑ▄ª∞ñ╕▓╒)
  52.     print index("╜╬╜╬▒╨╗ú", "╬╜╬▒"); # -1 (ñúÑ]ºtª╣ñlªrªΩ)
  53.     print index('╜╬╜╬▒╨╗ú', '╬╜╬▒'); #  1 (▒q▓─ñG¡╙ª∞ñ╕▓╒╢}⌐l)
  54.  
  55. ªb│╠½ßñ@ªC¿╥ñl╕╠, "╜╬" ¬║▓─ñG¡╙ª∞ñ╕▓╒╗P "╜╬" ¬║▓─ñ@¡╙ª∞ñ╕▓╒╡▓ªXª¿ Big5
  56. ╜X¬║ "╬╜"; "╜╬" ¬║▓─ñG¡╙ª∞ñ╕▓╒½h╗P "▒╨" ¬║▓─ñ@¡╙ª∞ñ╕▓╒╡▓ªXª¿ "╬▒".
  57. │o╕╤¿MñFÑH½e Big5 ╜Xñ±╣∩│B▓zñW▒`¿ú¬║░▌├D.
  58.  
  59. =head2 ├BÑ~¬║ñññσ╜s╜X
  60.  
  61. ªp¬G╗▌¡nº≤ªh¬║ñññσ╜s╜X, ÑiÑH▒q CPAN (L<http://www.cpan.org/>) ñU╕ⁿ
  62. Encode::HanExtra ╝╥▓╒. ÑªÑ╪½e┤ú¿╤ñUªC╜s╜XñΦªí:
  63.  
  64.     cccii    1980 ª~ñσ½╪╖|¬║ñññσ╕Ω░Tѵ┤½╜X
  65.     euc-tw    Unix ⌐╡ª∙ªr▓┼╢░, Ñ]ºt CNS11643 Ñ¡¡▒ 1-7
  66.     big5plus    ñññσ╝╞ª∞ñ╞º▐│N▒└╝s░≥¬≈╖|¬║ Big5+
  67.     big5ext    ñññσ╝╞ª∞ñ╞º▐│N▒└╝s░≥¬≈╖|¬║ Big5e
  68.  
  69. ÑtÑ~, Encode::HanConvert ╝╥▓╒½h┤ú¿╤ñF┬▓┴c┬α┤½Ñ╬¬║¿Γ║╪╜s╜X:
  70.  
  71.     big5-simp    Big5 Ñ┐┼Θñññσ╗P Unicode ┬▓┼Θñññσñ¼┬α
  72.     gbk-trad    GBK ┬▓┼Θñññσ╗P Unicode Ñ┐┼Θñññσñ¼┬α
  73.  
  74. ¡Y╖Qªb GBK ╗P Big5 ñº╢íñ¼┬α, ╜╨░╤ª╥╕╙╝╥▓╒ñ║¬■¬║ b2g.pl ╗P g2b.pl ¿ΓñΣ╡{ªí,
  75. ⌐╬ªb╡{ªíñ║¿╧Ñ╬ñUªC╝g¬k:
  76.  
  77.     use Encode::HanConvert;
  78.     $euc_cn = big5_to_gb($big5); # ▒q Big5 ┬α¼░ GBK
  79.     $big5 = gb_to_big5($euc_cn); # ▒q GBK ┬α¼░ Big5
  80.  
  81. =head2 ╢iñ@¿B¬║╕Ω░T
  82.  
  83. ╜╨░╤ª╥ Perl ñ║¬■¬║ñj╢q╗í⌐·ñσÑ≤ (ñú⌐»Ñ■¼OÑ╬¡^ñσ╝g¬║), ¿╙╛╟▓▀º≤ªh├÷⌐≤
  84. Perl ¬║¬╛├╤, ÑHñ╬ Unicode ¬║¿╧Ñ╬ñΦªí. ñú╣L, Ñ~│í¬║╕Ω╖╜¼█╖φ┬╫┤I:
  85.  
  86. =head2 ┤ú¿╤ Perl ╕Ω╖╜¬║║⌠º}
  87.  
  88. =over 4
  89.  
  90. =item L<http://www.perl.com/>
  91.  
  92. Perl ¬║¡║¡╢ (Ñ╤╝┌╡▄┬ºñ╜Ñq║√┼@)
  93.  
  94. =item L<http://www.cpan.org/>
  95.  
  96. Perl ║εªX¿σ┬├║⌠ (Comprehensive Perl Archive Network)
  97.  
  98. =item L<http://lists.perl.org/>
  99.  
  100. Perl ╢l╗╝╜╫╛┬ñ@─²
  101.  
  102. =back
  103.  
  104. =head2 ╛╟▓▀ Perl ¬║║⌠º}
  105.  
  106. =over 4
  107.  
  108. =item L<http://www.oreilly.com.tw/chinese/perl/index.html>
  109.  
  110. Ñ┐┼Θñññσ¬⌐¬║╝┌╡▄┬º Perl «╤┬╟
  111.  
  112. =item L<http://groups.google.com/groups?q=tw.bbs.comp.lang.perl>
  113.  
  114. ╗O╞W Perl │s╜u░Q╜╫░╧ (ñ]┤N¼OªUñj BBS ¬║ Perl │s╜u¬⌐)
  115.  
  116. =back
  117.  
  118. =head2 Perl ¿╧Ñ╬¬╠╢░╖|
  119.  
  120. =over 4
  121.  
  122. =item L<http://www.pm.org/groups/asia.shtml#Taiwan>
  123.  
  124. ╗O╞W Perl ▒└╝s▓╒ñ@─²
  125.  
  126. =item L<http://irc.elixus.org/>
  127.  
  128. ├└Ñ▀¿≤╜uñW▓ßñ╤½╟
  129.  
  130. =back
  131.  
  132. =head2 Unicode ¼█├÷║⌠º}
  133.  
  134. =over 4
  135.  
  136. =item L<http://www.unicode.org/>
  137.  
  138. Unicode ╛╟│N╛╟╖| (Unicode ╝╨╖╟¬║¿ε⌐w¬╠)
  139.  
  140. =item L<http://www.cl.cam.ac.uk/%7Emgk25/unicode.html>
  141.  
  142. Unix/Linux ñW¬║ UTF-8 ñ╬ Unicode ╡¬½╚░▌
  143.  
  144. =back
  145.  
  146. =head2 ñññσñ╞╕Ω░T
  147.  
  148. =over 4
  149.  
  150. =item ¼░ñ░╗≥Ñs "Ñ┐┼Θñññσ" ñúÑs "┴c┼Θñññσ"?
  151.  
  152. L<http://www.csie.ntu.edu.tw/~b7506051/mozilla/faq.html#faqglossary>
  153.  
  154. =item ñññσñ╞│n┼Θ┴p╖∙
  155.  
  156. L<http://www.cpatch.org/>
  157.  
  158. =item Linux │n┼Θñññσñ╞¡p╣║
  159.  
  160. L<http://www.linux.org.tw/CLDP/>
  161.  
  162. =back
  163.  
  164. =head1 SEE ALSO
  165.  
  166. L<Encode>, L<Encode::TW>, L<encoding>, L<perluniintro>, L<perlunicode>
  167.  
  168. =head1 AUTHORS
  169.  
  170. Jarkko Hietaniemi E<lt>jhi@iki.fiE<gt>
  171.  
  172. Autrijus Tang (¡≡⌐v║~) E<lt>autrijus@autrijus.orgE<gt>
  173.  
  174. =cut
  175.