public class AggressiveEditing extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
convertArabic1256ToUtf8(String text)
Convert an ASCII Arabic text to Unicode
|
static String |
normalizeAllKashida(String text)
Removes all kashida
|
static String |
normalizeExtraMarks(String text)
replaceAlls more than one ! or ? mark with just one
|
static String |
normalizeOutsideInsideSpacing(String text)
Fixes outside and inside spacing for () [] {} “” «»
|
static String |
normalizeSpacingAndLineBreaks(String text)
replaceAlls more than one space or line break with just a single one
|
static String |
normalizeUnderLines(String text)
Clean UnderLines
|
static String |
removeHexadecimalSymbols(String text)
There are a lot of symbols which can't be in xml code.
|
public static String normalizeAllKashida(String text)
text - Text to processpublic static String normalizeExtraMarks(String text)
text - Text to processpublic static String normalizeOutsideInsideSpacing(String text)
text - Text to processpublic static String normalizeSpacingAndLineBreaks(String text)
text - Text to processpublic static String normalizeUnderLines(String text)
text - Text to processpublic static String removeHexadecimalSymbols(String text)
text - Text to processpublic static String convertArabic1256ToUtf8(String text) throws UnsupportedEncodingException
text - the textUnsupportedEncodingException - the unsupported encoding exceptionCopyright © 2019. All rights reserved.