mijorus / smile

An emoji picker for linux, with custom tags support and localization. I'll also put some random emojis here πŸ¦πŸΎπŸ¦”πŸ¦‡
https://mijorus.it/projects/smile
GNU General Public License v3.0
237 stars 13 forks source link

Emoji list update #21

Closed acauquil closed 1 year ago

acauquil commented 1 year ago

Emoji list update

Hi,

First of all, thank you for this awesome extension.

WHY

I really missed having some newer emojis tho (🫠 and πŸ«₯ which I use on a daily basis ).

WHAT

I updated emoji_list.py with the up-to-date list from OpenMoji.

HOW

EXTRA NOTES

Cheers !

mijorus commented 1 year ago

Hi @acauquil , thanks for the PR.

I'll take a look at 🫠 and πŸ«₯ later today, but I can't accept this PR as-is, let me explain why.

My code here is dirty, because I have little to no inexperience with GTK but:

The file emoji_list.py should not be modified manually, instead it is generated by precompile/emoji_list/generate_emoji_dict.py; I use openmoji.json as the source, but I noticed that parsing the JSON at sturtup is significantly slower than loading a py dictionary, so I just decided to pre-compile it before hand.

Every modification should be in emoji_list.py, so we could update openmoji.json to the latest version.

acauquil commented 1 year ago

Hi,

I hadn't noticed the compile-time generation of emoji_list.py, I had to make a little script to generate a valid python dict from openmoji.json an honestly, it felt quite wrong. Really happy to hear that !

Would you rather I do it or leave it to you?

mijorus commented 1 year ago

The reason why the two emojis are not present is that with the older gnome runtime they were not rendered properly.

I still haven't figured it out how this runtime->font-rendering thing works, but anyway, it is time for a refresh then!

btw not a big deal, I'll be pushing an update soon

mijorus commented 1 year ago

New emojis incoming:

https://github.com/mijorus/smile/tree/emoji-refresh-11-22

btw I am adding some comments on how this process works

===

About the categories, Idk but I don't think it is a good idea to re-arrange them. Some users might be familiar with them by now

mijorus commented 1 year ago

https://github.com/flathub/it.mijorus.smile/pull/2#event-7727427877