[Intl] Get emoji-test.txt from unicode.org
MODIFY
Resources/emoji/Makefile
Resources/emoji/Makefile
@@ -5,6 +5,7 @@ update: ## Update sources
@composer update
@curl https://api.github.com/emojis > vendor/github-emojis.json
@curl https://raw.githubusercontent.com/iamcal/emoji-data/master/emoji.json > vendor/slack-emojis.json
+ @curl https://unicode.org/Public/emoji/latest/emoji-test.txt > vendor/emoji-test.txt
build: ## Build rules
@./build.php

MODIFY
Resources/emoji/README.md
Resources/emoji/README.md
@@ -6,11 +6,17 @@ This folder contains the tool to build all transliterator rules.
* composer
* PHP
+* curl
+* make
## Update the rules
To update the rules, you need to update the version of `unicode-org/cldr` in the
-`composer.json` file, then run `make update`.
+`composer.json` file, then run:
+
+```bash
+make update
+```
Finally, run the following command:

MODIFY
Resources/emoji/build.php
Resources/emoji/build.php
@@ -28,7 +28,7 @@ final class Builder
public static function getEmojisCodePoints(): array
{
- $lines = file(__DIR__.'/vendor/unicode-org/cldr/tools/cldr-code/src/main/resources/org/unicode/cldr/util/data/emoji/emoji-test.txt');
+ $lines = file(__DIR__.'/vendor/emoji-test.txt');
$emojisCodePoints = [];
foreach ($lines as $line) {

[Intl] Get emoji-test.txt from unicode.org