NAME

cnmapdir.pl - Traditional <-> Simplified Chinese Converter

SYNOPSIS

cnmapdir.pl -command inputdir/file outputdir/file

USAGE

% cnmapdir.pl -s2b5 gbkdir big5dir
% cnmapdir.pl -s2gb gbkdir gbdir
% cnmapdir.pl -t2gb big5dir gbdir
% cnmapdir.pl -t2gbk big5dir gbkdir

DESCRIPTION

The cnmapdir.pl utility reads all files recursively under inputdir, converts from Traditional to Simplified Chinese or Simplified to Traditional Chinese according to command switch, then writes them to the outputdir.

If outputdir is missing, then /out is assumped. If outputdir is not existed, it will be created automatically. If inputdir is a file, it will be converted to outputfile.

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, cnmap.pl, Encode::HanConvert, Encode

AUTHORS

Qing-Jie Zhou <qjzhou@hotmail.com>