Element-web: support optionally automatically converting :P into 馃槢 etc

Created on 10 Nov 2016  路  11Comments  路  Source: vector-im/element-web

translate :P :D :) :| etc to emojis

feature p3

All 11 comments

One of the things I like about Riot is that

scp foo.png host:public_html/

does _not_ get translated into

scp foo.png host :stuck_out_tongue: ublic_html/

Automatically translating the first into the second is something I am definitely _not_ looking forward to. If anything, automatic translation should be either 1.) an opt-in setting, or 2.) undoable.

this can be handled nicely in RTE by offering the emoji as an autocomplete option - which is hiding in https://github.com/vector-im/vector-web/issues/1761#issuecomment-252036883

(closing as dup)

scp foo.png host :stuck_out_tongue: ublic_html/

this is a classic case of shitty regex. we have \s and \b for this kind of cases.

facebook somehow manages to do it...

this comes up fairly regularly as people ask if we can automatically do the substitution... as an option. so reopening this to be the canonical bug for that.

One of the things I like about Riot is that

scp foo.png host:public_html/
does not get translated into

scp foo.png host :stuck_out_tongue: ublic_html/

One way to avoid this could be if the conversion is done only if there's a white before the emoticon. I think that would solve 95% of cases.

We could also request another white after the emoticon, or an EOL.

I'd also like to suggest a "mapping" feature. Most of the emojis are very ugly (at least in Chrome under Linux). Also most (if not all) emoticons are not animated.

So it would be nice if there could be an (optional?) mapping between emoticon code and emoticon URL. Example emoticons: http://www.smiley-paradies.de/animierte-smileys/liebe.html

So if he defined it before, one could write :dance: (or whatever the code is) and riot.im users will see this emoticon: http://www.smiley-paradies.de/smileys/tanzend/tanzend_0014.gif

Mibbit has this: http://web20chat.wdfiles.com/local--files/chat%3Amibbit/mibbit-9.png

So this is done but is slightly buggy but stuff like :) *tab* results in :slightly_smiling_face: and <3 *tab*, :heart: etc. One issue is that the close-ness of the match is not considered, so :) will actually complete to :sweat_smile: before :smile: or :slightly_smiling_face:.

Would be nice to:

  • Map the defaults better (e.g. how hangouts does it)
  • Have a setting to do it automatically (without having to force it using tab)

Should we file a separate issue for that?

@kethinov two separate issues for those would be much appreciated, and a quick description of how hangouts does it would be great

Was this page helpful?
0 / 5 - 0 ratings