feat: add support UTF-8 ° symbol for B&W radios (#2359)

- remove translation workaround for the `°` symbol
- switch every use of the `@` char for a `°` char to a new define
  - same for `≥` and `}`
This commit is contained in:
Malte Langermann
2022-09-26 12:45:04 +10:00
committed by GitHub
parent 22d784a20e
commit 83c21ad054
22 changed files with 26 additions and 66 deletions
+4 -1
View File
@@ -22,6 +22,7 @@
#include <stdint.h>
#include "definitions.h"
#include "translations/untranslated.h"
#if defined(TRANSLATIONS_FR)
static wchar_t _utf8_lut[] = {
@@ -103,7 +104,9 @@ unsigned char map_utf8_char(const char*& s, uint8_t& len)
return (unsigned char)w;
}
if(w == L'≥')
return '}';
return STR_CHAR_BW_GREATEREQUAL;
if(w == L'°')
return STR_CHAR_BW_DEGREE;
#if !defined(NO_UTF8_LUT)
return lookup_utf8_mapping(w);
#else