From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: utf8 char display in buffer Date: Tue, 16 Jun 2009 10:10:59 +0900 Message-ID: References: <7I2dndeTy7sqkLLXnZ2dnUVZ_gmdnZ2d@sysmatrix.net> <4A32D54D.1040405@mousecar.com> <87my8czzgx.fsf@catnip.gol.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245114682 31167 80.91.229.12 (16 Jun 2009 01:11:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jun 2009 01:11:22 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: James Cloos Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 16 03:11:20 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 1MGNCo-0003y0-8K for ged-emacs-devel@m.gmane.org; Tue, 16 Jun 2009 03:11:18 +0200 Original-Received: from localhost ([127.0.0.1]:59950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGNCn-0004cS-9t for ged-emacs-devel@m.gmane.org; Mon, 15 Jun 2009 21:11:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGNCj-0004bL-Er for emacs-devel@gnu.org; Mon, 15 Jun 2009 21:11:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGNCe-0004V2-8y for emacs-devel@gnu.org; Mon, 15 Jun 2009 21:11:12 -0400 Original-Received: from [199.232.76.173] (port=48369 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGNCe-0004Up-4K for emacs-devel@gnu.org; Mon, 15 Jun 2009 21:11:08 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:51004) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MGNCa-0006vn-OU; Mon, 15 Jun 2009 21:11:05 -0400 Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id n5G1B07l019169; Tue, 16 Jun 2009 10:11:00 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay21.aps.necel.com with ESMTP; Tue, 16 Jun 2009 10:11:00 +0900 Original-Received: from dhlpc061 ([10.114.113.70] [10.114.113.70]) by relay21.aps.necel.com with ESMTP; Tue, 16 Jun 2009 10:11:00 +0900 Original-Received: by dhlpc061 (Postfix, from userid 31295) id 9A33752E1E0; Tue, 16 Jun 2009 10:10:59 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop In-Reply-To: (James Cloos's message of "Mon, 15 Jun 2009 20:30:02 -0400") Original-Lines: 31 X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) 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:111534 Archived-At: James Cloos writes: > Displaying the UCS Code Point for characters which lack font support is > the norm in GTK. This is done by drawing a box around four or six digit > glyphs which are rendered in a smaller point size. I'd expect that this > is easier to read when using a proportional face. > > Apple went in a slightly different direction and commissioned a fallback > font from Michael Everson which has one glyph per Unicode script and uses > that for each character associated with said script. > > Emacs could easily do either (w/o the need for a font in the latter case). The GTK method does screw up one good thing about emacs' method -- the boxes it displays are generally the correct width (single- or double- width [CJK etc]), so text alignment is preserved. The apple method might be able to preserve the width, and seems better for the user anyway -- I think the most useful info is "what kind of font should I install to fix this" and/or "do I really care enough to fix this", so identifying the script is probably more important than identifying the precise codepoint. Drew's suggestion of a tooltip seems like it might be easier to implement, and more functional than either in practice though -- it could display a lot more information without screwing up alignment, basically a slightly more convenient/obvious version of C-x = -Miles -- Egotist, n. A person of low taste, more interested in himself than in me.