NpsChineseConverter is used for Traditional Chinese and Simplified Chinese Conversion. The dictionaries come from MediaWiki.
| String |
ToSimplified(String text,int synonym) throws Exception Convert Traditional Chinese characters to Simplified Chinese characters. synonym=1 indicate to use the dictionary for general purpose synonym=3 indicate to use the dictionary for Mainland of China synonym=7 indicate to use the dictionary for Singapore |
| String |
ToTraditional(String text,int synonym) throws Exception Convert Simplified Chinese characters to Traditional Chinese characters. synonym=2 indicate to use the dictionary for general purpose synonym=4 indicate to use the dictionary for TaiWan synonym=5 indicate to use the dictionary for HongKong synonym=6 indicate to use the dictionary for Macau synonym=8 indicate to use the dictionary for Malaysia |