We were dying in the "can ts+h take a ga prefix?" check for GTZHAN.

This commit is contained in:
dchandler 2003-10-19 03:47:33 +00:00
parent 47648186b4
commit 0edebd55d7
2 changed files with 6 additions and 1 deletions

View file

@ -1649,7 +1649,9 @@ public class TibTextUtils implements THDLWylieConstants {
if (!TibetanMachineWeb.isKnownHashKey(root)) {
root = root.replace('+', '-');
if (!TibetanMachineWeb.isKnownHashKey(root)) {
throw new Error("root is, now, " + root); // FIXME: make this an assertion
// If the glyph isn't even in TibetanMachine, then
// it's not able to take any prefix.
return false;
}
}
String ru = TibetanMachineWeb.getUnicodeForWylieForGlyph(root);

View file

@ -465,6 +465,9 @@ tstHelper("KA'", "[(K . A), (' . )]",
tstHelper("DAM'O", null, null, null, "{DA}{M}{'O}", 2);
tstHelper("D-M'O", null, null, null, "{D}{M'O}", -1);
tstHelper("GTZAN", "{G}{TZA}{N}", null, null, "{G}{TZA}{N}", -1);
tstHelper("GTZHAN", "{G}{TZ}{HA}{N}", null, null, "{G+TZ+HA}{N}", -1);
tstHelper("SHR'I", "{SH}{R'I}",
null,
null,