Problem rendering Japanese/Chinese characters in status text.
Closed this issue ยท 8 comments
Checklist
- I have updated the integration to the latest version available
- I have checked if the problem is already reported
The problem
Japanese and Chinese characters are displayed incorrectly when the room is named in these languages.
I attempted to resolve the issue using 'Pillow' with the specified Noto-CJK font from 'https://github.com/notofonts/noto-cjk/'. While this approach worked, it resulted in the loss of the charging indicator letter (lightning). Additionally, adding an extra font file, which is approximately 60MB, it does present another challenge imho.
Is there any other approach that could effectively address this issue?
This image shows the results using 'Pillow' with font Noto-CJK.
What version of an integration has described problem?
1.5.8
What was the last working version of an integration?
No response
What vacuum model do you have problems with?
Mi Robot Vacuum-Mop P (Viomi v7)
Please firmware installed on your Vacuum.
0047 - Valetudo 2023.12.0
What type of platform you use?
VEMLinux (Virtual Machine) such as Proxmox, VMWare, etc.
What version of Home Assistant do you use?
2024.2.4
What type of installation are you running?
Home Assistant OS
Camera's settings.
No response
Logs or Errors shown in the HA snapshots (please enable the Debug Mode)
No response
Additional information
No response
@kodbuzz thanks as usual, I will try to fix it, as it is a limitation with the characters (I did change the fonts today) would you please double check downloading the Main please?
@kodbuzz thanks as usual, I will try to fix it, as it is a limitation with the characters (I did change the fonts today) would you please double check downloading the Main please?
@sca075 Good evening, since I'm on the latest commit, which was made approx 5hrs ago, it seems that the issue still persists. Btw I'm not certain if Cyrillic alphabets encounter the same rendering issue, shall we test with Cyrillic as well?
@kodbuzz of course if you found a font for it would be appreciated if you could share it so that it will be used. Just as question. Lato was previously working with Japanese?
@sca075 unfortunately no, afaik the "status_text" field has never rendered correctly when it contains Japanese/Chinese characters even in previous versions, It seems like more of an aesthetic issue to me, so I didn't submit the problem in the past few weeks as I was quite occupied too.
@kodbuzz release 1.5.9-rc1 include a font that can show the Japanese characters
If you confirm it I will use this font as soon I release the 1.5.9 ;)
@sca075 confirmed, it works like a charm, thank you!
@kodbuzz I tested it and it looks Hiragana, Katakana is probably okay but Kanji as well Cyrillic on the status text could be a little challenging but not impossible.. for the time be if we are okay with it will use this font later on probably I can try to implement a menu were to select the language (font) to use for the status test.. will close the issue but open a discussion as usual to keep trace of this idea, thanks again.