Bug 477312 - kxkb/kcms does not handle typographic layouts
Summary: kxkb/kcms does not handle typographic layouts
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2023-11-21 05:27 UTC by jixmg1ma
Modified: 2023-12-07 13:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jixmg1ma 2023-11-21 05:27:51 UTC
SUMMARY
I would like to use layouts "us+typo,ru:2+typo" and I can't select them in System Settings. When I edit my ~/.config/kxkbrc manually, typographic layouts work as expected: I can type special symbols using lv3 switch for both us and ru, though the indicator on the panel does not know how to display such complex layouts as "ru:2+typo" and just outputs the whole name, colliding with the neighbors. I have also experienced a crash of System Settings with these layouts in place

STEPS TO REPRODUCE
1. Edit ~/.config/kxkbrc to have LayoutList=us+typo,ru:2+typo in [Layout] section
2. In System Settings -> Input Devices -> Keyboard add a random layout, Apply, remove it, Apply
3. Click around and observe how the Plasma can't handle display of such completely valid otherwise layouts

OBSERVED RESULT
Colliding text in the panel, crashes

EXPECTED RESULT
I see the flag of the great US of A in the panel with "us+typo" layout and the Motherland flag with "ru:2+typo" layout in place

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux rolling, Wayland (though I suspect it would also work in such a way on X11)
KDE Plasma Version: 5.27.9-1
KDE Frameworks Version: 5.112.0-1
Qt Version: 5.15.11+kde+r138-1

ADDITIONAL INFORMATION
Can't find kxkb product in this bug tracker
Comment 1 Nate Graham 2023-11-30 21:43:20 UTC
What is a "typographic layout" in this context?

Can you attach a backtrace of the crash?
Comment 2 jixmg1ma 2023-11-30 22:40:05 UTC
First of all, thanks for the reply.

Typographic layout is what it says it is — a layout which you use to type typographic symbols such as ©®™ or «» using lv3 switch key. This feature is known in xkb for at least 10 years IIRC. I can't attach crash logs right now, but these aren't actually needed to observe the incorrect behavior of the indicator. I should specify where exactly does the crash happen: in the panel indicator settings, when you try to open it IIRC. I believe this should be enough to start working on this issue
Comment 3 Nate Graham 2023-12-01 20:05:04 UTC
Andrey, do you know what adding support for this would look like, and how feasible it might be? And where would such support have to be implemented?
Comment 4 Ilya Zverev 2023-12-06 10:11:52 UTC
Why not use LayoutList=us,ru with Options=lv3:ralt_switch,misc:typo? You can either write that by hand or configure it through layout settings.
Comment 5 jixmg1ma 2023-12-07 08:30:37 UTC
(In reply to Ilya Zverev from comment #4)
> Why not use LayoutList=us,ru with Options=lv3:ralt_switch,misc:typo? You can
> either write that by hand or configure it through layout settings.

Thanks pal, I haven't known this. For the record, this is in the "Compatibility options -> Enable extra typographic characters"
Comment 6 Andrey 2023-12-07 13:34:33 UTC
Nice, thanks guys.
For the indicator's text doesn't fit problem, see bug 476542