Package nl.dedicon.pipeline.braille.step
Class Emphasis
- java.lang.Object
-
- nl.dedicon.pipeline.braille.step.Emphasis
-
public class Emphasis extends Object
Processing of emphasized text- Author:
- Paul Rambags
-
-
Field Summary
Fields Modifier and Type Field Description static String[]EMPHASIS_CLASSESstatic char[]EMPHASIS_SYMBOLSstatic char[]HYPHEN_SIGNSstatic charRECOVERY_SIGN
-
Constructor Summary
Constructors Constructor Description Emphasis()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidapply(Document document)Apply emphasis based on the class attribute.
-
-
-
Field Detail
-
EMPHASIS_CLASSES
public static final String[] EMPHASIS_CLASSES
-
EMPHASIS_SYMBOLS
public static final char[] EMPHASIS_SYMBOLS
-
RECOVERY_SIGN
public static final char RECOVERY_SIGN
- See Also:
- Constant Field Values
-
HYPHEN_SIGNS
public static final char[] HYPHEN_SIGNS
-
-
Method Detail
-
apply
public static void apply(Document document)
Apply emphasis based on the class attribute.This is to override default Liblouis functionality. By default, Liblouis has only one symbol for emphasis, viz. (456). This is according to the Braille standard and is correct for general literature. However, for Educational stuff we need to distinguish among bold, italics and underline.
- class="emph-bxx-brl" or class="bold": bold
- class="emph-xix-brl" or class="italic": italics
- class="emph-xxu-brl" or class="underline": underline
- Parameters:
document-
-
-