batocera-linux / batocera-emulationstation

MIT License
322 stars 248 forks source link

Game description in Chinese display issues. #254

Closed htf6782414 closed 3 years ago

htf6782414 commented 5 years ago

In any ES theme ( like es-theme-Simple ) used the Detailed gamelist view style ,it will display the game descriptions which typed in part of the gamelist.xml.

The descriptions in English or another EUR languages, It will display rightly. It will automatically line feed and automatically scroll, but the descriptions in Chinese does not.(The Chinese descriptions is not download with the SCRAPER , I translated it and type it in. )

The descriptions in Chinese Can't line feed automatically, If the descriptions text is too long in a line , the overflow part will disappear, I can't see it.

So , is anybody knows how to fix it?

asakous commented 4 years ago

this version has some solutions https://github.com/eagle0wl/EmulationStation/commit/43150fc920ec56afa81ea29abfe31608be092d65

yingw commented 4 years ago

@htf6782414 I guess it's because the default textview in cpp will not correctlly warp double byte language. My temporary solution is to add a space between these double byte characters and single bytes. I use notepad++ replacement function with regular exp to replace "([A-Z])([^\x00-\xff])" to "\1 \2", this help a little but not prefect. Then checked eagle0wl 's patch and guess that will work. As example ,check the Chinese Localized theme I made over EmuElec's fundmental. yingw/es-theme-EmuELEC-fundamental-zhCN

fabricecaruso commented 3 years ago

Probably obsolete