[sword-devel] Implementing filters with the SWIG bindings

Jason Turner lefticus at gmail.com
Mon Feb 20 07:48:19 MST 2006


I am currently in the process of enhancing and extending the SWIG
interfaces, to make them more robust. One of the things that I can do
along the way is enable the SWIG feature called "directors"

Directors allow the user of the SWIG generated code to extend C++
classes and override virtual methods.

If you do not know already (since you said "not enough C++ skillz"),
if a method is declared "virtual" the most derived method in the
inheritance hierarchy is called. If you don't know what the means, I
can describe with more details.

Practically, what that means for us (you particularly) is that you
could choose to implement your own filters in any language which SWIG
supports directors. Namely: Python, Java and Ocaml.

On a personal note, I used to use the FMT_HTMLHREF filter for
Biblestudy, but between sword versions the HREF part changed
drastically and I realized I could not rely on it staying stable, so I
implemented my own set of HTML filters. Looking forward to my C#
rewrite of biblestudy, I plan to using some less subjective filter
such as OSIS and apply my own transformations after I have recieved
the XML.

God Bless,

On 2/17/06, Matt Reimer <mattjreimer at gmail.com> wrote:
> Has anyone implemented filters with the SWIG bindings, or know how?
> I'd like to render the NET Bible footnotes in my pygtk Sword viewer,
> but the filter interfaces have no bindings. I spent a bit of time
> trying to do that, to no avail (not enough C++ skillz).
> Thanks in advance,
> Matt
> _______________________________________________
> 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

http://emptycrate.com Games, Programming, Travel & other stuff

More information about the sword-devel mailing list