Package com.openhtmltopdf.bidi.support
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.boolean
Useful 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:
reorderRTLTextToLTR
in interfaceBidiReorderer
-
shapeText
Description copied from interface:BidiReorderer
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.- Specified by:
shapeText
in interfaceBidiReorderer
- Parameters:
text
-- Returns:
-
deshapeText
Description copied from interface:BidiReorderer
Deshape text, for use if the shaped character is not in a font.- Specified by:
deshapeText
in interfaceBidiReorderer
- Parameters:
text
-- Returns:
-
isLiveImplementation
public boolean isLiveImplementation()Description copied from interface:BidiReorderer
Useful for optimization.- Specified by:
isLiveImplementation
in interfaceBidiReorderer
- Returns:
-