From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Jose A. Ortega Ruiz" Newsgroups: gmane.emacs.bugs Subject: bug#47705: [PATCH] EWW: Customize display of images Date: Tue, 13 Apr 2021 23:08:07 +0100 Message-ID: <87o8ehdeig.fsf@gnus.jao.io> References: <86zgy5m8ja.fsf@lima.oberreute.mueller-schleicher.de> <87wnt7zyph.fsf@gnus.org> <86o8ejmmls.fsf@lima.oberreute.mueller-schleicher.de> <875z0qtz8l.fsf@gnus.org> <86im4pnbcf.fsf@lima.oberreute.mueller-schleicher.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24051"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: 47705@debbugs.gnu.org Cancel-Lock: sha1:RE6UVExr25hpcwPpMsd/jO9vYLU= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 14 01:09:27 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWS9v-00068m-EU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Apr 2021 01:09:27 +0200 Original-Received: from localhost ([::1]:33690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWS9t-0001eJ-SA for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Apr 2021 19:09:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWS9Y-0001e8-BL for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2021 19:09:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWS9W-0001Xv-BX for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2021 19:09:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWS9W-0000JK-4R for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2021 19:09:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <86zgy5m8ja.fsf@lima.oberreute.mueller-schleicher.de> Resent-From: "Jose A. Ortega Ruiz" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Apr 2021 23:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47705 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16183552931137 (code B ref -1); Tue, 13 Apr 2021 23:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Apr 2021 23:08:13 +0000 Original-Received: from localhost ([127.0.0.1]:32947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWS8i-0000IH-HN for submit@debbugs.gnu.org; Tue, 13 Apr 2021 19:08:12 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWS8h-0000I9-6s for submit@debbugs.gnu.org; Tue, 13 Apr 2021 19:08:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWS8h-0001bh-2Q for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2021 19:08:11 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:53424) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWS8f-0001Aw-Gs for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2021 19:08:10 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lWS8c-0004YE-JE for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 01:08:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203992 Archived-At: On Tue, Apr 13 2021, Ralph Schleicher wrote: > Hi Lars, > > I have thought about it again and maybe we should approach the topic > from another side. Images are inline elements and so, first of all, > there is no reason why the renderer should insert line breaks at all. > The decision whether an image shall be displayed as an inline element > or as a block element is actually made by the creator of the web page. > The renderer should only follow the instructions. That means, if an > image is intermixed with text, or if multiple images are placed on a > single line, we should assume that there must be a reason and SHR > shouldn't try to be too smart. > > After all, the user should be able to take the final decision. Thus, > I've added an eww-toggle-inline-images command. I checked the result > with, e.g. www.gnu.org, www.gnu.org/software/emacs, docs.gtk.org/gtk4, > and www.lispworks.com/documentation/HyperSpec/Front -- it looks good. > > Maybe you reconsider adding the patch. Thank you. I just wanted to echo my approval of the thoughts above, based on my experience reading pages with embedded mathematical formulae... those are very common in math and physics blogs, and consist of many little inline images, and the current eww ways make them look worse than, say, emacs-w3m. For a random example of what i mean, just take any page from Terry Tao's blog: https://terrytao.wordpress.com/. Cheers, jao -- In this age, the mere example of nonconformity, the mere refusal to bend the knee to custom, is itself a service. -John Stuart Mill, philosopher and economist (1806-1873)