Special chars don't work (incl. German "Umlaute", Polish letters,..)
(No description)
Leave a comment
thoun did some code that might be helpful to solve this problem:
http://ultrastardeluxe.xtremeweb-hosting.net/viewtopic.php?f=16&t=133* p602 [^]
function TScreenName.ParseInput(PressedKey: Cardinal; ScanCode: byte; PressedDown: Boolean): Boolean;
var
I: integer;
SDL_ModState: Word;
begin
Result := true;
If (PressedDown) Then
begin // Key Down
SDL_ModState := SDL_GetModState and (KMOD_LSHIFT + KMOD_RSHIFT
+ KMOD_LCTRL + KMOD_RCTRL + KMOD_LALT + KMOD_RALT);
// M key fix
if ScanCode = 109 then Button[Interaction].Text[0].Text := Button[Interaction].Text[0].Text + 'm';
if ScanCode = 77 then Button[Interaction].Text[0].Text := Button[Interaction].Text[0].Text + 'M';
case PressedKey of
SDLK_0..SDLK_9, SDLK_A..SDLK_Z, ...
http://ultrastardeluxe.xtremeweb-hosting.net/viewtopic.php?f=16&t=133* p602 [^]
function TScreenName.ParseInput(PressedKey: Cardinal; ScanCode: byte; PressedDown: Boolean): Boolean;
var
I: integer;
SDL_ModState: Word;
begin
Result := true;
If (PressedDown) Then
begin // Key Down
SDL_ModState := SDL_GetModState and (KMOD_LSHIFT + KMOD_RSHIFT
+ KMOD_LCTRL + KMOD_RCTRL + KMOD_LALT + KMOD_RALT);
// M key fix
if ScanCode = 109 then Button[Interaction].Text[0].Text := Button[Interaction].Text[0].Text + 'm';
if ScanCode = 77 then Button[Interaction].Text[0].Text := Button[Interaction].Text[0].Text + 'M';
case PressedKey of
SDLK_0..SDLK_9, SDLK_A..SDLK_Z, ...
on 2008-03-06 14:13 *
By s_alexander
in lyrics unicode chars also do not work
will look what i could do :)
will look what i could do :)
on 2008-03-07 03:42 *
By s_alexander
under linux some unicode chars in the lyric files displayed in the programm with multiple chars from the png. this is maybe an char-encoding error.
Replying to [comment:1 mogguh]:
> thoun did some code that might be helpful to solve this problem:
> http://ultrastardeluxe.xtremeweb-hosting.net/viewtopic.php?f=16&t=133* p602 [^]
>
> function TScreenName.ParseInput(PressedKey: Cardinal; ScanCode: byte; PressedDown: Boolean): Boolean;
> var
> I: integer;
> SDL_ModState: Word;
> begin
> Result := true;
> If (PressedDown) Then
> begin // Key Down
>
> SDL_ModState := SDL_GetModState and (KMOD_LSHIFT + KMOD_RSHIFT
> + KMOD_LCTRL + KMOD_RCTRL + KMOD_LALT + KMOD_RALT);
>
> // M key fix
> if ScanCode = 109 then Button[Interaction].Text[0].Text := Button[Interaction].Text[0].Text + 'm';
> if ScanCode = 77 then Button[Interaction].Text[0].Text := Button[Interaction].Text[0].Text + 'M';
>
> case PressedKey of
> SDLK_0..SDLK_9, SDLK_A..SDLK_Z, ...
> thoun did some code that might be helpful to solve this problem:
> http://ultrastardeluxe.xtremeweb-hosting.net/viewtopic.php?f=16&t=133* p602 [^]
>
> function TScreenName.ParseInput(PressedKey: Cardinal; ScanCode: byte; PressedDown: Boolean): Boolean;
> var
> I: integer;
> SDL_ModState: Word;
> begin
> Result := true;
> If (PressedDown) Then
> begin // Key Down
>
> SDL_ModState := SDL_GetModState and (KMOD_LSHIFT + KMOD_RSHIFT
> + KMOD_LCTRL + KMOD_RCTRL + KMOD_LALT + KMOD_RALT);
>
> // M key fix
> if ScanCode = 109 then Button[Interaction].Text[0].Text := Button[Interaction].Text[0].Text + 'm';
> if ScanCode = 77 then Button[Interaction].Text[0].Text := Button[Interaction].Text[0].Text + 'M';
>
> case PressedKey of
> SDLK_0..SDLK_9, SDLK_A..SDLK_Z, ...
Ohh, sorry. I haven't seen that somebody already worked on the M-key problem because it wasn't assigned to a developer in the sourceforge bug-tracker. The bug is already fixed so I hope you didn't spend too much time on this.
A few things are left to be changed. See:
http://trac2.assembla.com/usdx/ticket/47
A few things are left to be changed. See:
http://trac2.assembla.com/usdx/ticket/47
Using ScanCodes is not a good idea. It is very keyboard dependent.
At the moment we use unicode characters which works nice. The problem with this is, that this method does not work if some modifier keys are pressed. If STRG+S is pressed, SDL's unicode field contains a different character than 's'.
So, how to solve this? Go back to virtual key S?
At the moment we use unicode characters which works nice. The problem with this is, that this method does not work if some modifier keys are pressed. If STRG+S is pressed, SDL's unicode field contains a different character than 's'.
So, how to solve this? Go back to virtual key S?
Unicode txt files are not recognized
UTF8 txt file does not show jap/chin. char (tried all encodings):
http://ultrastardeluxe.xtremeweb-hosting.net/test/utf8.zip
UTF8 txt file does not show jap/chin. char (tried all encodings):
http://ultrastardeluxe.xtremeweb-hosting.net/test/utf8.zip
on 2009-12-06 02:08 *
By s_alexander
Test again now. Autodetection of UTF8 added.
on 2009-12-19 18:49 *
By Whiteshark
Canni: our codebase is not the problem. The font we use atm has no support for Japanese and Chinese characters. We may merge another free font with these characters to solve the problem
- UTF8 characters work since the unicode branch was merged into the trunk
- A fallback font was added for Japanese font support
I consider this issue to be fixed.
The CTRL+['A'-'Z'] problem still exists but is not related to i18n. I opened a new ticket for this issue: #112
- A fallback font was added for Japanese font support
I consider this issue to be fixed.
The CTRL+['A'-'Z'] problem still exists but is not related to i18n. I opened a new ticket for this issue: #112