From d84e253c0f53b381cfb09dd1bbbac3bbe2f176f9 Mon Sep 17 00:00:00 2001 From: David Corbett Date: Wed, 30 Sep 2026 17:59:36 -0400 Subject: [PATCH] Map `fonupa` variant to UPPH language system (#6299) --- src/gen-tag-table.py | 2 ++ src/hb-ot-tag-table.hh | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/gen-tag-table.py b/src/gen-tag-table.py index 0229ab974..eebb96c54 100755 --- a/src/gen-tag-table.py +++ b/src/gen-tag-table.py @@ -775,6 +775,8 @@ ot.add_language ('und-fonipa', 'IPPH') ot.add_language ('und-fonnapa', 'APPH') +ot.add_language ('und-fonupa', 'UPPH') + ot.add_language ('ga-Latg', 'IRT') ot.add_language ('hy-arevmda', 'HYE') diff --git a/src/hb-ot-tag-table.hh b/src/hb-ot-tag-table.hh index 76c402e64..f122ed27f 100644 --- a/src/hb-ot-tag-table.hh +++ b/src/hb-ot-tag-table.hh @@ -7,7 +7,7 @@ * on files with these headers: * * - * File-Date: 2026-08-08 + * File-Date: 2026-09-17 */ #ifndef HB_OT_TAG_TABLE_HH @@ -1659,6 +1659,13 @@ hb_ot_tags_from_complex_language (const char *lang_str, *count = 1; return true; } + if (subtag_matches (p, limit, "-fonupa", 7)) + { + /* Undetermined; Uralic Phonetic Alphabet */ + tags[0] = HB_TAG('U','P','P','H'); /* Uralic Phonetic Alphabet */ + *count = 1; + return true; + } if (subtag_matches (p, limit, "-geok", 5)) { /* Undetermined; Khutsuri (Asomtavruli and Nuskhuri) */ @@ -3110,6 +3117,8 @@ hb_ot_ambiguous_tag_to_language (hb_tag_t tag) return hb_language_from_string ("tmh", -1); /* Tamashek [macrolanguage] */ case HB_TAG('T','O','D',' '): /* Todo */ return hb_language_from_string ("xwo", -1); /* Written Oirat */ + case HB_TAG('U','P','P','H'): /* Uralic Phonetic Alphabet */ + return hb_language_from_string ("und-fonupa", -1); /* Undetermined; Uralic Phonetic Alphabet */ case HB_TAG('W','D','T',' '): /* Wendat */ return hb_language_from_string ("wdt", -1); /* Wendat */ case HB_TAG('W','Y','N',' '): /* Wyandot */