Skip to main content

Translate chinese chars to pinyin based on Mandarin.dat

Project description

Translate chinese chars to pinyin based on Mandarin.dat

Usage

Input unicode string

>>> import pinyin
>>> pinyin.get_pinyin(u'你好')
'nihao'
>>> pinyin.get_initial(u'你好')
'n h'

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-0.1.1.tar.gz (125.1 kB view details)

Uploaded Source

File details

Details for the file pinyin-0.1.1.tar.gz.

File metadata

  • Download URL: pinyin-0.1.1.tar.gz
  • Upload date:
  • Size: 125.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pinyin-0.1.1.tar.gz
Algorithm Hash digest
SHA256 24a89814c5f3dce284adb8f44fb449c2e6a2ba2282a7e1c02716a62330a8e4e4
MD5 5f46e714f21c7448fa64bca633012ac8
BLAKE2b-256 536c41d1b79e2b1625a671697f93317d3afa590d13121284adaef47bc4107559

See more details on using hashes here.

Supported by

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