Top Fields Constructors Methods
com.openhtmltopdf.bidi.support

public Class ICUBidiReorderer

extends Object
implements BidiReorderer
Class Inheritance
All Implemented Interfaces
com.openhtmltopdf.bidi.BidiReorderer
Imports
java.util.logging.Level, com.ibm.icu.text.ArabicShaping, .ArabicShapingException, .Bidi, com.openhtmltopdf.bidi.BidiReorderer, com.openhtmltopdf.util.LogMessageId, .XRLog

Field Summary

Modifier and TypeField and Description
pack-priv ArabicShaping
pack-priv ArabicShaping

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
deshapeText(String text)

Implements com.openhtmltopdf.bidi.BidiReorderer.deshapeText.

Deshape text, for use if the shaped character is not in a font.

public boolean
public String
public String
shapeText(String text)

Implements com.openhtmltopdf.bidi.BidiReorderer.shapeText.

Arabic character shapes depends on whether a character is at the start, end or middle of a word.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

deshaperback to summary
pack-priv ArabicShaping deshaper
shaperback to summary
pack-priv ArabicShaping shaper

Constructor Detail

ICUBidiReordererback to summary
public ICUBidiReorderer()

Method Detail

deshapeTextback to summary
public String deshapeText(String text)

Implements com.openhtmltopdf.bidi.BidiReorderer.deshapeText.

Doc from com.openhtmltopdf.bidi.BidiReorderer.deshapeText.

Deshape text, for use if the shaped character is not in a font.

Annotations
@Override
isLiveImplementationback to summary
public boolean isLiveImplementation()

Implements com.openhtmltopdf.bidi.BidiReorderer.isLiveImplementation.

Doc from com.openhtmltopdf.bidi.BidiReorderer.isLiveImplementation.

Useful for optimization.

Annotations
@Override
reorderRTLTextToLTRback to summary
public String reorderRTLTextToLTR(String text)

Implements com.openhtmltopdf.bidi.BidiReorderer.reorderRTLTextToLTR.

Annotations
@Override
shapeTextback to summary
public String shapeText(String text)

Implements com.openhtmltopdf.bidi.BidiReorderer.shapeText.

Doc from com.openhtmltopdf.bidi.BidiReorderer.shapeText.

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.

Annotations
@Override