|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WordTokenizer
This interface describes the contract for a tokenizer which is able to split a list of nodes into words. This kind of tokenizer might be language specific.
| Method Summary | |
|---|---|
int |
findWord(NodeList nodes,
int start,
UnicodeCharList word)
Extract a word from a node list. |
void |
insertShy(NodeList nodes,
int insertionPoint,
boolean[] spec,
CharNode hyphenNode)
Insert hyphenation points into a list of nodes. |
UnicodeCharList |
normalize(UnicodeCharList word,
TypesetterOptions options)
Normalize a word for the lookup. |
| Method Detail |
|---|
int findWord(NodeList nodes,
int start,
UnicodeCharList word)
throws HyphenationException
nodes - the nodes to extract the word fromstart - the start indexword - the target list for the letters of the word
HyphenationException - in case of an error
void insertShy(NodeList nodes,
int insertionPoint,
boolean[] spec,
CharNode hyphenNode)
throws HyphenationException
nodes - the node list to modifyinsertionPoint - the index to insert something into the nodesspec - the specification where to insert hyphenation marks.
If spec[i] is true then a hyphen needs to be
inserted before the ith character at or after insertionPoint
in nodeshyphenNode - the hyphen as node
HyphenationException - in case of an error
UnicodeCharList normalize(UnicodeCharList word,
TypesetterOptions options)
throws HyphenationException
word - the word to normalizeoptions - the options to use
HyphenationException - in case of an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||