NAME

Encode::HanExtra - Extra sets of Chinese encodings

VERSION

This document describes version 0.02 of Encode::HanExtra, released March 5, 2002.

SYNOPSIS

# Traditional Chinese
use Encode::TW; # needs perl 5.7.2 or better
use encoding 'euc-tw'; # or 'big5plus'

# Simplified Chinese
use Encode::CN;
use encoding 'gb18030';

DESCRIPTION

Perl 5.7.3 and later ships with an adequate set of Chinese encodings, including the most used CP950, CP936 (also known as GBK), Big5, Big5-HKSCS, EUC-CN, HZ, and ISO-IR-165.

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 CPAN module tries to provide the rest of them.

After installing this module, Encode::CN and Encode::TW will automatically load the extra encodings for you, so there's no need to explicitly write use Encode::HanExtra if you are using one of them already.

ENCODINGS

This version includes the following encoding tables:

EUC-TW

The EUC transport version of CNS11643 (planes 1-7), the comprehensive character set used by the Taiwan government.

GB18030

An extension to GBK, this encoding lists most Han characters (both simplified and traditional), as well as some other encodings used by other peoples in China.

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.

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.

Please send me suggestions if you want to see the following encodings added: BIG5E, BIG5-GCCS, GB-GCCS, CCCII. Other suggestions are welcome, too.

SEE ALSO

Encode, Encode::HanConvert

ACKNOWLEDGEMENTS

Some of the maps here are generated from GNU libiconv's test files, with kind permission from Bruno Haible.

The compile and encode.h are lifted from the Encode distribution, which is part of the standard perl distribution.

Map for BIG5PLUS is generated from the BIG52UCS.TXT file, courtesy of CMEX Taiwan (http://wcmex.org.tw/).

AUTHORS

Autrijus Tang <autrijus@autrijus.org>

COPYRIGHT

Copyright 2002 by Autrijus Tang <autrijus@autrijus.org>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html