cnmap - Traditional <-> Simplified Chinese Converter
cnmap -command [ inputfile ...] > outputfile
-command
% cnmap -s2b5 gbk.txt > big5.txt % cnmap -s2gb gbk.txt > gb.txt % cnmap -t2gb big5.txt > gb.txt % cnmap -t2gbk big5.txt big5-2.txt > gbk.txt
The cnmap utility reads files sequentially, converts them from Traditional to Simplified Chinese or Simplified to Traditional Chinese according to command switch, then writes them to the standard output. The inputfile arguments are processed in command-line order. if inputfile is a single dash (-) or absent, this program reads from the standard input.
-
The -s2b5 switch: Mixed GB2312/GBK -> Traditional Big5.
-s2b5
The -s2gb switch: Mixed GB2312/GBK -> Simplified GB2312.
-s2gb
The -t2gb switch: Traditional Big5 -> Simplified GB2312.
-t2gb
The -t2gbk switch: Traditional Big5 -> Mixed GBK.
-t2gbk
Please report any requests, suggestions or bugs via http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Encode-CNMap
Qing-Jie Zhou <qjzhou@hotmail.com>
Encode::CNMap, cnmapdir, Encode::HanConvert, Encode
To install Encode::CNMap, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Encode::CNMap
CPAN shell
perl -MCPAN -e shell install Encode::CNMap
For more information on module installation, please visit the detailed CPAN module installation guide.