Skip to content

Commit b10cbda

Browse files
bbolligitster
authored andcommitted
unicode: update the width tables to Unicode 15
Unicode version 15 was released in September 2022 [1], and we have so far neglected to update our width tables. Do this now. [1] http://blog.unicode.org/2022/09/announcing-unicode-standard-version-150.html Signed-off-by: Beat Bolli <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 73876f4 commit b10cbda

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

unicode-width.h

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static const struct interval zero_width[] = {
9494
{ 0x0E47, 0x0E4E },
9595
{ 0x0EB1, 0x0EB1 },
9696
{ 0x0EB4, 0x0EBC },
97-
{ 0x0EC8, 0x0ECD },
97+
{ 0x0EC8, 0x0ECE },
9898
{ 0x0F18, 0x0F19 },
9999
{ 0x0F35, 0x0F35 },
100100
{ 0x0F37, 0x0F37 },
@@ -228,6 +228,7 @@ static const struct interval zero_width[] = {
228228
{ 0x10AE5, 0x10AE6 },
229229
{ 0x10D24, 0x10D27 },
230230
{ 0x10EAB, 0x10EAC },
231+
{ 0x10EFD, 0x10EFF },
231232
{ 0x10F46, 0x10F50 },
232233
{ 0x10F82, 0x10F85 },
233234
{ 0x11001, 0x11001 },
@@ -252,6 +253,7 @@ static const struct interval zero_width[] = {
252253
{ 0x11234, 0x11234 },
253254
{ 0x11236, 0x11237 },
254255
{ 0x1123E, 0x1123E },
256+
{ 0x11241, 0x11241 },
255257
{ 0x112DF, 0x112DF },
256258
{ 0x112E3, 0x112EA },
257259
{ 0x11300, 0x11301 },
@@ -313,7 +315,12 @@ static const struct interval zero_width[] = {
313315
{ 0x11D95, 0x11D95 },
314316
{ 0x11D97, 0x11D97 },
315317
{ 0x11EF3, 0x11EF4 },
316-
{ 0x13430, 0x13438 },
318+
{ 0x11F00, 0x11F01 },
319+
{ 0x11F36, 0x11F3A },
320+
{ 0x11F40, 0x11F40 },
321+
{ 0x11F42, 0x11F42 },
322+
{ 0x13430, 0x13440 },
323+
{ 0x13447, 0x13455 },
317324
{ 0x16AF0, 0x16AF4 },
318325
{ 0x16B30, 0x16B36 },
319326
{ 0x16F4F, 0x16F4F },
@@ -339,9 +346,11 @@ static const struct interval zero_width[] = {
339346
{ 0x1E01B, 0x1E021 },
340347
{ 0x1E023, 0x1E024 },
341348
{ 0x1E026, 0x1E02A },
349+
{ 0x1E08F, 0x1E08F },
342350
{ 0x1E130, 0x1E136 },
343351
{ 0x1E2AE, 0x1E2AE },
344352
{ 0x1E2EC, 0x1E2EF },
353+
{ 0x1E4EC, 0x1E4EF },
345354
{ 0x1E8D0, 0x1E8D6 },
346355
{ 0x1E944, 0x1E94A },
347356
{ 0xE0001, 0xE0001 },
@@ -417,7 +426,9 @@ static const struct interval double_width[] = {
417426
{ 0x1AFF5, 0x1AFFB },
418427
{ 0x1AFFD, 0x1AFFE },
419428
{ 0x1B000, 0x1B122 },
429+
{ 0x1B132, 0x1B132 },
420430
{ 0x1B150, 0x1B152 },
431+
{ 0x1B155, 0x1B155 },
421432
{ 0x1B164, 0x1B167 },
422433
{ 0x1B170, 0x1B2FB },
423434
{ 0x1F004, 0x1F004 },
@@ -451,23 +462,21 @@ static const struct interval double_width[] = {
451462
{ 0x1F6CC, 0x1F6CC },
452463
{ 0x1F6D0, 0x1F6D2 },
453464
{ 0x1F6D5, 0x1F6D7 },
454-
{ 0x1F6DD, 0x1F6DF },
465+
{ 0x1F6DC, 0x1F6DF },
455466
{ 0x1F6EB, 0x1F6EC },
456467
{ 0x1F6F4, 0x1F6FC },
457468
{ 0x1F7E0, 0x1F7EB },
458469
{ 0x1F7F0, 0x1F7F0 },
459470
{ 0x1F90C, 0x1F93A },
460471
{ 0x1F93C, 0x1F945 },
461472
{ 0x1F947, 0x1F9FF },
462-
{ 0x1FA70, 0x1FA74 },
463-
{ 0x1FA78, 0x1FA7C },
464-
{ 0x1FA80, 0x1FA86 },
465-
{ 0x1FA90, 0x1FAAC },
466-
{ 0x1FAB0, 0x1FABA },
467-
{ 0x1FAC0, 0x1FAC5 },
468-
{ 0x1FAD0, 0x1FAD9 },
469-
{ 0x1FAE0, 0x1FAE7 },
470-
{ 0x1FAF0, 0x1FAF6 },
473+
{ 0x1FA70, 0x1FA7C },
474+
{ 0x1FA80, 0x1FA88 },
475+
{ 0x1FA90, 0x1FABD },
476+
{ 0x1FABF, 0x1FAC5 },
477+
{ 0x1FACE, 0x1FADB },
478+
{ 0x1FAE0, 0x1FAE8 },
479+
{ 0x1FAF0, 0x1FAF8 },
471480
{ 0x20000, 0x2FFFD },
472481
{ 0x30000, 0x3FFFD }
473482
};

0 commit comments

Comments
 (0)