[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get the script name symbols of a specific character?
From: |
YE Qianchuan |
Subject: |
Re: How to get the script name symbols of a specific character? |
Date: |
Tue, 12 Feb 2013 23:12:04 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130109 Thunderbird/17.0.2 |
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.
Re: How to get the script name symbols of a specific character?,
YE Qianchuan <=