zhconv 0.1.0-alpha

Convert Traditional/Simplified Chinese and regional words of Taiwan/Hong Kong/mainland China/Singapore based on Wikipedia conversion tables 轉換中文簡體、繁體及兩岸、新馬地區詞,基於中文維基轉換表
docs.rs failed to build zhconv-0.1.0-alpha
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: zhconv-0.4.1

(WIP) zhconv-rs

zhconv-rs in a Rust lib, cli tool, and also a web app to convert Chinese text among several script or region variants (e.g. zh-TW <-> zh-CN <-> zh-HK <-> zh-Hans <-> zh-Hant).

It is built on the top the zhConversion.php conversion tables from Mediawiki, which is the one also used on Chinese Wikipedia.

Supported variants

Target Tag Script Description
Simplified Chinese / 简体中文 zh-Hans SC / 简 W/O substituing region-specific words.
Traditional Chinese / 繁體中文 zh-Hant TC / 繁 Ditto.
Chinese (Taiwan) / 臺灣正體 zh-TW TC / 繁 With Taiwan-specific words adapted.
Chinese (Hong Kong) / 香港繁體 zh-HK TC / 繁 With Hong Kong-specific words adapted.
Chinese (Macau) / 澳门繁體 zh-MO TC / 繁 With Taiwan-specific words adapted.
Chinese (Mainland China) / 大陆简体 zh-CN SC / 简 With mainland China-specific words adapted.
Chinese (Singapore) / 新加坡简体 zh-SG SC / 简 With Singapore-specific words adapted.
Chinese (Malaysia) / 大马简体 zh-MY SC / 简 With Malaysia-specific words adapted.

Note: zh-TW, zh-HK and zh-MO are based on zh-Hant. zh-CN, zh-MY and zh-SG are based on zh-Hans. Currently, zh-MO is based on zh-HK with few addional Macau-specific words; zh-MY and zh-SG are both based on zh-CN with with few addional Singapore/Malaysia-specific words.

Comparisions with other tools

TODO

[] Support Module:CGroup