Skip to main content
Topic: Using UTF8 ch****t in Simutrans translations (Read 6928 times) previous topic - next topic

Using UTF8 ch****t in Simutrans translations

Hi,
 it's possible that Simutrans will use UTF8 ch****t in translation texts?
I think it will remove the problems with encoding in "other" languages and simplify translating (SimuTranslator).

Thanks, Tomas

Re: Using UTF8 ch****t in Simutrans translations

Reply #1
I'll just add that this would probably need libiconv.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: Using UTF8 ch****t in Simutrans translations

Reply #2
Simutrans uses UTF-8 since 85.01, was one of the very first thing I did to the code. However, SDL has some problems (understatement) with two-byte languages like chinese, japanese and so on and for that the GDI version is mandantory.

Re: Using UTF8 ch****t in Simutrans translations

Reply #3
So it is already possible to have translation tab files in unicode?

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: Using UTF8 ch****t in Simutrans translations

Reply #4
The chinese, belorussian, russian and japanese are UTF-8. THese files just need to start with ยง as the very first character to recognize them as unicode.

Re: Using UTF8 ch****t in Simutrans translations

Reply #5
So, just add BOM and paragraph and that's it? Then it could be made standard for all languages?

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: Using UTF8 ch****t in Simutrans translations

Reply #6
No, better not. SDL support Uunicode not really very well. The is why I activate it only for few languages.

Re: Using UTF8 ch****t in Simutrans translations

Reply #7
prissi: and is there any hope that all languages will be using UTF8 (in imminent future)?

 

Re: Using UTF8 ch****t in Simutrans translations

Reply #8
Prissi just said it is not a good idea ::)

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Re: Using UTF8 ch****t in Simutrans translations

Reply #9
Why? Most editors show their native encoding (or can be set to) and simutranslator work well too. This is only of concern for people editing translation on machines without the proper encoding. But then, use iconv, (or Notepad) and make Unicode out of it. Simutrans can read UTF-8 too. (But without a proper Latin2.bdf, it cannot display it correctly).