Dont treat multicells containing narrow emoji as having emoji presentation

Fixes #8330
This commit is contained in:
Kovid Goyal
2025-02-14 20:37:31 +05:30
parent 5f91fb3792
commit 61edc2aef7
3 changed files with 261 additions and 1 deletions

View File

@@ -319,6 +319,16 @@ def gen_emoji() -> None:
p('\t}')
p('\treturn false;\n}')
p('static inline bool\nis_narrow_emoji(char_type code) {')
p('\tswitch(code) {')
for spec in get_ranges(list(narrow_emoji)):
write_case(spec, p)
p('\t\t\treturn true;')
p('\t\tdefault: return false;')
p('\t}')
p('\treturn false;\n}')
def category_test(
name: str,