From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34035: 26.1; Arabic shadda-kasrah renders incorrectly Date: Wed, 19 Aug 2020 17:32:51 +0300 Message-ID: <83ft8iemek.fsf@gnu.org> References: <87y37sv38f.fsf@nexoid.at> <83zhs8gx50.fsf@gnu.org> <878seb12v1.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16202"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 34035@debbugs.gnu.org, stefan@marxist.se, craven@gmx.net To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 19 16:34:09 2020 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 1k8PAH-00042y-Jq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Aug 2020 16:34:09 +0200 Original-Received: from localhost ([::1]:38964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8PAG-0004yG-5q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Aug 2020 10:34:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8PAA-0004xx-7K for bug-gnu-emacs@gnu.org; Wed, 19 Aug 2020 10:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57341) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k8PA9-0001EA-Uc for bug-gnu-emacs@gnu.org; Wed, 19 Aug 2020 10:34:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k8PA9-00061K-RP for bug-gnu-emacs@gnu.org; Wed, 19 Aug 2020 10:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Aug 2020 14:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34035 X-GNU-PR-Package: emacs Original-Received: via spool by 34035-submit@debbugs.gnu.org id=B34035.159784759223085 (code B ref 34035); Wed, 19 Aug 2020 14:34:01 +0000 Original-Received: (at 34035) by debbugs.gnu.org; 19 Aug 2020 14:33:12 +0000 Original-Received: from localhost ([127.0.0.1]:40654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8P9M-00060H-GP for submit@debbugs.gnu.org; Wed, 19 Aug 2020 10:33:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8P9K-000601-2X for 34035@debbugs.gnu.org; Wed, 19 Aug 2020 10:33:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49180) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8P9D-00016X-FZ; Wed, 19 Aug 2020 10:33:03 -0400 Original-Received: from [176.228.60.248] (port=4802 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k8P9C-00017L-1L; Wed, 19 Aug 2020 10:33:02 -0400 In-Reply-To: <878seb12v1.fsf@tcd.ie> (contovob@tcd.ie) 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:185618 Archived-At: > From: "Basil L. Contovounesios" > Cc: Eli Zaretskii , 34035@debbugs.gnu.org, Peter > > Date: Wed, 19 Aug 2020 09:01:06 +0100 > > The kasrah is shown below the sin: > > [...] > > Composed with the following character(s) "ِّ" using this font: > xfthb:-PfEd-DejaVu Sans Mono-normal-normal-normal-*-26-*-*-*-m-0-iso10646-1 > by these glyphs: > [0 2 1616 1153 16 4 12 0 4 [0 6 0]] > [0 2 1617 1154 16 3 12 23 -15 [0 2 0]] > [0 2 1587 1129 16 -4 15 10 7 nil] > > Character code properties: customize what to show > name: ARABIC LETTER SEEN > general-category: Lo (Letter, Other) > decomposition: (1587) ('س') > > [...] > > The kasrah is shown above the sin: > > [...] > > Composed with the following character(s) "ِّ" using this font: > xfthb:-PfEd-DejaVu Sans-normal-normal-semicondensed-*-26-*-*-*-*-0-iso10646-1 > by these glyphs: > [0 2 1616 6022 0 2 10 27 -15 [1 5 0]] > [0 2 1617 1377 29 1 27 10 7 nil] > > Character code properties: customize what to show > name: ARABIC LETTER SEEN > general-category: Lo (Letter, Other) > decomposition: (1587) ('س') Which seems to clearly indicate that this _is_ font-dependent, right? Moreover, it seems also to hint on the reason for the issue: the correct display uses only 2 glyphs, whereas the incorrect display uses 3 glyphs. Which means -- and that matches my observations on my systems -- that the "good" font has a precomposed glyph for shadda-kasrah, while the "bad" font doesn't. And the composition data in the latter case indicates that we were told to display the kasrah below the base character (the descent value is positive). Can someone please see what HarfBuzz's hb-view produces from these glyphs, with the same fonts as you see in Emacs? If hb-view produces the same display for the same fonts, then it's not an Emacs problem, and we should ask the HarfBuzz developers what, if anything, HarfBuzz can do better for the problematic fonts. And if hb-view does better than Emacs, then we should ask the HarfBuzz developers to help us understand what we do incorrectly in this case.