Package com.openhtmltopdf.bidi.support
Class ICUBidiReorderer
- java.lang.Object
-
- com.openhtmltopdf.bidi.support.ICUBidiReorderer
-
- All Implemented Interfaces:
BidiReorderer
public class ICUBidiReorderer extends java.lang.Object implements BidiReorderer
-
-
Constructor Summary
Constructors Constructor Description ICUBidiReorderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
deshapeText(java.lang.String text)
Deshape text, for use if the shaped character is not in a font.boolean
isLiveImplementation()
Useful for optimization.java.lang.String
reorderRTLTextToLTR(java.lang.String text)
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.
-
-
-
Method Detail
-
reorderRTLTextToLTR
public java.lang.String reorderRTLTextToLTR(java.lang.String text)
- Specified by:
reorderRTLTextToLTR
in interfaceBidiReorderer
-
shapeText
public java.lang.String shapeText(java.lang.String text)
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
- Returns:
-
deshapeText
public java.lang.String deshapeText(java.lang.String text)
Description copied from interface:BidiReorderer
Deshape text, for use if the shaped character is not in a font.- Specified by:
deshapeText
in interfaceBidiReorderer
- Returns:
-
isLiveImplementation
public boolean isLiveImplementation()
Description copied from interface:BidiReorderer
Useful for optimization.- Specified by:
isLiveImplementation
in interfaceBidiReorderer
- Returns:
-
-