[sword-devel] Sword enhancement proposal [was: HTML filter cross references link]

Jonathan Morgan jonmmorgan at gmail.com
Wed Jul 30 23:53:48 MST 2008

On Thu, Jul 31, 2008 at 4:38 PM, Manfred Bergmann <bergmannmd at web.de> wrote:
> 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
>>>>>> superscripted
>>>>>> 'x'?  Could we put it in a <span class="footnote_marker"> allowing
>>>>>> you
>>>>>> 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
>>>>> words
>>>>> in the HTML view or somewhere in another floating information
>>>>> window.
>>>>> 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
>>>>> and
>>>>> using CSS. Actually I didn't thought about using CSS.
>>>> Have a look at SWORDWeb (click on any word in the text):
>>>> http://crosswire.org/study/passagestudy.jsp
>>>> This is done by hiding the looking information into
>>>> getEntryAttributes().  If you change lookup.cpp back to WEBIF
>>>> output,
>>>> you can see how it is done.  It obviously doesn't have to operate
>>>> with
>>>> onclick, but could be on a hover over action.  I think most of the
>>>> other
>>>> frontends do the similar things while moving the mouse over words.
>>> JavaScript, hmm...
>>> 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
>>> no
>>> 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
>> (http://www.cs.mu.oz.au/~jmmorgan/test_title.htm).
> Couldn't get to this URL.

http://www.cs.mu.oz.au/~jmmorgan/test_title.html (I must have dropped
the l off the end).

> 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.

Yes.  It partially depends on how much information you are displaying
and how you want it formatted.  I'm not sure if OSIS notes can be
formatted at all or not.


More information about the sword-devel mailing list