@Test public void testUnaccentRegexParses() { final String unAccent = unAccent("Some word\u2e00is\u2e02 here\u0308"); assertEquals("Some wordis here", unAccent); }
public static String unAccent(final String word) { return Normalizer.normalize(word, Normalizer.Form.NFD).replaceAll( "[\\p{InCombiningDiacriticalMarks}\u2e00-\u2E3B]*", ""); }
GreekUtils { public static String unAccent(final String word) { return Normalizer.normalize(word, Normalizer.Form.NFD).replaceAll( "[\\p{InCombiningDiacriticalMarks}\u2e00-\u2E3B]*", ""); } }
GreekUtils { public static String unAccent(final String word) { return Normalizer.normalize(word, Normalizer.Form.NFD).replaceAll( "[\\p{InCombiningDiacriticalMarks}\u2e00-\u2E3B]*", ""); } private  GreekUtils(); }
GreekUtils { public static String unAccent(final String word) { return Normalizer.normalize(word, Normalizer.Form.NFD).replaceAll( "[\\p{InCombiningDiacriticalMarks}\u2e00-\u2E3B]*", ""); } private  GreekUtils(); static boolean isGreekText(final String form); static String removeGreekTranslitMarkUpForIndexing(final String stepTransliteration); static String unAccent(final String word); static String toBetaLowercase(final String beta); static String toBetaUnaccented(final String beta); static String transliterateGreek(final String normalized); static List<TransliterationRule> getTransliterationRules(); }
GreekUtils { public static String unAccent(final String word) { return Normalizer.normalize(word, Normalizer.Form.NFD).replaceAll( "[\\p{InCombiningDiacriticalMarks}\u2e00-\u2E3B]*", ""); } private  GreekUtils(); static boolean isGreekText(final String form); static String removeGreekTranslitMarkUpForIndexing(final String stepTransliteration); static String unAccent(final String word); static String toBetaLowercase(final String beta); static String toBetaUnaccented(final String beta); static String transliterateGreek(final String normalized); static List<TransliterationRule> getTransliterationRules();  }