From c5c448f0c60df91ad3d75626a97079d41f7fa59d Mon Sep 17 00:00:00 2001 From: amontano Date: Sat, 9 Dec 2006 18:44:19 +0000 Subject: [PATCH] fixed conversion error. --- source/org/thdl/tib/text/reverter/GC.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/org/thdl/tib/text/reverter/GC.java b/source/org/thdl/tib/text/reverter/GC.java index d71166a..87cd74d 100644 --- a/source/org/thdl/tib/text/reverter/GC.java +++ b/source/org/thdl/tib/text/reverter/GC.java @@ -172,13 +172,17 @@ class GC { } if (isVowel(ch)) { seenVowel = true; + if (lastEwts=="a") + { + sb.deleteCharAt(sb.length()-1); + } } sb.append(ewts); lastEwts = ewts; } - if (UnicodeUtils.isNonSubjoinedConsonant(ch) + if ((UnicodeUtils.isNonSubjoinedConsonant(ch) || UnicodeUtils.isSubjoinedConsonant(ch) - || '\u0f39' == ch) { + || '\u0f39' == ch) && '\u0f68' != ch) { ThdlDebug.verify(!added_aVOWEL); sb.append(THDLWylieConstants.WYLIE_aVOWEL); }