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

Disability Emojis aren't supported yet, but others are #5835

Closed
quetzalliwrites opened this issue Feb 1, 2020 · 14 comments · Fixed by #5842
Closed

Disability Emojis aren't supported yet, but others are #5835

quetzalliwrites opened this issue Feb 1, 2020 · 14 comments · Fixed by #5842
Labels
area: publishing experience issues related to an authors experience publishing. Tags, series, etc.

Comments

@quetzalliwrites
Copy link

quetzalliwrites commented Feb 1, 2020

Describe the bug

Hello :)

I want to use the service dog emoji in my dev to posts, but they are not supported.

Can your team add to a Sprint to support disability emojis too?
To Reproduce

Just try to copy/paste any major disability emoji and you'll get the 3 squares of death.
Screen Shot 2020-02-01 at 11 00 35 AM

Expected behavior

Have disability emojis show up, similar to other emojis that work ok.

Screenshots

screenshot attached!

Desktop (please complete the following information):

  • OS: macOS Mojave
  • Browser: Chrome
  • Version: 79.0.3945.130

Smartphone (please complete the following information):

I don't use this platform on mobile so I haven't tried it there.

@rhymes rhymes added area: publishing experience issues related to an authors experience publishing. Tags, series, etc. tech: ruby labels Feb 2, 2020
@triage-new-issues triage-new-issues bot removed the triage label Feb 2, 2020
@rhymes
Copy link
Contributor

rhymes commented Feb 2, 2020

Thanks for the issue! We'll take your request into consideration and follow up if we decide to tackle this issue.

To our amazing contributors: please wait until we add a help-wanted label to the issue before starting to work on it.

To claim an issue to work on, please leave a comment. If you've claimed the issue and need help, please ping @maestromac or @rhymes or @citizen428 from the DEV team and we will follow up within 3 business days.

For full info on how to contribute, please check out our contributors guide.

@rhymes
Copy link
Contributor

rhymes commented Feb 2, 2020

Hi @alequetzalli, thanks a lot for the issue, I have a question because I'm totally ignorant on the subject: where can I find more information on the emojis you were trying to insert?

Are they part of the newly released batch of emojis by the unicode consortium or something else entirely?

Basically what I'm asking is how to replicate the bug by finding out how you insert the emoji so that we can add more detail to this issue.

Thank you!

@JimmyAustin
Copy link

Dug into this out of curiosity, it looks like the first emoji is guide dog (U+1F9AE), and the second is service dog (U+1F415 U+200D U+1F9BA, which is DOG-ZERO WIDTH JOINER-SAFETYVEST). They are numbers 509 and 510 here: https://unicode.org/emoji/charts/full-emoji-list.html

They seem to have been a part of Unicode V12.

They render fine on Chrome for Windows for me, but not macOS.

@quetzalliwrites
Copy link
Author

quetzalliwrites commented Feb 2, 2020

@rhymes Yes, @JimmyAustin got it! His link gives you the unicodes you need: https://unicode.org/emoji/charts/full-emoji-list.html

In macOS (what I am using), the disability guide dogs and others do not render. All you have to do is try to copy/paste the emojis that Jimmy mentioned. If you don't know how, you can even just look them up on Twitter and copy/paste from there? XD

Screen Shot 2020-02-02 at 7 56 38 AM

As for others still missing...

  • Number 384 person with white cane (U+1F9D1 U+200D U+1F9AF)

  • Number 385 man with white cane (U+1F468 U+200D U+1F9AF)

  • Number 386 woman with white cane (U+1F469 U+200D U+1F9AF)

  • Number 387 person in motorized wheelchair (U+1F9D1 U+200D U+1F9BC)

  • Number 388 man in motorized wheelchair (U+1F468 U+200D U+1F9BC)

  • Number 389 woman in motorized wheelchair (U+1F469 U+200D U+1F9BC)

  • Number 390 person in manual wheelchair (U+1F9D1 U+200D U+1F9BD)

  • Number 391 man in manual wheelchair (U+1F468 U+200D U+1F9BD)

  • Number 392 woman in manual wheelchair (U+1F469 U+200D U+1F9BD)

@rhymes
Copy link
Contributor

rhymes commented Feb 2, 2020

Thank you both @JimmyAustin and @alequetzalli, I definitely noticed it doesn't render on macOS 10.14.6:

Screenshot_2020-02-02 Full Emoji List, v13 0

I can see those in Twitter as you screenshotted:

Screenshot_2020-02-02 Notifications Twitter

