[sword-devel] How to get footnotes?
mmital
mitalmanu at hotmail.com
Sat Aug 25 21:26:39 MST 2007
Thanks, much appreciated!
----- Original Message -----
From: "Troy A. Griffitts" <scribe at crosswire.org>
To: "SWORD Developers' Collaboration Forum" <sword-devel at crosswire.org>
Sent: Saturday, August 25, 2007 10:55 PM
Subject: Re: [sword-devel] How to get footnotes?
> mmital,
>
> Try this (didn't check, but should be close):
>
> AttributeList &fns = pModule->getEntryAttributes()["Footnote"];
> for (AttributeList::iterator f = fns.begin(); f != fns.end(); f++)
> Footnotes.Add(pModule->RenderText(f->second["body"]));
>
>
> -Troy.
>
>
>
> mmital wrote:
>> Hi,
>>
>> I was wondering how to obtain footnotes in a particulat format (example,
>> a valid HTML or RTF text).
>>
>> Currently, I am using the following method that gives me the raw
>> footnote string:
>>
>>
>>
>> CStringArray Footnotes;
>>
>> for (i1 = pModule->getEntryAttributes().begin(); i1 !=
>> pModule->getEntryAttributes().end(); i1++)
>>
>> for (i2 = i1->second.begin(); i2 != i1->second.end(); i2++)
>>
>> for (i3 = i2->second.begin(); i3 != i2->second.end(); i3++)
>>
>> {
>>
>> CString first = i3->first;
>>
>> CString second = i3->second;
>>
>> first.MakeLower();
>>
>> if(first == "body") Footnotes.Add(second);
>>
>> } // end of i3 iteration
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> sword-devel mailing list: sword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>
More information about the sword-devel
mailing list