import majles...

This commit is contained in:
hsafaei
2026-01-22 13:37:24 +03:30
parent 1e24fc6caf
commit 939127354d
12 changed files with 5057 additions and 28 deletions
+7
View File
@@ -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')