public class UnityBrailleTranslator extends AbstractBrailleTranslator implements BrailleTranslator
BrailleTranslator
that assumes input text exists of
only braille and white space characters. Supports CSS properties "word-spacing", "hyphens",
"hyphenate-character", "white-space", and "braille-charset".AbstractBrailleTranslator.util
BrailleTranslator.FromStyledTextToBraille, BrailleTranslator.LineBreakingFromStyledText, BrailleTranslator.LineIterator
Constructor and Description |
---|
UnityBrailleTranslator(org.daisy.dotify.api.table.BrailleConverter brailleCharset,
boolean useBrailleCharsetForInput) |
Modifier and Type | Method and Description |
---|---|
UnityBrailleTranslator |
_withHyphenator(Hyphenator hyphenator)
Return a new
BrailleTranslator that uses the given Hyphenator to perform
hyphenation. |
BrailleTranslator.FromStyledTextToBraille |
fromStyledTextToBraille() |
BrailleTranslator.LineBreakingFromStyledText |
lineBreakingFromStyledText() |
withHyphenator
finalize, getIdentifier, toString, toStringHelper
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
withHyphenator
getIdentifier
public UnityBrailleTranslator(org.daisy.dotify.api.table.BrailleConverter brailleCharset, boolean useBrailleCharsetForInput)
brailleCharset
- The character set of the output braille, and of the input in
case it is styled as braille-charset: custom
or if
useBrailleCharsetForInput
is true
.
null
means Unicode braille.useBrailleCharsetForInput
- Whether brailleCharset
by default also applies to
the input (if it does not have a braille-charset
style).public UnityBrailleTranslator _withHyphenator(Hyphenator hyphenator)
AbstractBrailleTranslator
BrailleTranslator
that uses the given Hyphenator
to perform
hyphenation.
The returned object should be selectable based on its identifier from the same BrailleTranslatorProvider
that provided this BrailleTranslator
._withHyphenator
in class AbstractBrailleTranslator
public BrailleTranslator.FromStyledTextToBraille fromStyledTextToBraille()
fromStyledTextToBraille
in interface BrailleTranslator
fromStyledTextToBraille
in class AbstractBrailleTranslator
public BrailleTranslator.LineBreakingFromStyledText lineBreakingFromStyledText()
lineBreakingFromStyledText
in interface BrailleTranslator
lineBreakingFromStyledText
in class AbstractBrailleTranslator
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.