Top Description Methods
com.openhtmltopdf.bidi

public Interface BidiReorderer

Known Direct Implementers
com.openhtmltopdf.bidi.SimpleBidiReorderer

An interface to provide text reordering services. Must use a proper algorithm rather than reverse string to allow for surrogate pairs, control characters, etc.

Method Summary

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

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

public boolean
isLiveImplementation()

Useful for optimization.

public String
public String
shapeText(String text)

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

Method Detail

deshapeTextback to summary
public String deshapeText(String text)

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

isLiveImplementationback to summary
public boolean isLiveImplementation()

Useful for optimization.

reorderRTLTextToLTRback to summary
public String reorderRTLTextToLTR(String text)
shapeTextback to summary
public String shapeText(String text)

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.