summaryrefslogtreecommitdiff
path: root/tests/unictype/test-pr_punctuation.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2021-12-31 18:38:12 +0100
committerBruno Haible <bruno@clisp.org>2021-12-31 18:38:12 +0100
commit14db2b71b5bd05b94ec6126617fd32cd5f1016cd (patch)
tree3b05a875542f85aaec8171d063463e99f5cada6c /tests/unictype/test-pr_punctuation.c
parent5610f882b056c5cd528989f747561ee69c89045b (diff)
downloadgnulib-14db2b71b5bd05b94ec6126617fd32cd5f1016cd.tar.gz
Update to Unicode 14.0.0.
* lib/gen-uni-tables.c (UC_JOINING_GROUP_THIN_YEH, UC_JOINING_GROUP_VERTICAL_TAIL): New enum values. (fill_arabicshaping, joining_group_as_c_identifier): Recognize these joining groups. * lib/unictype.in.h (UC_JOINING_GROUP_THIN_YEH, UC_JOINING_GROUP_VERTICAL_TAIL): New enum values. * lib/unictype/joininggroup_name.h: Add the THIN_YEH, VERTICAL_TAIL joining groups. * lib/unictype/joininggroup_byname.gperf: Likewise. * lib/gen-uni-tables.c (LBP_ID1, LBP_ID2): New enum values. (LBP_ID): Assign artificial value. (get_lbp): Use the extended_pictographic property to assign LBP_ID1, LBP_ID2 instead of LBP_ID. Update such that unilbrk/lbrkprop.txt comes out as expected. (debug_output_lbp): Print either LBP_ID1 or LBP_ID2 as LBP_ID. (lbp_value_to_string): Handle LBP_ID1, LBP_ID2 instead of LBP_ID. (output_lbrk_rules_as_tables): Treat LBP_ID as macro that maps to two table rows/columns. In rule LB30b, use LBP_ID2 in addition to LBP_EB. Remove redundant part of rule LB27. * lib/unilbrk/lbrktables.h (LBP_ID1, LBP_ID2): New enum values. (LBP_ID): Remove enum value. (unilbrk_table): Update declaration. * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks_loop): Use LBP_ID1 instead of LBP_ID. * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks_loop): Likewise. * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks_loop): Likewise. * tests/unilbrk/test-u8-possible-linebreaks.c (test_function): Add a test of potential future emoji. * tests/unilbrk/test-u16-possible-linebreaks.c (test_function): Likewise. * tests/unilbrk/test-u32-possible-linebreaks.c (test_function): Likewise. * lib/uniwidth/width.c (nonspacing_table_data, nonspacing_table_ind): Update. (uc_width): Assign width 2 to the characters 0x1AFF0..0x1AFF3, 0x1AFF5..0x1AFFB, 0x1AFFD..0x1AFFE, 0x1B120..0x1B122, 0x1F6DD..0x1F6DF, 0x1F7F0, 0x1FA7B..0x1FA7C, 0x1FAA9..0x1FAAC, 0x1FAB7..0x1FABA, 0x1FAC3..0x1FAC5, 0x1FAD7..0x1FAD9, 0x1FAE0..0x1FAE7, 0x1FAF0..0x1FAF6. * tests/uniwidth/test-uc_width2.sh: Expect width 0 for the characters 0x0890..0x0891, 0x0898..0x089F, 0x08CA..0x0902, 0x0C3C, 0x180F, 0x1AC1..0x1ACE, 0x1DFA, 0x10F82..0x10F85, 0x11070, 0x11073..0x11074, 0x110C2, 0x1CF00..0x1CF2D, 0x1CF30..0x1CF46, 0x1E2AE. Expect ambiguous width for the character 0x1734. Expect width 2 for the characters 0x1AFF0..0x1AFF3, 0x1AFF5..0x1AFFB, 0x1AFFD..0x1AFFE, 0x1B120..0x1B122, 0x1F6DD..0x1F6DF, 0x1F7F0, 0x1FA7B..0x1FA7C, 0x1FAA9..0x1FAAC, 0x1FAB7..0x1FABA, 0x1FAC3..0x1FAC5, 0x1FAD7..0x1FAD9, 0x1FAE0..0x1FAE7, 0x1FAF0..0x1FAF6. * All generated files under lib/uni* and tests/uni*: Regenerate. * tests/uniname/NameAliases.txt: Update. * tests/uniname/UnicodeData.txt: Update. * tests/uninorm/NormalizationTest.txt: Update. * tests/unigbrk/GraphemeBreakTest.txt: Update. * tests/uniwbrk/WordBreakTest.txt: Update. * All the affected modules: Bump required libunistring version.
Diffstat (limited to 'tests/unictype/test-pr_punctuation.c')
-rw-r--r--tests/unictype/test-pr_punctuation.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/unictype/test-pr_punctuation.c b/tests/unictype/test-pr_punctuation.c
index 6e59931f8f..b406dcb143 100644
--- a/tests/unictype/test-pr_punctuation.c
+++ b/tests/unictype/test-pr_punctuation.c
@@ -44,7 +44,7 @@
{ 0x0609, 0x060A },
{ 0x060C, 0x060D },
{ 0x061B, 0x061B },
- { 0x061E, 0x061F },
+ { 0x061D, 0x061F },
{ 0x066A, 0x066D },
{ 0x06D4, 0x06D4 },
{ 0x0700, 0x070D },
@@ -83,6 +83,7 @@
{ 0x1AA0, 0x1AA6 },
{ 0x1AA8, 0x1AAD },
{ 0x1B5A, 0x1B60 },
+ { 0x1B7D, 0x1B7E },
{ 0x1BFC, 0x1BFF },
{ 0x1C3B, 0x1C3F },
{ 0x1C7E, 0x1C7F },
@@ -107,7 +108,7 @@
{ 0x2D70, 0x2D70 },
{ 0x2E00, 0x2E2E },
{ 0x2E30, 0x2E4F },
- { 0x2E52, 0x2E52 },
+ { 0x2E52, 0x2E5D },
{ 0x3001, 0x3003 },
{ 0x3008, 0x3011 },
{ 0x3014, 0x301F },
@@ -163,6 +164,7 @@
{ 0x10B99, 0x10B9C },
{ 0x10EAD, 0x10EAD },
{ 0x10F55, 0x10F59 },
+ { 0x10F86, 0x10F89 },
{ 0x11047, 0x1104D },
{ 0x110BB, 0x110BC },
{ 0x110BE, 0x110C1 },
@@ -181,6 +183,7 @@
{ 0x115C1, 0x115D7 },
{ 0x11641, 0x11643 },
{ 0x11660, 0x1166C },
+ { 0x116B9, 0x116B9 },
{ 0x1173C, 0x1173E },
{ 0x1183B, 0x1183B },
{ 0x11944, 0x11946 },
@@ -193,6 +196,7 @@
{ 0x11EF7, 0x11EF8 },
{ 0x11FFF, 0x11FFF },
{ 0x12470, 0x12474 },
+ { 0x12FF1, 0x12FF2 },
{ 0x16A6E, 0x16A6F },
{ 0x16AF5, 0x16AF5 },
{ 0x16B37, 0x16B3B },