[sword-devel] Seedmaster 3.1a

Barry Drake sword-devel@crosswire.org
Wed, 6 Mar 2002 07:20:04 -0000


--Message-Boundary-31652
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

Hi there .....

On 5 Mar 2002 at 2:09, RJ wrote:
>  has anyone converted a Seedmaster 3.1a module to a Sword Project module?

It was over a year ago and I can't remember what version of SM I had but I 
made the TEV module we have using Seedmaster output.  From what I can see 
in my archives, I must have got Seedmaster to print the whole bible out in 
plaintext form.  I had to do a 'fix' as the attached little C routine 
shows, and then ran it through the now obsolete OLB2Sword, so I guess the 
Seedmaster output might have been in VPL format, and would probably work 
straight through VPL2Mod.  This module was my first attempt, and I hadn't 
really got to grips with the Sword module making resources at that time.

Hope this helps.

God bless,
Barry

>From Barry Drake (The Revd - minister of the Arnold and the Netherfield 
United 
Reformed Churches, Nottingham - see http://www.arnold-urc.supanet.com for 
our 
church homepages).

Replies - b.drake@ntlworld.com
Fax: 0705 069 8746


 


--Message-Boundary-31652
Content-type: text/plain; charset=US-ASCII
Content-disposition: inline
Content-description: Attachment information.

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  SM2RTF.C
     Date:  1 Mar 2001, 8:20
     Size:  3290 bytes.
     Type:  Program-source

--Message-Boundary-31652
Content-type: Application/Octet-stream; name="SM2RTF.C"; type=Program-source
Content-disposition: attachment; filename="SM2RTF.C"
Content-transfer-encoding: BASE64

LyogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU00yUlRGLkMgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICovDQoNCi8qIHJvdXRpbmUgdG8gbWFrZSBzZWVkbWFzdGVy
IG91dHB1dCBmaWxlIHVzZWFibGUgYnkgb2xiMnN3b3JkICAgICAgICAgICAqLw0KDQovKiAg
IEJ5IEJhcnJ5IERyYW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