PSP-Archive / ARK-4

Custom Firmware for the PSP and PS Vita.
674 stars 42 forks source link

Satelite menu displays `ё` as `±` #191

Closed jeffangelion closed 1 year ago

jeffangelion commented 1 year ago

PSP/Vita Model

PSP-2000 (Slim)

ARK Version

4.20.61 Rev 2

Homebrew/GAME (if applicable)

No response

Plugins ( if applicable )

No response

Steps to reproduce

  1. Select system language as Russian (Русский)
  2. Press "Select" button in XMB menu
  3. Select "РАСШИРЕННОЕ VSH МЕНЮ" (ADVANCED VSH MENU)
  4. Scroll through "ЦВЕТА ВЫДЕЛЕНИЯ" (FG COLORS) options
  5. See "Ж±лтый","Прозрачно-ж±лтый","Зел±ный","Прозрачно-зел±ный","Ч±рный","Прозрачно-ч±рный" instead of "Жёлтый","Прозрачно-жёлтый","Зелёный","Прозрачно-зелёный","Чёрный","Прозрачно-чёрный"

Possible affected files: satelite_ru.txt (CP866 encoded) CP866.pf

USB Charge

Always

Overclock

Always

Power Save

Disabled

Autoboot Launcher

Disabled

Disable PSP Go Pause

Disabled

Unlock Extra Memory

Disabled

Memory Stick Speedup

Always

Inferno Cache

Always

krazynez commented 1 year ago

Do you mind translating this to be proper then: https://github.com/PSP-Archive/ARK-4/blob/main/extras/menus/arkMenu/themes/translations/resources/satelite_ru.txt

Translates are very much appreciated :+1:

jeffangelion commented 1 year ago

There is no problem with locale itself, looks like it's font problem

jeffangelion commented 1 year ago

As far as I can see, there is collision between CP866 and CP437 at 0xF1 (code for both symbols), so there are two options:

  1. Fix font by adding ё symbol to prevent CP437 fallback
  2. Change all ё occurrences by е (still understandable yet incorrect)

However, in CYRIL_B.pf font ё symbol is presented yet it has CP866-incompatible codemap Does anyone know font structure or tool for them?

JoseAaronLopezGarcia commented 1 year ago

I believe @pyroesp was investigating the format of the fonts. I'll ask what details are known about them.

jeffangelion commented 1 year ago

AFAIK, .pf font is a raw monochrome bitmap of 16x16 symbols of size 8x8 pixels

jeffangelion commented 1 year ago

I did a small redraw of RUSSIAN.pf to make it CP866 complaint, should I open PR to replace it or add as option? image Offtopic: CYRIL_B.pf so gibberish image

jeffangelion commented 1 year ago

Okay, I fixed all Cyrillic fonts, gotta make PR by this week

pyroesp commented 1 year ago

I've been working a little bit on a simple font editor as a homebrew for the ARK fonts. Haven't had a lot of time to work on it so it's not yet finished 🙏🏻 .

Thanks for fixing the fonts 👍🏻 .

jeffangelion commented 1 year ago

@pyroesp i made two simple python scripts for pf <-> png conversions, i'll include them in commit message

jeffangelion commented 1 year ago
It works ![изображение](https://github.com/PSP-Archive/ARK-4/assets/16368461/55763402-214f-4dd9-8daf-d8a6ba2ec28a)