Package com.openhtmltopdf.bidi
Class SimpleBidiReorderer
java.lang.Object
com.openhtmltopdf.bidi.SimpleBidiReorderer
- All Implemented Interfaces:
BidiReorderer
Returns text unchanged.
-
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.
-
Constructor Details
-
SimpleBidiReorderer
public SimpleBidiReorderer()
-
-
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:
-