.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Encode::HanExtra 3pm" .TH Encode::HanExtra 3pm "2015-06-04" "perl v5.24.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Encode::HanExtra \- Extra sets of Chinese encodings .SH "VERSION" .IX Header "VERSION" This document describes version 0.23 of Encode::HanExtra, released November 10, 2007. .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use Encode; \& \& # Traditional Chinese \& $euc_tw = encode("euc\-tw", $utf8); # loads Encode::HanExtra implicitly \& $utf8 = decode("euc\-tw", $euc_tw); # ditto \& \& # Simplified Chinese \& $gb18030 = encode("gb18030", $utf8); # loads Encode::HanExtra implicitly \& $utf8 = decode("gb18030", $gb18030); # ditto .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" Perl 5.7.3 and later ships with an adequate set of Chinese encodings, including the commonly used \f(CW\*(C`CP950\*(C'\fR, \f(CW\*(C`CP936\*(C'\fR (also known as \f(CW\*(C`GBK\*(C'\fR), \&\f(CW\*(C`Big5\*(C'\fR (alias for \f(CW\*(C`Big5\-Eten\*(C'\fR), \f(CW\*(C`Big5\-HKSCS\*(C'\fR, \f(CW\*(C`EUC\-CN\*(C'\fR, \f(CW\*(C`HZ\*(C'\fR, and \&\f(CW\*(C`ISO\-IR\-165\*(C'\fR. .PP However, the numbers of Chinese encodings are staggering, and a complete coverage will easily increase the size of perl distribution by several megabytes; hence, this \s-1CPAN\s0 module tries to provide the rest of them. .PP If you are using Perl 5.8 or later, Encode::CN and Encode::TW will automatically load the extra encodings for you, so there's no need to explicitly write \f(CW\*(C`use Encode::HanExtra\*(C'\fR if you are using one of them already. .SH "ENCODINGS" .IX Header "ENCODINGS" This version includes the following encoding tables: .PP .Vb 10 \& Canonical Alias Description \& \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- \& big5\-1984 /\eb(tca\-)?big5\-?(19)?84$/i TCA\*(Aqs original Big5\-1984 \& big5\-2003 /\eb(cmex\-)?big5\-?(20)?03$/i Big5\-2003 (national standard) \& big5ext /\eb(cmex\-)?big5\-?e(xt)?$/i CMEX\*(Aqs Big5e Extension \& big5plus /\eb(cmex\-)?big5\-?p(lus)?$/i CMEX\*(Aqs Big5+ Extension \& /\eb(cmex\-)?big5\e+$/i \& cccii /\eb(ccag\-)?cccii$/i Chinese Character Code for \& Information Interchange \& cns11643\-1 /\ebCNS[\-_ ]?11643[\-_]1$/i Taiwan\*(Aqs CNS map, plane 1 \& cns11643\-2 /\ebCNS[\-_ ]?11643[\-_]2$/i Taiwan\*(Aqs CNS map, plane 2 \& cns11643\-3 /\ebCNS[\-_ ]?11643[\-_]3$/i Taiwan\*(Aqs CNS map, plane 3 \& cns11643\-4 /\ebCNS[\-_ ]?11643[\-_]4$/i Taiwan\*(Aqs CNS map, plane 4 \& cns11643\-5 /\ebCNS[\-_ ]?11643[\-_]5$/i Taiwan\*(Aqs CNS map, plane 5 \& cns11643\-6 /\ebCNS[\-_ ]?11643[\-_]6$/i Taiwan\*(Aqs CNS map, plane 6 \& cns11643\-7 /\ebCNS[\-_ ]?11643[\-_]7$/i Taiwan\*(Aqs CNS map, plane 7 \& cns11643\-f /\ebCNS[\-_ ]?11643[\-_]f$/i Taiwan\*(Aqs CNS map, plane F \& euc\-tw /\ebeuc.*tw$/i EUC (Extended Unix Character) \& /\ebtw.*euc$/i \& gb18030 /\ebGB[\-_ ]?18030$/i GBK with Traditional Characters \& unisys /\ebunisys$/i Unisys Traditional Chinese \& unisys\-sosi1 Unisys SOSI1 transport encoding \& unisys\-sosi2 Unisys SOSI2 transport encoding .Ve .PP Detailed descriptions are as follows: .IP "\s-1BIG5\-1984\s0" 4 .IX Item "BIG5-1984" This is the original Big5 encoding made by \s-1TCA\s0 Taiwan. .IP "\s-1BIG5\-2003\s0" 4 .IX Item "BIG5-2003" This revised encoding is now national standard, as an appendix of \s-1CNS11643.\s0 .IP "\s-1BIG5PLUS\s0" 4 .IX Item "BIG5PLUS" This encoding, while not heavily used, is an attempt to bring all Taiwan's conflicting internal-use encodings together, and fit it as an extension to the widely-deployed Big5 range, by \s-1CMEX\s0 Taiwan. .IP "\s-1BIG5EXT\s0" 4 .IX Item "BIG5EXT" The \s-1CMEX\s0's second (and less ambitious) try at unifying the most commonly used characters not covered by Big5, while not polluting out of the 94x94 arragement like \s-1BIG5PLUS\s0 did. .IP "\s-1CCCII\s0" 4 .IX Item "CCCII" The earliest (and most sophisticated) Traditional Chinese encoding, with a three-byte raw character map, made in 1980 by the Chinese Character Analysis Group (\s-1CCAG\s0), used mostly in library systems. .IP "EUC-TW" 4 .IX Item "EUC-TW" The \s-1EUC\s0 transport version of \f(CW\*(C`CNS11643\*(C'\fR (planes 1\-7), the comprehensive character set used by the Taiwan government. .IP "CNS11643\-*" 4 .IX Item "CNS11643-*" The raw character map extracted from the Unihan database, including the plane F which wasn't included in \f(CW\*(C`EUC\-TW\*(C'\fR. .IP "\s-1GB18030\s0" 4 .IX Item "GB18030" An extension to \s-1GBK,\s0 this encoding lists most Han characters (both simplified and traditional), as well as some other encodings used by other peoples in China. .IP "\s-1UNISYS\s0" 4 .IX Item "UNISYS" Unisys System's internal Chinese mapping. .SH "NOTES" .IX Header "NOTES" If you are looking for ways to transliterate between Simplified and Traditional Chinese, please take a look at Encode::HanConvert. Note that the direct mapping via Unicode is lossy, and usually doesn't work at all. .PP Please send me suggestions if you want to see more encoding added, such as \f(CW\*(C`BIG5\-GCCS\*(C'\fR (superseded by \f(CW\*(C`BIG5\-HKSCS\*(C'\fR). Other suggestions are welcome, too. .SH "SEE ALSO" .IX Header "SEE ALSO" Encode, Encode::HanConvert .SH "ACKNOWLEDGEMENTS" .IX Header "ACKNOWLEDGEMENTS" Some of the maps here are generated from \s-1GNU\s0 libiconv's test files, with kind permission from Bruno Haible. .PP Map for \f(CW\*(C`BIG5PLUS\*(C'\fR is generated from the \fI\s-1BIG52UCS.TXT\s0\fR file, courtesy of \s-1CMEX\s0 Taiwan (Chinese Microcomputer Extended Foundation, ). .PP Map for \f(CW\*(C`BIG5\-1984\*(C'\fR is supplied by imacat. .PP Map for \f(CW\*(C`CCCII\*(C'\fR is supplied by the Koha Taiwan project. .SH "AUTHORS" .IX Header "AUTHORS" Audrey Tang .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright 2002\-2007 by Audrey Tang . .PP This software is released under the \s-1MIT\s0 license cited below. .ie n .SS "The ""\s-1MIT""\s0 License" .el .SS "The ``\s-1MIT''\s0 License" .IX Subsection "The MIT License" Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \*(L"Software\*(R"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: .PP The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. .PP \&\s-1THE SOFTWARE IS PROVIDED \*(L"AS IS\*(R", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\s0