def strip_tashkeel(text):
"""Strip vowel from a text and return a result text.
The striped marks are :
- FATHA, DAMMA, KASRA
- SUKUN
- SHADDA
- FATHATAN, DAMMATAN, KASRATAN, , , .
Example:
>>> text=u"?????????????"
>>> strip_tashkeel(text)
???????
@param text: arabic text.
@type text: unicode.
@return: return a striped text.
@rtype: unicode.
"""
return arabconst.HARAKAT_PAT.sub('', text)
#strip tatweel from a text and return a result text
#--------------------------------------
评论列表
文章目录