public static class SubTableLookup6Format3.SubstRuleFormat3 extends ContextualSubstRule
| Constructor and Description |
|---|
SubstRuleFormat3(List<Set<Integer>> backtrackCoverages,
List<Set<Integer>> inputCoverages,
List<Set<Integer>> lookaheadCoverages,
SubstLookupRecord[] substLookupRecords) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBacktrackContextLength()
Gets the length of the backtrack context glyph sequence defined by this rule
|
int |
getContextLength()
Gets the length of the context glyph sequence defined by this rule
|
int |
getLookaheadContextLength()
Gets the length of the lookahead context glyph sequence defined by this rule
|
SubstLookupRecord[] |
getSubstLookupRecords()
Retrieves the substitution lookup records.
|
boolean |
isGlyphMatchesBacktrack(int glyphId,
int atIdx)
Checks if glyph line element matches element from backtrack sequence of the rule.
|
boolean |
isGlyphMatchesInput(int glyphId,
int atIdx)
Checks if glyph line element matches element from input sequence of the rule.
|
boolean |
isGlyphMatchesLookahead(int glyphId,
int atIdx)
Checks if glyph line element matches element from lookahead sequence of the rule.
|
public int getContextLength()
ContextualRulegetContextLength in class ContextualRulepublic int getLookaheadContextLength()
ContextualRulegetLookaheadContextLength in class ContextualRulepublic int getBacktrackContextLength()
ContextualRulegetBacktrackContextLength in class ContextualRulepublic SubstLookupRecord[] getSubstLookupRecords()
ContextualSubstRulegetSubstLookupRecords in class ContextualSubstRuleSubstLookupRecord.public boolean isGlyphMatchesInput(int glyphId,
int atIdx)
ContextualRuleisGlyphMatchesInput in class ContextualRuleglyphId - glyph code idatIdx - index in the rule sequence. Shall be: 0 < atIdx < ContextualRule.getContextLength()true if glyph matches elementpublic boolean isGlyphMatchesLookahead(int glyphId,
int atIdx)
ContextualRuleisGlyphMatchesLookahead in class ContextualRuleglyphId - glyph code idatIdx - index in rule sequence. Shall be: 0 <= atIdx < ContextualRule.getLookaheadContextLength()true if glyph matches element from lookahead sequencepublic boolean isGlyphMatchesBacktrack(int glyphId,
int atIdx)
ContextualRuleisGlyphMatchesBacktrack in class ContextualRuleglyphId - glyph code idatIdx - index in rule sequence. Shall be: 0 <= atIdx < ContextualRule.getBacktrackContextLength()true if glyph matches element from backtrack sequenceCopyright © 1998–2023 Apryse Group NV. All rights reserved.