Re: [PATCH] Dead keys

From: Andries.Brouwer@cwi.nl
Date: Tue May 01 2001 - 18:12:18 EST


> The issue here is that the dead keys themselves
> are producing the wrong characters.

No. If someone without diaeresis key uses the double quote,
and attaches dead_diaeresis to it, she probably wants that
double quote when it is followed by a space.
When programming one needs quotes etc.
When writing text one needs a-umlaut and c-cedilla etc.
Very few people need a lone diaeresis. I do not mind if most
people would need an additional keystroke to obtain that.

> the dead_* are wrong, and I can't change them with a keymap, afaik?

Yes, you can. Linux keyboard handling is very flexible.

You can change the table of compose definitions with loadkeys,
and there is no restriction of what is combined with what.
You can also make any symbol into a dead symbol.

Example:

% loadkeys
plain keycode 53 = 0x0d2f
compose '/' 'o' to '\370'
%

This makes the slash (on my keyboard) into a dead slash:
when followed by an o I get the Danish oslash (ø),
and otherwise it remains a slash.

Explanation of the loadkeys input:
The first line makes unadorned [no Shift, Ctrl, Alt] slash
(on my keyboard the key with keytop / has keycode 53 as showkey tells me)
into a dead ASCII slash. The 0d part is for "dead".
The 2f part is hex for the ASCII slash (octal 057).
The combine statement adds a combination to the compose table.
(Maybe it was there already - didnt check.)
For 2f and 370, see ascii(7) and iso_8859-1(7).

Andries

[Yes, a very small example, and the input contains numbers
in decimal, octal and hexadecimal.]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 07 2001 - 21:00:11 EST