Re: [sword-devel] Searching for entity attributes

2024-06-18 Thread Tobias Klein
On 5/14/24 5:20 PM, David "Judah's Shadow" Blue wrote: I'm sure I could add some logic to check the given module and adapt the token to fit, but that doesn't help the other issue I've found. When searching for, say, G11 in a module that isn't 0 padded, all occurrences of G11 are found, but so ar

Re: [sword-devel] Searching for entity attributes

2024-06-18 Thread David "Judah's Shadow" Blue
On Sunday, June 16, 2024 6:46:31 PM EDT Fred wrote: > can you do a regular-expression search? which would be: > > G11[^0123456789] > I could, as long as regex can be used with entity attribute search type. But, it feels a little cludgey, and isn't needed if the entity attribute is or becomes 0

Re: [sword-devel] Searching for entity attributes

2024-06-18 Thread David "Judah's Shadow" Blue
On Sunday, June 16, 2024 6:46:31 PM EDT Fred wrote: > can you do a regular-expression search? which would be: > > G11[^0123456789] > > i.e., G followed by 1, followed by 1, followed by not-a-digit. > > On Sun, Jun 16, 2024 at 3:27 AM Tobias Klein wrote: > > On 5/14/24 5:20 PM, David "Judah's Sh

Re: [sword-devel] Searching for entity attributes

2024-06-16 Thread Fred
can you do a regular-expression search? which would be: G11[^0123456789] i.e., G followed by 1, followed by 1, followed by not-a-digit. On Sun, Jun 16, 2024 at 3:27 AM Tobias Klein wrote: > > On 5/14/24 5:20 PM, David "Judah's Shadow" Blue wrote: > > > I'm sure I could add some logic to check

Re: [sword-devel] Searching for entity attributes

2024-06-16 Thread Tobias Klein
On 5/14/24 5:20 PM, David "Judah's Shadow" Blue wrote: I'm sure I could add some logic to check the given module and adapt the token to fit, but that doesn't help the other issue I've found. When searching for, say, G11 in a module that isn't 0 padded, a

Re: [sword-devel] Searching for entity attributes

2024-05-14 Thread David "Judah's Shadow" Blue
On Friday, May 10, 2024 10:21:19 AM EDT Troy A. Griffitts wrote: > 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. That would be amazing, and would, based on my understanding of the OSHB thread, help Xip

Re: [sword-devel] Searching for entity attributes

2024-05-10 Thread Troy A. Griffitts
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. 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 "f

Re: [sword-devel] Searching for entity attributes

2024-05-06 Thread David "Judah's Shadow" Blue
On Monday, May 6, 2024 12:17:38 PM EDT you wrote: > On Friday, May 3, 2024 6:00:59 PM EDT Troy A. Griffitts wrote: > > Have a look in sword/examples/cmdline/search.cpp We have comments near > > the top how to do a strongs search with entry attributes, and you can > > experiment easily in there. >

Re: [sword-devel] Searching for entity attributes

2024-05-06 Thread David "Judah's Shadow" Blue
On Friday, May 3, 2024 6:00:59 PM EDT Troy A. Griffitts wrote: > Have a look in sword/examples/cmdline/search.cpp We have comments near > the top how to do a strongs search with entry attributes, and you can > experiment easily in there. > > https://crosswire.org/svn/sword/trunk/examples/cmdline/

Re: [sword-devel] Searching for entity attributes

2024-05-03 Thread Troy A. Griffitts
Have a look in sword/examples/cmdline/search.cpp  We have comments near the top how to do a strongs search with entry attributes, and you can experiment easily in there. https://crosswire.org/svn/sword/trunk/examples/cmdline/search.cpp On 5/2/24 16:02, David "Judah's Shadow" Blue wrote: I'm w

[sword-devel] Searching for entity attributes

2024-05-02 Thread David "Judah's Shadow" Blue
I'm working on a strongs command for BIBISH. I'm trying to find occurrences of a given Strong's number in a module. I've set my search type to entityattribute but am getting no results. Is there a specific way I need to construct my search terms? (eg lemma:G0) My SWMgr is set to FMT_PLAIN, woul