Restore 0.1.5 version from stash
This commit is contained in:
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,325 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: pypinyin
|
||||
Version: 0.55.0
|
||||
Summary: 汉字拼音转换模块/工具.
|
||||
Home-page: https://github.com/mozillazg/python-pinyin
|
||||
Author: mozillazg, 闲耘
|
||||
Author-email: mozillazg101@gmail.com
|
||||
License: MIT
|
||||
Project-URL: Documentation, https://pypinyin.readthedocs.io/
|
||||
Project-URL: Source, https://github.com/mozillazg/python-pinyin
|
||||
Project-URL: Tracker, https://github.com/mozillazg/python-pinyin/issues
|
||||
Keywords: pinyin,拼音
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 2
|
||||
Classifier: Programming Language :: Python :: 2.7
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.4
|
||||
Classifier: Programming Language :: Python :: 3.5
|
||||
Classifier: Programming Language :: Python :: 3.6
|
||||
Classifier: Programming Language :: Python :: 3.7
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Programming Language :: Python :: 3.13
|
||||
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||
Classifier: Topic :: Utilities
|
||||
Classifier: Topic :: Text Processing
|
||||
Requires-Python: >=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4
|
||||
Description-Content-Type: text/x-rst
|
||||
License-File: LICENSE.txt
|
||||
Requires-Dist: argparse; python_version < "2.7"
|
||||
Requires-Dist: enum34; python_version < "3.4"
|
||||
Requires-Dist: typing; python_version < "3.5"
|
||||
Dynamic: author
|
||||
Dynamic: author-email
|
||||
Dynamic: classifier
|
||||
Dynamic: description
|
||||
Dynamic: description-content-type
|
||||
Dynamic: home-page
|
||||
Dynamic: keywords
|
||||
Dynamic: license
|
||||
Dynamic: license-file
|
||||
Dynamic: project-url
|
||||
Dynamic: provides-extra
|
||||
Dynamic: requires-python
|
||||
Dynamic: summary
|
||||
|
||||
汉字拼音转换工具(Python 版)
|
||||
=============================
|
||||
|
||||
|Build| |GitHubAction| |Coverage| |Pypi version| |PyPI downloads| |DOI|
|
||||
|
||||
|
||||
将汉字转为拼音。可以用于汉字注音、排序、检索(`Russian translation`_) 。
|
||||
|
||||
最初版本的代码参考了 `hotoo/pinyin <https://github.com/hotoo/pinyin>`__ 的实现。
|
||||
|
||||
* Documentation: https://pypinyin.readthedocs.io/
|
||||
* GitHub: https://github.com/mozillazg/python-pinyin
|
||||
* License: MIT license
|
||||
* PyPI: https://pypi.org/project/pypinyin
|
||||
* Python version: 2.7, pypy, pypy3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13
|
||||
|
||||
.. contents::
|
||||
|
||||
|
||||
特性
|
||||
----
|
||||
|
||||
* 根据词组智能匹配最正确的拼音。
|
||||
* 支持多音字。
|
||||
* 简单的繁体支持,注音支持,威妥玛拼音支持。
|
||||
* 支持多种不同拼音/注音风格。
|
||||
|
||||
|
||||
安装
|
||||
----
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
pip install pypinyin
|
||||
|
||||
|
||||
使用示例
|
||||
--------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>>> from pypinyin import pinyin, lazy_pinyin, Style
|
||||
>>> pinyin('中心') # or pinyin(['中心']),参数值为列表时表示输入的是已分词后的数据
|
||||
[['zhōng'], ['xīn']]
|
||||
>>> pinyin('中心', heteronym=True) # 启用多音字模式
|
||||
[['zhōng', 'zhòng'], ['xīn']]
|
||||
>>> pinyin('中心', style=Style.FIRST_LETTER) # 设置拼音风格
|
||||
[['z'], ['x']]
|
||||
>>> pinyin('中心', style=Style.TONE2, heteronym=True)
|
||||
[['zho1ng', 'zho4ng'], ['xi1n']]
|
||||
>>> pinyin('中心', style=Style.TONE3, heteronym=True)
|
||||
[['zhong1', 'zhong4'], ['xin1']]
|
||||
>>> pinyin('中心', style=Style.BOPOMOFO) # 注音风格
|
||||
[['ㄓㄨㄥ'], ['ㄒㄧㄣ']]
|
||||
>>> lazy_pinyin('威妥玛拼音', style=Style.WADEGILES)
|
||||
['wei', "t'o", 'ma', "p'in", 'yin']
|
||||
>>> lazy_pinyin('中心') # 不考虑多音字的情况
|
||||
['zhong', 'xin']
|
||||
>>> lazy_pinyin('战略', v_to_u=True) # 不使用 v 表示 ü
|
||||
['zhan', 'lüe']
|
||||
# 使用 5 标识轻声
|
||||
>>> lazy_pinyin('衣裳', style=Style.TONE3, neutral_tone_with_five=True)
|
||||
['yi1', 'shang5']
|
||||
# 变调 nǐ hǎo -> ní hǎo
|
||||
>>> lazy_pinyin('你好', style=Style.TONE2, tone_sandhi=True)
|
||||
['ni2', 'ha3o']
|
||||
|
||||
**注意事项** :
|
||||
|
||||
* 默认情况下拼音结果不会标明哪个韵母是轻声,轻声的韵母没有声调或数字标识(可以通过参数 ``neutral_tone_with_five=True`` 开启使用 ``5`` 标识轻声 )。
|
||||
* 默认情况下无声调相关拼音风格下的结果会使用 ``v`` 表示 ``ü`` (可以通过参数 ``v_to_u=True`` 开启使用 ``ü`` 代替 ``v`` )。
|
||||
* 默认情况下会原样输出没有拼音的字符(自定义处理没有拼音的字符的方法见 `文档 <https://pypinyin.readthedocs.io/zh_CN/master/usage.html#handle-no-pinyin>`__ )。
|
||||
* ``嗯`` 的拼音并不是大部分人以为的 ``en`` 以及存在既没有声母也没有韵母的拼音,详见下方 FAQ 中的说明。
|
||||
|
||||
命令行工具:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ pypinyin 音乐
|
||||
yīn yuè
|
||||
|
||||
$ python -m pypinyin.tools.toneconvert to-tone 'zhong4 xin1'
|
||||
zhòng xīn
|
||||
|
||||
|
||||
文档
|
||||
--------
|
||||
|
||||
详细文档请访问:https://pypinyin.readthedocs.io/。
|
||||
|
||||
项目代码开发方面的问题可以看看 `开发文档`_ 。
|
||||
|
||||
|
||||
FAQ
|
||||
---------
|
||||
|
||||
拼音有误?
|
||||
+++++++++++++++++++++++++++++
|
||||
|
||||
可以通过下面的方法提高拼音准确性:
|
||||
|
||||
* 可以通过自定义词组拼音库或者单字拼音库的方式修正拼音结果,
|
||||
详见 `文档 <https://pypinyin.readthedocs.io/zh_CN/master/usage.html#custom-dict>`__ 。
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>> from pypinyin import load_phrases_dict, load_single_dict
|
||||
|
||||
>> load_phrases_dict({'桔子': [['jú'], ['zǐ']]}) # 增加 "桔子" 词组
|
||||
|
||||
>> load_single_dict({ord('还'): 'hái,huán'}) # 调整 "还" 字的拼音顺序或覆盖默认拼音
|
||||
|
||||
* 也可以使用 `pypinyin-dict <https://github.com/mozillazg/pypinyin-dict>`__ 项目提供的自定义拼音库来纠正结果。
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
# 使用 phrase-pinyin-data 项目中 cc_cedict.txt 文件中的拼音数据优化结果
|
||||
>>> from pypinyin_dict.phrase_pinyin_data import cc_cedict
|
||||
>>> cc_cedict.load()
|
||||
|
||||
# 使用 pinyin-data 项目中 kXHC1983.txt 文件中的拼音数据优化结果
|
||||
>>> from pypinyin_dict.pinyin_data import kxhc1983
|
||||
>>> kxhc1983.load()
|
||||
|
||||
* 如果是分词导致的拼音有误的话,可以先使用其他的分词模块对数据进行分词处理,
|
||||
然后将分词后的词组结果列表作为函数的参数即可:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>>> # 使用其他分词模块分词,比如 jieba 之类,
|
||||
>>> #或者基于 phrases_dict.py 里的词语数据使用其他分词算法分词
|
||||
>>> words = list(jieba.cut('每股24.67美元的确定性协议'))
|
||||
>>> pinyin(words)
|
||||
|
||||
* 如果你希望能通过训练模型的方式提高拼音准确性的话,可以看一下 `pypinyin-g2pW <https://github.com/mozillazg/pypinyin-g2pW>`__ 这个项目。
|
||||
|
||||
|
||||
为什么没有 y, w, yu 几个声母?
|
||||
++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>>> from pypinyin import Style, pinyin
|
||||
>>> pinyin('下雨天', style=Style.INITIALS)
|
||||
[['x'], [''], ['t']]
|
||||
|
||||
因为根据 `《汉语拼音方案》 <http://www.moe.gov.cn/jyb_sjzl/ziliao/A19/195802/t19580201_186000.html>`__ ,
|
||||
y,w,ü (yu) 都不是声母。
|
||||
|
||||
声母风格(INITIALS)下,“雨”、“我”、“圆”等汉字返回空字符串,因为根据
|
||||
`《汉语拼音方案》 <http://www.moe.gov.cn/jyb_sjzl/ziliao/A19/195802/t19580201_186000.html>`__ ,
|
||||
y,w,ü (yu) 都不是声母,在某些特定韵母无声母时,才加上 y 或 w,而 ü 也有其特定规则。 —— @hotoo
|
||||
|
||||
**如果你觉得这个给你带来了麻烦,那么也请小心一些无声母的汉字(如“啊”、“饿”、“按”、“昂”等)。
|
||||
这时候你也许需要的是首字母风格(FIRST_LETTER)**。 —— @hotoo
|
||||
|
||||
参考: `hotoo/pinyin#57 <https://github.com/hotoo/pinyin/issues/57>`__,
|
||||
`#22 <https://github.com/mozillazg/python-pinyin/pull/22>`__,
|
||||
`#27 <https://github.com/mozillazg/python-pinyin/issues/27>`__,
|
||||
`#44 <https://github.com/mozillazg/python-pinyin/issues/44>`__
|
||||
|
||||
如果觉得这个行为不是你想要的,就是想把 y 当成声母的话,可以指定 ``strict=False`` ,
|
||||
这个可能会符合你的预期:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>>> from pypinyin import Style, pinyin
|
||||
>>> pinyin('下雨天', style=Style.INITIALS)
|
||||
[['x'], [''], ['t']]
|
||||
>>> pinyin('下雨天', style=Style.INITIALS, strict=False)
|
||||
[['x'], ['y'], ['t']]
|
||||
|
||||
详见 `strict 参数的影响`_ 。
|
||||
|
||||
存在既没有声母也没有韵母的拼音?
|
||||
+++++++++++++++++++++++++++++++++
|
||||
|
||||
是的,``strict=True`` 模式下存在极少数既没有声母也没有韵母的拼音。
|
||||
比如下面这些拼音(来自汉字 ``嗯``、``呒``、``呣``、``唔``)::
|
||||
|
||||
ń ńg ňg ǹg ň ǹ m̄ ḿ m̀
|
||||
|
||||
尤其需要注意的是 ``嗯`` 的所有拼音都既没有声母也没有韵母,``呣`` 的默认拼音既没有声母也没有韵母。
|
||||
详见 `#109`_ `#259`_ `#284`_ 。
|
||||
|
||||
|
||||
如何将某一风格的拼音转换为其他风格的拼音?
|
||||
++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
可以通过 ``pypinyin.contrib.tone_convert`` 模块提供的辅助函数对标准拼音进行转换,得到不同风格的拼音。
|
||||
比如将 ``zhōng`` 转换为 ``zhong``,或者获取拼音中的声母或韵母数据:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>>> from pypinyin.contrib.tone_convert import to_normal, to_tone, to_initials, to_finals
|
||||
>>> to_normal('zhōng')
|
||||
'zhong'
|
||||
>>> to_tone('zhong1')
|
||||
'zhōng'
|
||||
>>> to_initials('zhōng')
|
||||
'zh'
|
||||
>>> to_finals('zhōng')
|
||||
'ong'
|
||||
|
||||
更多拼音转换的辅助函数,详见 ``pypinyin.contrib.tone_convert`` 模块的
|
||||
`文档 <https://pypinyin.readthedocs.io/zh_CN/master/contrib.html#tone-convert>`__ 。
|
||||
|
||||
|
||||
如何减少内存占用?
|
||||
++++++++++++++++++++
|
||||
|
||||
如果对拼音的准确性不是特别在意的话,可以通过设置环境变量 ``PYPINYIN_NO_PHRASES``
|
||||
和 ``PYPINYIN_NO_DICT_COPY`` 来节省内存。
|
||||
详见 `文档 <https://pypinyin.readthedocs.io/zh_CN/master/faq.html#no-phrases>`__
|
||||
|
||||
|
||||
更多 FAQ 详见文档中的
|
||||
`FAQ <https://pypinyin.readthedocs.io/zh_CN/master/faq.html>`__ 部分。
|
||||
|
||||
|
||||
.. _#13 : https://github.com/mozillazg/python-pinyin/issues/113
|
||||
.. _strict 参数的影响: https://pypinyin.readthedocs.io/zh_CN/master/usage.html#strict
|
||||
|
||||
|
||||
拼音数据
|
||||
---------
|
||||
|
||||
* 单个汉字的拼音使用 `pinyin-data`_ 的数据
|
||||
* 词组的拼音使用 `phrase-pinyin-data`_ 的数据
|
||||
* 声母和韵母使用 `《汉语拼音方案》 <http://www.moe.gov.cn/jyb_sjzl/ziliao/A19/195802/t19580201_186000.html>`__ 的数据
|
||||
|
||||
|
||||
Related Projects
|
||||
-----------------
|
||||
|
||||
* `hotoo/pinyin`__: 汉字拼音转换工具 Node.js/JavaScript 版。
|
||||
* `mozillazg/go-pinyin`__: 汉字拼音转换工具 Go 版。
|
||||
* `mozillazg/rust-pinyin`__: 汉字拼音转换工具 Rust 版。
|
||||
* `wolfgitpr/cpp-pinyin`__: 汉字拼音转换工具 c++ 版。
|
||||
* `wolfgitpr/csharp-pinyin`__: 汉字拼音转换工具 c# 版。
|
||||
|
||||
|
||||
__ https://github.com/hotoo/pinyin
|
||||
__ https://github.com/mozillazg/go-pinyin
|
||||
__ https://github.com/mozillazg/rust-pinyin
|
||||
__ https://github.com/wolfgitpr/cpp-pinyin
|
||||
__ https://github.com/wolfgitpr/csharp-pinyin
|
||||
|
||||
|
||||
.. |Build| image:: https://img.shields.io/circleci/project/github/mozillazg/python-pinyin/master.svg
|
||||
:target: https://circleci.com/gh/mozillazg/python-pinyin
|
||||
.. |GitHubAction| image:: https://github.com/mozillazg/python-pinyin/workflows/CI/badge.svg
|
||||
:target: https://github.com/mozillazg/python-pinyin/actions
|
||||
.. |Coverage| image:: https://img.shields.io/coveralls/github/mozillazg/python-pinyin/master.svg
|
||||
:target: https://coveralls.io/github/mozillazg/python-pinyin
|
||||
.. |PyPI version| image:: https://img.shields.io/pypi/v/pypinyin.svg
|
||||
:target: https://pypi.org/project/pypinyin/
|
||||
.. |DOI| image:: https://zenodo.org/badge/12830126.svg
|
||||
:target: https://zenodo.org/badge/latestdoi/12830126
|
||||
.. |PyPI downloads| image:: https://img.shields.io/pypi/dm/pypinyin.svg
|
||||
:target: https://pypi.org/project/pypinyin/
|
||||
|
||||
|
||||
|
||||
.. _Russian translation: https://github.com/mozillazg/python-pinyin/blob/master/README_ru.rst
|
||||
.. _pinyin-data: https://github.com/mozillazg/pinyin-data
|
||||
.. _phrase-pinyin-data: https://github.com/mozillazg/phrase-pinyin-data
|
||||
.. _开发文档: https://pypinyin.readthedocs.io/zh_CN/develop/develop.html
|
||||
.. _#109: https://github.com/mozillazg/python-pinyin/issues/109
|
||||
.. _#259: https://github.com/mozillazg/python-pinyin/issues/259
|
||||
.. _#284: https://github.com/mozillazg/python-pinyin/issues/284
|
||||
@@ -0,0 +1,129 @@
|
||||
../../Scripts/pypinyin.exe,sha256=2-XXp9jGOqC9CwryY0O3jl3q2S5d4ksjQ61N9YYPUKs,108407
|
||||
pypinyin-0.55.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
pypinyin-0.55.0.dist-info/METADATA,sha256=gqyU63T6DrUANVIZvFhSKHFnWe0lXDhcXjLdKN268D8,12651
|
||||
pypinyin-0.55.0.dist-info/RECORD,,
|
||||
pypinyin-0.55.0.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
|
||||
pypinyin-0.55.0.dist-info/entry_points.txt,sha256=F7q5x_bDzS-FS1Kq0T8zhBzUzzCjdSX-p55RXn0sdfQ,118
|
||||
pypinyin-0.55.0.dist-info/licenses/LICENSE.txt,sha256=HmyQAUtJEoFcKW7mS7b2KAr0fm1MXYDoYjLfxd7-dkw,1105
|
||||
pypinyin-0.55.0.dist-info/top_level.txt,sha256=ZhqQy4h4p4usUX4MhmbbyO62AVHzdGeNPn63P8CoLYU,9
|
||||
pypinyin/__init__.py,sha256=12tis7Wwsaj28vg05MeV1lgNnz0qnUJDUkCYIX5SgWA,1654
|
||||
pypinyin/__init__.pyi,sha256=BqVt495T96QHK8kUdtelG7EENlyq4QiBZuEu9SZg4i8,1527
|
||||
pypinyin/__main__.py,sha256=HAcINUmW1GBtlMbiBzmG0irIA1GLiI_Hbd8tTEM3tAI,118
|
||||
pypinyin/__pycache__/__init__.cpython-312.pyc,,
|
||||
pypinyin/__pycache__/__main__.cpython-312.pyc,,
|
||||
pypinyin/__pycache__/compat.cpython-312.pyc,,
|
||||
pypinyin/__pycache__/constants.cpython-312.pyc,,
|
||||
pypinyin/__pycache__/converter.cpython-312.pyc,,
|
||||
pypinyin/__pycache__/core.cpython-312.pyc,,
|
||||
pypinyin/__pycache__/exceptions.cpython-312.pyc,,
|
||||
pypinyin/__pycache__/phonetic_symbol.cpython-312.pyc,,
|
||||
pypinyin/__pycache__/phrases_dict.cpython-312.pyc,,
|
||||
pypinyin/__pycache__/pinyin_dict.cpython-312.pyc,,
|
||||
pypinyin/__pycache__/runner.cpython-312.pyc,,
|
||||
pypinyin/__pycache__/standard.cpython-312.pyc,,
|
||||
pypinyin/__pycache__/utils.cpython-312.pyc,,
|
||||
pypinyin/__pyinstaller/__init__.py,sha256=Qzm_zFuAXwcUu0DApsY8obGuY36EH7OImy7Rnd_0gqI,193
|
||||
pypinyin/__pyinstaller/__init__.pyi,sha256=ozptKHgsDwgnJayw_wermfFFe3-bwZbml4m-5Uv0jtA,71
|
||||
pypinyin/__pyinstaller/__pycache__/__init__.cpython-312.pyc,,
|
||||
pypinyin/__pyinstaller/__pycache__/hook-pypinyin.cpython-312.pyc,,
|
||||
pypinyin/__pyinstaller/hook-pypinyin.py,sha256=lHF-R4low-r9FThRAEh09u6gVtlCj1ski0oVyR1ocSs,280
|
||||
pypinyin/compat.py,sha256=ozZThQieUPf8IRb72RUeBBTurWZr5Q9TZNRGAvUNqgY,631
|
||||
pypinyin/compat.pyi,sha256=kCxODY21bMClVs21TXFWxBcfXsY9xbKoBSx6bpt6u5w,280
|
||||
pypinyin/constants.py,sha256=KxnHkd7Mf_vvGyT8Rp9JLy2wYMLctDvPpYKK-3jMrGI,4918
|
||||
pypinyin/constants.pyi,sha256=Ct7jCu20AihKJIn7Rnlewp81X1lEKVbT6wUD_uW1sus,1611
|
||||
pypinyin/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
pypinyin/contrib/__pycache__/__init__.cpython-312.pyc,,
|
||||
pypinyin/contrib/__pycache__/_tone_rule.cpython-312.pyc,,
|
||||
pypinyin/contrib/__pycache__/mmseg.cpython-312.pyc,,
|
||||
pypinyin/contrib/__pycache__/neutral_tone.cpython-312.pyc,,
|
||||
pypinyin/contrib/__pycache__/tone_convert.cpython-312.pyc,,
|
||||
pypinyin/contrib/__pycache__/tone_sandhi.cpython-312.pyc,,
|
||||
pypinyin/contrib/__pycache__/uv.cpython-312.pyc,,
|
||||
pypinyin/contrib/_tone_rule.py,sha256=4P_aHmtUIc5AVtbEIBIriCNKLF4CY7TaWvRp-biuyyM,143
|
||||
pypinyin/contrib/_tone_rule.pyi,sha256=h4EcEXRSLRv1X0vAfcdyx8ZIzfDhzsubHy2l6L23P5k,128
|
||||
pypinyin/contrib/mmseg.py,sha256=OKtMgDWhRdrzBs1EBmH30GycTn2k57j_EVlUA0IIXaI,167
|
||||
pypinyin/contrib/mmseg.pyi,sha256=lQvZEXZWeq03RMAG6_hei3vXdDKUSUT-rMxO5ep3yAE,591
|
||||
pypinyin/contrib/neutral_tone.py,sha256=EkS147nAZYhCnFQ-BYmTSmnsFbQq7Gtn9u27M9bD9BE,2267
|
||||
pypinyin/contrib/neutral_tone.pyi,sha256=xrqEB1235OHCZaXKV1qu2kH0NMp10m_sBdhBjq4HeqQ,518
|
||||
pypinyin/contrib/tone_convert.py,sha256=NoiiRthpjDlTyXd4y-rv6mY5nHhQoGADqWWUyV6RzOw,565
|
||||
pypinyin/contrib/tone_convert.pyi,sha256=0VcaQYOWR2yyb_-Kj2lxGr9jtSM93845LC-8867AMeQ,1814
|
||||
pypinyin/contrib/tone_sandhi.py,sha256=M71TUEhP8AucP05tc5QrU96Omaswernr5njoOdbHF8I,7077
|
||||
pypinyin/contrib/tone_sandhi.pyi,sha256=0vUpXI1Wz-arwJdPnxAvwwcgXvQQJOKFnrSD3HQT9mo,594
|
||||
pypinyin/contrib/uv.py,sha256=2xj-mU1n8ZzLKmJ6pTrc-NNogaSnd-K1YaGZFXAJ8IM,1334
|
||||
pypinyin/contrib/uv.pyi,sha256=6T4pwYBlcvVNXJvvG5XE6W697STk5bgoRJ8bqApDQks,389
|
||||
pypinyin/converter.py,sha256=G71sm2PQM6HAX5KblKxwAqDkxtIm5Ivb4HQlD6ShXkQ,15228
|
||||
pypinyin/converter.pyi,sha256=QM2YNROnl7LQa0sfYF5tniSY-G8qrNoreP7vJsRZiKY,5635
|
||||
pypinyin/core.py,sha256=FXXpHqq_FEIUR5FsCokqyqZPuGlJ1OZJTqnNO0ZhoOQ,16000
|
||||
pypinyin/core.pyi,sha256=G871TDb_L0_6-NvDNnadfl57zYpsThoxIOOW8zp-Xjg,3400
|
||||
pypinyin/exceptions.py,sha256=uqd7k5ZyjXauSXXt2O9SSkqeAq3yKM4NerNx4Ztqp1w,396
|
||||
pypinyin/exceptions.pyi,sha256=CiNV_vU81yFqUS_kgyNL1oV2FBF_W6Vr3htFe9iGzg8,228
|
||||
pypinyin/phonetic_symbol.py,sha256=QHISEBLavy01RC2O5OdQRGJFRa7bbkrcS62lkrl_G5o,874
|
||||
pypinyin/phonetic_symbol.pyi,sha256=qaMaHJfT2gEUFcmOs_Gz1SBWcx9j3dbR-fY3PWBUQo8,136
|
||||
pypinyin/phrases_dict.json,sha256=pF_xQKa2McqcghJ7KAovQU4KumuygkoOnR53__NZxmU,2545585
|
||||
pypinyin/phrases_dict.py,sha256=P285u8po2NFnbqRjzUYguTSwMWDMUEL7nZAHuPOoC54,421
|
||||
pypinyin/phrases_dict.pyi,sha256=mp5oFp-zUMzBphbfmpQ-inDlZdrwex6BP_xm282GXxA,94
|
||||
pypinyin/pinyin_dict.json,sha256=XylMAebGwKHI4ynHkzWj-OCyfQa_HeepkkS3ZYktHls,788780
|
||||
pypinyin/pinyin_dict.py,sha256=JFwfcFCUMrKJzeH5OBV81f8TctHQg7V31fq3K0382gg,517
|
||||
pypinyin/pinyin_dict.pyi,sha256=kFq0TLEMKQuUAxT9U6ZL36VadMpaJ0bTbIsHFCPsTYQ,74
|
||||
pypinyin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
pypinyin/runner.py,sha256=nB5lw0MAOR2vf51n1itri1z8kvzVO6-PPAgGJo4fRFI,4598
|
||||
pypinyin/runner.pyi,sha256=eoECNZ_hNKmoVbQxACsIFYHa-9GGAeg8IySu41QpujE,241
|
||||
pypinyin/seg/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
pypinyin/seg/__pycache__/__init__.cpython-312.pyc,,
|
||||
pypinyin/seg/__pycache__/mmseg.cpython-312.pyc,,
|
||||
pypinyin/seg/__pycache__/simpleseg.cpython-312.pyc,,
|
||||
pypinyin/seg/mmseg.py,sha256=1gYlJkMqS_GZtwWM3Dy5UGhiTfk9H7mYIWj2i2Mi1W8,4567
|
||||
pypinyin/seg/mmseg.pyi,sha256=CLmApc1HgTQv9szJSwOp3njZoLsdGRESBf3l_2Pd2p8,833
|
||||
pypinyin/seg/simpleseg.py,sha256=h1QZ18pthlTNGFo-9q3hcj7WZ749mMMHdvvtV4ms7co,1885
|
||||
pypinyin/seg/simpleseg.pyi,sha256=sBA5K1CRWHGZaX5Meuyr8fBVWIaw0x4eCqFUJRBIoeI,186
|
||||
pypinyin/standard.py,sha256=qxFfME0MVKCG-k3EJGDOxsnb4a4uyB9tsv0VmI9CQhM,4406
|
||||
pypinyin/standard.pyi,sha256=LPLoucTjxjG-ipOiHlv8fyMx_AiLul5f4-yl6Rnlipc,306
|
||||
pypinyin/style/__init__.py,sha256=GI_4vXXSII7v2HmnhHlkmcxOWk5jAhVotpNH-TaRyZA,2102
|
||||
pypinyin/style/__init__.pyi,sha256=szDWRukaJSk0FHfQiDX88ClssRgBIGXSo_6hJ-WL3eM,619
|
||||
pypinyin/style/__pycache__/__init__.cpython-312.pyc,,
|
||||
pypinyin/style/__pycache__/_constants.cpython-312.pyc,,
|
||||
pypinyin/style/__pycache__/_tone_convert.cpython-312.pyc,,
|
||||
pypinyin/style/__pycache__/_tone_rule.cpython-312.pyc,,
|
||||
pypinyin/style/__pycache__/_utils.cpython-312.pyc,,
|
||||
pypinyin/style/__pycache__/bopomofo.cpython-312.pyc,,
|
||||
pypinyin/style/__pycache__/braille_mainland.cpython-312.pyc,,
|
||||
pypinyin/style/__pycache__/cyrillic.cpython-312.pyc,,
|
||||
pypinyin/style/__pycache__/finals.cpython-312.pyc,,
|
||||
pypinyin/style/__pycache__/gwoyeu.cpython-312.pyc,,
|
||||
pypinyin/style/__pycache__/initials.cpython-312.pyc,,
|
||||
pypinyin/style/__pycache__/others.cpython-312.pyc,,
|
||||
pypinyin/style/__pycache__/tone.cpython-312.pyc,,
|
||||
pypinyin/style/__pycache__/wadegiles.cpython-312.pyc,,
|
||||
pypinyin/style/_constants.py,sha256=DpJagp6IhPYeoGpdU8mhKYTthOyyoS0m_Mt0nrEbnQM,1532
|
||||
pypinyin/style/_constants.pyi,sha256=lHLpMOSffxHZkzKhzRx4aFYIc2N-eAzgui_CyYGZ7FQ,421
|
||||
pypinyin/style/_tone_convert.py,sha256=wxJh46tu10FZ71ue2q6NVJO1G4NnG3kodxC0ohcADIg,19866
|
||||
pypinyin/style/_tone_convert.pyi,sha256=n83Y-hG_yNifRRJq9MGyVikvpHo0vvckNND6oMiMrMs,1813
|
||||
pypinyin/style/_tone_rule.py,sha256=Qe4RSM-7x2x94FfjP0hWwT8b4-ZRyYwwmbLngvWff6o,1755
|
||||
pypinyin/style/_tone_rule.pyi,sha256=h4EcEXRSLRv1X0vAfcdyx8ZIzfDhzsubHy2l6L23P5k,128
|
||||
pypinyin/style/_utils.py,sha256=WBx9xd1Mra-duhNqHCnxMQ_ROW3xOmrtiQOTcL8XdgA,2558
|
||||
pypinyin/style/_utils.pyi,sha256=MaQDv9_ORoRo9p-R5N6GTAVvYM9BzdYcMSXM3cOIcfU,304
|
||||
pypinyin/style/bopomofo.py,sha256=kvljd8rPii2FA4A-7e7n7z20_nOBeZhDT9U6G9uXvKo,2383
|
||||
pypinyin/style/bopomofo.pyi,sha256=TB25RgZNvrRJsXYs5HSshXxGZb0FBqgO52IctnNW2LQ,435
|
||||
pypinyin/style/braille_mainland.py,sha256=Z5WFaEGlr9WwJFs4q3MPz8GQcJEdO2Ewqt-RHRoHeBA,3125
|
||||
pypinyin/style/braille_mainland.pyi,sha256=6Zhw6H84ALRF1UmFzx5qlMDMli9uXFVFPex3nlLSKVM,543
|
||||
pypinyin/style/cyrillic.py,sha256=_Ll5g45s6Zu8rbPcel0aWlXds5QZ7-bIo2aPedjKSVs,2445
|
||||
pypinyin/style/cyrillic.pyi,sha256=J0pixsz1Fph-zoZuzvY9_-8h3wAaKVYUAqZTuynuqHM,440
|
||||
pypinyin/style/finals.py,sha256=t4I9RuagDrnDYchPjZKsQFsytgpjyqA-oAVR8Q2ilnk,1246
|
||||
pypinyin/style/finals.pyi,sha256=TJvC85TB6tFMHiJYwkKEvmRucpvcRyOLmEOIaBPEds8,389
|
||||
pypinyin/style/gwoyeu.py,sha256=N9tktCHAlTyXaL3B3u-l2ZCDAag8twge7wNyx8gxon8,2573
|
||||
pypinyin/style/gwoyeu.pyi,sha256=hFi3hrU4q7Q7eUAyK4zvDrLqP4Xi6QhicvCrD5iKAJk,283
|
||||
pypinyin/style/initials.py,sha256=zezDzSWa9kBxUbIyyeTGMX_DkC4dRXw2XR4Dbsatwrk,352
|
||||
pypinyin/style/initials.pyi,sha256=y2Ud3OdG25MQ1FmZXj1IQ28danEYFo5bopCtvoZJ6kw,85
|
||||
pypinyin/style/others.py,sha256=9BMhnFPgfDe22oFrNqJMCirIEQRVcaEQ_T4tQ76hEU8,712
|
||||
pypinyin/style/others.pyi,sha256=bYWcki3vv8LYGOaVjqODkN_0s3p_7kIxJoEibfqcesI,244
|
||||
pypinyin/style/tone.py,sha256=7zUkIshJdGX_fITBCZ9ETHrq2nF43vAOMZGBn0wToVQ,917
|
||||
pypinyin/style/tone.pyi,sha256=8r19W86Ju3VL0mopN_JXrKywF1lvCH5IoJHvl1eipu8,297
|
||||
pypinyin/style/wadegiles.py,sha256=oDPNKZ452UsLt5QmEleDekJTSIxW0pG8cPP42zgrwYI,12194
|
||||
pypinyin/style/wadegiles.pyi,sha256=H9lGKsfTTioxDzVSovqG8qX0JgxsbWMaPGJPEuq59-Y,292
|
||||
pypinyin/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
pypinyin/tools/__pycache__/__init__.cpython-312.pyc,,
|
||||
pypinyin/tools/__pycache__/toneconvert.cpython-312.pyc,,
|
||||
pypinyin/tools/toneconvert.py,sha256=GDebmcZ6YvObeTQqpE4dYzDv6JcGsjcAfR5SX0gh0zA,2417
|
||||
pypinyin/tools/toneconvert.pyi,sha256=w4hHOg2fO54ddsL1KsNV-Z1FnxDSE-3LiG-SBfdTFTU,430
|
||||
pypinyin/utils.py,sha256=tA-JHywKJBlLVdrHXDJBgfrP0kF3ElXkAcTk3BKmdvU,856
|
||||
pypinyin/utils.pyi,sha256=m_yZojdaqvgQyGMu_sMVKXSxXkeBVZuP_8do0MbZOxQ,241
|
||||
@@ -0,0 +1,6 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: setuptools (78.1.0)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py2-none-any
|
||||
Tag: py3-none-any
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
[console_scripts]
|
||||
pypinyin = pypinyin.__main__:main
|
||||
|
||||
[pyinstaller40]
|
||||
hook-dirs = pypinyin.__pyinstaller:get_hook_dirs
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 mozillazg, 闲耘 <hotoo.cn@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -0,0 +1 @@
|
||||
pypinyin
|
||||
Reference in New Issue
Block a user