Subject: bug#52918: 29.0.50; to make use of ucd/Unihan_Readings.txt for kDefinition entry

From: Van Ly <[email-masked]>
Date: Tue, 25 Jul 2023 18:18:20 GMT

> Date: Tue, 25 Jul 2023 18:44:01 +0300
> From: Eli Zaretskii <[email-masked]>
> 
> > Date: Sun, 23 Jan 2022 13:40:23 +0200
> > From: Eli Zaretskii <[email-masked]>
> 

 <Time passes...>

> 
> > Date: Tue, 25 Jul 2023 14:47:52 GMT
> > From: Van Ly <[email-masked]>
> > 
> > I have since done the paperwork and was prompted to get this done or
> > close the bug report seeing the configure script for 29.1 on line
> > 2761 has the option to generate a smaller sized Japanese dictionary.
> > 
> > The awk script I have since misplaced but it should be somewhere in
> > the bug report if details have not been purged beyond 12 months.
> 
> Details were not purged, but please look at the past discussions of
> this bug and tell where in it should we look for the Awk script.
> 

The patch is located at X and the Awk script in there looks as follows

 1  BEGIN {
 2      FS="       "
 3      printf("(defvar readings-table\n\
 4         (make-char-table 'readings-table nil)\n\
 5         \"Char table of definitions for East Asian characters.\")\n")
 6  }
 7  /^#/ { next }
 8  /kDefinition/ {
 9      sub(/^../, "#x", $1)
10      printf("(aset readings-table %s \"%s\")\n", $1, $3)
11  }
12
13  # Local Variables:
14  # indent-tabs-mode: t
15  # tab-width: 8
16  # End:

 X
    https://lists.gnu.org/archive/html/bug-gnu-emacs/2022-01/msg01393.html