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
Example code on FAQ is wrong / -FE0F ignored in URL #404
Comments
@Joshix-1 Many thanks for reporting! |
The same is the case for I would say the issue is with the names of these files and not with the example code. |
I used the following python script to check for more emojis with the same issue: #!/user/bin/env python3
from emoji import EMOJI_DATA
from pathlib import Path
for emoji in EMOJI_DATA:
emoji_code = "-".join(f"{ord(c):x}" for c in emoji).upper()
path = Path(f"{emoji_code}.svg")
if not path.is_file():
if emoji_code.endswith("-FE0F"):
path2 = Path(f"{emoji_code.removesuffix('-FE0F')}.svg")
if path2.is_file():
print(f"{emoji}: ", path2, "exists instead of", path)
continue
# print(f"{emoji}: ", path, "doesn't exist") I found more files with the same issue:
|
I just saw at stackoverflow: The unicode value U+FE0F is called a variation selector
|
https://emojipedia.org/variation-selector-16/
If I interpret that correctly -FE0F is required. Without it it is just a character and not an emoji. ☯ (character) On https://emojipedia.org/emoji/%E2%98%AF/ it says the emoji needs both chars So I don't think that the "FE0F" can be removed |
Same representation after posted (GitHub embedding an image https://github.githubassets.com/images/icons/emoji/unicode/262f.png): GitHub doesn't care about the FE0F, but I don't think that is correct. |
Github even removes the fe0f for longer emoji sequences: OpenMoji has it with -FE0F: https://raw.githubusercontent.com/hfg-gmuend/openmoji/master/color/72x72/1F64B-1F3FB-200D-2642-FE0F.png The emoji on emojipedia: https://emojipedia.org/man-raising-hand-light-skin-tone/ (just chose a random longer emoji that ends with FE0F) |
@Joshix-1 : you can have a look at #405.
yep, it is required for local emoji usage, but it's not required for the two sequence string when downloading from |
If I look at https://github.com/hfg-gmuend/openmoji/releases/download/14.0.0/openmoji-font.zip That seems like another bug. |
Python-Code from https://openmoji.org/faq/
generates for https://emojipedia.org/emoji/%E2%80%BC/ (‼️ ) 203C-FE0F.
That is correct. (see the emojipedia link)
But https://raw.githubusercontent.com/hfg-gmuend/openmoji/master/color/72x72/203C-FE0F.png is not found.
The image instead is on https://raw.githubusercontent.com/hfg-gmuend/openmoji/master/color/72x72/203C.png
The -FE0F is missing from the URL.
https://emojipedia.org/variation-selector-16/ seems to state that it is mandatory for the Emoji representation.
The text was updated successfully, but these errors were encountered: