cnmapdir - Traditional <-> Simplified Chinese Converter
cnmapdir -command inputdir/file outputdir/file
-command
cnmapdir -h cnmapdir -hp cnmapdir -s2b5 gbkdir big5dir cnmapdir -s2gb gbkdir gbdir cnmapdir -s2c gbkdir utf8dir cnmapdir -s2cgb gbkdir utf8-cnsimp-dir cnmapdir -s2cb5 gbkdir utf8-cntrad-dir cnmapdir -t2gb big5dir gbdir cnmapdir -t2gbk big5dir gbkdir cnmapdir -t2c big5dir utf8dir cnmapdir -t2cgb big5dir utf8-cnsimp-dir cnmapdir -t2cb5 big5dir utf8-cntrad-dir cnmapdir -u2b5 utf8dir big5dir cnmapdir -u2gb utf8dir gbdir cnmapdir -u2gbk utf8dir gbkdir cnmapdir -u2cgb utf8dir utf8-cnsimp-dir cnmapdir -u2cb5 utf8dir utf8-cntrad-dir
The cnmapdir 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 -h switch: Show version and help infomation.
-h
The -p switch: pause after execution.
-p
The -s2b5 switch: Mixed GB2312/GBK -> Traditional Big5.
-s2b5
The -s2gb switch: Mixed GB2312/GBK -> Simplified GB2312.
-s2gb
The -s2c switch: Mixed GB2312/GBK -> Utf8.
-s2c
The -s2cb5 switch: Mixed GB2312/GBK -> Tradiional Big5 -> Utf8.
-s2cb5
The -s2cgb switch: Mixed GB2312/GBK -> Simplified GB2312 -> Utf8.
-s2cgb
The -t2gb switch: Traditional Big5 -> Simplified GB2312.
-t2gb
The -t2gbk switch: Traditional Big5 -> Mixed GBK.
-t2gbk
The -t2c switch: Traditional Big5 -> Utf8.
-t2c
The -t2cgb switch: Traditional Big5 -> Simplified GB2312 -> Utf8.
-t2cgb
The -t2cb5 switch: Traditional Big5 -> Utf8.
-t2cb5
The -u2b5 switch: Mixed Utf8 -> Traditional Big5.
-u2b5
The -u2gb switch: Mixed Utf8 -> Simplified GB2312.
-u2gb
The -u2gbk switch: Mixed Utf8 -> Mixed GBK.
-u2gbk
The -u2cb5 switch: Mixed Utf8 -> Simplified GB2312 -> Utf8.
-u2cb5
The -u2cgb switch: Mixed Utf8 -> Traditional Big5 -> Utf8.
-u2cgb
Please report any requests, suggestions or bugs via http://bookbot.sourceforge.net/ http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Encode-CNMap
Encode::CNMap, cnmapwx, cnmap, Encode::HanConvert, Encode
Copyright 2003-2004 Qing-Jie Zhou <qjzhou@hotmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
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.