Numbered pinyin to accented pinyin converter
Project description
pinyin-tone-converter
Python library to convert pinyin with numbers to tone with marks. This library is based on https://github.com/chanind/pinyin-tone-converter
Install
pip install pinyin-tone-converter
How to use
from pinyin_tone_converter.pinyin_tone_converter import PinyinToneConverter
PinyinToneConverter().convert_text("lu4")
"lù"
Examples can be seen in tests.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for pinyin-tone-converter-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d44bd06786485aeffffbbbadc2ce0c1fbee93313846a969ed875e89155778c19 |
|
MD5 | 9ca244e1b434877076bb071bc41aed95 |
|
BLAKE2b-256 | 8afb92011bb9864fd583da8ad08e64db2ea8b51f3505cbe0cafb460400e4c0e9 |