Possible bug with windows and a German keyboard layout

LorenzH.

New member
I recently ran into some problems while using my Teensy 3.0 with a German keyboard layout. The Problem however only occurs on windows machines, on Linux machines everything works fine. It seems that every apostrophe turns into acute accents and sometimes even this "ï" character I have never seen before.
This is from the layout test run on a Linux machine:

Symbols1: !"#$%&'()*+,-./

And this from a computer running windows 7:

Symbols1: !"#$%&´()*+,-./

Here is the environment I am using:

-Arduino 1.0.3 + Teensyduino 1.13 (Linux)
-USB type: "Keyboard + Mouse + Joystick"
-Keyboard Layout: "German"
-Teensy 3.0

I am not really sure if this is even a bug on the teensy side and not on the windows side, but I thought I'd let you know anyway and hope that someone might be able to help me with my problem.
 
What is receiving and displaying the text, on the computer? Is it the Arduino serial monitor, a terminal, a text editor or wordprocessor?
 
It looks as if there is a bug in the German, German_Mac and Canadian French layouts. In hardware/teensy/cores/teensy3/keylayouts.h the value for ASCII_27 has been copied from the US_International layout (where the ' key is used as a combining accent).
Code:
#define ASCII_27	ACUTE_ACCENT_BITS + KEY_SPACE		// 39 '
but it does not apply to those other layouts.

US_international: http://en.wikipedia.org/wiki/File:KB_US-International.svg
German QWERTZ: http://en.wikipedia.org/wiki/File:KB_Germany.svg
Canadian french: http://en.wikipedia.org/wiki/File:KB_Canadian_French_text.svg

US International:
http://en.wikipedia.org/wiki/QWERTY#US-International
A diacritic key is activated by pressing and releasing it, then pressing the letter that requires a diacritic. After the two strokes, the single character with diacritics is generated. Note that only certain letters, such as vowels and "n", can have diacritics in this way. To generate the symbols ', `, ", ^ and ~, when the following character is capable of having a diacritic, press the Spacebar after the key.

This explains the acute accent plus space in the US_International layout. I will try to do some more checks on the german, German_Mac and Canadian_French layouts as there may be other related errors.

So far unexplained, is why the expected (correct) result is obtained on Linux, since the same teensy code is running.
 
It doesn't matter which program is receiving, it's always the same result. Thank you for your help so far, the information you gave might even be sufficient enough for me to temporarily work around the problem.
 
Hi !
any suggestions , how i can solve this ?? even temporarly ?
i looked at the ascii codes , but i dont know, which key i assign to ascii #27 in german layout.
thanx alot
 
Please give this file a try. Extract the zip file and copy keylayouts.h to hardware/teensy/cores/teensy3.
 

Attachments

  • keylayouts.zip
    13 KB · Views: 554
Back
Top