From: Carles Pina i Estany <carles@pina.cat>
To: grub-devel@gnu.org
Subject: keyboard layouts
Date: Tue, 12 Jan 2010 21:47:43 +0000 [thread overview]
Message-ID: <20100112214743.GA3945@pina.cat> (raw)
Hi,
I'm looking again to the keyboard layouts task.
Plan:
- Use the X11 layouts that usually are in /usr/share/X11/xkb/symbols .
- Create a new module that reads the layout from an environtment variable.
* Approach 1
The module will load the layout from /usr/share/X11/xkb/symbols/XX
replacing the array map that currently exists in
term/i386/pc/at_keyboard.c
Negative points:
-Grub needs acces to /usr/share/X11/xkb/symbols to load the
layout
-xkb files doesn't look specially nice to parse (I think that I prefer
the .mo files :-) ). They are text files easy to understand for humans
* Approach 2
Small program (I guess that you prefer C, Python would be nice too) that
when Grub is installed would process the /usr/share/X11/xkb/symbols
files and generates the files that Grub will read. Code to read this
files would be much easier than before.
This way, the layout tables could stay in /boot/grub/layouts . These
files would look like keycode - symbol pairs. Everything already in
binary, and only for the things that differ from English.
So, if a layout has 40 different keycode-symbol pairs compared with
English, this would be 80 bytes per layout. Probably will be more, but
it should be of this order of magnitude.
* End of Approach 2
Opinions? What I'm forgetting?
Here appeared some suggestions:
http://www.mail-archive.com/grub-devel@gnu.org/msg08301.html
Like Shift+Caps Lock could write special symbols, or the very advanced
(combo, dead-keys) things. I will consider it, now I'm mainly thinking
about the basic layout.
--
Carles Pina i Estany
http://pinux.info
next reply other threads:[~2010-01-12 21:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-12 21:47 Carles Pina i Estany [this message]
2010-01-12 22:53 ` keyboard layouts Colin Watson
2010-01-12 23:29 ` Carles Pina i Estany
2010-01-12 23:51 ` Colin Watson
2010-01-13 9:24 ` Yves Blusseau
2010-01-13 16:23 ` Vladimir 'φ-coder/phcoder' Serbinenko
-- strict thread matches above, loose matches on Subject: below --
2010-02-09 23:23 Carles Pina i Estany
2010-03-19 23:45 Carles Pina i Estany
2011-04-22 22:34 Keyboard layouts (was Re: GRUB 1.99~rc2 released) Vladimir 'φ-coder/phcoder' Serbinenko
2011-05-23 13:22 ` Keyboard layouts Treutwein Bernhard
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=20100112214743.GA3945@pina.cat \
--to=carles@pina.cat \
--cc=grub-devel@gnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.