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
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
reorderRTLTextToLTR
public String reorderRTLTextToLTR(String text)
- Specified by:
reorderRTLTextToLTRin interfaceBidiReorderer
-
shapeText
public String shapeText(String text)
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
public String deshapeText(String text)
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:
-
-