From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84010 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: HTML rendering and colors Date: Fri, 27 Dec 2013 09:03:52 +0100 Message-ID: <87vbyabtzr.fsf@thinkpad.tsdh.org> References: <87ha9vfurb.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1388131496 12542 80.91.229.3 (27 Dec 2013 08:04:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Dec 2013 08:04:56 +0000 (UTC) Cc: Vincent Bernat , ding@gnus.org To: Lars Ingebrigtsen Original-X-From: ding-owner+M32262@lists.math.uh.edu Fri Dec 27 09:05:02 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VwSPl-0000q3-EV for ding-account@gmane.org; Fri, 27 Dec 2013 09:05:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1VwSP2-00027n-Kv; Fri, 27 Dec 2013 02:04:16 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1VwSOx-00027T-MU for ding@lists.math.uh.edu; Fri, 27 Dec 2013 02:04:11 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1VwSOj-00075n-1b for ding@lists.math.uh.edu; Fri, 27 Dec 2013 02:04:11 -0600 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1VwSOh-0004p6-7p for ding@gnus.org; Fri, 27 Dec 2013 09:03:55 +0100 Original-Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 2B3A920911 for ; Fri, 27 Dec 2013 03:03:54 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Fri, 27 Dec 2013 03:03:54 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=01w7gQWsKU/oWCoOO28mJ9O0VMU=; b=KuCj69wNt48bjWRprkVNqZ5dTHDT TJYBNr310zorpQAcQAa9WsyAc4Tf76pSAf4fuy+NzdNWwrwfsxKT6xRhvGUXU6Ji KUJGkfVwSPd2R+7utOq94UKFhF3XgAvv0h+oFUjjThT8MltYQxYaBc7XpkJHDxsD 0P2Sx+mGVw7o/qs= X-Sasl-enc: BPx8hHA35SNpgl3XYGqc4En9TD1JK2pbZxZjePv2CVux 1388131433 Original-Received: from thinkpad.tsdh.org (unknown [91.67.164.26]) by mail.messagingengine.com (Postfix) with ESMTPA id 76092C00E81; Fri, 27 Dec 2013 03:03:53 -0500 (EST) Mail-Followup-To: Lars Ingebrigtsen , Vincent Bernat , ding@gnus.org In-Reply-To: <87ha9vfurb.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Thu, 26 Dec 2013 17:21:28 +0100") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84010 Archived-At: Lars Ingebrigtsen writes: >> It is not uncommon for me to receive mails difficult to read in >> HTML. I often get gray on gray texts. I am using shr as a >> renderer. It seems that there is some code in shr (I am using Emacs >> 24.3 and Gnus from git) that try to be clever on color pairs but >> either it does not work as expected or it is not enabled for me. How >> to troubleshoot this? > > I haven't seen any instances where shr has chosen colours that can't > be read. Do you have an example message? I had the same problem with about any HTML mail. The background was grey and the text was maybe a bit darker or lighter grey. Possibly that's caused by using a light-on-dark emacs theme. I'm using tsdh-dark which comes with emacs. Anyway, I could improve the situation with (setq shr-color-visible-distance-min 10 shr-color-visible-luminance-min 60) but it seems those variables have gone in the meantime. But still HTML mails are readable, so it seems the problem has been fixed. Bye, Tassilo