Class Emphasis


  • public class Emphasis
    extends Object
    Processing of emphasized text
    Author:
    Paul Rambags
    • Field Detail

      • EMPHASIS_CLASSES

        public static final String[] EMPHASIS_CLASSES
      • EMPHASIS_SYMBOLS

        public static final char[] EMPHASIS_SYMBOLS
      • HYPHEN_SIGNS

        public static final char[] HYPHEN_SIGNS
    • Constructor Detail

      • Emphasis

        public Emphasis()
    • 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 -