|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pdfbox.util.TextNormalize
public class TextNormalize
This class allows a caller to normalize text in various ways. It will load the ICU4J jar file if it is defined on the classpath.
| Constructor Summary | |
|---|---|
TextNormalize(java.lang.String encoding)
|
|
| Method Summary | |
|---|---|
java.lang.String |
makeLineLogicalOrder(java.lang.String str,
boolean isRtlDominant)
Takes a line of text in presentation order and converts it to logical order. |
java.lang.String |
normalizeDiac(java.lang.String str)
Normalize the diacritic, for example, convert non-combining diacritic characters to their combining counterparts. |
java.lang.String |
normalizePres(java.lang.String str)
Normalize the presentation forms of characters in the string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextNormalize(java.lang.String encoding)
encoding - The Encoding that the text will eventually be written as (or null)| Method Detail |
|---|
public java.lang.String makeLineLogicalOrder(java.lang.String str,
boolean isRtlDominant)
str - Presentation form of line to convert (i.e. left most char is first char)isRtlDominant - true if the PAGE has a dominant right to left ordering
public java.lang.String normalizePres(java.lang.String str)
str - String to normalize
public java.lang.String normalizeDiac(java.lang.String str)
str - String to normalize
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||