Announcement

Collapse
No announcement yet.

Transaleting and fonts encoding

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Transaleting and fonts encoding

    Hi,
    I'm trying to transalate ctp2 files to Polish. I met a problem - some of Polish characters are not exist in ascii. Where can I set the type of font encoding - does it works as in html files?

    Or, maybe, I should use over 8-bit characters? (eg. one Polish character has code 260/0x0104) - but how put over 8-bit character to txt file?

    Thx in advance for help

  • #2
    Hi Bazyli and welcome!

    I'am sorry but I fear I can't help you on this issue, I have had a look at my CtP2 folders but I have not seen anything useful except an empty folder named "Fonts" you can find in C:\Program Files\Activision\Call To Power 2\ctp2_data\default\uidata.
    Last edited by Tamerlin; February 9, 2003, 09:56.
    "Democracy is the worst form of government there is, except for all the others that have been tried." Sir Winston Churchill

    Comment


    • #3
      The file you can set the fonts is ..\Call To Power 2\ctp2_data\english\uidata\layouts\ctp_template.ld l, but the problem isn't a type of font. Times New Roman, Arial, etc. have polish (and greek, russian, and many more) characters. But those characters need more than 256 bits (1 byte) to define. In txt file (which ctp2 uses for its texts) you can use only 1 byte characters. So, I'm looking for an option to change the type of encoding - how force ctp2 to read string like a one character (to implement over-1-byte character) or how to force ctp2 to encode txt files in iso-8859-2 or cpwindows-1250 format (these are polish format, like it in Internet works).

      The any solution which i see now is to prepare new font, were polish characters are in 256 bit range - but it looks like a lot of work.

      regards
      Bazyli

      Comment


      • #4
        I am not sure but I think there are some softwares that can help you design new fonts or convert older fonts to new formats.
        "Democracy is the worst form of government there is, except for all the others that have been tried." Sir Winston Churchill

        Comment

        Working...
        X