One thing I noticed is that I can't find any of those in the "Emoji & Symbols" menu that every macOS app has:

Screenshot 2020-02-02 at 9 16 49 PM

I also tried by enabling "Unicode Hex input" in the keyboard system preferences:

Screenshot 2020-02-02 at 9 26 50 PM

but I couldn't input emojis (it doesn't accept more than 4 chars, I read around you hare supposed to type Option + the hex code), I can only do it with the emoji & symbols window

This makes me think that macOS doesn't fully support recent versions of Unicode

I then started to investigate a bit and this is what I found:

  • if I try to paste the service dog emoji in the console this is what I see:

Screenshot 2020-02-02 at 9 34 12 PM

  • I tried to play with them with Python 3.8 (which has a good support for Unicode) with no avail:
>>> print("\u1F9AE")
ᾚE
>>> print("\N{POODLE}")
🐩
>>> print("\N{DOG}"
... )
🐕
>>> print("\N{DOG}")
🐕
>>> print("\N{ORANGUTAN}")
🦧
>>> print("\N{GUIDE DOG}")
🦮
>>> print("\N{SERVICE DOG}")
  File "<stdin>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-14: unknown Unicode character name
>>> print("\N{WOLF}")
  File "<stdin>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-7: unknown Unicode character name
>>> print("\N{FOX}")
  File "<stdin>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-6: unknown Unicode character name
>>> unicodedata.lookup("CAT FACE")
'🐱'
>>> print("\N{CAT FACE}")
🐱

so nope, Python doesn't support all the recent emojis.

The same using the most popular emoji library:

>>> emoji.emojize(":service_dog:")
'🐕\u200d🦺'
>>> emoji.emojize(":guide_dog:")
'🦮'
>>> emoji.emojize(":poodle:")
'🐩'

Same happens in Ruby with the newer version of the gemoji gem (the one we use to interpret emojis in DEV which was developed by Github):

[8] pry(main)> Emoji.find_by_alias("guide_dog").raw
=> "🦮"
[9] pry(main)> Emoji.find_by_alias("service_dog").raw
=> "🐕‍🦺"
[10] pry(main)> Emoji.find_by_alias("poodle").raw
=> "🐩"

I'm not sure how Twitter does it though but I guess it's a custom parser paired with a custom set of icons, unlike these ones which seem to rely on the rendering capabilities of the operating system like ours.

A thing we could do in the meantime is open an issue to Github's library and see if they can help somehow...

@quetzalliwrites
Copy link
Author

@rhymes thank you for detailed reply! I really appreciate the level of detail you put into researching this for the disabled community. It may seem like a silly thing, but it feels nice to have an emoji that looks like me.

Follow up question...
Why open an issue to GitHub's library? I don't follow. O_O

@citizen428
Copy link
Contributor

@alequetzalli What @rhymes meant was that we use a library called gemoji for rendering emojis on DEV. It was developed by Github, so he suggested potentially taking this feature request upstream.

@citizen428
Copy link
Contributor

I did some digging myself, according to this Apple added Unicode 12 support last fall (iOS 13, macOS Catalina). The ones from your list I tried seem to render fine for me on Catalina:

Screen Shot 2020-02-03 at 10 49 57

@quetzalliwrites
Copy link
Author

@citizen428 I am on macOS Mojave... perhaps Catalina is the first version to support them?!

@citizen428
Copy link
Contributor

@alequetzalli Yes, the article I linked above says that Unicode 12 support was added with Catalina/iOS 13.

@rhymes
Copy link
Contributor

rhymes commented Feb 3, 2020

Thanks @citizen428 for finding that out, I googled "macOS unicode versions" for a bit but I couldn't find a specific page that listed which macOS version supported which Unicode version.

I think on our part the only thing we can do is upgrade gemoji's version to make sure we pick up all the new emojis and keep that updated. I'll send a PR to update this ASAP

If, as we confirmed, the limitation is due to rendering capabilities in the operating system, I don't think opening an issue to gemoji's github will be of any help anyhow.

What do you think @alequetzalli @citizen428 ?

@rhymes
Copy link
Contributor

rhymes commented Feb 3, 2020

Sent a PR to support the emojis server side #5842

@quetzalliwrites
Copy link
Author

@citizen428 Ah! This is so useful. So it sounds like the solution is to upgrade to Catalina... which I hear keeps crashing everyone's systems... so.. yay? 😂

@quetzalliwrites
Copy link
Author

@rhymes that seems like a good solution! thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: publishing experience issues related to an authors experience publishing. Tags, series, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants