emacs-devel
[Top][All Lists]
Advanced

[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 20:14:02 +0300

> Date: Wed, 26 May 2021 15:54:43 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
> 
> > (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.

Please try the latest master branch, I hope I fixed this now.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]