|
Thread: Uppercase Polish characters for WoG/ERA | |
|
Globtroger
![Globtroger](images/avatars/Shakti.jpg)
![](images/rta.gif) ![](images/rta.gif)
Tavern Dweller
|
posted July 06, 2024 05:50 PM |
|
|
Uppercase Polish characters for WoG/ERA
Hello everybody,
I'm working on a mod for ERA with the intention of supplying a polish translation for my custom scenarios and scripts. I've been trying to figure out how to get polish fonts to display in the game and so far I figured out the following:
1) You need to replace default Cyrillic fonts with the European ones, which I've done.
2) You need to input the polish characters in the following way: ¹ æ ê ³ ñ ó œ Ÿ ¿
...and they will appear correctly in the game
So that's all fine and well except I have no clue how to display the uppercase version of all of these. Figuring out the small case was easy because I could just look at how they were typed in the standard homm3 maps, but uppercase are less common and would need to be in a sentence starter.
I found this link from years ago:
https://www.forumweb.pl/poczatkujacy-webmaster/polskie-znaki,198
Which suggested that the uppercase will be something like: ¥ Æ Ê £ Ñ Ó Œ ¯ but I've been getting no luck. Just a bunch of nonsense is coming out.
I've tried asking on the discord server but not a lot of people were able to help me with font related trouble. Thought there might still be some old heads out here who would know.
Please help!
|
|
Globtroger
![Globtroger](images/avatars/Shakti.jpg)
![](images/rta.gif) ![](images/rta.gif)
Tavern Dweller
|
posted July 06, 2024 06:31 PM |
|
|
Edit: I'm very close to figuring it out. The solution is you have to place the text with special characters in json and get with SN:T with ERM. Just using IF:M by itself will not produce the desired outcome.
And so it turns out these chars: ¥ Æ Ê £ Ñ Ó Œ � ¯
Do actually work to produce polish special letters but I'm missing one as the question sign character didn't work. I don't think it's visible here on this forum as it's prob not supported but you can see it if you follow my previous link.
This leaves me with the quest to find the last missing letter...
Edit: Damn it, that question mark character is a replacement block for unknown chars. The poster on that forum posted the right chars but the forum didn't recognise one of them and so it's lost...
I guess it's just trial and error now...
|
|
Globtroger
![Globtroger](images/avatars/Shakti.jpg)
![](images/rta.gif) ![](images/rta.gif)
Tavern Dweller
|
posted July 06, 2024 07:31 PM |
|
|
By dumb luck, the guy that posted on that forum happens to be the admin and is still active. I wrote to him in hopes that he'll write back...
The quest for the missing letter will go on hold for the time being, maybe he'll write back. Big hopes.
|
|
baronus
![baronus](images/avatars/Baronus-2020.png)
![](images/rta.gif) ![](images/rta.gif)
![](images/star.gif) ![](images/star.gif) ![](images/star.gif) ![](images/star.gif) ![](images/star.gif) ![](images/star.gif)
Legendary Hero
|
posted July 07, 2024 10:37 AM |
|
|
What you produce? We have all fonts inside lod file? Only problem was too big size. Use Hota Polish fonts becouse was corrected.
|
|
Globtroger
![Globtroger](images/avatars/Shakti.jpg)
![](images/rta.gif) ![](images/rta.gif)
Tavern Dweller
|
posted July 07, 2024 10:44 AM |
|
|
They weren't corrected. I downloaded the polish translation for 1.7 hota from here:
https://www.hota.acidcave.net/newsitem1929.html#1929
And the fonts were the same ones that were used in older wog versions. Standard hota fonts were no good as well as they contained Cyrillic chars instead of European ones. Anyway, fonts aren't my problem now. I've got all the fonts that I need. I just need to know how to get the game to display the characters...
It's not so simple. You have to feed them in a specific way. I figured out all of them with the exception of this one:
https://en.wikipedia.org/wiki/%C5%B9
I'm still waiting for reply from the other guy on the forum but it's not a big deal either way. Luckily, it's a very uncommon character in practical use.
|
|
Globtroger
![Globtroger](images/avatars/Shakti.jpg)
![](images/rta.gif) ![](images/rta.gif)
Tavern Dweller
|
posted July 07, 2024 12:12 PM |
|
|
Okay, I found the answer. It's to do with character encoding. Polish special characters are in UTF-8, homm3 uses ANSII win-1251 encoding. So you need the chars in ansii.
The ansii for the missing character is <0x8f>
So full polish char map is:
¹ æ ê ³ ñ ó œ Ÿ ¿ ¥ Æ Ê £ Ñ Ó Œ <0x8f> ¯
|
|
baronus
![baronus](images/avatars/Baronus-2020.png)
![](images/rta.gif) ![](images/rta.gif)
![](images/star.gif) ![](images/star.gif) ![](images/star.gif) ![](images/star.gif) ![](images/star.gif) ![](images/star.gif)
Legendary Hero
|
posted July 07, 2024 08:20 PM |
|
Edited by baronus at 13:03, 08 Jul 2024.
|
baronus
Its imposible. They told that font was reduced because our version was too big since 1999... It was repaired...
|
|
Bersy
![Bersy](images/blank.gif)
![](images/rta.gif) ![](images/rta.gif) ![](images/rta.gif) ![](images/rta.gif) ![](images/rta.gif)
![](images/star.gif) ![](images/star.gif) ![](images/star.gif) ![](images/star.gif) ![](images/star.gif)
Honorable
Supreme Hero
|
posted July 08, 2024 06:14 PM |
|
|
The game uses the encoding (code page) set in windows settings for non-unicode programs. For Russian it's Windows-1251. Maybe Windows-1250 is used for Polish.
https://en.wikipedia.org/wiki/Windows-1250
|
|
|