Skip to main content

Numbered pinyin to accented pinyin converter

Project description

pinyin-tone-converter

TravisCI Build Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pinyin-tone-converter-1.0.2.tar.gz (14.2 kB view details)

Uploaded Source

File details

Details for the file pinyin-tone-converter-1.0.2.tar.gz.

File metadata

  • Download URL: pinyin-tone-converter-1.0.2.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for pinyin-tone-converter-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7f4aaaf44513f376381cc53368afab2038a3f1412e2d0ab1d95c302af58027dc
MD5 7def4275010ddfe92be0c2f56225bd3f
BLAKE2b-256 cdf6c8f86263a9c2efd339618f225f1a4371e5275f6f14d18271d65f2a734ea0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page