public static class PosTableLookup8Format2.PosRuleFormat2 extends ContextualPositionRule
| Constructor and Description |
|---|
PosRuleFormat2(PosTableLookup8Format2 posTable,
int[] backtrackClassIds,
int[] inputClassIds,
int[] lookAheadClassIds,
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
|
int |
getLookaheadContextLength()
Gets the length of the lookahead context glyph sequence defined by this rule
|
PosLookupRecord[] |
getPosLookupRecords()
Retrieves the position lookup records.
|
PosTableLookup8Format2 |
getPosTable() |
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 PosRuleFormat2(PosTableLookup8Format2 posTable, int[] backtrackClassIds, int[] inputClassIds, int[] lookAheadClassIds, PosLookupRecord[] posLookupRecords)
public int getContextLength()
ContextualRulegetContextLength in class ContextualRulepublic int getLookaheadContextLength()
ContextualRulegetLookaheadContextLength in class ContextualRulepublic int getBacktrackContextLength()
ContextualRulegetBacktrackContextLength in class ContextualRulepublic PosLookupRecord[] getPosLookupRecords()
ContextualPositionRulegetPosLookupRecords in class ContextualPositionRulePosLookupRecord.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 sequencepublic PosTableLookup8Format2 getPosTable()
Copyright © 1998–2024 Apryse Group NV. All rights reserved.