<div dir="ltr">Hi<div><br></div><div style>Sorry about the late response. STEP doesn't use a whole lot of statics. The BibleNames (long vs short) is used on start up. And I hook into the JSword error reporting.</div><div style>
<br></div><div style>Chris</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 14 March 2013 01:37, DM Smith <span dir="ltr"><<a href="mailto:dmsmith@crosswire.org" target="_blank">dmsmith@crosswire.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There are a few globals that are used by the program to change user visible default behavior. These were designed for per user setting, but they really are per application.<br>
<br>
I'd like to know if they are in use by other applications and if not whether the app has a different way of performing the same behavior.<br>
<br>
They were put into JSword in the hopes that they'd be useful to most if not all apps.<br>
<br>
o.c.jsword.book.Defaults defines default books of different types:<br>
Bible (either a particular Bible or the last Bible used.)<br>
Commentary<br>
Daily Devotional<br>
Dictionary<br>
Greek Parsing Dictionary<br>
Greek Strong's Number Dictionary<br>
Hebrew Parsing Dictionary (there aren't any at this time)<br>
Hebrew Strong's Number Dictionary<br>
JSword does not use this internally.<br>
<br>
o.c.jsword.book.BookFilters allows a static setting of "commentaries with bibles" that affects whether BookFilters.getBibles() or getNonBibles() returns a filter regarding just Bibles or Bibles and Commentaries.<br>
JSword doesn't use this internally.<br>
<br>
o.c.jjsword.book.sword.SwordBookPath allows the setting of the location to which Books (aka modules) should be downloaded and allows for additional locations to be added for finding Books.<br>
This is used internally by JSword.<br>
<br>
o.c.jsword.passage.PassageUtil defines whether a Verse, VerseRange or Passage should retain the string input from which it was created and return it when getName() is called.<br>
This is used internally by JSword.<br>
The default is to not use the original (however the original is stored in the Verse, VerseRange and Passage).<br>
<br>
o.c.jsword.passage.RestrictionType defines whether blurring (expanding a Verse, VerseRange or Passage by n Verses) should be constrained to chapters or not be constrained at all. (We used to allow constraining to Bible book).<br>
This is used internally by JSword in a query.<br>
Moses ~3 Aaron will find all the verses with Moses and those with Aaron. Then it blurs those with Moses by the requested amount. Then it will take the intersection of the two. Basically it is "Find Aaron with in 3 verses of Moses"<br>
We could move this into o.c.jsword.index.search.SearchModifier and DefaultSearchModifier.<br>
Note, this is not a feature provided by Lucene, but one we layer on top of Lucene.<br>
<br>
o.c.common.util.Translations contains a list of languages into which JSword (and BibleDesktop) have been translated. There's the ability to set the Global Language for the application.<br>
JSword doesn't use this internally.<br>
<br>
o.c.jsword.versificaiton.BookName has two static/global properties. One for whether a Book name is to be left as found in BibleNames.properties, usually Title Case, changed to UPPER case or to lower case. The other allows for the setting whether getPreferredName returns getLongName or getShortName.<br>
JSword uses this via BookName.toString(), which may be used all over JSword, but is hard to tell.<br>
<br>
o.c.jsword.passage.PassageKeyFactory Allows for the picking of a default type of passage. This is not meant to be user visible, but it impacts time/space considerations.<br>
JSword uses this.<br>
<br>
A few others:<br>
Font set on a Language or Book<br>
Cipher set on a Locked Book<br>
WebWarning (user can dismiss a Web Warning and store that decision)<br>
<br>
<br>
<br>
_______________________________________________<br>
jsword-devel mailing list<br>
<a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
</blockquote></div><br></div>