File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ update: ## Update sources
5
5
@composer update
6
6
@curl https://api.github.com/emojis > vendor/github-emojis.json
7
7
@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
8
9
9
10
build : # # Build rules
10
11
@./build.php
Original file line number Diff line number Diff line change @@ -6,11 +6,17 @@ This folder contains the tool to build all transliterator rules.
6
6
7
7
* composer
8
8
* PHP
9
+ * curl
10
+ * make
9
11
10
12
## Update the rules
11
13
12
14
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
+ ```
14
20
15
21
Finally, run the following command:
16
22
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ final class Builder
28
28
29
29
public static function getEmojisCodePoints (): array
30
30
{
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 ' );
32
32
33
33
$ emojisCodePoints = [];
34
34
foreach ($ lines as $ line ) {
You can’t perform that action at this time.
0 commit comments