Class IndicScriptProcessor.DefaultSyllabizer
java.lang.Object
org.apache.fop.complexscripts.scripts.IndicScriptProcessor.Syllabizer
org.apache.fop.complexscripts.scripts.IndicScriptProcessor.DefaultSyllabizer
- All Implemented Interfaces:
Comparable
- Enclosing class:
- IndicScriptProcessor
protected static class IndicScriptProcessor.DefaultSyllabizer
extends IndicScriptProcessor.Syllabizer
Default syllabizer.
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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[]
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 Details
-
segmentize
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
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
-