Skip to content

Commit 3e5671e

Browse files
[Intl] Get emoji-test.txt from unicode.org
1 parent 4b4e9a8 commit 3e5671e

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Resources/emoji/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ update: ## Update sources
55
@composer update
66
@curl https://api.github.com/emojis > vendor/github-emojis.json
77
@curl https://raw.githubusercontent.com/iamcal/emoji-data/master/emoji.json > vendor/slack-emojis.json
8+
@curl https://unicode.org/Public/emoji/latest/emoji-test.txt > vendor/emoji-test.txt
89

910
build: ## Build rules
1011
@./build.php

Resources/emoji/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ This folder contains the tool to build all transliterator rules.
66

77
* composer
88
* PHP
9+
* curl
10+
* make
911

1012
## Update the rules
1113

1214
To update the rules, you need to update the version of `unicode-org/cldr` in the
13-
`composer.json` file, then run `make update`.
15+
`composer.json` file, then run:
16+
17+
```bash
18+
make update
19+
```
1420

1521
Finally, run the following command:
1622

Resources/emoji/build.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class Builder
2828

2929
public static function getEmojisCodePoints(): array
3030
{
31-
$lines = file(__DIR__.'/vendor/unicode-org/cldr/tools/cldr-code/src/main/resources/org/unicode/cldr/util/data/emoji/emoji-test.txt');
31+
$lines = file(__DIR__.'/vendor/emoji-test.txt');
3232

3333
$emojisCodePoints = [];
3434
foreach ($lines as $line) {

0 commit comments

Comments
 (0)