Fix non-renderable combining chars causing some text to not be rendered on Linux

The test for non-renderable chars was broken and the variation selectors
were not included in the test. Fixes #4444
This commit is contained in:
Kovid Goyal
2022-01-05 22:33:53 +05:30
parent a574081012
commit e8b19e08fa
4 changed files with 9 additions and 3 deletions

View File

@@ -388,7 +388,7 @@ def gen_ucd() -> None:
category_test(
'is_non_rendered_char', p, 'Cc Cs Cf'.split(),
'Other_Default_Ignorable_Code_Point and soft hyphen',
extra_chars=property_maps['Other_Default_Ignorable_Code_Point'],
extra_chars=property_maps['Other_Default_Ignorable_Code_Point'] | set(range(0xfe00, 0xfe0f + 1)),
ascii_range='false'
)
category_test('is_word_char', p, {c for c in class_maps if c[0] in 'LN'}, 'L and N categories')