9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Fco.J.Ballesteros <nemo@plan9.escet.urjc.es>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] keyboard maps
Date: Tue, 18 Nov 2003 09:13:32 +0100	[thread overview]
Message-ID: <13879854cd41ff2dc2776baa40c01feb@plan9.escet.urjc.es> (raw)
In-Reply-To: <82daa8d2f0623077fcd23f57b21dd246@plan9.ucalgary.ca>

[-- Attachment #1: Type: text/plain, Size: 758 bytes --]

The tables go now from rune to rune, not from scancode to rune.
This means that the tables are smaller. They are inside /sys/src/cmd/usb/hid/map.c
For example, this is the ukkbmap now:

Rmap ukkbmap[] = {
	{L'"',	L'@'},	// 0x0022 -> 0x0040
	{L'#',	L'£'},	// 0x0023 -> 0x00a3
	{L'α',	L'\\'},	// 0x0000 -> 0x005c
	{L'β',	L'|'},	// 0x0000 -> 0x007c
	{L'γ',	L'¬'},	// 0x0000 -> 0x00ac
	{L'@',	L'"'},	// 0x0040 -> 0x0022
	{L'\\',	L'#'},	// 0x005c -> 0x0023
	{L'|',	L'~'},	// 0x007c -> 0x007e
	{L'~',	L'¬'},	// 0x007e -> 0x00ac
	{0,	0},
};

You have a xxkbmap[] per keyboard type. Also, you may have a xxaltkbmap[] if
you happen to have AltGr.

The two arrays maps[] and altmaps[] in the same file (map.c) glue all the tables
together.

[-- Attachment #2: Type: message/rfc822, Size: 1718 bytes --]

From: mirtchov@cpsc.ucalgary.ca
To: 9fans@cse.psu.edu
Subject: Re: [9fans] keyboard maps
Date: Mon, 17 Nov 2003 12:56:51 -0700
Message-ID: <82daa8d2f0623077fcd23f57b21dd246@plan9.ucalgary.ca>

I don't see kbd_bg.c, kbd_ru.c, kbd_fr.c, kbd_jp and kbd_uk.c there, have they
been removed?

andrey

  reply	other threads:[~2003-11-18  8:13 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-17 18:24 Fco.J.Ballesteros
2003-11-17 18:34 ` ron minnich
2003-11-17 18:41   ` Fco.J.Ballesteros
2003-11-17 19:56 ` mirtchov
2003-11-18  8:13   ` Fco.J.Ballesteros [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-11-01 21:48 Heiko Dudzus
2005-11-01 22:34 ` Russ Cox
2005-11-02 19:49   ` Heiko Dudzus
2004-03-16 14:31 David Presotto
2002-05-20  9:55 Joel Salomon
2002-05-21  8:47 ` Joel Salomon
2002-05-16 13:18 rob pike, esq.
2002-05-16 11:06 nigel
2002-05-16 10:00 Fco.J.Ballesteros
2002-05-14 21:36 rob pike, esq.
2002-05-14 20:15 rob pike, esq.
2002-05-14 19:40 andrey mirtchovski
2002-05-14 18:50 andrey mirtchovski
2002-05-14 17:37 Fco.J.Ballesteros
2002-05-15  9:05 ` Boyd Roberts
2002-05-15 21:34 ` Pavel Mihaylov
2002-05-16 10:02   ` Boyd Roberts
2002-05-18 19:57     ` Pavel Mihaylov
2002-05-21 10:43       ` Boyd Roberts
2002-05-21 11:35         ` Pavel Mihaylov

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=13879854cd41ff2dc2776baa40c01feb@plan9.escet.urjc.es \
    --to=nemo@plan9.escet.urjc.es \
    --cc=9fans@cse.psu.edu \
    /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;
as well as URLs for NNTP newsgroup(s).