The problem with non-English letters

Started by ags_user, Sat 27/04/2013 09:53:04

Previous topic - Next topic

ags_user

I'm trying to do the translation into the German language, but in the file "de.trs" (AGS 3.2.1) are not saved the following German letters:
ü
ä
ö
àŸ

Khris

The translation file is just a text file, so the characters should end up in the file just fine. I guess what's happening though is that the font in the game doesn't have them.
Either import a TrueType font into the game, or if you're going for a lowres look and want to use a pixel font, get Radiant's FontEdit and change some of the unused characters in the AGS font to the German ones.
For instance ] is usually not used, or *.
Just do a search and replace over the entire translation file.

You can get FontEdit here: click

ags_user

These letters cannot be saved in a plain text file (ANSI). They can only be saved in UTF-8 encoding.

Khris

What text editor are you using? I tried to save an ANSI document containing äöü in Notepad++ and it saved and displayed fine. Even Windows' Notepad should be capable of this.

Crimson Wizard

AFAIK those characters are too from ANSI set. Their codes are below 256.

ags_user

Could you save these letters in a file (ANSI) and forward it to me (here), so I can view it?

Crimson Wizard

#6
Hmm... or maybe I was mistaken.

EDIT: I think their view may depend on regional setting.
You need to view in Western-European Windows-1252 codepage, for example.
If your OS have other default setting (e.g. Eastern-european) you will see different letters in text editor.

Crimson Wizard

Okay, sorry, I was confused a bit for a moment.

Thing is that ANSI does not cover all possible symbols at once. That is why its representation depends on selected regional setting. Depending on that setting you may see one letters or another. Since symbols are simply numbers (0-255), it does not really matter, what matters is how the AGS will treat them, or more specifically, what font characters will be assigned to these character codes. (Thus you may create a font where all characters are misplaced).

To be able to see those characters when you edit text (or review it) you need to select proper regional code page in the text editor. That will not change the symbol codes themselves, only their representation.
If the font you are using in AGS has those characters on proper places, then you will see same result in AGS game.


Uhh, I hope this makes sense to you, sometimes I fail to find proper words to explain things (not native-english speaker) ;).

ags_user

Crimson Wizard, thanks for the reply!

I was afraid of that answer... because I thought everything will be easy. Apparently I have to ask the developers of games in German, how they solved this problem.

SMF spam blocked by CleanTalk