Hi.<br><br>I have some questions with the FMT_HTMLHREF filter. Let's say I do the following in python:<br>from Sword import *<br>mgr = SWMgr(MarkupFilterMgr(FMT_HTMLHREF, ENC_HTML))<br>mgr.setGlobalOption("Footnotes", "On")
<br>mod=mgr.getModule("ESV")<br>mod.RenderText(VerseKey("John 3:1"))<br><br>What I get out is this (breaking it up for legibility):<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
Now there was a man of the Pharisees named <br><a href="passagestudy.jsp?action=showNote&type=x&value=1&module=ESV&passage=John+3%3A1"><small><sup>*x</sup></small></a>
<br>Nicodemus, <br><a href="passagestudy.jsp?action=showNote&type=x&value=2&module=ESV&passage=John+3%3A1"><small><sup>*x</sup></small></a><br> a ruler of the Jews.'
</blockquote><div><br>Is there any way to get the third cross reference so that instead of:<br><a
href="passagestudy.jsp?action=showNote&type=x&value=1&module=ESV&passage=John+3%3A16"><small><sup>*x</sup></small></a>
<br>we have something like:<br><a
href="passagestudy.jsp?action=openRef&module=ESV&passage=John+7%3A50"><small><sup>John 7:50</sup></small></a> <br></div><a
href="passagestudy.jsp?action=openRef&module=ESV&passage=John+19%3A39"><small><sup>John 19:39</sup></small></a><br><br>I do not want a solution where I manually look up the entry attributes to get each one, as this will add lots of overhead.
<br><br>Also, look at John 3:2 and the first note.<br>Its entry attributes are the following<br>('body', 'Greek <hi type="i">him</hi>'), <br>('n', '1'), <br>('osisID', '
John.3.2.note_1'), <br>('type', 'explanation')<br><br>For a start, shouldn't it be <i>him</i>?<br>Also, I would like to have the note number displayed, maybe, instead of "*n". Is this possible?
<br><br>Without more flexibility, I do not particularly think one html filter is a good idea. What I would really like is to have a callback or virtual function that
will be called everytime a certain thing comes up - but this cannot be
done at the moment. Then you could have predefined classes - an rtf one, an html one, etc, but still override the particular bits you need/want to.<br><br>God Bless,<br>Ben<br>-------------------------------------------------------------------------------------------
<br>Be wretched and mourn and weep. Let your laughter be turned to mourning and your joy to gloom.<br>James 4:9 (ESV)