emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building intermediate Chinese language romanization alists


From: Eric Abrahamsen
Subject: Re: Building intermediate Chinese language romanization alists
Date: Tue, 15 Jan 2019 16:26:43 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Karl Fogel <address@hidden> writes:

> Eric Abrahamsen <address@hidden> writes:
>>I might be able to get the map back out of quail somehow, but since this
>>seems to be something that more than a few people would like access to,
>>I wonder if it would be acceptable to add an intermediary step, creating
>>(for instance) a defconst called `pinyin-map-alist' that holds the
>>contents of pinyin.map, and then changing the `quail-define-rules' call
>>to:
>
> I think I've done the reverse-mapping you want. In my .emacs
> (http://svn.red-bean.com/repos/kfogel/trunk/.emacs), start at the
> function `kf-pinyin-from-char'. See also the code to build
> `kf-quail-inverted-map' right above it.
>
> I'm happy to answer any questions, of course.
>
> Best regards and 新年快乐,
> -Karl

Interesting... But really this is just a further argument for providing
access to this alist from elisp to begin with -- then none of us would
have to go to this effort!

It's good to see how one might reverse-engineer quail maps, though --
thank you!

祝好,
Eric



reply via email to

[Prev in Thread] Current Thread [Next in Thread]