cnmap - Traditional <-> Simplified Chinese Converter
cnmap -command [ inputfile ...] > outputfile
-command
cnmap -h cnmap -hp cnmap -s2b5 gbk.txt > big5.txt cnmap -s2gb gbk.txt > gb.txt cnmap -s2c gbk.txt > utf8.txt cnmap -s2cgb gbk.txt > utf8-cnsimp.txt cnmap -s2cb5 gbk.txt > utf8-cntrad.txt cnmap -t2gb big5.txt > gb.txt cnmap -t2gbk big5.txt > gbk.txt cnmap -t2c big5.txt > utf8.txt cnmap -t2cgb big5.txt > utf8-cnsimp.txt cnmap -t2cb5 big5.txt > utf8-cntrad.txt cnmap -u2b5 utf8.txt > big5.txt cnmap -u2gb utf8.txt > gb.txt cnmap -u2gbk utf8.txt > gbk.txt cnmap -u2cgb utf8.txt > utf8-cnsimp.txt cnmap -u2cb5 utf8.txt > utf8-cntrad.txt cat gbk.txt | cnmap -s2gb | more
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 -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, cnmapdir, 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.