[translations] Resolve issue with lines over characters for some languages, and some wrong characters used (#1268)

* Resolve a problem in font generation when y_offset is negative.

* Change to use full dynamic detection of special chars, generalized for all languages including cjk.

* Isolated colorlcd and bwlcd translation encoding method.

* Fixed the cz char mapping.

* Only cz requires subset lowercase handling.
This commit is contained in:
richardclli
2021-12-27 11:43:17 +10:00
committed by GitHub
parent b0791e2afa
commit 230ac34e86
4 changed files with 94 additions and 57 deletions
+9 -1
View File
@@ -1,5 +1,13 @@
file(GLOB translations *.h.txt)
if(FONTS_TARGET STREQUAL taranis_fonts)
set(bwlcd T)
elseif(FONTS_TARGET STREQUAL 9x_fonts_1bit)
set(bwlcd T)
else()
set(bwlcd F)
endif()
foreach(translation ${translations})
get_filename_component(language ${translation} NAME_WE)
get_filename_component(path ${translation} DIRECTORY)
@@ -7,7 +15,7 @@ foreach(translation ${translations})
if(PYTHONINTERP_FOUND)
add_custom_command(
OUTPUT ${target}
COMMAND ${PYTHON_EXECUTABLE} ${TOOLS_DIR}/encode-translation.py ${translation} ${target} ${language}
COMMAND ${PYTHON_EXECUTABLE} ${TOOLS_DIR}/encode-translation.py ${translation} ${target} ${language} ${bwlcd}
DEPENDS ${translation} ${TOOLS_DIR}/encode-translation.py ${TOOLS_DIR}/charset.py
)
endif()