ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Translation Help (https://www.esoui.com/forums/forumdisplay.php?f=186)
-   -   Question bout "Umlaut" and "special characters" (e.g. french) in LUA (https://www.esoui.com/forums/showthread.php?t=4188)

Baertram 01/05/15 05:51 PM

Question bout "Umlaut" and "special characters" (e.g. french) in LUA
 
Hey there,

I wonder if ESO LUA will work correctly with the umlauts and e.g. french characters like è, é and ê?
Most of the time the addons seem to work well, but some users use special characters for the translations (escape charaters, looks like UTF-8 characters or something like that).

Here is an example list:
Lua Code:
  1. --[[ Umlauts & special characters list
  2.    à : \195\160    è : \195\168    ì : \195\172    ò : \195\178    ù : \195\185
  3.    á : \195\161    é : \195\169    í : \195\173    ó : \195\179    ú : \195\186
  4.    â : \195\162    ê : \195\170    î : \195\174    ô : \195\180    û : \195\187
  5.    ã : \195\163    ë : \195\171    ï : \195\175    õ : \195\181    ñ : \195\177
  6.    æ : \195\166    ø : \195\184
  7.    ç : \195\167    œ : \197\147
  8.    Ä : \195\132    Ö : \195\150    Ü : \195\156    ß : \195\159
  9.    ä : \195\164    ö : \195\182    ü : \195\188
  10. ]]

Do we need to use these escape characters for our translations or can we just use the normal characters like ä Ä ö Ö ü Ü é è ê in the localization lua files? Or doesn#t it make any difference?

Tahnks.

Baertram

Garkin 01/05/15 06:29 PM

It depends on encoding used in your text editor. Game supports UTF-8 encoding, so make sure that you have selected correct encoding in your text editor. All text editors by default use the same encoding as operating system, so for example I had to change encoding in editor from Windows-1250 to UTF-8 w/o BOM (byte order mark).

In short - if you save file encoded as UTF-8, you don't need to replace special characters with escape codes.

Ayantir 01/05/15 08:43 PM

no problem for writing special european characters such as éàçôû, etc. encode your files in utf-8 and all will be okay, but eso isn't compatible utf-8 at all if you tend tu write some special characters in chineese, korean, indian, etc. ask to russians :D

Baertram 01/05/15 08:44 PM

Alright, thx.

Baertram 01/06/15 09:51 AM

Yes Ayantir, I noticed some characters will not be shown correctly even if you use UTF-8 w/o BOM files in your addons and if you escape the characters :-(

e.g. the spanish character
ñ : \195\177

I've tried it with and without escaping them. Eso will only show a "x" instead.

Ayantir 01/06/15 11:36 AM

Yes, ISO-8859-1 is not really implemennted entirely, quite strange, but reallity.
We got base latin and not latin1. and special chars are coded on 2 bytes

mctaylor 01/09/15 05:32 PM

Quote:

Originally Posted by Baertram (Post 18174)
[...] some characters will not be shown correctly even if you use UTF-8 [without] BOM [...]

e.g. the spanish character
ñ : \195\177

One possible factor is that I doubt (I am guessing here) that it is handling "font substitution" so that if the current font (er, typeface or font family) does not have a particular glyph (e.g. ñ - 'n' with an accent/diacritic) the OS's type system (such as used in most traditional applications such as a web browser or word processor) will try to find the glyph in a related or "base" font (family).

I suspect the limited language support is somewhat reflective of the translations provided by Bethesda (no Spanish or Russia I believe).

So try to ensure the glyph is present in the font being used. I suspect many less common fonts (i.e. not system or general purpose fonts like Helvetica or Arial) will lack glyphs with accents. It is pretty common situation in "fantasy" or "fun" fonts.


All times are GMT -6. The time now is 11:24 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI