Class ChunksMergeUtils
java.lang.Object
org.verapdf.wcag.algorithms.semanticalgorithms.utils.ChunksMergeUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublecountOneLineProbability(SemanticTextNode secondNode, TextLine lastLine, TextLine nextLine) static TextAlignmentgetAlignment(TextBlock textBlock, TextLine currentLine) static TextAlignmentgetAlignment(TextLine previousLine, TextLine currentLine) static doublestatic doublestatic doublestatic doublegetFootnoteProbability(SemanticTextNode firstNode, SemanticTextNode secondNode, TextLine lastLine, TextLine nextLine) static doublegetNormalTextProbabilitySecondChunk(TextChunk x, TextChunk y, double baseLineDiff, double fontSizeDiff) static doublegetSubscriptProbabilityFirstChunk(TextChunk x, TextChunk y, double baseLineDiff, double fontSizeDiff) static doublegetSubscriptProbabilitySecondChunk(TextChunk x, TextChunk y, double baseLineDiff, double fontSizeDiff) static doublegetSuperscriptProbabilityFirstChunk(TextChunk x, TextChunk y, double baseLineDiff, double fontSizeDiff) static doublegetSuperscriptProbabilitySecondChunk(TextChunk x, TextChunk y, double baseLineDiff, double fontSizeDiff) static TextChunkgetTrimTextChunk(TextChunk textChunk) static doublegetUniformProbability(double[] probability1Interval, double point, double initIntervalLength) static doublestatic doublestatic doublestatic doublestatic doublemergeLeadingProbability(TextLine x, TextLine y, double[] fontLeadingInterval) static doublestatic doublestatic doublestatic doublestatic doublestatic doubletoPartMergeProbability(TextLine x, TextLine y, TextLine penultLine, TextLine secondLine)
-
Method Details
-
toChunkMergeProbability
-
getBaseLineDifference
-
getCentersDifference
-
getFontSizeDifference
-
toLineMergeProbability
-
countOneLineProbability
public static double countOneLineProbability(SemanticTextNode secondNode, TextLine lastLine, TextLine nextLine) -
getNormalTextProbabilitySecondChunk
-
getSuperscriptProbabilitySecondChunk
-
getSubscriptProbabilitySecondChunk
-
getSuperscriptProbabilityFirstChunk
-
getSubscriptProbabilityFirstChunk
-
getFootnoteProbability
public static double getFootnoteProbability(SemanticTextNode firstNode, SemanticTextNode secondNode, TextLine lastLine, TextLine nextLine) -
toLineMergeProbability
-
toParagraphMergeProbability
-
toPartMergeProbability
-
toColumnsMergeProbability
-
getAlignment
-
getAlignment
-
mergeLeadingProbability
-
mergeLeadingProbability
-
mergeLeadingProbability
-
mergeLeadingProbability
-
mergeIndentationProbability
-
getUniformProbability
public static double getUniformProbability(double[] probability1Interval, double point, double initIntervalLength) -
getTrimTextChunk
-