# Adding OpenMoji as a new emoji set

**URL:** <https://meta.discourse.org/t/adding-openmoji-as-a-new-emoji-set/202568>\
**Category:** Feature\
**Tags:** completed\
**Created:** [September 3, 2021, 8:38pm UTC](https://meta.discourse.org/t/adding-openmoji-as-a-new-emoji-set/202568 "2021-09-03T20:38:20Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)\
**Post date:** [December 11, 2021, 11:52pm UTC](https://meta.discourse.org/t/adding-openmoji-as-a-new-emoji-set/202568/6 "2021-12-11T23:52:19Z")

</div>

I would also really like to see this. It would be nice for Fedora to use an all-open source emoji set.

> [@j.jaffeux](#):
>
> Not really sorry, the current process is parsing unicode website and not designed to add anything manually. Open Emoji is not used on the unicode emoji list, it’s possible it would still be easy to add it but I would have to look at it more to answer this, and at this point I should probably do it myself.

I’m not sure what you mean by the unicode emoji list — since it’s a standard, all of the code-points are the same. And you’ve got a [mapping of the names discourse uses to those](https://github.com/discourse/discourse/blob/main/lib/emoji/db.json). So, as a first pass… something like this?

```plaintext
#!/bin/bash
TARGETDIR="./discourse/public/images/emoji/openmoji"

[[! -f openmoji-72x72-color.zip]] && curl -L -O https://github.com/hfg-gmuend/openmoji/releases/latest/download/openmoji-72x72-color.zip
unzip -u -d openmoji-color openmoji-72x72-color.zip

mkdir -p $TARGETDIR

curl -s https://raw.githubusercontent.com/discourse/discourse/main/lib/emoji/db.json | 
    jq -r '.emojis[] | "\(.code) \(.name)"' |
    while read -r codepoint name; do 
        cp openmoji-color/${codepoint^^}.png ${TARGETDIR}/${name}.png 2>/dev/null || echo "Missing ${name}"
    done

```

---

_[View the full topic](https://meta.discourse.org/t/adding-openmoji-as-a-new-emoji-set/202568)._
