[sword-devel] External links

Karl Kleinpaste karl at kleinpaste.org
Mon Nov 24 12:23:06 MST 2008


Sean Healy <jalopeura at hotmail.com> writes:
> 1) Is this only to other dictionaries, or is it also possible to link to 
> commentaries and general books?
> 2) Is it possible to have such a link from a bible or commentary?
> 3) Do any of the front-ends actually support any of this?
> 4) Do any current modules use any of this?

The URL syntax sword://ModuleName/KeyAppropriateToThatModule exists, and
some of the UIs do it.  GnomeSword has supported it for a long time.

I use it heavily in some personally-generated modules to link from a
commentary into a genbook (e.g. NETnote->Josephus), and internally in
some dictionaries.

> Specifically, I'm wondering whether I would be able to link to a general 
> book from a bible footnote (or from a commentary). For example, if the 
> footnote (or commentary) mentions something from Josephus, would it be 
> possible to make a link that goes directly to the relevant passage?

If you have the proper section naming for Josephus, yes:

sword://Josephus/%2FThe+Antiquities+of+the+Jews%2FBook+1%2FChapter+8%2FSection+1"

I've been told that my encoding is overstated, but it works as it is.



More information about the sword-devel mailing list