[sword-devel] Bible book introductions

Troy A. Griffitts scribe at crosswire.org
Mon Jun 3 07:03:16 MST 2013

SWORD support augmenting .conf entries specifically for this purpose.  See:

SWConfig::augment(SWConfig &addFrom);

So, e.g.,

SWMgr library;

Would add all user preferences or desired precomputed software 
properties to the global module library configuration.

The SWORD Project for Windows does exactly this for storing fonts and 
colors and visibility, etc.  It uses a single file, e.g.




The augment method will override or add the properties to the correct 
sections of the global configuration of all modules.


On 06/03/2013 03:02 PM, Greg Hellings wrote:
> On Mon, Jun 3, 2013 at 7:16 AM, DM Smith <dmsmith at crosswire.org 
> <mailto:dmsmith at crosswire.org>> wrote:
>     I'm thinking of having a "sidecar" conf for a module. Right now
>     when a user wants to save certain settings for a module, we
>     (JSword) modify the conf. (I.e. CipherKey and Font).
>     This could then be used to save anything a front end discovers and
>     does not want to discover a second time. Such as Scope (which to
>     my recollection was not shot down), Introductions, Colophons, user
>     settings(?)....
> BibleTime uses (used?) a cache for at least some of the data of 
> modules. In particular I know the keys of a dictionary module are 
> cached at first module load and only updated when the module's version 
> number is changed. I discovered this some time back while working on 
> such a module which would not reflect updates to the keys without 
> bumping the version in the conf.
> Of course, this type of behavior adapted to Scope is fine on a desktop 
> or even a netbook or most tablets. But it's unacceptable for a truly 
> low-powered device.
> --Greg
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20130603/16387e89/attachment.html>

More information about the sword-devel mailing list