gilleswaeber / emoji-keyboard

Emoji Keyboard for Windows, allows to type emojis in any application using an onscreen keyboard.
MIT License
47 stars 4 forks source link

Didn't get how to add/change emoji #6

Closed j2l closed 6 years ago

j2l commented 6 years ago

It's a doc issue or I'm dumb 😄

gilleswaeber commented 6 years ago

This is currently not clearly documented. I will try to improve that in the future.

The support for arbitrarily changing emojis is limited. The wwwassets/scripts/data.js file contains the full layout configuration.

This file is generated by the PHP scripts in the res folder (PHP is used because it doesn't require any additional dependency for these small scripts).

The config.json file defines how the file is generated, see config.schema.json for the exact layout.

The image files (svg) are stored in wwwassets/img. They are copied from the twemoji repo. They are used in function of the defined fallback rules.

Now, concretely:

After that, you have to rebuild the data file, see the README in the res folder.

j2l commented 6 years ago

Thank you! I'll do that tomorrow.