From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#34215: 27.0.50; Provide elisp access to Chinese pinyin-to-character mapping Date: Wed, 30 Jan 2019 12:48:06 -0800 Message-ID: <87imy5na7t.fsf@ericabrahamsen.net> References: <87imyafyts.fsf@ericabrahamsen.net> <83r2cy3y69.fsf@gnu.org> <87a7jmf06v.fsf@ericabrahamsen.net> <83ef8y3r40.fsf@gnu.org> <875zu9gb96.fsf@ericabrahamsen.net> <83a7jl51c5.fsf@gnu.org> <87va27cq35.fsf@ericabrahamsen.net> <83ftta138k.fsf@gnu.org> <87munhnavf.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="94286"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: 34215@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 30 21:49:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gownI-000OM1-JT for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Jan 2019 21:49:12 +0100 Original-Received: from localhost ([127.0.0.1]:44048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gownH-0007UV-Ll for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Jan 2019 15:49:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gownB-0007UE-4W for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 15:49:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gown9-00046B-7J for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 15:49:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52693) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gown8-000459-FK for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 15:49:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gown8-0005y4-AK for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 15:49:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87imyafyts.fsf@ericabrahamsen.net> Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Jan 2019 20:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34215 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154888130322866 (code B ref -1); Wed, 30 Jan 2019 20:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jan 2019 20:48:23 +0000 Original-Received: from localhost ([127.0.0.1]:51974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gowmV-0005wj-0H for submit@debbugs.gnu.org; Wed, 30 Jan 2019 15:48:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35969) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gowmT-0005wY-OI for submit@debbugs.gnu.org; Wed, 30 Jan 2019 15:48:22 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57406) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gowmO-0003dv-Im for submit@debbugs.gnu.org; Wed, 30 Jan 2019 15:48:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gowmN-0007Gw-NP for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 15:48:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gowmM-0003d0-Tq for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 15:48:15 -0500 Original-Received: from [195.159.176.226] (port=58186 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gowmM-0003c3-Mv for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 15:48:14 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gowmJ-000NAj-O8 for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 21:48:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ Cancel-Lock: sha1:cEOIszy85HY4ptSCPM3ZMa/O3gA= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:154907 Archived-At: Eric Abrahamsen writes: > Eli Zaretskii writes: > >>> From: Eric Abrahamsen >>> Date: Tue, 29 Jan 2019 09:48:30 -0800 >>> >>> I've attached a diff adding the conversion function itself, but I'm not >>> familiar with makefiles and so far haven't been able to figure out how >>> to call it. It looks like the invocation I want will look like: >>> >>> $(AM_V_GEN)${RUN_EMACS} -l titdic-cnv -f pinyin-convert \ >>> ${srcdir}/MISC-DIC/pinyin.map ${srcdir}/../lisp/language/pinyin.el >>> >>> Where ${srcdir} is the leim directory, but I don't actually know how to >>> get this code called by make... >> >> Add a target that is the file produced by this command, then make the >> above command the recipe of that target. Similar to the >> ${leimdir}/ja-dic/ja-dic.el target. >> >> But if the above doesn't help, someone else could do this part for >> you. > > I've attached this as a commit patch -- it seems to work fine but I > would appreciate it if you'd check it. Oh, after reading a couple of "make" tutorials, I see maybe the make rule could be simplified to: ${leimdir}/../lisp/language/pinyin.el: ${srcdir}/MISC-DIC/pinyin.map $(AM_V_GEN)${RUN_EMACS} -l titdic-cnv -f pinyin-convert $< $0