This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add CJK READMEs from Autrijus Tang, Dan Kogai, and
[perl5.git] / README.tw
CommitLineData
d8416318
JH
1If you read this file _as_is_, just ignore the funny characters you
2see. It is written in the POD format (see perlpod manpage) which is
3specially designed to be readable as is.
4
5The following documentation is written in Big5 encoding.
6
7¦pªG§A¥Î¤@¯ëªº¤å¦r½s¿è¾¹¾\Äý³o¥÷¤å¥ó, ½Ð©¿²¤¤å¤¤©_¯Sªºµù°O¦r²Å. ³o¥÷¤å
8¥ó¬O¥H POD (²©ú¤å¥ó®æ¦¡) ¼g¦¨; ³oºØ®æ¦¡¬O¬°¤F¯àÅý¤Hª½±µÅª¨ú¦Ó¯S§O³]­p
9ªº. Ãö©ó¦¹®æ¦¡ªº¶i¤@¨B¸ê°T, ½Ð°Ñ¦Ò perlpod ½u¤W¤å¥ó.
10
11=head1 NAME
12
13perltw - ¥¿Å餤¤å Perl «ü«n
14
15=head1 DESCRIPTION
16
17Åwªï¨Ó¨ì Perl ªº¤Ñ¦a!
18
19±q 5.8.0 ª©¶}©l, Perl ¨ã³Æ¤F¸ÔºÉªº Unicode (¸U°ê½X) ¤ä´©, ¤]³s±a¤ä´©¤F
20³\¦h©Ô¤B»y¨t¥H¥~ªº½s½X¤è¦¡; CJK (¤¤¤éÁú) «K¬O¨ä¤¤ªº¤@³¡¥÷. Unicode ¬O
21°ê»Ú©Êªº¼Ð·Ç, ¸Õ¹Ï²[»\¥@¬É¤W©Ò¦³ªº¦r²Å: ¦è¤è¥@¬É, ªF¤è¥@¬É, ¥H¤Î¨âªÌ¶¡
22ªº¤@¤Á (§Æþ¤å, ±Ô§Q¨È¤å, ªü©Ô§B¤å, §Æ§B¨Ó¤å, ¦L«×¤å, ¦L¦a¦w¤å, µ¥µ¥).
23¥¦¤]®e¯Ç¤F¦hºØ§@·~¨t²Î»P¥­»O (¦p PC ¤Î³Áª÷¶ð).
24
25Perl ¥»¨­¥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¡uEncode¡v³o­Ó¼Ò²Õ, ¥i¥HÅý§A»´©ö¦aŪ¨ú¤Î¼g¤J¦³ªº½s½X¸ê®Æ.
29
30Encode ©µ¦ù¼Ò²Õ¤ä´©¤U¦C¥¿Å餤¤åªº½s½X¤è¦¡:
31
32 big5 ³Ìªìªº Big5 ½s½X
33 big5-hkscs Big5 + ­»´ä¥~¦r¶°
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
40Perl ¤]¤ºªþ¤F¡upiconv¡v, ¤@¤ä§¹¥þ¥H Perl ¼g¦¨ªº¦r²ÅÂà´«¤u¨ãµ{¦¡, ¥Îªk
41¦p¤U:
42
43 piconv -f big5 -t utf8 < file.big5 > file.utf8
44 piconv -f utf8 -t big5 < file.utf8 > file.big5
45
46¥t¥~, §Q¥Î encoding ¼Ò²Õ, §A¥i¥H»´©ö¼g¥X¥H¦r²Å¬°³æ¦ìªºµ{¦¡½X, ¦p¤U©Ò¥Ü:
47
48 #!/usr/bin/env perl
49 # ±Ò°Ê big5 ¦r¦ê¸ÑªR; ¼Ð·Ç¿é¥X¤J¤Î¼Ð·Ç¿ù»~³£³]¬° big5 ½s½X
50 use encoding 'big5', STDIN => 'big5',
51 STDOUT => 'big5', STDERR => 'big5';
52
53 print length("Àd¾m"); # 2 (Âù¤Þ¸¹ªí¥Ü¦r²Å)
54 print length('Àd¾m'); # 4 (³æ¤Þ¸¹ªí¥Ü¦ì¤¸²Õ)
55 print index("½Î½Î±Ð»£", "να"); # -1 (¤£¥]§t¦¹¤l¦r¦ê)
56 print index('½Î½Î±Ð»£', 'να'); # 1 (±q²Ä¤G­Ó¦r¸`¶}©l)
57
58=head2 ÃB¥~ªº¤¤¤å½s½X
59
60¦pªG»Ý­n§ó¦hªº¤¤¤å½s½X, ¥i¥H±q CPAN (L<http://www.cpan.org/>) ¤U¸ü
61Encode::HanExtra ¼Ò²Õ. ¥¦¥Ø«e´£¨Ñ¤U¦C½s½X¤è¦¡:
62
63 euc-tw Unix ©µ¦ù¦r²Å¶°, ¥]§t CNS11643 ¥­­± 1-7
64 big5plus ¤¤¤å¼Æ¦ì¤Æ§Þ³N±À¼s°òª÷·|ªº Big5+
65
66¥t¥~, Encode::HanConvert ¼Ò²Õ«h´£¨Ñ¤F²ÁcÂà´«¥Îªº¨âºØ½s½X:
67
68 big5-simp Big5 ¥¿Å餤¤å»P Unicode ²Å餤¤å¤¬Âà
69 gbk-trad GBK ²Å餤¤å»P Unicode ÁcÅ餤¤å¤¬Âà
70
71­Y·Q¦b GBK »P Big5 ¤§¶¡¤¬Âà, ½Ð°Ñ¦Ò¸Ó¼Ò²Õ¤ºªþªº b2g.pl »P g2b.pl ¨â
72¤äµ{¦¡.
73
74=head2 ¶i¤@¨Bªº¸ê°T
75
76½Ð°Ñ¦Ò Perl ¤ºªþªº¤j¶q»¡©ú¤å¥ó (¤£©¯¥þ¬O¥Î­^¤å¼gªº) , ¨Ó¾Ç²ß§ó¦hÃö©ó
77Perl ªºª¾ÃÑ, ¥H¤Î Unicode ªº¨Ï¥Î¤è¦¡. ¤£¹L, ¥~³¡ªº¸ê·½¬Û·íÂ×´I:
78
79=head2 ´£¨Ñ Perl ¸ê·½ªººô§}
80
81=over 4
82
83=item L<http://www.perl.com/>
84
85Perl ªº­º­¶ (¥Ñ¼ÚµÜ§¤½¥qºûÅ@)
86
87=item L<http://www.cpan.org/>
88
89Perl ºî¦X¨åÂúô (Comprehensive Perl Archive Network)
90
91=item L<http://lists.perl.org/>
92
93Perl ¶l»¼½×¾Â¤@Äý
94
95=back
96
97=head2 ¾Ç²ß Perl ªººô§}
98
99=over 4
100
101=item L<http://www.oreilly.com.tw/chinese/perl/index.html>
102
103¥¿Å餤¤åª©ªº¼ÚµÜ§ Perl ®ÑÂÇ
104
105=item L<http://groups.google.com/groups?q=tw.bbs.comp.lang.perl>
106
107»OÆW Perl ³s½u°Q½×°Ï (¤]´N¬O¦U¤j BBS ªº Perl ³s½uª©)
108
109=back
110
111=head2 Perl ¨Ï¥ÎªÌ¶°·|
112
113=over 4
114
115=item L<http://www.pm.org/groups/asia.shtml#Taiwan>
116
117»OÆW Perl ±À¼s²Õ¤@Äý
118
119=item L<http://irc.elixus.org/>
120
121ÃÀ¥ß¨ó½u¤W²á¤Ñ«Ç
122
123=back
124
125=head2 Unicode ¬ÛÃöºô§}
126
127=over 4
128
129=item L<http://www.unicode.org/>
130
131Unicode ¾Ç³N¾Ç·| (Unicode ¼Ð·Çªº¨î©wªÌ)
132
133=item L<http://www.cl.cam.ac.uk/%7Emgk25/unicode.html>
134
135Unix/Linux ¤Wªº UTF-8 ¤Î Unicode µª«È°Ý
136
137=back
138
139=head1 AUTHORS
140
141Jarkko Hietaniemi E<lt>jhi@iki.fiE<gt>
142
143­ð©vº~ E<lt>autrijus@autrijus.orgE<gt>
144
145=cut