GNU bug report logs - #47705
[PATCH] EWW: Customize display of images

Previous Next

Package: emacs;

Reported by: Ralph Schleicher <rs <at> ralph-schleicher.de>

Date: Sun, 11 Apr 2021 10:16:01 UTC

Severity: normal

Tags: fixed, patch

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Ralph Schleicher <rs <at> ralph-schleicher.de>
Cc: 47705 <at> debbugs.gnu.org
Subject: bug#47705: [PATCH] EWW: Customize display of images
Date: Mon, 12 Apr 2021 10:36:26 +0200
Ralph Schleicher <rs <at> ralph-schleicher.de> writes:

> EWW already supports displaying web pages with ALT texts instead of
> images but this feature is not visible to the user.

Thanks; applied to Emacs 28.

> Additionally, images or ALT texts are always displayed on a line by
> itself.  This may waste a lot of vertical space, e.g. when displaying
> the Common Lisp HyperSpec.  The attached patch fixes these issues.

But not this bit.  The image display in shr should be improved, though.
The problem is that mixing large inline in text often makes the text
less easy to read, and this is particularly a problem in tables, where
shr chooses to not include images at all.

shr should instead include images in-line if they are "small" -- i.e.,
if they've got a height that's somewhat comparable to the line height,
but not otherwise.

This sounds like trivial thing to do, but it's not -- we don't know the
size of the images until we load them (usually), and shr doesn't to
re-flowing at all.

shr could do inline images if the images have known width/heights (and
the images are "small"), though.  Patches welcome.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 34 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.