From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Quail input methods with combining characters Date: Mon, 11 Jan 2010 13:39:41 -0600 Message-ID: References: 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 1263242689 31801 80.91.229.12 (11 Jan 2010 20:44:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jan 2010 20:44:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 11 21:44:39 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NUR7m-0000UP-Nv for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jan 2010 21:44:31 +0100 Original-Received: from localhost ([127.0.0.1]:51109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUR4J-0000X9-17 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jan 2010 15:40:55 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 11 Jan 2010 13:39:29 -0600 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Original-Newsgroups: gnu.emacs.help In-Reply-To: X-No-Archive: yes Original-Lines: 47 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.130.78 Original-X-Trace: sv3-nIls037uI1M8kCJ8Jom6RuGQwrrCOBsamwpfsuEQfZLhD1eqmoLOhwuUu/P4JjmUekzEIfPzvBllkyN!/khnM3uklJqCkkM8gjASFZbINHfFn0F1RoUYe9XbOWJW9EZX6oYSi9Tem1YyBdaBQ9mf95WKgmDt!ltBFoSBoVU/T5giZmfRg3+hvgrvPsA== Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: news.stanford.edu gnu.emacs.help:176114 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-Gmane-Expiry: 2010-01-25 Xref: news.gmane.org gmane.emacs.help:71179 Archived-At: emacs.mexon@spamgourmet.com wrote: > Hi, > > I'd like to write an input method for Chinese pinyin. Existing pinyin > input methods are for typing characters using pinyin, "hanyu" -> "汉语", > not typing pinyin itself, "ha4nyu3" -> "hànyǔ". Have you looked at chinese-py-punct-b5? I notice that the tone has to go after the (nasal?) n: han4yu3. > > My problem is that quail rules expect a single character (UCS codepoint) > as the result. But I want to insert a vowel with one or two diacritical > marks, which is a sequence of combining characters. Does anyone know > how to do this, or if it's possible? I tried to get an answer here as to how to stack arbitrary diacriticals using composed sequences but I wasn't able to get an answer (at least not one I could understand). > > For example, I want to type a first-tone "a". Pinyin signifies this > with a bar over the character. So when I type "a1", it should insert > "a" followed by a combining macron. > > (quail-defrule "a1" ?ā) > > That gives an invalid read syntax, since the character after the > question mark is really two characters. > > (quail-defrule "a1" "ā") > > That is accepted, but provides two options, either the unadorned "a" or > the macron alone. > > There's no way I can find precomposed characters for all cases. For > example, there's no precomposed character for "ǖ" ("u" + diaresis + > macron). See code points U+01d5 - 6 > > Does anyone know if there's a way to do this, or is quail limited to > precomposed characters? > > > >