Package org.daisy.dotify.translator
Interface BrailleFinalizer
-
- All Known Implementing Classes:
ConfigurableBrailleFinalizer
,DefaultBrailleFinalizer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface BrailleFinalizer
Provides an interface for finalizing a braille translation. The purpose is to replace remaining non braille characters that are useful for breaking the translated string into lines. Any remaining non braille characters must have a single braille cell translation, in other words, the total length of the string cannot change.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
finalizeBraille(String input)
Finalizes braille translation, replacing remaining non braille characters with braille characters.
-
-
-
Method Detail
-
finalizeBraille
String finalizeBraille(String input)
Finalizes braille translation, replacing remaining non braille characters with braille characters. An implementation can assume that the input has been filtered. The resulting string must have the same length as the input string.- Parameters:
input
- the input string, mostly braille- Returns:
- returns the finalized string
-
-