Configurable ASCII-style emojis

AI-generated summary

A discussion on configurable ASCII-style emojis in Discourse has started. elberet proposes making the ASCII-smiley to emoji translations configurable in the admin interface, as they have custom translations (e.g. ^^ for :smile:, ^^; for :sweat_smile:) that differ from the defaults. elberet references a previous discussion about adding a pre-processing step to the Vanilla importer to translate emoticons.

elberet envisions this as a customization feature with its own unique UI and sam agrees, but thinks it may be too sophisticated for a site setting.

Benno asks where to find the current translations, and elberet points to the Discourse emoji plugin’s source code and a list of available emojis. The default ASCII shortcuts are defined in the emoji.js.erb file, which would need to be patched locally to customize shortcuts.

Counter suggestion: the ASCII-smiley to emoji translations in Discourse’s emoji plugin should be configurable in the admin interface.

So far, I’ve been dragging around a patch file that gets applied on Discourse updates, because I’m my users are accustomed to stuff like ^^ for :smile:, ^^; for :sweat_smile: and T_T for :sob:, and really don’t like some of the default translations, e.g. :D which should be :laughing: instead of the normal smiley…

Circling back to the discussion from [Paid] Need a Vanilla 2 Import tool:

With this in place, the Vanilla2 importer could just install a translation table that matches the emoticons the Vanilla2 emoji plugin defines instead of converting the posts.

7개의 좋아요

How would the admin interface for this look, sounds like something a bit sophisticated for a site setting.

I like it, but you need to nut out details here.

I see this as a customization feature with its own unique UI, but I’m terrible at building mockups.

I’ll try – no promises though. :wink:

2개의 좋아요

Where can I find which translations are included at the moment?
;), ;-) & :wink: all show :wink: etc.

I’m converting a phpBB board that has a mix of classic ASCII and :code: style emoji that I want to translate to the Discourse emoji.

Named emojis are derived from their Unicode names; see /public/images/emoji/emoji_one for a list of all available emojis.

The default ASCII shortcuts are defined here:
https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/lib/emoji/emoji.js.erb#L101-L125

That’s also the file you would need to patch locally if you wish to customize your shortcuts… at least for now.

4개의 좋아요