From d10f97fc06150a1bd0e1246f3e3c4900fbec686c Mon Sep 17 00:00:00 2001 From: dchandler Date: Sun, 13 Jul 2003 19:14:15 +0000 Subject: [PATCH] Disambiguation was not being used appropriately. This makes previous TMW->Wylie conversions with the new-and-improved TMW->Wylie algorithm faulty. Now I'm using it a little more than you need to, e.g. b.lha instead of blha is generated because bla and b.la are ambiguous. --- source/org/thdl/tib/input/DuffPaneTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/org/thdl/tib/input/DuffPaneTest.java b/source/org/thdl/tib/input/DuffPaneTest.java index 8dd352c..909c198 100644 --- a/source/org/thdl/tib/input/DuffPaneTest.java +++ b/source/org/thdl/tib/input/DuffPaneTest.java @@ -173,7 +173,7 @@ public class DuffPaneTest extends TestCase { ensureKeysGiveCorrectWylie("b.lag"); ensureKeysGiveCorrectWylie("blg", - "blga"); + "b.lga"); // LOW-PRIORITY FIXME: blga is not ambiguous; we're disambiguating without good reason ensureKeysGiveCorrectWylie("b.las", "bals"); @@ -184,7 +184,7 @@ public class DuffPaneTest extends TestCase { ensureKeysGiveCorrectWylie("b.rag"); ensureKeysGiveCorrectWylie("brg", - "brga"); + "b.rga"); // LOW-PRIORITY FIXME: brga is not ambiguous; we're disambiguating without good reason ensureKeysGiveCorrectWylie("bars"); ensureKeysGiveCorrectWylie("b.rs", @@ -302,7 +302,8 @@ public class DuffPaneTest extends TestCase { ensureKeysGiveCorrectWylie("hi.M ho.M he.M hu.M", "hiM hoM heM huM"); - ensureKeysGiveCorrectWylie("brgwU-imd"); + ensureKeysGiveCorrectWylie("brgwU-imd", + "b.rgwU-imd"); // LOW-PRIORITY FIXME: brgwU-imd is not ambiguous; we're disambiguating without good reason ensureKeysGiveCorrectWylie("pad+me"); ensureKeysGiveCorrectWylie("pad+men+b+h+yuM");