From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Perry E. Metzger" Newsgroups: gmane.emacs.devel Subject: Non-ASCII chars in quail rules Date: Fri, 29 Aug 2014 10:18:04 -0400 Message-ID: <20140829101804.4c904346@jabberwock.cb.piermont.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1409321920 5915 80.91.229.3 (29 Aug 2014 14:18:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2014 14:18:40 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 29 16:18:33 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XNN0W-0006ak-ES for ged-emacs-devel@m.gmane.org; Fri, 29 Aug 2014 16:18:28 +0200 Original-Received: from localhost ([::1]:42255 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNN0V-0006dL-WA for ged-emacs-devel@m.gmane.org; Fri, 29 Aug 2014 10:18:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNN0D-0006bQ-VF for emacs-devel@gnu.org; Fri, 29 Aug 2014 10:18:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNN09-00022p-46 for emacs-devel@gnu.org; Fri, 29 Aug 2014 10:18:09 -0400 Original-Received: from hacklheber.piermont.com ([166.84.7.14]:57434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNN09-00022k-0M for emacs-devel@gnu.org; Fri, 29 Aug 2014 10:18:05 -0400 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id 81EB442B for ; Fri, 29 Aug 2014 10:18:03 -0400 (EDT) Original-Received: from jabberwock.cb.piermont.com (jabberwock.cb.piermont.com [10.160.2.107]) by snark.cb.piermont.com (Postfix) with ESMTP id 3679B2DEB49 for ; Fri, 29 Aug 2014 10:18:03 -0400 (EDT) X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.24; x86_64-apple-darwin13.3.0) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 166.84.7.14 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173886 Archived-At: 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