From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74790 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] shr: render table with style Date: Mon, 06 Dec 2010 19:07:53 +0100 Organization: Programmerer Ingebrigtsen Message-ID: References: <1291656608-16263-1-git-send-email-julien@danjou.info> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1291658909 20506 80.91.229.12 (6 Dec 2010 18:08:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2010 18:08:29 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23146@lists.math.uh.edu Mon Dec 06 19:08:25 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PPfU6-0007Pu-Un for ding-account@gmane.org; Mon, 06 Dec 2010 19:08:23 +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 1PPfTu-0006Ga-Jp; Mon, 06 Dec 2010 12:08:10 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PPfTt-0006GP-1q for ding@lists.math.uh.edu; Mon, 06 Dec 2010 12:08:09 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PPfTo-00064C-8S for ding@lists.math.uh.edu; Mon, 06 Dec 2010 12:08:08 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PPfTn-0004zW-00 for ; Mon, 06 Dec 2010 19:08:03 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PPfTn-0007GU-CU for ding@gnus.org; Mon, 06 Dec 2010 19:08:03 +0100 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Dec 2010 19:08:03 +0100 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Dec 2010 19:08:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 18 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXc1c4oFxO7r6ULAwLW 0MvRysGIb2Xm4diYoD6qAAACRElEQVQ4jW2TTY+bMBCGp5EpZxTJ50DBPSNLe7Yik15ZZNNr7Q1z RpFW/P3O2CHZbXfyYcdP3vnyAEu5/W9gB+gMfEE2AZ01X2iggNYAELlVn+zPkADAduu13k+PWjMg AZTrQWdjQMt1V8BNP4gMGdjyHxDrp6ttfQLZqR18VsRxzq44dll+UPx+/aB4ZNVX6md9VyR7gFAt b490y2eMPtZyr8NyJYe+ymDZQQeQgMRjip3B4qm7YAwDFVggG4WsmKBzRjCITdCV7lHFN1YQsBTD EPBKy6pClVwSaFNsOHR+qjBUkjt1VxiKAjcCKjYolx86x2hFVix+8k03BXnUuythGcTJ+4JU6Xx3 ZYy5RU+gaJqg764ICBBQIDbJsKLcqo5ccXn0nmI40klPrnqUQ0pXcN9T/n3gC9cvaBkAA4HcCV0H Xnr0BCD1vcAUta4ZSAZddgWpRbuisffKwawxVVznGBnYdFWqTjfO86lfFLtyzhEaMKpcCF0IKqqj 86Mzzh6sOJ/yUAprfMvAO2vtWcWI9FfF34isGLxjohr6HdSMkTLLgKNbMdO5vOD8LSoZ0HHlZMKI Bb9fMS4zXhu8pKwolgFhahqDEGMdg6RdUnB7oWjpPrpp8YOjTdN6cFT3LwInWMtym0/rtq5g2wGc 4Adnez+VGz29r7FdeZQJjHna37nmrryM59QAVvD9lbD6KaGGZohsZGCA20u9p45MnkfGWkeAyqCP EbQCl8o2eMoq5ecHejk/WlukDdXhBv/R3H2d/gJgQ/YsW+DAbQAAAABJRU5ErkJggg== Mail-Copies-To: never X-Now-Playing: Sandy Denny's _Complete Recordings 10 (Rendezvous)_: "Full Moon" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:CDL8QOePBnkiOPwjs4fITiAyBew= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74790 Archived-At: The method I imagined for the colours is perhaps somewhat unclear. :-) For each element, we see whether we should colourise ourselves. If we decide to, then we look at the color/background-color settings inherited from our parents, too, when computing what colours to actually render ourselves at. In return, when the parents render themselves they do exactly the same (it's all so recursive), but make sure that none of the colours already rendered are overridden, because then the children will be cranky. So I don't really see that any special-casing should be necessary for elements at all. But there may be something subtle here I'm not seeing... -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen