From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#34035: 26.1; Arabic shadda-kasrah renders incorrectly Date: Fri, 11 Jan 2019 17:14:24 +0100 Message-ID: <87pnt3goin.fsf@gmx.net> References: <87y37sv38f.fsf@nexoid.at> <83zhs8gx50.fsf@gnu.org> <878szrim1u.fsf@gmx.net> <83imyvh773.fsf@gnu.org> <874lafil0g.fsf@gmx.net> <83h8efh49n.fsf@gnu.org> <87zhs7h3ch.fsf@gmx.net> <83ef9jgw34.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1547223187 15501 195.159.176.226 (11 Jan 2019 16:13:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2019 16:13:07 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 34035@debbugs.gnu.org, craven@gmx.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 11 17:13:02 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghzQZ-0003lV-Bc for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Jan 2019 17:12:59 +0100 Original-Received: from localhost ([127.0.0.1]:35101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghzSg-0007Rl-AZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Jan 2019 11:15:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghzSZ-0007RZ-QG for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 11:15:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghzSY-0001yY-GF for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 11:15:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57003) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ghzSY-0001yL-8C for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 11:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ghzSX-0003FY-Tz for bug-gnu-emacs@gnu.org; Fri, 11 Jan 2019 11:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Jan 2019 16:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34035 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 34035-submit@debbugs.gnu.org id=B34035.154722327512441 (code B ref 34035); Fri, 11 Jan 2019 16:15:01 +0000 Original-Received: (at 34035) by debbugs.gnu.org; 11 Jan 2019 16:14:35 +0000 Original-Received: from localhost ([127.0.0.1]:56284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghzS6-0003Eb-UU for submit@debbugs.gnu.org; Fri, 11 Jan 2019 11:14:35 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:49245) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ghzS4-0003EN-GG for 34035@debbugs.gnu.org; Fri, 11 Jan 2019 11:14:33 -0500 Original-Received: from rosalinde ([188.101.22.117]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M7UUd-1hW86I3qTP-00xIjn; Fri, 11 Jan 2019 17:14:26 +0100 In-Reply-To: <83ef9jgw34.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 11 Jan 2019 15:30:55 +0200") X-Provags-ID: V03:K1:C9jdotGWmKlluax9dJFPwgKDPPeAhVMZjQ4wfGqnDys8XsXww4B pMfZthO2rgmzc1TuFiZQrmZT8Vg538JxXH8uVTDcuPRj3c5s1nwfdf5aSwccds1b9bY6+H5 P9Shncfwk2m3pktUH9SfxFpRwiuw4oItes/1VHqSjCFviUMuhEz5pMfqjWZ+VdBSbpi3Q++ KWGd/g5rUyPYsTSVQilMw== X-UI-Out-Filterresults: notjunk:1;V03:K0:+D45NyIOnoY=:vU3aO4DCN6+K9KzU0n6hcW p62O5ECaArL0vxHDv25K9lubNQeGu26Ksw88hIWjItvGMVbKK4a+0/VBeKqK1IFCJmIZAKPSG HhOlJZhlihvDP3FCbG6kvdeUI4eC7YCEovieKwTFFohkarNNcMOvQhPDVc8S9YLz3cVS9Zvh9 zE82PZftKhYg6rRGtpeHp6paSBrFTwFd9FZmKKCuO6vvcIdezR5hGkHyYnHrKYzI4hHliMINY jI+7lJ/cJQruNu2d0nIXmfmcJQTmUhbKvJLYJZz4NYJws21zHNcubWztsbJXkKSKbKUEbSlru uTvL3VriCbdSZ96R81KKV2NEiHPl8SaUPfO3hscHF+oM+O4RvHYa1iFtHTypsvPtD5RCcIoNH 2P/ER5Vp238kh8/mqesIsc5DQc7q61kXSd/C1uAI5nNv6Ko/KVaeHQ/2fOYsjaNEiRXsvWyPu 6O2wXsEoIJbPKL3VZMS4uF+pkOfxHXrzDHZLxl6q7FmqXPXvM5JMjhIFJ37tSdMYIT09S0mwe m/0pKZMBpbJjc0LV33B8r9Vq6fA8s85sH0tfn8wYNAfGjql5qEBjtKn3aAtCf/0f4kF+7sniP 2PmOvgovccyNp6h1lAbODHYwA+ISqr93zS1Bwni4LRK6MbLWn80pFfQ3LNSg8QRYQl1RAtlg1 Bw3viZSUXggPdN2RWNzlWbHjab7AaFg/8LLp1ACh6RtBgBUEVAN4q/6bMFZuBwFzmnp6K9CBP LuGLJFhOEWJe1VKJeMMDkCUmrQr+TkA/n2/JkBPxvM5Cw2jA5pQoIrQS1XP23MxV0NTiSAhE 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: 209.51.188.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:154348 Archived-At: On Fri, 11 Jan 2019 15:30:55 +0200 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: craven@gmx.net, 34035@debbugs.gnu.org >> Date: Fri, 11 Jan 2019 11:54:06 +0100 >> >> > This clearly says that Emacs uses DejaVu Sans for this grapheme >> > cluster, so I wonder what does "switch the font to Symbola" mean in >> > this case. Can you tell what you did to switch to Symbola? >> >> I started emacs with -Q, then I selected the "Set Default Font..." entry >> from the Options menu, clicked on "Symbola Regular" and pressed the >> select button. After doing that, `C-u C-x =' on a character in >> *scratch* shows this: >> >> xft:-UFAS-Symbola-normal-normal-semicondensed-*-15-*-*-*-*-0-iso10646-1 (#x37) > > Symbola supports only 10 characters from the Arabic block, so Emacs > selects a different font for these characters. That's what I suspected. And I've now found out what the crucial difference seems to be: I went through the fonts installed on my system, and there are only two families that display Arabic characters: DejaVu and Amiri, and only DejaVu Sans displays the shadda-kasrah combination correctly; in particular my default font, DejaVu Sans Mono, displays it incorrectly. Surprisingly, Amiri, which is specifically designed for Arabic, also displays it incorrectly, with the kasrah below the sin. With all the other fonts, Arabic characters are displayed using either Amiri or DejaVu, but of the latter, only a few (including Symbola) use DejaVu Sans, most (even non-monospaced fonts) use DejaVu Sans Mono. >> I don't know if it's significant, but it's only first glyph line from >> the harfbuzz build: >> [0 2 1587 6022 0 1 6 16 -8 [0 3 0]] >> that differs from the second glyph line from the master build: >> [0 2 0 6022 0 -15 -10 13 -11 [-16 2 0]] >> The second glyph line from the harfbuzz build: >> [0 2 1587 1377 16 0 16 6 4 nil] >> is identical to the first glyph line from the master build: >> [0 2 1587 1377 16 0 16 6 4 nil] > > The identical line describes the base character (1587 is its Unicode > codepoint) in the same font, so it's small wonder that it is the same > with both shaping engines. The different lines describe the > shadda-kasra diacritics. That's also what I thought. > (I'm mildly bothered by the fact that the > harfbuzz branch displays the information in reverse order, it might > mean some bug there.) I wondered about that too. > You can read more about the values displayed there in the doc string > of composition-get-gstring. Thanks for the pointer. Steve Berman