public abstract class AbstractBrailleTranslator extends AbstractTransform implements BrailleTranslator
Modifier and Type | Class and Description |
---|---|
static class |
AbstractBrailleTranslator.util |
BrailleTranslator.FromStyledTextToBraille, BrailleTranslator.LineBreakingFromStyledText, BrailleTranslator.LineIterator
Modifier | Constructor and Description |
---|---|
protected |
AbstractBrailleTranslator() |
protected |
AbstractBrailleTranslator(AbstractBrailleTranslator from)
Create a new
AbstractBrailleTranslator object that is based on the same underlying
caches and that has the same braille charset. |
protected |
AbstractBrailleTranslator(org.daisy.dotify.api.table.BrailleConverter brailleCharset) |
protected |
AbstractBrailleTranslator(Hyphenator hyphenator,
org.daisy.dotify.api.table.BrailleConverter brailleCharset) |
Modifier and Type | Method and Description |
---|---|
BrailleTranslator |
_withHyphenator(Hyphenator hyphenator)
Return a new
BrailleTranslator that uses the given Hyphenator to perform
hyphenation. |
BrailleTranslator.FromStyledTextToBraille |
fromStyledTextToBraille() |
BrailleTranslator.LineBreakingFromStyledText |
lineBreakingFromStyledText() |
BrailleTranslator |
withHyphenator(Hyphenator hyphenator)
Return a new
BrailleTranslator that uses the given Hyphenator to perform
hyphenation. |
finalize, getIdentifier, toString, toStringHelper
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentifier
protected AbstractBrailleTranslator()
protected AbstractBrailleTranslator(org.daisy.dotify.api.table.BrailleConverter brailleCharset)
brailleCharset
- Used by default implementation of lineBreakingFromStyledText()
to encode hyphen character when specified through "hyphenate-character"
property.protected AbstractBrailleTranslator(Hyphenator hyphenator, org.daisy.dotify.api.table.BrailleConverter brailleCharset)
protected AbstractBrailleTranslator(AbstractBrailleTranslator from)
AbstractBrailleTranslator
object that is based on the same underlying
caches and that has the same braille charset.public BrailleTranslator _withHyphenator(Hyphenator hyphenator) throws UnsupportedOperationException
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
.UnsupportedOperationException
public final BrailleTranslator withHyphenator(Hyphenator hyphenator) throws UnsupportedOperationException
BrailleTranslator
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 interface BrailleTranslator
UnsupportedOperationException
public BrailleTranslator.FromStyledTextToBraille fromStyledTextToBraille() throws UnsupportedOperationException
fromStyledTextToBraille
in interface BrailleTranslator
UnsupportedOperationException
public BrailleTranslator.LineBreakingFromStyledText lineBreakingFromStyledText() throws UnsupportedOperationException
lineBreakingFromStyledText
in interface BrailleTranslator
UnsupportedOperationException
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.