public interface HyphenationServer
Modifier and Type | Method and Description |
---|---|
Word |
hyphenate(java.lang.CharSequence word,
int offset,
int length,
Orthography orthography)
Hyphenate a word.
|
HyphenationConsumer |
makeConsumer()
Creates and returns a hyphenation consumer instance.
|
int |
wordSize(java.lang.CharSequence characters,
int startIndex,
Orthography orthography)
Finds the size of a word in the text being evaluated.
|
int |
wordStarts(java.lang.CharSequence characters,
int startIndex,
Orthography orthography)
Finds the start of a word in the text being evaluated.
|
Word hyphenate(java.lang.CharSequence word, int offset, int length, Orthography orthography) throws HyphenationException
word
- The sequence of text to be evaluated.offset
- The index to the first character in word
that is part of the word.length
- The length of the word.orthography
- The language, country, and script information to be used for purpose of finding hyphenation
points.Word
instance containing the hyphenation points for the word, or null if no hyphenation points
were found.HyphenationException
- For errors finding or using the hyphenation information.int wordStarts(java.lang.CharSequence characters, int startIndex, Orthography orthography)
characters
- The input being evaluated.startIndex
- Index into the first character in characters that should be evaluated.
Characters at indexes before this will not be considered.orthography
- The language, country, and script information to be used when evaluating characters to skip.
Passing null is permitted.
Implementations are not required to do anything with this information.int wordSize(java.lang.CharSequence characters, int startIndex, Orthography orthography)
characters
- The input being evaluated.startIndex
- Index into the first character in characters that should be evaluated.
Characters at indexes before this will not be considered.orthography
- The language, country, and script information to be used when evaluating where the end of the
word lies.
Passing null is permitted.
Implementations are not required to do anything with this information.HyphenationConsumer makeConsumer()
This documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.