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

单个字转换的时候 为什么出现三个相同的...拼音 #37

Open
Shimizusorrow opened this issue Nov 24, 2020 · 1 comment
Open

Comments

@Shimizusorrow
Copy link

 /**
     * 将中文转换为拼音
     */
    @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
@zhangethan
Copy link

三个读音有不同的声调, 但是你没要声调。

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