so... RE: unicode

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

so... RE: unicode

Post by PouncingAnt »

I've been noticing some changes to the fonts etc. in the nightly change log. Are the changes going in such a direction as to enable Japanese language? (I've resigned myself to the fact my programming skills are still not good enough for OTTD, but translating I can do) :wink:
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
Arnau
Engineer
Engineer
Posts: 54
Joined: 20 Jul 2006 10:18

Post by Arnau »

I'm not a developer but yes Unicode is needed for translating openttd to languages like Japanese or Chinese. Anyway I don't know if everything is ready to start translating but hopefully some developer will tell you.
Sacro
Tycoon
Tycoon
Posts: 1145
Joined: 18 Jun 2005 21:08
Location: Here
Contact:

Post by Sacro »

Well from what I've seen the UTF-8 branch has been merged, which should make way for non latin character sets such as the Japanese, Chinese, Russian, and quite a few more too!

However I don't think the webtranslater2 has been upgraded to UTF-8 yet... though i might be wrong.
We Am De Best

Host of ThroughTheTube site
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Post by Rubidium »

Sacro wrote:However I don't think the webtranslater2 has been upgraded to UTF-8 yet... though i might be wrong.
The webtranslator2 already supports UTF-8; this can be seen by the fact that Ukrainian is supported, which certainly does not use Latin characters.

Japanese should not be a problem, just request a webtranslator account and you can start translating.
User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

Post by PouncingAnt »

many thanks people! I shall get to it shortly. I have my exams early next month though, so we'll see
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
User avatar
mkxx
Engineer
Engineer
Posts: 65
Joined: 06 Jun 2005 22:15
Location: Czech Republic, Prague

Characters

Post by mkxx »

I would like to ask the DEVs, how will be the text drawed in the future (my question is about Czech characters, like Č, Ř, Ů, which are not supported by current font).
If the text will be rendered via current graphics fonts, I would like to participate for drawing Czech characters (ane maybe some ohters) for OTTD.

BTW: small bug about Unicode (in nightly build) - try to save game with non-ASCII<128 characters to the non-Unicode-filesystem. Unicode name from the game gets not converted to the target filesystem charset (Windows, primary CP-1250), but I hope that it will be fixed in the future :)
User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

Post by PouncingAnt »

I dont believe graphic fonts came into it. Imagine drawing all the japanese characters by hand :S would be a mighty task, I'm sure!

EDIT: additionally I cant get the windows japanese input system to work with OTTD. But thats not the hugest problem in the world :wink:
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1791
Joined: 30 Mar 2005 09:43

Post by peter1138 »

Fonts come from either FreeType (with an appropriate font), or via NewGRF Action 12.

Filename/character set conversion for Windows is currently being looked into.
He's like, some kind of OpenTTD developer.
User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

Post by PouncingAnt »

alas, I wanted to play around with the language file format, but my strgen gave me errors for the latest english.txt, so I built strgen from the svn version, and still no luck.

englisht.txt(0): FATAL: cannot open file :(
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

mkxx wrote:I would like to ask the DEVs, how will be the text drawed in the future (my question is about Czech characters, like È, Ø, Ù, which are not supported by current font).
As peter said, either through sprites or by using the appropiate font if you specify any
mkxx wrote:BTW: small bug about Unicode (in nightly build) - try to save game with non-ASCII<128 characters to the non-Unicode-filesystem. Unicode name from the game gets not converted to the target filesystem charset (Windows, primary CP-1250), but I hope that it will be fixed in the future :)
Yes, this is known, we already have this working locally but needs cleanup to go into SVN.
PouncingAnt wrote:EDIT: additionally I cant get the windows japanese input system to work with OTTD. But thats not the hugest problem in the world :wink:
The core framework for IME is in place, but needs more thinking on how to add it. Not sure this'll be in OpenTTD 0.5 but we'll see. For the time being you can however type in kana
PouncingAnt wrote:alas, I wanted to play around with the language file format, but my strgen gave me errors for the latest english.txt, so I built strgen from the svn version, and still no luck.

