We now produce EWTS m.ya, g.rwa, d.rwa, and b.ya during TMW->Wylie.
Our disambiguation is now perfect, happening when and only when it is necessary. These are all illegal, so it shouldn't affect many existing conversions. But if there were typos, it could.
This commit is contained in:
parent
9093fd3c05
commit
bcf1c12b6a
1 changed files with 24 additions and 0 deletions
|
@ -98,6 +98,30 @@ public class DuffPaneTest extends TestCase {
|
||||||
assertTrue(passes);
|
assertTrue(passes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testDisambiguation() {
|
||||||
|
ensureKeysGiveCorrectWylie("gya");
|
||||||
|
ensureKeysGiveCorrectWylie("g.ya");
|
||||||
|
ensureKeysGiveCorrectWylie("bya");
|
||||||
|
ensureKeysGiveCorrectWylie("b.ya");
|
||||||
|
ensureKeysGiveCorrectWylie("mya");
|
||||||
|
ensureKeysGiveCorrectWylie("m.ya");
|
||||||
|
ensureKeysGiveCorrectWylie("'ya");
|
||||||
|
ensureKeysGiveCorrectWylie("'.ya", "'ya");
|
||||||
|
ensureKeysGiveCorrectWylie("dya");
|
||||||
|
ensureKeysGiveCorrectWylie("d.ya", "dya");
|
||||||
|
ensureKeysGiveCorrectWylie("grwa");
|
||||||
|
ensureKeysGiveCorrectWylie("g.rwa");
|
||||||
|
ensureKeysGiveCorrectWylie("gra");
|
||||||
|
ensureKeysGiveCorrectWylie("dra");
|
||||||
|
ensureKeysGiveCorrectWylie("drwa");
|
||||||
|
ensureKeysGiveCorrectWylie("d.rwa");
|
||||||
|
ensureKeysGiveCorrectWylie("g.r", "gar");
|
||||||
|
ensureKeysGiveCorrectWylie("d.r", "dar");
|
||||||
|
ensureKeysGiveCorrectWylie("'.r", "'ar");
|
||||||
|
ensureKeysGiveCorrectWylie("b.r", "bar");
|
||||||
|
ensureKeysGiveCorrectWylie("m.r", "mar");
|
||||||
|
}
|
||||||
|
|
||||||
/** Tests performing a few keystrokes in the Extended Wylie
|
/** Tests performing a few keystrokes in the Extended Wylie
|
||||||
* keyboard, turning those into our internal representation (IR),
|
* keyboard, turning those into our internal representation (IR),
|
||||||
* and then converting the result to Extended Wylie. */
|
* and then converting the result to Extended Wylie. */
|
||||||
|
|
Loading…
Reference in a new issue