Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: shr - span elements with title attribute, tooltip?
Date: Tue, 29 Mar 2011 13:07:57 -0500	[thread overview]
Message-ID: <87sju5g5qa.fsf@lifelogs.com> (raw)
In-Reply-To: <m3y63x6cha.fsf@quimbies.gnus.org>

On Tue, 29 Mar 2011 19:52:17 +0200 Lars Magne Ingebrigtsen <larsi@gnus.org> wrote: 

LMI> Ted Zlatanov <tzz@lifelogs.com> writes:
AS> With shr, does span elements with title attributes get a tooltip (the
AS> small pop-up text that appears if you hold the mouse over the element
AS> for a while) with the text of the attribute?
>> 
AS> Shouldn't they?

LMI> The patch looks good, but all elements can have titles, can't they?  So
LMI> if shr is going to support titles, it should probably be done in the
LMI> general tag handling thing.  (And, of course, <td> handling needs
LMI> special-casing.)

I hope you can look at that.  I don't know shr.el well at all.

>> What if two such titled span elements are nested?

LMI> shr aims to be fast, not a complete HTML renderer.  So if that's
LMI> difficult, it's not essential.

It's not difficult.  Just render "[title: content]" instead of "content"
when the user asks to toggle the title, and give the user a way to do it
locally or globally for the whole buffer.

>> Also the mouse is required for tooltips and that's annoying when there's
>> no mouse.  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?

LMI> Hm...  isn't there a general Emacs tool tip thing that can show the tool
LMI> tip without using the mouse?  I have no idea, but there probably should
LMI> be if there isn't.  :-)

I don't think so.  And here's my argument against going down that road...

Tool tips are (arguably) one of the worst UI elements you can use
generally, as they are only intended for controls that don't have space
for labels (e.g. toolbars).  They require fine control, *a mouse*, and
the user to be patient while hovering above something.  There is not
even a hint that hovering will reveal a tool tip, you just have to hope.

See Raskin's "The Humane Interface" and Cooper's "About Face" for more
on this topic; Raskin is particularly consistent on the universal use of
text.  So I hope we use tool tips sparingly and only in addition to a
simple, inline way of showing titles.

Ted




  reply	other threads:[~2011-03-29 18:07 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-27  7:54 Adam Sjøgren
2011-03-27  8:32 ` [PATCH] Show title attribute of span elements as mouse over text Adam Sjøgren
2011-03-28 18:58 ` shr - span elements with title attribute, tooltip? Ted Zlatanov
2011-03-28 19:17   ` Adam Sjøgren
2011-03-28 19:33     ` Ted Zlatanov
2011-03-28 19:59       ` Adam Sjøgren
2011-03-28 20:14         ` Ted Zlatanov
2011-03-28 20:34           ` Adam Sjøgren
2011-03-28 21:02             ` Adam Sjøgren
2011-03-28 21:07             ` Ted Zlatanov
2011-03-29 17:52   ` Lars Magne Ingebrigtsen
2011-03-29 18:07     ` Ted Zlatanov [this message]
2011-03-29 18:23       ` Lars Magne Ingebrigtsen
2011-03-29 18:46         ` Ted Zlatanov
2011-03-29 19:04           ` Lars Magne Ingebrigtsen
2011-03-29 19:16             ` Ted Zlatanov
2011-03-29 19:35               ` Lars Magne Ingebrigtsen
2011-03-29 19:50                 ` Ted Zlatanov
2011-03-29 20:15                   ` Lars Magne Ingebrigtsen
2011-03-29 21:31                     ` Lars Magne Ingebrigtsen
2011-03-30  6:05                       ` Adam Sjøgren
2011-03-30 13:13                       ` Ted Zlatanov
2011-03-30 13:39                         ` Richard Riley
2011-03-30 19:02                           ` Ted Zlatanov
2011-04-03 12:10                             ` Lars Magne Ingebrigtsen
2011-03-29 21:15             ` Adam Sjøgren
2011-03-29 21:09     ` Adam Sjøgren
2011-03-30  0:58     ` Kevin Ryde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sju5g5qa.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).