A simple implementation of Simplified-Traditional Chinese conversion. Supports zh-Hans, zh-Hant, and regional variants like zh-tw, zh-cn, etc. Based on MediaWiki conversion tables. Current version: 1.4.3. Release cadence is low; maintained as needed.
pip install zhconvNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: convert(text, target_variant). Variants include 'zh-hans', 'zh-hant', 'zh-cn', 'zh-tw', 'zh-hk', 'zh-sg', 'zh-mo', etc.
Always specify target variant explicitly, e.g., 'zh-cn' when converting to simplified Chinese.
Call convert(text, 'zh-cn') then convert(result, 'zh-tw') for bidirectional conversion.
Use 'from zhconv import convert' instead of 'import zhconv'.
Provide target variant: convert('text', 'zh-tw')No dependency data recorded yet.