public static class AbstractHyphenator.util.NoHyphenator extends AbstractHyphenator.util.DefaultFullHyphenator
FullHyphenator
that does not provide any hyphenation opportunities (only soft
wrap opportunities outside words).Constructor and Description |
---|
NoHyphenator() |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
getHyphenationOpportunities(String textWithoutManualHyphens,
Locale language)
Get hyphenation opportunities as a byte array (1 = SHY, 2 = ZWSP)
|
protected boolean |
isCodePointAware()
Whether the length of the array returned by
AbstractHyphenator.util.DefaultFullHyphenator.getHyphenationOpportunities(String, Locale) is based on the number of code points
in the input or the number of characters. |
protected boolean |
isLanguageAdaptive()
Whether
AbstractHyphenator.util.DefaultFullHyphenator.getHyphenationOpportunities(String, Locale) takes into account the
language argument. |
Iterable<CSSStyledText> |
transform(Iterable<CSSStyledText> text) |
transform, transform, transform
public Iterable<CSSStyledText> transform(Iterable<CSSStyledText> text)
transform
in interface Hyphenator.FullHyphenator
transform
in class AbstractHyphenator.util.DefaultFullHyphenator
protected boolean isCodePointAware()
AbstractHyphenator.util.DefaultFullHyphenator
AbstractHyphenator.util.DefaultFullHyphenator.getHyphenationOpportunities(String, Locale)
is based on the number of code points
in the input or the number of characters.isCodePointAware
in class AbstractHyphenator.util.DefaultFullHyphenator
protected boolean isLanguageAdaptive()
AbstractHyphenator.util.DefaultFullHyphenator
AbstractHyphenator.util.DefaultFullHyphenator.getHyphenationOpportunities(String, Locale)
takes into account the
language
argument.isLanguageAdaptive
in class AbstractHyphenator.util.DefaultFullHyphenator
protected byte[] getHyphenationOpportunities(String textWithoutManualHyphens, Locale language)
AbstractHyphenator.util.DefaultFullHyphenator
getHyphenationOpportunities
in class AbstractHyphenator.util.DefaultFullHyphenator
textWithoutManualHyphens
- text that does not contain SHY and ZWSP characters (and from
which no SHY and ZWSP characters were extracted either)Copyright © 2010–2024 The DAISY Consortium. All rights reserved.