From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#37683: Eww doesn't render Arabic script correctly Date: Thu, 10 Oct 2019 09:36:55 +0300 Message-ID: <83k19dt8c8.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="126215"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37683@debbugs.gnu.org To: Nicholas Drozd Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 10 08:38:18 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 esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iIS5U-000WUv-OG for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Oct 2019 08:38:12 +0200 Original-Received: from localhost ([::1]:34374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIS5R-0005MQ-Uf for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Oct 2019 02:38:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45929) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIS5L-0005MI-MF for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 02:38:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIS5K-00013Y-Ef for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 02:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46142) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iIS5K-00013U-BH for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 02:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iIS5K-0005i9-6U for bug-gnu-emacs@gnu.org; Thu, 10 Oct 2019 02:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Oct 2019 06:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37683 X-GNU-PR-Package: emacs Original-Received: via spool by 37683-submit@debbugs.gnu.org id=B37683.157068943921901 (code B ref 37683); Thu, 10 Oct 2019 06:38:02 +0000 Original-Received: (at 37683) by debbugs.gnu.org; 10 Oct 2019 06:37:19 +0000 Original-Received: from localhost ([127.0.0.1]:54963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIS4d-0005hB-4h for submit@debbugs.gnu.org; Thu, 10 Oct 2019 02:37:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iIS4b-0005gy-AG for 37683@debbugs.gnu.org; Thu, 10 Oct 2019 02:37:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iIS4W-0000vW-5P; Thu, 10 Oct 2019 02:37:12 -0400 Original-Received: from [176.228.60.248] (port=4261 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iIS4V-0006UE-4a; Thu, 10 Oct 2019 02:37:11 -0400 In-reply-to: (message from Nicholas Drozd on Wed, 9 Oct 2019 12:16:16 -0500) 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: 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:168838 Archived-At: > From: Nicholas Drozd > Date: Wed, 9 Oct 2019 12:16:16 -0500 > > Here is the Persian Wikipedia page for Emacs: > https://fa.wikipedia.org/wiki/%D8%A7%DB%8C%D9%85%DA%A9%D8%B3 > > When I open it in Eww, the cursive Perso-Arabic characters are not > strung together properly. For example, the article mentions the > "editor war", جنگ ویرایشگرها. In Eww, this is rendered as جنگ > ویرایشگرها with wrong forms (initial vs middle vs final vs isolated). > `D` runs `eww-toggle-paragraph-direction`, but that doesn't have any > effect on the problem. I think this might be a cursive issue rather > than a directionality issue, but I could be wrong. > > (As I prepare to send this, I notice that Gmail won't render that > phrase incorrectly, so the issue might not be communicated clearly > here.) Thank you for your report. First, you cannot effectively report text-shaping (and in general, rendering) problems by pasting the problematic text into an email message, because most Emacs maintainers use Emacs to read email, so any problems you report will be invisible to them, especially if you show two similar segments of text that are supposed to be rendered differently. The only reliable way of reporting such rendering problems is by including screenshots of the wrong and the correct rendering (the latter from some other application or from a different Emacs version, if that's applicable). And second, you didn't provide any details about the Emacs version you used and how it was built (i.e. the features it can support) -- this information is collected by "M-x report-emacs-bug" when you invoke it. My first suspicion is that you are using Emacs 26 or older and/or an outdated version of the libm17n library. Emacs 27 uses HarfBuzz by default (if available on the system), and I cannot imagine that HarfBuzz doesn't render Farsi text correctly. (If you send screenshots, I can verify that on my system, as I don't read Farsi, so I need an image of correct display to compare to.)