Package com.itextpdf.text.pdf.languages

Examples of com.itextpdf.text.pdf.languages.IndicCompositeCharacterComparator


       Map<String, Glyph> glyphSubstitutionMap = ttu.getGlyphSubstitutionMap();
     
        // generate a regex from the characters to be substituted
       
        // for Indic languages: push back the CompositeCharacters with smaller length
        Set<String> compositeCharacters = new TreeSet<String>(new IndicCompositeCharacterComparator());
        compositeCharacters.addAll(glyphSubstitutionMap.keySet());
       
        // convert the text to a list of Glyph, also take care of the substitution
        ArrayBasedStringTokenizer tokenizer = new ArrayBasedStringTokenizer(compositeCharacters.toArray(new String[0]));
        String[] tokens = tokenizer.tokenize(text);
View Full Code Here

TOP

Related Classes of com.itextpdf.text.pdf.languages.IndicCompositeCharacterComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.