diff --git a/mayan/apps/ocr/lang/deu.py b/mayan/apps/ocr/lang/deu.py index be01ed2643..9a9b89549e 100644 --- a/mayan/apps/ocr/lang/deu.py +++ b/mayan/apps/ocr/lang/deu.py @@ -13,7 +13,6 @@ class LanguageBackend(BackendBase): TOO_MANY_VOWELS = re.compile('[aäeioöuü]{4}', re.I) TOO_MANY_CONSONANTS = re.compile('[bcdfghjklmnpqrstvwxyz]{4}', re.I) - ALL_ALPHA = re.compile('^[a-z]+$', re.I) # SINGLE_LETTER_WORDS = re.compile('^$', re.I) #(L) If a string is longer than 40 characters, it is considered as garbage diff --git a/mayan/apps/ocr/lang/eng.py b/mayan/apps/ocr/lang/eng.py index c402bba9f9..29dc3384e8 100644 --- a/mayan/apps/ocr/lang/eng.py +++ b/mayan/apps/ocr/lang/eng.py @@ -12,7 +12,6 @@ class LanguageBackend(BackendBase): TOO_MANY_VOWELS = re.compile('[aeiou]{3}', re.I) TOO_MANY_CONSONANTS = re.compile('[bcdfghjklmnpqrstvwxyz]{5}', re.I) - ALL_ALPHA = re.compile('^[a-z]+$', re.I) SINGLE_LETTER_WORDS = re.compile('^[ai]$', re.I) # (L) If a string is longer than 20 characters, it is garbage diff --git a/mayan/apps/ocr/lang/fra.py b/mayan/apps/ocr/lang/fra.py index d4bff61c96..937551bc9c 100644 --- a/mayan/apps/ocr/lang/fra.py +++ b/mayan/apps/ocr/lang/fra.py @@ -13,7 +13,6 @@ class LanguageBackend(BackendBase): TOO_MANY_VOWELS = re.compile('[aáeéiíoóuúü]{3}', re.I) TOO_MANY_CONSONANTS = re.compile('[bcdfghjklmnñpqrstvwxyz]{5}', re.I) - ALL_ALPHA = re.compile('^[a-z]+$', re.I) SINGLE_LETTER_WORDS = re.compile('^[aeoóuy]$', re.I) #(L) If a string is longer than 20 characters, it is garbage diff --git a/mayan/apps/ocr/lang/rus.py b/mayan/apps/ocr/lang/rus.py index 28b8644062..05ce0e1ab1 100644 --- a/mayan/apps/ocr/lang/rus.py +++ b/mayan/apps/ocr/lang/rus.py @@ -13,7 +13,6 @@ class LanguageBackend(BackendBase): TOO_MANY_VOWELS = re.compile('[ёуеыаоэяию]{3}', re.I) TOO_MANY_CONSONANTS = re.compile('[йцкнгшщзхъфвпрлджчсмтьб{5}', re.I) - ALL_ALPHA = re.compile('^[ёйцукенгшщзхъфывапролджэячсмитьбю]+$', re.I) SINGLE_LETTER_WORDS = re.compile('^[уквояси]$', re.I) # (L) If a string is longer than 25 characters, it is garbage diff --git a/mayan/apps/ocr/lang/spa.py b/mayan/apps/ocr/lang/spa.py index 677aed73f6..eb4d9ead45 100644 --- a/mayan/apps/ocr/lang/spa.py +++ b/mayan/apps/ocr/lang/spa.py @@ -13,7 +13,6 @@ class LanguageBackend(BackendBase): TOO_MANY_VOWELS = re.compile('[aáeéiíoóuúü]{3}', re.I) TOO_MANY_CONSONANTS = re.compile('[bcdfghjklmnñpqrstvwxyz]{5}', re.I) - ALL_ALPHA = re.compile('^[a-z]+$', re.I) SINGLE_LETTER_WORDS = re.compile('^[aeoóuy]$', re.I) # (L) If a string is longer than 20 characters, it is garbage