From ac73480d92d18cca3aae40610e2e4e3982080df9 Mon Sep 17 00:00:00 2001 From: Ned Holbrook Date: Tue, 25 Jun 2024 12:42:14 -0700 Subject: [PATCH] Make emoji-ordering-rules.txt an internal data file (#858) --- .../dev/internal/emoji-ordering-rules.txt | 441 ++++++++++++++++++ .../unicode/tools/emoji/GenerateEmoji.java | 9 +- 2 files changed, 445 insertions(+), 5 deletions(-) create mode 100644 unicodetools/data/emoji/dev/internal/emoji-ordering-rules.txt diff --git a/unicodetools/data/emoji/dev/internal/emoji-ordering-rules.txt b/unicodetools/data/emoji/dev/internal/emoji-ordering-rules.txt new file mode 100644 index 000000000..697ba5dd2 --- /dev/null +++ b/unicodetools/data/emoji/dev/internal/emoji-ordering-rules.txt @@ -0,0 +1,441 @@ + + + + \ No newline at end of file diff --git a/unicodetools/src/main/java/org/unicode/tools/emoji/GenerateEmoji.java b/unicodetools/src/main/java/org/unicode/tools/emoji/GenerateEmoji.java index c43e08bd7..3699aa909 100644 --- a/unicodetools/src/main/java/org/unicode/tools/emoji/GenerateEmoji.java +++ b/unicodetools/src/main/java/org/unicode/tools/emoji/GenerateEmoji.java @@ -1520,10 +1520,8 @@ private static void showOrdering( + "The categories are broad and not exclusive: and any character will match multiple categories.

" + "

The emoji modifier sequences are omitted for brevity, " + "because they are simply ordered after their emoji modifier bases. " - + "In the CLDR collation rules, the emoji modifiers cause a secondary difference. See also the machine-readable files: " - + "emoji-ordering.txt" - + " and " - + "emoji-ordering-rules.txt. " + + "In the CLDR collation rules, the emoji modifiers cause a secondary difference. See also the machine-readable file " + + "emoji-ordering.txt. " + "To make suggestions for improvements, please file a " + getCldrTicket("collation", "Emoji ordering suggestions") + ".

\n", @@ -3520,7 +3518,8 @@ static void printCollationOrder() throws IOException { } } try (PrintWriter outText = - FileUtilities.openUTF8Writer(Emoji.CHARTS_DIR, "emoji-ordering-rules.txt")) { + FileUtilities.openUTF8Writer( + GenerateEmojiData.getOutputDir(), "internal/emoji-ordering-rules.txt")) { outText.append( "