From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22786: 25.1.50; eww arabic rendering Date: Thu, 25 Feb 2016 17:55:16 +0200 Message-ID: <83wppsg4yj.fsf@gnu.org> References: <84fuwjca8b.fsf@gmail.com> <8760xeq5kj.fsf@gnus.org> <84y4aaza45.fsf@gmail.com> <87egc1z71n.fsf@gnus.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456415790 22100 80.91.229.3 (25 Feb 2016 15:56:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2016 15:56:30 +0000 (UTC) Cc: 22786@debbugs.gnu.org, mohamed.hibti@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 25 16:56:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aYyH1-0008No-SI for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 16:56:15 +0100 Original-Received: from localhost ([::1]:44068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYyH1-0001WW-37 for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 10:56:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYyGt-0001WC-RI for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 10:56:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYyGo-000549-Ni for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 10:56:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYyGo-000543-K3 for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 10:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYyGo-0004Wp-F6 for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 10:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Feb 2016 15:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22786 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22786-submit@debbugs.gnu.org id=B22786.145641573517373 (code B ref 22786); Thu, 25 Feb 2016 15:56:02 +0000 Original-Received: (at 22786) by debbugs.gnu.org; 25 Feb 2016 15:55:35 +0000 Original-Received: from localhost ([127.0.0.1]:46282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYyGJ-0004W5-Mi for submit@debbugs.gnu.org; Thu, 25 Feb 2016 10:55:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59512) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYyGF-0004Vn-4F for 22786@debbugs.gnu.org; Thu, 25 Feb 2016 10:55:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYyG4-0004vk-W8 for 22786@debbugs.gnu.org; Thu, 25 Feb 2016 10:55:21 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYyG4-0004vg-Sm; Thu, 25 Feb 2016 10:55:16 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4874 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aYyG4-00046c-5B; Thu, 25 Feb 2016 10:55:16 -0500 In-reply-to: <87egc1z71n.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 25 Feb 2016 16:05:16 +1030) 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113806 Archived-At: > From: Lars Ingebrigtsen > Date: Thu, 25 Feb 2016 16:05:16 +1030 > Cc: 22786@debbugs.gnu.org > > eww defaults `bidi-paragraph-direction' to `left-to-right', and depends > on web pages including the "dir" attribute to to change that. > The Al Jazeera web site doesn't do that, so things look wrong. (This, of course, is unrelated to the original problem.) > Is there a simple heuristic we could use to determine that we're on a > page where we should flip the paragraph direction? The heuristic that we have happens automagically if bidi-paragraph-direction is nil. (It's not a heuristic, it's what the Unicode Bidirectional Algorithm prescribes to do.) Then each paragraph gets its own direction computed on the fly. > Some pages may have a bit of RTL text without wanting to change the > paragraph direction (like most Wikipedia pages)... Exactly. Which is why we changed eww to its current default. I think at this stage we should add to the eww menu an item that allows to change the page direction, and let users override the default if needed. This should solve most, if not all, of the cases where the default doesn't DTRT.