Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maybe "en" is better than "n" for pinyin input method #13

Closed
zerovip opened this issue Aug 23, 2020 · 2 comments
Closed

maybe "en" is better than "n" for pinyin input method #13

zerovip opened this issue Aug 23, 2020 · 2 comments

Comments

@zerovip
Copy link

zerovip commented Aug 23, 2020

Although "n" is the correct pinyin for "嗯", I think people are used to typing "en" in pinyin input method. There is another similar situation for "呣", see this issue for reference.

I checked the zhwiki-20200801.dict.yaml file, it only involves two words, "呒染挖啊嗯啊" and "嗯哈哈乐团", so it is not a big deal.

Maybe this following codes will help:

# convert.py
# to replace line 64
pinyin_with_n_m = lazy_pinyin(title)
fix_dic = {'n':'en','m':'mu'}
pinyin_fixed = [ fix_dic[i] if i in fix_dic else i for i in pinyin_with_n_m ]
pinyin = _PINYIN_SEPARATOR.join(pinyin_fixed)

Thank you for the excellent dictionary, it helps me a lot.

@zerovip zerovip closed this as completed Jan 3, 2021
@ipcjs
Copy link
Contributor

ipcjs commented Jan 4, 2021

注音的问题,用rime的繁体词典的话,注出来就正常多了:

嗯哈哈樂團	en ha ha yue tuan
嗯哈哈樂團	eng ha ha yue tuan

felixonmars added a commit that referenced this issue Jan 4, 2021
@felixonmars
Copy link
Owner

Fixed in 0.2.2.

anaer pushed a commit to anaer/rime-pinyin-zhwiki that referenced this issue May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants