feat: Update to unicode v16.0

This commit is contained in:
jawira 2024-09-20 09:31:51 +02:00
parent c618556427
commit 71590696f6
7 changed files with 74 additions and 28 deletions

33
.github/workflows/qa.yaml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Tests
on:
pull_request:
push:
branches:
- master
jobs:
qa:
strategy:
matrix:
php: [ '7.3','7.4','8.0','8.1','8.2','8.3' ]
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl
coverage: xdebug
tools: composer:v2
- uses: actions/checkout@v3
- name: Install dependencies
run: composer install --no-interaction
- name: qa target
run: vendor/bin/phing setup qa

View File

@ -1,6 +1,6 @@
# Emoji catalog 📔
Get access to +3600 emojis as class constants.
Get access to +3700 emojis as class constants.
Features:
@ -34,8 +34,8 @@ class constants:
## How to install
```
$ composer require jawira/emoji-catalog
```console
composer require jawira/emoji-catalog
```
## Emoji sequences

View File

@ -2,7 +2,7 @@
<project name="jawira/emoji-catalog" default="help" phingVersion="3">
<property name="emoji.source" value="https://unicode.org/Public/emoji/15.1/emoji-test.txt"/>
<property name="emoji.source" value="https://unicode.org/Public/emoji/16.0/emoji-test.txt"/>
<target name="setup" description="Prepare project for dev" depends="composer:install"/>

View File

@ -1,6 +1,6 @@
{
"name": "jawira/emoji-catalog",
"description": "Get access to +3600 emojis as class constants",
"description": "Get access to +3700 emojis as class constants",
"license": "MIT",
"type": "library",
"keywords": [
@ -15,7 +15,7 @@
"authors": [
{
"name": "Jawira Portugal",
"email": "dev@tugal.be"
"homepage": "https://jawira.com/"
}
],
"require-dev": {

View File

@ -61,6 +61,7 @@ This list contains all the _emojis_ from `\Jawira\EmojiCatalog\Emoji`.
| sleepy face | 😪 | 1F62A | SLEEPY_FACE |
| drooling face | 🤤 | 1F924 | DROOLING_FACE |
| sleeping face | 😴 | 1F634 | SLEEPING_FACE |
| face with bags under eyes | 🫩 | 1FAE9 | FACE_WITH_BAGS_UNDER_EYES |
| face with medical mask | 😷 | 1F637 | FACE_WITH_MEDICAL_MASK |
| face with thermometer | 🤒 | 1F912 | FACE_WITH_THERMOMETER |
| face with head-bandage | 🤕 | 1F915 | FACE_WITH_HEAD_BANDAGE |
@ -1356,12 +1357,12 @@ This list contains all the _emojis_ from `\Jawira\EmojiCatalog\Emoji`.
| Mrs. Claus: medium skin tone | 🤶🏽 | 1F936 1F3FD | MRS_CLAUS_MEDIUM_SKIN_TONE |
| Mrs. Claus: medium-dark skin tone | 🤶🏾 | 1F936 1F3FE | MRS_CLAUS_MEDIUM_DARK_SKIN_TONE |
| Mrs. Claus: dark skin tone | 🤶🏿 | 1F936 1F3FF | MRS_CLAUS_DARK_SKIN_TONE |
| mx claus | 🧑‍🎄 | 1F9D1 200D 1F384 | MX_CLAUS |
| mx claus: light skin tone | 🧑🏻‍🎄 | 1F9D1 1F3FB 200D 1F384 | MX_CLAUS_LIGHT_SKIN_TONE |
| mx claus: medium-light skin tone | 🧑🏼‍🎄 | 1F9D1 1F3FC 200D 1F384 | MX_CLAUS_MEDIUM_LIGHT_SKIN_TONE |
| mx claus: medium skin tone | 🧑🏽‍🎄 | 1F9D1 1F3FD 200D 1F384 | MX_CLAUS_MEDIUM_SKIN_TONE |
| mx claus: medium-dark skin tone | 🧑🏾‍🎄 | 1F9D1 1F3FE 200D 1F384 | MX_CLAUS_MEDIUM_DARK_SKIN_TONE |
| mx claus: dark skin tone | 🧑🏿‍🎄 | 1F9D1 1F3FF 200D 1F384 | MX_CLAUS_DARK_SKIN_TONE |
| Mx Claus | 🧑‍🎄 | 1F9D1 200D 1F384 | MX_CLAUS |
| Mx Claus: light skin tone | 🧑🏻‍🎄 | 1F9D1 1F3FB 200D 1F384 | MX_CLAUS_LIGHT_SKIN_TONE |
| Mx Claus: medium-light skin tone | 🧑🏼‍🎄 | 1F9D1 1F3FC 200D 1F384 | MX_CLAUS_MEDIUM_LIGHT_SKIN_TONE |
| Mx Claus: medium skin tone | 🧑🏽‍🎄 | 1F9D1 1F3FD 200D 1F384 | MX_CLAUS_MEDIUM_SKIN_TONE |
| Mx Claus: medium-dark skin tone | 🧑🏾‍🎄 | 1F9D1 1F3FE 200D 1F384 | MX_CLAUS_MEDIUM_DARK_SKIN_TONE |
| Mx Claus: dark skin tone | 🧑🏿‍🎄 | 1F9D1 1F3FF 200D 1F384 | MX_CLAUS_DARK_SKIN_TONE |
| superhero | 🦸 | 1F9B8 | SUPERHERO |
| superhero: light skin tone | 🦸🏻 | 1F9B8 1F3FB | SUPERHERO_LIGHT_SKIN_TONE |
| superhero: medium-light skin tone | 🦸🏼 | 1F9B8 1F3FC | SUPERHERO_MEDIUM_LIGHT_SKIN_TONE |
@ -2432,6 +2433,7 @@ This list contains all the _emojis_ from `\Jawira\EmojiCatalog\Emoji`.
| family: adult, child | 🧑‍🧒 | 1F9D1 200D 1F9D2 | FAMILY_ADULT_CHILD |
| family: adult, child, child | 🧑‍🧒‍🧒 | 1F9D1 200D 1F9D2 200D 1F9D2 | FAMILY_ADULT_CHILD_CHILD |
| footprints | 👣 | 1F463 | FOOTPRINTS |
| fingerprint | 🫆 | 1FAC6 | FINGERPRINT |
| monkey face | 🐵 | 1F435 | MONKEY_FACE |
| monkey | 🐒 | 1F412 | MONKEY |
| gorilla | 🦍 | 1F98D | GORILLA |
@ -2541,6 +2543,11 @@ This list contains all the _emojis_ from `\Jawira\EmojiCatalog\Emoji`.
| spiral shell | 🐚 | 1F41A | SPIRAL_SHELL |
| coral | 🪸 | 1FAB8 | CORAL |
| jellyfish | 🪼 | 1FABC | JELLYFISH |
| crab | 🦀 | 1F980 | CRAB |
| lobster | 🦞 | 1F99E | LOBSTER |
| shrimp | 🦐 | 1F990 | SHRIMP |
| squid | 🦑 | 1F991 | SQUID |
| oyster | 🦪 | 1F9AA | OYSTER |
| snail | 🐌 | 1F40C | SNAIL |
| butterfly | 🦋 | 1F98B | BUTTERFLY |
| bug | 🐛 | 1F41B | BUG |
@ -2585,6 +2592,7 @@ This list contains all the _emojis_ from `\Jawira\EmojiCatalog\Emoji`.
| empty nest | 🪹 | 1FAB9 | EMPTY_NEST |
| nest with eggs | 🪺 | 1FABA | NEST_WITH_EGGS |
| mushroom | 🍄 | 1F344 | MUSHROOM |
| leafless tree | 🪾 | 1FABE | LEAFLESS_TREE |
| grapes | 🍇 | 1F347 | GRAPES |
| melon | 🍈 | 1F348 | MELON |
| watermelon | 🍉 | 1F349 | WATERMELON |
@ -2623,6 +2631,7 @@ This list contains all the _emojis_ from `\Jawira\EmojiCatalog\Emoji`.
| ginger root | 🫚 | 1FADA | GINGER_ROOT |
| pea pod | 🫛 | 1FADB | PEA_POD |
| brown mushroom | 🍄‍🟫 | 1F344 200D 1F7EB | BROWN_MUSHROOM |
| root vegetable | 🫜 | 1FADC | ROOT_VEGETABLE |
| bread | 🍞 | 1F35E | BREAD |
| croissant | 🥐 | 1F950 | CROISSANT |
| baguette bread | 🥖 | 1F956 | BAGUETTE_BREAD |
@ -2674,11 +2683,6 @@ This list contains all the _emojis_ from `\Jawira\EmojiCatalog\Emoji`.
| dumpling | 🥟 | 1F95F | DUMPLING |
| fortune cookie | 🥠 | 1F960 | FORTUNE_COOKIE |
| takeout box | 🥡 | 1F961 | TAKEOUT_BOX |
| crab | 🦀 | 1F980 | CRAB |
| lobster | 🦞 | 1F99E | LOBSTER |
| shrimp | 🦐 | 1F990 | SHRIMP |
| squid | 🦑 | 1F991 | SQUID |
| oyster | 🦪 | 1F9AA | OYSTER |
| soft ice cream | 🍦 | 1F366 | SOFT_ICE_CREAM |
| shaved ice | 🍧 | 1F367 | SHAVED_ICE |
| ice cream | 🍨 | 1F368 | ICE_CREAM |
@ -3099,6 +3103,7 @@ This list contains all the _emojis_ from `\Jawira\EmojiCatalog\Emoji`.
| long drum | 🪘 | 1FA98 | LONG_DRUM |
| maracas | 🪇 | 1FA87 | MARACAS |
| flute | 🪈 | 1FA88 | FLUTE |
| harp | 🪉 | 1FA89 | HARP |
| mobile phone | 📱 | 1F4F1 | MOBILE_PHONE |
| mobile phone with arrow | 📲 | 1F4F2 | MOBILE_PHONE_WITH_ARROW |
| telephone | ☎️ | 260E FE0F | TELEPHONE |
@ -3237,6 +3242,7 @@ This list contains all the _emojis_ from `\Jawira\EmojiCatalog\Emoji`.
| toolbox | 🧰 | 1F9F0 | TOOLBOX |
| magnet | 🧲 | 1F9F2 | MAGNET |
| ladder | 🪜 | 1FA9C | LADDER |
| shovel | 🪏 | 1FA8F | SHOVEL |
| alembic | ⚗️ | 2697 FE0F | ALEMBIC |
| test tube | 🧪 | 1F9EA | TEST_TUBE |
| petri dish | 🧫 | 1F9EB | PETRI_DISH |
@ -3422,6 +3428,7 @@ This list contains all the _emojis_ from `\Jawira\EmojiCatalog\Emoji`.
| copyright | ©️ | 00A9 FE0F | COPYRIGHT |
| registered | ®️ | 00AE FE0F | REGISTERED |
| trade mark | ™️ | 2122 FE0F | TRADE_MARK |
| splatter | 🫟 | 1FADF | SPLATTER |
| keycap: # | #⃣ | 0023 FE0F 20E3 | KEYCAP_NUMBER |
| keycap: * | *️⃣ | 002A FE0F 20E3 | KEYCAP_ASTERISK |
| keycap: 0 | 0⃣ | 0030 FE0F 20E3 | KEYCAP_0 |
@ -3567,6 +3574,7 @@ This list contains all the _emojis_ from `\Jawira\EmojiCatalog\Emoji`.
| flag: China | 🇨🇳 | 1F1E8 1F1F3 | FLAG_CHINA |
| flag: Colombia | 🇨🇴 | 1F1E8 1F1F4 | FLAG_COLOMBIA |
| flag: Clipperton Island | 🇨🇵 | 1F1E8 1F1F5 | FLAG_CLIPPERTON_ISLAND |
| flag: Sark | 🇨🇶 | 1F1E8 1F1F6 | FLAG_SARK |
| flag: Costa Rica | 🇨🇷 | 1F1E8 1F1F7 | FLAG_COSTA_RICA |
| flag: Cuba | 🇨🇺 | 1F1E8 1F1FA | FLAG_CUBA |
| flag: Cape Verde | 🇨🇻 | 1F1E8 1F1FB | FLAG_CAPE_VERDE |

View File

@ -66,6 +66,7 @@ const PENSIVE_FACE = '😔';
const SLEEPY_FACE = '😪';
const DROOLING_FACE = '🤤';
const SLEEPING_FACE = '😴';
const FACE_WITH_BAGS_UNDER_EYES = '🫩';
const FACE_WITH_MEDICAL_MASK = '😷';
const FACE_WITH_THERMOMETER = '🤒';
const FACE_WITH_HEAD_BANDAGE = '🤕';
@ -2402,7 +2403,6 @@ const COUPLE_WITH_HEART_WOMAN_WOMAN_DARK_SKIN_TONE_MEDIUM_LIGHT_SKIN_TONE = '
const COUPLE_WITH_HEART_WOMAN_WOMAN_DARK_SKIN_TONE_MEDIUM_SKIN_TONE = '👩🏿‍❤️‍👩🏽';
const COUPLE_WITH_HEART_WOMAN_WOMAN_DARK_SKIN_TONE_MEDIUM_DARK_SKIN_TONE = '👩🏿‍❤️‍👩🏾';
const COUPLE_WITH_HEART_WOMAN_WOMAN_DARK_SKIN_TONE = '👩🏿‍❤️‍👩🏿';
const FAMILY = '👪';
const FAMILY_MAN_WOMAN_BOY = '👨‍👩‍👦';
const FAMILY_MAN_WOMAN_GIRL = '👨‍👩‍👧';
const FAMILY_MAN_WOMAN_GIRL_BOY = '👨‍👩‍👧‍👦';
@ -2432,11 +2432,13 @@ const SPEAKING_HEAD = '🗣️';
const BUST_IN_SILHOUETTE = '👤';
const BUSTS_IN_SILHOUETTE = '👥';
const PEOPLE_HUGGING = '🫂';
const FAMILY = '👪';
const FAMILY_ADULT_ADULT_CHILD = '🧑‍🧑‍🧒';
const FAMILY_ADULT_ADULT_CHILD_CHILD = '🧑‍🧑‍🧒‍🧒';
const FAMILY_ADULT_CHILD = '🧑‍🧒';
const FAMILY_ADULT_CHILD_CHILD = '🧑‍🧒‍🧒';
const FOOTPRINTS = '👣';
const FINGERPRINT = '🫆';
const MONKEY_FACE = '🐵';
const MONKEY = '🐒';
const GORILLA = '🦍';
@ -2546,6 +2548,11 @@ const OCTOPUS = '🐙';
const SPIRAL_SHELL = '🐚';
const CORAL = '🪸';
const JELLYFISH = '🪼';
const CRAB = '🦀';
const LOBSTER = '🦞';
const SHRIMP = '🦐';
const SQUID = '🦑';
const OYSTER = '🦪';
const SNAIL = '🐌';
const BUTTERFLY = '🦋';
const BUG = '🐛';
@ -2590,6 +2597,7 @@ const LEAF_FLUTTERING_IN_WIND = '🍃';
const EMPTY_NEST = '🪹';
const NEST_WITH_EGGS = '🪺';
const MUSHROOM = '🍄';
const LEAFLESS_TREE = '🪾';
const GRAPES = '🍇';
const MELON = '🍈';
const WATERMELON = '🍉';
@ -2628,6 +2636,7 @@ const CHESTNUT = '🌰';
const GINGER_ROOT = '🫚';
const PEA_POD = '🫛';
const BROWN_MUSHROOM = '🍄‍🟫';
const ROOT_VEGETABLE = '🫜';
const BREAD = '🍞';
const CROISSANT = '🥐';
const BAGUETTE_BREAD = '🥖';
@ -2679,11 +2688,6 @@ const DANGO = '🍡';
const DUMPLING = '🥟';
const FORTUNE_COOKIE = '🥠';
const TAKEOUT_BOX = '🥡';
const CRAB = '🦀';
const LOBSTER = '🦞';
const SHRIMP = '🦐';
const SQUID = '🦑';
const OYSTER = '🦪';
const SOFT_ICE_CREAM = '🍦';
const SHAVED_ICE = '🍧';
const ICE_CREAM = '🍨';
@ -3104,6 +3108,7 @@ const DRUM = '🥁';
const LONG_DRUM = '🪘';
const MARACAS = '🪇';
const FLUTE = '🪈';
const HARP = '🪉';
const MOBILE_PHONE = '📱';
const MOBILE_PHONE_WITH_ARROW = '📲';
const TELEPHONE = '☎️';
@ -3242,6 +3247,7 @@ const HOOK = '🪝';
const TOOLBOX = '🧰';
const MAGNET = '🧲';
const LADDER = '🪜';
const SHOVEL = '🪏';
const ALEMBIC = '⚗️';
const TEST_TUBE = '🧪';
const PETRI_DISH = '🧫';
@ -3427,6 +3433,7 @@ const SPARKLE = '❇️';
const COPYRIGHT = '©️';
const REGISTERED = '®️';
const TRADE_MARK = '™️';
const SPLATTER = '🫟';
const KEYCAP_NUMBER = '#️⃣';
const KEYCAP_ASTERISK = '*️⃣';
const KEYCAP_0 = '0⃣';
@ -3572,6 +3579,7 @@ const FLAG_CAMEROON = '🇨🇲';
const FLAG_CHINA = '🇨🇳';
const FLAG_COLOMBIA = '🇨🇴';
const FLAG_CLIPPERTON_ISLAND = '🇨🇵';
const FLAG_SARK = '🇨🇶';
const FLAG_COSTA_RICA = '🇨🇷';
const FLAG_CUBA = '🇨🇺';
const FLAG_CAPE_VERDE = '🇨🇻';
@ -3752,10 +3760,6 @@ const FLAG_TIMOR_LESTE = '🇹🇱';
const FLAG_TURKMENISTAN = '🇹🇲';
const FLAG_TUNISIA = '🇹🇳';
const FLAG_TONGA = '🇹🇴';
/**
* @deprecated Use {@see Emoji::FLAG_TURKIYE}
*/
const FLAG_TURKEY = '🇹🇷';
const FLAG_TURKIYE = '🇹🇷';
const FLAG_TRINIDAD_TOBAGO = '🇹🇹';
const FLAG_TUVALU = '🇹🇻';

View File

@ -18,13 +18,14 @@ function vanilla()
'E4.0' => [Emoji::FLAG_UNITED_NATIONS, "\u{1F1FA}\u{1F1F3}"],
'E13.1' => [Emoji::HEART_ON_FIRE, "\u{2764}\u{FE0F}\u{200D}\u{1F525}"],
'E15.0' => [Emoji::PINK_HEART, "\u{1FA77}"],
'E16.0' => [Emoji::HARP, "\u{1FA89}"],
];
foreach ($provider as $key => $testCase) {
if ($testCase[0] !== $testCase[1]) {
throw new Exception("Test '$key' failed!");
}
echo $testCase[0];
echo "OK $testCase[0] \n";
}
$count = count($provider);
echo PHP_EOL, "All $count tests ok!", PHP_EOL;