diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2021-10-30 14:16:17 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2021-10-30 14:17:36 +0200 |
commit | d187f1c2178412c49e1311120a2896be571cf203 (patch) | |
tree | 0df950a81d29c9f883b76180d810bf3eb11f3a96 | |
parent | 80578dd3fb6bad76980014c6b2dbdacd04b239ea (diff) | |
download | lulua-master.tar.gz lulua-master.tar.bz2 lulua-master.zip |
Also slightly refactor the test and add <nobreak> as accepted decomposition.
-rw-r--r-- | lulua/data/layouts/ar-ergoarabic.yaml | 2 | ||||
-rw-r--r-- | lulua/test_layout.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lulua/data/layouts/ar-ergoarabic.yaml b/lulua/data/layouts/ar-ergoarabic.yaml index a58a8d0..620ead1 100644 --- a/lulua/data/layouts/ar-ergoarabic.yaml +++ b/lulua/data/layouts/ar-ergoarabic.yaml @@ -123,7 +123,7 @@ layout: Br5: "٨" Br4: "٩" Br3: "٠" - Br1: "≠" + Br1: "≠" Cl5: "ڤ" diff --git a/lulua/test_layout.py b/lulua/test_layout.py index 45141ae..8e911da 100644 --- a/lulua/test_layout.py +++ b/lulua/test_layout.py @@ -35,7 +35,7 @@ def test_atomic (layout): for char in text: d = unicodedata.decomposition (char) # allow compat decompositions like … -> ... - if not d.startswith ('<compat> ') and not d.startswith ('<isolated> ') and not d.startswith ('<medial> ') and not d.startswith ('<initial> '): + if d.split (' ', 1)[0] not in {'<compat>', '<isolated>', '<medial>', '<initial>', '<noBreak>'}: assert d == '', (char, btn) @pytest.mark.parametrize("layout", defaultLayouts, ids=[l.name for l in defaultLayouts]) |