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

Troy A. Griffitts scribe at crosswire.org
Fri May 8 15:45:19 MST 2009


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.



Eeli Kaikkonen wrote:
> The OSIS crossrefs work with Sword 1.5.9. However, with the latest Sword 
> version they don't work.
> 
> If you add some debugs in BT_OSISHTML::handleToken, you can see how all 
> but the first footnotes are empty.
> 
> #ifdef SWORD_SIMPLERENDER
>     sword::SWBuf footnoteNumber = tag.getAttribute("swordFootnote");
>     qDebug(footnoteNumber);
>     sword::SWBuf footnoteBody = 
> myModule->getEntryAttributes()["Footnote"][footnoteNumber]["body"];
>     qDebug(footnoteBody);
>     buf += myModule->RenderText(footnoteBody);
> #endif
> 
> SwordFootnote 1 always works, but 2, 3... don't work. This have caused 
> the bug with the ESV module. It's easy to find a verse where there's 
> more than one footnotes.
> 
> Martin has added the code in svn rev. 946: "Include Patch by Troy A. 
> Griffitts to improve rendering with recent sword library"
> 
> 
> --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