microsoft / fluentui-emoji

A collection of familiar, friendly, and modern emoji from Microsoft
MIT License
9.05k stars 503 forks source link

Is there somewhere a mapping from the emoji to grab the right file? #114

Closed DirkBoer closed 1 year ago

DirkBoer commented 1 year ago

I want to replace the emojis in my app to keep them consistent. IOS emojis look pretty outdated nowadays.

I'm thinking about uploading them to Azure Storage under the emoji character + svg.

So I can easily replace my emojis in my code by: storage.example.com/emojis/🥲.svg

Is there anywhere a mapping from the emoji codes to the right folder in this repository?

so I want to map 🥲 to https://github.com/microsoft/fluentui-emoji/blob/main/assets/Smiling%20face%20with%20tear/Flat/smiling_face_with_tear_flat.svg or something similar.

is there any way to map these so I can upload them to my storage? Or any other easier way to go from the emoji character to the flat style svgs?

In the end the greatest way would be to place them somewhere on a CDN.

spencer-nelson commented 1 year ago

There isn't one at the moment. At the base directory for all the emoji is a metadata.json file with that information, though. Note that if you need skin tone information, you'll have to pay attention to that, but if you just write a script to read through the directories and look into the metadata.json file for each, you can create your own mapping.

malte9799 commented 1 year ago

Im currently working on a website and framework to easly use the icons on a website. It's very wip at the moment but you can check out the code to convert icon names into the gh link https://cdn.jsdelivr.net/gh/malte9799/cdn/fluentui-emoji/fluentui-emoji.js