Re: French Key board
- From: Terence <spamtrap@xxxxxxxxxx>
- Date: Fri, 22 Jun 2007 17:51:05 -0700
Look, this is a TERRIBLE way to handle this.
You don't have to check each character, just use the input to index a
table for ALL characters.
I just worked with a program to show a greek keyboard on the screen as
you type on another type of real keyboard. What gets entered as data
and displayed is the greek symbol of the greek version of the upper
half of the ascii table that matched the key you hit on your non-greek
keyboard.
Now, to type french or german or any other latin-based alphabet you
have two simple options.
1) use the ALT-nnn code of r the alphabet set you are using on a
different keyboard
I type a lot of spanish and so I use ALT-130,160,161,162,163,164,165
for the accented upper-half table (which I cannot show you because
Google does not accept alt keys, but every other editing system or
program does!!):-
2) Show the desired keyboard layout (which can be just three lines
somehere on the screen (or shown for a moment while a function key is
held down), capture the two-byte code from whatever key is pressed and
with a look-up table change the low byte of the character-pair to the
other keyboard position equivalence. This needs three lines of ASM
code to get the character (which lets you trap the "show-me code"),
three to change the low byte to a number 0-255, two to use this index
to pick up the symbol desired (from the french keyboard table) and 3
to display the new symbol on screen.
I already showed the important part of waiting for any input key to be
struck, which needs the 16H operation code to trap F11 and F12 if
needed, and wait (0/16) or test (1/17).
.
- Follow-Ups:
- Re: French Key board
- From: Terence
- Re: French Key board
- References:
- French Key board
- From: almas
- French Key board
- Prev by Date: Runtime unwinding and inlineing
- Next by Date: Re: Runtime unwinding and inlineing
- Previous by thread: French Key board
- Next by thread: Re: French Key board
- Index(es):
Relevant Pages
|