bopomofo-0.1.2
توضیحات
Translate chinese word to bopomofo
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bopomofo-0.1.2 |
| نام | bopomofo |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Anthony Fu |
| ایمیل نویسنده | anthonyfu117@hotmail.com |
| آدرس صفحه اصلی | https://github.com/antfu/bopomofo |
| آدرس اینترنتی | https://pypi.org/project/bopomofo/ |
| مجوز | MIT |
Bopomofo
==========
.. image:: https://img.shields.io/travis/antfu/bopomofo.svg?style=flat-square
:target: https://travis-ci.org/antfu/bopomofo
.. image:: https://img.shields.io/codecov/c/github/antfu/bopomofo.svg?style=flat-square
:target: https://codecov.io/gh/antfu/bopomofo
.. image:: https://img.shields.io/codacy/grade/c5ae3c7ed15f4b388218f83cda6782f9.svg?style=flat-square
:target: https://www.codacy.com/app/anthonyfu117/bopomofo
.. image:: https://img.shields.io/pypi/v/bopomofo.svg?style=flat-square
:target: https://pypi.python.org/pypi/bopomofo
.. image:: https://img.shields.io/pypi/pyversions/bopomofo.svg?style=flat-square
:target: https://pypi.python.org/pypi/bopomofo
.. image:: https://img.shields.io/pypi/status/bopomofo.svg?style=flat-square
:target: https://pypi.python.org/pypi/bopomofo
.. image:: https://img.shields.io/pypi/l/bopomofo.svg?style=flat-square
:target: https://github.com/antfu/bopomofo/blob/master/LICENSE
Translate 漢字 to ㄅㄆㄇㄈ, based on `lxneng/xpinyin <https://github.com/lxneng/xpinyin>`_.
Install
----------
::
pip install bopomofo
Usage
----------
.. code-block:: python
>>> from bopomofo import to_bopomofo
>>> to_bopomofo(u'注音')
'ㄓㄨˋ ㄧㄣ'
>>> to_bopomofo(u'注音', tones=False)
'ㄓㄨ ㄧㄣ'
>>> to_bopomofo(u'注音', u'、')
'ㄓㄨˋ、ㄧㄣ'
>>> bopomofo.to_bopomofo(u'注音', first_tone_symbol=True)
'ㄓㄨˋ ㄧㄣˉ'
نیازمندی
| مقدار | نام |
|---|---|
| - | xpinyin |
نحوه نصب
نصب پکیج whl bopomofo-0.1.2:
pip install bopomofo-0.1.2.whl
نصب پکیج tar.gz bopomofo-0.1.2:
pip install bopomofo-0.1.2.tar.gz