[sword-devel] How to obtaining Headings, Foot notes, Cross references, etc, in Python

Ben Morgan benpmorgan at gmail.com
Tue Oct 21 17:03:02 MST 2008

You have to pull the headings out of the entry attributes after rendering.
The code to get the headings in BPBible is in the function get_headings

You would probably need to replace SW.Buf with Sword.SWBuf throughout

To handle the footnotes, crossreferences and strong's numbers BPBible uses
the code here:

Which calls GetFootnoteData here to actually get the data from the module:

God Bless,
The grace of the Lord Jesus Christ be with your spirit.
Philippians 4:23 (ESV)

On Wed, Oct 22, 2008 at 10:46 AM, Anonymous <junk_and_mail at yahoo.com> wrote:

> But when it prints out the verse, it doesn't show the verse heading. I know
> there's something i'm missing, but sadly this is about as far as my
> knowledge on this goes for pulling up verses with their headings, foot
> notes, etc... And i have no idea how to use AddRenderFilter(). After
> figuring out how to pull up verse headings, my next goal would be to figure
> out how obtain foot notes and cross references from, for example, <a
> href="passagestudy.jsp?action=showNote&type=x&value=2&module=ESV&passage=Job+1%3A1"><small><sup>*x</sup></small></a>—if
> at all possible. But hours of browsing through code, Googling, etc, hasn't
> helped much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.crosswire.org/pipermail/sword-devel/attachments/20081022/8ae8c981/attachment.html 

More information about the sword-devel mailing list