From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zhu Zihao Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: pyim Date: Tue, 23 Feb 2021 00:29:42 +0800 Message-ID: <86o8gcm5ft.fsf@163.com> References: <1811ed58.18e5.177c79de92a.Coremail.tumashu@163.com> <1ec6a274.1f71.177c7c0ae20.Coremail.tumashu@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14603"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.15; emacs 27.1 Cc: Stefan Monnier , emacs-devel@gnu.org To: tumashu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 22 17:32:51 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEE8h-0003iH-23 for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Feb 2021 17:32:51 +0100 Original-Received: from localhost ([::1]:45336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEE8g-0007dN-3z for ged-emacs-devel@m.gmane-mx.org; Mon, 22 Feb 2021 11:32:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEE6g-00061j-4r for emacs-devel@gnu.org; Mon, 22 Feb 2021 11:30:46 -0500 Original-Received: from m12-18.163.com ([220.181.12.18]:57066) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lEE6Z-0005F3-PM for emacs-devel@gnu.org; Mon, 22 Feb 2021 11:30:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=BDG4f ULkX5YERQWQy5mHrwDgosWoQhkr6jAXovF6lQA=; b=iUFVsa4oQKUvftBagXf2H 161jQ1qqabJUFndtP09vNZL2zQuuJhQKciK2WmJUdEaBhJqSzvqJuughI0nfzYv7 2Gjyu8Wpro97FfylgtQIPr608z9mjpfXNaopCxkiJvDLzPuFwa9WJRvsPvwDTCSi amhEbxwQNN+/bk+wHZE2hg= Original-Received: from asus-laptop (unknown [113.102.100.223]) by smtp14 (Coremail) with SMTP id EsCowAAnM9X52zNgU+iOVQ--.38013S2; Tue, 23 Feb 2021 00:29:46 +0800 (CST) In-reply-to: <1ec6a274.1f71.177c7c0ae20.Coremail.tumashu@163.com> X-CM-TRANSID: EsCowAAnM9X52zNgU+iOVQ--.38013S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xr15KFyrWF4DJr4xGF15Arb_yoWDKwcEgr 48K3ykJr4F9rnxWFWYkrWSyF9rC343XF98J3ykKw129r1UXFZ7AFsa9FZ29a45GFn3KryY va13J3WxAa9I9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRRDUU5UUUUU== X-Originating-IP: [113.102.100.223] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/1tbiTxtBr1sGXuPAYwAAs5 Received-SPF: pass client-ip=220.181.12.18; envelope-from=all_but_last@163.com; helo=m12-18.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265486 Archived-At: Hi, tumashu. I'm a big fan of pyim input method, I would be very happy to see pyim can be a part of GNU ELPA or even Emacs! I just do some research on the issue we faced. We can extract the bopomofo data from unihan database. For example, the pinyin of CJK character "=E7=88=B1"(means love) is "ai". C= an be found at https://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=3D7231. The full database can be downloaded at https://www.unicode.org/Public/UCD/latest/ucd/Unihan.zip. Unihan database is licensed under Unicode license, a free license approved by FSF(https://www.gnu.org/licenses/license-list.html#Unicode). We can write a simple program to extract the pinyin of needed characters in Unihan_Readings.txt. Unihan database contains almost all reading of CJK character, we have to limit it to a subset. Maybe refer to =E3=80=8A=E9=80=9A=E7=94=A8=E6=B1=89=E5=AD=97=E8=A7=84=E8=8C=83=E8=A1=A8=E3= =80=8B (Table of General Standard Chinese Characters) http://www.gov.cn/gzdt/att/att/site1/20130819/tygfhzb.pdf.=20 --=20 Retrieve my PGP public key: gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F Zihao