unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Filipp Gunbin <fgunbin@fastmail.fm>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 48125@debbugs.gnu.org
Subject: bug#48125: 28.0.50; Display garbled by emoji variation sequence
Date: Tue, 04 May 2021 22:06:36 +0300	[thread overview]
Message-ID: <m2tunixqrn.fsf@fastmail.fm> (raw)
In-Reply-To: <83h7ji4f47.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 04 May 2021 19:51:04 +0300")

[-- Attachment #1: Type: text/plain, Size: 1364 bytes --]

On 04/05/2021 19:51 +0300, Eli Zaretskii wrote:

>> From: Filipp Gunbin <fgunbin@fastmail.fm>
>> Cc: 48125@debbugs.gnu.org
>> Date: Tue, 04 May 2021 19:20:27 +0300
>>
>> > OK in what sense?  On TTY frames layout and rendering are left to the
>> > terminal emulator; if it can handle this situation, Emacs won't care.
>>
>> The effect of different widths is, of course, different number of chars
>> per line (easily seen in Terminal with emoji or Asian scripts).  Does
>> Emacs make assumptions about number of columns per line?
>
> It does, but the number of columns doesn't change, only the width
> changes.  Right?
>
> What Emacs expects is that the terminal emulator will space characters
> according to the width in columns (either 1 or 2) of each character,
> as defined in the Unicode Character database.  You can see what Emacs
> thinks about the width of each character by using 'char-width'.
> AFAIR, all emoji should have width of 2, is that right?

I see now!

One more question.  In the attached screenshot there're two lines, one
with soccer balls (width 2), and another with letter "a" (width 1).
Both do not fit on screen, and are continued to the next (screen) line.
When at EOL of either, C-x = reports column=142, but the first is longer
(by 1 column).  That is because it's continued with two backslashes, not
one.  Is this the right behavior?


[-- Attachment #2: Screenshot 2021-05-04 at 21.55.48.png --]
[-- Type: image/png, Size: 19249 bytes --]

  reply	other threads:[~2021-05-04 19:06 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-30 16:20 bug#48125: 28.0.50; Display garbled by emoji variation sequence Filipp Gunbin
2021-04-30 17:26 ` Filipp Gunbin
2021-04-30 18:01   ` Eli Zaretskii
2021-04-30 19:22     ` Filipp Gunbin
2021-05-02  7:21       ` Lars Ingebrigtsen
2021-04-30 17:57 ` Eli Zaretskii
2021-05-04 15:34   ` Filipp Gunbin
2021-05-04 16:05     ` Eli Zaretskii
2021-05-04 16:20       ` Filipp Gunbin
2021-05-04 16:51         ` Eli Zaretskii
2021-05-04 19:06           ` Filipp Gunbin [this message]
2021-05-04 19:17             ` Eli Zaretskii
2021-05-04 19:29               ` Eli Zaretskii
2021-05-04 20:36                 ` Filipp Gunbin
2021-05-05 11:49                   ` Eli Zaretskii
2021-05-05 13:41                     ` Filipp Gunbin
2021-05-05 14:05                       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2tunixqrn.fsf@fastmail.fm \
    --to=fgunbin@fastmail.fm \
    --cc=48125@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).