Skip to contentSkip to conversation

Dead keys

PATCH [email protected] 2 participants 2 messages May 1, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

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.

Quoted 1 line

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.]

#1 lore raw

* At 2001-05-02T01:12+0200, [email protected] wrote:
:

| 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".

Well, if I had known this, I could've saved us all some time. Sorry about that, ignore the patch -- doesn't matter that the default is weird when I can change it. :) Thanks for the info.

Signature · 1 line
Stian Sletner, gets to work on his keymap again