[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 文字カテゴリーを調べる方法



渡辺@自己レスです。

もっと簡単な方法がありました。何でこれに気づかなかったのだろう?

char-category is a compiled Lisp function.
(char-category CHARACTER)

Return string of category mnemonics for CHAR in TABLE.
CHAR can be any multilingual character
TABLE defaults to the current buffer's category table.

例;
(char-category ?あ)
"Hj|"
(char-category ?a)
"al"