From: Andries.Brouwer@cwi.nl
To: Andries.Brouwer@cwi.nl, stian@sletner.com
Cc: alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Dead keys
Date: Wed, 2 May 2001 01:12:18 +0200 (MET DST) [thread overview]
Message-ID: <UTC200105012312.BAA61113.aeb@vlet.cwi.nl> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1520 bytes --]
> 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.]
next reply other threads:[~2001-05-01 23:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-01 23:12 Andries.Brouwer [this message]
2001-05-01 23:39 ` [PATCH] Dead keys Stian Sletner
-- strict thread matches above, loose matches on Subject: below --
2001-05-01 19:20 Andries.Brouwer
2001-05-01 19:29 ` Stian Sletner
2001-05-01 18:04 Stian Sletner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=UTC200105012312.BAA61113.aeb@vlet.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=stian@sletner.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox