diff --git a/Lib/fontTools/unicodedata/__init__.py b/Lib/fontTools/unicodedata/__init__.py index 0a69dbd44..79462c76d 100644 --- a/Lib/fontTools/unicodedata/__init__.py +++ b/Lib/fontTools/unicodedata/__init__.py @@ -75,7 +75,7 @@ def script_extension(char): >>> script_extension("a") == {'Latn'} True - >>> script_extension(unichr(0x060C)) == {'Arab', 'Syrc', 'Thaa'} + >>> script_extension(unichr(0x060C)) == {'Arab', 'Rohg', 'Syrc', 'Thaa'} True >>> script_extension(unichr(0x10FFFF)) == {'Zzzz'} True diff --git a/Tests/unicodedata_test.py b/Tests/unicodedata_test.py index 96c0f01dd..190576fd4 100644 --- a/Tests/unicodedata_test.py +++ b/Tests/unicodedata_test.py @@ -165,8 +165,9 @@ def test_script_extension(): assert unicodedata.script_extension("\u0660") == {'Arab', 'Thaa'} assert unicodedata.script_extension("\u0964") == { - 'Beng', 'Deva', 'Gran', 'Gujr', 'Guru', 'Knda', 'Mahj', 'Mlym', - 'Orya', 'Sind', 'Sinh', 'Sylo', 'Takr', 'Taml', 'Telu', 'Tirh'} + 'Beng', 'Deva', 'Dogr', 'Gong', 'Gran', 'Gujr', 'Guru', 'Knda', + 'Mahj', 'Mlym', 'Orya', 'Sind', 'Sinh', 'Sylo', 'Takr', 'Taml', + 'Telu', 'Tirh'} def test_script_name(): @@ -200,7 +201,8 @@ def test_block(): assert unicodedata.block("\x00") == "Basic Latin" assert unicodedata.block("\x7F") == "Basic Latin" assert unicodedata.block("\x80") == "Latin-1 Supplement" - assert unicodedata.block("\u1c90") == "No_Block" + assert unicodedata.block("\u1c90") == "Georgian Extended" + assert unicodedata.block("\u0870") == "No_Block" def test_ot_tags_from_script():