Côte d'Ivoire flag emoji not rendering

🇨🇮
:cote_divoire:
:côte_d_ivoire:
:cote_d_ivoire:


🇨🇮
:cote_divoire:
:côte_d_ivoire:
:cote_d_ivoire:

@joffreyjaffeux looks like after d38acc5df120e6f3a89d04cf746d2fe03534be29 this broke, seems there’s some inconsistency w.r.t. the diacritic in the emoji gem?

dist/emoji_to_name.json:
  "🇨🇮":": "cote_d_ivoire",

dist/groups.json:
      {
        "name": "cote_d_ivoire",
        "tonable": false
      },

dist/aliases.json:
  "cote_d_ivoire": [
    "cote_divoire"
  ],

dist/emojis.json:
  {
    "name": "côte_d_ivoire",
    "code": "1f1e8-1f1ee"
  },

lib/discourse_emojis/constants.rb:
   "cote_d_ivoire" => ["cote_divoire"],

should we add an alias côte_d_ivoirecote_d_ivoire?
(or maybe the version with the ô should be primary? I don’t know what the “correct” primary is here)

or maybe we just don’t handle diacritics in emoji properly

:tonga:: :tonga:
🇹🇷: :türkiye:
:trinidad_tobago:: :trinidad_tobago:

🇹🇴: :tonga:
🇹🇷: :türkiye:
🇹🇹: :trinidad_tobago:

5 Likes