From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Kk4HU-0004qr-EZ for mharc-grub-devel@gnu.org; Sun, 28 Sep 2008 17:58:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kk4HS-0004pV-O4 for grub-devel@gnu.org; Sun, 28 Sep 2008 17:58:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kk4HR-0004p0-9u for grub-devel@gnu.org; Sun, 28 Sep 2008 17:58:18 -0400 Received: from [199.232.76.173] (port=39001 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kk4HR-0004ox-4o for grub-devel@gnu.org; Sun, 28 Sep 2008 17:58:17 -0400 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:54425 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kk4HQ-0007ua-0m for grub-devel@gnu.org; Sun, 28 Sep 2008 17:58:16 -0400 Received: from pinux (60.61.221.87.dynamic.jazztel.es [87.221.61.60]) by mail.pina.cat (Postfix) with ESMTP id 16647288FBA1E for ; Sun, 28 Sep 2008 23:58:14 +0200 (CEST) Received: by pinux (Postfix, from userid 1000) id 944CB7C6C; Sun, 28 Sep 2008 23:58:12 +0200 (CEST) Date: Sun, 28 Sep 2008 23:58:12 +0200 From: Carles Pina i Estany To: grub-devel@gnu.org Message-ID: <20080928215812.GC5259@pina.cat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [RFC] Different keyborad layouts X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2008 21:58:18 -0000 Hello, I was thinking how we could have different keyboard layouts and after have some ideas I sent some emails to Robert about this topic (who had some better ideas :-) ) Let me to explain here some plan/design. I would like to research on it after some weeks, but if we need some discussion we could have it before :-) (this is the result of some mails with Robert, so I'm copying/pasting and changing some things, if I'm wrong Robert correct me!) Plan: - in term/i386/pc/at_keyboard.c we could have something like this: static char english_map[] = { x, x, x }; char *map = english_map; - have a new module with different layouts and variable hook - when user (or grub.cfg) change some variable (KEY_LAYOUT?), this module would redefine the term/i386/pc/at_keybord.c char *map to KEY_LAYOUT_map (es_map, de_map, etc.) Nowadays at_keyboard.c is not used, I could enable for testing. It seems that when USB keyboard will be integrated everybody will use at_keyboard.c (or at least USB and i386-pc) How it sounds? It would be very nice for Grub, to have different layouts and localization :-) Thanks, -- Carles Pina i Estany GPG id: 0x17756391 http://pinux.info