Now anything not clearly native Tibetan is colored green when coloring is enabled. G'EEm is "native", though -- the only "vowel" that implies non-nativeness is {:}, as in {KA:}.
This commit is contained in:
parent
5c36dd81d3
commit
94a43d3f39
2 changed files with 10 additions and 5 deletions
|
@ -482,14 +482,20 @@ public class ACIPConverter {
|
||||||
}
|
}
|
||||||
if (null != tdoc) {
|
if (null != tdoc) {
|
||||||
duff = sl.getDuff();
|
duff = sl.getDuff();
|
||||||
|
BoolTriple bt;
|
||||||
if (colors && sl.isLegalTshegBar(true).isLegal && !sl.isLegalTshegBar(false).isLegal) {
|
if (colors && sl.isLegalTshegBar(true).isLegal && !sl.isLegalTshegBar(false).isLegal) {
|
||||||
color = Color.YELLOW;
|
color = Color.YELLOW;
|
||||||
} else if (colors && sl.isLegalTshegBar(false).isLegal) {
|
} else if (colors && (bt = sl.isLegalTshegBar(false)).isLegal && !bt.isLegalButSanskrit()) {
|
||||||
color = Color.BLACK;
|
color = Color.BLACK;
|
||||||
} else {
|
} else {
|
||||||
// Sanskrit
|
// Sanskrit.
|
||||||
|
|
||||||
// DLC FIXME: a funny vowel, the presence of a sanskrit-only stack, and a funny mark like ACIP ':' should cause green too.
|
// FIXME: should a funny
|
||||||
|
// vowel cause green to
|
||||||
|
// appear too? G'EEm is
|
||||||
|
// black, not green, right
|
||||||
|
// now, though GA: is
|
||||||
|
// green.
|
||||||
color = Color.GREEN;
|
color = Color.GREEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -380,7 +380,6 @@ tstHelper("KA'", "[(K . A), (' . )]",
|
||||||
new String[] { },
|
new String[] { },
|
||||||
"{G+G+YE}{S}");
|
"{G+G+YE}{S}");
|
||||||
|
|
||||||
// DLC FIXME: warn about BDE vs. B+DE. color such differently. Maybe an inputter saw B+DE and typed in BDE, not thinking.
|
|
||||||
tstHelper("BDE", "{B}{DE}",
|
tstHelper("BDE", "{B}{DE}",
|
||||||
new String[] { "{B+DE}", "{B}{DE}" },
|
new String[] { "{B+DE}", "{B}{DE}" },
|
||||||
new String[] { "{B}{DE}" },
|
new String[] { "{B}{DE}" },
|
||||||
|
@ -391,7 +390,7 @@ tstHelper("KA'", "[(K . A), (' . )]",
|
||||||
new String[] { "{B}{DEm}" },
|
new String[] { "{B}{DEm}" },
|
||||||
"{B}{DEm}");
|
"{B}{DEm}");
|
||||||
|
|
||||||
/* DLC FIXME
|
/* DLC FIXME DOC TEST
|
||||||
tstHelper("BDA:", "{B}{DA:}",
|
tstHelper("BDA:", "{B}{DA:}",
|
||||||
new String[] { "{B+DA:}", "{B}{DA:}" },
|
new String[] { "{B+DA:}", "{B}{DA:}" },
|
||||||
new String[] { "{B}{DA:}" },
|
new String[] { "{B}{DA:}" },
|
||||||
|
|
Loading…
Reference in a new issue