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#66503: 29.1; Problem rendering Arabic diacriticals Date: Fri, 13 Oct 2023 09:20:00 +0300 Message-ID: <83il7bt567.fsf@gnu.org> References: <83mswntzg3.fsf@gnu.org> 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="38973"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66503@debbugs.gnu.org To: John Wiegley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 13 08:21:08 2023 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 1qrBXm-0009uw-GU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Oct 2023 08:21:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrBXR-0005JQ-AF; Fri, 13 Oct 2023 02:20:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrBXN-0005J6-05 for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 02:20:41 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrBXL-0003ry-BB for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 02:20:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrBXh-0004RU-PX for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 02:21: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: Fri, 13 Oct 2023 06:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66503 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169717803917032 (code B ref -1); Fri, 13 Oct 2023 06:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Oct 2023 06:20:39 +0000 Original-Received: from localhost ([127.0.0.1]:44622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrBXK-0004Qd-Lx for submit@debbugs.gnu.org; Fri, 13 Oct 2023 02:20:39 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:46634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrBXG-0004QN-Nj for submit@debbugs.gnu.org; Fri, 13 Oct 2023 02:20:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrBWo-0005Aa-9O for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 02:20:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrBWn-0003Yi-SJ; Fri, 13 Oct 2023 02:20:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=F24eQ/JyrxNxKGjEX/FRMbicg677RnkGtB4D1lk4Lyk=; b=n+nJpaTJ3T5enoOdC+bE Tt6Q9hvdNgsxYXY4Bb7uQzUKnZfKnsQXZOZ98m8fJF4nmT/A3GjL0HrnDxEOqnCDi/MpdpanykTqc wpc7r/xc85vws6O27aGC0BPwqR17lE2DzlWa16my/vxtsTT4+ijXTzzl4xbZZozVjev43Pc/AMvQ5 XK5gYzkcxtiAUjiO3jZzDGeSvazcXK3hB+7jzBrNimU02RzpG1CV+HDij268QR+xPBryAnKqq6OiJ gllov8TzjLr2EqdL8Xh6jJiC9ZJwoY1EJq35YkSNYCW7d/qLh7+2Kamd/fIdXa+l/fNqRZJ1OZl53 JwboJYbEvIwpaA==; In-Reply-To: (message from John Wiegley on Thu, 12 Oct 2023 13:40:06 -0700) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272336 Archived-At: > From: John Wiegley > Cc: bug-gnu-emacs@gnu.org > Date: Thu, 12 Oct 2023 13:40:06 -0700 > > >>>>> Eli Zaretskii writes: > > > Please also provide the text as text, so we could compare the rendering you > > see with what we see in other builds of Emacs. On macOS, which you seem to > > be using, Emacs uses the system text-shaping engine, which is different from > > HarfBuzz we use on most other platforms, so the rendering we see could be > > different. > > I’m always surprised by how much I forget to add to a bug report. > > The font is Scheherazade New (great font, btw): > > https://fonts.google.com/specimen/Scheherazade+New > > Here is the text: > > \ayat{زيرا مُجاهِدينِ کَعبِۀ فِينَا > > به بِشارَتِ لَنَهْدِيَنَّهُمْ سُبُلَنَا > > مَسرور اند} Thanks. Here on MS-Windows using HarfBuzz I see the same display as what you show for Mellel. Here's what "C-u C-x =" tells me about what Emacs did here: position: 54 of 83 (64%), column: 14 character: ن‎ (displayed as ن‎) (codepoint 1606, #o3106, #x646) charset: unicode (Unicode (ISO10646)) code point in charset: 0x0646 script: arabic syntax: w which means: word category: .:Base, R:Strong R2L, b:Arabic to input: type "C-x 8 RET 646" or "C-x 8 RET ARABIC LETTER NOON" buffer code: #xD9 #x86 file code: not encodable by coding system iso-latin-1-dos display: composed to form "نَّ" (see below) Composed with the following character(s) "َّ" using this font: harfbuzz:-outline-Courier New-regular-normal-normal-mono-32-*-*-*-c-*-iso10646-1 by these glyphs: [10 12 1617 841 19 7 12 27 -20 [0 1 0]] [10 12 1614 1000 19 0 19 16 0 nil] with these character(s): َ (#x64e) ARABIC FATHA ّ (#x651) ARABIC SHADDA Character code properties: customize what to show name: ARABIC LETTER NOON general-category: Lo (Letter, Other) decomposition: (1606) ('ن') The above is with the default font Emacs uses on Windows. If I force Emacs to use the Scheherazade New font, I also see the display you expected (similar to Mellel), although the composition info is a bit different (which is expected, as this is a different font): Composed with the following character(s) "َّ" using this font: harfbuzz:-outline-Scheherazade New-regular-normal-normal-*-23-*-*-*-p-*-iso10646-1 by these glyphs: [10 12 1617 1674 0 -1 6 25 -16 [0 3 0]] [10 12 1614 1115 6 -1 7 9 0 nil] with these character(s): َ (#x64e) ARABIC FATHA ّ (#x651) ARABIC SHADDA So it sounds like the Arabic shaping in your Emacs is not up-to-mark or something.