User Tag List

Results 1 to 4 of 4

Thread: Accented characters

  1. #1
    Gel KCJV's Avatar
    Join Date
    Dec 2015
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    330
    Level
    6
    vBActivity - Bars
    Lv. Percent
    64.42%

    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!

  2. #2
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,762
    Level
    21
    vBActivity - Bars
    Lv. Percent
    69.12%
    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.

  3. #3
    Gel KCJV's Avatar
    Join Date
    Dec 2015
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    330
    Level
    6
    vBActivity - Bars
    Lv. Percent
    64.42%
    OK thanks I'll try using your string_constants.zh.

  4. #4
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,762
    Level
    21
    vBActivity - Bars
    Lv. Percent
    69.12%
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social