NAME
cnmap.pl - Traditional <-> Simplified Chinese Converter
SYNOPSIS
cnmap.pl -command
[ inputfile ...] > outputfile
USAGE
% cnmap.pl -s2b5 gbk.txt > big5.txt
% cnmap.pl -s2gb gbk.txt > gb.txt
% cnmap.pl -t2gb big5.txt > gb.txt
% cnmap.pl -t2gbk big5.txt big5-2.txt > gbk.txt
DESCRIPTION
The cnmap.pl 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.
The -s2gb
switch: Mixed GB2312/GBK -> Simplified GB2312.
The -t2gb
switch: Traditional Big5 -> Simplified GB2312.
The -t2gbk
switch: Traditional Big5 -> Mixed GBK.
SEE ALSO
Encode::CNMap, cnmapdir.pl, Encode::HanConvert, Encode
AUTHORS
Qing-Jie Zhou <qjzhou@hotmail.com>