local data = {}
data.compat_to_cho = {
= 0x1100,
= 0x1101,
= 0x1102,
= 0x1103,
= 0x1104,
= 0x1105,
= 0x1106,
= 0x1107,
= 0x1108,
= 0x1109,
= 0x110A,
= 0x110B,
= 0x110C,
= 0x110D,
= 0x110E,
= 0x110F,
= 0x1110,
= 0x1111,
= 0x1112,
= 0x1114,
= 0x1115,
= 0x111A,
= 0x111C,
= 0x111D,
= 0x111E,
= 0x1120,
= 0x1121,
= 0x1122,
= 0x1123,
= 0x1127,
= 0x1129,
= 0x112B,
= 0x112C,
= 0x112D,
= 0x112E,
= 0x112F,
= 0x1132,
= 0x1136,
= 0x1140,
= 0x1147,
= 0x114C,
= 0x1157,
= 0x1158,
= 0x1159,
= 0x115B,
= 0x115C,
= 0x115D,
}
data.compat_to_cho_loose_partial = {
= 0x1125,
= 0x1134,
= 0x1134,
-- TODO: add Hangul Jamo Extended-A
}
data.compat_to_cho_loose = {
= 0x1101,
= 0x1104,
= 0x1108,
= 0x110A,
= 0x110D,
= 0x1113,
= 0x1114,
= 0x1115,
= 0x1116,
= 0x1117,
= 0x1118,
= 0x1119,
= 0x111A,
= 0x111C,
= 0x111E,
= 0x111F,
= 0x1120,
= 0x1121,
= 0x1122,
= 0x1123,
= 0x1124,
= 0x1125,
= 0x1126,
= 0x1127,
= 0x1128,
= 0x112A,
= 0x112D,
= 0x112E,
= 0x112F,
= 0x1130,
= 0x1131,
= 0x1132,
= 0x1133,
= 0x1134,
= 0x1135,
= 0x1136,
= 0x1137,
= 0x1138,
= 0x1139,
= 0x113A,
= 0x113B,
-- ...
= 0x1141,
= 0x1142,
= 0x1143,
= 0x1144,
= 0x1145,
= 0x1146,
= 0x1147,
= 0x1148,
= 0x1149,
= 0x114A,
= 0x114B,
= 0x114D,
-- ...
= 0x1152,
= 0x1153,
-- ...
= 0x1156,
= 0x1156,
= 0x1158,
= 0x115A,
= 0x115B,
= 0x115C,
= 0x115D,
= 0x115E,
-- TODO: add Hangul Jamo Extended-A
}
data.compat_to_jung = {
= 0x1161,
= 0x1162,
= 0x1163,
= 0x1164,
= 0x1165,
= 0x1166,
= 0x1167,
= 0x1168,
= 0x1169,
= 0x116A,
= 0x116B,
= 0x116C,
= 0x116D,
= 0x116E,
= 0x116F,
= 0x1170,
= 0x1171,
= 0x1172,
= 0x1173,
= 0x1174,
= 0x1175,
}
data.compat_to_jung_loose = {
= 0x116A,
= 0x116B,
= 0x116C,
= 0x116F,
= 0x1170,
= 0x1171,
= 0x1174,
= 0x1175,
-- for vowels, only add necessary combinations because we rely on existence checks
}
data.compat_to_jong = {
= 0x11A8,
= 0x11A9,
= 0x11AA,
= 0x11AB,
= 0x11AC,
= 0x11AD,
= 0x11AE,
= 0x11AF,
= 0x11B0,
= 0x11B1,
= 0x11B2,
= 0x11B3,
= 0x11B4,
= 0x11B5,
= 0x11B6,
= 0x11B7,
= 0x11B8,
= 0x11B9,
= 0x11BA,
= 0x11BB,
= 0x11BC,
= 0x11BD,
= 0x11BE,
= 0x11BF,
= 0x11C0,
= 0x11C1,
= 0x11C2,
= 0x11C6,
= 0x11C7,
= 0x11C8,
= 0x11CC,
= 0x11CE,
= 0x11D3,
= 0x11D7,
= 0x11D9,
= 0x11DC,
= 0x11DD,
= 0x11DF,
= 0x11E2,
= 0x11E6,
= 0x11E7,
= 0x11E8,
= 0x11EA,
= 0x11EB,
= 0x11F0,
= 0x11F1,
= 0x11F2,
= 0x11F4,
= 0x11F9,
= 0x11FF,
}
data.compat_to_jong_loose_partial = {
= 0x11D6,
= 0x11DE,
= 0x11ED,
-- TODO: add Hangul Jamo Extended-B
}
data.compat_to_jong_loose = {
= 0x11A9,
= 0x11AA,
= 0x11AC,
= 0x11AD,
= 0x11B0,
= 0x11B1,
= 0x11B2,
= 0x11B3,
= 0x11B4,
= 0x11B5,
= 0x11B6,
= 0x11B9,
= 0x11BB,
= 0x11C3,
= 0x11C4,
= 0x11C5,
= 0x11C6,
= 0x11C7,
= 0x11C8,
= 0x11C9,
= 0x11CA,
= 0x11CB,
= 0x11CC,
= 0x11CD,
= 0x11CE,
= 0x11CF,
= 0x11D0,
= 0x11D1,
= 0x11D2,
= 0x11D4,
= 0x11D5,
= 0x11D6,
= 0x11D7,
= 0x11D8,
= 0x11D9,
= 0x11DA,
= 0x11DB,
= 0x11DC,
= 0x11DD,
= 0x11DE,
= 0x11DF,
= 0x11E0,
= 0x11E1,
= 0x11E3,
= 0x11E4,
= 0x11E5,
= 0x11E7,
= 0x11E8,
= 0x11E9,
= 0x11EA,
= 0x11EC,
= 0x11ED,
= 0x11EE,
= 0x11EF,
= 0x11F1,
= 0x11F2,
= 0x11F3,
= 0x11F5,
= 0x11F6,
= 0x11F7,
= 0x11F8,
= 0x11FA,
= 0x11FB,
= 0x11FC,
= 0x11FD,
= 0x11FE,
= 0x11FF,
-- TODO: add Hangul Jamo Extended-B
= 0xD7CD,
}
return data