I18N - Charset: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(update top most characters)
m (add stats table)
Line 386: Line 386:
|-
|-
|1
|1
|Ã
|í
|715
|715
|


|-
|-
Line 393: Line 394:
|674
|674
|


|-
|-
Line 398: Line 400:
|524
|524
|


|-
|-
Line 403: Line 406:
|303
|303
|


|-
|-
Line 408: Line 412:
|288
|288
|


|-
|-
Line 413: Line 418:
|283
|283
|


|-
|-
Line 418: Line 424:
|270
|270
|German


|-
|-
Line 423: Line 430:
|203
|203
|


|-
|-
Line 428: Line 436:
|200
|200
|Dansk


|-
|-
Line 433: Line 442:
|182
|182
|


|-
|-
Line 438: Line 448:
|175
|175
|


|-
|-
Line 443: Line 454:
|168
|168
|


|-
|-
Line 448: Line 460:
|148
|148
|


|-
|-
Line 453: Line 466:
|142
|142
|


|-
|-
Line 458: Line 472:
|141
|141
|


|-
|-
Line 463: Line 478:
|140
|140
|


|-
|-
Line 468: Line 484:
|119
|119
|


|-
|-
Line 473: Line 490:
|109
|109
|


|-
|-
Line 478: Line 496:
|99
|99
|


|-
|-
Line 483: Line 502:
|97
|97
|


|-
|-
Line 488: Line 508:
|91
|91
|


|-
|-
Line 493: Line 514:
|86
|86
|German


|-
|-
Line 498: Line 520:
|83
|83
|


|-
|-
Line 503: Line 526:
|77
|77
|


|-
|-
Line 508: Line 532:
|67
|67
|


|-
|-
Line 513: Line 538:
|65
|65
|


|-
|-
Line 518: Line 544:
|56
|56
|


|-
|-
Line 523: Line 550:
|52
|52
|


|-
|-
Line 528: Line 556:
|48
|48
|German


|-
|-
Line 533: Line 562:
|46
|46
|


|-
|-
Line 538: Line 568:
|37
|37
|


|-
|-
Line 543: Line 574:
|32
|32
|


|-
|-
Line 548: Line 580:
|26
|26
|


|-
|-
Line 553: Line 586:
|24
|24
|


|-
|-
Line 558: Line 592:
|21
|21
|


|-
|-
Line 563: Line 598:
|21
|21
|


|-
|-
Line 568: Line 604:
|20
|20
|


|-
|-
Line 573: Line 610:
|18
|18
|German


|-
|-
Line 578: Line 616:
|18
|18
|


|-
|-
Line 583: Line 622:
|15
|15
|


|-
|-
Line 588: Line 628:
|15
|15
|


|-
|-
Line 593: Line 634:
|13
|13
|


|-
|-
Line 598: Line 640:
|12
|12
|


|-
|-
Line 603: Line 646:
|11
|11
|


|-
|-
Line 608: Line 652:
|9
|9
|


|-
|-
Line 613: Line 658:
|8
|8
|


|-
|-
Line 618: Line 664:
|7
|7
|


|-
|-
Line 623: Line 670:
|7
|7
|


|-
|-
Line 628: Line 676:
|6
|6
|


|-
|-
Line 633: Line 682:
|5
|5
|


|-
|-
Line 638: Line 688:
|5
|5
|Hungarian


|}
|}

Revision as of 12:51, 3 June 2012

Introduction

The D3 code that handles the GUI bitmap font can only load a specific range of bytes as characters. To get the most out of the available entries, special charsets are used. The fonts (Carleton for the menu f.i.) are build/patched so that the right characters appear in the right place.

Encodings

all.lang

This file is in UTF-8, and converted with the help of the script devel/gen_lang.pl:

perl devel/gen_lang.pl

This ensures that the generated language files are in their proper encodings (see below).

All other language files

Note that the language files (f.i. strings/german.lang) as well as the readables and the FM dictionariaries are expected to be in the following encodings:


The core dictionaries are automatically generated in the right encoding, but make sure that you use the right encoding for the FM dictionary, too!

Character remapping

The characters are remapped upon loading the dictionary/readable, from their native encoding to the special one that TDM uses and that is described here. Responsible for the remapping are mapping files, f.i. "strings/czech.map". If a map file for a specific language is not found, "strings/default.map" is used instead, if this is not found, no remapping takes place.

European Languages

This mapping is used for European languages, f.i. Czech, French, German, Spanish, Portuguese, Polish. Note that the double accented characters in Hungarian Ő, ő, Ű and ű look a bit different from Ö, ö, Ü and ü!

In the table below, the original ISO 8859-1 characters are given in () below the TDM character.

Color code:

UnusableUsable in v1.08Changed

…0 …1 …2 …3 …4 …5 …6 …7 …8 …9 …A …B …C …D …E …F
0… 00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
1… 10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
2… 20
 
21
!
22
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ì
CD
Í
CE
Î
CF
Ï
D… D0
Ð
D1
Ñ
D2
Ò
D3
Ó
D4
Ô
D5
Õ
D6
Ö
D7
Ř
(×)
D8
Ø
D9
Ù
DA
Ú
DB
Û
DC
Ü
DD
Ý
DE
Þ
DF
ß
E… E0
à
E1
á
E2
â
E3
ã
E4
ä
E5
å
E6
æ
E7
ç
E8
è
E9
é
EA
ê
EB
ë
EC
ì
ED
í
EE
î
EF
ï
F… F0
ð
F1
ñ
F2
ò
F3
ó
F4
ô
F5
õ
F6
ö
F7
ř
(÷)
F8
ø
F9
ù
FA
ú
FB
û
FC
ü
FD
ý
FE
þ
FF
ÿ

Russian

The character 0xFF (я) is mapped to 0xB6 upon loading. Therefore any Russian font must contain я at the place 0xB6.


See Also

Translation resources

Overview of translations

Translation discussions

Statistics

Some of the special characters are used more often then others. Here is a statistic over the entire string set of the TDM core, showing the top 50 most-used characters (excluding a-z, 0-9 and russian characters):

Rank Occurances Letter Remarks
1 í 715
2 é 674
3 á 524
4 ø 303
5 č 288
6 ó 283
7 ü 270 German
8 ł 203
9 æ 200 Dansk
10 ě 182
11 ř 175
12 ã 168
13 ž 148
14 ý 142
15 ę 141
16 ą 140
17 ż 119
18 å 109
19 š 99
20 ś 97
21 ç 91
22 ä 86 German
23 à 83
24 ů 77
25 ć 67
26 è 65
27 ú 56
28 ê 52
29 ö 48 German
30 É 46
31 ñ 37
32 õ 32
33 ń 26
34 Ł 24
35 Š 21
36 â 21
37 ź 20
38 ß 18 German
39 Ó 18
40 ň 15
41 Ú 15
42 Á 13
43 î 12
44 ť 11
45 ô 9
46 Ž 8
47 Ż 7
48 Č 7
49 ù 6
50 Ś 5
51 ő 5 Hungarian

Althought ö, ä and ü do not appear that often, with only these and Ü, Ö, Ä and ß, the entire German language works. So adding these letters is quite important.