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
/** * 将中文转换为拼音 */ @Test void test() throws BadHanyuPinyinOutputFormatCombination { HanyuPinyinOutputFormat format=new HanyuPinyinOutputFormat(); format.setToneType(HanyuPinyinToneType.WITHOUT_TONE); // format.setCaseType(HanyuPinyinCaseType.UPPERCASE); // format.setVCharType(HanyuPinyinVCharType.WITH_V); String[] strings = PinyinHelper.toHanyuPinyinStringArray('华', format); System.out.println(String.join("",strings)); }
output:
huahuahua
The text was updated successfully, but these errors were encountered:
三个读音有不同的声调, 但是你没要声调。
Sorry, something went wrong.
No branches or pull requests
output:
The text was updated successfully, but these errors were encountered: