Back to project page TaigIME-android.
The source code is released under:
GNU General Public License
If you think the Android project TaigIME-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * /* w w w . ja v a2 s . co m*/ */ package fr.magistry.taigime; import android.util.Log; /** * @author pierre * */ public class TaigiWord { //private String inputed; private long wid; private String bopomo; private String hanji; private String tailuo; public TaigiWord(long id, String bpm, String hj, String tl){ // inputed = input; wid = id; hanji = hj; tailuo = tl; bopomo = bpm; } public String getHanji() { return hanji; } public String getTailuo(){ return tailuo; } public String getBopomo(){ return bopomo; } public String getPOJ(){ return tailuo.replaceAll("ts","ch") .replaceAll("o(.?)o","o$1\u0358") .replaceAll("ik","ek") .replaceAll("i\u030dk","e\u030dk") .replaceAll("nn","\u207f"); } public String getPOJ_safe() { return tailuo.replaceAll("ts","ch") .replaceAll("o(.?)o","o$1u") .replaceAll("ik","ek") .replaceAll("i\u030dk","e\u030dk"); } public long getWid(){ return wid; } // public String getInputed(){ // return inputed; //} @Override public boolean equals(Object other){ if (this == other) return true; if (!(other instanceof TaigiWord)) return false; return this.wid == ((TaigiWord)other).wid; } }