# Configurable ASCII-style emojis

**URL:** <https://meta.discourse.org/t/configurable-ascii-style-emojis/19294>\
**Category:** Feature\
**Created:** [2014年八月26日 13:20 UTC](https://meta.discourse.org/t/configurable-ascii-style-emojis/19294 "2014-08-26T13:20:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)\
**Post date:** [2014年八月26日 13:20 UTC](https://meta.discourse.org/t/configurable-ascii-style-emojis/19294/1 "2014-08-26T13:20:47Z")

</div>

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 😄, `^^;` for 😅 and `T_T` for 😭, and really don’t like some of the default translations, e.g. `:D` which should be 😆 instead of the normal smiley…

Circling back to the discussion from [[Paid] Need a Vanilla 2 Import tool](https://meta.discourse.org/t/paid-need-a-vanilla-2-import-tool/14852/39):

> [@\[Paid\] Need a Vanilla 2 Import tool](https://meta.discourse.org/t/paid-need-a-vanilla-2-import-tool/14852/39):
>
> I’m fine with adding a pre-processing step in the [vanilla importer](https://github.com/discourse/discourse/blob/master/script/import_scripts/vanilla.rb) to _translate_ these emoticons to the ones we support if there is a match. PRs are welcome 😉

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.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2014年十月5日 21:40 UTC](https://meta.discourse.org/t/configurable-ascii-style-emojis/19294/2 "2014-10-05T21:40:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)\
**Post date:** [2014年十月5日 22:01 UTC](https://meta.discourse.org/t/configurable-ascii-style-emojis/19294/3 "2014-10-05T22:01:26Z")

</div>

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. 😉

---

<div class="post-metadata">

**Author:** ![Benno](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benno/32/40721_2.png) [@Benno](https://meta.discourse.org/u/Benno)\
**Post date:** [2015年四月15日 12:54 UTC](https://meta.discourse.org/t/configurable-ascii-style-emojis/19294/4 "2015-04-15T12:54:36Z")

</div>

> [@elberet](#):
>
> the ASCII-smiley to emoji translations in Discourse’s emoji plugin

Where can I find which translations are included at the moment?  
`;)`, `;-)` & `:wink:` all show 😉 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.

---

<div class="post-metadata">

**Author:** ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)\
**Post date:** [2015年四月17日 05:20 UTC](https://meta.discourse.org/t/configurable-ascii-style-emojis/19294/5 "2015-04-17T05:20:26Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)\
**Post date:** [2025年十二月4日 11:31 UTC](https://meta.discourse.org/t/configurable-ascii-style-emojis/19294/6 "2025-12-04T11:31:43Z")

</div>


