Update widecharwidth

This updates widechar_width.h to one generated from
15e782aa3df9dfef436516f66f745a90b421329.

The change here is a rationalization of doublewide vs widened-in-9.

Many emoji have been moved to widened-in-9 because we now use the
correct version (this uses the *emoji* version, and emoji version 3.0
corresponds to Unicode 9).
This commit is contained in:
Fabian Homborg 2022-02-14 22:17:31 +01:00
parent 707c7a7f1e
commit 34f4be1149

View file

@ -1,5 +1,5 @@
/**
* widechar_width.h, generated on 2022-01-01.
* widechar_width.h, generated on 2022-02-14.
* See https://github.com/ridiculousfish/widecharwidth/
*
* SHA1 file hashes:
@ -387,40 +387,7 @@ static const struct widechar_range widechar_combiningletters_table[] = {
/* Width 2 characters. */
static const struct widechar_range widechar_doublewide_table[] = {
{0x01100, 0x0115F},
{0x0231A, 0x0231B},
{0x02329, 0x0232A},
{0x023E9, 0x023EC},
{0x023F0, 0x023F0},
{0x023F3, 0x023F3},
{0x025FD, 0x025FE},
{0x02614, 0x02615},
{0x02648, 0x02653},
{0x0267F, 0x0267F},
{0x02693, 0x02693},
{0x026A1, 0x026A1},
{0x026AA, 0x026AB},
{0x026BD, 0x026BE},
{0x026C4, 0x026C5},
{0x026CE, 0x026CE},
{0x026D4, 0x026D4},
{0x026EA, 0x026EA},
{0x026F2, 0x026F3},
{0x026F5, 0x026F5},
{0x026FA, 0x026FA},
{0x026FD, 0x026FD},
{0x02705, 0x02705},
{0x0270A, 0x0270B},
{0x02728, 0x02728},
{0x0274C, 0x0274C},
{0x0274E, 0x0274E},
{0x02753, 0x02755},
{0x02757, 0x02757},
{0x02795, 0x02797},
{0x027B0, 0x027B0},
{0x027BF, 0x027BF},
{0x02B1B, 0x02B1C},
{0x02B50, 0x02B50},
{0x02B55, 0x02B55},
{0x02E80, 0x02E99},
{0x02E9B, 0x02EF3},
{0x02F00, 0x02FD5},
@ -457,46 +424,29 @@ static const struct widechar_range widechar_doublewide_table[] = {
{0x1B150, 0x1B152},
{0x1B164, 0x1B167},
{0x1B170, 0x1B2FB},
{0x1F004, 0x1F004},
{0x1F0CF, 0x1F0CF},
{0x1F18E, 0x1F18E},
{0x1F191, 0x1F19A},
{0x1F200, 0x1F202},
{0x1F210, 0x1F23B},
{0x1F200, 0x1F200},
{0x1F202, 0x1F202},
{0x1F210, 0x1F219},
{0x1F21B, 0x1F22E},
{0x1F230, 0x1F231},
{0x1F237, 0x1F237},
{0x1F23B, 0x1F23B},
{0x1F240, 0x1F248},
{0x1F250, 0x1F251},
{0x1F260, 0x1F265},
{0x1F300, 0x1F320},
{0x1F32D, 0x1F335},
{0x1F337, 0x1F37C},
{0x1F37E, 0x1F393},
{0x1F3A0, 0x1F3CA},
{0x1F3CF, 0x1F3D3},
{0x1F3E0, 0x1F3F0},
{0x1F3F4, 0x1F3F4},
{0x1F3F8, 0x1F43E},
{0x1F440, 0x1F440},
{0x1F442, 0x1F4FC},
{0x1F4FF, 0x1F53D},
{0x1F54B, 0x1F54E},
{0x1F550, 0x1F567},
{0x1F595, 0x1F596},
{0x1F5FB, 0x1F64F},
{0x1F680, 0x1F6C5},
{0x1F6CC, 0x1F6CC},
{0x1F6D0, 0x1F6D0},
{0x1F57A, 0x1F57A},
{0x1F5A4, 0x1F5A4},
{0x1F6D1, 0x1F6D2},
{0x1F6D5, 0x1F6D7},
{0x1F6DD, 0x1F6DF},
{0x1F6EB, 0x1F6EC},
{0x1F6F9, 0x1F6FC},
{0x1F6F4, 0x1F6FC},
{0x1F7E0, 0x1F7EB},
{0x1F7F0, 0x1F7F0},
{0x1F90C, 0x1F918},
{0x1F93F, 0x1F93F},
{0x1F94D, 0x1F94F},
{0x1F96C, 0x1F984},
{0x1F998, 0x1F9CF},
{0x1F9E7, 0x1F9FF},
{0x1F90C, 0x1F90F},
{0x1F919, 0x1F93A},
{0x1F93C, 0x1F945},
{0x1F947, 0x1F97F},
{0x1F985, 0x1F9BF},
{0x1F9C1, 0x1F9FF},
{0x1FA70, 0x1FA74},
{0x1FA78, 0x1FA7C},
{0x1FA80, 0x1FA86},
@ -1437,17 +1387,72 @@ static const struct widechar_range widechar_nonchar_table[] = {
/* Characters that were widened from width 1 to 2 in Unicode 9. */
static const struct widechar_range widechar_widened_table[] = {
{0x1F57A, 0x1F57A},
{0x1F5A4, 0x1F5A4},
{0x1F6D1, 0x1F6D2},
{0x1F6F4, 0x1F6F8},
{0x1F919, 0x1F93A},
{0x1F93C, 0x1F93E},
{0x1F940, 0x1F945},
{0x1F947, 0x1F94C},
{0x1F950, 0x1F96B},
{0x1F985, 0x1F997},
{0x1F9D0, 0x1F9E6}
{0x0231A, 0x0231B},
{0x023E9, 0x023EC},
{0x023F0, 0x023F0},
{0x023F3, 0x023F3},
{0x025FD, 0x025FE},
{0x02614, 0x02615},
{0x02648, 0x02653},
{0x0267F, 0x0267F},
{0x02693, 0x02693},
{0x026A1, 0x026A1},
{0x026AA, 0x026AB},
{0x026BD, 0x026BE},
{0x026C4, 0x026C5},
{0x026CE, 0x026CE},
{0x026D4, 0x026D4},
{0x026EA, 0x026EA},
{0x026F2, 0x026F3},
{0x026F5, 0x026F5},
{0x026FA, 0x026FA},
{0x026FD, 0x026FD},
{0x02705, 0x02705},
{0x0270A, 0x0270B},
{0x02728, 0x02728},
{0x0274C, 0x0274C},
{0x0274E, 0x0274E},
{0x02753, 0x02755},
{0x02757, 0x02757},
{0x02795, 0x02797},
{0x027B0, 0x027B0},
{0x027BF, 0x027BF},
{0x02B1B, 0x02B1C},
{0x02B50, 0x02B50},
{0x02B55, 0x02B55},
{0x1F004, 0x1F004},
{0x1F0CF, 0x1F0CF},
{0x1F18E, 0x1F18E},
{0x1F191, 0x1F19A},
{0x1F201, 0x1F201},
{0x1F21A, 0x1F21A},
{0x1F22F, 0x1F22F},
{0x1F232, 0x1F236},
{0x1F238, 0x1F23A},
{0x1F250, 0x1F251},
{0x1F300, 0x1F320},
{0x1F32D, 0x1F335},
{0x1F337, 0x1F37C},
{0x1F37E, 0x1F393},
{0x1F3A0, 0x1F3CA},
{0x1F3CF, 0x1F3D3},
{0x1F3E0, 0x1F3F0},
{0x1F3F4, 0x1F3F4},
{0x1F3F8, 0x1F43E},
{0x1F440, 0x1F440},
{0x1F442, 0x1F4FC},
{0x1F4FF, 0x1F53D},
{0x1F54B, 0x1F54E},
{0x1F550, 0x1F567},
{0x1F595, 0x1F596},
{0x1F5FB, 0x1F64F},
{0x1F680, 0x1F6C5},
{0x1F6CC, 0x1F6CC},
{0x1F6D0, 0x1F6D0},
{0x1F6EB, 0x1F6EC},
{0x1F910, 0x1F918},
{0x1F980, 0x1F984},
{0x1F9C0, 0x1F9C0}
};
template<typename Collection>