Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to proper prepare transtaltion locale file with diacretic signs? #159

Open
androxkentaki opened this issue Feb 23, 2025 · 3 comments
Open

Comments

@androxkentaki
Copy link

Hello @lmarzen.

I assembled the weather station according to Your project - it is great, i love it.

I have prepare pl_PL locale translation file (polish).
But i have a problem with polish diacritics signs like ąęłńżźćóĄĘŁŃŻŹĆÓ.

Can You explain hot to make them properly into .inc file?

According to used examples in project i have assumed, that i need go to Extended ASCII Table for Windows-1250
https://www.ascii-code.com/CP1250

Find my character in table, check its OCT number and replace it in prepared locale_pl_PL.inc locale file giving the prefix \ at the beginning.
So e.g.

So for e.g.
Wschód słońca

i have preprare

Wsch\363d s\263o\361ca

Image
Image
Image

or Wilgotność
as
"Wilgotno\234\346"

Image
Image

The translation is used properly, but diacritic signs is not displayed properly.
and on e-paper i have

Image

I an using #define FONT_HEADER "fonts/FreeSans.h" in config.

Can You help me and explain what i have did wrong?

Is this a problem with my interpretation of usin OCT number ?
Ir maybe it is an issue with font (some letters are displayed properly?

I attach copy om by translation file (in txt).

locale_pl_PL.txt

When I finish working on it i want to prepare Pull Request with it to contribute this project.

@AndrzejGerasimukARCHIMEDES
Copy link

AndrzejGerasimukARCHIMEDES commented Feb 23, 2025

I have discovered that is seems like @lmarzen have implement to the project Windows-1252.

Is there any way to add or change to Windows-1250?

@androxkentaki
Copy link
Author

Can anybody help me how to resolve this problem?

How to make this project to render on e-paper data with char set Central European Windows-1250 (CP1250) instead Western European Windows-1252 (CP1252)?

@androxkentaki
Copy link
Author

@lmarzen
Can You confirm is there any way to implement this converter?
https://github.com/petrbrouzda/fontconvert8-iso8859-2/

It looks promising (but I am not a C programmer)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants