Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Accented characters

3 replies · 9,741 views · Started 26 December 2015

Hi everyone,
I wondered if there was a way I can put accented characters in text strings, because I'd like to translate my project to French (and possibly Spanish as well) when I finish it. Is there a way I can do it?
Thanks in advance!

Not with the editor alone, I'm afraid, as it only supports the majority of the lower ASCII map. You can use [MENTION=38582]Saffith[/MENTION] 's Tango.zh header, and script them; and my string_constants.zh file (from my expanded string.zh) that has the ASCII characters for all of them as constants, to create upper ASCII map symbols.

You will want to read the thread on Tango.zh: http://www.purezc.net/forums/index.php?showtopic=60030

To use that, you will need to learn at least some basic, and intermediate [FONT=Courier New]ZScript[/FONT]. It does take time...

Sadly, even with [FONT=Courier New]DrawString()[/FONT], you can;t make chars above 127; so that necessitates using tilefonts. The constants simply make it easier to work with those values, when constructing a tilefont. Note that when you make a ZScript string, in a code file, ASCII above char 127 will be preserved, but ZC can't do anything with it--we might fix that in a later version. This is how, and where the constants become valuable, as the preserved value is compared to a tile, assigned to its[FONT=Courier New] CHAR_*[/FONT] constant for use with Tango.

Most [FONT=Courier New]CHAR_*[/FONT] values of 127 and below are legal, but some, have very limited practicality.