Class ICUBidiReorderer
java.lang.Object
com.openhtmltopdf.bidi.support.ICUBidiReorderer
- All Implemented Interfaces:
BidiReorderer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeshapeText(String text) Deshape text, for use if the shaped character is not in a font.booleanUseful for optimization.reorderRTLTextToLTR(String text) Arabic character shapes depends on whether a character is at the start, end or middle of a word.
-
Field Details
-
shaper
com.ibm.icu.text.ArabicShaping shaper -
deshaper
com.ibm.icu.text.ArabicShaping deshaper
-
-
Constructor Details
-
ICUBidiReorderer
public ICUBidiReorderer()
-
-
Method Details
-
reorderRTLTextToLTR
- Specified by:
reorderRTLTextToLTRin interfaceBidiReorderer
-
shapeText
Description copied from interface:BidiReordererArabic 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.- Specified by:
shapeTextin interfaceBidiReorderer- Parameters:
text-- Returns:
-
deshapeText
Description copied from interface:BidiReordererDeshape text, for use if the shaped character is not in a font.- Specified by:
deshapeTextin interfaceBidiReorderer- Parameters:
text-- Returns:
-
isLiveImplementation
public boolean isLiveImplementation()Description copied from interface:BidiReordererUseful for optimization.- Specified by:
isLiveImplementationin interfaceBidiReorderer- Returns:
-