From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#22786: 25.1.50; eww arabic rendering Date: Fri, 26 Feb 2016 16:15:38 +1030 Message-ID: <87d1rkvxbx.fsf@gnus.org> References: <84fuwjca8b.fsf@gmail.com> <8760xeq5kj.fsf@gnus.org> <84y4aaza45.fsf@gmail.com> <87egc1z71n.fsf@gnus.org> <83wppsg4yj.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456465643 4900 80.91.229.3 (26 Feb 2016 05:47:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Feb 2016 05:47:23 +0000 (UTC) Cc: 22786@debbugs.gnu.org, mohamed.hibti@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 26 06:47:11 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 1aZBF8-0007Vj-8G for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Feb 2016 06:47:10 +0100 Original-Received: from localhost ([::1]:47465 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZBF7-0007mh-MG for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Feb 2016 00:47:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZBF3-0007lz-Gu for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 00:47:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZBF0-0002zi-CI for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 00:47:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49474) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZBF0-0002ze-8U for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 00:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aZBF0-0005c8-46 for bug-gnu-emacs@gnu.org; Fri, 26 Feb 2016 00:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Feb 2016 05:47: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.145646556919173 (code B ref 22786); Fri, 26 Feb 2016 05:47:02 +0000 Original-Received: (at 22786) by debbugs.gnu.org; 26 Feb 2016 05:46:09 +0000 Original-Received: from localhost ([127.0.0.1]:46601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZBE9-0004z1-Ef for submit@debbugs.gnu.org; Fri, 26 Feb 2016 00:46:09 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:38114) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZBE7-0004wV-5b for 22786@debbugs.gnu.org; Fri, 26 Feb 2016 00:46:07 -0500 Original-Received: from [175.103.25.178] (helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aZBDj-0004Yh-VS; Fri, 26 Feb 2016 06:45:44 +0100 In-Reply-To: <83wppsg4yj.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 25 Feb 2016 17:55:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aZBDj-0004Yh-VS MailScanner-NULL-Check: 1457070344.82753@Wpy7j3jRW8aB2zc9qEsMCA 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:113833 Archived-At: Eli Zaretskii writes: >> 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. They prescribe a heuristic. :-) >> 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. Well, Firefox displays the web page correctly without Firefox users having to do anything in particular, so presumably eww should be able to do the same, I would have thought? That is, eww should leave `bidi-paragraph-direction' to nil (which makes the Al Jazeera web page display correctly), and then it... shouldn't be so eager to switch the direction of paragraphs to rtl just because a section starts with some rtl text. Or something. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no