Skip to content

Fix image filename lookups for default emoji. #78

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

Merged
merged 1 commit into from
Jul 21, 2015

Conversation

wearhere
Copy link
Contributor

No description provided.

@mislav
Copy link
Contributor

mislav commented Jul 17, 2015

Thanks. To be clear, this normalizes the filenames of default, yellow emoji to not have ".0" suffix, right?

@wearhere
Copy link
Contributor Author

Yup. And when I say "fixes" the lookups, that's cause based on just the base emoji, you'd expect its name to not have any suffix—you wouldn't have any way of knowing that it even could be modified.

(Without modifying the emoji database to hardcode that. I tried running the database regeneration script to see if maybe lookups would work afterward and they didn't seem to… not sure if I regenerated it right.)

@wearhere
Copy link
Contributor Author

This PR does not implement support for the non-default emoji. I've changed the PR name and commit message to be more clear.

@wearhere wearhere changed the title Fix image filename lookups for emoji with skin tone variants. Fix image filename lookups for default emoji. Jul 18, 2015
@wearhere wearhere force-pushed the jeff/fix_skin_tone_emoji branch from 73ab748 to 76ccb20 Compare July 18, 2015 00:12
# When an emoji supports skin-tone modifiers, all variants--including
# the unmodified "base" emoji--are suffixed with a "." + a number:
# 0 for the base, then 1-5 for Fitzpatrick type
# (https://en.wikipedia.org/wiki/Fitzpatrick_scale) 2-6. We remove the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "2-6" mean here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1f44b.1.png corresponds to 👋 in shade Fitzpatrick type II, 1f44b.2.png to Fitzpatrick type III, and so on.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification. Can you make this more explicit so future readers don't get confused like me? Maybe word it like:

Then 1-5 which maps to Fitzpatrick types 2-6 (link)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem. Updated.

"Default emoji" == emoji that can be modified with skin tone modifiers.
@wearhere wearhere force-pushed the jeff/fix_skin_tone_emoji branch from 76ccb20 to 859778c Compare July 21, 2015 19:03
mislav added a commit that referenced this pull request Jul 21, 2015
Fix image filename lookups for default emoji.
@mislav mislav merged commit 677084b into github:master Jul 21, 2015
@mislav
Copy link
Contributor

mislav commented Jul 21, 2015

Thanks!

@wearhere wearhere deleted the jeff/fix_skin_tone_emoji branch July 21, 2015 20:31
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

Successfully merging this pull request may close these issues.

3 participants