NSPManager / NSPanelManager

Sonoff NSPanel custom firmware for responsive and intuitive use
https://discord.gg/RwXvAH56fE
147 stars 11 forks source link

Latin Extended font implementation #179

Open oleyek opened 1 week ago

oleyek commented 1 week ago

There is a problem with names of lights, switches or scenes in other languages than Western Languages. Is possible to add support for Latin Extended characters for Central/East EU languages?

tpanajott commented 1 week ago

This is mainly an issue with the TFT file and Nextion I believe. Do @cablesandcoffee have any thoughts on this?

cablesandcoffee commented 1 week ago

Hi oleyek! It is definitely possible. Can you give me an example of a few characters that you want to use? It is just so I search in the right place. I have to refresh my mind on all the different character sets that exists and how I did to add characters when we did this the first time around. :)

oleyek commented 1 week ago

Hi @cablesandcoffee I glad to hear that. :)

I was mainly referring to Polish diacritical marks: “ą, ć, ę, ł, ń, ó, ś, ź, ż, Ą, Ć, Ę, Ł, Ń, Ó, Ś, Ź, Ż” Now there are blank spaces instead of these characters. Maybe except letter "Ó and ó" - because this character exist in some western languages.

cablesandcoffee commented 1 week ago

Okay, nice. I was waiting for someone to ask for more letters. It's a good sign since it means we are reaching more people! :) When we figured out this first time around we just added Swedish weird letters but it's time to expand that now. Here's my thoughts:

Until now we've only had the first two rows. C0 and C1

I think we would cover a lot more by adding the two below, Latin extended A and B. You can find your letters in there right @oleyek ?

I suggest we start with that and wait for someone else to ask for even more letters? The more letters we add the bigger the TFT file but this is so far a small change.

oleyek commented 2 days ago

Latin Extended-A covers all EU languages and even more. I think that A and B covers all characters of languages using latin letters. Central EU languages (included Polish) are in Extended-A.

Only users of non-Latin languages (such as Cyrillic, Hebrew, Arabic, Chinese, etc.) can ask for more characters.