中文转拼音Pinyin4j简介

详见:http://pinyin4j.sourceforge.net/

Pinyin4j is a popular Java library supporting convertion between Chinese characters and most popular Pinyin systems. The output format of pinyin could be customized.

Features

  1. Convert Chinese (both Simplified and Tranditional) to most popular pinyinsystems. Supporting pinyin system are listed below. 
    • Hanyu Pinyin
    • Tongyong Pinyin
    • Wade-Giles
    • MPS2 (Mandarin Phonetic Symbols II)
    • Yale Romanization
    • Gwoyeu Romatzyh
  2. Support multiple pronounciations of a single Chinese character. For example, taking the Chinese character '和' as input, you will get eight Hanyu Pinyin results (hé hè huó huò huo hāi he hú), depeding on different contexts.
  3. Multiple options for output format (details can be found here)
    • All uppercase or lowercase
    • Can output Unicode ü or v or u:
    • With tone numbers (lü3) or tone marks (lǚ) or without tone (lü)

你可能感兴趣的:(java)