[sword-devel] problems with osis filters?

Martin Gruner mg.pub at gmx.net
Tue Dec 9 13:27:26 MST 2008

Hi all.

I've got problems with Sword 1.5.11, which seem not to be present with 1.5.9.

martin at workstation:/home/dev/sword/examples/cmdline$ ./lookup ESV "3Joh 1:1"
III John 1:1:
<title subType="x-preverse" type="section">Greeting</title><note n="a" 
osisID="3John.1.1!crossReference.a" osisRef="3John.1.1" 
type="crossReference"><reference osisRef="2John.1.1">2 John 
1</reference></note>The elder to the beloved Gaius, <note n="b" 
osisID="3John.1.1!crossReference.b" osisRef="3John.1.1" 
type="crossReference"><reference osisRef="1John.3.18">1 John 3:18</reference>; 
<reference osisRef="2John.1.1">2 John 1</reference></note>whom I love in 
truth. <lb type="x-end-paragraph"/> <lb type="x-begin-paragraph"/>
elder to the beloved Gaius, <a 
I love in truth. <br /><br />

(Output from Sword SVN, seems to be  same behaviour as 1.5.11)

Please look at how the <reference> tags inside the <note> tag disappear in the 
rendered output.

At BibleTime, we use an OSISHTMLHREF descendant class for the filtering of some 
tags. Now it seems that handleToken() does not even get called for the 
<reference> and </reference> tags. One call is for <note>, and the next 
already for </note>. Their content is skipped. 
This does not seem to be the case with Sword 1.5.9, but I could not find out 
what causes this.

Can somebody please help? And should this be a bug, can a maintenance version 
be released fixing it?



More information about the sword-devel mailing list