Skip to content

Commit

Permalink
Add Unicode 15.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
patriksvensson committed Nov 14, 2023
1 parent 406741f commit 0b27807
Show file tree
Hide file tree
Showing 4 changed files with 494 additions and 1 deletion.
128 changes: 128 additions & 0 deletions src/Wcwidth/Tables/WideTable.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ internal static partial class WideTable
Unicode.Version_13_0_0 => Unicode_13_0_0(),
Unicode.Version_14_0_0 => Unicode_14_0_0(),
Unicode.Version_15_0_0 => Unicode_15_0_0(),
Unicode.Version_15_1_0 => Unicode_15_1_0(),
_ => throw new InvalidOperationException("Unknown Unicode version"),
};
}
Expand Down Expand Up @@ -1424,5 +1425,132 @@ internal static partial class WideTable
{ 0x030000, 0x03FFFD },
};
}

private static uint[,] Unicode_15_1_0()
{
return new uint[,]
{
{ 0x001100, 0x00115F },
{ 0x00231A, 0x00231B },
{ 0x002329, 0x00232A },
{ 0x0023E9, 0x0023EC },
{ 0x0023F0, 0x0023F0 },
{ 0x0023F3, 0x0023F3 },
{ 0x0025FD, 0x0025FE },
{ 0x002614, 0x002615 },
{ 0x002648, 0x002653 },
{ 0x00267F, 0x00267F },
{ 0x002693, 0x002693 },
{ 0x0026A1, 0x0026A1 },
{ 0x0026AA, 0x0026AB },
{ 0x0026BD, 0x0026BE },
{ 0x0026C4, 0x0026C5 },
{ 0x0026CE, 0x0026CE },
{ 0x0026D4, 0x0026D4 },
{ 0x0026EA, 0x0026EA },
{ 0x0026F2, 0x0026F3 },
{ 0x0026F5, 0x0026F5 },
{ 0x0026FA, 0x0026FA },
{ 0x0026FD, 0x0026FD },
{ 0x002705, 0x002705 },
{ 0x00270A, 0x00270B },
{ 0x002728, 0x002728 },
{ 0x00274C, 0x00274C },
{ 0x00274E, 0x00274E },
{ 0x002753, 0x002755 },
{ 0x002757, 0x002757 },
{ 0x002795, 0x002797 },
{ 0x0027B0, 0x0027B0 },
{ 0x0027BF, 0x0027BF },
{ 0x002B1B, 0x002B1C },
{ 0x002B50, 0x002B50 },
{ 0x002B55, 0x002B55 },
{ 0x002E80, 0x002E99 },
{ 0x002E9B, 0x002EF3 },
{ 0x002F00, 0x002FD5 },
{ 0x002FF0, 0x00303E },
{ 0x003041, 0x003096 },
{ 0x003099, 0x0030FF },
{ 0x003105, 0x00312F },
{ 0x003131, 0x00318E },
{ 0x003190, 0x0031E3 },
{ 0x0031EF, 0x00321E },
{ 0x003220, 0x003247 },
{ 0x003250, 0x004DBF },
{ 0x004E00, 0x00A48C },
{ 0x00A490, 0x00A4C6 },
{ 0x00A960, 0x00A97C },
{ 0x00AC00, 0x00D7A3 },
{ 0x00F900, 0x00FAFF },
{ 0x00FE10, 0x00FE19 },
{ 0x00FE30, 0x00FE52 },
{ 0x00FE54, 0x00FE66 },
{ 0x00FE68, 0x00FE6B },
{ 0x00FF01, 0x00FF60 },
{ 0x00FFE0, 0x00FFE6 },
{ 0x016FE0, 0x016FE4 },
{ 0x016FF0, 0x016FF1 },
{ 0x017000, 0x0187F7 },
{ 0x018800, 0x018CD5 },
{ 0x018D00, 0x018D08 },
{ 0x01AFF0, 0x01AFF3 },
{ 0x01AFF5, 0x01AFFB },
{ 0x01AFFD, 0x01AFFE },
{ 0x01B000, 0x01B122 },
{ 0x01B132, 0x01B132 },
{ 0x01B150, 0x01B152 },
{ 0x01B155, 0x01B155 },
{ 0x01B164, 0x01B167 },
{ 0x01B170, 0x01B2FB },
{ 0x01F004, 0x01F004 },
{ 0x01F0CF, 0x01F0CF },
{ 0x01F18E, 0x01F18E },
{ 0x01F191, 0x01F19A },
{ 0x01F200, 0x01F202 },
{ 0x01F210, 0x01F23B },
{ 0x01F240, 0x01F248 },
{ 0x01F250, 0x01F251 },
{ 0x01F260, 0x01F265 },
{ 0x01F300, 0x01F320 },
{ 0x01F32D, 0x01F335 },
{ 0x01F337, 0x01F37C },
{ 0x01F37E, 0x01F393 },
{ 0x01F3A0, 0x01F3CA },
{ 0x01F3CF, 0x01F3D3 },
{ 0x01F3E0, 0x01F3F0 },
{ 0x01F3F4, 0x01F3F4 },
{ 0x01F3F8, 0x01F43E },
{ 0x01F440, 0x01F440 },
{ 0x01F442, 0x01F4FC },
{ 0x01F4FF, 0x01F53D },
{ 0x01F54B, 0x01F54E },
{ 0x01F550, 0x01F567 },
{ 0x01F57A, 0x01F57A },
{ 0x01F595, 0x01F596 },
{ 0x01F5A4, 0x01F5A4 },
{ 0x01F5FB, 0x01F64F },
{ 0x01F680, 0x01F6C5 },
{ 0x01F6CC, 0x01F6CC },
{ 0x01F6D0, 0x01F6D2 },
{ 0x01F6D5, 0x01F6D7 },
{ 0x01F6DC, 0x01F6DF },
{ 0x01F6EB, 0x01F6EC },
{ 0x01F6F4, 0x01F6FC },
{ 0x01F7E0, 0x01F7EB },
{ 0x01F7F0, 0x01F7F0 },
{ 0x01F90C, 0x01F93A },
{ 0x01F93C, 0x01F945 },
{ 0x01F947, 0x01F9FF },
{ 0x01FA70, 0x01FA7C },
{ 0x01FA80, 0x01FA88 },
{ 0x01FA90, 0x01FABD },
{ 0x01FABF, 0x01FAC5 },
{ 0x01FACE, 0x01FADB },
{ 0x01FAE0, 0x01FAE8 },
{ 0x01FAF0, 0x01FAF8 },
{ 0x020000, 0x02FFFD },
{ 0x030000, 0x03FFFD },
};
}
}
}
Loading

0 comments on commit 0b27807

Please sign in to comment.