-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Mappings are wrong on Apple platform #48
Comments
@Midar This really depends on what version of emojibase is being used, and that iOS/Safari versions. Do you have more information? (We use this all the time on osx with no issues). |
Latest version for everything. Also even happens with Safari Technology Preview. Firefox, OTOH, renders everything correct when a different Emoji font is used. The ☹︎ seems to be universally wrong outside of Firefox, though. |
@Midar Well emojibase-data v5 came out last week (emoji v13 support). Is it that version or v4? There screenshots or anything else? Theres not much I can do to reproduce this on my end. |
Do you know where that happens in the code? I can check their implementation. |
Unfortunately I don't. Let's loop someone in: @t3chguy |
I figured out the |
So riot-web is currently using v4, I will get that updated to see if the mappings change. |
This should fix the emoticons: a39d1a8 (I'll release it later) Need more info for the thumbs up. |
Actually, I found the root problem. So heres the source data for The issue is that the default presentation I'm assuming the |
Yes the project uses the compact dataset |
Ok, I'm gonna do a retro breaking change on v5, so compact will always use emojis: 14d8b97#diff-8128864d03457e2abb445b92204a88feL25 When you update to v5, let me know if this is still an issue. |
@Midar could you re-test on riot.im/develop which should be on emojibase-data@5 and emojibase-regex@4 Thanks |
Hrmm, really can't help more unless I know which emoji hexcode is being rendered, and how, and what the actual dataset for that item looks like. |
Sorry, should have updated here. Riot has had to roll back to emojibase-data@4 due to us not having the time to create an updated build of Twemoji to ship with the app for emoji 13 support. So how the app is now should match the state of this issue when it was created. :( |
This is still an issue using the edit: It seems like the reason this is happening is the unicode samples in the source doc (ex. https://unicode.org/Public/14.0.0/ucd/emoji/emoji-data.txt) for all the This variation selector (https://unicode.org/faq/emoji_dingbats.html#5.1) is meant to indicate that the emoji should be colored rather than black and white. Unfortunately iOS renders this character incorrectly when using some fonts like the Twemoji font in the screenshot above from @ajbura. So emojibase has valid unicode values for the edit2: @ajbura The easiest solution for this is probably to fix the font. In my fork of twemoji-colr I renamed all the assets to include the variant selector (https://github.com/MemeLabs/twemoji-colr/blob/master/hack/rename_glyphs.sh) and everything renders correctly now. |
@slugalisk Thanks for digging into this, I haven't had much time. Since this seems to affect |
@milesj It's not an issue with emojibase at all IMO. The unicode values for The issue the Riot devs and I had was that the font used only the base code point for those emoji so the variant selector was treated as a separate character. On windows it's discarded as nonprintable but on iOS it's rendered with a broken character glyph or an empty space depending on the OS version. |
I have been redirected here from http://github.com/vector-im/riot-web:
It seems the current mappings break Apple platforms:
For example,
:(
is ☹︎, which is not rendered on Apple platforms as an Emoji, while 🙁 is an Emoji.:D
is rendered as 😁, when it is more commonly rendered as 😀 (not really a breakage, just inconsistency).Things like 👍 result in 👍️, which is rendered as a thumb up followed by a white box, while 👍 renders correctly.
Basically, look at the entire list on an iOS or Safari on a mac device, and most of them are broken.
The text was updated successfully, but these errors were encountered: