[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Greek keyboard table



Am 09.12.2009, 20:00 Uhr, schrieb Jo Even Skarstein <joska@online.no>:

/* ascii is the resulting ascii code after looking it up in the keyboard table. */

if last_deadkey
{
   if ascii in deadkey_base_characters(last_deadkey) /* E.g. o */
     ascii = deadkey_accented_characters(last_deadkey, ascii) /* E.g ô */
   else
     ascii = last_deadkey

   last_deadkey = '\0'
}
else if ascii in deadkeys /* E.g ^ */
{
   last_deadkey = ascii
   ascii = '\0'
}

return ascii

You would loose the non-base-character typed after the deadkey, e.g. ^1. I get this on the PC by just typing ^ and 1.

(guessing...)

   else if iswhite
     ascii = last_deadkey
   else
     ascii = "last_deadkey"+"ascii" 	<-- two characters here.

Play a little with ^ in the DOS-cmd: funny things!

-Helmut