[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Broken commandline
From: |
Kacper Gutowski |
Subject: |
Re: Broken commandline |
Date: |
Fri, 4 Jun 2021 10:24:07 +0200 |
On Fri, Jun 04, 2021 at 12:47:31AM +0200, Hans-Peter Sorge wrote:
However, there are "graphically oriented" UTF characters (including
⍝⊖⍟⍱), that take two character positions when being displayed and take
one character position when being selected.
So it's not an APL character / font handling problem. It Just happened
to be the first popup.
This sounds indicative of the kind of font problem where the terminal
emulator has a different idea about widths of glyphs than what the font
actually provides, i.e. when the font isn't really monospaced.
You mentioned Noto Sans Mono earlier. If APL characters are displayed
for you using that font, either because you chose it or because your
chosen font doesn't have them and Noto Sans Mono happens to be used as
a fallback, then you surely will have this problem because the mentioned
characters are twice as wide as other characters in this font.
And it's for no good reason. Unlike Chinese characters, these were never
a part of any East Asian character set (unless you count a certain
communist symbol from North Korean character set being informally mapped
to ⍟ by some sources) and their East Asian Width property in Unicode is
"neutral" and wcwidth returns 1 for them. So they are expected to take
only one character cell and in many terminal emulators this leads to the
behaviour you described when they don't.
This should be considered a bug in Noto Sans Mono.
-k