Warcraft II Forum

Warcraft II => Server.War2.ru => Topic started by: Storycraft on April 02, 2019, 02:04:27 PM

Title: War2 font translation to korean
Post by: Storycraft on April 02, 2019, 02:04:27 PM
Hello,  iL. I will make Warcraft II BNE Korean translation. I've done StarCraft Korean translation before.
Korean character uses 2 bytes, but Warcraft II BNE only supports 1 byte. It should use only 128-255 addresses. So It can not display Korean language perfectly, compression is required.
I drop *.fnt files(font6.fnt / font10.fnt / font12.fnt / font32.fnt / font50.fnt) on War2FontTool.exe but there is no response (both http://en.war2.ru/downloads/ (http://en.war2.ru/downloads/) and http://forum.war2.ru/index.php/topic,4701.15.html (http://forum.war2.ru/index.php/topic,4701.15.html))
Can you help me? If you send me the extracted bmp files, I will return it after editing.
Thank you!
Title: Re: Re: War2Combat becomes multilingual: French,German,Italian,Polish,Russian,Spanish
Post by: iL on April 02, 2019, 03:28:53 PM
Hello, Storycraft!
We talked about Simplified Chinese translation recently: http://forum.war2.ru/index.php/topic,4695.0.html (http://forum.war2.ru/index.php/topic,4695.0.html)

The big problem with war2 that it doesn't support multibyte characters at all. I thought about what can be done with that: http://forum.war2.ru/index.php/topic,4706.0.html (http://forum.war2.ru/index.php/topic,4706.0.html)
But i still have no ideas.

I don't know starcraft well, but as i understand, it has multibyte support.

So, send your fonts somewhere to look into that, but i don't think there will be an easy way to learn war2 how use them.
Title: Re: Re: War2Combat becomes multilingual: French,German,Italian,Polish,Russian,Spanish
Post by: Storycraft on April 03, 2019, 06:03:30 PM

Thank you! It is bad readability, but it is possible Korean language In 1 byte :)
Can I set the width value of each letter? (example: m => 10 pixels, i => 3pixels) If so, is it possible even in negative number? (example: m => - 10 pixels i => - 3pixels ok?)

Or is the width of each bmp files the same as the length of the letter?
I can not use that War2FontTool.exe file. Would you like to convert this attachment file to font10.fnt? I will test it.
Title: Re: Re: War2Combat becomes multilingual: French,German,Italian,Polish,Russian,Spanish
Post by: iL on April 04, 2019, 03:37:43 AM
Can I set the width value of each letter?
Yes, each letter has it's own size in font file.
I see your font have 128 bytes, so i think that should be implemented same way as russian font:
Chars 0-127 is the 1-st part of ASCII table, it's for english and common part for all other languages. And the 2-nd part is russian: 128-255.

So, i think korean charset can be released something like tha way:
1. Unpack font10x.fnt from war2.
2. Copy your letters with codes 128-255 replacing the existing letters if needed
3. Build appeared font again with War2FontTool
4. The most interesting question: how to sync your korean keyboard with korean font? Try to type each korean letter opn the keyboard and check which latter appears on screen. Not sure about korean, bur in russain there have been absolute mix: letters with some very strange order.
5. Reorder your letters to make them similar to keyboard.
6. After that you can try to rewrite text strings in game.

Oh, i forgot the main thing:
You should use exactly the same colors in your .bmp images as in images exported from the english font. And also the same bmp format.
For example, color code 03 for the main color, color code 05 for shadow, etc. Should be possible to auto convert colors for all your images automatically somehow, i hope so.
Use exported bmp from font as a template.
Title: Re: Re: War2Combat becomes multilingual: French,German,Italian,Polish,Russian,Spanish
Post by: Storycraft on April 04, 2019, 12:11:19 PM

3. Build appeared font again with War2FontTool <====== I am not able to proceed it from here
Because I can not extract English fonts using War2fonttool.exe, so I do not have template. Please send me the template.
If you solve the font issue, I can easily handle the rest.

I found there are two ways to write Korean letter in ASCII. Please have a look at the attached.


Title: Re: Re: War2Combat becomes multilingual: French,German,Italian,Polish,Russian,Spanish
Post by: iL on April 05, 2019, 03:42:39 AM
3. Build appeared font again with War2FontTool <====== I am not able to proceed it from here
Because I can not extract English fonts using War2fonttool.exe, so I do not have template. Please send me the template.
What happens with War2FontTool for you?
I think you should find the way to use it. You need to pack your font many times while testing that new font, so there will not be possible to ask about packing/unpacking it every time.
To use War2FontTool you should use command prompt:
War2FontTool.exe c:\path_to_your_font\font10x.fnt
Then it will create up bmps as c:\path_to_your_font\font10x*.bmp
Or (to do the same) drag-n-drop your c:\path_to_your_font\font10x.fnt to War2FontTool.exe in windows explorer.
That should work fine: works for me, works for Lampchops, for several more people who tried it...

I found there are two ways to write Korean letter in ASCII. Please have a look at the attached.
Well, i'd say the 2-nd way is possible, the 1-st way is not: war2 supports writing from left to right only.
At the same time i think that will be quite difficult to convert your texts into such format. I don't know how that works in Korean though, maybe that is some kind of popular way to avoid such technical problems...
Title: Re: War2 font translation to korean
Post by: Storycraft on April 05, 2019, 05:34:04 AM
Mission successful :) Thank you!
"font/font12.fnt" is not a source but I was using it. "art/font12x.fnt" is right. I'm sorry for the trouble with my simple mistake.
Thank you very much!

Title: Re: War2 font translation to korean
Post by: iL on April 05, 2019, 06:51:06 AM
Mission successful :) Thank you!
"font/font12.fnt" is not a source but I was using it. "art/font12x.fnt" is right. I'm sorry for the trouble with my simple mistake.
Thank you very much!
Wow! Nice!
Good start for the big job.
Title: Re: War2 font translation to korean
Post by: Muz on December 31, 2019, 02:21:15 AM
Which software do you use Storycraft to translate Starcraft version?