@Test public void testGreekConversionToQuerying() { assertListIs(new String[]{"arhop", "arop" }, adaptTransliterationForQuerying("arhop", true)); assertListIs(new String[]{"aggphab", "angphab", "angfab", "aggfab"}, adaptTransliterationForQuerying("aggphab", true)); assertListIs(new String[]{"aa" }, adaptTransliterationForQuerying("aa", true)); }
public static List<TransliterationOption> adaptTransliterationForQuerying( final String stepTransliteration, final boolean isGreek) { if (isGreek) { return trimmedTranslits(multiplyTranslitOptions(removeGreekTranslitMarkUpForIndexing(stepTransliteration), GreekUtils.getTransliterationRules())); } return trimmedTranslits(multiplyTranslitOptions(removeHebrewTranslitMarkUpForIndexing(stepTransliteration), HebrewUtils.getTransliterationRules())); }
StringConversionUtils { public static List<TransliterationOption> adaptTransliterationForQuerying( final String stepTransliteration, final boolean isGreek) { if (isGreek) { return trimmedTranslits(multiplyTranslitOptions(removeGreekTranslitMarkUpForIndexing(stepTransliteration), GreekUtils.getTransliterationRules())); } return trimmedTranslits(multiplyTranslitOptions(removeHebrewTranslitMarkUpForIndexing(stepTransliteration), HebrewUtils.getTransliterationRules())); } }
StringConversionUtils { public static List<TransliterationOption> adaptTransliterationForQuerying( final String stepTransliteration, final boolean isGreek) { if (isGreek) { return trimmedTranslits(multiplyTranslitOptions(removeGreekTranslitMarkUpForIndexing(stepTransliteration), GreekUtils.getTransliterationRules())); } return trimmedTranslits(multiplyTranslitOptions(removeHebrewTranslitMarkUpForIndexing(stepTransliteration), HebrewUtils.getTransliterationRules())); } private  StringConversionUtils(); }
StringConversionUtils { public static List<TransliterationOption> adaptTransliterationForQuerying( final String stepTransliteration, final boolean isGreek) { if (isGreek) { return trimmedTranslits(multiplyTranslitOptions(removeGreekTranslitMarkUpForIndexing(stepTransliteration), GreekUtils.getTransliterationRules())); } return trimmedTranslits(multiplyTranslitOptions(removeHebrewTranslitMarkUpForIndexing(stepTransliteration), HebrewUtils.getTransliterationRules())); } private  StringConversionUtils(); boolean isDisplayableStrongNumber(final String strongNumber); static String getStrongKey(final String strong); static String getAnyKey(final String potentialKey); static String getStrongLanguageSpecificKey(final String key); static String getStrongPaddedKey(final String key); static String padPrefixedStrongNumber(final String strongNumber); static String getAnyKey(final String potentialKey, final boolean trimInitial); static String unAccent(final String word); static String unAccent(final String word, final boolean isGreek); static String unAccent(final String word, final boolean isGreek, boolean unpointHebrewVowels); static String unAccentLeavingVowels(final String word); static String unAccentHebrewLeavingVowels(final String word); static String adaptForTransliterationForIndexing(final String stepTransliteration,
                                                            final boolean isGreek); static List<TransliterationOption> adaptTransliterationForQuerying(
            final String stepTransliteration, final boolean isGreek); static List<TransliterationOption> multiplyTranslitOptions(final String baseString,
                                                                      final List<TransliterationRule> transliterationRules); static String transliterate(final String rawForm); static boolean startsWithPunctuation(final String s); }
StringConversionUtils { public static List<TransliterationOption> adaptTransliterationForQuerying( final String stepTransliteration, final boolean isGreek) { if (isGreek) { return trimmedTranslits(multiplyTranslitOptions(removeGreekTranslitMarkUpForIndexing(stepTransliteration), GreekUtils.getTransliterationRules())); } return trimmedTranslits(multiplyTranslitOptions(removeHebrewTranslitMarkUpForIndexing(stepTransliteration), HebrewUtils.getTransliterationRules())); } private  StringConversionUtils(); boolean isDisplayableStrongNumber(final String strongNumber); static String getStrongKey(final String strong); static String getAnyKey(final String potentialKey); static String getStrongLanguageSpecificKey(final String key); static String getStrongPaddedKey(final String key); static String padPrefixedStrongNumber(final String strongNumber); static String getAnyKey(final String potentialKey, final boolean trimInitial); static String unAccent(final String word); static String unAccent(final String word, final boolean isGreek); static String unAccent(final String word, final boolean isGreek, boolean unpointHebrewVowels); static String unAccentLeavingVowels(final String word); static String unAccentHebrewLeavingVowels(final String word); static String adaptForTransliterationForIndexing(final String stepTransliteration,
                                                            final boolean isGreek); static List<TransliterationOption> adaptTransliterationForQuerying(
            final String stepTransliteration, final boolean isGreek); static List<TransliterationOption> multiplyTranslitOptions(final String baseString,
                                                                      final List<TransliterationRule> transliterationRules); static String transliterate(final String rawForm); static boolean startsWithPunctuation(final String s);  }