[bt-devel] OSIS crossrefs rendering bug (added by Martin, patch by Troy - BibleTime or Sword bug?)

Troy A. Griffitts scribe at crosswire.org
Sat May 9 00:41:11 MST 2009


OK, I have check with RC3 (well SVN, but not much has changed).

When I run: sword/examples/cmdline/lookup ESV ps100.3

I get output which looks correct.  I believe the patch I sent Martin had 
a debug method I added at the top in an anonymous namespace.  I'm not 
sure if he included the debug method.  It was to dump the attributes 
just like the lookup.cpp example does.  If it is in there at the top, 
could you try calling it (there may be a call commented out if my patch 
was just applied fully) and see if you get the same attribute output as 
below.  Thanks Eeli!

-Troy.


scribe at scribe-laptop:~/src/sword/examples/cmdline$ ./lookup ESV ps100.3
==Raw=Entry===============
Psalms 100:3:
Know that <note type="crossReference" osisID="Ps.100.3.xref_s" 
n="s"><reference osisRef="1Kgs.18.39">1 Kin. 
18:39</reference></note>the <divineName>Lord,</divineName> he is 
God!<milestone type="line"/>  It is he who <note type="crossReference" 
osisID="Ps.100.3.xref_t" n="t"><reference osisRef="Job.10.3">See Ps. 
95:6; Job 10:3</reference>, <reference 
osisRef="Job.10.8">8</reference>s</note>made us, and <note 
type="crossReference" osisID="Ps.100.3.xref_u" n="u"><reference 
osisRef="Isa.43.1">Isai. 43:1</reference></note>we are his;<note 
type="explanation" osisID="Ps.100.3.note_1" n="1">Or <hi type="i">and 
not we ourselves</hi> </note><milestone type="line"/>  we are his <note 
type="crossReference" osisID="Ps.100.3.xref_v" n="v"><reference 
osisRef="Ezek.34.30">Ezek. 34:30</reference></note>people, and <note 
type="crossReference" osisID="Ps.100.3.xref_w" n="w">See Ps. 
74:1</note>the sheep of his pasture.<milestone type="line"/>
==Render=Entry============
Know that <span class="fn" onclick="f('ESV','Psalms 100:3','1');" 
 >x</span>the L<font size="-1">ORD,</font> he is God!<br /> It is he who 
<span class="fn" onclick="f('ESV','Psalms 100:3','2');" >x</span>made 
us, and <span class="fn" onclick="f('ESV','Psalms 100:3','3');" 
 >x</span>we are his;<br /> we are his <span class="fn" 
onclick="f('ESV','Psalms 100:3','5');" >x</span>people, and <span 
class="fn" onclick="f('ESV','Psalms 100:3','6');" >x</span>the sheep of 
his pasture.<br />
==========================
Entry Attributes:

[ Footnote ]
	[ 1 ]
		body = <reference osisRef="1Kgs.18.39">1 Kin. 18:39</reference>
		n = s
		osisID = Ps.100.3.xref_s
		refList = 1Kgs.18.39
		type = crossReference
	[ 2 ]
		body = <reference osisRef="Job.10.3">See Ps. 95:6; Job 
10:3</reference>, <reference osisRef="Job.10.8">8</reference>s
		n = t
		osisID = Ps.100.3.xref_t
		refList = Job.10.3; Job.10.8
		type = crossReference
	[ 3 ]
		body = <reference osisRef="Isa.43.1">Isai. 43:1</reference>
		n = u
		osisID = Ps.100.3.xref_u
		refList = Isa.43.1
		type = crossReference
	[ 4 ]
		body = Or <hi type="i">and not we ourselves</hi>
		n = 1
		osisID = Ps.100.3.note_1
		type = explanation
	[ 5 ]
		body = <reference osisRef="Ezek.34.30">Ezek. 34:30</reference>
		n = v
		osisID = Ps.100.3.xref_v
		refList = Ezek.34.30
		type = crossReference
	[ 6 ]
		body = See Ps. 74:1
		n = w
		osisID = Ps.100.3.xref_w
		refList =
		type = crossReference

scribe at scribe-laptop:~/src/sword/examples/cmdline$


Eeli Kaikkonen wrote:
> Troy A. Griffitts wrote:
>> Hey Eeli.  I'm not sure I understand.  Does the delta in 946 cause the 
>> problem, or does it not sufficiently fix a problem which happens with 
>> the newer engine?  Or is everything now fine?
>>
>>     -Troy.
>>
> 
> It doesn't work as it should. As I understand it, the delta was added to 
> make OSIS footnotes work with  Sword >= 1.5.10. Probably it has never 
> worked completely, unless the bug is in Sword and in very late version, 
> maybe >= 1.5.99. I have only 1.6RC3 and 1.5.9 for fast reference so I 
> haven't tested every revision.
> 
> Sorry about being vague - I was already too familiar with the problem.
> 
> It's been reported in:
> https://sourceforge.net/tracker/index.php?func=detail&aid=2719479&group_id=954&atid=100954 
> 
> 
> I just added a more detailed comment there. Hope it helps.
> 
> --Eeli Kaikkonen
> 
> _______________________________________________
> bt-devel mailing list
> bt-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/bt-devel




More information about the bt-devel mailing list