From d187f1c2178412c49e1311120a2896be571cf203 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 30 Oct 2021 14:16:17 +0200 Subject: ergoarabic: Decompose ≠ symbol, fix tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also slightly refactor the test and add as accepted decomposition. --- lulua/data/layouts/ar-ergoarabic.yaml | 2 +- lulua/test_layout.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lulua') 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 (' ') and not d.startswith (' ') and not d.startswith (' ') and not d.startswith (' '): + if d.split (' ', 1)[0] not in {'', '', '', '', ''}: assert d == '', (char, btn) @pytest.mark.parametrize("layout", defaultLayouts, ids=[l.name for l in defaultLayouts]) -- cgit v1.2.3