diff --git a/source/text_engine.cpp b/source/text_engine.cpp index 8047cf0..da63cd7 100644 --- a/source/text_engine.cpp +++ b/source/text_engine.cpp @@ -340,6 +340,16 @@ int ptgb_write(const byte *text, bool instant, int length) } wait_for_user_to_continue(true); break; + case 0xFC: + if (DISPLAY_CONTROL_CHAR) + { + tc->drawgProc(0xB9); + } + else + { + tc->cursorX += tc->font->widths[0xFC]; + } + break; case 0xFE: if (DISPLAY_CONTROL_CHAR) { diff --git a/tools/text_helper/fonts/latin_normal.png b/tools/text_helper/fonts/latin_normal.png index afcc3fa..19e74b7 100644 Binary files a/tools/text_helper/fonts/latin_normal.png and b/tools/text_helper/fonts/latin_normal.png differ diff --git a/tools/text_helper/main.py b/tools/text_helper/main.py index 5a87ae8..6df9863 100644 --- a/tools/text_helper/main.py +++ b/tools/text_helper/main.py @@ -244,6 +244,19 @@ def convert_item(ogDict, lang): line = line.replace(pair[0], escapeString) #print(line) + # Special case for the Level values + if (lang == Languages.English): + line = line.replace("{LVL}", 0x30) + elif (lang == Languages.French): + line = line.replace("{LVL}", 0x31) + elif (lang == Languages.German): + line = line.replace("{LVL}", 0x32) + elif (lang == Languages.Italian): + line = line.replace("{LVL}", 0x33) + elif (lang == Languages.SpanishEU or lang == Languages.SpanishLA): + line = line.replace("{LVL}", 0x34) + + # Change all the punctuation marks followed by spaces into being followed by _ . # These will end up being replaced by spaces anyway in the end (but ignore the error) spaces = [' ', ' ']