Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the language of the emoji keywords? #200

Open
Bluey26 opened this issue Sep 14, 2024 · 5 comments
Open

How to change the language of the emoji keywords? #200

Bluey26 opened this issue Sep 14, 2024 · 5 comments

Comments

@Bluey26
Copy link

Bluey26 commented Sep 14, 2024

Hi, i was wondering if there is an option to change the language of the keywords used to search emojis.

By default i think this is english, but i would like to use another language instead. How can i do it?

I am using fuzzel as Wayland selector, and i have achieved a way to show the selector in spanish (desired language):

Opening a new terminal tab and running:

LC_MESSAGES="es_ES.UTF-8" fuzzel

will display the fuzzel selector with spanish language (shows common apps instaled in my system, not emojis).

Since i was wondering where the problem could be (LC_MESSAGES="es_AR.UTF-8" rofimoji does not change the language), i installed another wayland selector and i have encountered the same thing, the selector is shown in spanish too:

LC_MESSAGES="es_ES.UTF-8" wofi --show=drun

wofi was tested in this case.

If there is not such feature as language selection, it would be a good one.

I am using extra/noto-fonts-emoji 1:2.042-1 as my emoji font (OS: Archlinux) and running in Wayland at the moment.

Package version: rofimoji 6.4.0-1

@fdw
Copy link
Owner

fdw commented Sep 14, 2024

Currently, the keywords are only available in English.

I've thought about this problem before, but there was not much (no?) interest, and there's also the size question.

@Bluey26
Copy link
Author

Bluey26 commented Sep 14, 2024

Oh, yes, i was thinking that the translations "scope" would be too big.

I was not sure if this was supported or not, so i decided to ask about it.

You can close the topic if you think its correct to do so, i am happy with english translations, i just need to learn or get used to the names of the emojis.

Thanks a lot for this project, it was suggested to me by another person, seems to work like a charm with fuzzel in wayland 😄

@fdw
Copy link
Owner

fdw commented Sep 15, 2024

As an easy workaround, you can add your own keywords or descriptions with an additional file.

Also, I still have the old branch and looked into it: It's possible to add translated keywords, but the names are only available in English. I don't think I'll add translation as a full-blown feature (unless there is more demand for that 😉), but maybe there is some way to make translated files available. Or a script to generate it yourself?

@Bluey26
Copy link
Author

Bluey26 commented Sep 15, 2024

As an easy workaround, you can add your own keywords or descriptions with an additional file.

That's a good idea!

I just have tried it, i have downloaded emojis_activities.csv and modified 2 keywords, then i ran:

rofimoji -f all emojis_activities.csv

And my word is searchable! This seems to be a good way to allow everybody to have their own keywords, even in their own language.

I even guess this is the way to add more emojis, in case you cannot find one.

I could check them by hand, i dont think i need to translate all of them, but just a few ones.

Thanks again for your answers!

@fdw
Copy link
Owner

fdw commented Sep 15, 2024

You're welcome! 😊

The idea behind custom files is that you can add your own characters (and if you have anything that might be interesting for others, feel free to open a PR). But if you just want to add more keywords, it's even simpler: Say you want a to append "happy" to "🙂". Then you can create a file .local/share/rofimoji/data/emojis_smileys_emotion.additional.csv with the line 🙂 happy. If you use emojis_smileys_emotion in some way, either explicitely or implicitly, happy is added automatically.

More abstractly, for every file you want, rofimoji looks for a <filename>.additional.csv and merges them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants