Skip to content

Font file code-page not allowing entry of non-Latin characters #612

@phkb

Description

@phkb

The code-page setting in the oolite font file should allow for different non-Latin keyboards to enter characters into the game.

For example, using the Cyrillic example mod, and enabling these settings in logcontrol.plist

input.keyMapping.keyPress.keyDown = yes;
input.keyMapping.keyPress.keyUp = yes;

we can see that Oolite can "see" the keys being pressed in the log file:

11:18:17.108 [input.keyMapping.keyPress.keyDown]: Keydown scancode = 16, unicode = 1081, sym = 113, character = 9, shift = 0, ctrl = 0, alt = 0
11:18:17.193 [input.keyMapping.keyPress.keyUp]: Keyup scancode = 16, unicode = 1081, sym = 113, character = 9, shift = 0, ctrl = 0, alt = 0
11:18:17.392 [input.keyMapping.keyPress.keyDown]: Keydown scancode = 17, unicode = 1094, sym = 119, character = F, shift = 0, ctrl = 0, alt = 0
11:18:17.508 [input.keyMapping.keyPress.keyUp]: Keyup scancode = 17, unicode = 1094, sym = 119, character = F, shift = 0, ctrl = 0, alt = 0
11:18:17.775 [input.keyMapping.keyPress.keyDown]: Keydown scancode = 18, unicode = 1091, sym = 101, character = C, shift = 0, ctrl = 0, alt = 0
11:18:17.891 [input.keyMapping.keyPress.keyUp]: Keyup scancode = 18, unicode = 1091, sym = 101, character = C, shift = 0, ctrl = 0, alt = 0
11:18:18.008 [input.keyMapping.keyPress.keyDown]: Keydown scancode = 19, unicode = 1082, sym = 114, character = :, shift = 0, ctrl = 0, alt = 0
11:18:18.109 [input.keyMapping.keyPress.keyUp]: Keyup scancode = 19, unicode = 1082, sym = 114, character = :, shift = 0, ctrl = 0, alt = 0
11:18:18.241 [input.keyMapping.keyPress.keyDown]: Keydown scancode = 20, unicode = 1077, sym = 116, character = 5, shift = 0, ctrl = 0, alt = 0
11:18:18.342 [input.keyMapping.keyPress.keyUp]: Keyup scancode = 20, unicode = 1077, sym = 116, character = 5, shift = 0, ctrl = 0, alt = 0
11:18:18.475 [input.keyMapping.keyPress.keyDown]: Keydown scancode = 21, unicode = 1085, sym = 121, character = =, shift = 0, ctrl = 0, alt = 0
11:18:18.575 [input.keyMapping.keyPress.keyUp]: Keyup scancode = 21, unicode = 1085, sym = 121, character = =, shift = 0, ctrl = 0, alt = 0
11:18:18.724 [input.keyMapping.keyPress.keyDown]: Keydown scancode = 22, unicode = 1075, sym = 117, character = 3, shift = 0, ctrl = 0, alt = 0
11:18:18.808 [input.keyMapping.keyPress.keyUp]: Keyup scancode = 22, unicode = 1075, sym = 117, character = 3, shift = 0, ctrl = 0, alt = 0
11:18:18.941 [input.keyMapping.keyPress.keyDown]: Keydown scancode = 23, unicode = 1096, sym = 105, character = H, shift = 0, ctrl = 0, alt = 0
11:18:19.042 [input.keyMapping.keyPress.keyUp]: Keyup scancode = 23, unicode = 1096, sym = 105, character = H, shift = 0, ctrl = 0, alt = 0
11:18:19.158 [input.keyMapping.keyPress.keyDown]: Keydown scancode = 24, unicode = 1097, sym = 111, character = I, shift = 0, ctrl = 0, alt = 0
11:18:19.260 [input.keyMapping.keyPress.keyUp]: Keyup scancode = 24, unicode = 1097, sym = 111, character = I, shift = 0, ctrl = 0, alt = 0
11:18:19.375 [input.keyMapping.keyPress.keyDown]: Keydown scancode = 25, unicode = 1079, sym = 112, character = 7, shift = 0, ctrl = 0, alt = 0
11:18:19.475 [input.keyMapping.keyPress.keyUp]: Keyup scancode = 25, unicode = 1079, sym = 112, character = 7, shift = 0, ctrl = 0, alt = 0

But none of the Cyrillic characters are displayed on character entry screens, like the Edit Ship Registration page.

On the F6 Chart screen, the Cyrillic characters are ignored and instead Latin characters are displayed.

Issue is present as far back as v1.82.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions