cyrillic characters not displayed on Kobo
XCSoar versions having the problem
7.43
XCSoar versions not having the problem
unknown, this is the first time I have tried to use it
System information
Kobo Glo model number: N514
Steps to reproduce the behavior
Install XCSoar. Go to menu -> config -> system -> look -> language, input -> language -> pick any language that has characters that are not english(Bulgarian, Russian, Japanese, Hebrew).
Close the menu and go back to the main screen with the map.
Open the menu again.
Most of the buttons are completely empty and don't have strings, making navigation impossible.
Also maps that include names of populated areas that don't have english language characters do not display them, but instead are replaced with "????"(this is the case for both when the language is set to english and not english).
Expected behavior
All the buttons have the correct language translations in place of the english strings (for both the buttons and the names of the populated areas on the map).
Actual behavior
Most of the buttons are completely empty and don't have strings, making navigation impossible. Also maps that include names of populated areas that don't have english language characters do not display them, but instead are replaced with "????".
Do you have any idea what may have caused this?
I believe this is because there are language packs missing or because the OS isn't using utf8.
Do you have an idea how to solve the issue?
We need to ensure other languages are supported on the OS by using utf8.
@XCSoar/kobo-team anyone can have a look please?
tested on Kobo GLO-HD with current head (7.44) and language "German": OK in map and menu
This is what I see
Can confirm language "Bulgarian" not working on my KOBO GLO-HD, but it is working on UNIX. (see screencopys)
I would recommend to factory reset the KOBO and initialize it in the bulgarian language and then again install XCSoar. Maybe this helps. If not we have to look about the process how we distribute languages on KOBO
https://github.com/XCSoar/XCSoar/blob/b07f8818563741d7b4123657ee1ff1ae9d040ea2/build/kobo.mk#L70-L76
Can this font do cryllic?
Answer from ChatGPT:
The Bitstream Vera font does not support Cyrillic. It is designed primarily for Latin characters. If you need Cyrillic characters, you should choose a font specifically designed for them, such as Arial, Times New Roman, or other fonts that support Cyrillic.
Can confirm language "Bulgarian" not working on my KOBO GLO-HD, but it is working on UNIX. (see screencopys)
I would recommend to factory reset the KOBO and initialize it in the bulgarian language and then again install XCSoar. Maybe this helps. If not we have to look about the process how we distribute languages on KOBO
Even if this works, I may decide to fly in some other location - turkey, japan, etc. Would I have to reset my Kobo every time?
Reset of your KOBO is not necessary. As I can see now the problem lies in the used XCSoar KOBO- version font. This font is hardcoded in the make- procedure software. Reset does not help. Simply changing the font to an other with cyrillic capabilitys causes surely other problems. If there is someone who wants to make and maintain the change that is certainly OK. For the moment I only can recommend to use western european languages on KOBO.
Is there a way to generate a map that has only western european languages? Since the map generator uses native language for the map locations.
Answer from ChatGPT (no idea this is correct):
Yes, in XCSoar's map generator, you can customize the map to include only specific languages. To generate a map that features only Western European languages, you'll need to adjust the language settings in the map generation options.
Here's a general guide on how to do that:
Open the XCSoar Map Generator: Start the map generation tool.
Select Language Options: Look for an option to choose or filter languages. You may need to deselect languages that are not part of Western Europe.
Choose Map Area: Specify the geographical area for the map if you want to focus on a particular region.
Generate the Map: Once you’ve made your selections, proceed to generate the map.
If you have any trouble finding these options, the documentation for XCSoar may provide more specific guidance, or you could check forums and user communities for additional tips.
Mapgen is another issue and another repo. Can we stick to the current problem?
So i copied robot-regular/bold/bolditalic.ttf etc to /opt/xcsoar/share/fonts/ and this seems to fix the problem. But the font is smaller, but it looks a lot more .. . decent.
@StanimirS can you review the attached PR and give me feedback if that solves the not displayed problem?
Mapgen is another issue and another repo. Can we stick to the current problem?
Sorry I was just trying to find a solution for the problem I have. I will try the new font tomorrow since I don't have access to the device right now (I don't actually own it). I will inform you of the results. I downloaded the build.
looks good, even the German version looks better with this new font (more space for longer labels); tested with English and Bulgarian on KOBO GLO HD
Answer from ChatGPT (no idea this is correct):
Nice example of why you need to have domain knowledge to be able to use an LLM positvily. The mentioned option is something the LLM dreamed up, it doesn´t exist. :-)
Mapgen is another issue and another repo. Can we stick to the current problem?
Sorry I was just trying to find a solution for the problem I have. I will try the new font tomorrow since I don't have access to the device right now (I don't actually own it). I will inform you of the results. I downloaded the build.
Please, don't misunderstand. I think the idea has merit, but this being a bugtraker the topic has to stay on the topic. Feel free to make an entry under discussions.
Mapgen is another issue and another repo. Can we stick to the current problem?
Sorry I was just trying to find a solution for the problem I have. I will try the new font tomorrow since I don't have access to the device right now (I don't actually own it). I will inform you of the results. I downloaded the build.
Please, don't misunderstand. I think the idea has merit, but this being a bugtraker the topic has to stay on the topic. Feel free to make an entry under discussions.
I didn't misunderstand, and wasn't sarcastic or anything, sorry if it came out that way, I genuinely just want to help improve this project since I will be using it to fly myself, when I get a Kobo.
I tested the new font, it works well. A bit on the small side compared to the huge airports, but it is usable now, which was the main issue.
Yeah the font size is smaller then the old, but I only changed the font face ill check as to why. Text size 130% in the settings seems ideal.

