Skip to content

Commit 5c7b060

Browse files
hBouananeclaude
andcommitted
style: format normalization.py
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent f68418d commit 5c7b060

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

src/ocrsmith/text/normalization.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,7 @@
2424
TATWEEL = "ـ"
2525

2626
# Tashkeel, Quranic annotation marks and the superscript alef.
27-
_DIACRITICS = re.compile(
28-
"["
29-
"ؐ-ؚ"
30-
"ً-ٟ"
31-
"ٰ"
32-
"ۖ-ۜ"
33-
"۟-ۨ"
34-
"۪-ۭ"
35-
"࣓-ࣿ"
36-
"]"
37-
)
27+
_DIACRITICS = re.compile("[ؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۨ-ۭ࣓-ࣿ]")
3828

3929
_ALEF_VARIANTS = str.maketrans({"أ": "ا", "إ": "ا", "آ": "ا", "ٱ": "ا"})
4030
_YA_VARIANTS = str.maketrans({"ى": "ي"})

0 commit comments

Comments
 (0)