-
-
Notifications
You must be signed in to change notification settings - Fork 993
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,13 @@ Open Chinese Convert (OpenCC, 開放中文轉換) is an opensource project for c | |
|
||
中文簡繁轉換開源項目,支持詞彙級别的轉換、異體字轉換和地區習慣用詞轉換(中國大陸、臺灣、香港)。 | ||
|
||
## Documentations | ||
|
||
Project home page https://code.google.com/p/opencc/ | ||
|
||
詳細介紹 https://code.google.com/p/opencc/wiki/Introduction | ||
Introduction (詳細介紹) https://code.google.com/p/opencc/wiki/Introduction | ||
|
||
Development Documentation http://byvoid.github.io/OpenCC/ | ||
|
||
## Projects using Opencc | ||
|
||
|
@@ -40,14 +44,36 @@ Project home page https://code.google.com/p/opencc/ | |
|
||
npm install opencc | ||
|
||
## Usage | ||
|
||
$ opencc --help | ||
|
||
Open Chinese Convert (OpenCC) Command Line Tool | ||
|
||
Author: BYVoid <[email protected]> | ||
Bug Report: http://github.com/BYVoid/OpenCC/issues | ||
|
||
Usage: | ||
opencc [Options] | ||
|
||
Options: | ||
-i [file], --input=[file] Read original text from [file]. | ||
-o [file], --output=[file] Write converted text to [file]. | ||
-c [file], --config=[file] Load configuration of conversion from [file]. | ||
-v, --version Print version and build information. | ||
-h, --help Print this help. | ||
|
||
With no input file, reads standard input and writes converted stream to standard output. | ||
Default configuration(zhs2zht.ini) will be loaded if not set. | ||
|
||
## Build | ||
|
||
### Build with CMake | ||
|
||
Make a directory and check in: | ||
|
||
mkdir build | ||
cd build | ||
mkdir build | ||
cd build | ||
|
||
Build sources: | ||
|
||
|
@@ -56,17 +82,17 @@ Build sources: | |
|
||
On windows, run these commands instead: | ||
|
||
cmake .. -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX="" -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=OFF | ||
make | ||
cmake .. -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX="" -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=OFF | ||
make | ||
|
||
Install: | ||
|
||
sudo make install | ||
sudo make install | ||
|
||
|
||
### Build with gyp | ||
|
||
mkdir build | ||
mkdir build | ||
gyp --depth . -D library=shared_library -f make --generator-output=build opencc.gyp | ||
make -C build | ||
|
||
|