From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: bug#40273: installer: No way to input Latin characters with non-Latin keyboard layouts Date: Tue, 31 Mar 2020 18:55:59 +0200 Message-ID: <20200331165559.6yfowbvtuoth6vdw@pelzflorian.localdomain> References: <20200328134202.rgl6usllluoo2b2y@pelzflorian.localdomain> <87a740nu0u.fsf@gmail.com> <20200330104449.ahyivwdn62g6jluw@pelzflorian.localdomain> <875zemoz26.fsf@gmail.com> <20200330171113.njx7wstlmace45xk@pelzflorian.localdomain> <871rp8v8oi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45880) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJKCF-0005y3-Cx for bug-guix@gnu.org; Tue, 31 Mar 2020 12:57:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJKCE-0004po-Ah for bug-guix@gnu.org; Tue, 31 Mar 2020 12:57:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJKCE-0004pj-6v for bug-guix@gnu.org; Tue, 31 Mar 2020 12:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jJKCE-0003bn-5W for bug-guix@gnu.org; Tue, 31 Mar 2020 12:57:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <871rp8v8oi.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 40273@debbugs.gnu.org On Tue, Mar 31, 2020 at 05:35:41PM +0200, Ludovic Courtès wrote: > I think we can have both Alt-Shift and what Mathieu implemented, no? > Yes, both would be best, what Mathieu implemented is more discoverable. > However, note that the installed system won’t have Alt-Shift support, > and perhaps that is a bigger concern. Yes. guix build -S console-setup sudo mkdir -p /usr/share/X11 cd /usr/share/X11 sudo ln -s /gnu/store/fabcbhjh4g5fmm39fmkjjhiplqwrg0n8-console-setup-1.194-checkout/Keyboard/ckb xkb ckbcomp ar,fr -variant azerty, -option grp:alt_shift_toggle > ~/test sudo loadkeys ~/test works, but I have no idea how to turn that into a keyboard-layout. I tried setting in /etc/config.scm (keyboard-layout (keyboard-layout "ar,fr" "azerty" #:options '("grp:alt_shift_toggle"))) but it threw an error. > OTOH, we’re just using the standard XKB layouts, so if they don’t > provide Alt-Shift, well, perhaps that’s because this is the way it’s got > to be? I did not know back then, but it does work. In dconf-editor, I can set org.gnome.desktop.input-sources to ['grp:alt_shift_toggle']. It switches between all configured layouts in GNOME. > Is “grp:alt_shift_toggle” guaranteed to be available, no what what > ‘layout’ is? > > Also, that means Alt-Shift is enabled for all layouts, not just the > non-Latin layouts, right? Yes, with the patch I can toggle any layout to US layout and back. I believe we would need a map from each layout to whether it should be QWERTY, AZERTY, QWERTZ … Or we would just use QWERTY. What do you think is the right path forward? Thank you. Regards, Florian