ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Gladkov <legion@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] looking for xkbcommon experts
Date: Sun, 13 Feb 2022 00:06:28 +0100
Message-ID: <20220212230628.jvr5qclujrd2dvqx@example.org> (raw)
In-Reply-To: <20211230132553.GB3146@imap.altlinux.org>

On Thu, Dec 30, 2021 at 04:25:53PM +0300, Vladislav Zavjalov wrote:
> On Thu, Dec 30, 2021 at 12:43:17PM +0100, Alexey Gladkov wrote:
> > А это не совсем относится к Х. Это раньше оно было прибито к xlib, а
> > теперь это просто библиотека с базой раскладок.
> ...
> > Гораздо проще указать что-то типа:
> > 
> > loadkeys --layout="en,ru" --options="grp:lctrl_toggle"
> 
> А, я понял. И это, пожалуй, кажется разумным. То есть, идея в том,
> что loadkeys может загрузить раскладку из файла как обычно, а
> может построить с помощью библиотеки xkb и соответствующих параметров.
> 
> Очень интересно будет потом почитать, какие нетривиальные
> преобразования и ограничения потребовались при адаптации раскладки xkb.
> Наверное, ничего плохого в этих ограничениях нет, если они понятны,
> выводятся соответствующие ошибки т.п. Можно хоть двумя раскладками
> ограничиться, если это все упростит - при 256-буквенном шрифте вряд ли
> больше понадобится.
> 
> А еще, наверное, если на входе использовать только параметры --layout,
> --options и т.п., без хитрых правок с помощью xmodmap, то многие из
> ограничений в реальности и не встретятся...

На самом деле код выглядит не настолько ужасно как я думал. Работают до
4-х языков.

Для первой версии не хватает compose, которые xkbcommon не позволяет
сдампить. Я поговорил с авторами и когда они расширят api для compose, то
можно быть доделать.

-- 
Rgrds, legion



  reply	other threads:[~2022-02-12 23:06 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
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 [this message]
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=20220212230628.jvr5qclujrd2dvqx@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