xref: /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/pod/perljp.pod (revision 0:68f95e015346)
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 euc-jp encoding.
6
7=head1 NAME
8
9perljp - ���ܸ� Perl ������
10
11=head1 ����
12
13Perl �������ؤ褦����!
14
15Perl 5.8.0 ��ꡢUnicode���ݡ��Ȥ������˶������졢���η�̥�ƥ�ʸ���ʳ���ʸ�������ɤΥ��ݡ��Ȥ� CJK (���졢���ܸ졢�ϥ���)��ޤ�Ʋä��ޤ�����Unicode���������ʸ�����Ĥ�ʸ�������ɤǰ������Ȥ��ܻؤ���ɸ�൬�ʤǤ��ꡢ�줫�������Ϥ��ޤ����δ֤�ʸ���ʥ��ꥷ��ʸ�������꡼��ʸ��������ӥ�ʸ�����إ֥饤ʸ�����ǥ��������ʥ�����ʸ�����ʤɤʤɡˤ䡢����ޤǤ�OS�٥�������ȼ������Ƥ���ʸ��(PC�����Macintosh)�����Ǥ˴ޤޤ�Ƥ��ޤ���
16
17Perl ���Ȥ� Unicode ��ư��ޤ���Perl ������ץ����ʸ�����ƥ�������ɽ���� Unicode ������Ȥ��Ƥ��ޤ��������������ϤΤ���ˤϡ�����ޤǻȤ��Ƥ������ޤ��ޤ�ʸ�������ɤ��б�����⥸�塼�롢�� Encode �פ�ɸ����������Ƥ��ꡢUnicode �Ȥ�����ʸ�������ɤ�����Ѵ����ñ�˹Ԥ���褦�ˤʤäƤ��ޤ���
18
19�������� Encode �����ݡ��Ȥ���ʸ�������ɤϰʲ��ΤȤ���Ǥ���
20
21  7bit-jis      AdobeStandardEncoding AdobeSymbol       AdobeZdingbat
22  ascii             big5              big5-hkscs        cp1006
23  cp1026            cp1047            cp1250            cp1251
24  cp1252            cp1253            cp1254            cp1255
25  cp1256            cp1257            cp1258            cp37
26  cp424             cp437             cp500             cp737
27  cp775             cp850             cp852             cp855
28  cp856             cp857             cp860             cp861
29  cp862             cp863             cp864             cp865
30  cp866             cp869             cp874             cp875
31  cp932             cp936             cp949             cp950
32  dingbats          euc-cn            euc-jp            euc-kr
33  gb12345-raw       gb2312-raw        gsm0338           hp-roman8
34  hz                iso-2022-jp       iso-2022-jp-1     iso-8859-1
35  iso-8859-10       iso-8859-11       iso-8859-13       iso-8859-14
36  iso-8859-15       iso-8859-16       iso-8859-2        iso-8859-3
37  iso-8859-4        iso-8859-5        iso-8859-6        iso-8859-7
38  iso-8859-8        iso-8859-9        iso-ir-165        jis0201-raw
39  jis0208-raw       jis0212-raw       johab             koi8-f
40  koi8-r            koi8-u            ksc5601-raw       MacArabic
41  MacCentralEurRoman  MacChineseSimp    MacChineseTrad    MacCroatian
42  MacCyrillic       MacDingbats       MacFarsi          MacGreek
43  MacHebrew         MacIcelandic      MacJapanese       MacKorean
44  MacRoman          MacRomanian       MacRumanian       MacSami
45  MacSymbol         MacThai           MacTurkish        MacUkrainian
46  nextstep          posix-bc          shiftjis          symbol
47  UCS-2BE           UCS-2LE           UTF-16            UTF-16BE
48  UTF-16LE          UTF-32            UTF-32BE          UTF-32LE
49  utf8              viscii
50
51(��114����)
52
53�㤨�С�ʸ��������FOO�Υե������UTF-8���Ѵ�����ˤϡ��ʲ��Τ褦�ˤ��ޤ���
54
55    perl -Mencoding=FOO,STDOUT,utf8 -pe1 < file.FOO > file.utf8
56
57�ޤ���Perl�ˤϡ�������Perl�ǽ��줿ʸ���������Ѵ��桼�ƥ���ƥ���piconv����°���Ƥ���Τǡ��ʲ��Τ褦�ˤ��뤳�Ȥ�Ǥ��ޤ���
58
59   piconv -f FOO -t utf8 < file.FOO > file.utf8
60   piconv -f utf8 -t FOO < file.utf8 > file.FOO
61
62=head2 About (jcode.pl|Jcode.pm|JPerl)
63
645.8�����Ρ�������ץȤ�EUC-JP�Ǥ���Х�ƥ������ϰ������Ȥ��Ǥ��ޤ������ޤ��������Ϥ����⥸�塼��Ȥ��Ƥ�Jcode.pm��( http://openlab.jp/Jcode/ )��perl4�ѤΥ桼�ƥ���ƥ��Ȥ��Ƥ�jcode.pl( http://srekcah.org/jcode/ )�����줾��¸�ߤ������ܸ�ΰ�����CGI�Ǥ褯���Ѥ���Ƥ��뤳�Ȥ��¸�������⾯�ʤ��ʤ����Ȼפ��ޤ��������������ܸ�ˤ������ɽ�����ޤ��������Ȥ��Բ�ǽ�Ǥ�����
65
665.005������Perl�ˤϡ����ܸ���ò����������饤���ǡ�Jperl��¸�ߤ��ޤ���( http://homepage2.nifty.com/kipp/perl/jperl/index.html )���ޤ���Mac OS 9.x/Classic�Ѥ�Perl��MacPerl�����ܸ��Ǥ�MacJPerl�Ȥ���¸�ߤ��Ƥޤ�����( http://world.std.com/~habilis/macjperl/ ).�����Ǥ�ʸ�������ɤȤ���EUC-JP�˲ä�Shift_JIS�⤽�Τޤް������Ȥ��Ǥ����ޤ����ܸ�ˤ������ɽ���������Ȥ��ǽ�Ǥ�����
67
68Perl5.8�Ǥϡ������ε�ǽ�����٤�Perl���Τ����Ǽ¸��Ǥ����ˡ����ܸ�Τߤʤ餺�嵭114��ʸ�������ɤ��٤ơ�������Ʊ���˰������Ȥ��Ǥ��ޤ�������ˡ�CPAN�ʤɤ��鿷����ʸ���������ѤΥ⥸�塼������ꤹ�뤳�Ȥ��ñ�ˤǤ���褦�ˤʤäƤ��ޤ���
69
70=over 4
71
72=item *
73
74������
75
76�ʲ�����Ϥ��Ť��Shift_JIS�����Ϥ�EUC-JP���Ѵ����ƽ��Ϥ��ޤ���
77
78  # jcode.pl
79  require "jcode.pl";
80  while(<>){
81    jcode::convert(*_, 'euc', 'sjis');
82    print;
83  }
84  # Jcode.pm
85  use Jcode;
86  while(<>){
87  	print Jcode->new($_, 'sjis')->euc;
88  }
89  # Perl 5.8
90  use Encode;
91  while(<>){
92    from_to($_, 'shiftjis', 'euc-jp');
93    print;
94  }
95  # Perl 5.8 - encoding �����Ѥ���
96  use encoding 'euc-jp', STDIN => 'shiftjis';
97  while(<>){
98  	print;
99  }
100
101=item *
102
103Jperl �ߴ�������ץ�
104
105 ������"shebang"���ѹ���������ǡ�Jperl�Ѥ�script�ΤۤȤ�ɤ��ѹ��ʤ������Ѳ�ǽ���Ȼפ��ޤ���
106
107   #!/path/to/jperl
108   ��
109   #!/path/to/perl -Mencoding=euc-jp
110
111 �ܤ����� perldoc encoding ���Ȥ��Ƥ���������
112
113=back
114
115=head2 ����˾ܤ���
116
117Perl�ˤ�����ʻ�������°���Ƥ��ꡢPerl�ο���ǽ��Unicode���ݡ��ȡ�������Encode�⥸�塼��λ���ˡ�ʤɤ��٤������夵��Ƥ��ޤ��ʻ�ǰ�ʤ��顢�ۤȤ�ɱѸ�ǤϤ���ޤ����ˡ��ʲ��Υ��ޥ�ɤǤ����ΰ�����������뤳�Ȥ���ǽ�Ǥ���
118
119  perldoc perlunicode # Perl��Unicode���ݡ�������
120  perldoc Encode      # Encode�⥸�塼��˴ؤ���
121  perldoc Encode::JP  # �������ܸ�ʸ�������ɤ˴ؤ���
122
123=head2 Perl���̤˴ؤ��� URL
124
125=over 4
126
127=item L<http://www.perl.com/>
128
129Perl �ۡ���ڡ��� (O'Reilly and Associates)
130
131=item L<http://www.cpan.org/>
132
133CPAN (Comprehensive Perl Archive Network)
134
135=item L<http://lists.perl.org/>
136
137Perl �᡼����ꥹ�Ƚ�
138
139=back
140
141=head2 Perl��������� URL
142
143=over 4
144
145=item L<http://www.oreilly.com.tw/chinese/>
146
147O'Reilly �Ҥ�Perl��Ϣ����(���λ�����)
148
149=item L<http://www.oreilly.com.cn/chinese/>
150
151O'Reilly �Ҥ�Perl��Ϣ����(���λ�����)
152
153=item L<http://www.oreilly.co.jp/catalog.htm>
154
155���饤�꡼�Ҥ�Perl��Ϣ����(���ܸ�)
156
157=back
158
159=head2 Perl �桼�������롼��
160
161=over 4
162
163=item L<http://www.pm.org/groups/asia.shtml#China>
164
165������ڿ�̱���¹��
166
167=item L<http://www.pm.org/groups/asia.shtml#Japan>
168
169����
170
171=item L<http://www.pm.org/groups/asia.shtml#Korea%20(Republic%20of)>
172
173�ڹ�����̱���
174
175=item L<http://www.pm.org/groups/asia.shtml#Taiwan>
176
177���ѡ����̱���
178
179=back
180
181=head2 Unicode��Ϣ��URL
182
183=over 4
184
185=item L<http://www.unicode.org/>
186
187Unicode ������������ (Unicode���ʤ���������)
188
189=item L<http://www.cl.cam.ac.uk/%7Emgk25/unicode.html>
190
191UTF-8 and Unicode FAQ for Unix/Linux
192
193=item L<http://kldp.org/Translations/html/UTF8-Unicode-KLDP/UTF8-Unicode-KLDP.html>
194
195UTF-8 and Unicode FAQ for Unix/Linux (�ϥ�����)
196
197=back
198
199=head1 AUTHORS
200
201Jarkko Hietaniemi E<lt>jhi@iki.fiE<gt>
202Dan Kogai (��������) E<lt>dankogai@dan.co.jpE<gt>
203
204=cut
205