From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yoni Rabkin Newsgroups: gmane.emacs.devel Subject: Re: Colour selection in shr Date: Mon, 03 Nov 2014 08:30:12 -0500 Message-ID: <87wq7cza1n.fsf@rabkins.net> References: <8761ex10e0.fsf@rabkins.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415021467 16247 80.91.229.3 (3 Nov 2014 13:31:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2014 13:31:07 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 03 14:30:56 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XlHie-0001vS-IV for ged-emacs-devel@m.gmane.org; Mon, 03 Nov 2014 14:30:52 +0100 Original-Received: from localhost ([::1]:34740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlHid-000277-JF for ged-emacs-devel@m.gmane.org; Mon, 03 Nov 2014 08:30:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlHi8-00024X-Jg for emacs-devel@gnu.org; Mon, 03 Nov 2014 08:30:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlHi2-0007XS-Uk for emacs-devel@gnu.org; Mon, 03 Nov 2014 08:30:20 -0500 Original-Received: from smtprelay0104.hostedemail.com ([216.40.44.104]:56219 helo=smtprelay.hostedemail.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlHi2-0007XO-Qn for emacs-devel@gnu.org; Mon, 03 Nov 2014 08:30:14 -0500 Original-Received: from filter.hostedemail.com (unknown [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 3E92C9EA11 for ; Mon, 3 Nov 2014 13:30:14 +0000 (UTC) X-Session-Marker: 796F6E69407261626B696E732E6E6574 X-HE-Tag: drum24_3c328b0069a2d X-Filterd-Recvd-Size: 2575 Original-Received: from yrk-ThinkPad-T410.rabkins.net (c-75-69-93-148.hsd1.nh.comcast.net [75.69.93.148]) (Authenticated sender: yoni@rabkins.net) by omf13.hostedemail.com (Postfix) with ESMTPA for ; Mon, 3 Nov 2014 13:30:13 +0000 (UTC) X-Ethics: Use GNU In-Reply-To: (Lars Magne Ingebrigtsen's message of "Mon, 03 Nov 2014 11:32:09 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.40.44.104 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176266 Archived-At: Lars Magne Ingebrigtsen writes: > Yoni Rabkin writes: > >> 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. > > If shr selects colours that are difficult to read, that's a bug. It's > supposed to ensure sufficient colour distance to make things legible. > Do you have an example URL? For instance, see: http://www.classicalnotes.net/classics3/appassionata.html This renders for me with a bright white background and blue text. But note that for me, anything which changes the background color of my window breaks the way I use GNU/Emacs. Let me motivate my above patch request/suggestion: "Difficult" in this case is subjective and dependent on the way my eyes work, or in my case (http://en.wikipedia.org/wiki/Astigmatism_%28eye%29#Based_on_axis_of_the_principal_meridians), the particular way my eyes don't work. I'm sure that a healthy person can see the text, but for me the bright white background makes the text effectively invisible (the background white "bleeds" into the letters). In conclusion: I can't expect shr to select colors that work with my eyes, and I don't know to say that there is any problem with how shr selects colors. But I would like eww to allow me to say "I've set up Emacs to work with my eyes, please don't touch the background and foreground colors I've set up." -- "Cut your own wood and it will warm you twice"