https://bugs.kde.org/show_bug.cgi?id=498306
Bug ID: 498306
Summary: mnemonics: closing parens and other symbols get hidden
alongside Example(&E) style mnemonics
Classification: Frameworks and Libraries
Product: frameworks-kirigami
Version: Master
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: Not decided
SUMMARY
Closing paren preceding mnemonics in parens at the end of a string (like
"Bar(Something)(&B)") get incorrectly hidden (like "Bar(Something"). This
happens for at least an ASCII close paren, a full-width close paren, or a close
paren preceded by a Unicode ellipsis.
Longer context:
In Mandarin (Chinese), no latin characters are used, so mnemonics need to be
attached to the end of the string. The convention in zh_TW (Taiwanese Mandarin
/ Traditional Chinese) is this:
en: E&xample
zh_TW: 範例(&X)
where 範例 means "example".
Sometimes the source text has parens in it. The convention is to tack the
mnemonic to the end of it in half-width (ASCII) parens. For example:
en: Up&dates (%s) // Assume in the UI it looks like eg.
"Updates (30)" as a count
zh_TW: 更新(%s)(&D) // So it should look like "更新(30)(&D)"
Kirigami appears to have a feature to automatically hide the parens along with
the explicit mnemonics when Alt isn't held. The bug is that this removes the
extra closing paren as well. Using the previous example, in the UI:
en: Updates (30) // With Alt held, "d" becomes underlined
zh_TW: 更新(30 // With Alt held, "更新(30)(&D)" is displayed in full
where it should be shown as 更新(30).
STEPS TO REPRODUCE
0. You may have to install support for the language in the next step first.
1. Open Discover in a language that needs explicit mnemonics, like zh_TW:
env LANGUAGE=zh_TW plasma-discover
2. Notice the missing paren in the sidebar, which says "更新(取得中" or "更新(0 項"
3. Hold Alt. Notice the string becomes "更新(取得中…)(&U)" or "更新(0 項)(&U)"
This also shows up in KCMs, leading me to think this is a Kirigami-wide
misimplementation.
OBSERVED RESULT
Closing paren preceding mnemonics in parens at the end of a string get
incorrectly hidden.
EXPECTED RESULT
Either no hiding happens, or that the preceding close paren does not get
hidden.
SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.1
Kernel Version: 6.8.0-51-generic (64-bit)
Graphics Platform: X11
--
You are receiving this mail because:
You are watching all bug changes.