Localized game strings in OpenMW

Everything about development and the OpenMW source code.
Locked
User avatar
lgromanowski
Site Admin
Posts: 1193
Joined: 05 Aug 2011, 22:21
Location: Wroclaw, Poland
Contact:

Localized game strings in OpenMW

Post by lgromanowski »

lgro wrote: Hi,
I have made small changes in OpenMW encoding module (ToUTF8), EFSReader, MWWorld and now OpenMW can display localized strings :D

Before change:
Image

after change:
Image

There is still some minor thing with space between some characters like "i" and "?" (l with stroke)
as you can see on image above (red marked parts), but I guess it should be easy to fix.

I will push a branch called "fonts" to the github in few moments.

Switching between encoding will be available via commandline option:

Code: Select all

 --encoding 
by default en (english) is used.
lgro wrote: Branch is visible on github:
https://github.com/lgromanowski/openmw/tree/fonts
:)
ap0 wrote: oO
Nice !
lgro wrote: OK, some changes - I have added win1251 encoding (Cyrillic) and changed command line option parametes, so now it looks like that:

Code: Select all

 --encoding arg (=win1252)        Font encoding used in OpenMW game messages:
                                   
                                   win1250 - Central and Eastern European such 
                                   as Polish, Czech, Slovak, Hungarian, 
                                   Slovene, Bosnian, Croatian, Serbian (Latin 
                                   script), Romanian and Albanian languages
                                   
                                   win1251 - Cyrillic alphabet such as Russian,
                                   Bulgarian, Serbian Cyrillic and other 
                                   languages
                                   
                                   win1252 - Western European (Latin) alphabet,
                                   used by default
and removed "font" branch becouse of rebasing this change to upstream/next. New branch is called fonts2
Zini wrote: Looks good. Funny! All the time we thought it was a font problem, while it actually was an encoding problem.

Minor issue: You call it font encoding, But I think the correct terminology is character encoding, right? The font is just the graphical representation of the characters on the screen, but what you fixed is at the esm/esp strings to utf8 conversion stage, right?

btw. this seems to address this issue: http://bugs.openmw.org/issues/3

Could someone confirm that our current font also supports Russian letters? (I guess all other languages should be covert now).
lgro wrote:
Zini wrote:Looks good. Funny! All the time we thought it was a font problem, while it actually was an encoding problem.

Minor issue: You call it font encoding, But I think the correct terminology is character encoding, right?
Yes, you're right - I will correct it in next commit.
btw. this seems to address this issue: http://bugs.openmw.org/issues/3
I will reassign to myself it if you don't mind.
Zini wrote: Sure. But I would like a confirmation that the Russian letters are in our font, before we close it.
lgro wrote:
Zini wrote:Sure. But I would like a confirmation that the Russian letters are in our font, before we close it.
Sure, no problem.
K1ll wrote: Windows 1250 is also used for german characters and i can confirm that they work.
Star-Demon wrote: Great work!
Zini wrote: *push*
But I would like a confirmation that the Russian letters are in our font,
Anyone? Building my next branch should offer an easy way to test (if you can build OpenMW).
scone wrote: Hello!
I can confirm that russian letters works now in the -next branch

screenshot:
http://img21.imageshack.us/img21/1503/omwrus.png
Zini wrote: Great! Thank you.
Locked