Package com.openhtmltopdf.bidi
Interface BidiReorderer
-
- All Known Implementing Classes:
ICUBidiReorderer,SimpleBidiReorderer
public interface BidiReordererAn interface to provide text reordering services. Must use a proper algorithm rather than reverse string to allow for surrogate pairs, control characters, etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringdeshapeText(java.lang.String text)Deshape text, for use if the shaped character is not in a font.booleanisLiveImplementation()Useful for optimization.java.lang.StringreorderRTLTextToLTR(java.lang.String text)java.lang.StringshapeText(java.lang.String text)Arabic character shapes depends on whether a character is at the start, end or middle of a word.
-
-
-
Method Detail
-
reorderRTLTextToLTR
java.lang.String reorderRTLTextToLTR(java.lang.String text)
-
shapeText
java.lang.String shapeText(java.lang.String text)
Arabic character shapes depends on whether a character is at the start, end or middle of a word. This algorithm aims to change the characters depending on their context.- Parameters:
text-- Returns:
-
deshapeText
java.lang.String deshapeText(java.lang.String text)
Deshape text, for use if the shaped character is not in a font.- Parameters:
text-- Returns:
-
isLiveImplementation
boolean isLiveImplementation()
Useful for optimization.- Returns:
-
-