pinyin4j banner

Home
Project page
Installation
Forum
Links

SourceForge.net Logo

Valid XHTML 1.0!

Valid CSS!

Combination of output format options

Three types of output format options can be customized in pinyin4j.

  • VCharType: output format of character 'ü', which has three options.
    • WITH_U_AND_COLON (default)
    • WITH_V
    • WITH_U_UNICODE
  • ToneType: output format of Chinese tones, which has three options.
    • WITH_TONE_NUMBER (default)
    • WITHOUT_TONE
    • WITH_TONE_MARK
  • CaseType: cases of letters in outputted string, which has two options.
    • LOWERCASE (default)
    • UPPERCASE

Some combinations of these three output formats are forbidden. For example, '吕'

LOWERCASE
Combination WITH_U_AND_COLON WITH_V WITH_U_UNICODE
WITH_TONE_NUMBER lu:3 lv3 lü3
WITHOUT_TONE lu: lv
WITH_TONE_MARK Exception Exception

UPPERCASE
Combination WITH_U_AND_COLON WITH_V WITH_U_UNICODE
WITH_TONE_NUMBER LU:3 LV3 LÜ3
WITHOUT_TONE LU: LV
WITH_TONE_MARK Exception Exception

 Latest Release

pinyin4j 2.5.0

Download
JavaDoc
Demostration
Screen Shots What's new
Changes

Support This Project


Copyleft under GNU General Public License (GPL) | Website visit stats | Maintained by Li Min