🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.editor.mule
Article #758

Re: character code of what-cursor-position

#758
From: Fujisawa Jiro
Date: Mon, 08 Feb 1999 00:00
39 lines
2192 bytes
こんにちは、藤澤と申します。

便乗質問なのですが......

In article <KATE.99Feb5174124@yamato.trad.pfu.co.jp> kate@pfu.co.jp
(KATAYAMA Yoshio) writes:
> お望みの結果は、

> (global-set-key "\C-x\M-="
> 		(lambda ()
> 		  (interactive)
> 		  (let* ((c (following-char))
> 			 (lc (char-component c 0)))
> 		    (cond ((< lc 128)
>			   (message "0x%.2x" lc))
>			  ((or (= lc lc-roman))
>			   (message "0x%.2x"
>				    (- (char-component c 1) 128)))
>			  ((or (= lc lc-jp) (= lc lc-jpold))
>			   (message "0x%.2x%.2x"
>				    (- (char-component c 1) 128)
>				    (- (char-component c 2) 128))))))) 
>
> を行なっておいて、C-x M-= で得られると思います。これは手抜きをしてい
> て、ASCII、JIS X 0201-roman、JIS X 0208-{1976|1983} しか対応していま
> せん。--片山@PFU

これを ASCII、JIS X 0201-roman、JIS X 0208 以外、例えば GB や Big5 に
対応させるには、どのようにしたらよろしいのでしょうか。

現在特に Big5 のコードを簡単に調べられないかと考えていますので、御教授
下されば幸いに存じます。


------
                                 ┌────────────────┐
                                 │藤澤次郎   神戸大学文化学研究科 ┃
                                 │E-mail:fujisawa@lit.kobe-u.ac.jp┃
                                 └━━━━━━━━━━━━━━━━┛
Technical Details
Message-ID: <79n8us$sda$1@nntp.wao.or.jp>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <796ja7$ni4$1@news.kyoto-inet.or.jp> <KATE.99Feb5174124@yamato.trad.pfu.co.jp>

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 10eba4,800766314c2716d5
X-Google-Attributes: gid10eba4,public
From: fujisawa@wao.or.jp (Fujisawa Jiro)
Subject: Re: character code of what-cursor-position
Date: 1999/02/08
Message-ID: <79n8us$sda$1@nntp.wao.or.jp>
X-Deja-AN: 442031146
References: <796ja7$ni4$1@news.kyoto-inet.or.jp> <KATE.99Feb5174124@yamato.trad.pfu.co.jp>
Content-Type: text/plain; charset=ISO-2022-JP
X-Complaints-To: root@210.224.92.18
X-Trace: nntp.wao.or.jp 918497052 29098 210.224.92.134 (8 Feb 1999 18:04:12 GMT)
Organization: Kobe University
Mime-Version: 1.0 (generated by tm-edit 7.106)
NNTP-Posting-Date: 8 Feb 1999 18:04:12 GMT
Newsgroups: fj.editor.mule