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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pinyin-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2e8440fe2123752604441a20bf2fcfc458d4cad17a2e4d505030410e2ccd06d8
MD5 4a90cf993fc7025fb307c6431c5bca1e
BLAKE2b-256 b6ac65a3ee54a065029e0a0682f18b591dfd2990b1a1ff613eaf52b0f109dd7b

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