dwatteau / scummtr

Fan translation tools for SCUMM engine games
MIT License
23 stars 4 forks source link

Add more default Windows-1252 characters #23

Open dwatteau opened 3 years ago

dwatteau commented 3 years ago

Using scummfont on later non-English SCUMM games, we can see that some characters (such as some Spanish characters) are often present at the same positions, so if they're reliably put at the same places, we could consider them "canonical" and add them by default, to avoid having to type escape sequences for them.

This doesn't mean that the used fonts will always have them, but it's probably a good idea to settle on "official" character positions, before everyone puts them at different places in their own font modifications.

dwatteau commented 3 years ago

I've added some characters present in Indy4.

The Dig has a bit more characters, too. I need to look into that.

Also, we output Windows-1252/ISO-8859-1, but the internal SCUMM fonts seem to follow CP-437 or CP-850 (which look plausible, since the games have a huge DOS background):

https://en.wikipedia.org/wiki/Code_page_437
https://en.wikipedia.org/wiki/Code_page_850

I need to look at various fonts from various SCUMM games, but if this is confirmed, then we could just provide a CP-850 -> Windows-1252 mapping for all Western European characters when using -c.

dwatteau commented 3 years ago

I tried importing some more "safe" characters from CP-850 (the details are in the commits and comments).

This will need some serious testing…

dwatteau commented 3 years ago

I need to check the font from Loom EGA FR again; it looks like it has some local changes compared to CP850…