[2.0.x] UTF-8 language translation support#10213
[2.0.x] UTF-8 language translation support#10213thinkyhead merged 23 commits intoMarlinFirmware:bugfix-2.0.xfrom yhfudev:devel-2.0-utf8
Conversation
9f46c52 to
889fd5f
Compare
68147f7 to
e8e6026
Compare
|
@yhfudev — Are you certain that we can remove |
|
@thinkyhead Yes, it can be removed. I put the symbols to the first 9 slots(1-9) in the font file buildroot/share/fonts/ISO10646-0-3.bdf |
|
The hd44780 driver has its own font data defined in the file ultralcd_impl_HD44780.h, and I tested and it works. |
…are/fonts/ISO10646-0-3.bdf
|
Because I've been making changes and rebasing this branch, your forced update seems to have trounced my fixes. You should have pulled this afresh from your git checkout devel-2.0-utf8
git fetch origin
git reset --hard origin/devel-2.0-utf8I will try to patch it back together as best I can. |
|
@thinkyhead So, what's your plan for the next step? |
|
Well, I should have been more communicative and let you know I had squashed and made other changes. I've just rebased both my version and your version to the latest |
|
Ok, all set! Just formatting changes. If you just use "Pull" from Github Desktop we'll be in sync. Actually, are there any more changes that you want to make? If this passes Travis CI then there's nothing preventing it from being merged. Marlin 1.1.9 is on the verge of being released, so we'll all be focusing on 2.0.x from now on. |
|
That's great news you decide to merge this branch! I'm done with the changes. I tested both of the dogm and hd44780 after removing unused files and it now works. I'll also test your update with my changes later. |
|
Great! I'll only be holding this till 1.1.9 release. I was hoping for yesterday… and then today… but now maybe tomorrow due to some very minor issues that need to be checked out. |
|
Merged so that language updates are applied correctly. Marlin 1.1.9 will be released very soon. No need to address every last issue, which can always be fixed in a quick-patch later as 1.1.10. |
|
Hi @yhfudev, I just tried your modification and some characters with accents looks different than the one without accents. It seems to me they we created using a different font. For example character ť looks different then t. č,ž is bigger than c,z and so on... Here is an picture of characters used by slovak language displayed in bugfix-1.1.x (left side) and in bugfix-2.0.x (right side). I used these commands to display the characters:
|
|
Hi, @rmoravcik, The fonts were changed in the latest PR. I'm not speak Slovak so I want to know which one is preferred? Thanks! |
|
Hi, @rmoravcik |
Hi @yhfudev , |
|
You need to compile the bdf2u8g binary first(using get-bdf2u8g.sh), and then run the script genallfont.sh. You may read the file Marlin/buildroot/share/fonts/uxggenpages.md as reference. It would be better if you can post the output of error messages so I can told you what need to do next. |



Description
This is the UTF-8 language support for 2.0.x branch. It supports UTF-8 language translation header files, with the font data generated by scripts automatically.
It has been tested with following hardware:
HD44780 (Japanese version)
REPRAP_DISCOUNT_SMART_CONTROLLERU8G devices
REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLERThe document(howto) for the new language engine is in the file
buildroot/share/fonts/uxggenpages.md.It would be better to change the suffix of the language file to reflect the language/country.
For example: jp_kana(Japaneses with kana), zh_CN(Simplified Chinese), zh_TW(Traditional Chinese) etc.
Since all of the language files are UTF-8 encoded, so we don't need the utf8 suffixes now.
To regenerate the font data header for languages (from
Marlin/src/lcd/language/language_*.htoMarlin/src/lcd/dogm/language_data_*.h), you may need to run the script (as described in thedocument buildroot/share/fonts/uxggenpages.md):the following files can be renamed:
The following files can be removed after merging this patch set:
Benefits
Related Issues