all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Perry E. Metzger" <perry@piermont.com>
To: emacs-devel@gnu.org
Subject: Non-ASCII chars in quail rules
Date: Fri, 29 Aug 2014 10:18:04 -0400	[thread overview]
Message-ID: <20140829101804.4c904346@jabberwock.cb.piermont.com> (raw)

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



             reply	other threads:[~2014-08-29 14:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-29 14:18 Perry E. Metzger [this message]
2014-08-30  1:13 ` Non-ASCII chars in quail rules 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

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=20140829101804.4c904346@jabberwock.cb.piermont.com \
    --to=perry@piermont.com \
    --cc=emacs-devel@gnu.org \
    /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.