[sword-devel] Quick Question

Troy A. Griffitts sword-devel@crosswire.org
Sat, 21 Apr 2001 04:05:57 -0700

	Sorry for the bugs.  I've spent some time going over the utils.  I
think they are fairly sound now, and have included a little more usage
info in the vpl2mod util.

mod2vpl KJV > kjv.txt
vpl2mod kjv.txt ./yoyo


mod2vpl KJV 1 > kjv.txt
vpl2mod kjv.txt 1 > ./yoyo

both produce correct modules now, I think.

Didn't see the trouble with strange gen 1:1, though.  please let me know
if it is still happening for you.

	Thanks for reporting these!!!  It's so cool to get reports and actually
pointed to where in the code the bug is!


Barry Drake wrote:
> Hi ............
> On 20 Apr 2001, at 21:23, Troy A. Griffitts wrote:
> > > vpl2mod only works (at present) when the text file for input has proper
> > > verse references at the beginning of each line,
> > This is not entirely accurate.  If to use in the first mode-- no verse
> > ref prepended-- there must be EXACTLY the number of KJV verses of lines per
> > file, plus a few extra headers as described below:
> It was me.  Guilty, Troy.  Sorry.  But, so far, I haven't looked at anything
> that does conform to the KJV order.  I think I'm right in saying that nearly
> all modern translations concatenate small groups of verses for
> readability.  Bibles like the NJB present an even more serious problem
> because their numbering system is based on the Sepuagint.  I've said
> enough about that already.
> The fix I hacked in was because vpl2mod as is, won't accept a verse
> reference followed by nothing but a linefeed.  In the NJB this happens for
> the first time at: II Kings 11:6, and there are a whole lot more instances.
> The line in the parseVreg function:
> case 4:         if (*buf == ' ') {*buf = 0;     return ++buf;}
> causes vpl2mod to cough and spit out a part done module.  The code I
> put in was simply a catch for that instance when there is only a linefeed.
> I've now used Chris's version with the fix that stops concatenation of
> multiple verses going to the wrong reference.  I still needed to put my
> lines of code into that version for the same reason (Chris?).
> Bless you,
> Barry
> >From Barry Drake (The Revd - minister of Arnold United Reformed Church,
> Nottingham - see http://www.arnold-urc.supanet.com for our church homepages).
> Replies - b.drake@ntlworld.com
> Fax: 0705 069 8746