Skip to content

Update emoji data #8

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

Closed
wants to merge 8 commits into from
Closed

Conversation

jbrowning
Copy link

As a stopgap measure before #7 is resolved, this PR updates the emoji data file to the latest version available from https://github.com/iamcal/emoji-data.

@mroth
Copy link
Owner

mroth commented Jun 21, 2016

@jbrowning thanks for this! As I've seen in the other versions of the libraries there are also some gotchas with new complexities in emoji-land. I'd recommend reviewing:

mroth/emoji_data.rb#2
mroth/emoji_data.rb#4

Perhaps there is a solution where we integrate all of these and fix this upstream as well?

@jbrowning
Copy link
Author

You're welcome! I believe I've already resolved the exmoji equivalent of mroth/emoji_data.rb#4 (see 1dfe0e8 & 076982d). Unless I'm missing something, only remaining complexity you're looking to solve there is support for a default skin variant?

One or all of these emoji #⃣ #️⃣ *⃣ were causing:
== Compilation error on file lib/exmoji/scanner.ex ==
** (Regex.CompileError) nothing to repeat at position 5795
    (elixir) lib/regex.ex:142: Regex.compile!/2
    lib/exmoji/scanner.ex:43: (module)
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
The previous "variant" ID is now considered the default and
non-qualified values have been moved from "uid" to the new
"non_qualified" field.

A result of this is that the "variant_encoding" option to
EmojiChar.render/2 now defaults to false.
It was taking precedence over the conanical family emoji and rendering
as 3 separate emojis instead of the family
@halfdan
Copy link
Collaborator

halfdan commented Apr 1, 2025

@halfdan halfdan closed this Apr 1, 2025
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