We're updating the issue view to help you get more done. 

Provide API access to Emoji data

Description

The emoji data (properties, keywords and short names) are not available in ICU API yet.

Here's a rough draft API (ICU4J):

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 /** * Provide access to the CLDR short name and annotations for emoji characters. */ public class EmojiLocaleData { public EmojiLocaleData(ULocale locale) {… public ULocale getLocale() {… public static final ULocale[] getAvailableULocales() {… /** * Get the CLDR short name aka TTS name for the specified locale */ public String getName(String emojiOrSequence) {… /** * Get the CLDR keywords for the specified locale */ public List<String> getKeywords(String emojiOrSequence) {… }

In addition, I suggest that we add access to the emoji properties for the latest version of Unicode Emoji (currently 4.0), including the full set of emoji characters plus sequences, using the standard property APIs (thus making them available in UnicodeSet, Regex, etc.).

The implementation could just stash a pointer to the RB for the language, then walk the RB when the name or keywords are fetched.

Environment

Status

Assignee

Yoshito Umaoka

Reporter

Mark Davis

tracCc

mark,markus,pedberg

tracCreated

Dec 07, 2016, 8:49 AM

tracOwner

yoshito

tracProject

all

tracReporter

mark

tracStatus

design

Components

Fix versions

Priority

assess