The TMW for 'da'i was converting to 'aad'i. Andres found this; it is bug
945744. I've made it more correct -- 'ad'i is now produced. The wrong stack is thought to be the root stack still.
This commit is contained in:
parent
1a055f3472
commit
31bdd39fec
1 changed files with 18 additions and 8 deletions
|
@ -10,7 +10,7 @@ License for the specific terms governing rights and limitations under the
|
||||||
License.
|
License.
|
||||||
|
|
||||||
The Initial Developer of this software is the Tibetan and Himalayan Digital
|
The Initial Developer of this software is the Tibetan and Himalayan Digital
|
||||||
Library (THDL). Portions created by the THDL are Copyright 2001-2003 THDL.
|
Library (THDL). Portions created by the THDL are Copyright 2001-2004 THDL.
|
||||||
All Rights Reserved.
|
All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s): ______________________________________.
|
Contributor(s): ______________________________________.
|
||||||
|
@ -33,14 +33,13 @@ import org.thdl.tib.text.tshegbar.UnicodeUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides methods for converting back and forth between Extended
|
* Provides methods for converting back and forth between Extended
|
||||||
* Wylie and Tibetan represented in TibetanMachineWeb glyphs. This
|
* Wylie/ACIP and Tibetan represented in TibetanMachineWeb glyphs.
|
||||||
* class is not instantiable.
|
* This class is not instantiable.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p> The class provides a variety of static methods for converting
|
||||||
* The class provides a variety of static methods for converting
|
* back and forth between Extended Wylie or ACIP and TibetanMachineWeb.
|
||||||
* back and forth between Extended Wylie and TibetanMachineWeb. The
|
* The Wylie/ACIP can be accessed as a String, while the
|
||||||
* Wylie can be accessed as a String, while the TibetanMachineWeb can
|
* TibetanMachineWeb can be exported as Rich Text Format.
|
||||||
* be exported as Rich Text Format.
|
|
||||||
*
|
*
|
||||||
* @author Edward Garrett, Tibetan and Himalayan Digital Library */
|
* @author Edward Garrett, Tibetan and Himalayan Digital Library */
|
||||||
public class TibTextUtils implements THDLWylieConstants {
|
public class TibTextUtils implements THDLWylieConstants {
|
||||||
|
@ -1578,6 +1577,17 @@ public class TibTextUtils implements THDLWylieConstants {
|
||||||
lastPairTranslit = (EWTSNotACIP
|
lastPairTranslit = (EWTSNotACIP
|
||||||
? tp.getWylie(null)
|
? tp.getWylie(null)
|
||||||
: tp.getACIP(null));
|
: tp.getACIP(null));
|
||||||
|
if (!translitBuffer.toString().endsWith(lastPairTranslit)) {
|
||||||
|
int l;
|
||||||
|
if ((l = translitBuffer.length()) > 0) {
|
||||||
|
char lc = translitBuffer.charAt(l - 1);
|
||||||
|
ThdlDebug.verify(lc == ((EWTSNotACIP) ? 'a' : 'A') /* hard-coded ACIP and EWTS values */);
|
||||||
|
lastPairTranslit = lastPairTranslit + lc; /* 'da'i can cause this */
|
||||||
|
} else {
|
||||||
|
ThdlDebug.verify(false); // this better never happen.
|
||||||
|
lastPairTranslit = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (int i = leftover; i < sz; i++) {
|
for (int i = leftover; i < sz; i++) {
|
||||||
TGCPair tp = (TGCPair)gcs.get(i);
|
TGCPair tp = (TGCPair)gcs.get(i);
|
||||||
|
|
Loading…
Reference in a new issue