Package javapersianutils.core.string
Class FixZwnj
- java.lang.Object
-
- javapersianutils.core.string.FixZwnj
-
public class FixZwnj extends Object
Puts zwnj char/half space between word and prefix/suffix
-
-
Constructor Summary
Constructors Constructor Description FixZwnj()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringapplyHalfSpaceRule(String text)Adds zwnj char between word and prefix/suffixstatic StringnormalizeYeHeHalfSpace(String text)Converts ه ی to هیstatic StringnormalizeZwnj(String text)Removes unnecessary zwnj char that are succeeded/preceded by a space
-
-
-
Method Detail
-
applyHalfSpaceRule
public static String applyHalfSpaceRule(String text)
Adds zwnj char between word and prefix/suffix- Parameters:
text- Text to process- Returns:
- Processed Text
-
normalizeZwnj
public static String normalizeZwnj(String text)
Removes unnecessary zwnj char that are succeeded/preceded by a space- Parameters:
text- the text- Returns:
- string
-
-