all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Composed with ... by these characters
Date: Tue, 10 Feb 2009 15:16:19 +0900	[thread overview]
Message-ID: <E1LWlut-0005Xl-1b@etlken> (raw)
In-Reply-To: <uk583tv67.fsf@gnu.org> (message from Eli Zaretskii on Fri, 06 Feb 2009 17:57:36 +0200)

In article <uk583tv67.fsf@gnu.org>, Eli Zaretskii <eliz@gnu.org> writes:

>   emacs -Q -nw

> After "C-h H", go to the "Bengali" line, type C-f to get to one of the
> non-ASCII characters, and type "C-u C-x =".  In the "*Help*" buffer,
> you will see the following snippet, among other text:

>     Composed with the surrounding characters "?" and "??" by these characters:
>      ? (#x2476)
>      ? (#x2494)
>      ? (#x2434)
>      ? (#x2482)

> What does it mean "composed with ... characters ... BY THESE
> CHARACTERS?

It means that Emacs generated a lgstring (Lispy Glyph
String) as an automatic composition, but as there's no way
for the terminal to show correct glyphs in the lgstring,
Emacs just sends characters corresponding to glyphs to the
terminal.

> This probably needs to be rephrased, but how?

I've just fixed describe-char not to show such trivial
composition informaion.  Here, trivial means that a
character constitutes a graphme cluster by itself without
alternate characters.

> Also, is it normal that on a tty such composed characters show more ?
> characters than glyphs on a GUI display?  For example, in a GUI
> session, the word inside parentheses after "Bengali" is displayed with
> 2 glyphs, while a tty shows no less than 5 question marks.  Is this
> expected behavior?

Yes.  On a graphic terminal, those charaters should be
displayed by two grapheme clusters (one for the first three
characters, the other for the last two characters).  On a
terminal, as we can't show such correct grapheme clusters,
Emacs just tries to show each 5 characters, and if the
terminal coding system doesn't support them, they are shown
by ?s.

---
Kenichi Handa
handa@m17n.org




      reply	other threads:[~2009-02-10  6:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-06 15:57 Composed with ... by these characters Eli Zaretskii
2009-02-10  6:16 ` Kenichi Handa [this message]

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

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

  git send-email \
    --in-reply-to=E1LWlut-0005Xl-1b@etlken \
    --to=handa@m17n.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.