Thread Tools
Old February 7, 2003, 11:58   #1
bazyli
Settler
 
Local Time: 15:53
Local Date: November 1, 2010
Join Date: Feb 2003
Posts: 2
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
bazyli is offline  
Old February 9, 2003, 08:56   #2
Tamerlin
Call to Power II Democracy GameCTP2 Source Code Project
King
 
Tamerlin's Avatar
 
Local Time: 17:53
Local Date: November 1, 2010
Join Date: Apr 2002
Location: Toulouse (South-western France)
Posts: 2,051
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.
__________________
"Democracy is the worst form of government there is, except for all the others that have been tried." Sir Winston Churchill

Last edited by Tamerlin; February 9, 2003 at 09:56.
Tamerlin is offline  
Old February 9, 2003, 12:40   #3
bazyli
Settler
 
Local Time: 15:53
Local Date: November 1, 2010
Join Date: Feb 2003
Posts: 2
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
bazyli is offline  
Old February 9, 2003, 14:30   #4
Tamerlin
Call to Power II Democracy GameCTP2 Source Code Project
King
 
Tamerlin's Avatar
 
Local Time: 17:53
Local Date: November 1, 2010
Join Date: Apr 2002
Location: Toulouse (South-western France)
Posts: 2,051
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
Tamerlin is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:53.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team