From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YE Qianchuan Newsgroups: gmane.emacs.help Subject: Re: How to get the script name symbols of a specific character? Date: Tue, 12 Feb 2013 23:12:04 +0800 Message-ID: <511A5BC4.1020702@gmail.com> References: <5117C3FC.5020608@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360682368 8630 80.91.229.3 (12 Feb 2013 15:19:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2013 15:19:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 12 16:19:49 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 1U5He7-0007pP-Jn for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Feb 2013 16:19:47 +0100 Original-Received: from localhost ([::1]:43425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Hdo-00053i-30 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Feb 2013 10:19:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Hdh-000533-Ay for help-gnu-emacs@gnu.org; Tue, 12 Feb 2013 10:19:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5Hdc-0000Ct-84 for help-gnu-emacs@gnu.org; Tue, 12 Feb 2013 10:19:21 -0500 Original-Received: from mail-ie0-x22b.google.com ([2607:f8b0:4001:c03::22b]:43016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5Hdc-0000CT-3H for help-gnu-emacs@gnu.org; Tue, 12 Feb 2013 10:19:16 -0500 Original-Received: by mail-ie0-f171.google.com with SMTP id 10so236824ied.30 for ; Tue, 12 Feb 2013 07:19:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=yKH8NISC2/NGon1GwAdsHRgvXwJmPjsX8iRkvmlSGA0=; b=VOLyjfBURgx+6UTU/urUDMBOHwUhgf46ssictA5Nx+Vxz8AB8pmXCXn6+C1YBrLJZC uyj30v88wI9AhU80ZAD2aIt3k4W9SqVHjan7XzbocicnxfG1on5909bMzFnR3PnIflU+ nXaCC+Of6834AveuyAeuH+x7CQY5waeSuSjdOI9KCkqSpMVswuhhNgV0Nzfqs4beWNK2 t1okWEHF2LT3fHDPRitk7UMxq4vwTLss1g0Jln/CDpkI94Wo4GjCjVlKUFzLbai1oOWF M9hq6Em5dwejS/PNQitvap/Oa75pTw7Uu9N5lLu/LOGi/d6lVPXx9BtGmS+AF9t06yyj mcgA== X-Received: by 10.50.197.131 with SMTP id iu3mr3838826igc.109.1360682023744; Tue, 12 Feb 2013 07:13:43 -0800 (PST) Original-Received: from [192.168.1.101] ([210.38.1.73]) by mx.google.com with ESMTPS id xd4sm34470791igb.3.2013.02.12.07.13.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Feb 2013 07:13:42 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130109 Thunderbird/17.0.2 In-Reply-To: <5117C3FC.5020608@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::22b 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:89089 Archived-At: Hi, all. I make it. After reading the char-table part of manual and re-checking those relevant variables, eventually I've found the solution, which is quite simpler than I thought. When you have a character c and want to get its script name symbol, just simply call `char-table-range', like (char-table-range char-script-table c). For examples, (char-table-range char-script-table ?a) will return symbol 'latin. (char-table-range char-script-table #x1f600) return symbol 'symbol, which indicates the script name symbol of #x1f600 is 'symbol. See the document of char-table-range to find more details.