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: Tue, 01 Mar 2016 18:44:07 +0200 Message-ID: <83mvqi6td4.fsf@gnu.org> References: <84fuwjca8b.fsf@gmail.com> <8760xeq5kj.fsf@gnus.org> <84y4aaza45.fsf@gmail.com> <87egc1z71n.fsf@gnus.org> <83wppsg4yj.fsf@gnu.org> <87d1rkvxbx.fsf@gnus.org> <83povjetir.fsf@gnu.org> <878u25xyk0.fsf@gnus.org> <831t7wc06e.fsf@gnu.org> <87vb582qk8.fsf@gnus.org> <837fho9ohr.fsf@gnu.org> <87twksxhed.fsf@gnus.org> <83ziuj8r4d.fsf@gnu.org> <87bn6z5avd.fsf@gnus.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456850721 29797 80.91.229.3 (1 Mar 2016 16:45:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2016 16:45:21 +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 Tue Mar 01 17:45:10 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 1aanQ5-0005ox-P9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Mar 2016 17:45:09 +0100 Original-Received: from localhost ([::1]:50911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aanQ5-0007ec-08 for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Mar 2016 11:45:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aanQ0-0007ba-IU for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 11:45:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aanPy-0003u6-54 for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 11:45:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aanPy-0003u2-25 for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 11:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aanPx-0007hj-Rk for bug-gnu-emacs@gnu.org; Tue, 01 Mar 2016 11:45:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Mar 2016 16:45: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.145685067129565 (code B ref 22786); Tue, 01 Mar 2016 16:45:01 +0000 Original-Received: (at 22786) by debbugs.gnu.org; 1 Mar 2016 16:44:31 +0000 Original-Received: from localhost ([127.0.0.1]:56529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aanPT-0007gn-Ku for submit@debbugs.gnu.org; Tue, 01 Mar 2016 11:44:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38795) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aanPR-0007gZ-AG for 22786@debbugs.gnu.org; Tue, 01 Mar 2016 11:44:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aanPG-0003n0-G4 for 22786@debbugs.gnu.org; Tue, 01 Mar 2016 11:44:24 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aanPG-0003mw-Ca; Tue, 01 Mar 2016 11:44:18 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2234 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aanPF-0002ar-Kw; Tue, 01 Mar 2016 11:44:18 -0500 In-reply-to: <87bn6z5avd.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 01 Mar 2016 10:56:38 +1100) 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:114254 Archived-At: > From: Lars Ingebrigtsen > Cc: mohamed.hibti@gmail.com, 22786@debbugs.gnu.org > Date: Tue, 01 Mar 2016 10:56:38 +1100 > > > So I think for best results we should add support for the remaining > > bidi directives. Adding support for "dir=auto" in the HTML tag is > > almost trivial. To support the rest of the directives you need to add > > bidirectional formatting control characters before and/or around the > > text that is marked with these directives. (If needed, I can provide > > the details about the controls you need to insert in each case.) > > I think I remember the control characters from past discussions. But is > the dir attribute used much in practice? I've tried to be very, very > restrictive in what features I add to the common paths in shr. It's > already slow enough, and each new line of code in the common paths add > some slow down. It's death by a thousand cuts. :-) I don't oppose > adding support for this if it's really used a lot in the wild, but if > not, I'd rather not. I don't have any statistics. I would expect it to be used in pages that show paragraphs of different direction. > (The "dir" attribute can apply to (almost) any HTML element, so the code > to detect and react to it would go into `shr-descend', which is called > once for every single HTML node in the document.) Can you add its support to the

element? I think this will go a long way towards supporting the majority of use cases. Thanks.