Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Complete emoji list from Unicode #40

Open
bdevel opened this issue Apr 22, 2022 · 0 comments
Open

Complete emoji list from Unicode #40

bdevel opened this issue Apr 22, 2022 · 0 comments

Comments

@bdevel
Copy link

bdevel commented Apr 22, 2022

Leaving some notes for others who run across missing emojis.

The Unicode organization releases regular updates to their CLDR project which annotates every character and emoji that is published.

This gem would ideally:

  1. Use the standard format released by Unicode
  2. Have a script to pull the latest annotations whenever a new Gem gets built.

Links:

Sample:

{
  "🥸": {
        "default": [
          "disguise",
          "disguised face",
          "face",
          "glasses",
          "incognito",
          "nose"
        ],
        "tts": [
          "disguised face"
        ]
      },
}

It appears the tts property would be most suited for a "name" property.

There are 24 Emoji Unicode blocks with varying ranges but the annotation file seems to have a good select list.

Opening a can of worms, there are additional Unicode blocks worth considering. Example Chess Symbols but I cannot find those annotated by the CLDR project.

However, here is the UnicodeData.txt data file which appears to annotates every character. This might be the best file to use. Sample:

Hex; Description
1F600;GRINNING FACE;So;0;ON;;;;;N;;;;;
1F601;GRINNING FACE WITH SMILING EYES;So;0;ON;;;;;N;;;;;
1F602;FACE WITH TEARS OF JOY;So;0;ON;;;;;N;;;;;
1F603;SMILING FACE WITH OPEN MOUTH;So;0;ON;;;;;N;;;;;
1F604;SMILING FACE WITH OPEN MOUTH AND SMILING EYES;So;0;ON;;;;;N;;;;;
1F605;SMILING FACE WITH OPEN MOUTH AND COLD SWEAT;So;0;ON;;;;;N;;;;;
1F606;SMILING FACE WITH OPEN MOUTH AND TIGHTLY-CLOSED EYES;So;0;ON;;;;;N;;;;;
1F607;SMILING FACE WITH HALO;So;0;ON;;;;;N;;;;;
1F608;SMILING FACE WITH HORNS;So;0;ON;;;;;N;;;;;
1F609;WINKING FACE;So;0;ON;;;;;N;;;;;
1F60A;SMILING FACE WITH SMILING EYES;So;0;ON;;;;;N;;;;;
1F60B;FACE SAVOURING DELICIOUS FOOD;So;0;ON;;;;;N;;;;;
1F60C;RELIEVED FACE;So;0;ON;;;;;N;;;;;
1F60D;SMILING FACE WITH HEART-SHAPED EYES;So;0;ON;;;;;N;;;;;
1F60E;SMILING FACE WITH SUNGLASSES;So;0;ON;;;;;N;;;;;
1F60F;SMIRKING FACE;So;0;ON;;;;;N;;;;;
1F610;NEUTRAL FACE;So;0;ON;;;;;N;;;;;
1F611;EXPRESSIONLESS FACE;So;0;ON;;;;;N;;;;;
1F612;UNAMUSED FACE;So;0;ON;;;;;N;;;;;
1F613;FACE WITH COLD SWEAT;So;0;ON;;;;;N;;;;;
puts [0x1F600].pack('U*')
puts "\u{1F600}"
puts ["1F600".to_i(16)].pack('U*')
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant