Package com.openhtmltopdf.bidi
Class SimpleBidiReorderer
java.lang.Object
com.openhtmltopdf.bidi.SimpleBidiReorderer
- All Implemented Interfaces:
BidiReorderer
public class SimpleBidiReorderer extends Object implements BidiReorderer
Returns text unchanged.
-
Constructor Summary
Constructors Constructor Description SimpleBidiReorderer() -
Method Summary
Modifier and Type Method Description StringdeshapeText(String text)Deshape text, for use if the shaped character is not in a font.booleanisLiveImplementation()Useful for optimization.StringreorderRTLTextToLTR(String text)StringshapeText(String text)Arabic character shapes depends on whether a character is at the start, end or middle of a word.
-
Constructor Details
-
SimpleBidiReorderer
public SimpleBidiReorderer()
-
-
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- Returns:
-
deshapeText
Description copied from interface:BidiReordererDeshape text, for use if the shaped character is not in a font.- Specified by:
deshapeTextin interfaceBidiReorderer- Returns:
-
isLiveImplementation
public boolean isLiveImplementation()Description copied from interface:BidiReordererUseful for optimization.- Specified by:
isLiveImplementationin interfaceBidiReorderer- Returns:
-