[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 <marioxcc.MT@yandex.com>
> 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.
- Spacing within org-mode tables when diacritics are used, Leo Vivier, 2017/09/01
- Re: Spacing within org-mode tables when diacritics are used, Eli Zaretskii, 2017/09/01
- Re: Spacing within org-mode tables when diacritics are used, Eric Abrahamsen, 2017/09/01
- Re: Spacing within org-mode tables when diacritics are used, Eli Zaretskii, 2017/09/02
- Re: Spacing within org-mode tables when diacritics are used, Eric Abrahamsen, 2017/09/02
- Re: Spacing within org-mode tables when diacritics are used, Eli Zaretskii, 2017/09/02
- Re: Spacing within org-mode tables when diacritics are used, Eric Abrahamsen, 2017/09/02
- Re: Spacing within org-mode tables when diacritics are used, Mario Castelán Castro, 2017/09/02
- Re: Spacing within org-mode tables when diacritics are used,
Eli Zaretskii <=
- Re: Spacing within org-mode tables when diacritics are used, Mario Castelán Castro, 2017/09/02
- Re: Spacing within org-mode tables when diacritics are used, Eric Abrahamsen, 2017/09/02
- Re: Spacing within org-mode tables when diacritics are used, Mario Castelán Castro, 2017/09/02