Class BanglaGlyphRepositioner

    • Field Detail

      • CHARCTERS_TO_BE_SHIFTED_LEFT_BY_1

        private static final java.lang.String[] CHARCTERS_TO_BE_SHIFTED_LEFT_BY_1
      • cmap31

        private final java.util.Map<java.lang.Integer,​int[]> cmap31
      • glyphSubstitutionMap

        private final java.util.Map<java.lang.String,​Glyph> glyphSubstitutionMap
    • Constructor Detail

      • BanglaGlyphRepositioner

        public BanglaGlyphRepositioner​(java.util.Map<java.lang.Integer,​int[]> cmap31,
                                       java.util.Map<java.lang.String,​Glyph> glyphSubstitutionMap)
    • Method Detail

      • handleOKaarAndOUKaar

        private void handleOKaarAndOUKaar​(int currentIndex,
                                          java.util.List<Glyph> glyphList,
                                          char first,
                                          char second)
        This is a dirty hack to display O-Kar (ো) and Ou-Kar (ৌ). Since this spans before and after a Byanjan Borno like Ka (ক), the O-kar is split into two characters: the E-Kar (ে) and the A-Kar (া). Similar the Ou-Kar is split into two characters: the E-Kar (ে) and the char (ৗ).
      • getGlyph

        private Glyph getGlyph​(char c)