[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unicode combining characters
From: |
Eli Zaretskii |
Subject: |
Re: Unicode combining characters |
Date: |
Wed, 26 May 2021 15:54:43 +0300 |
> From: Anand Tamariya <atamariya@gmail.com>
> Date: Wed, 26 May 2021 15:21:05 +0530
> Cc: emacs-devel@gnu.org
>
> Let's call the first character in the screenshot as shr (single glyph) and
> the second one as sh-r (two glyphs).
> (setq shr (string 2358 2381 2352))
> (setq sh-r (string 2358 2352))
>
> (string-width shr) ;; 2
> (string-width sh-r) ;; 2
Sorry, it turns out I've misremembered: string-width doesn't account
for "automatic compositions", the ones that happen due to
composition-function-table (as opposed to "static compositions" which
happen due to the 'composition' text property). So this case
currently cannot be handled correctly by string-width; we should fix
that.
- Unicode combining characters, Anand Tamariya, 2021/05/25
- Re: Unicode combining characters, Anand Tamariya, 2021/05/26
- Re: Unicode combining characters, Joost Kremers, 2021/05/26
- Re: Unicode combining characters,
Eli Zaretskii <=
- Re: Unicode combining characters, Eli Zaretskii, 2021/05/26
- Re: Unicode combining characters, Anand Tamariya, 2021/05/27
- Re: Unicode combining characters, Eli Zaretskii, 2021/05/27
- Re: Unicode combining characters, Basil L. Contovounesios, 2021/05/27
- Re: Unicode combining characters, Eli Zaretskii, 2021/05/27
- Re: Unicode combining characters, Anand Tamariya, 2021/05/27
- Re: Unicode combining characters, Eli Zaretskii, 2021/05/27