# Open Chinese Convert 開放中文轉換
[![Travis](https://img.shields.io/travis/BYVoid/OpenCC.svg)](https://travis-ci.org/BYVoid/OpenCC)
[![AppVeyor](https://img.shields.io/appveyor/ci/Carbo/OpenCC.svg)](https://ci.appveyor.com/project/Carbo/OpenCC)
[![C/C++ CI](https://github.com/BYVoid/OpenCC/actions/workflows/cmake.yml/badge.svg)](https://github.com/BYVoid/OpenCC/actions/workflows/cmake.yml)
[![Node.js CI](https://github.com/BYVoid/OpenCC/actions/workflows/nodejs.yml/badge.svg)](https://github.com/BYVoid/OpenCC/actions/workflows/nodejs.yml)
[![Python CI](https://github.com/BYVoid/OpenCC/actions/workflows/python.yml/badge.svg)](https://github.com/BYVoid/OpenCC/actions/workflows/python.yml)
## Introduction 介紹
> 本 fork 在原仓库基础上添加了 MacOS arm64 架构的 wheel 包相关构建逻辑。
![OpenCC](https://opencc.byvoid.com/img/opencc.png)
Open Chinese Convert (OpenCC, 開放中文轉換) is an opensource project for conversions between Traditional Chinese, Simplified Chinese and Japanese Kanji (Shinjitai). It supports character-level and phrase-level conversion, character variant conversion and regional idioms among Mainland China, Taiwan and Hong Kong. This is not translation tool between Mandarin and Cantonese, etc.
中文簡繁轉換開源項目,支持詞彙級別的轉換、異體字轉換和地區習慣用詞轉換(中國大陸、臺灣、香港、日本新字體)。不提供普通話與粵語的轉換。
Discussion (Telegram): https://t.me/open_chinese_convert
### Features 特點
* 嚴格區分「一簡對多繁」和「一簡對多異」。
* 完全兼容異體字,可以實現動態替換。
* 嚴格審校一簡對多繁詞條,原則爲「能分則不合」。
* 支持中國大陸、臺灣、香港異體字和地區習慣用詞轉換,如「裏」「裡」、「鼠標」「滑鼠」。
* 詞庫和函數庫完全分離,可以自由修改、導入、擴展。
## Installation 安裝
See [Download](https://github.com/BYVoid/OpenCC/wiki/Download).
## Usage 使用
### Online demo 線上轉換展示
Warning: **This is NOT an API.** You will be banned if you make calls programmatically.
https://opencc.byvoid.com/
### Node.js
[npm](https://www.npmjs.com/opencc) `npm install opencc`
#### JavaScript
```js
const OpenCC = require('opencc');
const converter = new OpenCC('s2t.json');
converter.convertPromise("汉字").then(converted => {
console.log(converted); // 漢字
});
```
#### TypeScript
```ts
import { OpenCC } from 'opencc';
async function main() {
const converter: OpenCC = new OpenCC('s2t.json');
const result: string = await converter.convertPromise('汉字');
console.log(result);
}
```
See [demo.js](https://github.com/BYVoid/OpenCC/blob/master/node/demo.js) and [ts-demo.ts](https://github.com/BYVoid/OpenCC/blob/master/node/ts-demo.ts).
### Python
[PyPI](https://pypi.org/project/OpenCC/) `pip install ds_opencc` (Windows, Linux, Mac)
```python
import ds_opencc
converter = ds_opencc.OpenCC('s2t.json')
converter.convert('汉字') # 漢字
```
### C++
```c++
#include "opencc.h"
int main() {
const opencc::SimpleConverter converter("s2t.json");
converter.Convert("汉字"); // 漢字
return 0;
}
```
### C
```c
#include "opencc.h"
int main() {
opencc_t opencc = opencc_open("s2t.json");
const char* input = "汉字";
char* converted = opencc_convert_utf8(opencc, input, strlen(input)); // 漢字
opencc_convert_utf8_free(converted);
opencc_close(opencc);
return 0;
}
```
Document 文檔: https://byvoid.github.io/OpenCC/
### Command Line
* `opencc --help`
* `opencc_dict --help`
* `opencc_phrase_extract --help`
### Others (Unofficial)
* Swift (iOS): [SwiftyOpenCC](https://github.com/XQS6LB3A/SwiftyOpenCC)
* iOSOpenCC (pod): [iOSOpenCC](https://github.com/swiftdo/OpenCC)
* Java: [opencc4j](https://github.com/houbb/opencc4j)
* Android: [android-opencc](https://github.com/qichuan/android-opencc)
* PHP: [opencc4php](https://github.com/nauxliu/opencc4php)
* Pure JavaScript: [opencc-js](https://github.com/nk2028/opencc-js)
* WebAssembly: [wasm-opencc](https://github.com/oyyd/wasm-opencc)
* Browser Extension: [opencc-extension](https://github.com/tnychn/opencc-extension)
* Go (Pure): [OpenCC for Go](https://github.com/longbridgeapp/opencc)
* Dart (native-assets): [opencc-dart](https://github.com/lindeer/opencc-dart)
### Configurations 配置文件
#### 預設配置文件
* `s2t.json` Simplified Chinese to Traditional Chinese 簡體到繁體
* `t2s.json` Traditional Chinese to Simplified Chinese 繁體到簡體
* `s2tw.json` Simplified Chinese to Traditional Chinese (Taiwan Standard) 簡體到臺灣正體
* `tw2s.json` Traditional Chinese (Taiwan Standard) to Simplified Chinese 臺灣正體到簡體
* `s2hk.json` Simplified Chinese to Traditional Chinese (Hong Kong variant) 簡體到香港繁體
* `hk2s.json` Traditional Chinese (Hong Kong variant) to Simplified Chinese 香港繁體到簡體
* `s2twp.json` Simplified Chinese to Traditional Chinese (Taiwan Standard) with Taiwanese idiom 簡體到繁體(臺灣正體標準)並轉換爲臺灣常用詞彙
* `tw2sp.json` Traditional Chinese (Taiwan Standard) to Simplified Chinese with Mainland Chinese idiom 繁體(臺灣正體標準)到簡體並轉換爲中國大陸常用詞彙
* `t2tw.json` Traditional Chinese (OpenCC Standard) to Taiwan Standard 繁體(OpenCC 標準)到臺灣正體
* `hk2t.json` Traditional Chinese (Hong Kong variant) to Traditional Chinese 香港繁體到繁體(OpenCC 標準)
* `t2hk.json` Traditional Chinese (OpenCC Standard) to Hong Kong variant 繁體(OpenCC 標準)到香港繁體
* `t2jp.json` Traditional Chinese Characters (Kyūjitai) to New Japanese Kanji (Shinjitai) 繁體(OpenCC 標準,舊字體)到日文新字體
* `jp2t.json` New Japanese Kanji (Shinjitai) to Traditional Chinese Characters (Kyūjitai) 日文新字體到繁體(OpenCC 標準,舊字體)
* `tw2t.json` Traditional Chinese (Taiwan standard) to Traditional Chinese 臺灣正體到繁體(OpenCC 標準)
## Build 編譯
### Build with CMake
#### Linux & Mac OS X
g++ 4.6+ or clang 3.2+ is required.
```bash
make
```
#### Windows Visual Studio:
```bash
build.cmd
```
### Test 測試
#### Linux & Mac OS X
```
make test
```
#### Windows Visual Studio:
```bash
test.cmd
```
### Benchmark 基準測試
```
make benchmark
```
Example results (from Github CI):
```
1: ------------------------------------------------------------------
1: Benchmark Time CPU Iterations
1: ------------------------------------------------------------------
1: BM_Initialization/hk2s 1.56 ms 1.56 ms 442
1: BM_Initialization/hk2t 0.144 ms 0.144 ms 4878
1: BM_Initialization/jp2t 0.260 ms 0.260 ms 2604
1: BM_Initialization/s2hk 23.8 ms 23.8 ms 29
1: BM_Initialization/s2t 25.6 ms 25.6 ms 28
1: BM_Initialization/s2tw 24.0 ms 23.9 ms 30
1: BM_Initialization/s2twp 24.6 ms 24.6 ms 28
1: BM_Initialization/t2hk 0.052 ms 0.052 ms 12897
1: BM_Initialization/t2jp 0.141 ms 0.141 ms 5012
1: BM_Initialization/t2s 1.30 ms 1.30 ms 540
1: BM_Initialization/tw2s 1.39 ms 1.39 ms 529
1: BM_Initialization/tw2sp 1.69 ms 1.69 ms 426
1: BM_Initialization/tw2t 0.089 ms 0.089 ms 7707
1: BM_Convert2M 582 ms 582 ms 1
1: BM_Convert/100 1.07 ms 1.07 ms 636
1: BM_Convert/1000 11.0 ms 11.0 ms 67
1: BM_Convert/10000 113 ms 113 ms 6
1: BM_Convert/100000 1176 ms 1176 ms 1
```
## Projects using OpenCC 使用 OpenCC 的項目
* [ibus-pinyin](https://github.com/ibus/ibus-pinyin)
* [fcitx](https://github.com/fcitx/fcitx)
* [rimeime](https://rime.im/)
* [libgooglepinyin](http://code.google.com/p/libgooglepinyin/)
* [ibus-libpinyin](https://github.com/libpinyin/ibus-libpinyin)
* [alfred-chinese-converter](https://github.com/amowu/alfred-chinese-converter)
* [GoldenDict](https://github.com/goldendict/goldendict)
## License 許可協議
Apache License 2.0
## Third Party Library 第三方庫
* [darts-clone](https://github.com/s-yata/darts-clone) BSD License
* [marisa-trie](https://github.com/s-yata/marisa-trie) BSD License
* [tclap](http://tclap.sourceforge.net/) MIT License
* [rapidjson](https://github.com/Tencent/rapidjson) MIT License
* [Google Test](https://github.com/google/googletest) BSD License
All these libraries are statically linked by default.
## Change History 版本歷史
* [NEWS](https://github.com/BYVoid/OpenCC/blob/master/NEWS.md)
### Links 相關鏈接
* Introduction 詳細介紹 https://github.com/BYVoid/OpenCC/wiki/%E7%B7%A3%E7%94%B1
* 現代漢語常用簡繁一對多字義辨析表 http://ytenx.org/byohlyuk/KienxPyan
## Contributors 貢獻者
* [BYVoid](http://www.byvoid.com/)
* [佛振](https://github.com/lotem)
* [Peng Huang](https://github.com/phuang)
* [LI Daobing](https://github.com/lidaobing)
* [Kefu Chai](https://github.com/tchaikov)
* [Kan-Ru Chen](http://kanru.info/)
* [Ma Xiaojun](https://twitter.com/damage3025)
* [Jiang Jiang](http://jjgod.org/)
* [Ruey-Cheng Chen](https://github.com/rueycheng)
* [Paul Meng](http://home.mno2.org/)
* [Lawrence Lau](https://github.com/ktslwy)
* [瑾昀](https://github.com/kunki)
* [內木一郎](https://github.com/SyaoranHinata)
* [Marguerite Su](https://www.marguerite.su/)
* [Brian White](http://mscdex.net)
* [Qijiang Fan](https://fqj.me/)
* [LEOYoon-Tsaw](https://github.com/LEOYoon-Tsaw)
* [Steven Yao](https://github.com/stevenyao)
* [Pellaeon Lin](https://github.com/pellaeon)
* [stony](https://github.com/stony-shixz)
* [steelywing](https://github.com/steelywing)
* [吕旭东](https://github.com/lvxudong)
* [Weng Xuetian](https://github.com/wengxt)
* [Ma Tao](https://github.com/iwater)
* [Heinz Wiesinger](https://github.com/pprkut)
* [J.W](https://github.com/jakwings)
* [Amo Wu](https://github.com/amowu)
* [Mark Tsai](https://github.com/mxgit1090)
* [Zhe Wang](https://github.com/0x1997)
* [sgqy](https://github.com/sgqy)
* [Qichuan (Sean) ZHANG](https://github.com/qichuan)
* [Flandre Scarlet](https://github.com/XadillaX)
* [宋辰文](https://github.com/songchenwen)
* [iwater](https://github.com/iwater)
* [Xpol Wan](https://github.com/xpol)
* [Weihang Lo](https://github.com/weihanglo)
* [Cychih](https://github.com/pi314)
* [kyleskimo](https://github.com/kyleskimo)
* [Ryuan Choi](https://github.com/bunhere)
* [Prcuvu](https://github.com/Prcuvu)
* [Tony Able](https://github.com/TonyAble)
* [Xiao Liang](https://github.com/yxliang01)
Please feel free to update this list if you have contributed OpenCC.
Raw data
{
"_id": null,
"home_page": "https://github.com/HFAiLab/OpenCC",
"name": "ds-opencc",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "opencc, convert, chinese",
"author": "Carbo Kuo, Peng Huang, Kefu Chai, LI Daobing, Asias, Peng Wu, Xiaojun Ma, \u4f5b\u632f",
"author_email": "byvoid@byvoid.com, shawn.p.huang@gmail.com, tchaikov@gmail.com, lidaobing@gmail.com, asias.hejun@gmail.com, alexepico@gmail.com, damage3025@gmail.com, chen.sst@gmail.com",
"download_url": null,
"platform": null,
"description": "# Open Chinese Convert \u958b\u653e\u4e2d\u6587\u8f49\u63db\n\n[![Travis](https://img.shields.io/travis/BYVoid/OpenCC.svg)](https://travis-ci.org/BYVoid/OpenCC)\n[![AppVeyor](https://img.shields.io/appveyor/ci/Carbo/OpenCC.svg)](https://ci.appveyor.com/project/Carbo/OpenCC)\n[![C/C++ CI](https://github.com/BYVoid/OpenCC/actions/workflows/cmake.yml/badge.svg)](https://github.com/BYVoid/OpenCC/actions/workflows/cmake.yml)\n[![Node.js CI](https://github.com/BYVoid/OpenCC/actions/workflows/nodejs.yml/badge.svg)](https://github.com/BYVoid/OpenCC/actions/workflows/nodejs.yml)\n[![Python CI](https://github.com/BYVoid/OpenCC/actions/workflows/python.yml/badge.svg)](https://github.com/BYVoid/OpenCC/actions/workflows/python.yml)\n\n## Introduction \u4ecb\u7d39\n\n> \u672c fork \u5728\u539f\u4ed3\u5e93\u57fa\u7840\u4e0a\u6dfb\u52a0\u4e86 MacOS arm64 \u67b6\u6784\u7684 wheel \u5305\u76f8\u5173\u6784\u5efa\u903b\u8f91\u3002\n\n![OpenCC](https://opencc.byvoid.com/img/opencc.png)\n\nOpen Chinese Convert (OpenCC, \u958b\u653e\u4e2d\u6587\u8f49\u63db) is an opensource project for conversions between Traditional Chinese, Simplified Chinese and Japanese Kanji (Shinjitai). It supports character-level and phrase-level conversion, character variant conversion and regional idioms among Mainland China, Taiwan and Hong Kong. This is not translation tool between Mandarin and Cantonese, etc.\n\n\u4e2d\u6587\u7c21\u7e41\u8f49\u63db\u958b\u6e90\u9805\u76ee\uff0c\u652f\u6301\u8a5e\u5f59\u7d1a\u5225\u7684\u8f49\u63db\u3001\u7570\u9ad4\u5b57\u8f49\u63db\u548c\u5730\u5340\u7fd2\u6163\u7528\u8a5e\u8f49\u63db\uff08\u4e2d\u570b\u5927\u9678\u3001\u81fa\u7063\u3001\u9999\u6e2f\u3001\u65e5\u672c\u65b0\u5b57\u9ad4\uff09\u3002\u4e0d\u63d0\u4f9b\u666e\u901a\u8a71\u8207\u7cb5\u8a9e\u7684\u8f49\u63db\u3002\n\nDiscussion (Telegram): https://t.me/open_chinese_convert\n\n### Features \u7279\u9ede\n\n* \u56b4\u683c\u5340\u5206\u300c\u4e00\u7c21\u5c0d\u591a\u7e41\u300d\u548c\u300c\u4e00\u7c21\u5c0d\u591a\u7570\u300d\u3002\n* \u5b8c\u5168\u517c\u5bb9\u7570\u9ad4\u5b57\uff0c\u53ef\u4ee5\u5be6\u73fe\u52d5\u614b\u66ff\u63db\u3002\n* \u56b4\u683c\u5be9\u6821\u4e00\u7c21\u5c0d\u591a\u7e41\u8a5e\u689d\uff0c\u539f\u5247\u7232\u300c\u80fd\u5206\u5247\u4e0d\u5408\u300d\u3002\n* \u652f\u6301\u4e2d\u570b\u5927\u9678\u3001\u81fa\u7063\u3001\u9999\u6e2f\u7570\u9ad4\u5b57\u548c\u5730\u5340\u7fd2\u6163\u7528\u8a5e\u8f49\u63db\uff0c\u5982\u300c\u88cf\u300d\u300c\u88e1\u300d\u3001\u300c\u9f20\u6a19\u300d\u300c\u6ed1\u9f20\u300d\u3002\n* \u8a5e\u5eab\u548c\u51fd\u6578\u5eab\u5b8c\u5168\u5206\u96e2\uff0c\u53ef\u4ee5\u81ea\u7531\u4fee\u6539\u3001\u5c0e\u5165\u3001\u64f4\u5c55\u3002\n\n## Installation \u5b89\u88dd\n\nSee [Download](https://github.com/BYVoid/OpenCC/wiki/Download).\n\n## Usage \u4f7f\u7528\n\n### Online demo \u7dda\u4e0a\u8f49\u63db\u5c55\u793a\n\nWarning: **This is NOT an API.** You will be banned if you make calls programmatically.\n\nhttps://opencc.byvoid.com/\n\n### Node.js\n\n[npm](https://www.npmjs.com/opencc) `npm install opencc`\n\n#### JavaScript\n```js\nconst OpenCC = require('opencc');\nconst converter = new OpenCC('s2t.json');\nconverter.convertPromise(\"\u6c49\u5b57\").then(converted => {\n console.log(converted); // \u6f22\u5b57\n});\n```\n\n#### TypeScript\n```ts\nimport { OpenCC } from 'opencc';\nasync function main() {\n const converter: OpenCC = new OpenCC('s2t.json');\n const result: string = await converter.convertPromise('\u6c49\u5b57');\n console.log(result);\n}\n```\n\nSee [demo.js](https://github.com/BYVoid/OpenCC/blob/master/node/demo.js) and [ts-demo.ts](https://github.com/BYVoid/OpenCC/blob/master/node/ts-demo.ts).\n\n### Python\n\n[PyPI](https://pypi.org/project/OpenCC/) `pip install ds_opencc` (Windows, Linux, Mac)\n\n```python\nimport ds_opencc\nconverter = ds_opencc.OpenCC('s2t.json')\nconverter.convert('\u6c49\u5b57') # \u6f22\u5b57\n```\n\n### C++\n\n```c++\n#include \"opencc.h\"\n\nint main() {\n const opencc::SimpleConverter converter(\"s2t.json\");\n converter.Convert(\"\u6c49\u5b57\"); // \u6f22\u5b57\n return 0;\n}\n```\n\n### C\n\n```c\n#include \"opencc.h\"\n\nint main() {\n opencc_t opencc = opencc_open(\"s2t.json\");\n const char* input = \"\u6c49\u5b57\";\n char* converted = opencc_convert_utf8(opencc, input, strlen(input)); // \u6f22\u5b57\n opencc_convert_utf8_free(converted);\n opencc_close(opencc);\n return 0;\n}\n\n```\n\nDocument \u6587\u6a94: https://byvoid.github.io/OpenCC/\n\n### Command Line\n\n* `opencc --help`\n* `opencc_dict --help`\n* `opencc_phrase_extract --help`\n\n### Others (Unofficial)\n\n* Swift (iOS): [SwiftyOpenCC](https://github.com/XQS6LB3A/SwiftyOpenCC)\n* iOSOpenCC (pod): [iOSOpenCC](https://github.com/swiftdo/OpenCC)\n* Java: [opencc4j](https://github.com/houbb/opencc4j)\n* Android: [android-opencc](https://github.com/qichuan/android-opencc)\n* PHP: [opencc4php](https://github.com/nauxliu/opencc4php)\n* Pure JavaScript: [opencc-js](https://github.com/nk2028/opencc-js)\n* WebAssembly: [wasm-opencc](https://github.com/oyyd/wasm-opencc)\n* Browser Extension: [opencc-extension](https://github.com/tnychn/opencc-extension)\n* Go (Pure): [OpenCC for Go](https://github.com/longbridgeapp/opencc)\n* Dart (native-assets): [opencc-dart](https://github.com/lindeer/opencc-dart)\n\n### Configurations \u914d\u7f6e\u6587\u4ef6\n\n#### \u9810\u8a2d\u914d\u7f6e\u6587\u4ef6\n\n* `s2t.json` Simplified Chinese to Traditional Chinese \u7c21\u9ad4\u5230\u7e41\u9ad4\n* `t2s.json` Traditional Chinese to Simplified Chinese \u7e41\u9ad4\u5230\u7c21\u9ad4\n* `s2tw.json` Simplified Chinese to Traditional Chinese (Taiwan Standard) \u7c21\u9ad4\u5230\u81fa\u7063\u6b63\u9ad4\n* `tw2s.json` Traditional Chinese (Taiwan Standard) to Simplified Chinese \u81fa\u7063\u6b63\u9ad4\u5230\u7c21\u9ad4\n* `s2hk.json` Simplified Chinese to Traditional Chinese (Hong Kong variant) \u7c21\u9ad4\u5230\u9999\u6e2f\u7e41\u9ad4\n* `hk2s.json` Traditional Chinese (Hong Kong variant) to Simplified Chinese \u9999\u6e2f\u7e41\u9ad4\u5230\u7c21\u9ad4\n* `s2twp.json` Simplified Chinese to Traditional Chinese (Taiwan Standard) with Taiwanese idiom \u7c21\u9ad4\u5230\u7e41\u9ad4\uff08\u81fa\u7063\u6b63\u9ad4\u6a19\u6e96\uff09\u4e26\u8f49\u63db\u7232\u81fa\u7063\u5e38\u7528\u8a5e\u5f59\n* `tw2sp.json` Traditional Chinese (Taiwan Standard) to Simplified Chinese with Mainland Chinese idiom \u7e41\u9ad4\uff08\u81fa\u7063\u6b63\u9ad4\u6a19\u6e96\uff09\u5230\u7c21\u9ad4\u4e26\u8f49\u63db\u7232\u4e2d\u570b\u5927\u9678\u5e38\u7528\u8a5e\u5f59\n* `t2tw.json` Traditional Chinese (OpenCC Standard) to Taiwan Standard \u7e41\u9ad4\uff08OpenCC \u6a19\u6e96\uff09\u5230\u81fa\u7063\u6b63\u9ad4\n* `hk2t.json` Traditional Chinese (Hong Kong variant) to Traditional Chinese \u9999\u6e2f\u7e41\u9ad4\u5230\u7e41\u9ad4\uff08OpenCC \u6a19\u6e96\uff09\n* `t2hk.json` Traditional Chinese (OpenCC Standard) to Hong Kong variant \u7e41\u9ad4\uff08OpenCC \u6a19\u6e96\uff09\u5230\u9999\u6e2f\u7e41\u9ad4\n* `t2jp.json` Traditional Chinese Characters (Ky\u016bjitai) to New Japanese Kanji (Shinjitai) \u7e41\u9ad4\uff08OpenCC \u6a19\u6e96\uff0c\u820a\u5b57\u9ad4\uff09\u5230\u65e5\u6587\u65b0\u5b57\u9ad4\n* `jp2t.json` New Japanese Kanji (Shinjitai) to Traditional Chinese Characters (Ky\u016bjitai) \u65e5\u6587\u65b0\u5b57\u9ad4\u5230\u7e41\u9ad4\uff08OpenCC \u6a19\u6e96\uff0c\u820a\u5b57\u9ad4\uff09\n* `tw2t.json` Traditional Chinese (Taiwan standard) to Traditional Chinese \u81fa\u7063\u6b63\u9ad4\u5230\u7e41\u9ad4\uff08OpenCC \u6a19\u6e96\uff09\n\n## Build \u7de8\u8b6f\n\n### Build with CMake\n\n#### Linux & Mac OS X\n\ng++ 4.6+ or clang 3.2+ is required.\n\n```bash\nmake\n```\n\n#### Windows Visual Studio:\n\n```bash\nbuild.cmd\n```\n\n### Test \u6e2c\u8a66\n\n#### Linux & Mac OS X\n\n```\nmake test\n```\n\n#### Windows Visual Studio:\n\n```bash\ntest.cmd\n```\n\n### Benchmark \u57fa\u6e96\u6e2c\u8a66\n\n```\nmake benchmark\n```\n\nExample results (from Github CI):\n\n```\n1: ------------------------------------------------------------------\n1: Benchmark Time CPU Iterations\n1: ------------------------------------------------------------------\n1: BM_Initialization/hk2s 1.56 ms 1.56 ms 442\n1: BM_Initialization/hk2t 0.144 ms 0.144 ms 4878\n1: BM_Initialization/jp2t 0.260 ms 0.260 ms 2604\n1: BM_Initialization/s2hk 23.8 ms 23.8 ms 29\n1: BM_Initialization/s2t 25.6 ms 25.6 ms 28\n1: BM_Initialization/s2tw 24.0 ms 23.9 ms 30\n1: BM_Initialization/s2twp 24.6 ms 24.6 ms 28\n1: BM_Initialization/t2hk 0.052 ms 0.052 ms 12897\n1: BM_Initialization/t2jp 0.141 ms 0.141 ms 5012\n1: BM_Initialization/t2s 1.30 ms 1.30 ms 540\n1: BM_Initialization/tw2s 1.39 ms 1.39 ms 529\n1: BM_Initialization/tw2sp 1.69 ms 1.69 ms 426\n1: BM_Initialization/tw2t 0.089 ms 0.089 ms 7707\n1: BM_Convert2M 582 ms 582 ms 1\n1: BM_Convert/100 1.07 ms 1.07 ms 636\n1: BM_Convert/1000 11.0 ms 11.0 ms 67\n1: BM_Convert/10000 113 ms 113 ms 6\n1: BM_Convert/100000 1176 ms 1176 ms 1\n```\n\n## Projects using OpenCC \u4f7f\u7528 OpenCC \u7684\u9805\u76ee\n\n* [ibus-pinyin](https://github.com/ibus/ibus-pinyin)\n* [fcitx](https://github.com/fcitx/fcitx)\n* [rimeime](https://rime.im/)\n* [libgooglepinyin](http://code.google.com/p/libgooglepinyin/)\n* [ibus-libpinyin](https://github.com/libpinyin/ibus-libpinyin)\n* [alfred-chinese-converter](https://github.com/amowu/alfred-chinese-converter)\n* [GoldenDict](https://github.com/goldendict/goldendict)\n\n## License \u8a31\u53ef\u5354\u8b70\n\nApache License 2.0\n\n## Third Party Library \u7b2c\u4e09\u65b9\u5eab\n\n* [darts-clone](https://github.com/s-yata/darts-clone) BSD License\n* [marisa-trie](https://github.com/s-yata/marisa-trie) BSD License\n* [tclap](http://tclap.sourceforge.net/) MIT License\n* [rapidjson](https://github.com/Tencent/rapidjson) MIT License\n* [Google Test](https://github.com/google/googletest) BSD License\n\nAll these libraries are statically linked by default.\n\n## Change History \u7248\u672c\u6b77\u53f2\n\n* [NEWS](https://github.com/BYVoid/OpenCC/blob/master/NEWS.md)\n\n### Links \u76f8\u95dc\u93c8\u63a5\n\n* Introduction \u8a73\u7d30\u4ecb\u7d39 https://github.com/BYVoid/OpenCC/wiki/%E7%B7%A3%E7%94%B1\n* \u73fe\u4ee3\u6f22\u8a9e\u5e38\u7528\u7c21\u7e41\u4e00\u5c0d\u591a\u5b57\u7fa9\u8fa8\u6790\u8868 http://ytenx.org/byohlyuk/KienxPyan\n\n## Contributors \u8ca2\u737b\u8005\n\n* [BYVoid](http://www.byvoid.com/)\n* [\u4f5b\u632f](https://github.com/lotem)\n* [Peng Huang](https://github.com/phuang)\n* [LI Daobing](https://github.com/lidaobing)\n* [Kefu Chai](https://github.com/tchaikov)\n* [Kan-Ru Chen](http://kanru.info/)\n* [Ma Xiaojun](https://twitter.com/damage3025)\n* [Jiang Jiang](http://jjgod.org/)\n* [Ruey-Cheng Chen](https://github.com/rueycheng)\n* [Paul Meng](http://home.mno2.org/)\n* [Lawrence Lau](https://github.com/ktslwy)\n* [\u747e\u6600](https://github.com/kunki)\n* [\u5167\u6728\u4e00\u90ce](https://github.com/SyaoranHinata)\n* [Marguerite Su](https://www.marguerite.su/)\n* [Brian White](http://mscdex.net)\n* [Qijiang Fan](https://fqj.me/)\n* [LEOYoon-Tsaw](https://github.com/LEOYoon-Tsaw)\n* [Steven Yao](https://github.com/stevenyao)\n* [Pellaeon Lin](https://github.com/pellaeon)\n* [stony](https://github.com/stony-shixz)\n* [steelywing](https://github.com/steelywing)\n* [\u5415\u65ed\u4e1c](https://github.com/lvxudong)\n* [Weng Xuetian](https://github.com/wengxt)\n* [Ma Tao](https://github.com/iwater)\n* [Heinz Wiesinger](https://github.com/pprkut)\n* [J.W](https://github.com/jakwings)\n* [Amo Wu](https://github.com/amowu)\n* [Mark Tsai](https://github.com/mxgit1090)\n* [Zhe Wang](https://github.com/0x1997)\n* [sgqy](https://github.com/sgqy)\n* [Qichuan (Sean) ZHANG](https://github.com/qichuan)\n* [Flandre Scarlet](https://github.com/XadillaX)\n* [\u5b8b\u8fb0\u6587](https://github.com/songchenwen)\n* [iwater](https://github.com/iwater)\n* [Xpol Wan](https://github.com/xpol)\n* [Weihang Lo](https://github.com/weihanglo)\n* [Cychih](https://github.com/pi314)\n* [kyleskimo](https://github.com/kyleskimo)\n* [Ryuan Choi](https://github.com/bunhere)\n* [Prcuvu](https://github.com/Prcuvu)\n* [Tony Able](https://github.com/TonyAble)\n* [Xiao Liang](https://github.com/yxliang01)\n\nPlease feel free to update this list if you have contributed OpenCC.\n",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "Conversion between Traditional and Simplified Chinese",
"version": "1.1.11",
"project_urls": {
"Homepage": "https://github.com/HFAiLab/OpenCC"
},
"split_keywords": [
"opencc",
" convert",
" chinese"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "28c59877e95b19c12db07f26cdc6f7d1d3781d10831a395c5590a5fcd170acad",
"md5": "2d6fa30f945f5a0d2db5c6b142403459",
"sha256": "6bbcf69dd0c83f42fe6168fdc5782397b8b285d74045126af26e0ea17065b819"
},
"downloads": -1,
"filename": "ds_opencc-1.1.11-cp311-cp311-macosx_12_0_arm64.whl",
"has_sig": false,
"md5_digest": "2d6fa30f945f5a0d2db5c6b142403459",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": null,
"size": 713592,
"upload_time": "2024-07-09T03:29:20",
"upload_time_iso_8601": "2024-07-09T03:29:20.760649Z",
"url": "https://files.pythonhosted.org/packages/28/c5/9877e95b19c12db07f26cdc6f7d1d3781d10831a395c5590a5fcd170acad/ds_opencc-1.1.11-cp311-cp311-macosx_12_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5dc39f813a638f7fad6c89b9d5ccdbc52de65b4e08b8e04e0a8f05dca737a49a",
"md5": "78159ced3c646ba20677bfb6cca8dc17",
"sha256": "9aad2fc21fe3b85316a9dbe643a05e8e06b428a499a6e4d8c870415832e04b0b"
},
"downloads": -1,
"filename": "ds_opencc-1.1.11-cp311-cp311-macosx_12_0_x86_64.whl",
"has_sig": false,
"md5_digest": "78159ced3c646ba20677bfb6cca8dc17",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": null,
"size": 735082,
"upload_time": "2024-07-09T03:33:16",
"upload_time_iso_8601": "2024-07-09T03:33:16.912063Z",
"url": "https://files.pythonhosted.org/packages/5d/c3/9f813a638f7fad6c89b9d5ccdbc52de65b4e08b8e04e0a8f05dca737a49a/ds_opencc-1.1.11-cp311-cp311-macosx_12_0_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "210d1d949618f1bbfcadb41f715b6fd68e41439cd94b59ddb30716e47d5e995d",
"md5": "12d02ef431ece95a806517fa14741719",
"sha256": "ddc74a3d5e16c792464bf300bd732abe7cad1d342ce143780da2d571e094fe71"
},
"downloads": -1,
"filename": "ds_opencc-1.1.11-cp311-cp311-manylinux1_x86_64.whl",
"has_sig": false,
"md5_digest": "12d02ef431ece95a806517fa14741719",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": null,
"size": 780122,
"upload_time": "2024-07-09T03:29:45",
"upload_time_iso_8601": "2024-07-09T03:29:45.545759Z",
"url": "https://files.pythonhosted.org/packages/21/0d/1d949618f1bbfcadb41f715b6fd68e41439cd94b59ddb30716e47d5e995d/ds_opencc-1.1.11-cp311-cp311-manylinux1_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ecbd2143b5cb4566f4f36c46dd4047becbea59a41a3a7354f5c9552b38f18a6b",
"md5": "55a5f3ba17556c3218dbc8df9f2935ad",
"sha256": "ec254093e6344e2d5fe1f812273cef375e928036f6c2640c9aef2883d5c25212"
},
"downloads": -1,
"filename": "ds_opencc-1.1.11-cp311-cp311-win_amd64.whl",
"has_sig": false,
"md5_digest": "55a5f3ba17556c3218dbc8df9f2935ad",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": null,
"size": 714929,
"upload_time": "2024-07-09T03:32:38",
"upload_time_iso_8601": "2024-07-09T03:32:38.332001Z",
"url": "https://files.pythonhosted.org/packages/ec/bd/2143b5cb4566f4f36c46dd4047becbea59a41a3a7354f5c9552b38f18a6b/ds_opencc-1.1.11-cp311-cp311-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7d82b2b30c62b944a5e0229549e80a337f3c53ab7c6f0c8e7800d774f9299cac",
"md5": "55e13a2e04f84d44a4ea13344a9e0f31",
"sha256": "c99545c510919ecb598df700a19488d5fd211771ff53324c93f7aa5ab31178d4"
},
"downloads": -1,
"filename": "ds_opencc-1.1.11-cp312-cp312-macosx_12_0_arm64.whl",
"has_sig": false,
"md5_digest": "55e13a2e04f84d44a4ea13344a9e0f31",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": null,
"size": 714217,
"upload_time": "2024-07-09T03:29:23",
"upload_time_iso_8601": "2024-07-09T03:29:23.357079Z",
"url": "https://files.pythonhosted.org/packages/7d/82/b2b30c62b944a5e0229549e80a337f3c53ab7c6f0c8e7800d774f9299cac/ds_opencc-1.1.11-cp312-cp312-macosx_12_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4100c285fd617aa47fb34239d6bd964cd4aa46e2badd41113c8e90e31485bd89",
"md5": "0537d39debe2a8ec18cc08d233bccf80",
"sha256": "fa49ace4ea3217c08d391ddbd76121c1f3140369a0a54602fc5760500eb5463e"
},
"downloads": -1,
"filename": "ds_opencc-1.1.11-cp312-cp312-macosx_12_0_x86_64.whl",
"has_sig": false,
"md5_digest": "0537d39debe2a8ec18cc08d233bccf80",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": null,
"size": 735697,
"upload_time": "2024-07-09T03:33:18",
"upload_time_iso_8601": "2024-07-09T03:33:18.616588Z",
"url": "https://files.pythonhosted.org/packages/41/00/c285fd617aa47fb34239d6bd964cd4aa46e2badd41113c8e90e31485bd89/ds_opencc-1.1.11-cp312-cp312-macosx_12_0_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c7223582828668959a4ba5cd78886cf3e90b0e61b0ec321ad0bb58f36dc9a778",
"md5": "e6efd16c97bbc10fac9781edf099d562",
"sha256": "ab12491cef2d43c859246e3e8c5d87d709658c03af05d7c970b8e4bdfd851cad"
},
"downloads": -1,
"filename": "ds_opencc-1.1.11-cp312-cp312-manylinux1_x86_64.whl",
"has_sig": false,
"md5_digest": "e6efd16c97bbc10fac9781edf099d562",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": null,
"size": 780072,
"upload_time": "2024-07-09T03:29:47",
"upload_time_iso_8601": "2024-07-09T03:29:47.402333Z",
"url": "https://files.pythonhosted.org/packages/c7/22/3582828668959a4ba5cd78886cf3e90b0e61b0ec321ad0bb58f36dc9a778/ds_opencc-1.1.11-cp312-cp312-manylinux1_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "129385c3d197a695ac9a0e84ebc6628bd679aa0f337cfc5b8e529e55c4cb1d13",
"md5": "0775d7ecf0dff71f1f6687c9c97e620a",
"sha256": "5f37301a0716ade9db3c32d3de0dca993855b0eeadb326cd478090b44170c6d5"
},
"downloads": -1,
"filename": "ds_opencc-1.1.11-cp312-cp312-win_amd64.whl",
"has_sig": false,
"md5_digest": "0775d7ecf0dff71f1f6687c9c97e620a",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": null,
"size": 715034,
"upload_time": "2024-07-09T03:32:39",
"upload_time_iso_8601": "2024-07-09T03:32:39.900352Z",
"url": "https://files.pythonhosted.org/packages/12/93/85c3d197a695ac9a0e84ebc6628bd679aa0f337cfc5b8e529e55c4cb1d13/ds_opencc-1.1.11-cp312-cp312-win_amd64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-09 03:29:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "HFAiLab",
"github_project": "OpenCC",
"travis_ci": true,
"coveralls": false,
"github_actions": true,
"appveyor": true,
"lcname": "ds-opencc"
}