Summary: | UTF-8 unicode Yijing Hexagram Symbols | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | cmenser <3crows> |
Component: | font | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | matan |
Priority: | NOR | ||
Version: | 19.12.3 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/utilities/konsole/-/commit/c8b94b8780019dca7511efe1cf110f1b19bf7a7d | Version Fixed In: | |
Sentry Crash Report: |
Description
cmenser
2020-05-16 16:01:35 UTC
I do see the issue of when highlighting the char is it cut in half horizontally. I don't see your #4-5 (In reply to Kurt Hindenburg from comment #1) > I do see the issue of when highlighting the char is it cut in half > horizontally. I don't see your #4-5 Those are troublesome characters. See https://www.unicode.org/L2/L2024/24059-eaw-yijing-symbols.pdf Unicode defines their width as 1, and this is what we use. glibc (and libreadline separately) overrides the width to 2. It makes sense to use 2, but it will cause issues with programs that use other wcwidth implementations. A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/977 Git commit c8b94b8780019dca7511efe1cf110f1b19bf7a7d by Kurt Hindenburg, on behalf of Matan Ziv-Av. Committed on 02/04/2024 at 19:30. Pushed by hindenburg into branch 'master'. Override width of YiJing Hexagram Symbols Unicode characters (0x4dc0-0x4dff) Their Unicode width is 1, but GNU libc's wcwidth and libreadline override it to 2, so it makes sense to follow suit. The profile option "ignore wcwidth" returns the width to 1, if enabled, so it allows the old behavior if it desired. M +2 -2 src/Screen.cpp M +13 -8 src/characters/Character.h M +11 -11 src/characters/CharacterWidth.cpp M +1 -0 tools/uni2characterwidth/overrides.txt https://invent.kde.org/utilities/konsole/-/commit/c8b94b8780019dca7511efe1cf110f1b19bf7a7d |