Open Chinese Convert 0.4.3 A project for conversion between Traditional and Simplified Chinese

- Main Page
- Related Pages
- Modules
- Data Structures
- Files
- Examples

- File List
- Globals

All Data Structures Files Functions Variables Groups Pages
/build/opencc/src/opencc-0.4.3/README.md
1 # Open Chinese Convert
2
3 ## Introduction
4
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.
6
7 中文簡繁轉換開源項目，支持詞彙級别的轉換、異體字轉換和地區習慣用詞轉換（中國大陸、臺灣、香港）。
8
9 ### OpenCC特點
10
11 * 嚴格區分「一簡對多繁」和「一簡對多異」。
12 * 完全兼容異體字，可以實現動態替換。
13 * 嚴格審校一簡對多繁詞條，原則爲「能分則不合」。
14 * 支持中國大陸、臺灣、香港異體字和地區習慣用詞轉換，如「裏」「裡」、「鼠標」「滑鼠」。
15 * 使用歧義分割+最少分詞算法，儘可能從技術上優化轉換效果。
16 * 詞庫和函數庫完全分離，可以自由修改、導入、擴展。
17 * 支持C、C++、Python、PHP、Java、Ruby、Node.js。
18 * 兼容Windows、Linux、Mac平臺。
19 * 已經用於ibus-pinyin、fcitx的繁體模式輸入。
20
21 ## Links
22
23 ### Project home page
24 http://code.google.com/p/opencc/
25
26 ### Introduction (詳細介紹)
27 https://code.google.com/p/opencc/wiki/Introduction
28
29 ### Development Documentation
30 http://byvoid.github.io/OpenCC/
31
32 ### Source Code on Github
33 https://github.com/byvoid/opencc
34
35 ### OpenCC Online (在線轉換)
36 http://opencc.byvoid.com/
37
38 ### 現代漢語常用簡繁一對多字義辨析表
39 http://ytenx.org/byohlyuk/KienxPyan
40
41 ### Projects using Opencc
42
43 * [ibus-pinyin](http://code.google.com/p/ibus/)
44 * [fcitx](http://code.google.com/p/fcitx/)
45 * [rimeime](http://code.google.com/p/rimeime/)
46 * [libgooglepinyin](http://code.google.com/p/libgooglepinyin/)
47 * [ibus-libpinyin](https://github.com/libpinyin/ibus-libpinyin)
48 * [BYVBlog](https://github.com/byvoid/byvblog)
49 * [豆瓣同城微信](http://weixinqiao.com/douban-event/)
50
51 ## Installation
52
53 ### [Debian](http://packages.qa.debian.org/o/opencc.html)/[Ubuntu](https://launchpad.net/ubuntu/+source/opencc)
54
55 apt-get install opencc
56
57 ### [Fedora](https://admin.fedoraproject.org/pkgdb/acls/name/opencc)
58
59 yum install opencc
60
61 ### [Arch](https://www.archlinux.org/packages/community/x86_64/opencc/)
62
63 pacman -S opencc
64
65 ### [Mac](https://github.com/mxcl/homebrew/blob/master/Library/Formula/opencc.rb)
66
67 brew install opencc
68
69 ### [Node.js](https://npmjs.org/package/opencc)
70
71 npm install opencc
72
73 ## Usage
74
75 $ opencc --help
76
77 Open Chinese Convert (OpenCC) Command Line Tool
78
79 Author: BYVoid <byvoid@byvoid.com>
80 Bug Report: http://github.com/BYVoid/OpenCC/issues
81
82 Usage:
83 opencc [Options]
84
85 Options:
86 -i [file], --input=[file] Read original text from [file].
87 -o [file], --output=[file] Write converted text to [file].
88 -c [file], --config=[file] Load configuration of conversion from [file].
89 -v, --version Print version and build information.
90 -h, --help Print this help.
91
92 With no input file, reads standard input and writes converted stream to standard output.
93 Default configuration(zhs2zht.ini) will be loaded if not set.
94
95 ## Build
96
97 ### Build with CMake
98
99 Make a directory and check in:
100
101 mkdir build
102 cd build
103
104 Build sources:
105
106 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -D ENABLE_GETTEXT:BOOL=ON ..
107 make
108
109 On windows, run these commands instead:
110
111 cmake .. -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX="" -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=OFF
112 make
113
114 Install:
115
116 sudo make install
117
118
119 ### Build with gyp
120
121 mkdir build
122 gyp --depth . -D library=shared_library -f make --generator-output=build opencc.gyp
123 make -C build
124
125 ## Screenshot
126
127 ![OpenCC Mac](http://opencc.googlecode.com/files/screenshot-gui-mac.png)
128
129 ![OpenCC Windows](http://opencc.googlecode.com/files/screenshot-gui.png)
130
131 ![OpenCC Ubuntu](http://opencc.googlecode.com/files/screenshot-gui-ubuntu.png)
132
133 ## Contributors
134
135 * [BYVoid](http://www.byvoid.com/)
136 * 佛振
137 * Peng Huang
138 * LI Daobing
OpenCC
OpenCC Node.js API.