unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Non-ASCII chars in quail rules
@ 2014-08-29 14:18 Perry E. Metzger
  2014-08-30  1:13 ` Stefan Monnier
  0 siblings, 1 reply; 16+ messages in thread
From: Perry E. Metzger @ 2014-08-29 14:18 UTC (permalink / raw)
  To: emacs-devel

This is an elisp question, and it *seemed* more appropriate on the
devel list, but if I'm wrong, I'll move the question elsewhere.

Briefly, my problem is this: my caps lock key is never used for
anything on my keyboard, and I thought it might be cool to use it
as a poor man's compose key for entering non-ASCII characters.

I mapped it to F19 and then set that to insert the Unicode character
for the Compose glyph (U+2384) thinking it would be especially
appropriate.

I then realized that "quail-define-rules" really doesn't play well
with KEY strings that aren't pure ASCII.

1) Is there any easy way to fix that? Simply removing the < 127 test
in the code that builds the maps doesn't work. (I'm afraid I don't
fully understand where the maps are used, which is probably a
problem.)

2) If there isn't an easy way to fix that, is there any obvious
simple way to build an input method that either signals the beginning
of a translated series of characters either with a non-ASCII character
(like U+2384) or with a function key like F19 directly?

I note that essentially the only way of building input methods these
days seems to be quail, or at least, almost all the shipped methods
use quail.

BTW, if it isn't obvious, yes, I could just set the key to enter some
ASCII character (see the rfc1345 input method for example) but my
goal here is to *not* require anything special to enter normal ASCII
but to use the caps lock key as some sort of compose key.

Perry
-- 
Perry E. Metzger		perry@piermont.com



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-09-04 22:52 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-29 14:18 Non-ASCII chars in quail rules Perry E. Metzger
2014-08-30  1:13 ` Stefan Monnier
2014-08-30 22:48   ` Perry E. Metzger
2014-08-31 12:38     ` Stefan Monnier
2014-08-31 14:00       ` Perry E. Metzger
2014-08-31 21:29         ` Perry E. Metzger
2014-09-03  2:23           ` Stefan Monnier
2014-09-03 11:43             ` Perry E. Metzger
2014-09-03 13:19               ` Stefan Monnier
2014-09-03 21:59                 ` Perry E. Metzger
2014-09-04  0:02                   ` Stephen J. Turnbull
2014-09-04 13:57                     ` Perry E. Metzger
2014-09-04 14:17                       ` Stephen J. Turnbull
2014-09-04 15:20                         ` Perry E. Metzger
2014-09-04 15:37                           ` Eli Zaretskii
2014-09-04 22:52                           ` Stephen J. Turnbull

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).