Coder Social home page Coder Social logo

opencc's Introduction

Open Chinese Convert

Introduction

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.

中文簡繁轉換開源項目,支持詞彙級别的轉換、異體字轉換和地區習慣用詞轉換(中國大陸、臺灣、香港)。

OpenCC特點

  • 嚴格區分「一簡對多繁」和「一簡對多異」。
  • 完全兼容異體字,可以實現動態替換。
  • 嚴格審校一簡對多繁詞條,原則爲「能分則不合」。
  • 支持中國大陸、臺灣、香港異體字和地區習慣用詞轉換,如「裏」「裡」、「鼠標」「滑鼠」。
  • 使用歧義分割+最少分詞算法,儘可能從技術上優化轉換效果。
  • 詞庫和函數庫完全分離,可以自由修改、導入、擴展。
  • 支持C、C++、Python、PHP、Java、Ruby、Node.js。
  • 兼容Windows、Linux、Mac平臺。
  • 已經用於ibus-pinyin、fcitx的繁體模式輸入。

Links

Project home page

http://code.google.com/p/opencc/

Introduction (詳細介紹)

https://code.google.com/p/opencc/wiki/Introduction

Development Documentation

http://byvoid.github.io/OpenCC/

Source Code on Github

https://github.com/byvoid/opencc

OpenCC Online (在線轉換)

http://opencc.byvoid.com/

現代漢語常用簡繁一對多字義辨析表

http://ytenx.org/byohlyuk/KienxPyan

Projects using Opencc

Installation

apt-get install opencc
yum install opencc
pacman -S opencc
brew install 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

Build sources:

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -D ENABLE_GETTEXT:BOOL=ON ..
make

On windows, run these commands instead:

cmake .. -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX="" -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=OFF
make

Install:

sudo make install

Build with gyp

mkdir build
gyp --depth . -D library=shared_library -f make --generator-output=build opencc.gyp
make -C build

Screenshot

OpenCC Mac

OpenCC Windows

OpenCC Ubuntu

Contributors

  • BYVoid
  • 佛振
  • Peng Huang
  • LI Daobing

opencc's People

Contributors

byvoid avatar lotem avatar tchaikov avatar jjgod avatar kanru avatar rueycheng avatar weakish avatar mscdex avatar kunki avatar lidaobing avatar lalau avatar fqj1994 avatar marguerite avatar

Watchers

Yuyou Chow avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.