Chinese-Character Jian<=>Fan converter
中文简繁互转工具
ccjf
will convert Chinese-Character between Jian and Fan (简体 & 繁体/正體, Simplified and Traditional Chinese).
Chinese-Character Jian<=>Fan converter
built on 2017-05-05
Command line tool to convert between Chinese jian/fan characters
Options:
-h, --help display help information
-i, --in The Chinese text file to read from (or stdin)
-v, --verbose Be verbose (with level 1 & 2)
Commands:
jf jian => fan
fj fan => jian
jian => fan
convert from jian to fan
Options:
-h, --help display help information
-i, --in The Chinese text file to read from (or stdin)
-v, --verbose Be verbose (with level 1 & 2)
fan => jian
convert from fan to jian
Options:
-h, --help display help information
-i, --in The Chinese text file to read from (or stdin)
-v, --verbose Be verbose (with level 1 & 2)
$ ccjf jf 看书学习。
看書學習。
$ ccjf fj 增補臺灣標準IT詞彙。
增补台湾标准IT词汇。
$ echo '名著:《红楼梦》〖清〗曹雪芹 著、高鹗 续/『人民文学』出版社/1996—9月30日/59.70【元】,《三国演义》〖明〗罗贯中。' | tee /tmp/ccin-jt.txt | ccjf jf -i | tee /tmp/ccin-ft.txt
名著:《紅樓夢》〖清〗曹雪芹 著、高鶚 續/『人民文學』齣版社/1996—9月30日/59.70【元】,《三國演義》〖明〗羅貫中。
$ ccjf jf -i /tmp/ccin-jt.txt
名著:《紅樓夢》〖清〗曹雪芹 著、高鶚 續/『人民文學』齣版社/1996—9月30日/59.70【元】,《三國演義》〖明〗羅貫中。
$ ccjf fj -i /tmp/ccin-ft.txt
名著:《红楼梦》〖清〗曹雪芹 著、高鹗 续/『人民文学』出版社/1996—9月30日/59.70【元】,《三国演义》〖明〗罗贯中。
All patches welcome.
Available at
https://github.com/go-cc/ccjf/releases
ccjf
is a simple, deterministic Chinese-Character Jian<=>Fan converter. I.e., it follows the famous Unix philosophy of “do one thing and do it well“:
In essence, the ccjf
is a character based converter. This is important to me as I don’t want my converter to convert “悉尼” into “雪梨”, or “总线” into “會流排”. I rely on that so as to build my 多音字词语表 correctly. If you do need such phrase or meaning based converter, take a look at OpenCC.