Class IndicScriptProcessor.DefaultSyllabizer
- java.lang.Object
-
- org.apache.fop.complexscripts.scripts.IndicScriptProcessor.Syllabizer
-
- org.apache.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intfindEndOfSyllable(int[] ca, int s, int e)Find end of syllable in character array, starting at S, ending at E.protected intfindStartOfSyllable(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.apache.fop.complexscripts.scripts.IndicScriptProcessor.Syllabizer
compareTo, equals, hashCode
-
-
-
-
Method Detail
-
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 sequencenc- 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 sequencesa- 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 arrays- start indexe- 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 arrays- start indexe- end index- Returns:
- index of start or S if no end found
-
-