diff --git a/source/org/thdl/tib/scanner/LocalTibetanScanner.java b/source/org/thdl/tib/scanner/LocalTibetanScanner.java index 26de4a2..06e242e 100644 --- a/source/org/thdl/tib/scanner/LocalTibetanScanner.java +++ b/source/org/thdl/tib/scanner/LocalTibetanScanner.java @@ -205,8 +205,8 @@ class LocalTibetanScanner implements TibetanScanner if (len<3) return null; - char lastCar = sil.charAt(len-1); - if ((lastCar == 's' || lastCar == 'r') && isVowel(sil.charAt(len-2))) + char lastCar = Character.toLowerCase(sil.charAt(len-1)); + if ((lastCar == 's' || lastCar == 'r') && Manipulate.isVowel(sil.charAt(len-2))) { isDeclined=true; sil = sil.substring(0, len-1); @@ -356,11 +356,6 @@ outAHere: return token; } - private static boolean isVowel(char ch) - { - return (ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u'); - } - /** Looks for .dic file, and returns the dictionary descriptions. Also updates the definitionTags in the Definitions class. */