mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 18:59:56 +00:00
Update Screen.h (#2285)
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
parent
25fd9d2d1d
commit
ce882b389a
@ -240,6 +240,9 @@ class Screen : public concurrency::OSThread
|
|||||||
// library have empty chars for non-latin ASCII symbols
|
// library have empty chars for non-latin ASCII symbols
|
||||||
case 0xD0: {
|
case 0xD0: {
|
||||||
SKIPREST = false;
|
SKIPREST = false;
|
||||||
|
if (ch == 132) return (uint8_t)(170); // Є
|
||||||
|
if (ch == 134) return (uint8_t)(178); // І
|
||||||
|
if (ch == 135) return (uint8_t)(175); // Ї
|
||||||
if (ch == 129)
|
if (ch == 129)
|
||||||
return (uint8_t)(168); // Ё
|
return (uint8_t)(168); // Ё
|
||||||
if (ch > 143 && ch < 192)
|
if (ch > 143 && ch < 192)
|
||||||
@ -248,12 +251,21 @@ class Screen : public concurrency::OSThread
|
|||||||
}
|
}
|
||||||
case 0xD1: {
|
case 0xD1: {
|
||||||
SKIPREST = false;
|
SKIPREST = false;
|
||||||
|
if (ch == 148) return (uint8_t)(186); // є
|
||||||
|
if (ch == 150) return (uint8_t)(179); // і
|
||||||
|
if (ch == 151) return (uint8_t)(191); // ї
|
||||||
if (ch == 145)
|
if (ch == 145)
|
||||||
return (uint8_t)(184); // ё
|
return (uint8_t)(184); // ё
|
||||||
if (ch > 127 && ch < 144)
|
if (ch > 127 && ch < 144)
|
||||||
return (uint8_t)(ch + 112);
|
return (uint8_t)(ch + 112);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 0xD2: {
|
||||||
|
SKIPREST = false;
|
||||||
|
if (ch == 144) return (uint8_t)(165); // Ґ
|
||||||
|
if (ch == 145) return (uint8_t)(180); // ґ
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// We want to strip out prefix chars for two-byte char formats
|
// We want to strip out prefix chars for two-byte char formats
|
||||||
|
Loading…
Reference in New Issue
Block a user