Re: [sword-devel] Osis validation problems on header

2009-11-03 Thread johnduffy
Chris,

Many thanks for correcting that.  That now validates in Notepad++ against
the osis schema.

Just one more question - will the scope Gen-Rev cause a problem since seven
additional deuterocanonical books are included?  That is, since these are
located after Rev in the file, will they be omitted from the scope?  This
knowledge would be helpful when module testing.

Thanks again.

 
John Duffy

-Original Message-
From: Chris Little [mailto:chris...@crosswire.org] 
Sent: 03 November 2009 05:51
To: SWORD Developers' Collaboration Forum
Subject: Re: [sword-devel] Osis validation problems on header

Here is the valid version of your header. Comments follow.
...

That was most of your problems. The other problems were the curly quotes 
instead of straight, as you noticed, the incorrectly cased date types 
("Gregorian" must be capitalized), and the second subject element, which 
I assume was just a mistake.

The above also includes a pair of corrections that wouldn't be cause my 
a validator: The ISO 639 code should probably be lowercase. I don't 
think ISO actually specifies this, but most other standards (e.g. BCP 
47) recommend lowercasing language codes. And the scope statement should 
be an osisRef, thus Gen-Rev rather than GEN-REV.

--Chris




___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Alkitab Bible Study 2.4 is released

2009-11-03 Thread David Haslam

Thanks Tonny.

Please visit 
http://www.crosswire.org/wiki/Talk:Choosing_a_SWORD_program#Alkitab_Bible_Study_2.4
http://www.crosswire.org/wiki/Talk:Choosing_a_SWORD_program#Alkitab_Bible_Study_2.4
 
and make any necessary changes to the main page.

David

Tonny Kohar-2 wrote:
> 
> Hi,
> 
> I just released Alkitab Bible Study 2.4 which is available at
> http://www.kiyut.com/products/alkitab/index.html
> ...
> 
> 

-- 
View this message in context: 
http://n4.nabble.com/Alkitab-Bible-Study-2-4-is-released-tp360891p360947.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Alkitab Bible Study 2.4 is released

2009-11-03 Thread David Haslam

Tonny,

I think your Robinson module is out of date.
Yours is version 1.2 dated 2007-04-27.
CrossWire repo has version 2.0 dated 2009-09-02.

Please replace yours, so that anyone who installs Alkitab and who already
has any other front-end that uses the same module path, does not get their
Robinson module replaced by an older one.

Best regards,
David Haslam

Tonny Kohar-2 wrote:
> 
> Hi,
> 
> I just released Alkitab Bible Study 2.4 which is available at
> http://www.kiyut.com/products/alkitab/index.html
> 
> 
> 

-- 
View this message in context: 
http://n4.nabble.com/Alkitab-Bible-Study-2-4-is-released-tp360891p360953.html
Sent from the SWORD Dev mailing list archive at Nabble.com.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Ndebele and Shona Bibles online

2009-11-03 Thread Teus Benschop
Thank you, Chris, for putting the Ndebele and Shona Bibles online! I
heard these were now there, and downloaded them. The people will now be
able to use them for their spiritual and practical benefit. I saw that
the xrefs were not there in the Ndebele module. Hopefully the USFM as
delivered was clean enough for you to easily make a module out of it.
Teus.

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Alkitab Bible Study 2.4 is released

2009-11-03 Thread Tonny Kohar
Hi,

On Tue, Nov 3, 2009 at 5:00 PM, David Haslam  wrote:
>
> Tonny,
>
> I think your Robinson module is out of date.
> Yours is version 1.2 dated 2007-04-27.
> CrossWire repo has version 2.0 dated 2009-09-02.
>
> Please replace yours, so that anyone who installs Alkitab and who already
> has any other front-end that uses the same module path, does not get their
> Robinson module replaced by an older one.
>

Thank for the notice regarding outdated robinson module. I will
replace it as soon as possible.

Cheers
Tonny Kohar
--
Alkitab Bible Study
imagine, design, create ...
http://www.kiyut.com

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Problem understanding wiki

2009-11-03 Thread johnduffy
Hi,
I'm trying to understand how to convert an osis file to a functioning module
in a Sword frontend.  I'm following the steps at the wiki
http://www.crosswire.org/wiki/DevTools:Modules, and using
sword-utilities-1.6.0-r2473.

