Skip to main content

Translate chinese chars to pinyin based on Mandarin.dat

Project description

https://travis-ci.org/lxyu/pinyin.png?branch=master

Translate chinese chars to pinyin based on Mandarin.dat

Install

$ pip install pinyin

Usage

>>> import pinyin
>>> pinyin.get(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.2.1.tar.gz (126.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pinyin-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f32cc76d929f92cd78f94a38ffef11afa14fbfb516df487ce18c5d5ad1af43b1
MD5 3d744fe94333c76c8ee59b6d46a2b0b6
BLAKE2b-256 a9b21371a44afde7cc2bdf67549da16d53887d8ef328ba705f78e8337b09d01b

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