From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: OKURI-NASI Date: Mon, 30 May 2022 11:53:28 +0200 Message-ID: <87ee0bxs6f.fsf@gnus.org> References: <87y1ykxfd2.fsf@gnus.org> 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="5266"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Emacs developers To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 30 12:00:09 2022 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 1nvcC1-00015e-6e for ged-emacs-devel@m.gmane-mx.org; Mon, 30 May 2022 12:00:09 +0200 Original-Received: from localhost ([::1]:54380 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvcBz-0005H6-Pj for ged-emacs-devel@m.gmane-mx.org; Mon, 30 May 2022 06:00:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvc5j-0001PQ-Es for emacs-devel@gnu.org; Mon, 30 May 2022 05:53:39 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:33342) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvc5g-0006uz-Ss for emacs-devel@gnu.org; Mon, 30 May 2022 05:53:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=KcfvvVhGjYSIcxLzCK9tfKoWxwyLno6MbC9wQkYu6Gk=; b=HNOa/BqqpTKtuuerc0GzZV437z qrA7KVcDiXHYtM5qNUF20SjSzmNPKhW1EjiIvsYYk1LrfE3KuUb6WMV9wd6g7Sp2VEHLkjlKbIYhI q3MDti3NAyR2ZuTcCWAyGc5r8f6lX/kcZe7o9PuqHSLgkhz+2rK9k05ZWABNC18sqIEQ=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nvc5a-0001Fu-Gd; Mon, 30 May 2022 11:53:34 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEXq8fnAqLegeX9e OEAjFBucVUH///8QE4DzAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YFHgksOoQDdHAAAAGdSURBVDjL 1VNBbsNACNzkBbHzgtjtvTLwAsgHgvn/Vzqw2ciVUqnXcshGMzALw7q1fx8T4i28LLTc3sArmSm1 H9RpmomAI5peDtnzShVJ2DSYeSnQO9V4/ur4lY5hjeatejvzC3RSIhAkt0s78TE/CQMhy3TNRBsE o107K3iKz2NFEQtwY5MoSJBTVIvsz1AlLhEumATnKs17Kco8hlI4oyvxrTe4i2DknIGcrUUKoMEt b+yixRQRXSRSXnoCPQnom7o8hlU8iEdyTttHZUHZn0TFA832+meFD8ZjM+1X9q7oRRDb2ikMqAPN YHUtsVZWUNboaJzvOJtSCKokk7OMlctRmChlSMRu+LnvyorXw628wVwibpmZQzA8aUDZcq8SBpPz QoWV0RIDsmLB+c7QExJRWvvAAn2TYFgrNIiczg1dMS6BICzjkso11xxQhx8Ch1JS63JsAbALtLIJ VCjeLoaoJZpIIrh8r9fONVx5IfUByI52jdGuvExcOdW4+IY/MKAeLJDCuBO/xB8JpeeZ32CenhOb YKB8AjDE+RtdBtpHyoFRdQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMi0wNS0zMFQwOTo0NDo1OCsw MDowMAp04F8AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjItMDUtMzBUMDk6NDQ6NTgrMDA6MDB7KVjj AAAAAElFTkSuQmCC X-Now-Playing: Section 25's _From The Hip_: "Looking From A Hilltop" In-Reply-To: (Stefan Kangas's message of "Mon, 30 May 2022 09:31:06 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:290374 Archived-At: Stefan Kangas writes: > I currently synch SKK-JISYO.L against upstream once a month [but there > has been no changes to this file since December last year]. It should > be easy to include a step recreating the generated file and committing > that too, if that's what we want. It is extra work, though, and any work that can be avoided is nice. =F0=9F= =98=80 Doing some very light profiling here, a lot of the time is taken up by skkdic-get-entry, which is just lookup-nested-alist. My guess is that if somebody took a look ja-dic-cnv.el, this algorithm could be made substantially more efficient by using other data structures than an extremely long nested alist. But I have really no idea what it's really doing, so it's a bit daunting to start poking at the code. And my guess is that's why nobody else has, either, since not many people currently hacking at Emacs has the required domain knowledge. ;;; Commentary: ;; SKK is a Japanese input method running on Mule created by Masahiko ;; Sato . Here we provide utilities ;; to handle a dictionary distributed with SKK so that a different ;; input method (e.g. quail-japanese) can utilize the dictionary. ;; The format of SKK dictionary is quite simple. Each line has the ;; form "KANASTRING /CONV1/CONV2/.../" which means KANASTRING (=E4=BB=AE=E5= =90=8D=E6=96=87 ;; =E5=AD=97=E5=88=97) can be converted to one of CONVi. CONVi is a Kanji = (=E6=BC=A2=E5=AD=97) ;; and Kana (=E4=BB=AE=E5=90=8D) mixed string. ;; ;; KANASTRING may have a trailing ASCII letter for Okurigana (=E9=80=81=E3= =82=8A=E4=BB=AE=E5=90=8D) ;; information. For instance, the trailing letter `k' means that one ;; of the following Okurigana is allowed: =E3=81=8B=E3=81=8D=E3=81=8F=E3=81= =91=E3=81=93. So, in that ;; case, the string "KANASTRING=E3=81=8F" can be converted to one of "CONV1= =E3=81=8F", ;; CONV2=E3=81=8F, ... Well, that doesn't sound all that complicated, eh? (I'm hoping to entice somebody to see this as a fun challenge. =F0=9F=98= =80) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no