florisboard icon indicating copy to clipboard operation
florisboard copied to clipboard

Emoji suggestion

Open heiwiper opened this issue 5 years ago • 9 comments

Feature description:

The user should get a suggestion of emojis after typing a special character followed by a word that matches the emoji he wants suggested.

Example:

User types :cat The suggestion bar shows 😺😸😹😻🐈...etc

Here are three screenshots as an example: The first screenshot is taken from the Element app, it uses many keywords for each emoji. Screenshot_20201201-224607783 (1)

The second screenshot is taken from the Discord app, it uses a single word or a sequence separated by - as a keyword for each emoji. Screenshot_20201201-225412880 (1)

The third screenshot is taken while using AnySoftKeyboard. Screenshot_20201201-230918703

heiwiper avatar Dec 01 '20 22:12 heiwiper

Thanks for your proposal. This is a really cool idea and I'll definitely look at it when reworking the whole media feature stack!

patrickgold avatar Dec 02 '20 15:12 patrickgold

In android, i only knew it via Telegram (messenger) and Rocketchat app. On web, i know it on gitlab, rocketchat and github. i never really thought that this would be an existing suggestion. suuuper cool that somebody has already suggested that. nice

P.S.: in ur third screenshot @ author - i guess that the emoji suggestions based on :word: syntax are coming via github site - the keyboard is just showing usual suggestions via word i.e. ignoring the colon.

PPS: OT: also, which browser is that?? i soo miss having omni/address bar at the bottom - the 3rd screenshot reminded me of that.

goyalyashpal avatar Feb 14 '21 16:02 goyalyashpal

Glad to know other people are interested in that feature too! Yes you were right about the third screenshot but what I really meant was the top bar of the keyboard which I was using there and which I mentioned its name, I thought it would help to put that since it's open source too.

EDIT: I actually just noticed what you mentioned, I think it was confusing to take a screenshot with both tag methods.

EDIT 2: sorry I just remembered (haven't used that keyboard in a while), that keyboard actually take the ':' as input to start suggesting emojis, it wouldn't suggest both words and emojis at once.

OT: it's the new Firefox browser which was released last year.

heiwiper avatar Feb 14 '21 17:02 heiwiper

To confirm: does anysoft insert the emoji in the text field on insertion of second colon? test word (technically called emoji codes): :cat: or :smile: should work .

If yes, then it is same thing as we are suggesting.
If not, then it is just showing the usual text based suggestions (in the above case, for the keyword "cat")

Edit:
ohhh, okay, u were saying just for showing emoji suggestions. I am saying mainly for emoji auto-insertion, i.e. when it matches specific emoji code. I guess this will be screenshot 2 (discord) in ur example (and obv, github etc that i already mentioned above). Either/both can be implemented depending on the devs will, ease of implementation, and code liability associated.

Edit2: (reply to edit 1) nah, it's fine. actually, as we just saw that it demanded to clarify the differences between emoji suggestion and emoji auto insertion

Edit3: (reply to edit 2) my edit1 already addresses this, ~at least partially~ ! doesn't it?!

goyalyashpal avatar Feb 14 '21 17:02 goyalyashpal

From @thedjdoorn in #1229

I found a good resource for emoji keywords: https://github.com/muan/emojilib

This information may be useful, so I didn't want it to be missed.

tsiflimagas avatar Feb 20 '22 16:02 tsiflimagas

Thanks @tsiflimagas for linking the resource! In the last couple days I actually build my own emoji library for FlorisBoard, which produces an emoji mapping file with a name and multiple keywords for each emoji directly from the official Unicode CLDR repo (Common Locale Data Repository): https://github.com/florisboard/emojicon

The problem is that I cannot pack the generated emoji names and keywords for each language into the APK, which would be ~50MB extra. In this case even compressing doesn't help, I need to look into making this modular. As soon as I have figured this part out I can add emoji suggestions with no problem. Emoji suggestions weren't planned though for the preference rework, so it will probably have to wait until after word suggestions (or I could include only English for now, which would be ~250kB)

patrickgold avatar Feb 20 '22 16:02 patrickgold

Thanks @tsiflimagas for linking the resource! In the last couple days I actually build my own emoji library for FlorisBoard, which produces an emoji mapping file with a name and multiple keywords for each emoji directly from the official Unicode CLDR repo (Common Locale Data Repository): https://github.com/florisboard/emojicon

The problem is that I cannot pack the generated emoji names and keywords for each language into the APK, which would be ~50MB extra. In this case even compressing doesn't help, I need to look into making this modular. As soon as I have figured this part out I can add emoji suggestions with no problem. Emoji suggestions weren't planned though for the preference rework, so it will probably have to wait until after word suggestions (or I could include only English for now, which would be ~250kB)

I think the English is enough for Emoji suggestions because each emojis have a different long name than English one for example LOL in my native language is پێکەنین بە دەنگی بەرز that's too long right 😅

GoRaN9O avatar Feb 20 '22 19:02 GoRaN9O

Glad to see this is being worked on, this is the one feature that's had me sticking to proprietary keyboards

yasscaleb avatar Apr 08 '22 13:04 yasscaleb

or I could include only English for now, which would be ~250kB

I'd like to second that. As a none native English speaker, I am used to emojis being found by using their English names.

FL337 avatar Jun 25 '22 17:06 FL337