[bt-devel] [ bibletime-Bugs-2719479 ] the second cross-reference not displaying

SourceForge.net noreply at sourceforge.net
Thu May 21 02:15:31 MST 2009


Bugs item #2719479, was opened at 2009-03-28 20:21
Message generated for change (Comment added) made by mgruner
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100954&aid=2719479&group_id=954

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Frontend / Bible display window
Group: new bug
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Darren Cacy (dpcacy)
Assigned to: Eeli Kaikkonen (eelik)
Summary: the second cross-reference not displaying

Initial Comment:
I originally opened bug #2021904 and it was recently closed, but I don't think the problem is solved.  Using BibleTime 2.0.alpha3 (but says alpha2 when I run it?), the first cross-reference in a verse will show up, but not the second.  Gen 1.14 is an example.  Gen 1.26 is an example of the second and third cross-references not displaying, but only the little blue square brackets.

I'm uploading a screenshot of these two verses.

----------------------------------------------------------------------

>Comment By: Martin Gruner (mgruner)
Date: 2009-05-21 11:15

Message:
Works for me too.

----------------------------------------------------------------------

Comment By: Eeli Kaikkonen (eelik)
Date: 2009-05-11 11:43

Message:
Fixed, but not guaranteed to not break something else :) Please test.

----------------------------------------------------------------------

Comment By: Eeli Kaikkonen (eelik)
Date: 2009-05-09 09:24

Message:
This is Psalm 100:3 with older Sword (1.5.9):

3 Know that [1 Kgs. 18:39] the Lord, he is God!
It is he who [See Ps. 95:6; Job 10:3, 8] made us, and [Isa. 43:1] we are
his; (1) 
we are his [Ezek. 34:30] people, and [See Ps. 74:1] the sheep of his
pasture.

This is the same with the latest Sword:

3 Know that [1 Kgs. 18:39] the Lord, he is God!
It is he who [] made us, and [] we are his; (1) 
we are his [] people, and [] the sheep of his pasture.

The problem is in our OSIS->html filter, or in the Sword library. The code
is src/backend/filters/bt_osishtml.cpp, in  BT_OSISHTML::handleToken. (I
have added the debugs here.) 

#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 

The debug statements reveal that
SWModule::getEntryAttributes()["Footnote"][footnoteNumber]["body"]
returns empty string if footnoteNumber > 1.

The code is compiled/called only with the newer Sword version (>= 1.5.10
according to our build system). This code has been added in svn rev. 946:
"Include Patch by Troy A. Griffitts to improve rendering with recent sword
library".

----------------------------------------------------------------------

Comment By: Darren Cacy (dpcacy)
Date: 2009-03-28 22:58

Message:
OS = Fedora Core 10.  
Sword rpms are: sword-devel-1.5.11-2.fc10.i386 and
sword-1.5.11-2.fc10.i386.  
Using kdebase-4.2.1-2.fc10.i386
clucene rpms are: clucene-core-devel-0.9.21-1.fc10.i386 and
clucene-core-0.9.21-1.fc10.i386

I downloaded bibletime-2.0.alpha3.tar.gz from sourceforge today.

What else do you need?

----------------------------------------------------------------------

Comment By: Eeli Kaikkonen (eelik)
Date: 2009-03-28 20:40

Message:
This was the bug I noticed and asked about earlier in the mailing list, but
nobody confirmed it. I will investigate it. Meanwhile, could you give more
information about your system: OS, Sword library package version etc.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100954&aid=2719479&group_id=954



More information about the bt-devel mailing list