public static class PosTableLookup8Format3.PosRuleFormat3 extends ContextualPositionRule
| Constructor and Description |
|---|
PosRuleFormat3(List<Set<Integer>> backtrackCoverages,
List<Set<Integer>> inputCoverages,
List<Set<Integer>> lookaheadCoverages,
PosLookupRecord[] posLookupRecords) |
| 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
|
Set<Integer> |
getInputCoverage(int idx) |
int |
getLookaheadContextLength()
Gets the length of the lookahead context glyph sequence defined by this rule
|
PosLookupRecord[] |
getPosLookupRecords()
Retrieves the position 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 PosLookupRecord[] getPosLookupRecords()
ContextualPositionRulegetPosLookupRecords in class ContextualPositionRulePosLookupRecord.public int getContextLength()
ContextualRulegetContextLength in class ContextualRulepublic 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 int getLookaheadContextLength()
ContextualRulegetLookaheadContextLength in class ContextualRulepublic 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 int getBacktrackContextLength()
ContextualRulegetBacktrackContextLength in class ContextualRulepublic 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–2024 Apryse Group NV. All rights reserved.