Class IndicScriptProcessor.DefaultSyllabizer

java.lang.Object
org.docx4j.fonts.fop.complexscripts.scripts.IndicScriptProcessor.Syllabizer
org.docx4j.fonts.fop.complexscripts.scripts.IndicScriptProcessor.DefaultSyllabizer
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
IndicScriptProcessor

protected static class IndicScriptProcessor.DefaultSyllabizer
extends IndicScriptProcessor.Syllabizer
Default syllabizer.
  • Method Summary

    Modifier and Type Method Description
    protected int findEndOfSyllable​(int[] ca, int s, int e)
    Find end of syllable in character array, starting at S, ending at E.
    protected int findStartOfSyllable​(int[] ca, int s, int e)
    Find start of syllable in character array, starting at S, ending at E.
    protected IndicScriptProcessor.Segment[] segmentize​(int[] ca, int nc)
    Construct array of segements from original character array (associated with original glyph sequence)
    protected GlyphSequence[] segmentize​(GlyphSequence gs, IndicScriptProcessor.Segment[] sa)
    Construct array of glyph sequences from original glyph sequence and segment array.

    Methods inherited from class org.docx4j.fonts.fop.complexscripts.scripts.IndicScriptProcessor.Syllabizer

    compareTo, equals, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • segmentize

      protected IndicScriptProcessor.Segment[] segmentize​(int[] ca, int nc)
      Construct array of segements from original character array (associated with original glyph sequence)
      Parameters:
      ca - input character sequence
      nc - number of characters in sequence
      Returns:
      array of syllable segments
    • segmentize

      protected GlyphSequence[] segmentize​(GlyphSequence gs, IndicScriptProcessor.Segment[] sa)
      Construct array of glyph sequences from original glyph sequence and segment array.
      Parameters:
      gs - original input glyph sequence
      sa - segment array
      Returns:
      array of glyph sequences each belonging to an (ordered) segment in SA
    • findStartOfSyllable

      protected int findStartOfSyllable​(int[] ca, int s, int e)
      Find start of syllable in character array, starting at S, ending at E.
      Parameters:
      ca - character array
      s - start index
      e - end index
      Returns:
      index of start or E if no start found
    • findEndOfSyllable

      protected int findEndOfSyllable​(int[] ca, int s, int e)
      Find end of syllable in character array, starting at S, ending at E.
      Parameters:
      ca - character array
      s - start index
      e - end index
      Returns:
      index of start or S if no end found