_MAC_LANGUAGES has multiple language IDs with the same IETF BCP 47 string: es (6 and 27) and ga (35 and 146).
_WINDOWS_LANGUAGES also: es (0x0C0A and 0x040A) and sms (0x203B and 0x1C3B).
These dicts are reversed into _MAC_LANGUAGE_CODES and _WINDOWS_LANGUAGE_CODES, so the string only refers to one of the two language IDs in each case, when used in findMultilingualName or addMultilingualName.
|
macLang = _MAC_LANGUAGE_CODES.get(language.lower()) |
Perhaps give a warning in these special cases?
_MAC_LANGUAGEShas multiple language IDs with the same IETF BCP 47 string:es(6 and 27) andga(35 and 146)._WINDOWS_LANGUAGESalso:es(0x0C0A and 0x040A) andsms(0x203B and 0x1C3B).These dicts are reversed into
_MAC_LANGUAGE_CODESand_WINDOWS_LANGUAGE_CODES, so the string only refers to one of the two language IDs in each case, when used infindMultilingualNameoraddMultilingualName.fonttools/Lib/fontTools/ttLib/tables/_n_a_m_e.py
Line 473 in 7e374c5
Perhaps give a warning in these special cases?