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

提取首字母小bug #177

Closed
whereyouin opened this issue Sep 29, 2021 · 2 comments
Closed

提取首字母小bug #177

whereyouin opened this issue Sep 29, 2021 · 2 comments

Comments

@whereyouin
Copy link

比如单田芳,用name就是shantianfang,用abbr就是dtf。

@overtrue
Copy link
Owner

overtrue commented Nov 8, 2021

abbr 是当成普通用语而非姓名翻译,所以会取到用的多的 dan 为拼音。

@overtrue
Copy link
Owner

已添加支持:

$pinyin->abbr('单田芳', \PINYIN_NAME) // stf

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

2 participants