The python program to Search pinyin of Chinese

Jianjun Kong kongjianjun at gmail.com
Sun Sep 7 00:54:03 UTC 2008


Hello,everyone

   I am glad to give you a python program that can help us to search pinyin of Chinese.
   For example:

$ kongove at ubuntu:~/prog/python$ ./pinyin.py 中国
中 can be read as : zhong1/zhong4
国 can be read as : guo2

First please record two file,which is in the attachment.
And set LANG=UTF-8 in terminal.

Best wishes to you!
-- 
Jianjun Kong | Happy Hacking
HomePage: http://kongove.cn
Gtalk: kongjianjun at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pinyin.py
Type: text/x-python
Size: 995 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080907/f2618f44/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pinyin.zip
Type: application/zip
Size: 21909 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080907/f2618f44/attachment.zip>


More information about the ubuntu-users mailing list