From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: Re: need a org-contacts feature Date: Wed, 10 Apr 2013 21:47:48 +0800 Message-ID: <8738uyo5tn.fsf@news.tumashu-localhost.org> References: <87k3ochv54.fsf@news.tumashu-localhost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPvNj-0003fK-0t for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 09:48:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPvNa-0005Mi-G9 for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 09:48:10 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:59145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPvNa-0005Ma-An for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 09:48:02 -0400 Received: by mail-pd0-f177.google.com with SMTP id u11so273971pdi.8 for ; Wed, 10 Apr 2013 06:48:01 -0700 (PDT) Received: from feng by tumashu with local (Exim 4.80) (envelope-from ) id 1UPvNM-00067h-T9 for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 21:47:48 +0800 In-Reply-To: (Torsten Wagner's message of "Wed, 10 Apr 2013 15:22:53 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Torsten Wagner writes: > Hi, > > do I understand correct, that you want to enter the pinyin > transcription to search for the desired h=C3=A0nz=C3=AC? It's right, but want I want to know is: how to hook this kind of=20 function into org-contacts.el. But I find a simple way: add alias properties to org-contacts.el #+begin_example * =E4=BD=A0=E5=A5=BD :PROPERTIES:=20 :ALIAS: nh :EMAIL: 601651745@qq.com :PHONE: 15133912738=20 #+end_example When I search 'nh' ,I can get "=E4=BD=A0=E5=A5=BD" contact > Not sure whether this is possible. I guess you are aware of the emacs > input methods?! I have found a function that can transcript hanzi to pinyin > A dictionary method like you describe might be doable with yasnippet.=20 > http://capitaomorte.github.io/yasnippet/ > > However, it would only be practical for the most common words. > > Hope that helps a bit > > Greetings > > Torsten > > On 9 April 2013 12:10, Feng Shu wrote: > > org-contacts is very useful, but it can't be work well with CJK > users > for CJK input method, I need a feature like this: >=20=20=20=20=20 > 1. If I search string "=E4=BD=A0=E5=A5=BD" ,the result will be: "=E4= =BD=A0=E5=A5=BD" >=20=20=20=20=20 > 2. if I have a dict function in which there is '("nihao" "=E4=BD=A0= =E5=A5=BD") > or '("nh" "=E4=BD=A0=E5=A5=BD") >=20=20=20=20=20 > 3. the feature I expect is like: when I search "nihao" or "nh" , > the result will be "=E4=BD=A0=E5=A5=BD" >=20=20=20=20=20 >=20=20=20=20=20 > Thanks >=20=20=20=20=20 >=20=20=20=20=20 >=20=20=20=20=20 >=20=20=20=20=20 >=20=20=20=20=20 > -- --=20