[Top][All Lists]

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

Re: Composed with ... by these characters

From: Kenichi Handa
Subject: Re: Composed with ... by these characters
Date: Tue, 10 Feb 2009 15:16:19 +0900

In article <address@hidden>, Eli Zaretskii <address@hidden> 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

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

> 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

reply via email to

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