PSP-Archive / ARK-4

Custom Firmware for the PSP and PS Vita.
561 stars 40 forks source link

Add a pair of specific encoding satelite_chs.txt and CHS.pf for VSH menu #329

Closed li-fstz closed 3 months ago

li-fstz commented 3 months ago

In order to display Chinese (or other multi byte encoding languages) in the VSH menu, we need to modify the VSH menu to support reading UTF-8 encoding language files and standard encoding font files,

But now using a pair of language file and font file with special encoding could be used as a temporary solution.

I used 全小素(QuanPixel) as a prototype to create CHS.pf.

The following is the conversion script, which requires passing in the original language file path, bdf font path, encoded language file path, and pf file path:

https://github.com/PSP-Archive/ARK-4/blob/main/contrib/PC/pf_convert/bdf_to_pf.py

JoseAaronLopezGarcia commented 3 months ago

Can you include the conversion script somewhere inside the contrib/PC/ folder? We have lots of other important scripts there.

Edit: I've added the script as contrib/PC/pc_convert/bdf_to_pf.py https://github.com/PSP-Archive/ARK-4/blob/main/contrib/PC/pf_convert/bdf_to_pf.py

JoseAaronLopezGarcia commented 3 months ago

Tested and working. Merging.

li-fstz commented 3 months ago

Thank you. I go to sleep during this time, so I couldn't submit the code in a timely manner.