Re: [sword-devel] using a zText module

2012-08-12 Thread Chris Little
I'm not sure I see the distinction. For GPLv2 software A to be used by or incorporated in some other software B, GPLv2 must be compatible with software B's license. The set of licenses that GPLv2 is compatible with consists of exactly and only GPLv2. (This is distinct from the set of licenses t

Re: [sword-devel] using a zText module

2012-08-12 Thread Greg Hellings
This is not true. Any modifications to Sword need to be GPLv2 but any applications or bindings need only be GPLv2-compatible. This had been explicitly checked and confirmed with the staff at FSF. --Greg On Aug 12, 2012 1:57 PM, "Chris Little" wrote: > On 08/11/2012 07:38 PM, Daniel Hughes wrote

Re: [sword-devel] using a zText module

2012-08-12 Thread Chris Little
On 08/11/2012 07:38 PM, Daniel Hughes wrote: I wouldn't go as far as to say that I have working c# bindings, I only have a very small subset working. I was planning on publishing what I have on bitbucket under GPL3. A small reminder: The SWORD Project is licensed as GPL2. It is not licensed as

Re: [sword-devel] using a zText module

2012-08-12 Thread Troy A. Griffitts
Greg is right, but concerning VerseKey objects. The problem with instancing a VerseKey is that it defaults to the KJV v11n system. The module may use another. So, then you need to setVersification appropriately on the newly instantiated VerseKey to access all the verses correctly for the module.

Re: [sword-devel] using a zText module

2012-08-11 Thread Greg Hellings
On Sat, Aug 11, 2012 at 9:38 PM, Daniel Hughes wrote: > I managed to get it working with the following code: > > using(SWMgr mgr = new SWMgr()) > using(SWModule module = mgr.getModule("ESV")) > using(SWKey key = new SWKey("jas 1:18")) In SWORD you should _never_ instantiate an instance of SWKey.

Re: [sword-devel] using a zText module

2012-08-11 Thread Daniel Hughes
I managed to get it working with the following code: using(SWMgr mgr = new SWMgr()) using(SWModule module = mgr.getModule("ESV")) using(SWKey key = new SWKey("jas 1:18")) { module.setKey(key); Console.WriteLine (module.RenderText()); } I wouldn't go as far as to say that I have working c# b

Re: [sword-devel] using a zText module

2012-08-11 Thread Peter von Kaehne
On Sat, 2012-08-11 at 20:25 +1200, Daniel Hughes wrote: > 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. If you have working C# bindings, could you update the existing ones? There is a not totally infrequ

Re: [sword-devel] using a zText module

2012-08-11 Thread Jonathan Morgan
Hi Daniel, I have never gone deep enough into the SWORD API to work with the zText constructor directly. However, I would suggest that the more "normal" way of accessing modules is using the SWMgr class (second part of the primer you link to). Try creating an SWMgr and using SWMgr.getModule("ESV"

[sword-devel] using a zText module

2012-08-11 Thread Daniel Hughes
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 d