]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
Fix scripts with spaces in them (Ol Chiki)
authorSimon Cozens <simon@simon-cozens.org>
Fri, 12 Jan 2024 11:50:33 +0000 (11:50 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Wed, 1 May 2024 09:07:04 +0000 (10:07 +0100)
tests/test_data_languages.py

index 352563d6d99886d58a046f5ee3c4c0eb579fda22..96b971f7e1bc45605482849666f14f935733907d 100644 (file)
@@ -184,7 +184,8 @@ def test_exemplars_are_in_script(lang_code):
                 char_script = youseedee.ucd_data(ord(char)).get("Script")
                 if char_script == "Common" or char_script == "Inherited":
                     continue
-                if char_script is not None and char_script != script_name:
+                char_script = char_script.replace("_", " ")
+                if char_script != script_name:
                     out_of_script[chars] = char_script
                     break
     assert not out_of_script, (