pinyin_zhuyin
A library to convert between and work with pinyin and zhuyin.
The original library is Bomin Zhang's Go library "zhuyin".
https://github.com/localvar/zhuyin (Golang version)
https://github.com/DictPedia/ZhuyinPinyin (PHP version)
Usage
Add this to your Cargo.toml
:
[]
= "0.1"
and this to your crate root:
extern crate pinyin_zhuyin;
API
encode_pinyin // zhāng
decode_pinyin // zhang1
encode_zhuyin // ㄓㄤ
decode_zhuyin // zhang1
pinyin_to_zhuyin // ㄓㄤ
zhuyin_to_pinyin // zhāng
split // ("zh", "ang", 1)