View Full Version : Accented characters
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!
ZoriaRPG
12-26-2015, 01:53 PM
Not with the editor alone, I'm afraid, as it only supports the majority of the lower ASCII map. You can use Saffith '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.
OK thanks I'll try using your string_constants.zh. :newbie:
ZoriaRPG
12-28-2015, 11:30 AM
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 ZScript. It does take time...
Sadly, even with DrawString(), 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 CHAR_* constant for use with Tango.
Most CHAR_* values of 127 and below are legal, but some, have very limited practicality.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.