[sword-devel] osis2mod bug
DM Smith
dmsmith555 at yahoo.com
Tue Dec 2 12:24:42 MST 2008
I figured out a work around.
On Dec 2, 2008, at 11:32 AM, DM Smith wrote:
> I found the osis2mod bug and I need a bit of help. I guess I don't
> understand the SWORD engine all that well:)
>
> In an OSIS document we might have an osisID="John.2"
>
> When I do the following:
> VerseKey currentVerse;
> currentVerse.autoNormalize(0);
> currentVerse.Headings(1);
> currentVerse.Persist(1);
>
> ......
>
> currentVerse = token.getAttribute("osisID");
> cout << currentVerse << endl;
>
> I get the following:
> John 1:51
>
> Huh?
>
> I expected
> John 2:0
>
> How do I accomplish what I want?
I figured out a work around
VerseKey t;
t.AutoNormalize(0);
t.Headings(1);
t = token.getAttribute("osisID");
currentVerse = t;
For the life of me, I can't figure out why this works, but the other
does not.
In Him,
DM
More information about the sword-devel
mailing list