From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [205.139.111.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9C3728E0D for ; Thu, 4 Jan 2024 18:17:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=kernel.org Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-617-vdVAb4A2MvOLOe11W-L2ww-1; Thu, 04 Jan 2024 13:16:08 -0500 X-MC-Unique: vdVAb4A2MvOLOe11W-L2ww-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D21CB87B2A0 for ; Thu, 4 Jan 2024 18:16:07 +0000 (UTC) Received: from localhost.redhat.com (unknown [10.45.224.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id 755DC3C27 for ; Thu, 4 Jan 2024 18:16:07 +0000 (UTC) From: Alexey Gladkov To: kbd@lists.linux.dev Subject: [PATCH 0/4] Allow to convert xkb keymap to kernel keymap Date: Thu, 4 Jan 2024 18:15:14 +0000 Message-ID: Precedence: bulk X-Mailing-List: kbd@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; x-default=true This patchset adds the ability to use keymaps from libxkbcommon. It gives t= he loadkeys utility additional options for passing xkb-specific parameters. The idea is to make it possible to unify the keymap configuration between l= inux console and xorg/wayland and unification of the keymaps configuration metho= d. Unfortunately, we cannot use xkb keymap one to one. The linux kernel has a number of limitations that allow the use of xkb keymaps. Many thanks to Anton Zinoviev who helped me figure out how console-setup so= lved the problems of converting xkb to linux keymaps. Alexey Gladkov (4): Add keymap generation from the xkb database xkbsupport: Create a list of used codes xkbsupport: Extract translation table xkbsupport: Add xkb compose configure.ac | 10 + data/xkbtrans/names | 154 ++++++++++ src/Makefile.am | 6 + src/loadkeys.c | 80 ++++- src/loadkeys.h | 13 + src/xkbsupport.c | 693 ++++++++++++++++++++++++++++++++++++++++++++ src/xkbsupport.h | 18 ++ 7 files changed, 965 insertions(+), 9 deletions(-) create mode 100644 data/xkbtrans/names create mode 100644 src/loadkeys.h create mode 100644 src/xkbsupport.c create mode 100644 src/xkbsupport.h --=20 2.43.0