<html><head></head><body><div dir="auto">Yes, we could add in some logic to call strongsPad during the search loop so a Strongs entry in every Bible gets normalized before compare.<br><br>I haven't run into this so often because my front ends usually add this feature as an interface by clicking on an existing word in a Bible with an option "find other occurrences of this Greek word" and I search for the Strongs number as it is formatted in that Bible.<br><br></div><br><br><div class="gmail_quote"><div dir="auto">On May 6, 2024 13:17:38 GMT-03:00, "David "Judah's Shadow" Blue" <yudahsshadow@gmx.com> wrote:</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail"><div dir="auto">On Friday, May 3, 2024 6:00:59 PM EDT Troy A. Griffitts wrote:<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"><div dir="auto">Have a look in sword/examples/cmdline/search.cpp We have comments near<br>the top how to do a strongs search with entry attributes, and you can<br>experiment easily in there.<br><br><a href="https://crosswire.org/svn/sword/trunk/examples/cmdline/search.cpp">https://crosswire.org/svn/sword/trunk/examples/cmdline/search.cpp</a><br></div></blockquote><div dir="auto"><br>Ok, I've got it working...sort of. So here's where we run into the 0 padding <br>issue from the OSHB thread, when I search for, say, alpha in the NASGreek <br>lexicon one of the results is 05598 (omega, which matches because it has the <br>word alphabet in the entry). If I then search for G05598 in the NASB I get no <br>results. However, if I search for G5598 I get results. So what appears to be <br>happening is that the NASGreek module is returning a padded 0 (either encoded <br>that way of via the SWLD::strongsPad method I'm not sure which) but the NASB <br>module doesn't have the padding in its attributes. And from what came up in <br>the OSHB thread, there isn't a consistent way of encoding the numbers in the <br>bible modules, and SWLD::strongsPad isn't being invoked in the search on the <br>lemmas.<br><br>I only knew to strip the padded 0 off because I used diatheke to see how the <br>numbers were encoded in the module. So, there isn't a way for my users to know <br>if they need to include the leading 0 from the lexicon module or not in their <br>search. Unless I'm missing something.<hr>sword-devel mailing list: sword-devel@crosswire.org<br><a href="http://crosswire.org/mailman/listinfo/sword-devel">http://crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page<br></div></pre></blockquote></div><div dir="auto"><div class='k9mail-signature'>-- <br>Sent from my Android device with K-9 Mail. Please excuse my brevity.</div></div></body></html>