From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#33729: 27.0.50; Partial glyphs not rendered for Gujarati with Harfbuzz enabled (renders fine using m17n) Date: Sun, 16 Dec 2018 19:30:00 -0500 Message-ID: References: <20181213203102.GF2244@macbook.localdomain> <83h8fghcpo.fsf@gnu.org> <20181214075056.GI2244@macbook.localdomain> <8336r0h1cb.fsf@gnu.org> <20181214110316.GK2244@macbook.localdomain> <83y38sfcme.fsf@gnu.org> <83tvjgf7ux.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1545006550 12012 195.159.176.226 (17 Dec 2018 00:29:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Dec 2018 00:29:10 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: dr.khaled.hosny@gmail.com, behdad@behdad.org, 33729@debbugs.gnu.org, far.nasiri.m@gmail.com, kaushal.modi@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 17 01:29:05 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYgmO-0002zD-J9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Dec 2018 01:29:04 +0100 Original-Received: from localhost ([::1]:44283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYgoV-0000wz-82 for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Dec 2018 19:31:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYgoJ-0000wu-G7 for bug-gnu-emacs@gnu.org; Sun, 16 Dec 2018 19:31:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYgoI-0004Ys-LH for bug-gnu-emacs@gnu.org; Sun, 16 Dec 2018 19:31:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46440) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gYgoI-0004YV-FM for bug-gnu-emacs@gnu.org; Sun, 16 Dec 2018 19:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gYgoI-000754-B6 for bug-gnu-emacs@gnu.org; Sun, 16 Dec 2018 19:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Dec 2018 00:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33729 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33729-submit@debbugs.gnu.org id=B33729.154500661727153 (code B ref 33729); Mon, 17 Dec 2018 00:31:02 +0000 Original-Received: (at 33729) by debbugs.gnu.org; 17 Dec 2018 00:30:17 +0000 Original-Received: from localhost ([127.0.0.1]:50698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYgnY-00073t-QY for submit@debbugs.gnu.org; Sun, 16 Dec 2018 19:30:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYgnW-00073e-Dv for 33729@debbugs.gnu.org; Sun, 16 Dec 2018 19:30:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYgnQ-00038r-B9 for 33729@debbugs.gnu.org; Sun, 16 Dec 2018 19:30:09 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYgnJ-0002vx-G7; Sun, 16 Dec 2018 19:30:01 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1gYgnI-0000qx-7A; Sun, 16 Dec 2018 19:30:00 -0500 X-Spook: H5N1 SBI Abu Sayyaf Cyber Command Emergency Relief X-Ran: Ca%JpP]j (Eli Zaretskii's message of "Fri, 14 Dec 2018 17:25:42 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 208.118.235.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:153503 Archived-At: Eli Zaretskii wrote: > After some thinking, my conclusion is that we should import the > ISO 15924 database from https://unicode.org/iso15924/, use a script > similar to admin/unidata/blocks.awk to generate an alist from it that > maps Emacs script names to ISO 15924 tags, and then access that alist > from uni_script to get the correct script information to Harfbuzz. > > Patches implementing that are welcome. I live to write awk scripts. I'm not 100% sure what you want, but as a first example, the following takes http://www.unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt as input and outputs lines of the form "(gujr . gujarati)". The aliases are so that the RHS matches charscript.el. If this is not right, please clarify exactly what the inputs and output should be. #!/usr/bin/awk -f function name2alias(name) { name = tolower(name) if (name ~ /arabic/) return "arabic" else if (name ~ /aramaic/) return "aramaic" else if (name ~ /cypriot/) return "cypriot-syllabary" else if (name ~ /katakana|hiragana/) return "kana" else if (name ~ /myanmar/) return "burmese" else if (name ~ /duployan|shorthand/) return "duployan-shorthand" else if (name ~ /signwriting/) return "sutton-sign-writing" sub(/^new_/, "", name) sub(/_(hieroglyphs|cursive)$/, "", name) gsub(/_/,"-",name) return name } $1 == "sc" { abbrev = tolower($3) alias = name2alias($5) if (alias ~ /^inherited|common|unknown/) next print "(" abbrev, ".", alias ")" }