Blackymas / NSPanel_HA_Blueprint

This allows you to configure your complete NSPanel via Blueprint with UI and without changing anything in the code
1.24k stars 233 forks source link

Text Reverese for Hebrew translation #1999

Closed leranp closed 2 months ago

leranp commented 2 months ago

The Nextion show the Hebrew chracters reverese , so i had to reverese it again

edwardtfn commented 2 months ago

What about other text coming from sensors? Are those shown properly in the panel?

My question is due to if we have to invert not only the hard coded strings it would worth working in some library to reverse all the strings before displaying.

leranp commented 2 months ago

What about other text coming from sensors? Are those shown properly in the panel?

My question is due to if we have to invert not only the hard coded strings it would worth working in some library to reverse all the strings before displaying.

Unfortunately the text coming from HA also needs to be invert , maybe a script in the Esphome that reverse the character will do the job

edwardtfn commented 2 months ago

I will look at that... there are multiple functions calling the display of text, but let me see...

How this works for numbers? And units of measurement?

edwardtfn commented 2 months ago

I will merge this PR for now but we can still working on the reversing engine and chatting here.

leranp commented 2 months ago

I will look at that... there are multiple functions calling the display of text, but let me see...

How this works for numbers? And units of measurement?

Thank you, The numbers and unit are fine. There's also a problem with the Hebrew characters in the page buttons , there's no space for them, and they appear in wrong way, this is an example, the button with string "מסדרון" but the "מ" disappear and a character "ס" appear in a new line 20240329_222214.jpg

edwardtfn commented 2 months ago

I will take a look at that. Do you mind reporting this thing with button pages as a bug?