Package com.itextpdf.text.pdf.languages
Class BanglaGlyphRepositioner
- java.lang.Object
-
- com.itextpdf.text.pdf.languages.IndicGlyphRepositioner
-
- com.itextpdf.text.pdf.languages.BanglaGlyphRepositioner
-
- All Implemented Interfaces:
GlyphRepositioner
public class BanglaGlyphRepositioner extends IndicGlyphRepositioner
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]
CHARCTERS_TO_BE_SHIFTED_LEFT_BY_1
private java.util.Map<java.lang.Integer,int[]>
cmap31
private java.util.Map<java.lang.String,Glyph>
glyphSubstitutionMap
-
Constructor Summary
Constructors Constructor Description BanglaGlyphRepositioner(java.util.Map<java.lang.Integer,int[]> cmap31, java.util.Map<java.lang.String,Glyph> glyphSubstitutionMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getCharactersToBeShiftedLeftByOnePosition()
private Glyph
getGlyph(char c)
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 (ৌ).void
repositionGlyphs(java.util.List<Glyph> glyphList)
-
-
-
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
-
repositionGlyphs
public void repositionGlyphs(java.util.List<Glyph> glyphList)
- Specified by:
repositionGlyphs
in interfaceGlyphRepositioner
- Overrides:
repositionGlyphs
in classIndicGlyphRepositioner
-
getCharactersToBeShiftedLeftByOnePosition
public java.util.List<java.lang.String> getCharactersToBeShiftedLeftByOnePosition()
- Specified by:
getCharactersToBeShiftedLeftByOnePosition
in classIndicGlyphRepositioner
-
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)
-
-