From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: How to get the script name symbols of a specific character? Date: Mon, 11 Feb 2013 17:04:03 +0530 Message-ID: <87bobr13v8.fsf@gmail.com> References: <5117C3FC.5020608@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1360582482 12131 80.91.229.3 (11 Feb 2013 11:34:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2013 11:34:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: YE Qianchuan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 11 12:35:02 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U4rf0-0000Vp-FG for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Feb 2013 12:34:58 +0100 Original-Received: from localhost ([::1]:52836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4reh-0004bK-9m for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Feb 2013 06:34:39 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4rea-0004b9-Lf for help-gnu-emacs@gnu.org; Mon, 11 Feb 2013 06:34:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4reZ-0003pv-5K for help-gnu-emacs@gnu.org; Mon, 11 Feb 2013 06:34:32 -0500 Original-Received: from mail-pb0-f48.google.com ([209.85.160.48]:61439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4reY-0003pp-VO for help-gnu-emacs@gnu.org; Mon, 11 Feb 2013 06:34:31 -0500 Original-Received: by mail-pb0-f48.google.com with SMTP id wy12so642589pbc.35 for ; Mon, 11 Feb 2013 03:34:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=b7Ey8hP/qftnGFMGkr2iq/AZWLMQkjD3fE3Q7TuzUUc=; b=utHuREq5gKfbxedxM1du+DjPQ/sVqsmDRq9XACYtxNQ6cGRAgd5yHrXvujUINhP6G2 YSmPpjSA75oWumis3e7rSBr8y6R6EIWPpR6iRcXkVEah5jKsCA3TlKRt2eAQctasOaGh fX5bbR9z25o6eHzVsvfZT6t0okq85UioWLv6TgbUqkf4bashw4B948/udbp3HAKmjMBS gUILKzD20xgTWptQtd7niVcUvEthzpX6hNeglWslnejIoPq6AURRjBk2AnRv+tY/I/oT t+yDLJhQJEFm9yo05ds9J9DWB2wqqDYZu6yUEg2+30MbYDBCTi+jCP57h+AGasM3qZKP vYAA== X-Received: by 10.66.79.202 with SMTP id l10mr40178913pax.36.1360582470055; Mon, 11 Feb 2013 03:34:30 -0800 (PST) Original-Received: from debian-6.05 ([101.63.220.123]) by mx.google.com with ESMTPS id g10sm7390350pbl.10.2013.02.11.03.34.26 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 11 Feb 2013 03:34:29 -0800 (PST) In-Reply-To: <5117C3FC.5020608@gmail.com> (YE Qianchuan's message of "Sun, 10 Feb 2013 23:59:56 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.48 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89070 Archived-At: YE Qianchuan writes: > Hi, all. > > According to the document of `set-fontset-font', its argument TARGET can > be a charset or a script name symbol. But I failed to find any > documents about script name symbols. What I found that seem relevant > are variables `charset-script-alist', `script-representative-chars' > and `char-script-table'. However none of them tells me the details of > those scripts, I can only guess by their names. > > My case is, for example, a set of unicode characters are displayed as > hex boxes. I want to assign a proper font to display them. Specifying > TARGET to unicode is not a good idea IMHO. I'd better find their > script name symbol as TARGET, like `Han' for CJK characters. > > In practice, by calling `describe-char', I get which charset is > corresponding to this character. So I can specify it to modify its > font. However, I can't find a method to get a character's script name > symbols. Put your cursor on the box and type=20 C-u C-x =3D It will give more useful pointers. The codepoint of a particular character. The name of the character, in the example below is prefixed by the script it comes from etc. ,---- | position: 192 of 196 (97%), column: 0 | character: =E0=AE=9C (displayed as =E0=AE=9C) (codepoint 2972= , #o5634, #xb9c) | preferred charset: unicode (Unicode (ISO10646)) | code point in charset: 0x0B9C | syntax: w which means: word | category: .:Base, L:Left-to-right (strong) | to input: type "ja" with tamil-itrans input method | buffer code: #xE0 #xAE #x9C | file code: #xE0 #xAE #x9C (encoded by coding system utf-8) | display: by this font (glyph code) | xft:-unknown-Lohit Tamil-normal-normal-normal-*-24-*-*-*-*-0-iso10646= -1 (#x44) |=20 | Character code properties: customize what to show | name: TAMIL LETTER JA | general-category: Lo (Letter, Other) | decomposition: (2972) ('=E0=AE=9C') |=20 | There are text properties here: | fontified t `---- Also you may want to look at this page: http://en.wikipedia.org/wiki/Unicode_block > > How can I achieve this? Do I miss something? > Thanks for your help. > > > --=20