Open Chinese Convert  0.4.3
A project for conversion between Traditional and Simplified Chinese
/usr/src/RPM/BUILD/opencc-0.4.3/README.md
00001 # Open Chinese Convert
00002 
00003 ## Introduction
00004 
00005 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.
00006 
00007 中文簡繁轉換開源項目,支持詞彙級别的轉換、異體字轉換和地區習慣用詞轉換(中國大陸、臺灣、香港)。
00008 
00009 ### OpenCC特點
00010 
00011 * 嚴格區分「一簡對多繁」和「一簡對多異」。
00012 * 完全兼容異體字,可以實現動態替換。
00013 * 嚴格審校一簡對多繁詞條,原則爲「能分則不合」。
00014 * 支持中國大陸、臺灣、香港異體字和地區習慣用詞轉換,如「裏」「裡」、「鼠標」「滑鼠」。
00015 * 使用歧義分割+最少分詞算法,儘可能從技術上優化轉換效果。
00016 * 詞庫和函數庫完全分離,可以自由修改、導入、擴展。
00017 * 支持C、C++、Python、PHP、Java、Ruby、Node.js。
00018 * 兼容Windows、Linux、Mac平臺。
00019 * 已經用於ibus-pinyin、fcitx的繁體模式輸入。
00020 
00021 ## Links
00022 
00023 ### Project home page
00024 http://code.google.com/p/opencc/
00025 
00026 ### Introduction (詳細介紹)
00027 https://code.google.com/p/opencc/wiki/Introduction
00028 
00029 ### Development Documentation
00030 http://byvoid.github.io/OpenCC/
00031 
00032 ### Source Code on Github
00033 https://github.com/byvoid/opencc
00034 
00035 ### OpenCC Online (在線轉換)
00036 http://opencc.byvoid.com/
00037 
00038 ### 現代漢語常用簡繁一對多字義辨析表
00039 http://ytenx.org/byohlyuk/KienxPyan
00040 
00041 ### Projects using Opencc
00042 
00043 * [ibus-pinyin](http://code.google.com/p/ibus/)
00044 * [fcitx](http://code.google.com/p/fcitx/)
00045 * [rimeime](http://code.google.com/p/rimeime/)
00046 * [libgooglepinyin](http://code.google.com/p/libgooglepinyin/)
00047 * [ibus-libpinyin](https://github.com/libpinyin/ibus-libpinyin)
00048 * [BYVBlog](https://github.com/byvoid/byvblog)
00049 * [豆瓣同城微信](http://weixinqiao.com/douban-event/)
00050 
00051 ## Installation
00052 
00053 ### [Debian](http://packages.qa.debian.org/o/opencc.html)/[Ubuntu](https://launchpad.net/ubuntu/+source/opencc)
00054 
00055     apt-get install opencc
00056 
00057 ### [Fedora](https://admin.fedoraproject.org/pkgdb/acls/name/opencc)
00058 
00059     yum install opencc
00060 
00061 ### [Arch](https://www.archlinux.org/packages/community/x86_64/opencc/)
00062 
00063     pacman -S opencc
00064 
00065 ### [Mac](https://github.com/mxcl/homebrew/blob/master/Library/Formula/opencc.rb)
00066 
00067     brew install opencc
00068 
00069 ### [Node.js](https://npmjs.org/package/opencc)
00070 
00071     npm install opencc
00072 
00073 ## Usage
00074 
00075     $ opencc --help
00076     
00077     Open Chinese Convert (OpenCC) Command Line Tool
00078 
00079     Author: BYVoid <byvoid@byvoid.com>
00080     Bug Report: http://github.com/BYVoid/OpenCC/issues
00081 
00082     Usage:
00083      opencc [Options]
00084 
00085     Options:
00086      -i [file], --input=[file]   Read original text from [file].
00087      -o [file], --output=[file]  Write converted text to [file].
00088      -c [file], --config=[file]  Load configuration of conversion from [file].
00089      -v, --version               Print version and build information.
00090      -h, --help                  Print this help.
00091 
00092     With no input file, reads standard input and writes converted stream to standard output.
00093     Default configuration(zhs2zht.ini) will be loaded if not set.
00094 
00095 ## Build
00096 
00097 ### Build with CMake
00098 
00099 Make a directory and check in:
00100 
00101     mkdir build
00102     cd build
00103 
00104 Build sources:
00105 
00106     cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -D ENABLE_GETTEXT:BOOL=ON ..
00107     make
00108 
00109 On windows, run these commands instead:
00110 
00111     cmake .. -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX="" -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=OFF
00112     make
00113 
00114 Install:
00115 
00116     sudo make install
00117 
00118 
00119 ### Build with gyp
00120 
00121     mkdir build
00122     gyp --depth . -D library=shared_library -f make --generator-output=build opencc.gyp
00123     make -C build
00124 
00125 ## Screenshot
00126 
00127 ![OpenCC Mac](http://opencc.googlecode.com/files/screenshot-gui-mac.png)
00128 
00129 ![OpenCC Windows](http://opencc.googlecode.com/files/screenshot-gui.png)
00130 
00131 ![OpenCC Ubuntu](http://opencc.googlecode.com/files/screenshot-gui-ubuntu.png)
00132 
00133 ## Contributors
00134 
00135 * [BYVoid](http://www.byvoid.com/)
00136 * 佛振
00137 * Peng Huang
00138 * LI Daobing
 All Data Structures Files Functions Variables Defines