kervinck / gigatron-rom

System, apps and tooling for the Gigatron TTL microcomputer
BSD 2-Clause "Simplified" License
235 stars 80 forks source link

BabelFish: Curly braces in Italian keymap #123

Closed kervinck closed 4 years ago

kervinck commented 4 years ago

From personal correspondence:

As requested here's a summary for a quick test on the keyboard italian layout. I've attached a picture. The red circled keys don't work, but I presume not so useful (or not in original ASCII table). Special characters like ' ~ ' (alt+126) or ' ` ' (alt+96) are not reachable with these combinations and other tries.

The curly brackets don't work too. The most common (official, so to say) way to get them is ' shift+altGr+[ ' (and ' altGr+[ ' to get square brackets, that work!), and sometimes ' shift+crtl+alt+[ ', (again ' crtl+alt+[ ' to get square brackets only, but this doesn't work neither for square brackets here).

All other keys, using shift too, are ok!

notWorkingKeys

Molte grazie to Patrick Verre for testing

kervinck commented 4 years ago

So these lines need attention in Utils/BabelFish/PS2.ino

  {             +IT    +ALTGR, 0x4e,  96 }, // '`'

  {       +DE   +IT    +ALTGR, 0x3d, 123 }, // '{'

  {       +DE   +IT    +ALTGR, 0x45, 125 }, // '}'

  {             +IT    +ALTGR, 0x55, 126 }, // '~'
kervinck commented 4 years ago

Backquote (`) is needed to type the ∏-character in Micro-Soft BASIC...

kervinck commented 4 years ago

TAB works, as tested with this one-liner:

Screenshot 2019-11-10 at 14 59 55

Also,

The combination for curly braces (shift+altGr+[) gives 91 and 93 that are the square brackets and just these are actually typed again for this ('curly') combination too !

Looking in PS2.ino, we have these as well:

  {       +DE   +IT    +ALTGR, 0x3e,  91 }, // '['
  {             +IT+ES +ALTGR, 0x54,  91 },

  {       +DE   +IT    +ALTGR, 0x46,  93 }, // ']'
  {             +IT+ES +ALTGR, 0x5b,  93 },

So there isn't an accidental match.

The issue with '{' and '}' seems simply that BabelFish isn't prepared to recognise Shift+AltGr+Key....

kervinck commented 4 years ago

Mystery solved:

curlyetc