From 8be8924cfc38a1ff2e7e7c1ce66a28272afab460 Mon Sep 17 00:00:00 2001 From: amontano Date: Fri, 18 Oct 2002 23:28:49 +0000 Subject: [PATCH] accepting both acip and wylie now --- source/org/thdl/tib/scanner/LocalTibetanScanner.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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. */