summaryrefslogtreecommitdiffstats
path: root/util/unicode/main.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-12-12 09:47:53 +0100
committerLars Knoll <lars.knoll@qt.io>2018-01-03 07:46:31 +0000
commit8bfabb34dec8a437a08b5a6e0ecac4a9dd3ae18c (patch)
tree6e69b05e97f6803e9f7ca1b914c341747a8e0d67 /util/unicode/main.cpp
parent2b2b9c9962e09db1f1ea34773959e3cc626ecce4 (diff)
Update most Unicode data to version 10.0
The text segmentation data is not being updated in this change, as it requires additional code changes. Updating those will come in a follow-up commit. Change-Id: I5d6b6bc96044e8dd0c25cf6f79756e7f68bf6e7c Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'util/unicode/main.cpp')
-rw-r--r--util/unicode/main.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp
index fe6d4fbca1..c51995499d 100644
--- a/util/unicode/main.cpp
+++ b/util/unicode/main.cpp
@@ -38,8 +38,8 @@
#include <private/qunicodetables_p.h>
#endif
-#define DATA_VERSION_S "8.0"
-#define DATA_VERSION_STR "QChar::Unicode_8_0"
+#define DATA_VERSION_S "10.0"
+#define DATA_VERSION_STR "QChar::Unicode_10_0"
static QHash<QByteArray, QChar::UnicodeVersion> age_map;
@@ -67,6 +67,8 @@ static void initAgeMap()
{ QChar::Unicode_6_3, "6.3" },
{ QChar::Unicode_7_0, "7.0" },
{ QChar::Unicode_8_0, "8.0" },
+ { QChar::Unicode_9_0, "9.0" },
+ { QChar::Unicode_10_0, "10.0" },
{ QChar::Unicode_Unassigned, 0 }
};
AgeMap *d = ageMap;
@@ -722,6 +724,20 @@ static void initScriptMap()
{ QChar::Script_Multani, "Multani" },
{ QChar::Script_OldHungarian, "OldHungarian" },
{ QChar::Script_SignWriting, "SignWriting" },
+ // 9.0
+ { QChar::Script_Adlam, "Adlam" },
+ { QChar::Script_Bhaiksuki, "Bhaiksuki" },
+ { QChar::Script_Marchen, "Marchen" },
+ { QChar::Script_Newa, "Newa" },
+ { QChar::Script_Osage, "Osage" },
+ { QChar::Script_Tangut, "Tangut" },
+ // 10.0
+ { QChar::Script_MasaramGondi, "MasaramGondi" },
+ { QChar::Script_Nushu, "Nushu" },
+ { QChar::Script_Soyombo, "Soyombo" },
+ { QChar::Script_ZanabazarSquare, "ZanabazarSquare" },
+
+
// unhandled
{ QChar::Script_Unknown, 0 }
};