[sword-devel] Sword enhancement proposal [was: HTML filter cross references link]
bergmannmd at web.de
Wed Jul 30 23:38:33 MST 2008
Am 31.07.2008 um 01:53 schrieb Jonathan Morgan:
> On Wed, Jul 30, 2008 at 8:12 PM, Manfred Bergmann
> <bergmannmd at web.de> wrote:
>> Am 30.07.2008 um 11:17 schrieb Troy A. Griffitts:
>>>>> What don't you like about how HTMLHREF display? Is it the
>>>>> 'x'? Could we put it in a <span class="footnote_marker"> allowing
>>>>> to write a CSS rule to display or hide as you would like?
>>>> What I have in mind is that all additional information in the
>>>> HTML is
>>>> hidden. It actually could be plain text then.
>>>> Some information should be shown while moving the mouse over the
>>>> in the HTML view or somewhere in another floating information
>>>> That would mean making the word a link that has normal display
>>>> attributes. But the data of the link might be something individual.
>>>> I don't kknow at the moment if this can be done by adding a marker
>>>> using CSS. Actually I didn't thought about using CSS.
>>> Have a look at SWORDWeb (click on any word in the text):
>>> This is done by hiding the looking information into
>>> getEntryAttributes(). If you change lookup.cpp back to WEBIF
>>> you can see how it is done. It obviously doesn't have to operate
>>> onclick, but could be on a hover over action. I think most of the
>>> frontends do the similar things while moving the mouse over words.
>> I think we mean something different.
>> With 'word' I meant that the word itself should be the link.
>> I.e. in Gen 1:1: the whole term 'In the beginning' is tagged with
>> lemma. So I want to be this whole term a link that doesn't look
>> like a
>> link and while moving the mouse over the link showing a tooltip.
>> This requires creating my own HTMLHREF filter subclass I guess. But
>> problem as long as I can do it.
>> Do I need to create a filter subclass for all raw types then?
> If you are using a reasonably competent HTML viewer you can add
> tooltips to any element with the title attribute (you don't need to
> use hyperlinks). However, you won't get formatted tooltips, as can be
> seen from a sample page with lots of title elements
Couldn't get to this URL.
But yes, it doesn't need to be a link. I think any tooltip before
showing can be intercepted by implementing an appropriate method in
Cocoa WebKit. So that would be fine.
More information about the sword-devel