From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaloian Doganov Newsgroups: gmane.emacs.help Subject: Displaying mathematical symbols with the apropriate font Date: Wed, 13 Aug 2008 17:39:34 +0300 Message-ID: <87skt96kt5.fsf@doganov.org> 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 1218638873 18514 80.91.229.12 (13 Aug 2008 14:47:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2008 14:47:53 +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 Aug 13 16:48:45 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 1KTHeX-0001TV-10 for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Aug 2008 16:48:45 +0200 Original-Received: from localhost ([127.0.0.1]:34020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTHda-0007ao-Pn for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Aug 2008 10:47:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTHb4-00068V-Ch for help-gnu-emacs@gnu.org; Wed, 13 Aug 2008 10:45:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTHb3-00067z-9U for help-gnu-emacs@gnu.org; Wed, 13 Aug 2008 10:45:09 -0400 Original-Received: from [199.232.76.173] (port=42601 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTHb3-00067k-0j for help-gnu-emacs@gnu.org; Wed, 13 Aug 2008 10:45:09 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:48076 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KTHb3-0008GN-0E for help-gnu-emacs@gnu.org; Wed, 13 Aug 2008 10:45:09 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1KTHaw-00063E-Kt for help-gnu-emacs@gnu.org; Wed, 13 Aug 2008 14:45:03 +0000 Original-Received: from 89.25.44.89 ([89.25.44.89]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Aug 2008 14:45:02 +0000 Original-Received: from kaloian by 89.25.44.89 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Aug 2008 14:45:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 50 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 89.25.44.89 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gNewSense gnu/linux) Cancel-Lock: sha1:gEYU/M2tBVrwjmUZ+nicbAy3Tzw= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:56564 Archived-At: Hello, I would like to use mathematical symbols in an Emacs text buffer -- for example: 𝑛 U+1D45B. Unfortunately this symbol (an all others in the same Unicode block) is displayed in Emacs as a Chineese ideograph, although the file written on disk is perfectly encoded in UTF-8 and the character in question is successfuly interpreted as U+1D45B in other programs. So, I guess, this is just a display-related problem in Emacs. C-u C-x = on the character shows: /------------------------------------------------ character: 𝑛 (119899, #o352133, #x1d45b) preferred charset: unicode (Unicode (ISO10646)) code point: 0x1D45B syntax: w which means: word buffer code: #xF0 #x9D #x91 #x9B file code: #xF0 #x9D #x91 #x9B (encoded by coding system utf-8-emacs) display: by this font (glyph code) x:-arphic-ar pl ukai cn-book-r-normal--16-116-100-100-p-160-gb18030.2000-0 (#x1D45B) Character code properties: customize what to show name: MATHEMATICAL ITALIC SMALL N general-category: Ll (Letter, Lowercase) canonical-combining-class: 0 (Spacing, split, enclosing, reordrant, and Tibetan subjoined) bidi-class: L (Left-to-Right) decomposition: ( 110) ( 'n') mirrored: N There are text properties here: auto-composed t fontified t rear-nonsticky t \------------------------------------------------ It looks like for some reason Emacs does not use a suitable font for this character. Then I've tried to augment the current fontset with a range: (set-fontset-font (query-fontset (frame-parameter nil 'font)) (cons (decode-char 'ucs #x1d400) (decode-char 'ucs #x1d7ff)) '("dejavu sans" . "iso10646-1")) But this does not have any visible effects. C-u C-x = still shows the same font as cited above. What should I do to display this character properly? I am using GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-07-16 on tzotzolana, modified for gNewSense.