Added a few tests for the ACIP keyboard, which I've improved a bit.
Noted some failures. "Fixed" the code to do what I want it to do for the (no sanskrit stacking, tibetan stacking) case [which is exercised by this keyboard only].
This commit is contained in:
parent
efa8fc1f25
commit
59175ccfd6
3 changed files with 10 additions and 10 deletions
|
@ -367,6 +367,9 @@
|
||||||
value="org/thdl/tib/text/tshegbar/LegalTshegBarTest.java"/>
|
value="org/thdl/tib/text/tshegbar/LegalTshegBarTest.java"/>
|
||||||
</antcall>
|
</antcall>
|
||||||
|
|
||||||
|
<antcall target="create-timestamp-source-code">
|
||||||
|
<param name="mybin" value="${junitbin}"/>
|
||||||
|
</antcall>
|
||||||
<antcall target="our-internal-javac-task">
|
<antcall target="our-internal-javac-task">
|
||||||
<param name="mybin" value="${junitbin}"/>
|
<param name="mybin" value="${junitbin}"/>
|
||||||
<param name="my.included.source.file"
|
<param name="my.included.source.file"
|
||||||
|
|
|
@ -403,24 +403,21 @@ public class DuffPane extends TibetanPane implements FocusListener {
|
||||||
isStackingOn_default = false;
|
isStackingOn_default = false;
|
||||||
isDefinitelyTibetan_withStackKey = false;
|
isDefinitelyTibetan_withStackKey = false;
|
||||||
isDefinitelySanskrit_withStackKey = false;
|
isDefinitelySanskrit_withStackKey = false;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
isDefinitelyTibetan_default = false;
|
isDefinitelyTibetan_default = false;
|
||||||
isDefinitelySanskrit_default = true;
|
isDefinitelySanskrit_default = false; // DLC FIXME: trying to make ACIP keyboard happy.
|
||||||
isStackingOn_default = true;
|
isStackingOn_default = true;
|
||||||
isDefinitelyTibetan_withStackKey = true;
|
isDefinitelyTibetan_withStackKey = false; // DLC FIXME: trying to make ACIP keyboard happy.
|
||||||
isDefinitelySanskrit_withStackKey = false;
|
isDefinitelySanskrit_withStackKey = false;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if (TibetanMachineWeb.hasSanskritStackingKey()) {
|
if (TibetanMachineWeb.hasSanskritStackingKey()) {
|
||||||
isDefinitelyTibetan_default = true;
|
isDefinitelyTibetan_default = true;
|
||||||
isDefinitelySanskrit_default = false;
|
isDefinitelySanskrit_default = false;
|
||||||
isStackingOn_default = true;
|
isStackingOn_default = true;
|
||||||
isDefinitelyTibetan_withStackKey = false;
|
isDefinitelyTibetan_withStackKey = false;
|
||||||
isDefinitelySanskrit_withStackKey = true;
|
isDefinitelySanskrit_withStackKey = true;
|
||||||
}
|
} else { //no stacking key at all
|
||||||
else { //no stacking key at all
|
|
||||||
isDefinitelyTibetan_default = false;
|
isDefinitelyTibetan_default = false;
|
||||||
isDefinitelySanskrit_default = false;
|
isDefinitelySanskrit_default = false;
|
||||||
isStackingOn_default = true;
|
isStackingOn_default = true;
|
||||||
|
|
|
@ -4,8 +4,8 @@ See 'http://www.asianclassics.org/download/tibetancode/ticode.pdf'.
|
||||||
|
|
||||||
<?parameters?>
|
<?parameters?>
|
||||||
has sanskrit stacking=false
|
has sanskrit stacking=false
|
||||||
has tibetan stacking=false
|
has tibetan stacking=true
|
||||||
is stacking medial=false
|
is stacking medial=true
|
||||||
stack key=+
|
stack key=+
|
||||||
has disambiguating key=true
|
has disambiguating key=true
|
||||||
disambiguating key=-
|
disambiguating key=-
|
||||||
|
|
Loading…
Reference in a new issue