The International Simutrans Forum

Development => Translation and Help Texts => Topic started by: Combuijs on March 26, 2013, 08:54:57 PM

Title: Thai translation
Post by: Combuijs on March 26, 2013, 08:54:57 PM
I got a personal message from sirpong. He wants to translate Simutrans into Thai. Now I can see some problems with that, because Thai uses a different character set than all other translations we have. How can he proceed with this?

Do we support those characters at the moment in Simutrans itself? If so, do we support those characters on the Simutranslator site? I could not answer those questions, maybe one of you can?

Title: Re: Thai translation
Post by: prissi on March 26, 2013, 09:58:36 PM
Simutranslator supports UTF8, thus thai is not a problem. We do not have a nice thai font, although the chines font is relatively complete. I have to check what range is thai.
Title: Re: Thai translation
Post by: Combuijs on April 08, 2013, 08:09:31 PM
Any news on this? I got a very enthousiastic translator waiting...

Quote
how's the discussion about the Thai translation.
you've got some answer from the development team?

I really want and need to translate the Simutrans game to Thai version. It will be great fun for Thai people I think :)
So man, if you get some answer from the devteam please reply this mail
Title: Re: Thai translation
Post by: sirpong on April 08, 2013, 08:36:54 PM
Thank you Combuijs for helping :)

I know that the simutrans devteam is expert,  I think I can start translation soon :)


Thank you!

Title: Re: Thai translation
Post by: prissi on April 08, 2013, 09:44:44 PM
It seems we do not have a thai bdf font; however, thai is a single codepage. Thus there is hope that there are useful bdf fonts around.
Title: Re: Thai translation
Post by: An_dz on April 08, 2013, 10:39:51 PM
I found these in public domain:
ftp://linux.thai.net/pub/thailinux/software/thaixfonts

Not sure if they are complete.

Edit:
Can't Thai be already included in simutranslator as we search for a font?
Title: Re: Thai translation
Post by: Dwachs on April 09, 2013, 06:24:46 AM
Without font you would not be able to test it in-game :/

In fact, thai language has been added to translator already.
Title: Re: Thai translation
Post by: prissi on April 09, 2013, 09:17:52 PM
The next nightly will contain a font with thai characters in cyr.bdf. Albeits they may be cut off or ugly, for all I know ...
Title: Re: Thai translation
Post by: Combuijs on April 09, 2013, 09:35:24 PM
I have reported it all to sarpong / MR.BK together with some tips how to get a translation account and where he can find the nightly.

Thanks to all involved!
Title: Re: Thai translation
Post by: Dwachs on April 10, 2013, 06:25:48 AM
Created account for MRBK at translator site.

MRBK, please let us know in case something is not working.
Title: Re: Thai translation
Post by: sirpong on April 10, 2013, 06:12:05 PM
Hi all!

Please call me Pee :)

I think Thai will be big problem because some fonts can sometimes be under and/or over the other one. I've tried to change station names from English into Thai (BANGKOK) - กรุงเทพมหานคร, the result will be (กรุงเทพมหานคร) but the game displayed (กร ุงเทพมหานคร). Characters that should be under (ร) jump instead one step forward and stands as next. I can read it but it is not good enough. The player will be confused.

I think devteam can fix the problem.

thanks so much everyone for helping:)




PS 1. Google translate from SV to EN
PS 2. I can't login to simutranslator with MRBK :(

Title: Re: Thai translation
Post by: Dwachs on April 10, 2013, 06:23:34 PM
Please try the win-SDL build. I could login with the data I sent you ???
Title: Re: Thai translation
Post by: sirpong on April 10, 2013, 06:37:26 PM
Quote from: Dwachs on April 10, 2013, 06:23:34 PM
Please try the win-SDL build. I could login with the data I sent you ???

Not better  :-[
Title: Re: Thai translation
Post by: Dwachs on April 10, 2013, 06:57:14 PM
It looks like the problem is that these combined characters are stored as two individual characters in the text but are displayed as one combined character.
Title: Re: Thai translation
Post by: sirpong on April 10, 2013, 07:07:26 PM
Unreadable text!
Title: Re: Thai translation
Post by: Dwachs on April 10, 2013, 07:18:06 PM
Where do you got that th.tab file from?

Please use the online translator.

The display of Thai character can be fixed. It requires a lot of programming work: either switch text rendering to an external library or put in special treatment of Thai characters. The more text is translated to Thai the higher is the pressure on developers to fix text handling ;)
Title: Re: Thai translation (programmers needed?)
Post by: IgorEliezer on April 10, 2013, 07:56:57 PM
Quote from: Dwachs on April 10, 2013, 07:18:06 PM
The more text is translated to Thai the higher is the pressure on developers to fix text handling ;)

I think it's time to learn a new language. *trollface*

j/k

Other possibility would be a programmer outside the devteam volunteers to code a fix for it.
Title: Re: Thai translation
Post by: prissi on April 11, 2013, 12:00:57 AM
The problem with the characterssi that their width is set to zero. However, so far simutrans does not allow for zero width.
Title: Re: Thai translation
Post by: Dwachs on April 11, 2013, 07:48:45 AM
Quote from: prissi on April 11, 2013, 12:00:57 AM
The problem with the characterssi that their width is set to zero. However, so far simutrans does not allow for zero width.
No, the have positive width. The problem is more of the type to combine two characters to one, line a" -> ä
Title: Re: Thai translation
Post by: prissi on April 11, 2013, 02:53:04 PM
With zero logical witdth and non-zero screen width, overlapping is easily achieved ...
Title: Re: Thai translation
Post by: Frank on April 11, 2013, 08:08:07 PM
I think is a dev problem not a translate problem

please move the topic to dev board
Title: Re: Thai translation
Post by: prissi on April 13, 2013, 08:36:15 PM
The problem is the definition of the bdf font. As such, I think it would be better here. I.e. what width should be used for the acent letters.