From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Van Ly Newsgroups: gmane.emacs.bugs Subject: bug#52918: 29.0.50; to make use of ucd/Unihan_Readings.txt for kDefinition entry Date: Mon, 17 Jan 2022 18:25:26 +0000 (UTC) Organization: Super Dimensional Fortress Message-ID: References: <71822f83-a7a7-1ec8-42e-c1c6294fed2@SDF.ORG> <83czl8diw6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1127197510-1642443927=:21275" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38830"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52918@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 17 19:26:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1n9Whm-0009um-Ef for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Jan 2022 19:26:10 +0100 Original-Received: from localhost ([::1]:45842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9Whk-0000wf-Qn for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Jan 2022 13:26:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9Whe-0000wW-RO for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2022 13:26:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55044) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9Whe-0002nP-I5 for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2022 13:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n9Whe-00044y-Dk for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2022 13:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Van Ly Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jan 2022 18:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52918 X-GNU-PR-Package: emacs Original-Received: via spool by 52918-submit@debbugs.gnu.org id=B52918.164244393615643 (code B ref 52918); Mon, 17 Jan 2022 18:26:02 +0000 Original-Received: (at 52918) by debbugs.gnu.org; 17 Jan 2022 18:25:36 +0000 Original-Received: from localhost ([127.0.0.1]:47947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9WhD-00044F-NN for submit@debbugs.gnu.org; Mon, 17 Jan 2022 13:25:35 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:64152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9WhA-000440-GM for 52918@debbugs.gnu.org; Mon, 17 Jan 2022 13:25:34 -0500 Original-Received: from sdf.org (IDENT:van.ly@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 20HIPTmw001902 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 17 Jan 2022 18:25:29 GMT Original-Received: from localhost (van.ly@localhost) by sdf.org (8.15.2/8.12.8/Submit) with ESMTP id 20HIPQWU016130; Mon, 17 Jan 2022 18:25:26 GMT In-Reply-To: <83czl8diw6.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:224471 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1127197510-1642443927=:21275 Content-Type: text/plain; charset=ISO-2022-JP; format=flowed On Mon, 3 Jan 2022, Eli Zaretskii wrote: > > Suggested implementation: > > . add Makefile rules to produce a uni-unihan-readings.el file from > Unihan_Readings.txt, which defines a char-table where each > character has its kDefinition property value > A candidate for the Makefile rule to produce uni-unihan-readings.el is ''' #!/bin/sh X='/usr/X/Projects/emacs-28.0.91/admin/unidata/Unihan_Readings.txt' fgrep 'kDefinition' "$X" | sed -e '/^#/d' -e 's/^../#x/' | head -n 3 | awk '-F ' 'BEGIN {printf("(defvar readings-table\n\t(make-char-table '\'readings-table' nil)\n\t\"Char table of definitions for East Asian characters.\")\n")} {printf("(aset readings-table %s \"%s\")\n", $1, $3)}' ''' The result is ''' (defvar readings-table (make-char-table 'readings-table nil) "Char table of definitions for East Asian characters.") (aset readings-table #x3400 "(same as U+4E18 丘) hillock or mound") (aset readings-table #x3401 "to lick; to taste, a mat, bamboo bark") (aset readings-table #x3402 "(J) non-standard form of U+559C 喜, to like, love, enjoy; a joyful thing") ''' -- vl --0-1127197510-1642443927=:21275--