|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.interpreter.type.AbstractCode
de.dante.extex.interpreter.primitives.hyphen.AbstractHyphenationCode
de.dante.extex.interpreter.primitives.hyphen.HyphenationPrimitive
de.dante.extex.interpreter.primitives.hyphen.Hyphenation
This class provides an implementation for the primitive
The primitive \hyphenation can be used to add hyphenation
exceptions to the current language. The argument is a list of white-space
separated words enclosed in braces. The hyphenation points are indicated
by including a hyphen character (-) at the appropriate places.
When paragraph breaking needs to insert additional break points these
hyphenation points are translated into discretionaries. The exceptions
specified with the primitive \hyphenation have precedence before
the hyphenation points found with the help of hyphenation patterns.
One example which make use of this precedence is the hyphenation
exception without any hyphen characters. This can be used to suppress any
hyphenation in a single word.
In addition to the behavior of the original \hyphenation
.
The Primitive \hyphenation
Extension
Syntax
〈hyphenation〉
→ \hyphenation {...}
Example:
\hyphenation{as-so-ciate as-so-ciates}
\hyphenation{Groß--Ger-au}
Field Summary | |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
Constructor Summary | |
Hyphenation(java.lang.String name)
Creates a new object. |
Method Summary | |
protected UnicodeCharList |
collectWord(Context context,
TokenSource source,
Token token)
Collect all characters that make up a word. |
Methods inherited from class de.dante.extex.interpreter.primitives.hyphen.HyphenationPrimitive |
execute, isWordConstituent |
Methods inherited from class de.dante.extex.interpreter.primitives.hyphen.AbstractHyphenationCode |
getHyphenationTable |
Methods inherited from class de.dante.extex.interpreter.type.AbstractCode |
enableLocalization, getLocalizer, getName, isIf, isOuter, printable, printableControlSequence, readResolve, setName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public Hyphenation(java.lang.String name)
name
- the name for debuggingMethod Detail |
protected UnicodeCharList collectWord(Context context, TokenSource source, Token token) throws InterpreterException, CatcodeException
collectWord
in class HyphenationPrimitive
context
- the interpreter contextsource
- the source for new tokenstoken
- the first token already read
InterpreterException
- in case of an error
CatcodeException
- in case of an exception in token creation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |