Localisation support (foreign languages)

Locked
BG8KJC
Posts: 5
Joined: Sun Jan 03, 2021 8:59 am

Re: Localistion support (foreign languages)

Post by BG8KJC » Mon Jan 18, 2021 9:35 am

Hi there:
I did the simplified Chinese translation file.
could you add it into the github?
Attachments
chinese_simple.zip
(3.38 KiB) Downloaded 163 times

VK3KYY
Posts: 8143
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Localistion support (foreign languages)

Post by VK3KYY » Mon Jan 18, 2021 9:49 am

BG8KJC wrote:
Mon Jan 18, 2021 9:35 am
Hi there:
I did the simplified Chinese translation file.
could you add it into the github?
This has already been discussed on GitHub, and its not possible because the radio does not contain a chinese language font.

The font used is a custom 8 bit font, and the firmware does not support unicode characters at all.

The Japanese version is a completely different build, and there is a completely separate Japanese font developed by a Japanese ham.
And Japanese only has a small number of characters so it was possible to make a custom 8 bit font for Japanese

BG8KJC
Posts: 5
Joined: Sun Jan 03, 2021 8:59 am

Re: Localistion support (foreign languages)

Post by BG8KJC » Mon Jan 18, 2021 9:59 am

VK3KYY wrote:
Mon Jan 18, 2021 9:49 am
BG8KJC wrote:
Mon Jan 18, 2021 9:35 am
Hi there:
I did the simplified Chinese translation file.
could you add it into the github?
This has already been discussed on GitHub, and its not possible because the radio does not contain a chinese language font.

The font used is a custom 8 bit font, and the firmware does not support unicode characters at all.

The Japanese version is a completely different build, and there is a completely separate Japanese font developed by a Japanese ham.
And Japanese only has a small number of characters so it was possible to make a custom 8 bit font for Japanese
Thanks a lot. Could you send me the Japanese version url? I will try to find someone to do it. Anyway, Thanks a lot.73

VK3KYY
Posts: 8143
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Localistion support (foreign languages)

Post by VK3KYY » Mon Jan 18, 2021 10:09 am

Its not that simple.

Did you count the number of unique characters in your text?

I think its less than 256 but if its not, then it wont be possible.

As well as a special font you also need to change the font data creation script/tool

You need to discuss this with F1RMB, as he handles the font system

BG8KJC
Posts: 5
Joined: Sun Jan 03, 2021 8:59 am

Re: Localistion support (foreign languages)

Post by BG8KJC » Mon Jan 18, 2021 10:15 am

VK3KYY wrote:
Mon Jan 18, 2021 10:09 am
Its not that simple.

Did you count the number of unique characters in your text?

I think its less than 256 but if its not, then it wont be possible.

As well as a special font you also need to change the font data creation script/tool

You need to discuss this with F1RMB, as he handles the font system
Rgr. I may contact the engineer who from Baofeng, try to resolve the issue .

User avatar
F1RMB
Posts: 2868
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: Localistion support (foreign languages)

Post by F1RMB » Mon Jan 18, 2021 10:35 am

Hi,
BG8KJC wrote:
Mon Jan 18, 2021 10:15 am
VK3KYY wrote:
Mon Jan 18, 2021 10:09 am
Its not that simple.

Did you count the number of unique characters in your text?

I think its less than 256 but if its not, then it wont be possible.

As well as a special font you also need to change the font data creation script/tool

You need to discuss this with F1RMB, as he handles the font system
Rgr. I may contact the engineer who from Baofeng, try to resolve the issue .
I don't think Baofeng will even reply to something related to the OpenGD77 firmware.

About the Japanese support, it uses katakana syllabary, which has 64 symbols.
Is there any Chinese equivalent ?

Also, for foreign language, the number if usable glyphs are less than 256, as it's around 126 since ASCII table is needed, in any case.


Cheers.
---
Daniel

VK3KYY
Posts: 8143
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Localistion support (foreign languages)

Post by VK3KYY » Tue Jan 19, 2021 1:59 am

I don't know if I'm 100% correct, but I tried to calculate the total number of characters in that text, and excluding ASCII and punctuation, it looks like there are approximately 450 unique chinese characters in that text.

So it would not be possible to create a font that could handle this, as the firmware does not handle unicode characters (double byte)

I don't think Chinese language characters could ever be supported, because it would require all text handling to change to unicode, and this would be a huge amount of work, and also considerably increase the code size, and we don't have a lot of code space remaining in the MCU ROM.

DG3GSP
Posts: 153
Joined: Sun Nov 17, 2019 9:30 am
Location: Southern Germany

Re: Localistion support (foreign languages)

Post by DG3GSP » Sat Feb 13, 2021 7:30 am

German Translation update 4.4: Add .eco_level
Attachments
german.zip
German Translation update 4.4: Add .eco_level
(3.49 KiB) Downloaded 155 times

DG3GSP
Posts: 153
Joined: Sun Nov 17, 2019 9:30 am
Location: Southern Germany

Re: Localistion support (foreign languages)

Post by DG3GSP » Sat Feb 13, 2021 7:52 am

And the updated german wordlist for eco_levels and some minor improvements
Attachments
wordlist_german.zip
updated german wordlist (eco_levels)
(2.73 KiB) Downloaded 152 times

User avatar
F1RMB
Posts: 2868
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: Localistion support (foreign languages)

Post by F1RMB » Sat Feb 13, 2021 7:53 am

Hi Peter,
DG3GSP wrote:
Sat Feb 13, 2021 7:30 am
German Translation update 4.4: Add .eco_level

Thanks, I raised a PR.


Cheers.
---
Daniel

Locked