[sword-devel] [Fwd: Re: [sword-support] Sword Enhancement]
dmsmith555 at yahoo.com
Thu Sep 20 06:31:37 MST 2007
With Robin's permission I am posting this to sword-devel. This is
top-posted so start at the bottom.
On Sep 20, 2007 at 1:33 AM, Robin wrote:
Thanks for the quick response. Please post it. Even if it only worked
for simple searches (word or phrase) it would be worth it. (I'm always
saying "I can't see my word in that verse ... Oh there it is!!!")
In your example I would highlight the case insensitive following: Adam,
Eve, Able, Abemelak, etc, God, Loves, Fire, Water. It looks like you
could highlight non-reserved words except for those following "NOT"(-).
"All words spelled like" is a special case but could be solved. I would
be willing to bet that someone has already solved the formatting issue.
As I learn more of OSIS, ThML GBF, TEI I may run across something.
... stuff deleted, not pertaining to thread...
In His Grace,
On Sep 19, 2007 at 5:27 PM, DM Smith wrote:
This is a great idea and for BibleDesktop it is already on our list of
things to do.
When a user searches for a single word or a phrase it is pretty
straightforward, but when the search is complicated, such as "Adam OR
Eve AND NOT Cain WITHIN 5 VERSES OF Able" or "All words spelled like
Abemelek" , "(God AND Loves) OR (Fire AND Water)" it becomes hard to
know what to highlight. In JSword's use of lucene these would be "Adam
Eve -Cain ~5 Able" , "Abemelek~" and "(+God +Love) (+Fire +Water)",
The other challenge is digging the words out of their format (OSIS,
ThML, GBF, TEI) and highlighting the words without conflicting with the
module's desired markup, such as bolding and enlarging text for a title.
Fortunately, the Lucene project already has sample code for it, though
it doesn't account for formatted text.
Robin, if you'd like I can post this to sword-devel so the developers
can see and discuss it. This e-mail address is handled by just a few
people to handle bug requests.
In His Service,
On Sep 19, 2007, at 5:10 PM, Robin wrote:
> This is really an enhancement request but I don't understand why
> it was not included in the original requirements.
> o In Search Window (Sword), Power Search (Bible Tool),
> "Search:" (Bible Desktop) and other
> "Search" functions,
> In the results HIGHLIGHT, COLOR or BOLDEN the token, word or
> phrase searched for.
> MacSword, Crosswalk, and Bible Gateway already seem to have
> this feature. It could be optional.
> * Operating System: Windows (9x, 2000, NT, ME, XP, etc.) or Linux
> * Software: The SWORD Project for Windows, The SWORD Engine, MacSword
More information about the sword-devel