net.sourceforge.pinyin4j
Class GwoyeuRomatzyhTranslator

java.lang.Object
  extended by net.sourceforge.pinyin4j.GwoyeuRomatzyhTranslator

 class GwoyeuRomatzyhTranslator
extends java.lang.Object

A class contains logic that translates from Hanyu Pinyin to Gwoyeu Romatzyh

Author:
Li Min (xmlerlimin@gmail.com)

Field Summary
private static java.lang.String[] tones
          The postfixs to distinguish different tone of Gwoyeu Romatzyh Should be removed if new xPath parser supporting tag name with number.
 
Constructor Summary
GwoyeuRomatzyhTranslator()
           
 
Method Summary
(package private) static java.lang.String convertHanyuPinyinToGwoyeuRomatzyh(java.lang.String hanyuPinyinStr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tones

private static java.lang.String[] tones
The postfixs to distinguish different tone of Gwoyeu Romatzyh Should be removed if new xPath parser supporting tag name with number.

Constructor Detail

GwoyeuRomatzyhTranslator

GwoyeuRomatzyhTranslator()
Method Detail

convertHanyuPinyinToGwoyeuRomatzyh

static java.lang.String convertHanyuPinyinToGwoyeuRomatzyh(java.lang.String hanyuPinyinStr)
Parameters:
hanyuPinyinStr - Given unformatted Hanyu Pinyin with tone number
Returns:
Corresponding Gwoyeu Romatzyh; null if no mapping is found.