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 08:25:00 +0530 Message-ID: <87wqufef0b.fsf@gmail.com> References: <5117C3FC.5020608@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360551338 24028 80.91.229.3 (11 Feb 2013 02:55:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2013 02:55:38 +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 03:55:59 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 1U4jYh-0008H4-IG for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Feb 2013 03:55:55 +0100 Original-Received: from localhost ([::1]:36871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4jYO-00038i-1s for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Feb 2013 21:55:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4jYI-00038d-En for help-gnu-emacs@gnu.org; Sun, 10 Feb 2013 21:55:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4jYG-0001mH-WC for help-gnu-emacs@gnu.org; Sun, 10 Feb 2013 21:55:30 -0500 Original-Received: from mail-pb0-f46.google.com ([209.85.160.46]:53698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4jYG-0001m8-QD for help-gnu-emacs@gnu.org; Sun, 10 Feb 2013 21:55:28 -0500 Original-Received: by mail-pb0-f46.google.com with SMTP id uo15so493241pbc.19 for ; Sun, 10 Feb 2013 18:55:27 -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; bh=q7ryb4jEKcFeW1Y30vlvZWp3F+EfKjFacMURsawfhpk=; b=PxCgc8vByJpt7nIPSrOR1avcv2bn/TcMWadMEDSMcPEXgvimh2Se8YXOg6j8Q+BXUC /o6NLJJzQmVX9ga9y46I9UGb43fcWsTM0IGAf54j6XHEPEMi1YySY4IUGarNBY5E9Tq2 ZznxcNPhTwpddXOZ+dRbB01uIHpjhLhwyp5qTLlaATJUne8og21MCTro/3J0CER7bnD8 SPOmoGe/0ZDUudxwoH5VS7eM4IJRx2sZESwHh7PEF5jCzCoq/THwgfOphpKvGxQ7GTNw 3rC6tVcDOGDeeGpIs8BVqCELXZWnbA0Hb36C8jg/3JNqznM08twJ7jkuli+SBSm8zX5X MxRA== X-Received: by 10.68.191.226 with SMTP id hb2mr15222468pbc.108.1360551327618; Sun, 10 Feb 2013 18:55:27 -0800 (PST) Original-Received: from debian-6.05 ([115.241.62.28]) by mx.google.com with ESMTPS id gj10sm6110980pbc.0.2013.02.10.18.55.24 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 10 Feb 2013 18:55:26 -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.46 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:89057 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. These two suggestions or from stackoverflow thread (http://stackoverflow.com/questions/7176276/what-is-script-name-symbol-means-for-emacs-set-fontset-font-function) M-: (char-table-extra-slot char-script-table 0) M-x list-character-sets Long time ago, I was trying to assign font to tamil/indic scripts. I was hoping that there would be a command like `describe-scripts' or some such thing. I was disappointed. May be there should be one. > > 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. > > How can I achieve this? Do I miss something? > Thanks for your help. > > > --