Class TextChunkUtils
java.lang.Object
org.verapdf.wcag.algorithms.semanticalgorithms.utils.TextChunkUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareNeighborsTextChunks(TextChunk firstTextChunk, TextChunk secondTextChunk) static booleanareTextChunksHaveSameBaseLine(TextChunk firstTextChunk, TextChunk secondTextChunk) static booleanareTextChunksHaveSameStyle(TextChunk firstTextChunk, TextChunk secondTextChunk) static booleanisSpaceChunk(TextChunk chunk) static booleanisWhiteSpaceChar(char symbol) static booleanisWhiteSpaceChunk(TextChunk chunk) static TextChunkunionTextChunks(TextChunk firstTextChunk, TextChunk secondTextChunk)
-
Field Details
-
WHITE_SPACE_FACTOR
public static final double WHITE_SPACE_FACTOR- See Also:
-
NEIGHBORS_EPSILON
public static final double NEIGHBORS_EPSILON- See Also:
-
BASELINE_DIFFERENCE_EPSILON
public static final double BASELINE_DIFFERENCE_EPSILON- See Also:
-
-
Constructor Details
-
TextChunkUtils
public TextChunkUtils()
-
-
Method Details
-
isSpaceChunk
-
isWhiteSpaceChunk
-
isWhiteSpaceChar
public static boolean isWhiteSpaceChar(char symbol) -
areTextChunksHaveSameStyle
-
areTextChunksHaveSameBaseLine
-
unionTextChunks
-
areNeighborsTextChunks
-