[go: nahoru, domu]

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

特殊拼音的转换 #241

Closed
tansongchen opened this issue Jun 1, 2024 · 3 comments · Fixed by #248
Closed

特殊拼音的转换 #241

tansongchen opened this issue Jun 1, 2024 · 3 comments · Fixed by #248
Labels
enhancement New feature or request

Comments

@tansongchen
Copy link

bug 描述

import { convert } from "pinyin-pro";

for (const pinyin of ["m̄", "hm", "ê̄", "ế", "ê̌", "ề"]) {
  console.log(convert(pinyin, { format: "symbolToNum" }));
}

这些都没有转换

你预期的样子是?

正确加上声调数字

pinyin-pro 版本号

3.20.3

引入方式

Node.js

最小成本的复现步骤

如上

@zh-lx
Copy link
Owner
zh-lx commented Jun 3, 2024

感谢反馈,目前仅考虑支持大陆标准的汉语拼音,对于非正常拼音符的其他符号不会支持

@zh-lx zh-lx closed this as completed Jun 3, 2024
@zh-lx zh-lx added the won't support This issue won't be supported. label Jun 3, 2024
@tansongchen
Copy link
Author

@zh-lx 这些本来就是正常的汉语拼音,虽然不是所有字典都会收录这些音,但是至少有一些大陆标准的字典收录了这些音

hm,是「噷」的拼音

image

ê̄, ế, ê̌, ề,是「诶」「欸」的拼音,Wikitionary 通用规范汉字字典有收录,严格来说这些比拼成 ei 更规范

image

是鼻音韵母 m 的一声,「嘸」有这个音,而且现在二声 ḿ 和四声 都是支持的,一声和三声也可以统一支持

@zh-lx zh-lx reopened this Jun 3, 2024
@zh-lx
Copy link
Owner
zh-lx commented Jun 3, 2024

@tansongchen 还真是,是我孤陋寡闻了。感谢补充,我近期支持一下~

@zh-lx zh-lx added enhancement New feature or request and removed won't support This issue won't be supported. labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants