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

non_qualified incorrectly null for gendered emoji #233

Closed
andersk opened this issue Nov 9, 2023 · 1 comment Β· Fixed by #217
Closed

non_qualified incorrectly null for gendered emoji #233

andersk opened this issue Nov 9, 2023 · 1 comment Β· Fixed by #217

Comments

@andersk
Copy link
Contributor

andersk commented Nov 9, 2023

Ten emoji with multiple U+FE0F codepoints are incorrectly listed with "non_qualified": null, and need to be corrected as follows:

name unified non_qualified
πŸ‹οΈβ€β™€οΈ WOMAN LIFTING WEIGHTS 1F3CB-FE0F-200D-2640-FE0F null β†’ 1F3CB-200D-2640
πŸ‹οΈβ€β™‚οΈ MAN LIFTING WEIGHTS 1F3CB-FE0F-200D-2642-FE0F null β†’ 1F3CB-200D-2642
πŸŒοΈβ€β™€οΈ WOMAN GOLFING 1F3CC-FE0F-200D-2640-FE0F null β†’ 1F3CC-200D-2640
πŸŒοΈβ€β™‚οΈ MAN GOLFING 1F3CC-FE0F-200D-2642-FE0F null β†’ 1F3CC-200D-2642
πŸ³οΈβ€βš§οΈ TRANSGENDER FLAG 1F3F3-FE0F-200D-26A7-FE0F null β†’ 1F3F3-200D-26A7
πŸ‘οΈβ€πŸ—¨οΈ EYE IN SPEECH BUBBLE 1F441-FE0F-200D-1F5E8-FE0F null β†’ 1F441-200D-1F5E8
πŸ•΅οΈβ€β™€οΈ WOMAN DETECTIVE 1F575-FE0F-200D-2640-FE0F null β†’ 1F575-200D-2640
πŸ•΅οΈβ€β™‚οΈ MAN DETECTIVE 1F575-FE0F-200D-2642-FE0F null β†’ 1F575-200D-2642
⛹️‍♀️ WOMAN BOUNCING BALL 26F9-FE0F-200D-2640-FE0F null β†’ 26F9-200D-2640
⛹️‍♂️ MAN BOUNCING BALL 26F9-FE0F-200D-2642-FE0F null β†’ 26F9-200D-2642

This is due to a simple bug in build_map.php that I fixed a year ago:

Please merge this.

@andersk
Copy link
Contributor Author

andersk commented Feb 6, 2024

This now affects 46 emoji in v15.1.0. I’ve updated #217. Can you please review this very easy fix?

andersk added a commit to andersk/emoji-data that referenced this issue Feb 6, 2024
Some fully-qualified emoji have multiple unqualified forms in
emoji-test.txt:

    1F3F3 FE0F 200D 26A7 FE0F                              ; fully-qualified     # πŸ³οΈβ€βš§οΈ E13.0 transgender flag
    1F3F3 200D 26A7 FE0F                                   ; unqualified         # πŸ³β€βš§οΈ E13.0 transgender flag
    1F3F3 FE0F 200D 26A7                                   ; unqualified         # πŸ³οΈβ€βš§ E13.0 transgender flag
    1F3F3 200D 26A7                                        ; unqualified         # πŸ³β€βš§ E13.0 transgender flag

We need to build `$qualified_map` based on the first (fully-qualified)
row for each emoji, not the last one that has an FE0F.

Fixes iamcal#233.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
iamcal pushed a commit that referenced this issue Feb 6, 2024
Some fully-qualified emoji have multiple unqualified forms in
emoji-test.txt:

    1F3F3 FE0F 200D 26A7 FE0F                              ; fully-qualified     # πŸ³οΈβ€βš§οΈ E13.0 transgender flag
    1F3F3 200D 26A7 FE0F                                   ; unqualified         # πŸ³β€βš§οΈ E13.0 transgender flag
    1F3F3 FE0F 200D 26A7                                   ; unqualified         # πŸ³οΈβ€βš§ E13.0 transgender flag
    1F3F3 200D 26A7                                        ; unqualified         # πŸ³β€βš§ E13.0 transgender flag

We need to build `$qualified_map` based on the first (fully-qualified)
row for each emoji, not the last one that has an FE0F.

Fixes #233.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
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 a pull request may close this issue.

1 participant