From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Beck Newsgroups: gmane.emacs.help Subject: Re: Browsing Unicode Symbols Date: Wed, 09 Jul 2008 00:52:06 +0200 Organization: T-Online Message-ID: <87iqvg56qx.fsf@sophokles.streitblatt.de> References: <1a37f6d3-1121-45bf-808a-38590605c4cb@f36g2000hsa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1215560439 13929 80.91.229.12 (8 Jul 2008 23:40:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jul 2008 23:40:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 09 01:41:26 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KGMoG-0005cD-7g for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jul 2008 01:41:24 +0200 Original-Received: from localhost ([127.0.0.1]:39764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGMnO-00077n-Tv for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Jul 2008 19:40:30 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-X-Trace: news.t-online.com 1215557527 03 14224 XpqqODj1P6MVS1x0 080708 22:52:07 Original-X-Complaints-To: usenet-abuse@t-online.de X-ID: Z6dp00ZJreCJZTqaqdzrcV-4zK4vKdr2-KFL-5m3lQLzgVYE1ORjEY User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:ZB937RQxur97sMWqk5HgTHncpM0= Original-Xref: news.stanford.edu gnu.emacs.help:159972 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55321 Archived-At: Peter Dyballa writes: > Am 08.07.2008 um 14:58 schrieb Nordlöw: > >> Is there a way to visually browse/explore the Unicode symbols >> available in GNU Emacs (CVS) either globally or locally defined by a >> specific/current font? Compare list-colors-display(). > > Yes. Open utf8.txt from the Kermit distribution. When you're using > only fonts (as opposed to fontsets) then you'll see, what this font > can offer for you. How exactly do I do this: »using only fonts (as opposed to fontsets)«? As far as I can see I am always using a fontset. Anyway, to see how a certain character is displayed, simply insert it: (insert (propertize STRING 'face `(:family ,(format "%s" FONT)))) To visualise how a certain character is displayed by all your fonts, you can use something like this: (defun insert-char-all-fonts (char &optional collection start end) "Insert CHAR with all fonts in COLLECTION." (let ((collection (delete-dups (or collection (mapcar #' (lambda (font) (aref font 0)) (x-family-fonts))))) (i 0)) (dolist (font collection) (if (and (or (not start) (>= i start)) (or (not end) (<= i end))) (insert ;(get-char-with-font char font) (propertize char 'face `(:family ,(format "%s" font))))) (incf i)))) You have to turn off font-lock to see the effect. Caveat: this gets *very* slow if you have a lot of fonts (use start and end). To see how a specific font renders all characters, dolist the characters defined in the the unicode standard (/admin/unidata/UnicodeData.txt in the emacs sources). -- Florian Beck