Skip to content

Commit a097fe2

Browse files
committed
Emoji 17.0 charts
1 parent 1399fcc commit a097fe2

File tree

5 files changed

+360
-459
lines changed

5 files changed

+360
-459
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
For ICU versions, see https://github.com/orgs/unicode-org/packages?repo_name=icu
2727
or use vanilla *released* ICU versions like 76.1 which come from Maven Central.
2828
-->
29-
<icu.version>76.1</icu.version>
29+
<icu.version>78.0.1-SNAPSHOT</icu.version>
3030

3131
<!--
3232
For CLDR versions, see https://github.com/orgs/unicode-org/packages?repo_name=cldr
3333
-->
34-
<cldr.version>0.0.0-SNAPSHOT-e1d37acce5</cldr.version>
34+
<cldr.version>0.0.0-SNAPSHOT-2ef784e3a4</cldr.version>
3535

3636

3737
<!-- these two set the JDK version for source and target -->

unicodetools/data/emoji/dev/internal/emoji-ordering-rules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Machine-readable version of the emoji ordering rules for v17. (corresponding to CLDR). -->
1+
<!-- Machine-readable version of the emoji ordering rules for v17.0 (corresponding to CLDR). -->
22
<collation type='emoji'>
33
<cr><![CDATA[
44
# START AUTOGENERATED EMOJI ORDER

unicodetools/src/main/java/org/unicode/tools/emoji/EmojiAnnotations.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
import org.unicode.cldr.util.Annotations.AnnotationSet;
2121
import org.unicode.cldr.util.CLDRFile;
2222
import org.unicode.cldr.util.CldrUtility;
23+
import org.unicode.cldr.util.NameGetter;
24+
import org.unicode.cldr.util.NameType;
2325
import org.unicode.text.utility.Birelation;
2426

2527
public class EmojiAnnotations extends Birelation<String, String> {
@@ -365,7 +367,9 @@ private Status getNameAndAnnotations(
365367
return Status.found;
366368
} else if (Emoji.REGIONAL_INDICATORS.containsAll(s)) {
367369
String countryCode = Emoji.getFlagCode(s);
368-
outShortName.value = cldrFile.getName(CLDRFile.TERRITORY_NAME, countryCode);
370+
NameGetter nameGetter = cldrFile.nameGetter();
371+
outShortName.value =
372+
nameGetter.getNameFromTypeEnumCode(NameType.TERRITORY, countryCode);
369373
keywordsToAppendTo.addAll(Collections.singleton("flag"));
370374
return outShortName.value == null ? Status.missing : Status.found;
371375
} else if (s.contains(Emoji.KEYCAP_MARK_STRING)) {

unicodetools/src/main/java/org/unicode/tools/emoji/ProposalData.java

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,8 @@ public Set<String> getProposals(String source) {
102102
CandidateData.getInstance().getProposal(source),
103103
Collections.emptySet()));
104104
}
105-
if (output.isEmpty()) {
106-
// hack skin color
107-
if (source.contains(SKIN_REPRESENTATIVE)) {
108-
source = source.replaceAll(SKIN_REPRESENTATIVE, "");
109-
Set<String> other = getProposals(source);
110-
if (!other.isEmpty()) {
111-
output.addAll(other);
112-
output.add("L2/14‑173");
113-
}
114-
}
115-
if (output.isEmpty()) { // for debugging
116-
Set<String> foo = CandidateData.getInstance().getProposal(source);
117-
}
105+
if (output.isEmpty()) { // for debugging
106+
Set<String> foo = CandidateData.getInstance().getProposal(source);
118107
}
119108
return output;
120109
}
@@ -171,8 +160,8 @@ public String formatProposalsForHtml(Collection<String> proposals) {
171160

172161
static UnicodeMap<Set<String>> load(StringBuffer header) {
173162
UnicodeMap<Set<String>> builder = new UnicodeMap<>();
174-
Set<String> skinProposals = ImmutableSet.<String>builder().add("L2/14-173").build();
175-
Set<String> genProposals = ImmutableSet.<String>builder().add("L2/16-160").build();
163+
Set<String> skinProposals = ImmutableSet.<String>builder().build();
164+
Set<String> genProposals = ImmutableSet.<String>builder().build();
176165

177166
boolean haveData = false;
178167
for (String line : FileUtilities.in(ProposalData.class, "proposalData.txt")) {

0 commit comments

Comments
 (0)