Author Topic: Korean translation  (Read 26584 times)

Offline einsys

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Korean translation
« on: November 11, 2013, 04:45:54 am »
Hi, I've been translating scripts into Korean since a few days ago and it's almost completed.
But there is a problem about font. There are at least 650 different chars in the Korean script(it will be more if I translate rest of the scripts) and it will take too much time to draw them all.
Could you recommend me a good tool for generating bitmap unicode characters? BMFont is the best software so far but its character size varies for some reason and I dont' know why.

And if you can speak Korean, please help me! I'm lonely. (ㅠ_ㅠ)
영한 번역 가능하신 분 참여좀 부탁드립니다. ㅠㅠ
부자연스러운 항목에 코멘트만 달아주셔도 도움이 될 것 같습니다.

Thanks.
« Last Edit: November 11, 2013, 04:52:18 am by einsys »

Offline Hythlodaeus

  • Colonel
  • ****
  • Posts: 276
    • View Profile
Re: Korean translation
« Reply #1 on: November 11, 2013, 12:40:43 pm »

Offline starwindz

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Re: Korean translation
« Reply #2 on: November 11, 2013, 05:03:57 pm »
Please check out following link.
https://m.blog.naver.com/koreaeogks/60203280452

Offline einsys

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Korean translation
« Reply #3 on: November 12, 2013, 02:55:35 am »
https://www.codehead.co.uk/cbfg/
https://www.angelcode.com/products/bmfont/

Have you tried any of these?

Yes, I tried BMFont again and it seems works. Thanks.


Please check out following link.
https://m.blog.naver.com/koreaeogks/60203280452

Thanks starwindz, I'm going to draw some Korean characters for testing purpose.

Offline einsys

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Korean translation
« Reply #4 on: November 12, 2013, 08:50:22 am »
Tesing. Unicode works fine! But small font looks horrible on screen.

Offline Hythlodaeus

  • Colonel
  • ****
  • Posts: 276
    • View Profile
Re: Korean translation
« Reply #5 on: November 12, 2013, 11:49:59 am »
Yeah the UI will likely have to be adapted for asian fonts, but in the meantime, you can try playing around with font.dat, which controls the width, height and spacing of the font.

Offline einsys

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Korean translation
« Reply #6 on: November 12, 2013, 01:57:13 pm »
Yeah the UI will likely have to be adapted for asian fonts, but in the meantime, you can try playing around with font.dat, which controls the width, height and spacing of the font.

Thanks Hythlodaeus, but I couldn't find any adjustable values in font.dat. It seems the file only contains a series of characters in Big.fnt and Small.fnt.

Offline starwindz

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Re: Korean translation
« Reply #7 on: November 12, 2013, 02:36:56 pm »
Tesing. Unicode works fine! But small font looks horrible on screen.
How about changing to another fonts for better looking? This issue should be solved for proper Korean translation, I think.

Offline starwindz

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Re: Korean translation
« Reply #8 on: November 12, 2013, 02:45:15 pm »
Thanks Hythlodaeus, but I couldn't find any adjustable values in font.dat. It seems the file only contains a series of characters in Big.fnt and Small.fnt.
Font.dat seems to contain some kind of adjustable values such as width and height shown as follows. Please check it out.

fonts:
  - id: FONT_BIG
    image: FontBig.png
    width: 16
    height: 16
    spacing: 0
  - id: FONT_SMALL
    image: FontSmall.png
    width: 8
    height: 9
    spacing: -1
  - id: FONT_GEO_BIG
    image: FontGeoBig.png
    width: 5
    height: 9
    spacing: 1
  - id: FONT_GEO_SMALL
    image: FontGeoSmall.png
    width: 5
    height: 7
    spacing: 1
« Last Edit: November 12, 2013, 02:52:02 pm by starwindz »

Offline Hythlodaeus

  • Colonel
  • ****
  • Posts: 276
    • View Profile
Re: Korean translation
« Reply #9 on: November 12, 2013, 03:33:16 pm »
Thanks Hythlodaeus, but I couldn't find any adjustable values in font.dat. It seems the file only contains a series of characters in Big.fnt and Small.fnt.

That leads me to conclude you're using 0.9 stable. That version is highly deprecated, and the font system has been overhauled ever since. What you want to do is get the latest nightly from here. Fonts are now simple pngs editable with mspaint, and font.dat coordinates size and spacing.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2159
    • View Profile
Re: Korean translation
« Reply #10 on: November 12, 2013, 05:34:46 pm »
Also borderless characters will probably look bad on any complex background.

Offline einsys

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Korean translation
« Reply #11 on: November 13, 2013, 02:59:48 am »
OMG now I get it. Thank you so much!

Offline einsys

  • Squaddie
  • *
  • Posts: 8
    • View Profile
Re: Korean translation
« Reply #12 on: November 13, 2013, 04:55:58 am »
I modified the configuration file to use only the big font. There's a lot of gliches but I think this is enough to use for in-game testing. Need more time to make smaller font.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2159
    • View Profile
Re: Korean translation
« Reply #13 on: November 13, 2013, 05:56:24 am »
Yeah the size limitations for east-asian languages have been discussed before in the Japanese and Chinese threads before, there's no easy way to work around it. :( An option might be digging up old game fonts, as they usually had custom bitmap fonts to preserve readability in very small screen sizes.

Still good job, the custom font seems to work well. :) Could you explain how you created the font in case it's useful for other translators? Also are there any special rules (numbering, wordwrapping, etc.) that OpenXcom needs to be aware of for formatting Korean text, or does it work fine?

Offline starwindz

  • Sergeant
  • **
  • Posts: 14
    • View Profile
Re: Korean translation
« Reply #14 on: November 13, 2013, 10:05:09 am »
@einsys Could you please upload all the data along with font.dat and pngs on this topic?