From: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
To: Mathieu Othacehe <m.othacehe@gmail.com>
Cc: 40273@debbugs.gnu.org
Subject: bug#40273: installer: No way to input Latin characters with non-Latin keyboard layouts
Date: Mon, 30 Mar 2020 19:11:13 +0200 [thread overview]
Message-ID: <20200330171113.njx7wstlmace45xk@pelzflorian.localdomain> (raw)
In-Reply-To: <875zemoz26.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 746 bytes --]
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).
>
> 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.
Regards,
Florian
[-- Attachment #2: kmscon-toggle-layout.patch --]
[-- Type: text/plain, Size: 2180 bytes --]
diff --git a/gnu/local.mk b/gnu/local.mk
index 26eb8f7b09..6c50d2d352 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1074,6 +1074,7 @@ dist_patch_DATA = \
%D%/packages/patches/kio-search-smbd-on-PATH.patch \
%D%/packages/patches/kmail-Fix-missing-link-libraries.patch \
%D%/packages/patches/kmod-module-directory.patch \
+ %D%/packages/patches/kmscon-test.patch \
%D%/packages/patches/kmscon-runtime-keymap-switch.patch \
%D%/packages/patches/kpackage-allow-external-paths.patch \
%D%/packages/patches/kmplayer-aarch64.patch \
diff --git a/gnu/packages/patches/kmscon-test.patch b/gnu/packages/patches/kmscon-test.patch
new file mode 100644
index 0000000000..aeeebe3c09
--- /dev/null
+++ b/gnu/packages/patches/kmscon-test.patch
@@ -0,0 +1,15 @@
+diff -ur a/src/uterm_input_uxkb.c b/src/uterm_input_uxkb.c
+--- a/src/uterm_input_uxkb.c 1970-01-01 01:00:00.000000000 +0100
++++ b/src/uterm_input_uxkb.c 2020-03-30 18:27:40.880000000 +0200
+@@ -215,7 +215,10 @@
+
+ llog_info(dev->input, "HANDLER CALLED %s|%s|%s\n",
+ model, layout, variant);
+- uxkb_desc_init(dev->input, model, layout, variant, NULL, NULL);
++ int end_of_layout;
++ for (end_of_layout=0; layout[end_of_layout]; end_of_layout++);
++ memcpy (layout+end_of_layout, (void *)",us", 4);
++ uxkb_desc_init(dev->input, model, layout, variant, "grp:alt_shift_toggle", NULL);
+
+ dev->state = xkb_state_new(dev->input->keymap);
+ if (!dev->state) {
diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index 9cb004e36a..9af293ab6d 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -272,7 +272,7 @@ compatibility to existing emulators like xterm, gnome-terminal, konsole, etc.")
(base32
"0q62kjsvy2iwy8adfiygx2bfwlh83rphgxbis95ycspqidg9py87"))
(patches
- (search-patches "kmscon-runtime-keymap-switch.patch"))
+ (search-patches "kmscon-runtime-keymap-switch.patch" "kmscon-test.patch"))
(modules '((guix build utils)))
(file-name (git-file-name name version))))
(build-system gnu-build-system)
next prev parent reply other threads:[~2020-03-30 17:12 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-28 13:42 bug#40273: installer: No way to input Latin characters with non-Latin keyboard layouts pelzflorian (Florian Pelz)
2020-03-28 19:45 ` Mathieu Othacehe
2020-03-30 10:44 ` pelzflorian (Florian Pelz)
2020-03-30 11:35 ` Mathieu Othacehe
2020-03-30 17:11 ` pelzflorian (Florian Pelz) [this message]
2020-03-30 17:31 ` pelzflorian (Florian Pelz)
2020-03-31 15:35 ` Ludovic Courtès
2020-03-31 16:55 ` pelzflorian (Florian Pelz)
2020-04-01 20:33 ` Bengt Richter
2020-04-02 6:24 ` pelzflorian (Florian Pelz)
2020-04-02 9:45 ` Ludovic Courtès
2020-04-03 0:38 ` pelzflorian (Florian Pelz)
2020-04-03 1:11 ` pelzflorian (Florian Pelz)
2020-04-03 13:31 ` pelzflorian (Florian Pelz)
2020-04-03 13:59 ` pelzflorian (Florian Pelz)
2020-04-03 15:20 ` Ludovic Courtès
2020-04-03 15:56 ` pelzflorian (Florian Pelz)
2020-04-05 14:03 ` Ludovic Courtès
2020-04-05 20:02 ` pelzflorian (Florian Pelz)
2020-04-05 21:26 ` Ludovic Courtès
2020-03-29 15:04 ` Ludovic Courtès
2020-03-29 17:16 ` pelzflorian (Florian Pelz)
2020-03-29 17:53 ` Mathieu Othacehe
2020-03-30 10:39 ` Mathieu Othacehe
2020-03-30 12:39 ` pelzflorian (Florian Pelz)
2020-03-31 15:29 ` Ludovic Courtès
2020-04-01 12:49 ` Mathieu Othacehe
2020-03-31 15:28 ` Ludovic Courtès
2020-04-01 12:52 ` Mathieu Othacehe
2020-04-02 10:25 ` Ludovic Courtès
2020-04-02 11:40 ` Mathieu Othacehe
2020-04-06 7:52 ` Ludovic Courtès
2020-04-06 13:14 ` Mathieu Othacehe
2020-04-07 9:49 ` Ludovic Courtès
2020-04-07 17:14 ` Mathieu Othacehe
2020-04-02 23:27 ` Bengt Richter
2020-04-03 23:17 ` pelzflorian (Florian Pelz)
2020-04-08 7:20 ` Bengt Richter
2020-04-08 9:42 ` Ludovic Courtès
2020-04-08 21:11 ` Bengt Richter
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200330171113.njx7wstlmace45xk@pelzflorian.localdomain \
--to=pelzflorian@pelzflorian.de \
--cc=40273@debbugs.gnu.org \
--cc=m.othacehe@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).