ACIP now stacks greedily. TTTTTA is T+T+T+T+TA, even though that stack doesn't exist in TM or TMW. Robert Chilton, in personal correspondence, agreed that this is the way to do things.
ACIP handles the appendages 'AM, 'ANG, 'US, 'UR, 'I, 'O, and 'U correctly.
This commit is contained in:
parent
5f4fbfab7c
commit
5e18feb47d
10 changed files with 576 additions and 348 deletions
|
@ -232,16 +232,28 @@ public class TibetanDocument extends DefaultStyledDocument {
|
|||
* @param color the color in which to insert, which is used if and only
|
||||
* if {@link #colorsEnabled() colors are enabled}
|
||||
*/
|
||||
public void appendDuffCodes(DuffCode[] glyphs, Color color) {
|
||||
public void appendDuffCodes(DuffCode[] glyphs, Color color) {
|
||||
// PERFORMANCE FIXME: this isn't so speedy, but it reuses
|
||||
// existing code.
|
||||
for (int i = 0; i < glyphs.length; i++) {
|
||||
insertDuff(getLength(),
|
||||
new DuffData[] { new DuffData(new String(new char[] { glyphs[i].getCharacter() }),
|
||||
glyphs[i].getFontNum()) },
|
||||
color);
|
||||
appendDuffCode(glyphs[i], color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends glyph to the end of this document.
|
||||
* @param glyph the Tibetan glyph you want to insert
|
||||
* @param color the color in which to insert, which is used if and only
|
||||
* if {@link #colorsEnabled() colors are enabled}
|
||||
*/
|
||||
public void appendDuffCode(DuffCode glyph, Color color) {
|
||||
// PERFORMANCE FIXME: this isn't so speedy, but it reuses
|
||||
// existing code.
|
||||
insertDuff(getLength(),
|
||||
new DuffData[] { new DuffData(new String(new char[] { glyph.getCharacter() }),
|
||||
glyph.getFontNum()) },
|
||||
color);
|
||||
}
|
||||
|
||||
|
||||
/** Replacing can be more efficient than inserting and then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue