From 8bfabb34dec8a437a08b5a6e0ecac4a9dd3ae18c Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 12 Dec 2017 09:47:53 +0100 Subject: 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 Reviewed-by: Eskil Abrahamsen Blomfeldt --- util/unicode/main.cpp | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'util/unicode/main.cpp') 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 #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 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 } }; -- cgit v1.2.3