Skip to content

Commit 24e6128

Browse files
authored
Update to Unicode 16.0.0 (#803)
1 parent 8ef534e commit 24e6128

File tree

1 file changed

+41
-15
lines changed

1 file changed

+41
-15
lines changed

lib/reline/unicode/east_asian_width.rb

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class Reline::Unicode::EastAsianWidth
22
# This is based on EastAsianWidth.txt
3-
# UNICODE_VERSION = '15.1.0'
3+
# UNICODE_VERSION = '16.0.0'
44

55
CHUNK_LAST, CHUNK_WIDTH = [
66
[0x1f, 2],
@@ -174,7 +174,7 @@ class Reline::Unicode::EastAsianWidth
174174
[0x82d, 0],
175175
[0x858, 1],
176176
[0x85b, 0],
177-
[0x897, 1],
177+
[0x896, 1],
178178
[0x89f, 0],
179179
[0x8c9, 1],
180180
[0x8e1, 0],
@@ -646,6 +646,8 @@ class Reline::Unicode::EastAsianWidth
646646
[0x261c, -1],
647647
[0x261d, 1],
648648
[0x261e, -1],
649+
[0x262f, 1],
650+
[0x2637, 2],
649651
[0x263f, 1],
650652
[0x2640, -1],
651653
[0x2641, 1],
@@ -664,6 +666,8 @@ class Reline::Unicode::EastAsianWidth
664666
[0x266f, -1],
665667
[0x267e, 1],
666668
[0x267f, 2],
669+
[0x2689, 1],
670+
[0x268f, 2],
667671
[0x2692, 1],
668672
[0x2693, 2],
669673
[0x269d, 1],
@@ -753,14 +757,12 @@ class Reline::Unicode::EastAsianWidth
753757
[0x3130, 1],
754758
[0x318e, 2],
755759
[0x318f, 1],
756-
[0x31e3, 2],
760+
[0x31e5, 2],
757761
[0x31ee, 1],
758762
[0x321e, 2],
759763
[0x321f, 1],
760764
[0x3247, 2],
761765
[0x324f, -1],
762-
[0x4dbf, 2],
763-
[0x4dff, 1],
764766
[0xa48c, 2],
765767
[0xa48f, 1],
766768
[0xa4c6, 2],
@@ -879,9 +881,11 @@ class Reline::Unicode::EastAsianWidth
879881
[0x10ae6, 0],
880882
[0x10d23, 1],
881883
[0x10d27, 0],
884+
[0x10d68, 1],
885+
[0x10d6d, 0],
882886
[0x10eaa, 1],
883887
[0x10eac, 0],
884-
[0x10efc, 1],
888+
[0x10efb, 1],
885889
[0x10eff, 0],
886890
[0x10f45, 1],
887891
[0x10f50, 0],
@@ -943,6 +947,16 @@ class Reline::Unicode::EastAsianWidth
943947
[0x1136c, 0],
944948
[0x1136f, 1],
945949
[0x11374, 0],
950+
[0x113ba, 1],
951+
[0x113c0, 0],
952+
[0x113cd, 1],
953+
[0x113ce, 0],
954+
[0x113cf, 1],
955+
[0x113d0, 0],
956+
[0x113d1, 1],
957+
[0x113d2, 0],
958+
[0x113e0, 1],
959+
[0x113e2, 0],
946960
[0x11437, 1],
947961
[0x1143f, 0],
948962
[0x11441, 1],
@@ -982,6 +996,8 @@ class Reline::Unicode::EastAsianWidth
982996
[0x116b6, 1],
983997
[0x116b7, 0],
984998
[0x1171c, 1],
999+
[0x1171d, 0],
1000+
[0x1171e, 1],
9851001
[0x1171f, 0],
9861002
[0x11721, 1],
9871003
[0x11725, 0],
@@ -1059,10 +1075,16 @@ class Reline::Unicode::EastAsianWidth
10591075
[0x11f40, 0],
10601076
[0x11f41, 1],
10611077
[0x11f42, 0],
1078+
[0x11f59, 1],
1079+
[0x11f5a, 0],
10621080
[0x1343f, 1],
10631081
[0x13440, 0],
10641082
[0x13446, 1],
10651083
[0x13455, 0],
1084+
[0x1611d, 1],
1085+
[0x16129, 0],
1086+
[0x1612c, 1],
1087+
[0x1612f, 0],
10661088
[0x16aef, 1],
10671089
[0x16af4, 0],
10681090
[0x16b2f, 1],
@@ -1080,7 +1102,7 @@ class Reline::Unicode::EastAsianWidth
10801102
[0x187f7, 2],
10811103
[0x187ff, 1],
10821104
[0x18cd5, 2],
1083-
[0x18cff, 1],
1105+
[0x18cfe, 1],
10841106
[0x18d08, 2],
10851107
[0x1afef, 1],
10861108
[0x1aff3, 2],
@@ -1116,6 +1138,10 @@ class Reline::Unicode::EastAsianWidth
11161138
[0x1d1ad, 0],
11171139
[0x1d241, 1],
11181140
[0x1d244, 0],
1141+
[0x1d2ff, 1],
1142+
[0x1d356, 2],
1143+
[0x1d35f, 1],
1144+
[0x1d376, 2],
11191145
[0x1d9ff, 1],
11201146
[0x1da36, 0],
11211147
[0x1da3a, 1],
@@ -1148,6 +1174,8 @@ class Reline::Unicode::EastAsianWidth
11481174
[0x1e2ef, 0],
11491175
[0x1e4eb, 1],
11501176
[0x1e4ef, 0],
1177+
[0x1e5ed, 1],
1178+
[0x1e5ef, 0],
11511179
[0x1e8cf, 1],
11521180
[0x1e8d6, 0],
11531181
[0x1e943, 1],
@@ -1241,15 +1269,13 @@ class Reline::Unicode::EastAsianWidth
12411269
[0x1fa6f, 1],
12421270
[0x1fa7c, 2],
12431271
[0x1fa7f, 1],
1244-
[0x1fa88, 2],
1245-
[0x1fa8f, 1],
1246-
[0x1fabd, 2],
1247-
[0x1fabe, 1],
1248-
[0x1fac5, 2],
1272+
[0x1fa89, 2],
1273+
[0x1fa8e, 1],
1274+
[0x1fac6, 2],
12491275
[0x1facd, 1],
1250-
[0x1fadb, 2],
1251-
[0x1fadf, 1],
1252-
[0x1fae8, 2],
1276+
[0x1fadc, 2],
1277+
[0x1fade, 1],
1278+
[0x1fae9, 2],
12531279
[0x1faef, 1],
12541280
[0x1faf8, 2],
12551281
[0x1ffff, 1],

0 commit comments

Comments
 (0)