Element-web: The :train: emoji is actually a tram.

Created on 3 Aug 2018  路  9Comments  路  Source: vector-im/element-web

This caused a lot of disruption when I said I was taking a 馃殝 to the office.

EDIT: The proof is here https://emojipedia.org/tram-car/

Steps to reproduce

  • Type :train: into the composer.

An emoji of a tram (馃殝) shows up next to the text :train:.

Version information

  • Platform: web (in-browser)

For the web app:

  • URL: riot.im/develop
bug p5 cosmetic minor

Most helpful comment

All 9 comments

...

I'm tempted to make a P6 label just for this bug 馃槃

More seriously, I don't know where we get our :word: -> emoji mapping, but Github (as the first example to hand) _also_ thinks that 馃殝 is a :train:. As does Android.

Pretty sure it comes from the shortnames in here: https://github.com/emojione/emojione/blob/v2.2.7/emoji.json
(https://github.com/matrix-org/matrix-react-sdk/pull/2085/files#diff-9c6d157ed970be15913b7569c44ad765)

"tram": {
    "unicode": "1f68a",
    "unicode_alt": "",
    "code_decimal": "🚊",
    "name": "tram",
    "shortname": ":tram:",
    "category": "travel",
    "emoji_order": "1610",
    "aliases": [],
    "aliases_ascii": [],
    "keywords": [
      "transportation",
      "travel",
      "train"
    ]
  },
  "train": {
    "unicode": "1f68b",
    "unicode_alt": "",
    "code_decimal": "🚋",
    "name": "tram car",
    "shortname": ":train:",
    "category": "travel",
    "emoji_order": "1613",
    "aliases": [],
    "aliases_ascii": [],
    "keywords": [
      "transportation",
      "travel",
      "train"
    ]
  },

And :hamburger: stills shows a cheeseburger 馃檲

This is obviously a serious issue, see this.

"One might argue that the compound effect of this blunder could result in tens of dollars of losses across Slack's userbase," Huber wrote.

Please upgrade to p1, thanks 馃憣

I still think about this issue :thinking:

We're taking out emojione (https://github.com/vector-im/riot-web/issues/9281), so this will shortly become a problem for your operating system vendor.

We're taking out emojione (#9281), so this will shortly become a problem for your operating system vendor.

Hold up, the problem was because the mapping of :train: became :tram:. Does removing emojiOne actually fix the mapping issue. Also 99% certain my OS won't be mapping.

Removing emojione does help in that we get to more easily define our own mappings, so I think it would eventually. I'd prefer to keep this closed though until emojione is removed and in front of users though: an issue this small is not really worth the anxiety caused by looking at the issue list, and it is likely more suited as a 30 second PR.

Was this page helpful?
0 / 5 - 0 ratings