Now {Pm} is treated like {PAm}; {Pm:} is like {PAm:}; {P:} is like {PA:}.

This commit is contained in:
dchandler 2003-11-30 02:06:48 +00:00
parent e7c4cc1874
commit ac412c994b
5 changed files with 56 additions and 19 deletions

View file

@ -213,12 +213,14 @@ class TPair {
void getUnicode(StringBuffer sb, boolean subscribed) {
if (null != getLeft()) {
String x = ACIPRules.getUnicodeFor(getLeft(), subscribed);
if (null != x) sb.append(x);
if (null == x) throw new Error("TPair: " + getLeft() + " has no Uni");
sb.append(x);
}
if (null != getRight()
&& !("-".equals(getRight()) || "A".equals(getRight()))) {
&& !("-".equals(getRight()) || "+".equals(getRight()) || "A".equals(getRight()))) {
String x = ACIPRules.getUnicodeFor(getRight(), subscribed);
if (null != x) sb.append(x);
if (null == x) throw new Error("TPair: " + getRight() + " has no Uni");
sb.append(x);
}
}