From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mohamed Hibti Newsgroups: gmane.emacs.bugs Subject: bug#22786: 25.1.50; eww arabic rendering Date: Thu, 25 Feb 2016 12:08:35 +0100 Message-ID: <84twkx11zg.fsf@gmail.com> References: <84fuwjca8b.fsf@gmail.com> <8760xeq5kj.fsf@gnus.org> <84y4aaza45.fsf@gmail.com> <87egc1z71n.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456398623 10311 80.91.229.3 (25 Feb 2016 11:10:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2016 11:10:23 +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 12:10:13 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 1aYtoD-0004S1-6n for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 12:10:13 +0100 Original-Received: from localhost ([::1]:42224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYtoC-0007ek-Iz for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 06:10:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYto6-0007Zl-0L for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 06:10:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYto2-0002rI-2P for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 06:10:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYto1-0002rB-UI for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 06:10:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYto1-00041i-NY for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 06:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mohamed Hibti Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Feb 2016 11:10: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.145639854415403 (code B ref 22786); Thu, 25 Feb 2016 11:10:01 +0000 Original-Received: (at 22786) by debbugs.gnu.org; 25 Feb 2016 11:09:04 +0000 Original-Received: from localhost ([127.0.0.1]:44833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYtn3-000401-6h for submit@debbugs.gnu.org; Thu, 25 Feb 2016 06:09:04 -0500 Original-Received: from mail-wm0-f52.google.com ([74.125.82.52]:35208) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYtmy-0003zf-2d for 22786@debbugs.gnu.org; Thu, 25 Feb 2016 06:09:00 -0500 Original-Received: by mail-wm0-f52.google.com with SMTP id c200so23162947wme.0 for <22786@debbugs.gnu.org>; Thu, 25 Feb 2016 03:08:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=Xytz2ZoPHzRXCrYlGzeaNSPtA2s5338TIGZ5QwNfGiU=; b=ofbaPBfYrojnUhIQEfyaaLX1t7FENv4TcKTdrTPUGH8Sub9quoEbFTLQSPuvpxYeLo i+yAiwI8xkM7MOLGN9HBMc08FZJV/fuCSfPaayomxbPhUw1vHuMhsLRqnxZHL+xncGzJ pHYYVI5olyResXPtxGBGoeuG4oiQ8jK2L0PYDkBSaJ4WFFXd4GNvLAFm0mpmOTKhqiC9 OO451V4ux8kQNkFn+GSZLR/o9FioWUKc6UjwyFovER7r9u8Qbhzw+gKHJXE1AQ7Yfodn PVpqVMSZTh38p9BtHd9PLTgHO9ZpgkJ6rN7KqsVJrMZBcfKauqx4r0DINd5JisJXmX/G 3Vng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=Xytz2ZoPHzRXCrYlGzeaNSPtA2s5338TIGZ5QwNfGiU=; b=YUVEVikCJht2ovB4MRep+vz7MGMq6kuM/F2jTUzwR7mekxZo/mHAo7Ojpg+M2AFTPS V1f7CxurGHYvUXkGV2MYyGkIA+k9SJPwN1mz+oiq9UNhzEU0CK1P00ecHZ1jDoAGOuVI sqzL44Y916vtXDF9oFI/Ja7TJe30u6ULsN/HHEsgZ4OeqlwciTXLMG3hBbvuFXnPWSYI rkYZdyZfmf9XNGOYJO3UVtXz5OndiReQNW8SQ83dbAkLwtCjV71dct5uUlF2B/sULTcD cV0CMu5NRXeAn9yjs0XCSJL/hOinWAt/N+VXXfGPkmi7qOXIzy6liOD4MY2TuZbLqPPB Mufg== X-Gm-Message-State: AG10YOS3omVdBNl+/GP2XNuHh11yZYym3vHbkyD8+U+2jQkBGboGI9MqqPVAglDrkzQqhA== X-Received: by 10.28.174.72 with SMTP id x69mr2948905wme.68.1456398530325; Thu, 25 Feb 2016 03:08:50 -0800 (PST) Original-Received: from cassiopee ([2a01:e35:2ed6:4f40:a08b:847:ac76:1471]) by smtp.gmail.com with ESMTPSA id x186sm2669227wmg.19.2016.02.25.03.08.48 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 25 Feb 2016 03:08:49 -0800 (PST) User-agent: mu4e 0.9.17; emacs 25.1.50.1 In-reply-to: <87egc1z71n.fsf@gnus.org> 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:113796 Archived-At: Lars Ingebrigtsen writes: > 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)... Unfortunaltely, I do not write offten in arabic and i'm not familiar with arabic html stuff !! However, I tried different pages and some of them as you said do not have specific indication to direction, some use (lang="ar" xml:lang="ar" dir="rtl"). For me toggling fonts in eww is a good solution. It worked well and have the advantage of displaying good fonts. Thanks for all, Mohamed P.S. Eli closed the bug.