[pango/emoji-ragel: 1/2] [emoji] Update emoji tables to Unicode 11



commit 15eb263d75496119d4bcd14069199bf8367926e9
Author: Behdad Esfahbod <behdad behdad org>
Date:   Mon Oct 15 13:24:49 2018 -0700

    [emoji] Update emoji tables to Unicode 11

 pango/pango-emoji-table.h | 43 ++++++++++++++++++++++++++++---------------
 tools/gen-emoji-table.py  |  4 ++++
 2 files changed, 32 insertions(+), 15 deletions(-)
---
diff --git a/pango/pango-emoji-table.h b/pango/pango-emoji-table.h
index 0f58f21d..da9ff4fc 100644
--- a/pango/pango-emoji-table.h
+++ b/pango/pango-emoji-table.h
@@ -7,13 +7,13 @@
  * on file with this header:
  *
  * # emoji-data.txt
- * # Date: 2017-06-19, 11:13:24 GMT
- * # © 2017 Unicode®, Inc.
+ * # Date: 2018-02-07, 07:55:18 GMT
+ * # © 2018 Unicode®, Inc.
  * # Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
  * # For terms of use, see http://www.unicode.org/terms_of_use.html
  * #
- * # Emoji Data for UTR #51
- * # Version: 5.0
+ * # Emoji Data for UTS #51
+ * # Version: 11.0
  * #
  * # For documentation and usage, see http://www.unicode.org/reports/tr51
  */
@@ -65,12 +65,12 @@ static const struct Interval _pango_Emoji_table[] =
   {0x2640, 0x2640},
   {0x2642, 0x2642},
   {0x2648, 0x2653},
-  {0x2660, 0x2660},
+  {0x265F, 0x2660},
   {0x2663, 0x2663},
   {0x2665, 0x2666},
   {0x2668, 0x2668},
   {0x267B, 0x267B},
-  {0x267F, 0x267F},
+  {0x267E, 0x267F},
   {0x2692, 0x2697},
   {0x2699, 0x2699},
   {0x269B, 0x269C},
@@ -228,6 +228,7 @@ static const struct Interval _pango_Emoji_table[] =
   {0x1F6F3, 0x1F6F3},
   {0x1F6F4, 0x1F6F6},
   {0x1F6F7, 0x1F6F8},
+  {0x1F6F9, 0x1F6F9},
   {0x1F910, 0x1F918},
   {0x1F919, 0x1F91E},
   {0x1F91F, 0x1F91F},
@@ -240,13 +241,22 @@ static const struct Interval _pango_Emoji_table[] =
   {0x1F940, 0x1F945},
   {0x1F947, 0x1F94B},
   {0x1F94C, 0x1F94C},
+  {0x1F94D, 0x1F94F},
   {0x1F950, 0x1F95E},
   {0x1F95F, 0x1F96B},
+  {0x1F96C, 0x1F970},
+  {0x1F973, 0x1F976},
+  {0x1F97A, 0x1F97A},
+  {0x1F97C, 0x1F97F},
   {0x1F980, 0x1F984},
   {0x1F985, 0x1F991},
   {0x1F992, 0x1F997},
+  {0x1F998, 0x1F9A2},
+  {0x1F9B0, 0x1F9B9},
   {0x1F9C0, 0x1F9C0},
+  {0x1F9C1, 0x1F9C2},
   {0x1F9D0, 0x1F9E6},
+  {0x1F9E7, 0x1F9FF},
 };
 
 static const struct Interval _pango_Emoji_Presentation_table[] =
@@ -353,6 +363,7 @@ static const struct Interval _pango_Emoji_Presentation_table[] =
   {0x1F6EB, 0x1F6EC},
   {0x1F6F4, 0x1F6F6},
   {0x1F6F7, 0x1F6F8},
+  {0x1F6F9, 0x1F6F9},
   {0x1F910, 0x1F918},
   {0x1F919, 0x1F91E},
   {0x1F91F, 0x1F91F},
@@ -365,13 +376,22 @@ static const struct Interval _pango_Emoji_Presentation_table[] =
   {0x1F940, 0x1F945},
   {0x1F947, 0x1F94B},
   {0x1F94C, 0x1F94C},
+  {0x1F94D, 0x1F94F},
   {0x1F950, 0x1F95E},
   {0x1F95F, 0x1F96B},
+  {0x1F96C, 0x1F970},
+  {0x1F973, 0x1F976},
+  {0x1F97A, 0x1F97A},
+  {0x1F97C, 0x1F97F},
   {0x1F980, 0x1F984},
   {0x1F985, 0x1F991},
   {0x1F992, 0x1F997},
+  {0x1F998, 0x1F9A2},
+  {0x1F9B0, 0x1F9B9},
   {0x1F9C0, 0x1F9C0},
+  {0x1F9C1, 0x1F9C2},
   {0x1F9D0, 0x1F9E6},
+  {0x1F9E7, 0x1F9FF},
 };
 
 static const struct Interval _pango_Emoji_Modifier_table[] =
@@ -418,18 +438,11 @@ static const struct Interval _pango_Emoji_Modifier_Base_table[] =
   {0x1F931, 0x1F932},
   {0x1F933, 0x1F939},
   {0x1F93D, 0x1F93E},
+  {0x1F9B5, 0x1F9B6},
+  {0x1F9B8, 0x1F9B9},
   {0x1F9D1, 0x1F9DD},
 };
 
-static const struct Interval _pango_Emoji_Component_table[] =
-{
-  {0x0023, 0x0023},
-  {0x002A, 0x002A},
-  {0x0030, 0x0039},
-  {0x1F1E6, 0x1F1FF},
-  {0x1F3FB, 0x1F3FF},
-};
-
 #endif /* PANGO_EMOJI_TABLE_H */
 
 /* == End of generated table == */
diff --git a/tools/gen-emoji-table.py b/tools/gen-emoji-table.py
index 600fe80f..b8018eee 100755
--- a/tools/gen-emoji-table.py
+++ b/tools/gen-emoji-table.py
@@ -51,6 +51,10 @@ print()
 print("struct Interval {\n  gunichar start, end;\n};")
 
 for typ,s in sets.items():
+       if typ not in ['Emoji',
+                      'Emoji_Presentation',
+                      'Emoji_Modifier',
+                      'Emoji_Modifier_Base']: continue
        print()
        print("static const struct Interval _pango_%s_table[] =" % typ)
        print("{")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]