public class FormatterConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FormatterConfiguration.Builder
Provides a builder for formatter configuration
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowsEndingVolumeOnHyphen()
Returns true if the last line (of the main flow) in each volume may be
hyphenated, if necessary.
|
Set<String> |
getIgnoredStyles()
Gets a set of ignored styles
|
String |
getLocale()
Gets the locale
|
String |
getTranslationMode()
Gets the translation mode
|
boolean |
isAllowingTextOverflowTrimming()
Returns true if text that overflows is allowed to be truncated, false otherwise.
|
boolean |
isHyphenating()
Returns true if the formatter is hyphenating
|
boolean |
isMarkingCapitalLetters()
Returns true if capital letters should be marked, false otherwise
|
static FormatterConfiguration.Builder |
with(String locale,
String mode)
Creates a new builder with the specified properties
|
public static FormatterConfiguration.Builder with(String locale, String mode)
locale
- the localemode
- the braille translation modepublic String getTranslationMode()
public String getLocale()
public boolean isAllowingTextOverflowTrimming()
public boolean allowsEndingVolumeOnHyphen()
public boolean isHyphenating()
public boolean isMarkingCapitalLetters()