[嗯]字的声母韵母问题
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- internationalization
Research direction
Start by reproducing the supplied Python example using pinyin with Style.INITIALS and Style.FINALS_TONE3, both with and without neutral_tone_with_five. Review the handling discussed in issue #109 and identify the expected representation for 嗯. Done when the agreed initials and finals behavior is implemented and covered by tests.
Written by the indexing model from the issue text.
Description
运行环境
- 操作系统(Linux/macOS/Windows):Linux(Ubuntu 18.04)
- Python 版本: 3.8.1
- pypinyin 版本:0.47.0
问题描述
开始我以为[嗯]字的拼音错了,在issue里面查了一下,发现了 #109
但是当我想使用[嗯]字的声韵母的时候,发现好像提取不出来
如果加了 neutral_tone_with_five=True 那么韵母就是 5,感觉比较奇怪
问题复现步骤
Python 3.8.1 (default, Jan 8 2020, 22:29:32)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
from pypinyin import pinyin, Style
txt = '嗯'
shengmu = pinyin(txt, style=Style.INITIALS, neutral_tone_with_five=True)
yunmu = pinyin(txt, style=Style.FINALS_TONE3, neutral_tone_with_five=True)
shengmu
[['']]
yunmu
[['5']]
yunmu = pinyin(txt, style=Style.FINALS_TONE3)
yunmu
[['']]
- Dominant language
- Python
- Stars
- 5.4k
- Forks
- 628
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozillazg/python-pinyin
-
“乡长”读音错误 Open
Difficulty 1/5 Under an hour Newbie friendliness 82/100
mozillazg/python-pinyin#369 ·
-
U+5535读音错误 Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
mozillazg/python-pinyin#368 ·
-
U+25948读音错误 Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mozillazg/python-pinyin#367 ·
-
威妥瑪拼音ai變ei Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
mozillazg/python-pinyin#365 · 1 comment ·
-
[FEAT REQ] 允许导入输入法词库 Opendiscuss
Difficulty 5/5 Over a week Newbie friendliness 35/100
mozillazg/python-pinyin#362 · 3 comments ·
All issues in mozillazg/python-pinyin
Similar issues
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100