Skip to content

Commit

Permalink
Update to Unicode 16.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ima1zumi committed Jan 7, 2025
1 parent 8ef534e commit 51f2535
Showing 1 changed file with 41 additions and 15 deletions.
56 changes: 41 additions & 15 deletions lib/reline/unicode/east_asian_width.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Reline::Unicode::EastAsianWidth
# This is based on EastAsianWidth.txt
# UNICODE_VERSION = '15.1.0'
# UNICODE_VERSION = '16.0.0'

CHUNK_LAST, CHUNK_WIDTH = [
[0x1f, 2],
Expand Down Expand Up @@ -174,7 +174,7 @@ class Reline::Unicode::EastAsianWidth
[0x82d, 0],
[0x858, 1],
[0x85b, 0],
[0x897, 1],
[0x896, 1],
[0x89f, 0],
[0x8c9, 1],
[0x8e1, 0],
Expand Down Expand Up @@ -646,6 +646,8 @@ class Reline::Unicode::EastAsianWidth
[0x261c, -1],
[0x261d, 1],
[0x261e, -1],
[0x262f, 1],
[0x2637, 2],
[0x263f, 1],
[0x2640, -1],
[0x2641, 1],
Expand All @@ -664,6 +666,8 @@ class Reline::Unicode::EastAsianWidth
[0x266f, -1],
[0x267e, 1],
[0x267f, 2],
[0x2689, 1],
[0x268f, 2],
[0x2692, 1],
[0x2693, 2],
[0x269d, 1],
Expand Down Expand Up @@ -753,14 +757,12 @@ class Reline::Unicode::EastAsianWidth
[0x3130, 1],
[0x318e, 2],
[0x318f, 1],
[0x31e3, 2],
[0x31e5, 2],
[0x31ee, 1],
[0x321e, 2],
[0x321f, 1],
[0x3247, 2],
[0x324f, -1],
[0x4dbf, 2],
[0x4dff, 1],
[0xa48c, 2],
[0xa48f, 1],
[0xa4c6, 2],
Expand Down Expand Up @@ -879,9 +881,11 @@ class Reline::Unicode::EastAsianWidth
[0x10ae6, 0],
[0x10d23, 1],
[0x10d27, 0],
[0x10d68, 1],
[0x10d6d, 0],
[0x10eaa, 1],
[0x10eac, 0],
[0x10efc, 1],
[0x10efb, 1],
[0x10eff, 0],
[0x10f45, 1],
[0x10f50, 0],
Expand Down Expand Up @@ -943,6 +947,16 @@ class Reline::Unicode::EastAsianWidth
[0x1136c, 0],
[0x1136f, 1],
[0x11374, 0],
[0x113ba, 1],
[0x113c0, 0],
[0x113cd, 1],
[0x113ce, 0],
[0x113cf, 1],
[0x113d0, 0],
[0x113d1, 1],
[0x113d2, 0],
[0x113e0, 1],
[0x113e2, 0],
[0x11437, 1],
[0x1143f, 0],
[0x11441, 1],
Expand Down Expand Up @@ -982,6 +996,8 @@ class Reline::Unicode::EastAsianWidth
[0x116b6, 1],
[0x116b7, 0],
[0x1171c, 1],
[0x1171d, 0],
[0x1171e, 1],
[0x1171f, 0],
[0x11721, 1],
[0x11725, 0],
Expand Down Expand Up @@ -1059,10 +1075,16 @@ class Reline::Unicode::EastAsianWidth
[0x11f40, 0],
[0x11f41, 1],
[0x11f42, 0],
[0x11f59, 1],
[0x11f5a, 0],
[0x1343f, 1],
[0x13440, 0],
[0x13446, 1],
[0x13455, 0],
[0x1611d, 1],
[0x16129, 0],
[0x1612c, 1],
[0x1612f, 0],
[0x16aef, 1],
[0x16af4, 0],
[0x16b2f, 1],
Expand All @@ -1080,7 +1102,7 @@ class Reline::Unicode::EastAsianWidth
[0x187f7, 2],
[0x187ff, 1],
[0x18cd5, 2],
[0x18cff, 1],
[0x18cfe, 1],
[0x18d08, 2],
[0x1afef, 1],
[0x1aff3, 2],
Expand Down Expand Up @@ -1116,6 +1138,10 @@ class Reline::Unicode::EastAsianWidth
[0x1d1ad, 0],
[0x1d241, 1],
[0x1d244, 0],
[0x1d2ff, 1],
[0x1d356, 2],
[0x1d35f, 1],
[0x1d376, 2],
[0x1d9ff, 1],
[0x1da36, 0],
[0x1da3a, 1],
Expand Down Expand Up @@ -1148,6 +1174,8 @@ class Reline::Unicode::EastAsianWidth
[0x1e2ef, 0],
[0x1e4eb, 1],
[0x1e4ef, 0],
[0x1e5ed, 1],
[0x1e5ef, 0],
[0x1e8cf, 1],
[0x1e8d6, 0],
[0x1e943, 1],
Expand Down Expand Up @@ -1241,15 +1269,13 @@ class Reline::Unicode::EastAsianWidth
[0x1fa6f, 1],
[0x1fa7c, 2],
[0x1fa7f, 1],
[0x1fa88, 2],
[0x1fa8f, 1],
[0x1fabd, 2],
[0x1fabe, 1],
[0x1fac5, 2],
[0x1fa89, 2],
[0x1fa8e, 1],
[0x1fac6, 2],
[0x1facd, 1],
[0x1fadb, 2],
[0x1fadf, 1],
[0x1fae8, 2],
[0x1fadc, 2],
[0x1fade, 1],
[0x1fae9, 2],
[0x1faef, 1],
[0x1faf8, 2],
[0x1ffff, 1],
Expand Down

0 comments on commit 51f2535

Please sign in to comment.