[sword-devel] Creation of commentary using osis..

DM Smith dmsmith555 at yahoo.com
Sat Feb 3 06:45:50 MST 2007


With a reference like <reference osisRef="Eph.2.1">Ephesians 2:1</ 
reference> the OSIS manual indicates that the osisRef is to be  
understood as a reference to the same work. So properly, it refers to  
the same commentary in which it is found.

The proper way to reference this would be to include a workID as a  
prefix, such as Bible. Then it would be <reference osisRef="Bible:Eph. 
2.1">Ephesians 2:1</reference>.

To refer to a particular work, a more specific workID would be used,  
perhaps KJV or Bible.KJV.

The workID is supposed to be declared in the header of the document.  
The workID can be anything. It is the declaration that makes it  
meaningful. But since Sword does not retain the document header, a  
reliable mechanism is needed.

We have discussed this before and have come up with the idea that the  
workID should match the module id (i.e. the name that is in the [] at  
the top of the module's conf.

Having said all this, Sword does not support osisRefs that have the  
workID prefix.

In His Service,

On Feb 2, 2007, at 7:41 PM, Pierre Marc Dumuid wrote:

> Hi again,
> I am continuing to attempt to create a sword module using OSIS and  
> have
> hit another annoyance.
> I have been using a sed script to auto convert bible reference into  
> the
> format:
> <reference osisRef="Ephesians.1.1">Ephesians 1:1</reference>
> and then when I run osis2mod, and preview it in BibleTime, I can hover
> my mouse over the bible references and it'll show me the bible  
> verse for
> the default bible.  This has all been going well, but recently I  
> decided
> to try the modules on my friends Mac using macsword, and on my  
> linux box
> using gnomesword2.
> In macsword, placing the mouse over the bible verse pops up a windows
> showing the text for that passage, but the COMMENTARY text, and not  
> the
> BIBLICAL text. (the biblical text being what people would rather be  
> doing)
> In gnomesword2 (2.2.1) the bible verse shows up as a hyperlink, but  
> when
> clicking on it, the preview doesn't switch to the verse??
> I have not seen what the windows version does yet .. Any comment on
> these errors?  Am I referencing verses incorrectly?
> The modules & osis.xml file are in the zip file at:
> http://phptrialweb.newcreation.org.au/gb_Eph317.zip
> Pierre
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

More information about the sword-devel mailing list