Name | pinyin-kana JSON |
Version |
0.0.6
JSON |
| download |
home_page | |
Summary | The `chinese-pronounce-in-kana` library is designed to convert Chinese text into Japanese Katakana characters based on their pronunciation. |
upload_time | 2024-01-01 22:53:12 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.7 |
license | MIT |
keywords |
pinyin
pronounce
kana
voice
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Chinese Pronounce in Kana
## Overview
This library is designed to convert Chinese text into Japanese Katakana characters based on their pronunciation.
<h3>Demo</h3>
> 1. 凱文要不要吃香蕉
https://github.com/RUI-LONG/Python-Pinyin-Kana/assets/25581309/a974f9e7-61d8-43d2-9a46-a74e57411669
> 2. 你應該要被加薪
https://github.com/RUI-LONG/Python-Pinyin-Kana/assets/25581309/4637d939-4e9f-4de5-8230-6112d0c7007b
> 3. 哩喜嘞工三小
https://github.com/RUI-LONG/Python-Pinyin-Kana/assets/25581309/01e95025-5237-40a4-b041-3313794e1f45
### Installation
**Prerequisite**: pinyin-kana requires [Python 3.7 or higher](https://www.python.org/downloads/)
```
pip install pinyin-kana
```
## Usage
Here's a simple example of how to use the `PronounceConverter` class to convert Chinese text to Katakana:
```python
from pinyin_kana import to_katakana
result = to_katakana("你好")
print(" ".join(result))
print(
f"https://translate.google.com/translate_tts?ie=UTF-8&client=tw-ob&tl=ja&q={'+'.join(result)}"
)
```
Raw data
{
"_id": null,
"home_page": "",
"name": "pinyin-kana",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "pinyin,pronounce,kana,voice",
"author": "",
"author_email": "Ryan Cheng <m61216051116@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/77/35/d4731ce2b8d1d2059a29cf1d22aa20c505d18e520654c5056be390c570e0/pinyin_kana-0.0.6.tar.gz",
"platform": null,
"description": "# Chinese Pronounce in Kana\r\n\r\n## Overview\r\n\r\nThis library is designed to convert Chinese text into Japanese Katakana characters based on their pronunciation.\r\n\r\n<h3>Demo</h3>\r\n\r\n> 1. \u51f1\u6587\u8981\u4e0d\u8981\u5403\u9999\u8549\r\n\r\nhttps://github.com/RUI-LONG/Python-Pinyin-Kana/assets/25581309/a974f9e7-61d8-43d2-9a46-a74e57411669\r\n\r\n> 2. \u4f60\u61c9\u8a72\u8981\u88ab\u52a0\u85aa\r\n\r\nhttps://github.com/RUI-LONG/Python-Pinyin-Kana/assets/25581309/4637d939-4e9f-4de5-8230-6112d0c7007b\r\n\r\n> 3. \u54e9\u559c\u561e\u5de5\u4e09\u5c0f\r\n\r\nhttps://github.com/RUI-LONG/Python-Pinyin-Kana/assets/25581309/01e95025-5237-40a4-b041-3313794e1f45\r\n\r\n\r\n### Installation\r\n\r\n**Prerequisite**: pinyin-kana requires [Python 3.7 or higher](https://www.python.org/downloads/)\r\n\r\n```\r\npip install pinyin-kana\r\n```\r\n\r\n## Usage\r\n\r\nHere's a simple example of how to use the `PronounceConverter` class to convert Chinese text to Katakana:\r\n\r\n```python\r\nfrom pinyin_kana import to_katakana\r\n\r\nresult = to_katakana(\"\u4f60\u597d\")\r\nprint(\" \".join(result))\r\n\r\nprint(\r\n f\"https://translate.google.com/translate_tts?ie=UTF-8&client=tw-ob&tl=ja&q={'+'.join(result)}\"\r\n)\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "The `chinese-pronounce-in-kana` library is designed to convert Chinese text into Japanese Katakana characters based on their pronunciation.",
"version": "0.0.6",
"project_urls": {
"Homepage": "https://github.com/RUI-LONG/Python-Pinyin-Kana"
},
"split_keywords": [
"pinyin",
"pronounce",
"kana",
"voice"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b0dc4b929b4495844946b2eaccfab79399a4cea491a31c2450127c702860ae23",
"md5": "e66754611d5c37352be245b516a80a20",
"sha256": "d41381321d00d46d89b67cdd277d5e5c295ccd7fc83b06b50c3b202d83c183f0"
},
"downloads": -1,
"filename": "pinyin_kana-0.0.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e66754611d5c37352be245b516a80a20",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 12736,
"upload_time": "2024-01-01T22:53:10",
"upload_time_iso_8601": "2024-01-01T22:53:10.006149Z",
"url": "https://files.pythonhosted.org/packages/b0/dc/4b929b4495844946b2eaccfab79399a4cea491a31c2450127c702860ae23/pinyin_kana-0.0.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7735d4731ce2b8d1d2059a29cf1d22aa20c505d18e520654c5056be390c570e0",
"md5": "5ac262b50b4e9118049d0b819948cf03",
"sha256": "c050c1ca437d9999b6eb3a53d704c4f582515d54e5c4c93c21f9ae58977012b1"
},
"downloads": -1,
"filename": "pinyin_kana-0.0.6.tar.gz",
"has_sig": false,
"md5_digest": "5ac262b50b4e9118049d0b819948cf03",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 14298,
"upload_time": "2024-01-01T22:53:12",
"upload_time_iso_8601": "2024-01-01T22:53:12.066307Z",
"url": "https://files.pythonhosted.org/packages/77/35/d4731ce2b8d1d2059a29cf1d22aa20c505d18e520654c5056be390c570e0/pinyin_kana-0.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-01 22:53:12",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "RUI-LONG",
"github_project": "Python-Pinyin-Kana",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pinyin-kana"
}