Skip to content

Commit 33b686f

Browse files
committed
Normalize diacritics in Arabic S2R output.
1 parent b261044 commit 33b686f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scriptshifter/hooks/arabic/arabic_romanizer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from os import path
22
from sys import path as syspath
3+
from unicodedata import normalize as precomp_normalize
34

45
from scriptshifter import APP_ROOT
56
from scriptshifter.exceptions import BREAK
@@ -28,4 +29,7 @@ def s2r_post_config(ctx):
2829
loc_mappings,
2930
loc_exceptional)
3031

32+
# TODO create separate hook.
33+
ctx.dest = precomp_normalize("NFD", ctx.dest)
34+
3135
return BREAK

0 commit comments

Comments
 (0)