all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: YE Qianchuan <stool.ye@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to get the script name symbols of a specific character?
Date: Mon, 11 Feb 2013 17:04:03 +0530	[thread overview]
Message-ID: <87bobr13v8.fsf@gmail.com> (raw)
In-Reply-To: <5117C3FC.5020608@gmail.com> (YE Qianchuan's message of "Sun, 10 Feb 2013 23:59:56 +0800")

YE Qianchuan <stool.ye@gmail.com> 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 
        C-u C-x =

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: ஜ (displayed as ஜ) (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)
| 
| Character code properties: customize what to show
|   name: TAMIL LETTER JA
|   general-category: Lo (Letter, Other)
|   decomposition: (2972) ('ஜ')
| 
| 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.
>
>
>

-- 



  parent reply	other threads:[~2013-02-11 11:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-10 15:59 How to get the script name symbols of a specific character? YE Qianchuan
2013-02-11  2:55 ` Jambunathan K
2013-02-11 10:48   ` YE Qianchuan
2013-02-11 11:00     ` Jambunathan K
2013-02-11 14:50       ` YE Qianchuan
2013-02-11 11:34 ` Jambunathan K [this message]
2013-02-11 15:07   ` YE Qianchuan
2013-02-11 15:17     ` YE Qianchuan
2013-02-11 19:57     ` Jambunathan K
2013-02-11 20:08       ` Eli Zaretskii
2013-02-11 21:46         ` Jambunathan K
2013-02-11 15:57   ` Stefan Monnier
2013-02-12 15:22     ` YE Qianchuan
2013-02-11 20:11   ` T.F. Torrey
2013-02-12 15:12 ` YE Qianchuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bobr13v8.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=stool.ye@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.