Commit Graph

24 Commits (22d1a0375dd9f3814db6623461785784858b9c86)

Author SHA1 Message Date
Andrey Sitnik 8cd4199555 Compress data 2017-09-11 18:37:25 +10:00
Chad Ostrowski a927821c9b Country names: correctly uppercase names like 'EU'
Always perform the capitalization-correction for country names. If we
did this naïvely, using the same regex as before, it would change things
like "Falkland Islands" to "Falkland ISLANDS". The new regex checks on
word boundary, `\b`, instead of space, `\s`, which means even single
words like `Eu` are found. It then checks for exactly two letters, where
the first is uppercase and the second lowercase.

Here's exactly what it affects:

* All "Regional Indicator Symbol Letters AC"-type names that don't
have data in emojiLib
* There are some flags in emojiLib for which it uses two-character
abbreviations instead of full country names (see muan/emojilib#131).
These countries are: CN, EU, FR, DE, IT, JP, RU, KR, ES, TR, UK, US
This new regex corrects these from Cn, Eu, Fr, etc.
2017-08-06 14:05:01 -04:00
Chad Ostrowski 22adc985b8 Country flag names: use name from emojiLib
* Always match on emoji character
* For flag emojis where emojiLib data is found, use emojiLib name
2017-08-06 14:02:14 -04:00
Christian Savard feb89bb36f Text representation of emoji is different from emoticon 2017-05-31 15:17:20 -04:00
Jakob Krigovsky d9c0139d73 Split out generation of search property 2017-05-24 18:34:10 +02:00
Etienne Lemay 4926b7bd43 💄 2017-04-04 12:00:32 -04:00
Etienne Lemay 2de83100a0 Delete empty arrays from data file 2017-03-10 12:11:05 -05:00
Etienne Lemay dbf22073c8 Don’t include keywords in data file
These are only used to generate the search string, the library doesn’t need it.
2017-03-10 11:51:58 -05:00
Oleg Vaskevich 0bfd3b3e52 Strip quotes around keys 2017-03-02 10:55:01 -08:00
Etienne Lemay f5ae64d07c Use variations at runtime instead of overriding data
Fixes a bug for emojis having both variations and skin variations
2017-02-17 12:50:20 -05:00
Etienne Lemay 489641bda6 Prefer first variation over default unified value 2017-02-17 12:22:01 -05:00
Marco Munizaga 38049bba9f Don't use a github commit for emoji-datasource 2016-11-30 15:16:47 -08:00
Etienne Lemay 2aece93395 Support all short_names when getting emoji data [Fix #15] 2016-10-13 16:19:46 -04:00
Etienne Lemay 9feee08e06 Update emojis search string 2016-07-26 14:50:55 -04:00
Etienne Lemay ee73a5d898 Add search string to emojis data 2016-07-22 12:46:43 -04:00
Etienne Lemay 8da2aa3744 Remove unused fields from data 2016-07-22 12:23:47 -04:00
Etienne Lemay 18e0f2039e Add keywords to emojis data 2016-07-21 16:06:13 -04:00
Etienne Lemay 49ec3b9efe Normalize emoticons when building data 2016-07-07 17:22:40 -04:00
Etienne Lemay 0befb30dc8 [cleanup] 2016-07-07 14:33:53 -04:00
Etienne Lemay 29b5985f80 Sort Flags by name 2016-07-07 14:33:53 -04:00
Etienne Lemay b192563535 Update Flags name with uppercase letters 2016-07-07 14:33:53 -04:00
Etienne Lemay ba2f76b24f Update emoji-data 2016-07-06 10:57:55 -04:00
Etienne Lemay 2820e80fc0 Don’t include skins in default categories 2016-06-01 10:09:14 -04:00
Etienne Lemay e108b00768 Initial commit 2016-06-01 10:07:23 -04:00