[sword-devel] Sword manager
Troy A. Griffitts
scribe at crosswire.org
Mon Oct 24 14:48:25 MST 2005
William,
Quick response, sorry. Just guessing, but the HTMLHREF filters
probably remove the inlined footnote, in lieu of a subscripted number or
symbol which is a clickable link and, in the URL, includes the footnote
number in the entryAttributes() for the module entry. If you run the
sword/examples/cmdline/lookup tool on your module and verse, you'll see
how the footnote is stored in the entryAttributes dump at the end.
Hope this helps.
-Troy.
William Canfield wrote:
> I have been playing around with a front-end for sword, and I am having
> difficulty seting up the manager so that I can have HTML output with
> expanded notes and scripRef as a link.
> I have found that the following interprets <scripRef> as a link in html:
>
> mp_SwordManager = new SWMgr(0, 0, TRUE, new
> MarkupFilterMgr(FMT_HTMLHREF, ENC_HTML));
>
> However, when footenotes are activated in the global options, then any
> footnotes in the books (i.e. Josephus) are not displayed.
>
> Now,
> mp_SwordManager = new SWMgr(0, 0, TRUE, new MarkupFilterMgr(FMT_HTML,
> ENC_HTML));
>
> wll give me expanded footnotes, but <scripRef> is diplayed only as
> normal text. Also sometimes, for no apparent reason <note>my notes
> here</note> in ThML markup gets interpretated as:
> < Sword foontnote = "1">my notes here</small></font> which seems to be a
> coruption of the text. I would have expected <font><small>my notes
> here</small></font>
>
> I have no access to the BibleCS code, so cann't see how this has been
> achieved in the front-end. I could get around by generating a new
> manager for each module, but this would take a lot of resources.
>
> The reason why I doing this is:
>
> A) The sword front-end code (BibleCS) is not available to me
>
> B) Would liked to have some extra features such as:
>
> * Module name and scripture reference/Book + chapter included as a
> heading for copied text from a module (Copy from module, paste
> with reference into word etc.)
> * Ability to have scripRefs in book and be able to click on link to
> go to scripture
> * A neater format for book displays, as BibleCS seems to ignore the
> paragraph tags, thus displaying everything as one line unless <BR>
> is found.
>
>
> I would be most grateful for any suggestions which could help me further.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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