Added basic case insensitive mappings for Russian.

This commit is contained in:
casey langen 2023-06-17 12:33:10 -07:00
parent bb955ab8b9
commit 066b73ff32

View File

@ -86,7 +86,41 @@ static std::unordered_map<u32, const char*> charToAccentsInsensitive = {
{ (u32)'u', u8"UuũūŭůűųÙÚÛÜŨŪŬŮŰŲ" },
{ (u32)'w', u8"WwŵŴ" },
{ (u32)'y', u8"YyýÿŷÝŶŸ" },
{ (u32)'z', u8"ZzŹŻŽ" }
{ (u32)'z', u8"ZzŹŻŽ" },
/* basic Russian: https://github.com/clangen/musikcube/issues/613 */
{ (u32)0x430 /* а */, u8"Аа" },
{ (u32)0x431 /* б */, u8"Бб" },
{ (u32)0x432 /* в */, u8"Вв" },
{ (u32)0x433 /* г */, u8"Гг" },
{ (u32)0x434 /* д */, u8"Дд" },
{ (u32)0x435 /* е */, u8"Ее" },
{ (u32)0x451 /* ё */, u8"Ёё" },
{ (u32)0x436 /* ж */, u8"Жж" },
{ (u32)0x437 /* з */, u8"Зз" },
{ (u32)0x438 /* и */, u8"Ии" },
{ (u32)0x439 /* й */, u8"Йй" },
{ (u32)0x43a /* к */, u8"Кк" },
{ (u32)0x43b /* л */, u8"Лл" },
{ (u32)0x43c /* м */, u8"Мм" },
{ (u32)0x43d /* н */, u8"Нн" },
{ (u32)0x43e /* о */, u8"Оо" },
{ (u32)0x43f /* п */, u8"Пп" },
{ (u32)0x440 /* р */, u8"Рр" },
{ (u32)0x441 /* с */, u8"Сс" },
{ (u32)0x442 /* т */, u8"Тт" },
{ (u32)0x443 /* у */, u8"Уу" },
{ (u32)0x444 /* ф */, u8"Фф" },
{ (u32)0x445 /* х */, u8"Хх" },
{ (u32)0x446 /* ц */, u8"Цц" },
{ (u32)0x447 /* ч */, u8"Чч" },
{ (u32)0x448 /* ш */, u8"Шш" },
{ (u32)0x449 /* щ */, u8"Щщ" },
{ (u32)0x44a /* ъ */, u8"Ъъ" },
{ (u32)0x44b /* ы */, u8"Ыы" },
{ (u32)0x44c /* ь */, u8"Ьь" },
{ (u32)0x44d /* э */, u8"Ээ" },
{ (u32)0x44e /* ю */, u8"Юю" },
{ (u32)0x44f /* я */, u8"Яя" },
};
static std::unordered_map<u32, const char*> charToAccentsSensitive = {