From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#40273: installer: No way to input Latin characters with non-Latin keyboard layouts Date: Tue, 31 Mar 2020 17:35:41 +0200 Message-ID: <871rp8v8oi.fsf@gnu.org> References: <20200328134202.rgl6usllluoo2b2y@pelzflorian.localdomain> <87a740nu0u.fsf@gmail.com> <20200330104449.ahyivwdn62g6jluw@pelzflorian.localdomain> <875zemoz26.fsf@gmail.com> <20200330171113.njx7wstlmace45xk@pelzflorian.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35083) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJIvr-00022N-0z for bug-guix@gnu.org; Tue, 31 Mar 2020 11:36:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJIvp-0006HX-U7 for bug-guix@gnu.org; Tue, 31 Mar 2020 11:36:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53522) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJIvp-0006HS-Q2 for bug-guix@gnu.org; Tue, 31 Mar 2020 11:36:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jJIvp-0007jd-ML for bug-guix@gnu.org; Tue, 31 Mar 2020 11:36:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20200330171113.njx7wstlmace45xk@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Mon, 30 Mar 2020 19:11:13 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: "pelzflorian (Florian Pelz)" Cc: 40273@debbugs.gnu.org Hi, "pelzflorian (Florian Pelz)" skribis: > On Mon, Mar 30, 2020 at 01:35:29PM +0200, Mathieu Othacehe wrote: >> In the installer, the keyboard layout is handled by KMSCON. It means >> that running setxkbmap or loadkeys commands won't help. As KMSCON only >> supports static keyboard layout setting at start time, I had to patch it >> dirty (see kmscon-runtime-keymap-switch.patch). With this patch, it is >> possible to write keyboard model, layout and variant to the file pointed >> by KEYMAP_UPDATE environment variable, and have the keyboard layout >> updated (see kmscon-update-keymap). >>=20 >> Mathieu > > Thank you for the information. The attached patch to Guix enables > Alt+Shift toggling of the layout (it is too hacky, and it is always > QWERTY layout!). But it is possible. I think we can have both Alt-Shift and what Mathieu implemented, no? However, note that the installed system won=E2=80=99t have Alt-Shift suppor= t, and perhaps that is a bigger concern. OTOH, we=E2=80=99re just using the standard XKB layouts, so if they don=E2= =80=99t provide Alt-Shift, well, perhaps that=E2=80=99s because this is the way it= =E2=80=99s got to be? > ++ int end_of_layout; > ++ for (end_of_layout=3D0; layout[end_of_layout]; end_of_layout++); > ++ memcpy (layout+end_of_layout, (void *)",us", 4); I think that could be: layout =3D strcat (layout, ",us"); Provided =E2=80=98layout=E2=80=99 points to a large-enough array. > ++ uxkb_desc_init(dev->input, model, layout, variant, "grp:alt_shift_togg= le", NULL); Is =E2=80=9Cgrp:alt_shift_toggle=E2=80=9D guaranteed to be available, no wh= at what =E2=80=98layout=E2=80=99 is? Also, that means Alt-Shift is enabled for all layouts, not just the non-Latin layouts, right? Ludo=E2=80=99.