Java String Normalize normalizeTibetan(String s)

Here you can find the source of normalizeTibetan(String s)

Description

normalize Tibetan

License

Apache License

Declaration

public static String normalizeTibetan(String s) 

Method Source Code

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

Related

  1. normalizeString(String input)
  2. normalizeString(String str)
  3. normalizeString(String token)
  4. normalizeSuffix(String suffix)
  5. normalizeTestAndSplit(String text)
  6. normalizeToAlpha(String input)
  7. normalizeUnicode(CharSequence text)
  8. normalizeUnicode(final String str)
  9. normalizeUnicode(String input)