englisht.txt(0): FATAL: cannot open file :(
How did you start strgen? If you look into its help "--help" you can give it a source and a destination directory. If you 'encode' a language it must be in the same directory as english.txt and the source directory has to be right if the language files are not in the same directory as strgen.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

Post by PouncingAnt »

kana sucks :wink: not really particularly useful for the japanese. But better than nothing. I'm glad to hear the IME support is being worked on though, it will be great, I'm sure.

Cheers for the advice, I'll look into it
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
Arnau
Engineer
Engineer
Posts: 54
Joined: 20 Jul 2006 10:18

Post by Arnau »

PouncingAnt wrote:alas, I wanted to play around with the language file format, but my strgen gave me errors for the latest english.txt, so I built strgen from the svn version, and still no luck.

englisht.txt(0): FATAL: cannot open file :(

If you want to start the translation (even at slow speed) you better ask for an account on Webtranslator2 (http://translator2.openttd.org). Just send him an email. Miham did a great job building webtranslator2 as it's the easiest way to work on the translations.
User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

Post by PouncingAnt »

I already did that. I just wanted to get to translating in the meantime :wink:
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
User avatar
DarkFenX
Engineer
Engineer
Posts: 98
Joined: 16 Oct 2006 20:32
Location: Russia, Saint-Petersburg
Contact:

Post by DarkFenX »

Regarding unicode+freetype support in OTTD...
I've enabled "WITH_FREETYPE", placed corresponding freetype 2.2.1 headers into dev-environment include folder. What i'm supposed to do after it? Use somehow .lib file, or ft's sources in OTTD project?
W/o it i get some unresolved externals (and it's not surprising :) )...
Or freetype support isn't complete?
tia
- It's hot as hell in here.
- You see it too? For me, it's always like this.
-------------------
ICQ: 302028069
Jabber: DarkFenX@jabber.org
User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

Post by PouncingAnt »

Hmm, my email bounced. Any other way of contacting this person?
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
Arnau
Engineer
Engineer
Posts: 54
Joined: 20 Jul 2006 10:18

Post by Arnau »

PouncingAnt wrote:Hmm, my email bounced. Any other way of contacting this person?
You need an email in order to open a translator2 account...
User avatar
PouncingAnt
Transport Coordinator
Transport Coordinator
Posts: 357
Joined: 09 Nov 2004 22:33

Post by PouncingAnt »

yes, I know... Thats why I sent an email. Hence the possibility that the email could bounce. There wouldnt have been an email to bounce otherwise, eh?
NB: the below challenges are still open for submission, so feel free to perform necromancy on them!
Try the PouncingAnt National Monopoly Challenge
Or even better, the PouncingAnt National Monopoly Challenge 2
Or better still, the PouncingAnt National Monopoly Challenge 3
Or, the PouncingAnt National Monopoly Challenge 4

Or try my scenario instead!

-(A lazy) OpenTTD Japanese Translator-
-(A lazy) PNGcodec user-
"You get what you pay for, so pay attention!"

Patches:
Company Station Stats
Arnau
Engineer
Engineer
Posts: 54
Joined: 20 Jul 2006 10:18

Post by Arnau »

PouncingAnt wrote:yes, I know... Thats why I sent an email. Hence the possibility that the email could bounce. There wouldnt have been an email to bounce otherwise, eh?
Sorry I misunderstood. My english isn't the best... Try again or wait and hope Miham will see this message in the forum.
User avatar
glx
OpenTTD Developer
OpenTTD Developer
Posts: 623
Joined: 02 Dec 2005 15:43
Location: Drancy(93) - France
Contact:

Post by glx »

try to contact MiHaMiX on #openttd channel on irc.oftc.net
User avatar
Darkvater
Tycoon
Tycoon
Posts: 3053
Joined: 24 Feb 2003 18:45
Location: Hong Kong

Post by Darkvater »

DarkFenX wrote:Regarding unicode+freetype support in OTTD...
I've enabled "WITH_FREETYPE", placed corresponding freetype 2.2.1 headers into dev-environment include folder. What i'm supposed to do after it? Use somehow .lib file, or ft's sources in OTTD project?
W/o it i get some unresolved externals (and it's not surprising :) )...
Or freetype support isn't complete?
tia
Download useful.zip v1.2 from sourceforge, the .lib file is in there.

http://sourceforge.net/project/showfile ... _id=114307
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 9 guests