International keyboards

Just starting out? Need help? Post your questions and find answers here.
ProphetOfDoom
User
User
Posts: 84
Joined: Mon Jun 30, 2008 4:36 pm
Location: UK

Re: International keyboards

Post by ProphetOfDoom »

Hi there everyone,
Thanks for your input. I haven’t been able to test Texas Instruments’ code yet because it’s a really hectic time for me (I’m currently moving house). But yes, generally I thought this would be an issue and none of PB’s APIs seemed to address this particular use case. It’s not as simple as it sounds at first.
If TI’s code doesn’t work I think I will file a feature request.
IdeasVacuum: the thing is, I want the user to be able to click the buttons OR type the expressions in with the keyboard. Because users will expect this. I think it’s called the “principle of least surprise” - apps should work how the user imagines they should work. I don’t really want to ask the user to calibrate the input. The last time I had to calibrate a device was a joystick I used to play Magic Carpet on MS DOS!!!
Stargate, have you tested TI’s code with your German keyboard?
The problem is I’m in the UK and only speak English!
Thanks again everyone!
User avatar
STARGÅTE
Addict
Addict
Posts: 2235
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: International keyboards

Post by STARGÅTE »

ProphetOfDoom wrote:Stargate, have you tested TI’s code with your German keyboard?
Yes, but the problem is, on a german keyboard, a single ^ - Character is not valid.
If I press ^, ´ or ` , the application waits for the next character (usually an a, e, i, o, or u, to generate á, ê, ù, ...).
That means, I have to press two times the [^]-key to generate an event.
The event of the first [^]-key is only sent after the second key
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
TI-994A
Addict
Addict
Posts: 2741
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: International keyboards

Post by TI-994A »

STARGÅTE wrote:[...on a german keyboard, a single ^ - Character is not valid.
If I press ^, ´ or ` , the application waits for the next character...
The German QWERTZ keyboards and French AZERTY keyboards implement two-stroke actions for the caret [^] key. This is to facilitate accented entries for their extended alphabets.

Nevertheless, these characters are input simply by typing their keys followed by the spacebar, and they are recognised correctly by the canvas input in my example.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
fluent
User
User
Posts: 72
Joined: Sun Jan 24, 2021 10:57 am

Re: International keyboards

Post by fluent »

Strangely enough, my keyboard has 2 caret keys. One is Ctrl+Alt+6 and the other one has its own key, right next to P.
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: International keyboards

Post by ChrisR »

TI-994A wrote:The German QWERTZ keyboards and French AZERTY keyboards implement two-stroke actions for the caret [^] key. This is to facilitate accented entries for their extended alphabets.

Nevertheless, these characters are input simply by typing their keys followed by the spacebar, and they are recognised correctly by the canvas input in my example.
Yes and your example works perfectly with the French keyboard and the two ways to have the caret symbol:
Alt Gr + 9 or the caret keys (right next to P) followed by the spacebar
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

Re: International keyboards

Post by Marc56us »

Yes, french keyboard have 2 ^

One for accent ( two-stroke actions ^ and ¨) (left to P)
One for ^ (sigle key Shift + 9) Chr(94)

The main used keyboard (blue = Alt Gr, Red = two-stroke actions)
https://fr.wikipedia.org/wiki/AZERTY#/m ... ce_New.svg

:wink:
Post Reply