Emoji-Copy icon indicating copy to clipboard operation
Emoji-Copy copied to clipboard

Feature Request: Add localized tags, so that you can search for Emojis in multiple languages

Open NotoriousNico opened this issue 1 year ago • 2 comments

As of now, it's only possible to search for Emojis in the default System language. But it would be nice to be able to search for Emojis in multiple languages.

For example: My system is set to English, but my native language is German. Depending on in which language I communicate, I'd prefer to be able to search for Emojis in either English or German.

I'm thinking about having a setting that allows us to define a second language.

Environment

  • emoji-copy version(s): 25
  • OS: Ubuntu 24.10

NotoriousNico avatar Oct 31 '24 08:10 NotoriousNico

Hallo, @NotoriousNico! Thank you for opening this issue!!

Yeah, this might be a quite difficult feature to implement. All the emojis are stored in a .db (sqlite) file, which you can found here: ~/.local/share/gnome-shell/extensions/emoji-copy@felipeftn/data/emojis.db. So, you can take a quick seach into the database by running this: sqlite3 ~/.local/share/gnome-shell/extensions/emoji-copy@felipeftn/data/emojis.db; this will allow you to run SQL commands into the emojis database. The table's name is also emojis, so you can do some queries like this:

  • sqlite> SELECT COUNT(*) from emojis;
  • sqlite> SELECT * FROM emojis;
  • ...

What happen is, the emoji's name is stored as a simple string into this sqlite file. So, I don't know how a location or translation would be possible :thinking: Any ideas?

FelipeFTN avatar Nov 04 '24 21:11 FelipeFTN

Hello @FelipeFTN!

And thank you for your reply. I don't know if it helps, but the Emoji Picker Smile offers such a feature:

https://github.com/mijorus/smile/

However, this is a full Flatpak App and the GNOME Extension is complimentary.

NotoriousNico avatar Nov 05 '24 10:11 NotoriousNico