However, after 'importing' the osis file, or rather converting it to four
files (ot.vss, ot, nt.vss, nt), I am not clear as to what to do next.  The
next step seems ambiguous:
"To compress a Bible, commentary, or LD module, use the mod2zmod utility.
First you will need to install the module so that it can be accessed using
the SWORD engine. Next, run:" and then gives the syntax for the compression
executable mod2zmod.  But does that mean that I should install the module
before compressing it by running mod2zmod?  If so, how do I install it?  The
instructions later on for installing a module imply that a single module or
folder with module files is produced.  All I have is the four files.  I've
been unable to compress them, as mod2zmod is looking for a module name,
which I don't have.  Am I doing something wrong?
 
John Duffy


___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Problem understanding wiki

2009-11-03 Thread DM Smith


On Nov 3, 2009, at 5:46 AM,
wrote:



Hi,
I'm trying to understand how to convert an osis file to a  
functioning module

in a Sword frontend.  I'm following the steps at the wiki
http://www.crosswire.org/wiki/DevTools:Modules, and using
sword-utilities-1.6.0-r2473.


John,

That page is not as useful as this one:
http://www.crosswire.org/wiki/Osis2mod



However, after 'importing' the osis file, or rather converting it to  
four
files (ot.vss, ot, nt.vss, nt), I am not clear as to what to do  
next.  The

next step seems ambiguous:
"To compress a Bible, commentary, or LD module, use the mod2zmod  
utility.
First you will need to install the module so that it can be accessed  
using
the SWORD engine. Next, run:" and then gives the syntax for the  
compression
executable mod2zmod.  But does that mean that I should install the  
module

before compressing it by running mod2zmod?


Don't use mod2zmod, rather use osis2mod to compress it.

Generally, I'll create the following folders in the same directory as  
my xyz.xml file:

(where xyz is the lower case [name] of the module, in the conf.)
mods.d/
modules/texts/ztext/xyz/
In mods.d, I'll put my xyz.conf. Osis2mod does not need it, but it  
makes a later step easier.



I'll then run the following:
osis2mod modules/texts/ztext/xyz xyz.xml -z

Then I'll package it as a "raw" zip file with:
(Note, XYZ is the exact casing of the [name] in the conf.)
zip -r XYZ.zip modules mods.d

During development it is useful to build an uncompressed module so you  
can read the files. I generally will create a simple folder, say "raw"  
for output (that way I don't have to dig down a long path for the  
files). Since I am debugging, I'll often use the -d option on osis2mod  
to mark each verse with it's reference:

osis2mod raw xyz.xml -d 2



 If so, how do I install it?  The
instructions later on for installing a module imply that a single  
module or
folder with module files is produced.  All I have is the four  
files.  I've
been unable to compress them, as mod2zmod is looking for a module  
name,

which I don't have.  Am I doing something wrong?


No you are not doing something wrong. Mod2zmod is very useful to  
compress modules that are currently installed and not compressed. It  
is awkward otherwise.


I think it will look for mods.d and modules in the current folder and  
use mods.d/xyz.conf to find the module under modules/.
You might need to copy mod2zmod to the same folder as mods.d and  
modules. (I think that is needed on Windows. It is not on the Mac or  
on Un*x/Linux).


Hope this helps.

In Him,
DM

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Problem understanding wiki

2009-11-03 Thread Peter von Kaehne
To create a working module for testing purposes there is no need to use the 
compression step.

The only further requyirement is to create a conf file. 

To do this copy any existing working one over and adjust the settings : name, 
path, module driver etc.

Peter

 Original-Nachricht 
> Datum: Tue, 3 Nov 2009 10:46:20 -
> Von: johndu...@cgcf.net
> An: "\'SWORD Developers\' Collaboration Forum\'" 
> Betreff: [sword-devel] Problem understanding wiki

> Hi,
> I'm trying to understand how to convert an osis file to a functioning
> module
> in a Sword frontend.  I'm following the steps at the wiki
> http://www.crosswire.org/wiki/DevTools:Modules, and using
> sword-utilities-1.6.0-r2473.
> 
> However, after 'importing' the osis file, or rather converting it to four
> files (ot.vss, ot, nt.vss, nt), I am not clear as to what to do next.  The
> next step seems ambiguous:
> "To compress a Bible, commentary, or LD module, use the mod2zmod utility.
> First you will need to install the module so that it can be accessed using
> the SWORD engine. Next, run:" and then gives the syntax for the
> compression
> executable mod2zmod.  But does that mean that I should install the module
> before compressing it by running mod2zmod?  If so, how do I install it? 
> The
> instructions later on for installing a module imply that a single module
> or
> folder with module files is produced.  All I have is the four files.  I've
> been unable to compress them, as mod2zmod is looking for a module name,
> which I don't have.  Am I doing something wrong?
>  
> John Duffy
> 
> 
> ___
> sword-devel mailing list: sword-devel@crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Patch for Sword crash with BibleTime on Windows

