Hi! From: Werner LEMBERG <[EMAIL PROTECTED]>
> What you want to do is to couple the handling of the tilde and space > keys to the input method. If you use a Chinese one, pressing SPACE > once should give a tilde, and pressing it twice should insert a > space, right? I like the idea very much! I'll add this to README.Debian, unless you plan to put it in the CJK docs somewhere, Werner? > Here a solution; please test (I used the CVS emacs for that). Insert > the following into your .emacs file (and replace `chinese-py-punct-b5' > with your favourite input method). > > (add-hook 'quail-activate-hook > (function > (lambda () > (if (equal (quail-name) "chinese-py-punct-b5") > (progn > (quail-defrule " " "~") > (quail-defrule " " " ")))))) > It works on the CVS versino of Emacs de dato 2007-03-02 (version 22.0.95). What if I wanted to use it not only for chinese-py-punct-b5 but also for other IM's like chinese-b5-tsangchi or chinese-tonepy-punct? Do I set it to (if (equal (quail-name) "chinese-py-punct-b5,chinese-tonepy-punct,...") or do I need to add an extra array in Lisp? Best Danai SAE-HAN 韓達耐 -- 題目:《燭》 作者:穆修(969-1032) 一箔珠帘掩映垂,房櫳輕染麝香枝。 佳人盼影橫哀柱,狎客分光綴艷詩。 禁鎖翠明初唱漏,官窗紅短尚圍棋。 長宵且秉歡游去,無限風光見古辭。
_______________________________________________ Cjk maillist - [email protected] https://lists.ffii.org/mailman/listinfo/cjk
