Class AggressiveEditing


  • public class AggressiveEditing
    extends Object
    replace all more than one ! or ? marks with just one or removes all extra kashida and spaces
    • Method Detail

      • normalizeAllKashida

        public static String normalizeAllKashida​(String text)
        Removes all kashida
        Parameters:
        text - Text to process
        Returns:
        Processed Text
      • normalizeExtraMarks

        public static String normalizeExtraMarks​(String text)
        replaceAlls more than one ! or ? mark with just one
        Parameters:
        text - Text to process
        Returns:
        Processed Text
      • normalizeOutsideInsideSpacing

        public static String normalizeOutsideInsideSpacing​(String text)
        Fixes outside and inside spacing for () [] {} “” «»
        Parameters:
        text - Text to process
        Returns:
        Processed Text
      • normalizeSpacingAndLineBreaks

        public static String normalizeSpacingAndLineBreaks​(String text)
        replaceAlls more than one space or line break with just a single one
        Parameters:
        text - Text to process
        Returns:
        Processed Text
      • normalizeUnderLines

        public static String normalizeUnderLines​(String text)
        Clean UnderLines
        Parameters:
        text - Text to process
        Returns:
        Processed Text
      • removeHexadecimalSymbols

        public static String removeHexadecimalSymbols​(String text)
        There are a lot of symbols which can't be in xml code.
        Parameters:
        text - Text to process
        Returns:
        Processed Text