Hi, I'm trying to use sword from c#. I have used swig to generate a wrapper for just enough of sword to open a module and render some text.
I followed the example in the API primer found here: http://www.crosswire.org/sword/develop/swordapi/apiprimer.jsp I downloaded the webster module only to discover that it was zText module and not a rawtext module as shown in the example. So instead I tried to use the ESV module (which is also ztext). However the RenderText() call returns nothing (empty string). Here is the code I am using: SWKey key = new SWKey("jas 1:18"); zText esv = new zText("modules/texts/ztext/esv", "ESV", "English Standard Version"); esv.setKey(key); Console.WriteLine (esv.RenderText()); I noticed that that even if I pass in a folder that does not exist, I never get an error, RenderText just carries on returning an empty string. I created a wrapper for the .Error() function which always returns 0. I have tried using an absolute path, a relative path, i've tried using an ESV module I downloaded from crosswire and one which I installed using Xiphos. I am the developer of a bible application found in the debian repros and would love to add support for sword modules. Any help would be greatly appreciated. Cheers, Daniel Hughes
_______________________________________________ sword-devel mailing list: [email protected] http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page
