import majles...
This commit is contained in:
@@ -158,6 +158,13 @@ def split_words(text) :
|
||||
words = re.split(r"[\t\n\r\.\"«»\)\(\]\[,;،؛ \-!?:]+", text)
|
||||
return words
|
||||
|
||||
def is_number_string(value):
|
||||
try:
|
||||
float(value)
|
||||
return True
|
||||
except ValueError:
|
||||
return False
|
||||
|
||||
def normalHeadingTitle(text, last_path = '', keyTitles=[]):
|
||||
global _normalizer
|
||||
lines = text.split('\n')
|
||||
|
||||
Reference in New Issue
Block a user