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_1private java.util.Map<java.lang.Integer,int[]>cmap31private 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 GlyphgetGlyph(char c)private voidhandleOKaarAndOUKaar(int currentIndex, java.util.List<Glyph> glyphList, char first, char second)This is a dirty hack to display O-Kar (ো) and Ou-Kar (ৌ).voidrepositionGlyphs(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:
repositionGlyphsin interfaceGlyphRepositioner- Overrides:
repositionGlyphsin classIndicGlyphRepositioner
-
getCharactersToBeShiftedLeftByOnePosition
public java.util.List<java.lang.String> getCharactersToBeShiftedLeftByOnePosition()
- Specified by:
getCharactersToBeShiftedLeftByOnePositionin 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)
-
-