GNU bug report logs - #66676
29.1; Should some aspects of shr rendering be configurable

Previous Next

Package: emacs;

Reported by: Rahguzar <rahguzar <at> zohomail.eu>

Date: Sun, 22 Oct 2023 08:12:02 UTC

Severity: wishlist

Found in version 29.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 66676 <at> debbugs.gnu.org (full text, mbox):

From: Rahguzar <rahguzar <at> zohomail.eu>
To: Rahguzar <rahguzar <at> zohomail.eu>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 66676 <at> debbugs.gnu.org
Subject: Re: bug#66676: 29.1; Should some aspects of shr rendering be
 configurable
Date: Wed, 25 Oct 2023 18:18:06 +0200
[Message part 1 (text/plain, inline)]
Dear Emacs developers,

Please find attached 5 patches:

1) The first introduces and uses the options Eli agreed with. These
include options to not fill text, configurable raise properties for
super and subscripts and :ascent property for images. The default values
for these new options do not alter the current behavior.

2) The second introduces an option to allow displaying some images
inline. The default value again preserves the existing behavior.

3) The third patch added an outline-search function and outline-level to
shr.el. These can be set by modes such as eww to provide outline
support.

4) The fourth patch adds these to provide outline support to eww. It has
enables visual-line-mode if shr is configured not to use
visual-line-mode.

5) The fifth patch corrects some misbehavior that I observed but I am
not sure it is the right thing so please feel free to disregard it.
Before inserting a subscript it checks if the subscript in on a newline
and in that case removes the newline. The newlines seem to be coming
from <br> tags which seems to be there to provide vertical alignment of
subscript and superscript if both are present.

Thanks,
Rahguzar


[0001-Make-some-aspects-of-shr-rendering-customizable.patch (text/x-patch, attachment)]
[0002-Allow-displaying-images-inline.patch (text/x-patch, attachment)]
[0003-Outline-support-for-shr-rendered-documents.patch (text/x-patch, attachment)]
[0004-Optionally-turn-on-visual-line-mode-outline-support.patch (text/x-patch, attachment)]
[0005-Don-t-insert-subscript-on-a-newline.patch (text/x-patch, attachment)]

This bug report was last modified 1 year and 259 days ago.

Previous Next


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