diff options
author | Bruno Haible <bruno@clisp.org> | 2021-12-31 12:20:27 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-12-31 12:20:27 +0100 |
commit | f2e9cd38b97c58bcd66b804e08186503e00a3e8e (patch) | |
tree | 712f545d28aab410fe12b9ac93efca3bc682d8de /tests/unictype/test-categ_L.c | |
parent | 09cf5f3ac960dc7f413186bbda1c8aa2d43944df (diff) | |
download | gnulib-f2e9cd38b97c58bcd66b804e08186503e00a3e8e.tar.gz |
Update to Unicode 13.0.0.
* lib/gen-uni-tables.c (is_WBP_MIDLETTER): Add character 0x055F.
(get_wbp): Assign value WBP_ALETTER to the characters 0x02E5..0x02EB,
0x055A, 0x058A, 0xA708..0xA716.
* lib/gen-uni-tables.c (LBP_CP1, LBP_CP2, LBP_OP1, LBP_OP2): New enum
values.
(LBP_OP, LBP_CP): Assign artificial values.
(get_lbp): Use the unicode_width[] table to assign LBP_CP1, LBP_CP2
instead of LBP_CP, and LBP_OP1, LBP_OP2 instead of LBP_OP. Update such
that unilbrk/lbrkprop.txt comes out as expected.
(debug_output_lbp): Print either LBP_CP1 or LBP_CP2 as LBP_CP. Print
either LBP_OP1 or LBP_OP2 as LBP_OP.
(lbp_value_to_string): Handle LBP_CP1, LBP_CP2, LBP_OP1, LBP_OP2 instead
of LBP_CP, LBP_OP.
(output_lbrk_rules_as_tables): Treat LBP_CP and LBP_OP as macros that
map to two table rows/columns. In rule LB30, use only LBP_OP1 instead of
LBP_OP, and only LBP_CP1 instead of LBP_CP. Simplify rule LB22.
* lib/unilbrk/lbrktables.h (LBP_CP1, LBP_CP2, LBP_OP1, LBP_OP2): New
enum values.
(LBP_OP, LBP_CP): Remove enum values.
(unilbrk_table): Update declaration.
* lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks_loop):
Add a test for East Asian opening parenthesis.
* lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks_loop):
Likewise.
* lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks_loop):
Likewise.
* lib/uniwidth/width.c (nonspacing_table_data, nonspacing_table_ind):
Update.
(uc_width): Assign width 2 to the characters 0x16FF0..0x16FF1,
0x18AF3..0x18CD5, 0x18D00..0x18D08, 0x1F6D6..0x1F6D7, 0x1F6FB..0x1F6FC,
0x1F90C, 0x1FA74, 0x1FA83..0x1FA86, 0x1FA96..0x1FAA8, 0x1FAB0..0x1FAB6,
0x1FAC0..0x1FAC2, 0x1FAD0..0x1FAD6.
Assign width 1 to the characters 0x1F93B, 0x1F946.
* tests/uniwidth/test-uc_width2.sh: Expect width 0 for the characters
0x0B55, 0x0D81, 0x1ABF..0x1AC0, 0xA82C, 0x10EAB..0x10EAC, 0x111CF,
0x1193B..0x1193C, 0x1193E, 0x11943, 0x16FE4. Expect width 2 for the
characters 0x16FF0..0x16FF1, 0x18AF3..0x18CD5, 0x18D00..0x18D08,
0x1F6D6..0x1F6D7, 0x1F6FB..0x1F6FC, 0x1F90C, 0x1FA74, 0x1FA83..0x1FA86,
0x1FA96..0x1FAA8, 0x1FAB0..0x1FAB6, 0x1FAC0..0x1FAC2, 0x1FAD0..0x1FAD6.
Expect width 1 for the characters 0x1F93B, 0x1F946.
* 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-categ_L.c')
-rw-r--r-- | tests/unictype/test-categ_L.c | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/tests/unictype/test-categ_L.c b/tests/unictype/test-categ_L.c index 778a843d2f..1c2ebc062e 100644 --- a/tests/unictype/test-categ_L.c +++ b/tests/unictype/test-categ_L.c @@ -67,7 +67,7 @@ { 0x0840, 0x0858 }, { 0x0860, 0x086A }, { 0x08A0, 0x08B4 }, - { 0x08B6, 0x08BD }, + { 0x08B6, 0x08C7 }, { 0x0904, 0x0939 }, { 0x093D, 0x093D }, { 0x0950, 0x0950 }, @@ -143,7 +143,7 @@ { 0x0CDE, 0x0CDE }, { 0x0CE0, 0x0CE1 }, { 0x0CF1, 0x0CF2 }, - { 0x0D05, 0x0D0C }, + { 0x0D04, 0x0D0C }, { 0x0D0E, 0x0D10 }, { 0x0D12, 0x0D3A }, { 0x0D3D, 0x0D3D }, @@ -314,10 +314,10 @@ { 0x30FC, 0x30FF }, { 0x3105, 0x312F }, { 0x3131, 0x318E }, - { 0x31A0, 0x31BA }, + { 0x31A0, 0x31BF }, { 0x31F0, 0x31FF }, - { 0x3400, 0x4DB5 }, - { 0x4E00, 0x9FEF }, + { 0x3400, 0x4DBF }, + { 0x4E00, 0x9FFC }, { 0xA000, 0xA48C }, { 0xA4D0, 0xA4FD }, { 0xA500, 0xA60C }, @@ -329,8 +329,8 @@ { 0xA717, 0xA71F }, { 0xA722, 0xA788 }, { 0xA78B, 0xA7BF }, - { 0xA7C2, 0xA7C6 }, - { 0xA7F7, 0xA801 }, + { 0xA7C2, 0xA7CA }, + { 0xA7F5, 0xA801 }, { 0xA803, 0xA805 }, { 0xA807, 0xA80A }, { 0xA80C, 0xA822 }, @@ -367,7 +367,7 @@ { 0xAB20, 0xAB26 }, { 0xAB28, 0xAB2E }, { 0xAB30, 0xAB5A }, - { 0xAB5C, 0xAB67 }, + { 0xAB5C, 0xAB69 }, { 0xAB70, 0xABE2 }, { 0xAC00, 0xD7A3 }, { 0xD7B0, 0xD7C6 }, @@ -451,15 +451,19 @@ { 0x10C80, 0x10CB2 }, { 0x10CC0, 0x10CF2 }, { 0x10D00, 0x10D23 }, + { 0x10E80, 0x10EA9 }, + { 0x10EB0, 0x10EB1 }, { 0x10F00, 0x10F1C }, { 0x10F27, 0x10F27 }, { 0x10F30, 0x10F45 }, + { 0x10FB0, 0x10FC4 }, { 0x10FE0, 0x10FF6 }, { 0x11003, 0x11037 }, { 0x11083, 0x110AF }, { 0x110D0, 0x110E8 }, { 0x11103, 0x11126 }, { 0x11144, 0x11144 }, + { 0x11147, 0x11147 }, { 0x11150, 0x11172 }, { 0x11176, 0x11176 }, { 0x11183, 0x111B2 }, @@ -485,7 +489,7 @@ { 0x1135D, 0x11361 }, { 0x11400, 0x11434 }, { 0x11447, 0x1144A }, - { 0x1145F, 0x1145F }, + { 0x1145F, 0x11461 }, { 0x11480, 0x114AF }, { 0x114C4, 0x114C5 }, { 0x114C7, 0x114C7 }, @@ -498,7 +502,13 @@ { 0x11700, 0x1171A }, { 0x11800, 0x1182B }, { 0x118A0, 0x118DF }, - { 0x118FF, 0x118FF }, + { 0x118FF, 0x11906 }, + { 0x11909, 0x11909 }, + { 0x1190C, 0x11913 }, + { 0x11915, 0x11916 }, + { 0x11918, 0x1192F }, + { 0x1193F, 0x1193F }, + { 0x11941, 0x11941 }, { 0x119A0, 0x119A7 }, { 0x119AA, 0x119D0 }, { 0x119E1, 0x119E1 }, @@ -523,6 +533,7 @@ { 0x11D6A, 0x11D89 }, { 0x11D98, 0x11D98 }, { 0x11EE0, 0x11EF2 }, + { 0x11FB0, 0x11FB0 }, { 0x12000, 0x12399 }, { 0x12480, 0x12543 }, { 0x13000, 0x1342E }, @@ -541,7 +552,8 @@ { 0x16FE0, 0x16FE1 }, { 0x16FE3, 0x16FE3 }, { 0x17000, 0x187F7 }, - { 0x18800, 0x18AF2 }, + { 0x18800, 0x18CD5 }, + { 0x18D00, 0x18D08 }, { 0x1B000, 0x1B11E }, { 0x1B150, 0x1B152 }, { 0x1B164, 0x1B167 }, @@ -620,12 +632,13 @@ { 0x1EEA1, 0x1EEA3 }, { 0x1EEA5, 0x1EEA9 }, { 0x1EEAB, 0x1EEBB }, - { 0x20000, 0x2A6D6 }, + { 0x20000, 0x2A6DD }, { 0x2A700, 0x2B734 }, { 0x2B740, 0x2B81D }, { 0x2B820, 0x2CEA1 }, { 0x2CEB0, 0x2EBE0 }, - { 0x2F800, 0x2FA1D } + { 0x2F800, 0x2FA1D }, + { 0x30000, 0x3134A } #define PREDICATE(c) uc_is_general_category (c, UC_CATEGORY_L) #include "test-predicate-part2.h" |