Here you can find the source of normalizeTibetan(String s)
public static String normalizeTibetan(String s)
//package com.java2s; //License from project: Apache License import java.text.Normalizer; public class Main { public static String normalizeTibetan(String s) { String res = Normalizer.normalize(s, Normalizer.Form.NFD); // Normalizer doesn't normalize deprecate characters such as 0x0F79 res = res.replace("\u0F79", "\u0FB3\u0F71\u0F80"); res = res.replace("\u0F77", "\u0FB2\u0F71\u0F80"); // it also doesn't normalize characters which use is discouraged: res = res.replace("\u0F81", "\u0F71\u0F80"); res = res.replace("\u0F75", "\u0F71\u0F74"); res = res.replace("\u0F73", "\u0F71\u0F72"); return res; }/* w ww . j av a 2 s .c o m*/ }