|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.language.word.impl.ExTeXWords
public class ExTeXWords
This class tokenizes a list of nodes according to the rules of
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
| Constructor Summary | |
|---|---|
ExTeXWords()
Creates a new object. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public ExTeXWords()
| Method Detail |
|---|
public int findWord(NodeList nodes,
int start,
UnicodeCharList word)
throws HyphenationException
WordTokenizer
findWord in interface WordTokenizernodes - the nodes to extract the word fromstart - the start indexword - the target list for the letters of the word
HyphenationException - in case of an errorWordTokenizer.findWord(
org.extex.typesetter.type.NodeList, int,
org.extex.core.UnicodeCharList)
public void insertShy(NodeList nodes,
int insertionPoint,
boolean[] spec,
CharNode hyphenNode)
throws HyphenationException
WordTokenizer
insertShy in interface WordTokenizernodes - 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 errorWordTokenizer.insertShy(
org.extex.typesetter.type.NodeList, int, boolean[],
org.extex.typesetter.type.node.CharNode)
public UnicodeCharList normalize(UnicodeCharList word,
TypesetterOptions options)
throws HyphenationException
WordTokenizer
normalize in interface WordTokenizerword - the word to normalizeoptions - the options to use
HyphenationException - in case of an errorWordTokenizer.normalize(
org.extex.core.UnicodeCharList,
org.extex.typesetter.TypesetterOptions)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||