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: Thu, 25 Feb 2016 16:05:16 +1030 Message-ID: <87egc1z71n.fsf@gnus.org> References: <84fuwjca8b.fsf@gmail.com> <8760xeq5kj.fsf@gnus.org> <84y4aaza45.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456378586 4673 80.91.229.3 (25 Feb 2016 05:36:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2016 05:36:26 +0000 (UTC) Cc: 22786@debbugs.gnu.org To: Mohamed Hibti Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 25 06:36:14 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 1aYob0-0003NJ-5P for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 06:36:14 +0100 Original-Received: from localhost ([::1]:40192 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYoaw-00033E-6r for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 00:36:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYoas-00032d-4d for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 00:36:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYoao-0006DD-0Y for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 00:36:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYoan-0006Cf-Sz for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 00:36:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYoan-0004XN-JL for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 00:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Feb 2016 05:36:01 +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.145637854717419 (code B ref 22786); Thu, 25 Feb 2016 05:36:01 +0000 Original-Received: (at 22786) by debbugs.gnu.org; 25 Feb 2016 05:35:47 +0000 Original-Received: from localhost ([127.0.0.1]:44518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYoaZ-0004Wt-7Y for submit@debbugs.gnu.org; Thu, 25 Feb 2016 00:35:47 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:47669) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYoaX-0004Wl-IV for 22786@debbugs.gnu.org; Thu, 25 Feb 2016 00:35:46 -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 1aYoa9-0003Jc-Pk; Thu, 25 Feb 2016 06:35:22 +0100 In-Reply-To: <84y4aaza45.fsf@gmail.com> (Mohamed Hibti's message of "Wed, 24 Feb 2016 11:16:42 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aYoa9-0003Jc-Pk MailScanner-NULL-Check: 1456983322.57221@9gu/63HY33TFKkcMwQiUWg 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:113767 Archived-At: Mohamed Hibti writes: > Any arabic website I have tried for instance http://www.aljazeera.net. > you can see the rendering in the attached png. The page title is however > well displayed ! 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. Is there a simple heuristic we could use to determine that we're on a page where we should flip the paragraph direction? Some pages may have a bit of RTL text without wanting to change the paragraph direction (like most Wikipedia pages)... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no