2009-11-03 Thread Gary Holmlund

Hi,

I am working on BibleTime for Windows and we found and fixed a crash in 
the sword library. I have attached a patch for the HEAD of sword svn. We 
are using the 1.60 version of sword.


The crash occurs when trying to save to a personal commentary for the 
first time. Sword is looking for the "incfile" of the personal 
commentary. The file does not exist yet.. Here is the call stack and 
function at the crash point.


libsword.dll!sword::FileDesc::read(void * buf=0x013eaec0, long count=4)  
Line 139

libsword.dll!sword::RawFiles::getNextFilename()  Line 194
libsword.dll!sword::RawFiles::setEntry(const char * inbuf=0x0253d050, 
long len=3)  Line 130
bibletime.exe!CSwordModuleInfo::write(CSwordKey * key=0x02e6cd00, const 
QString & newText={...})  Line 705


long FileDesc::read(void *buf, long count) {
  return ::read(getFd(), buf, count);   // crash here
}

Since the file does not exist, getFd() returns a  fd of -1. The read 
promptly crashes with the negative fd. Tracing the same problem in linux 
shows the same -1 fd, but the read does not crash there. The crash seems 
specific to the Visual Studio 2008 runtime libraries, but reading with a 
negative fd value is clearly wrong.


The fix is simple. Test for the negative fd and return 0 from 
fileDesc::read if fd is negative. Returning 0 is what is happening on linux.


Gary Holmlund

Index: src/mgr/filemgr.cpp
===
--- src/mgr/filemgr.cpp (revision 2457)
+++ src/mgr/filemgr.cpp (working copy)
@@ -136,7 +136,11 @@
 
 
 long FileDesc::read(void *buf, long count) {
-   return ::read(getFd(), buf, count);
+   int fd = getFd();
+   if (fd < 0) {
+   return 0;
+   }
+   return ::read(fd, buf, count);
 }
 
 
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Python client

2009-11-03 Thread Ben Morgan
A pure-python zText reader was done here:
http://github.com/kcarnold/pysword

However, this has only a fraction of the module support Sword has, and is
also quite a bit slower. The bindings are superior (if available for use, of
course)

God Bless,
Ben
---
Multitudes, multitudes,
   in the valley of decision!
For the day of the LORD is near
   in the valley of decision.

Giôên 3:14 (ESV)



On Tue, Nov 3, 2009 at 10:35 PM, Mattias Põldaru
wrote:

> Greetings
>
> I was wondering if anyone has implemented a pure python program for
> reading sword modules.
>
> Mattias
>
>
> ___
> sword-devel mailing list: sword-devel@crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>
___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Re: [sword-devel] Understanding the structure of generic books and their relationship with TreeKey.

2009-11-03 Thread Rendezvous
Thank you all for the code examples. Thanks to the code examples i was able to 
obtain the entire structure of the generic books.


  

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


[sword-devel] Python client

2009-11-03 Thread Mattias Põldaru
Greetings

I was wondering if anyone has implemented a pure python program for
reading sword modules.

Mattias


___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page


Re: [sword-devel] Python client

2009-11-03 Thread Peter von Kaehne

Mattias Põldaru wrote:

Greetings

I was wondering if anyone has implemented a pure python program for
reading sword modules.


If your question aims at a Python programme using the existing sword 
library written in C++ - there are several:


There is BpBible, a client mostly for Windows, but compilable on Linux 
and potentially on Mac OSX.


There is Rapier, a Maemo client.

I think there had been a couple of others which have vanished from the 
scene.


If your question aims at an attempt of a python implementation of 
libsword, Ben has directed you at the right place. The problem with that 
 is that the module format is subject to arbitrary and unannounced 
changes as we expand and build on the library. Anyone who wants to use 
an alternative implementation will have a considerable risk that things 
suddenly cease to work.


The generic answer to emails like yours is therefore - use the existing 
library with the language of your choice.


Peter

___
sword-devel mailing list: sword-devel@crosswire.org
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page