From: "B. T. Raven" <nihil@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Quail input methods with combining characters
Date: Mon, 11 Jan 2010 13:39:41 -0600 [thread overview]
Message-ID: <aZudnXQR3c3s49bWnZ2dnUVZ_jmdnZ2d@sysmatrix.net> (raw)
In-Reply-To: <mailman.1194.1263179636.18930.help-gnu-emacs@gnu.org>
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?
>
>
>
>
next parent reply other threads:[~2010-01-11 19:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1194.1263179636.18930.help-gnu-emacs@gnu.org>
2010-01-11 19:39 ` B. T. Raven [this message]
2010-01-10 12:46 Quail input methods with combining characters emacs.mexon
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=aZudnXQR3c3s49bWnZ2dnUVZ_jmdnZ2d@sysmatrix.net \
--to=nihil@nihilo.net \
--cc=help-gnu-emacs@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.