From: Kenichi Handa <handa@m17n.org>
To: Ted Zlatanov <tzz@lifelogs.com>
Cc: emacs-devel@gnu.org
Subject: Re: adding consistent extra symbols to input methods (cyrillic-*, croatian-*, slov*, czech-* etc.) input methods
Date: Sat, 05 Jul 2008 21:54:21 +0900 [thread overview]
Message-ID: <E1KF7HR-0006sg-KI@etlken.m17n.org> (raw)
In-Reply-To: <864p76lp60.fsf_-_@lifelogs.com> (message from Ted Zlatanov on Thu, 03 Jul 2008 14:53:59 -0500)
In article <864p76lp60.fsf_-_@lifelogs.com>, Ted Zlatanov <tzz@lifelogs.com> writes:
> 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?
You can't assume that all "cyrillic*" input methods are in
leim/quail/cyrillic.el. So the safest (and more efficient)
way is something like this:
(mapc (lambda(m)
(let ((name (car m)))
(when (string-match "cyrillic" name)
(message "Defining rules for method %s" method)
(activate-input-method name)
(quail-defrule ",," ?„)
(inactivate-input-method))))
input-method-alist)
But, I'm now thiking about introducing this variable to
avoid eval-after-load in leim-ext.el:
;;;###autoload
(defvar quail-additional-rule-alist nil
"Alist of Quail package names vs. the rules to add after loading the package.
Each element has the form (PACKAGE-NAME RULE ...), where
PACKAGE-NAME is a Quail package name (string representing an input method),
and RULE is a translation rule of the form (KEY TRANSLATION APPEND).
See the documentaion of the function `quail-defrule' for the meanings
or KEY, TRANSLATION, and APPEND.")
With this, you can do:
(mapc (lambda(m)
(let ((name (car m)))
(when (string-match "cyrillic" name)
(message "Defining rules for method %s" method)
(push (list name '(",," ?„)) quail-additional-rule-alist))))
input-method-alist)
> 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 cyrillic-jis-russian is now obsolete because all
Cyrillic character in JIS are now unified into Unicode.
---
Kenichi Handa
handa@ni.aist.go.jp
next prev parent reply other threads:[~2008-07-05 12:54 UTC|newest]
Thread overview: 77+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-13 14:27 composed characters question and suggestions for quail-cyrillic-* Ted Zlatanov
2008-06-13 15:11 ` Eli Zaretskii
2008-06-13 15:56 ` Jason Rumney
2008-06-13 18:09 ` Ted Zlatanov
2008-06-14 9:44 ` Eli Zaretskii
2008-06-14 18:55 ` Stephen J. Turnbull
2008-06-14 19:45 ` Eli Zaretskii
2008-06-18 20:17 ` Ted Zlatanov
2008-06-19 11:45 ` Kenichi Handa
2008-07-02 20:25 ` Ted Zlatanov
2008-07-03 2:29 ` Kenichi Handa
2008-07-03 19:53 ` adding consistent extra symbols to input methods (cyrillic-*, croatian-*, slov*, czech-* etc.) input methods Ted Zlatanov
2008-07-05 12:54 ` Kenichi Handa [this message]
2008-07-06 18:40 ` Juri Linkov
2008-07-06 22:54 ` Miles Bader
2008-07-10 0:09 ` Juri Linkov
2008-07-10 0:37 ` Kenichi Handa
2008-07-10 0:52 ` Juri Linkov
2008-07-10 1:44 ` Kenichi Handa
2008-07-10 1:15 ` Stefan Monnier
2008-07-10 0:27 ` Juri Linkov
2008-07-10 1:16 ` Miles Bader
2008-07-10 18:43 ` Juri Linkov
2008-07-11 2:52 ` Miles Bader
2008-07-07 1:57 ` Kenichi Handa
2008-07-07 4:39 ` Stefan Monnier
2008-07-07 5:25 ` Kenichi Handa
2008-07-07 19:42 ` Ted Zlatanov
2008-07-07 22:05 ` Juri Linkov
2008-07-13 5:11 ` Eli Zaretskii
2008-07-13 5:17 ` Miles Bader
2008-07-13 21:27 ` Juri Linkov
2008-07-14 3:18 ` Miles Bader
2008-07-14 4:43 ` Kenichi Handa
2008-07-14 21:51 ` Juri Linkov
2008-07-15 1:24 ` Kenichi Handa
2008-07-28 13:30 ` multiple input methods (was: adding consistent extra symbols to input methods) Juri Linkov
2008-07-06 18:41 ` composed characters question and suggestions for quail-cyrillic-* Juri Linkov
2008-07-07 20:12 ` Ted Zlatanov
2008-07-07 21:42 ` Juri Linkov
2008-07-08 0:48 ` Kenichi Handa
2008-07-08 10:46 ` Werner LEMBERG
2008-07-08 21:47 ` David Kastrup
2008-07-08 15:37 ` Ted Zlatanov
2008-07-08 17:38 ` James Cloos
2008-07-08 22:54 ` Juri Linkov
2008-07-09 16:02 ` Ted Zlatanov
2008-07-09 18:02 ` James Cloos
2008-07-09 18:49 ` Ted Zlatanov
2008-07-09 19:51 ` Juri Linkov
2008-07-09 18:48 ` Ted Zlatanov
2008-07-09 19:33 ` Juri Linkov
2008-07-09 22:14 ` Ted Zlatanov
2008-07-09 23:52 ` Juri Linkov
2008-07-10 12:47 ` Ted Zlatanov
2008-07-10 18:45 ` Juri Linkov
2008-07-10 19:10 ` Ted Zlatanov
2008-07-10 19:52 ` Juri Linkov
2008-07-10 20:40 ` Ted Zlatanov
2008-07-10 22:01 ` Juri Linkov
2008-07-12 20:51 ` Juri Linkov
2008-07-14 14:01 ` Ted Zlatanov
2008-07-14 21:47 ` Juri Linkov
2008-07-15 15:06 ` Ted Zlatanov
2008-07-15 20:32 ` Juri Linkov
2008-08-01 21:07 ` Ted Zlatanov
2008-08-05 21:00 ` Ted Zlatanov
2008-08-05 22:05 ` Chong Yidong
2008-07-10 22:09 ` Stefan Monnier
2008-07-10 22:54 ` Juri Linkov
2008-07-11 1:26 ` Stefan Monnier
2008-07-11 2:08 ` Kenichi Handa
2008-07-09 19:21 ` Juri Linkov
2008-07-08 15:49 ` James Cloos
2008-07-08 18:50 ` Ted Zlatanov
2008-07-08 19:50 ` James Cloos
2008-07-08 20:26 ` composed characters question and suggestions for?quail-cyrillic-* Teemu Likonen
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=E1KF7HR-0006sg-KI@etlken.m17n.org \
--to=handa@m17n.org \
--cc=emacs-devel@gnu.org \
--cc=tzz@lifelogs.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.