We were dying in the "can ts+h take a ga prefix?" check for GTZHAN.
This commit is contained in:
parent
47648186b4
commit
0edebd55d7
2 changed files with 6 additions and 1 deletions
|
@ -1649,7 +1649,9 @@ public class TibTextUtils implements THDLWylieConstants {
|
||||||
if (!TibetanMachineWeb.isKnownHashKey(root)) {
|
if (!TibetanMachineWeb.isKnownHashKey(root)) {
|
||||||
root = root.replace('+', '-');
|
root = root.replace('+', '-');
|
||||||
if (!TibetanMachineWeb.isKnownHashKey(root)) {
|
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);
|
String ru = TibetanMachineWeb.getUnicodeForWylieForGlyph(root);
|
||||||
|
|
|
@ -465,6 +465,9 @@ tstHelper("KA'", "[(K . A), (' . )]",
|
||||||
tstHelper("DAM'O", null, null, null, "{DA}{M}{'O}", 2);
|
tstHelper("DAM'O", null, null, null, "{DA}{M}{'O}", 2);
|
||||||
tstHelper("D-M'O", null, null, null, "{D}{M'O}", -1);
|
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}",
|
tstHelper("SHR'I", "{SH}{R'I}",
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
|
|
Loading…
Reference in a new issue