[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spacing within org-mode tables when diacritics are used

From: Eli Zaretskii
Subject: Re: Spacing within org-mode tables when diacritics are used
Date: Sat, 02 Sep 2017 22:21:10 +0300

> From: Mario Castelán Castro <>
> Date: Sat, 2 Sep 2017 13:52:37 -0500
> On 02/09/17 10:13, Eli Zaretskii wrote:
> > Maybe you are right, although string-width shouldn't affect display of
> > normal-width characters such as é.  It only affects double-width
> > characters, or characters that Emacs composes into a single grapheme
> > cluster.  Multibyte-ness per se doesn't come into play here.  That's
> > why I asked how that é was typed, and what was its encoding on the
> > file (if the table was imported from a file).  If there were actually 
> > 2 characters, e and ́, then yes, using length would produce wrong
> > results that string-width would fix.
> So what you are saying is that GNU Emacs is broken in that it assumes
> that 1 Unicode code point corresponds to 1 glyph.

Which part of what I wrote led you to that conclusion?  That's not
what I meant, not at all.  What I meant was that a Lisp program is
broken if it uses 'length' to compute how many glyphs (the accurate
term is "grapheme clusters", not "glyphs") correspond to the
characters of a string.  It should use 'string-width' instead.

reply via email to

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