We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
绿转成了lu,女转成了nu
The text was updated successfully, but these errors were encountered:
HanyuPinyinOutputFormat fmt = new HanyuPinyinOutputFormat(); fmt.setToneType(HanyuPinyinToneType.WITHOUT_TONE); fmt.setCaseType(HanyuPinyinCaseType.LOWERCASE); fmt.setVCharType(HanyuPinyinVCharType.WITH_V); // ←注意这里 String pinyin_lv = PinyinHelper.toHanYuPinyinString("绿", fmt, "", false); System.out.println(pinyin_lv); String pinyin_nv = PinyinHelper.toHanYuPinyinString("女", fmt, "", false); System.out.println(pinyin_nv);
输出:
lv nv
若:
fmt.setVCharType(HanyuPinyinVCharType.WITH_U_UNICODE);
则输出:
lü nü
Sorry, something went wrong.
好的,谢谢您的回复。
No branches or pull requests
绿转成了lu,女转成了nu
The text was updated successfully, but these errors were encountered: