de.dante.extex.language.word.impl
Class TeXWords

java.lang.Object
  extended byde.dante.extex.language.word.impl.ExTeXWords
      extended byde.dante.extex.language.word.impl.TeXWords
All Implemented Interfaces:
java.io.Serializable, WordTokenizer

public class TeXWords
extends ExTeXWords
implements WordTokenizer

This class tokenizes a list of nodes according to the rules of TeX.

Version:
$Revision: 1.5 $
Author:
Gerd Neugebauer
See Also:
Serialized Form

Field Summary
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
 
Constructor Summary
TeXWords()
          Creates a new object.
 
Method Summary
 int findWord(NodeList nodes, int start, UnicodeCharList word)
          Extract a word from a node list.
 UnicodeCharList normalize(UnicodeCharList word, TypesetterOptions options)
          Normalize a word for the lookup.
 
Methods inherited from class de.dante.extex.language.word.impl.ExTeXWords
insertShy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.dante.extex.language.word.WordTokenizer
insertShy
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
The constant serialVersionUID contains the id for serialization.

See Also:
Constant Field Values
Constructor Detail

TeXWords

public TeXWords()
Creates a new object.

Method Detail

findWord

public int findWord(NodeList nodes,
                    int start,
                    UnicodeCharList word)
             throws HyphenationException
Description copied from interface: WordTokenizer
Extract a word from a node list.

Specified by:
findWord in interface WordTokenizer
Overrides:
findWord in class ExTeXWords
Throws:
HyphenationException
See Also:
WordTokenizer.findWord( de.dante.extex.typesetter.type.NodeList, int, de.dante.util.UnicodeCharList)

normalize

public UnicodeCharList normalize(UnicodeCharList word,
                                 TypesetterOptions options)
                          throws HyphenationException
Description copied from interface: WordTokenizer
Normalize a word for the lookup.

Specified by:
normalize in interface WordTokenizer
Overrides:
normalize in class ExTeXWords
Throws:
HyphenationException
See Also:
WordTokenizer.normalize( de.dante.util.UnicodeCharList, de.dante.extex.typesetter.TypesetterOptions)