NAME
cnmap - Traditional <-> Simplified Chinese Converter
SYNOPSIS
cnmap -command
[ inputfile ...] > outputfile
USAGE
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
DESCRIPTION
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.
The -p
switch: pause after execution.
The -s2b5
switch: Mixed GB2312/GBK -> Traditional Big5.
The -s2gb
switch: Mixed GB2312/GBK -> Simplified GB2312.
The -s2c
switch: Mixed GB2312/GBK -> Utf8.
The -s2cb5
switch: Mixed GB2312/GBK -> Tradiional Big5 -> Utf8.
The -s2cgb
switch: Mixed GB2312/GBK -> Simplified GB2312 -> Utf8.
The -t2gb
switch: Traditional Big5 -> Simplified GB2312.
The -t2gbk
switch: Traditional Big5 -> Mixed GBK.
The -t2c
switch: Traditional Big5 -> Utf8.
The -t2cgb
switch: Traditional Big5 -> Simplified GB2312 -> Utf8.
The -t2cb5
switch: Traditional Big5 -> Utf8.
The -u2b5
switch: Mixed Utf8 -> Traditional Big5.
The -u2gb
switch: Mixed Utf8 -> Simplified GB2312.
The -u2gbk
switch: Mixed Utf8 -> Mixed GBK.
The -u2cb5
switch: Mixed Utf8 -> Simplified GB2312 -> Utf8.
The -u2cgb
switch: Mixed Utf8 -> Traditional Big5 -> Utf8.
BUGS, REQUESTS, COMMENTS
Please report any requests, suggestions or bugs via http://bookbot.sourceforge.net/ http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Encode-CNMap
SEE ALSO
Encode::CNMap, cnmapwx, cnmapdir, Encode::HanConvert, Encode
COPYRIGHT AND LICENSE
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.