Class ICUBidiReorderer

java.lang.Object
com.openhtmltopdf.bidi.support.ICUBidiReorderer
All Implemented Interfaces:
BidiReorderer

public class ICUBidiReorderer extends Object implements BidiReorderer
  • Field Details

    • shaper

      com.ibm.icu.text.ArabicShaping shaper
    • deshaper

      com.ibm.icu.text.ArabicShaping deshaper
  • Constructor Details

    • ICUBidiReorderer

      public ICUBidiReorderer()
  • Method Details

    • reorderRTLTextToLTR

      public String reorderRTLTextToLTR(String text)
      Specified by:
      reorderRTLTextToLTR in interface BidiReorderer
    • shapeText

      public String shapeText(String text)
      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 interface BidiReorderer
      Parameters:
      text -
      Returns:
    • deshapeText

      public String deshapeText(String text)
      Description copied from interface: BidiReorderer
      Deshape text, for use if the shaped character is not in a font.
      Specified by:
      deshapeText in interface BidiReorderer
      Parameters:
      text -
      Returns:
    • isLiveImplementation

      public boolean isLiveImplementation()
      Description copied from interface: BidiReorderer
      Useful for optimization.
      Specified by:
      isLiveImplementation in interface BidiReorderer
      Returns: