Android Open Source - TaigIME-android Taigi Word






From Project

Back to project page TaigIME-android.

License

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.

Java Source Code

/**
 * /*  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;
  }
  
}




Java Source Code List

fr.magistry.taigime.CandidateView.java
fr.magistry.taigime.Candidate.java
fr.magistry.taigime.CommunityActivity.java
fr.magistry.taigime.Composer.java
fr.magistry.taigime.Converter.java
fr.magistry.taigime.CustomKeyIcon.java
fr.magistry.taigime.MyKeyboard.java
fr.magistry.taigime.OptionsActivity.java
fr.magistry.taigime.TaigIMEService.java
fr.magistry.taigime.TaigiSyl.java
fr.magistry.taigime.TaigiWord.java