From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Composed with ... by these characters Date: Tue, 10 Feb 2009 15:16:19 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1234246611 15995 80.91.229.12 (10 Feb 2009 06:16:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2009 06:16:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 10 07:18:06 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LWlwb-0007rm-G9 for ged-emacs-devel@m.gmane.org; Tue, 10 Feb 2009 07:18:05 +0100 Original-Received: from localhost ([127.0.0.1]:55161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWlvH-0000u1-JR for ged-emacs-devel@m.gmane.org; Tue, 10 Feb 2009 01:16:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWlv1-0000re-E7 for emacs-devel@gnu.org; Tue, 10 Feb 2009 01:16:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWluz-0000r1-Fq for emacs-devel@gnu.org; Tue, 10 Feb 2009 01:16:26 -0500 Original-Received: from [199.232.76.173] (port=49125 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWluz-0000qw-5L for emacs-devel@gnu.org; Tue, 10 Feb 2009 01:16:25 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:39567) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWluw-0007UX-Ny; Tue, 10 Feb 2009 01:16:23 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n1A6GIg3002670; Tue, 10 Feb 2009 15:16:18 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n1A6GICl007943; Tue, 10 Feb 2009 15:16:18 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id n1A6GHFm003471; Tue, 10 Feb 2009 15:16:17 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LWlut-0005Xl-1b; Tue, 10 Feb 2009 15:16:19 +0900 In-reply-to: (message from Eli Zaretskii on Fri, 06 Feb 2009 17:57:36 +0200) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108925 Archived-At: In article , Eli Zaretskii 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