From: Alexey Gladkov <legion@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] looking for xkbcommon experts
Date: Thu, 30 Dec 2021 01:28:08 +0100
Message-ID: <20211230002808.25fjyclywojzn5hd@example.org> (raw)
In-Reply-To: <20211229235204.GA1641@imap.altlinux.org>
On Thu, Dec 30, 2021 at 02:52:04AM +0300, Vladislav Zavjalov wrote:
> On Wed, Dec 29, 2021 at 05:18:09PM +0100, Alexey Gladkov wrote:
> > Я могу сделать дамп (см. аттач), но я не могу понять как получить какой
> > модификатор используется для переключения layout. Переключатель есть
> > только в options и там много чего ещё есть. Более того, как-то странно
> > парсить руками эти опции.
> >
> > Возможно я слаб в этой библиотеке и не нашёл как получить
> > XKB_KEY_Control_L для указанной конфигруации. Поэтому и решил спросить
> > тут.
>
> Мне кажется, что надо искать все кнопки, в которых присутствует работа с
> группами: ISO_Next_Group, ISO_Prev_Group (и всякие LockGroup, LatchGroup
> с которыми я никогда не имел дела).
>
> При этом приложенная программа явно не показывает всей картины:
> $ ./xkbcommon-dump-test | grep Group
> keycode 29 = | {English (US)} (Plain) ISO_Next_Group,
>
> при том, что у меня
>
> $ xmodmap -pk | grep Group
> 108 0xfe08 (ISO_Next_Group) 0xffe8 (Meta_R) 0xfe0c
> (ISO_First_Group) 0xffe8 (Meta_R) 0xfe0c (ISO_First_Group)
> 0xffe8 (Meta_R) 0xfe0c (ISO_First_Group)
> 134 0xfe08 (ISO_Next_Group) 0xffe8 (Meta_R) 0xfe08
> (ISO_Next_Group) 0xffe8 (Meta_R) 0xfe0c (ISO_First_Group)
> 0xffe8 (Meta_R) 0xfe0c (ISO_First_Group) 0xffe8
> (Meta_R)
>
> (у меня три группы и две кнопки, keycode 108 и 134: одна переключает все
> по кругу, 1->2->3->1->2->3, вторая - только две (3->)1->2->1->2)
Я пока даже не представляю как такое конвертировать в плоскую таблицу.
Скорее всего если такое будет вообще возможно, то придётся ставить
определённые ограничения, кроме очевидных keycode < 255, unicode < U+F000.
Но прежде всего сначала я хочу понять смогу ли я получить дамп keymap c
переключателями. Сама keymap вроде дампится и layouts есть, но вот
как получить переключатель между A и B я не нашёл пока. Я очень не хочу
парсить текстовые options.
--
Rgrds, legion
next prev parent reply other threads:[~2021-12-30 0:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-29 14:03 Alexey Gladkov
2021-12-29 16:18 ` Alexey Gladkov
2021-12-29 23:52 ` Vladislav Zavjalov
2021-12-30 0:07 ` Vladislav Zavjalov
2021-12-30 0:12 ` Alexey Gladkov
2021-12-30 0:28 ` Alexey Gladkov [this message]
2021-12-30 10:25 ` Vladislav Zavjalov
2021-12-30 11:43 ` Alexey Gladkov
2021-12-30 13:25 ` Vladislav Zavjalov
2022-02-12 23:06 ` Alexey Gladkov
2021-12-29 23:16 ` Leonid Krivoshein
2021-12-29 23:31 ` Alexey Gladkov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211230002808.25fjyclywojzn5hd@example.org \
--to=legion@altlinux.ru \
--cc=devel@lists.altlinux.org \
/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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git