Define layout label for XKB (Linux) in metadata#228
Define layout label for XKB (Linux) in metadata#228ariasuni wants to merge 2 commits intoOneDeadKey:mainfrom
Conversation
eb0a6b1 to
4bce9a7
Compare
|
Hi, thanks for the patch and the background information. If I understand your message correctly, the My concern here is that I feel like we already have a lot of almost identical metadata to describe the same thing, and this looks like one of such cases. If there’s a good reason for this |
Well, as I explain in the linked issue, I have three keyboard layouts for which I used different (systray & OSD notifications) labels when I used KDE directly because there’s a UI for that, but Fcitx5 uses this field instead. I am in no rush to merge this, and it would make a lot of sense to have platform-specific-data (it can just be something like |
Exactly. If you’re willing to work on it in a separate PR, that would be very appreciated, otherwise I’ll do my best to do it in the next week. Right now, most of the non-trivial |
Right now, the documentation is mostly in the generated file: uv run kalamine new test.toml# kalamine keyboard layout descriptor
name = "qwerty-custom" # full layout name, displayed in the keyboard settings
name8 = "custom" # short Windows filename: no spaces, no special chars
locale = "us" # locale/language id
variant = "custom" # layout variant id
author = "nobody" # author name
description = "custom QWERTY layout"
url = "https://OneDeadKey.github.com/kalamine"
version = "0.0.1"
geometry = "ISO"This TOML header is defined in |
Well, as I explain in the linked issue, I have three keyboard layouts for which I used different (systray & OSD notifications) labels when it was KDE that handled my layouts directly because there’s a UI for that, but Fcitx5 uses this field instead (and Fcitx5 – or IBus – is kind of required to use custom dead keys for Electron apps under Wayland). I will be busy in the next few days, and it would make a lot of sense to have platform-specific-data first (then), and then I would rework this PR to add support for this particular option. |
Fctix5 (maybe others?) uses (it’s the only option for this feature) the
<shortDescription>field in theevdev.xmlas the label for the layout in the systray (usually it’s the ISO 3166-1 alpha-2 code for the language the layout is associated with, that isfrin the case of Ergo-L for example).See fcitx/fcitx5#1555 (comment)
I would like this feature to be documented but I don’t know how or where I should do that so I would like some guidance on that matter.