[sword-devel] 1.5.1pre

Joachim Ansorg sword-devel@crosswire.org
Wed, 24 May 2000 16:20:52 +0000


Hi!

>> Sorry, but I found a bug.
>
>Don't be sorry for finding a bug! ;)
>
>
>> I think everybody knows it's possible to have modules in a users $HOME/.sword directory.
>> 
>> But if a encrypted modules is stored there I can't save the key to the config file which is in
>> $HOME/.sword/mods.d/ (using BibleTime 0.3pre).
>
>I was thinking this weekend about subclassing SWConfig and providing a
>cool derived class that knows about mods.d and $HOME/.sword and all our
>other config rules we use specifically for sword.
>
>This extracts the functionality from SWMgr and places it in SwordConfig
>: public SWConfig.  Then SWMgr will still have a SWConfig * that you can
>reference, and it will be newed to SwordConfig.
>
>This will allow config.Save() to work correctly when you change entries
>in the SWMgr::config member.
>
>This should solve all our problems with all the logic outside of the
>SWORD library.
>
>What do you think?

I think it's a good idea. I think later it will be possible to have more than one SWORD path (e..g /usr/local/sword/ and /cdrom/ etc.).
I'd be glad to have this feature ( would be cool to read modules from HDD but additionaly from /cdrom ) !

>
>> May I submit my changes to CVS (changed provate: to protected: in swmgr.h,
>> otherwise BibleTime 0.3pre won't compile.). I wan't to place the latest version on the SWORD CD
>> (ok, Brook will do it ;-).
>
>yes, please submit.

done.

>
>> And there was a compiling problem with GCC 2.95.2, I'll submit the change this afternoon
>> (changed char* to const char* ;-).
>
>good.  Thank you.
>
>
>> The nasty encryption related problem is solved now !!
>> Thanks Troy and all the others!
>
>That's what we're here for-- to support you with a good API! :)
>
>	-Troy.
>
>PS.  did tests/parsekey work for you?  It did not work for me with
>something like:
>
>./parsekey "1. Mose 1:1" de

I sent a mail but it looks loke it's lost somewhere.

Basically it works, but there are problems with strings like "Matthew 1:1-3", other examples like "Genesis 1:1" or "Matthew 1:1" are working.

BTW, it's possible to use the SWORD CD (at least the old one I have) directly in BibleTime if you run it with "SWORD_PATH=/cdrom bibletime".
But the problem is that localisiation is missing then.

Two possible solutions I was thinking about:
-put the locales.d directory on the top of the CD (like modules and mods.d)
and / or
-A environment string like "$SWORD_LOCALE" or "$SW_LOCALE" is used to get the location of the SWORD locale files.

Possible?

I think it's a good way to read modules from CD.

--Joachim

>
>
>> 
>> The only problem is the localiziation bug I reported in my previous mail.
>> 
>> Very good work Troy!
>> --Joachim
>> 
>> >Ok everyone, I've merged all the past 2 months worth of work on 1.4.x
>> >into the 1.5.x tree.  Please let me know if we fixed all your 1.5.x bugs
>> >or if we created any new ones.
>> >
>> >Try out the new range parse functionality with the updated
>> >tests/parsekey test program.  Localization doesn't seem to work
>> >correctly for me when parsing.  I'm hoping I'm just typing the wrong
>> >letters or that my de.conf file is outdated.  Please let me know if it
>> >works/doesn't work for you.  US locale seems to work ok.
>> >
>> >eg.
>> >
>> >parsekey "gen 1:1-5,3-7;7:9,10;jas1-5"
>> >
>> >All the latest stuff is in CVS.
>> >
>> >               -Troy.
>> --
>> BibleTime - the bible study program for KDE
>> http://www.bibletime.de/
>> info@bibletime.de
-- 
BibleTime - the bible study program for KDE
http://www.bibletime.de/
info@bibletime.de