MegaGlest Forum

MegaGlest => Bug reports => Topic started by: GunChleoc on 10 June 2013, 10:10:44

Title: [<=3.8.0] Typing accented characters adds an extra character
Post by: GunChleoc on 10 June 2013, 10:10:44
When I try to specify a user name with an accented vowel, I get an extra character.

Fist, I hit the accent key, which gives me a =
The, I hit the vowel, which then correctly gives me the accented vowel, e.g. à.
The resulting string is , but it should be à

System tested on:
OS: Windows XP/7
Keyboard layout: German
Title: Re: [<=3.0.8] Typing accented characters adds an extra character
Post by: tomreyn on 12 June 2013, 13:31:19
Thanks for your report. There's no version "3.0.8", you may be referring to 3.8.0, but this is not released either. Have you been able to reproduce this on a recent development snaspshot (see the main forum for download instructions)? If so, which revision was it built from (should say on main menu and "About" screen).
Title: Re: [<=3.8.0] Typing accented characters adds an extra character
Post by: GunChleoc on 12 June 2013, 19:29:19
That's a typo in the version number. I used the latest nightly Windows build and have had the same problems with 3.7

Code: [Select]
megaglest.exe v3.8-dev
Compiled using: VC++: 1600 on: Jun  8 2013 22:33:28 platform: Windows endianness
: little
SVN: [Rev: 4408] - using STREFLOP [SSE] - [no-denormals]
Title: Re: [<=3.8.0] Typing accented characters adds an extra character
Post by: softcoder on 12 June 2013, 20:33:12
Please go into the keyboard menu and press first the accent key (Record the info it shows for key values) and then do the same for both pressed and paste the results here.
Title: Re: [<=3.8.0] Typing accented characters adds an extra character
Post by: filux on 13 June 2013, 03:08:49
If I properly understand the situation, his shortcut is executed as follows:

pressing the first key, release the first key >
a very short break >
press the second key, release the second key
Title: Re: [<=3.8.0] Typing accented characters adds an extra character
Post by: GunChleoc on 13 June 2013, 07:08:25
That's correct.

Please go into the keyboard menu and press first the accent key (Record the info it shows for key values)
Code: [Select]
left shift [0][304][304][0]
=[=][61][61][0][1]
I have to hold the shift key to give the accent the correct direction. The same problem appears without the shift key though if I type an acute accent.
and then do the same for both pressed
Code: [Select]
world 64 [à][97][224][224][0]
Title: Re: [<=3.8.0] Typing accented characters adds an extra character
Post by: softcoder on 15 June 2013, 07:13:01
What does the keyboard menu output if you only select the accent character?

Thanks
Title: Re: [<=3.8.0] Typing accented characters adds an extra character
Post by: GunChleoc on 21 June 2013, 08:25:55
It is impossible to "only select the accented character". In order to type an accented character, I have to type the accent first and then the vowel. See also Filux' post.
Title: Re: [<=3.8.0] Typing accented characters adds an extra character
Post by: tomreyn on 21 June 2013, 09:05:40
We seem to be talking dead keys (https://en.wikipedia.org/wiki/Dead_key) here.

German keyboards (as well as french and many from countries in central Europe I would think) also have these - and they work fine (so maybe whatever makes them work can be copied to make those discussed above work, too): pressing the (dead) key labelled as ´ (accent from bottom left to top right), releasing it, then pressing the key labelled a gives me á in-game just like it does on any text editor. On the keyboard menu, the ´ dead key does not produce a scancode, only when I follow it up with the a key, a scancode is printed on screen:

Code: [Select]
world 65 [á][0][255][255][0]