From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: adding consistent extra symbols to input methods (cyrillic-*, croatian-*, slov*, czech-* etc.) input methods Date: Thu, 03 Jul 2008 14:53:59 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <864p76lp60.fsf_-_@lifelogs.com> References: <86lk19mmua.fsf@lifelogs.com> <485298A4.30000@gnu.org> <867ict8awn.fsf@lifelogs.com> <87tzfvj16y.fsf@uwakimon.sk.tsukuba.ac.jp> <86lk12zee7.fsf@lifelogs.com> <86r6acqbif.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1215114621 14361 80.91.229.12 (3 Jul 2008 19:50:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2008 19:50:21 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 03 21:51:07 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KEUpd-0004eo-HE for ged-emacs-devel@m.gmane.org; Thu, 03 Jul 2008 21:51:05 +0200 Original-Received: from localhost ([127.0.0.1]:46620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEUom-0001yZ-ON for ged-emacs-devel@m.gmane.org; Thu, 03 Jul 2008 15:50:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEUog-0001xW-Q1 for emacs-devel@gnu.org; Thu, 03 Jul 2008 15:50:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEUoe-0001wK-57 for emacs-devel@gnu.org; Thu, 03 Jul 2008 15:50:05 -0400 Original-Received: from [199.232.76.173] (port=36164 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEUod-0001wE-Ud for emacs-devel@gnu.org; Thu, 03 Jul 2008 15:50:03 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:38237 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KEUoc-0002JI-Oz for emacs-devel@gnu.org; Thu, 03 Jul 2008 15:50:03 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KEUoV-0001jr-1W for emacs-devel@gnu.org; Thu, 03 Jul 2008 19:49:55 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jul 2008 19:49:54 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jul 2008 19:49:54 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:EjMaDwe4tCIrL2blwcF5DZEqYTA= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:100305 Archived-At: On Thu, 03 Jul 2008 11:29:53 +0900 Kenichi Handa wrote: KH> In article <86r6acqbif.fsf@lifelogs.com>, Ted Zlatanov writes: KH> You can use quail-defrule. KH> emacs/leim/leim-ext.el adds extra rules to the existing input method by: KH> (eval-after-load "quail/..." KH> '(quail-defrule "..." ...)) >> Thank you. I have this: ... >> but it is not working, because the method name is not the right thing to >> specify for quail-defrule. KH> NAME surely should work as far as that input method is KH> already loaded. Right, I'm trying to do the above for input methods that are in input-method-alist but not necessarily loaded. So this works: (dolist (method (remove nil (mapcar (lambda(m) (let ((name (car-safe m))) (when (and (string-match "cyrillic" name) (quail-package name)) name))) input-method-alist))) (message "Defining rules for method %s" method) (quail-defrule ",," ?„ method)) The question is, should I load those input methods explicitly, or just assume that it's enough to handle what's in leim/quail/cyrillic.el? Specifically, cyrillic-jis-russian wouldn't be handled this way, and it can benefit from the extended mappings I am creating (proper double quotes „ “, single quotes ‚‘ and the № § « » symbols). If I should special-case it in leim-ext.el that's fine, I'm just trying to approach it programmatically. I think the croatian-*, slovak-*, czech-* and slovenian-* methods (broadly speaking, the Slavic languages) can also use the extra symbols (their names doen't match "cyrillic" in the above loop so I'd have to add them to the regex). If any speakers of those languages or other languages from the region have an opinion, please let us know. I changed the subject accordingly. AFAIK the symbols I mentioned above are widely used in the region, but I only know Russian and Bulgarian use them for sure. Thanks Ted