5 Open Chinese Convert (
OpenCC, 開放中文轉換) is an opensource project for conversion between Traditional Chinese and Simplified Chinese, supporting character-level conversion, phrase-level conversion, variant conversion and regional idioms among Mainland China, Taiwan and Hong kong.
7 中文簡繁轉換開源項目,支持詞彙級别的轉換、異體字轉換和地區習慣用詞轉換(中國大陸、臺灣、香港)。
11 Project home page https:
13 Introduction (詳細介紹) https:
15 Development Documentation http:
17 Source Code on Github https:
21 ## Projects using Opencc
26 * [libgooglepinyin](http:
27 * [ibus-libpinyin](https:
33 apt-
get install opencc
55 Open Chinese Convert (
OpenCC) Command Line Tool
57 Author: BYVoid <byvoid@byvoid.com>
64 -i [file], --input=[file] Read original text from [file].
65 -o [file], --output=[file] Write converted text to [file].
66 -c [file], --config=[file] Load configuration of conversion from [file].
67 -v, --version Print version and build information.
68 -h, --help Print this help.
70 With no input file, reads standard input and writes converted stream to standard output.
71 Default configuration(zhs2zht.ini) will be loaded if not set.
77 Make a directory and check in:
84 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -D ENABLE_GETTEXT:BOOL=ON ..
87 On windows, run these commands instead:
89 cmake .. -G
"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=
"" -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=OFF
100 gyp --depth . -D library=shared_library -f make --generator-output=build opencc.gyp