From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78135 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: shr - span elements with title attribute, tooltip? Date: Mon, 28 Mar 2011 14:33:04 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87tyenjb0v.fsf@lifelogs.com> References: <871v1tc82r.fsf@topper.koldfront.dk> <87ei5rkr6b.fsf@lifelogs.com> <8762r3jbq2.fsf@topper.koldfront.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1301340953 7721 80.91.229.12 (28 Mar 2011 19:35:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Mar 2011 19:35:53 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M26446@lists.math.uh.edu Mon Mar 28 21:35:49 2011 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 1Q4IE8-0004Ib-UQ for ding-account@gmane.org; Mon, 28 Mar 2011 21:35:49 +0200 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 1Q4IDi-0005fQ-9I; Mon, 28 Mar 2011 14:35:22 -0500 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 1Q4IDg-0005f6-9A for ding@lists.math.uh.edu; Mon, 28 Mar 2011 14:35:20 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Q4IDZ-0004R8-RZ for ding@lists.math.uh.edu; Mon, 28 Mar 2011 14:35:15 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Q4IDY-0007yZ-Ha for ding@gnus.org; Mon, 28 Mar 2011 21:35:12 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q4IDQ-0003sI-Lx for ding@gnus.org; Mon, 28 Mar 2011 21:35:04 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Mar 2011 21:35:04 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Mar 2011 21:35:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:GloY2IaU1d2LcsJQhmsIgcPzJag= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78135 Archived-At: On Mon, 28 Mar 2011 21:17:57 +0200 asjo@koldfront.dk (Adam Sjøgren) wrote: AS> On Mon, 28 Mar 2011 13:58:52 -0500, Ted wrote: >> What if two such titled span elements are nested? AS> When in HTML-land, do as the browser do, I'd say. I.e. last/closest one AS> wins: AS> * http://koldfront.dk/misc/gnus/span.html AS> (If you save the example, you can use M-x shr-visit-file to check if it AS> works as in the browser of your choice.) The problem is that shr.el is not as capable as a web browser so it's hard to tell what spans are nested and how. So you don't necessarily know what you're pointing to. This is actually a problem in regular web browsers too--I use the Chrome and Firebug "inspect element" all the time. >> Maybe it can be an `shr-show-titles' toggling command on an article, >> like `t' toggles the headers? I think we already have something like >> that for toggling images in the shr renderer, right? AS> How would you render the titles? Instead of span1 span2 I'd render [title1: span1] [title2: span2] but the actual visual is not too important. It could be customizable as a `format' HTML string for instance. Ted