the correct french layout is http://www.kbdlayout.info/kbdfr, not the
"na" version at http://www.kbdlayout.info/kbdfrna.
that is :
- key 1 has "&" by default and "1" if you press shift at the same time
- "!" is located bottom right, next to the right shift key
- "_" is available by default on key 8. pressing shift at the same
time gives a "8"
This might explain the issue thomas noted with "!" :
I covered this in my reply to Thomas but this has been a misunderstanding. Yes, I did not realize that "Legacy" was more standard than "Standard", but I don't think there is any relevant difference to what I was actually discussing. There are multiple keyboard layouts for every language, but the issue being discussed wasn't really about that.
The exclamation mark is on the 1 key on most ST keyboards, it's on 8 on the ST FR keyboard. Thomas was complaining that I mapped SDLK_EXCLAIM to the 1 key for the non-FR TOS, which I honestly do not understand the objection to.
On FR keyboards I did not map SDLK_EXCLAIM to 8, though it is one of the handful of problem cases for the symbolic mapping system. I made an arbitrary suggestion there, but please see my response to Thomas for more detail about that. I would very much value input on the 3 "lost" ST keys and how to handle them. What 3 keys do you think would be best for these to allow most French users with French TOS have a complete keyboard mapping by default?
The underscore issue was SDLK_UNDERSCORE, not the existence of an underscore somewhere on the keyboard. The problem is that ST FR has a (-_) key but on French keyboards as you note underscore is on 8. The SDLK_UNDERSCORE semantic is what I said is not present on FR keyboards, and as far as I know this is true, I can see no way to generate that semantic in SDL with a FR keyboard active.
on french keyboard, there's no relation between the "2" key and the "!"
This was a large misunderstanding. Thomas used "2" and I thought he was being hypothetical, but I realize he meant ST scancode $02 which is the 1 key. On most ST regions the exclamation mark is on the 1 key, which is why I mapped SDLK_EXCLAIM to it on those regions.
-- Brad Smith