[SOLVED] Question about custom SCI fonts

Started by Héctor Bometón, Sun 19/07/2020 12:05:03

Previous topic - Next topic

Héctor Bometón

I need my fonts to have latin characters for its spanish translation. So long, I've managed to edit the font myself to add some of them, overwritting characters I wont need to be displayed as speech: (@ = á, { = é, ' = í, + = ó, < = ú). That way, if I need the player to say "Olé.", I would code: player.Say("Ol{.");

But I still need the capital vowels (Á, É, Í, Ã", Ú) and it seems like I still have plenty of space to insert these special characters, but I don't know how to type them.

So... How could I use all those "empty slots"? Which keys on the keyboard correspond to each of those? Hope I'm explaining myself...





Crimson Wizard

#2
Quote from: Héctor Bometón on Sun 19/07/2020 12:05:03
I need my fonts to have latin characters for its spanish translation. So long, I've managed to edit the font myself to add some of them, overwritting characters I wont need to be displayed as speech: (@ = á, { = é, ' = í, + = ó, < = ú). That way, if I need the player to say "Olé.", I would code: player.Say("Ol{.");

I'd rather suggest not using this approach unless others are not suitable for a serious reason.

The usual method is to make a font complying to the proper ANSI code-page meant for Spanish (I believe it's Windows-1252), and write and save texts in that codepage too (switching to corresponding locale on your system if necessary). I also heard several people advised in the past, if you got multiple translations, to only use english in the original script and put other languages in translation files.

Is there a reason why you do not want to do so, or need to write texts directly in the script rather than in TRS file?


To answer your question directly, these slots may be forced with special "escaped characters" such as '\n', '\r', '\t' and so forth, but because some of them have special meaning in the engine (e.g. '\n' is a line break), I would not really recommend doing this.

EDIT: what about all those '?' slots, have you used the all up too?

Héctor Bometón

QuoteIs there a reason why you do not want to do so, or need to write texts directly in the script rather than in TRS file?

The reason is... I'm dumb.

Also, I was using a shitty font editor that wouldn't show me 256 characters, but only 128 (now I understand where all those "?" slots came from). I just found the right solution, which was usign a better font editor (https://www.adventuregamestudio.co.uk/forums/index.php?topic=48527.0) that allows me to use the latin characters without that stupid workaround I was doing...

Sorry and thank you!





Crimson Wizard

Quote from: Héctor Bometón on Sun 19/07/2020 15:13:24
Also, I was using a shitty font editor that wouldn't show me 256 characters, but only 128 (now I understand where all those "?" slots came from). I just found the right solution, which was usign a better font editor (https://www.adventuregamestudio.co.uk/forums/index.php?topic=48527.0) that allows me to use the latin characters without that stupid workaround I was doing...

Ah, that explains. Glad you found a solution :).


SMF spam blocked by CleanTalk