emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Readability" feature in eww


From: Yoni Rabkin
Subject: Re: "Readability" feature in eww
Date: Sun, 02 Nov 2014 21:30:31 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Lars Magne Ingebrigtsen <address@hidden> writes:

> It occurred to me that it would probably make sense for eww to have a
> "readability" feature a couple of hours ago, so I implemented a take on
> it and committed it.
>
> The `R' command in eww will try to find the parts of the current page
> where most of the text is, and only display that part.  This makes all
> the menus and stuff disappear, and you don't have to page forever to
> find the actual article on newspaper sites.
>
> This is a heuristic, of course, so it can be tweaked endlessly.  The
> current algorithm just gives most words a positive score, HTML markup a
> negative score, and words inside <a> tags a negative score.  For such a
> simple algorithm, it seems to give pretty good results.
>
> But tweaking is necessary for it to be ... better.  If anybody has ideas
> for tweaks or better algorithms, please be my guest and have at it.

One thing I've found significantly increases readability for me is far
simpler: I disable color in `eww-tag-body'. Rendering color, especially
background color, doesn't necessarily make sense when you use a purely
textual display.

I always work with a dark background, so when Eww renders a full white
background and, say, light blue text the page becomes unreadable.

I could send in a patch which makes color rending in the body optional;
it's definitely how I will be using Eww going forward.

-- 
   "Cut your own wood and it will warm you twice"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]