Package and CLI 套件與命令列工具
npm install opencc opencc-jieba
npm install -g opencc opencc-jieba
A precise conversion engine for Traditional Chinese, Simplified Chinese, Japanese Kanji, variants, and regional wording across Mainland China, Taiwan, and Hong Kong. 精準處理繁體、簡體、日本新字體、異體字,以及中國大陸、台灣、香港地區用詞差異的中文轉換引擎。
Input / 輸入
汉字、鼠标、数据库连接池
Output / 輸出
漢字、滑鼠、資料庫連線池
npm install opencc
opencc -c s2twp.json -i input.txt -o output.txt
Install / 安裝
npm install opencc opencc-jieba
npm install -g opencc opencc-jieba
pip install opencc
brew install opencc
winget install opencc
Conversion model / 轉換模型
Handles vocabulary and idiom differences instead of only replacing individual characters.處理詞彙與慣用語差異,而不只是逐字替換。
Separates one-to-many Traditional Chinese mappings from variant character mappings.嚴格區分「一簡對多繁」與異體字映射。
Supports Mainland China, Taiwan, Hong Kong, and Japanese Shinjitai conversion profiles.支援中國大陸、台灣、香港與日本新字體轉換配置。
Dictionary data is separate from the library so teams can import, replace, and extend rules.詞庫與函式庫分離,方便導入、替換與擴展規則。
All core assets are transparent and editable, making conversion behavior auditable and reproducible.核心代碼、轉換字典與配置文件全部開放,轉換行為可審查、可復現、可自訂。
Documentation / 文檔
Read the generated API documentation, browse historical versions, or inspect the source on GitHub.查看自動生成的 API 文檔、歷史版本,或在 GitHub 檢視原始碼。