Thank you, Troy!
The setIntros call on the VerseKey does not help in getting the chapter
headers in the context of the entry attribute search. I am getting the
same results as without setting it.
Best regards,
Tobias
On 1/8/22 3:58 PM, Troy A. Griffitts wrote:
Sorry Tobias,
Yes, I incorrec
Sorry Tobias,
Yes, I incorrectly told you to call setIntros on SWModule instead of VerseKey.
- module->setIntros(true);
+ ((VerseKey *)module->getKey())->setIntros(true);
That's a bit ugly typed from my phone, with no check to be sure the cast
succeeds, but should get the point across.
I shoul
Hi Troy,
Thank you so much for looking into this!
setIntros is not available on SWModule, but only on SWKey.
I suppose the setIntros must be used like this?
SWKey*key= module->getKey();
VerseKey*verseKey= SWDYNAMIC_CAST(VerseKey, key);
*verseKey**->**setIntros**(**true**);*
ListKeyscope= verse
Dear Tobias,
I haven't had a chance to dig into this yet, but my first guess is that you may
be missing the intro slots from the module.
VerseKey modules have intro entries:
for the chapter if you set verse to 0
for the book, if you set chapter to 0
for the testament, if you set book to 0
for t
This is coming late to it, but would it be feasible to create an additional
option _in the engine_ which _drops_ the Biblical text?
The practical result would be what you are looking for, but the mechanics would
not be a search but in essence a complete print-out of the required section,
simply
Hi Troy,
I have started looking again into extracting book headings, so that I
can generate a book outline in Ezra Bible App even when looking at
individual chapters only. I had stopped looking at it when I was not
successfully generating a Windows build any longer last year - but I
could fix
Hi Troy,
I am compiling SWORD using CMake and I am setting CMAKE_BUILD_TYPE to
"Release", which should automatically result in compiler optimization (-O3)
being active (right, Greg?).
The numbers below are when using the NASB, but I guess that’s similar in markup
compared to the KJV.
From a p
Hi Tobias,
What's happening when you do an EntryAttributes search, is that each
entry is pulled from storage and all tags processed to build the
attributes map for that entry, then a pattern match is attempted against
the attributes which match your attribute key map. Loading up each
entry and pr
Hi Tobias,
What's happening when you do an EntryAttributes search, is that each
entry is pulled from storage and all tags processed to build the
attributes map for that entry, then a pattern match is attempted against
the attributes which match your attribute key map. Loading up each
entry and pr
When I extract the section headers using the search function this takes
~700ms for Psalms (on my Core i7, measured on JavaScript side). I
suppose it is much slower on a tablet or phone.
Is there any way to speed up this operation in the SWORD engine?
Best regards,
Tobias
On 5/23/21 2:20 PM, T
Thanks, Troy.
The issue was that I previously hadn't used this:
mgr.setGlobalOption("Headings", "On");
My new helper function now works after using that call initially.
Best regards,
Tobias
On 5/22/21 11:09 PM, Troy A. Griffitts wrote:
Hi Tobias. Have a look at sword/examples/cmdline/search.c
Hi Tobias. Have a look at sword/examples/cmdline/search.cpp. I believe it takes
an optional range parameter.
On May 22, 2021 7:49:48 PM GMT+02:00, Tobias Klein wrote:
>Hi Troy,
>
>I can't seem to get the scope parameter of the search function right
>...
>I either get crashes or no results.
>
Hi Troy,
I can't seem to get the scope parameter of the search function right ...
I either get crashes or no results.
How do I have to initialize the scope parameter for the module search so
that I get the headings for one particular Bible book as search results?
Best regards,
Tobias
On 4/
Thank you so much, Troy! I appreciate it!
I'll give this a try soon! This will then probably turn into a new API
function of node-sword-interface.
I will also check once more regarding the CMake zlib issue on Windows.
Before that is fixed I can't really integrate new SWORD trunk versions.
To
Brilliant!
Sent from ProtonMail for iOS
On Mon, Apr 12, 2021 at 20:07, Troy A. Griffitts wrote:
> Sure Tobias,
>
> module->getEntryAttributes() will allow you to pull the headings from a
> verse, and
>
> an Entry Attributes search for '/Heading' will give you only the verses
> with Heading entr
Sure Tobias,
module->getEntryAttributes() will allow you to pull the headings from a
verse, and
an Entry Attributes search for '/Heading' will give you only the verses
with Heading entries attributes.
I've thrown together a quick example here, which you can use with
something like:
./showHeadin
16 matches
Mail list logo