<div>Thanks Troy,<br></div><div><br></div><div>> [scribe@localhost diatheke]$ ./diatheke -b KJV -s attribute -k
Heading///Neginoth<br></div><div> > Entries containing "Heading///Neginoth"-- <b>Psalms 4:1Psalms 6:1</b> ;
Psalms 54:1 ; Psalms 55:1 ; Psalms 67:1 ; Psalms 76:1 ; -- 6
matches total (KJV)<br></div><div><br></div><div>You may wish to investigate why there is no " ; " after the first instance found. Looks like a minor bug!<br></div><div><i>btw. It's not just in the email transcript. I checked and found the same on my PC.</i><br></div><div><br></div><div>Is it still true that diatheke cannot output the whole of any particular <b>canonical Psalm title</b>, or is this feasible by refining the search parameters?<br></div><div><br></div><div>NB. I have just updated some things in <a href="https://wiki.crosswire.org/Frontends:Diatheke">https://wiki.crosswire.org/Frontends:Diatheke</a><br></div><div><br></div><div><i>More could be done to expand on the various other search types</i>.<br></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div>Best regards,<br></div><div><br></div><div>David<br></div></div><div><br></div><div class="protonmail_signature_block-proton">Sent with <a href="https://protonmail.com" target="_blank">ProtonMail</a> Secure Email.<br></div></div><div><br></div><div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div> On 5 April 2018 4:31 PM, Troy A. Griffitts <scribe@crosswire.org> wrote:<br></div><div> <br></div><blockquote class="protonmail_quote" type="cite"><div>On 04/05/2018 08:01 AM, David Haslam wrote:<br></div><div> <br></div><blockquote type="cite"><div>Thanks Troy for all this fine detail. <br></div><div><br></div><div>Is there any way that these special search parameters can be
passed to diatheke (as is) ?<br></div><div><br></div></blockquote><div><br></div><div>[scribe@localhost diatheke]$ ./diatheke -b KJV -s attribute -k
Heading///Neginoth<br></div><div> Entries containing "Heading///Neginoth"-- Psalms 4:1Psalms 6:1 ;
Psalms 54:1 ; Psalms 55:1 ; Psalms 67:1 ; Psalms 76:1 ; -- 6
matches total (KJV)<br></div><div> <br></div><div> <br></div><div> <br></div><blockquote type="cite"><div><br></div><div>Or would diatheke need further enhancing to support search
within headings such as Psalm titles?<br></div><div><br></div><div class="protonmail_signature_block">Best regards, David<br></div><div><br></div><div><br></div><div id="protonmail_mobile_signature_block">Sent from ProtonMail
Mobile<br></div><div><div><br></div><div><div><br></div><div>On Wed, Apr 4, 2018 at 23:18, Troy A. Griffitts <<a class="" href="mailto:scribe@crosswire.org">scribe@crosswire.org</a>> wrote:<br></div></div><blockquote type="cite" class="protonmail_quote"><p>Here's a quick command. The entry attributes path / search
syntax might not be obvious. Entry attributes key paths
are always 3 levels deep + the final segment the value of
the attribute. Empty path segments mean 'any'. This means
find 'Neginoth' in the value of any entry attribute under
'Heading'.<br></p><p></p><div>[scribe@localhost cmdline]$ ./search KJV Heading///Neginoth <br></div><div> [0=================================50===============================100] <br></div><div> ====================================================================== <br></div><div> Psalms 4:1 <br></div><div> Psalms 6:1 <br></div><div> Psalms 54:1 <br></div><div> Psalms 55:1 <br></div><div> Psalms 67:1 <br></div><div> Psalms 76:1 <br></div><p></p><p>Likewise, in any entry attribute:<br></p><p></p><div>[scribe@localhost cmdline]$ ./search KJV ///Neginoth <br></div><div> [0=================================50===============================100] <br></div><div> ====================================================================== <br></div><div> Psalms 4:1 <br></div><div> Psalms 6:1 <br></div><div> Psalms 54:1 <br></div><div> Psalms 55:1 <br></div><div> Psalms 67:1 <br></div><div> Psalms 76:1 <br></div><div> Habakkuk 3:19<br></div><p></p><p>Or very specifically the first preverse heading of a verse:<br></p><p></p><div>[scribe@localhost cmdline]$ ./search KJV
Heading/Preverse/0/Neginoth <br></div><div> [0=================================50===============================100] <br></div><div> ====================================================================== <br></div><div> Psalms 4:1 <br></div><div> Psalms 6:1 <br></div><div> Psalms 54:1 <br></div><div> Psalms 55:1 <br></div><div> Psalms 67:1 <br></div><div> Psalms 76:1 <br></div><div> <br></div><p></p><p>Here's the entry attribute dump, output from the 'lookup'
example, for Ps.4.1 from the KJV:<br></p><p></p><div>[scribe@localhost cmdline]$ ./lookup KJV Ps.4.1 <br></div><div> ==Raw=Entry=============== <br></div><div> Psalms 4:1: <br></div><div> <div type="x-milestone" subType="x-preverse"
sID="pv2"/><title canonical="true"
type="psalm"><w lemma="strong:H05329"
morph="strongMorph:TH8764">To the chief
Musician</w> <w lemma="strong:H05058">on
Neginoth</w>, <w lemma="strong:H04210">A
Psalm</w> <w lemma="strong:H01732">of
David</w>.</title><div type="x-milestone"
subType="x-preverse" eID="pv2"/><w
lemma="strong:H06030"
morph="strongMorph:TH8798">Hear</w> <w
lemma="strong:H07121" morph="strongMorph:TH8800">me when
I call</w>, <w lemma="strong:H0430">O
God</w> <w lemma="strong:H06664">of my
righteousness</w>: <w lemma="strong:H07337"
morph="strongMorph:TH8689">thou hast enlarged</w>
me <transChange type="added">when I
was</transChange> <w lemma="strong:H06862">in
distress</w>; <w lemma="strong:H02603"
morph="strongMorph:TH8798">have mercy</w> <w
lemma="strong:H08085" morph="strongMorph:TH8798">upon me,
and hear</w> <w lemma="strong:H08605">my
prayer</w>.<note
type="study"><catchWord>chief…</catchWord>:
or, <rdg
type="alternative">overseer</rdg></note><note
type="study"><catchWord>have…</catchWord>:
or, <rdg type="alternative">be gracious unto
me</rdg></note> <br></div><div> ==Render=Entry============ <br></div><div> .divineName { font-variant: small-caps; } <br></div><div> .wordsOfJesus { color: red; } <br></div><div> .transChange { font-style: italic; } <br></div><div> .transChange.transChange-supplied { font-style:
italic; } <br></div><div> .transChange.transChange-added { font-style: italic;
} <br></div><div> .transChange.transChange-tenseChange::before {
content: '*'; } <br></div><div> .transChange.transChange-tenseChange { font-style:
normal; } <br></div><div> .transChange:lang(zh) { font-style: normal;
text-decoration: dotted underline; } <br></div><div> .overline { text-decoration: overline; } <br></div><div> .indent1 { margin-left: 1em; } <br></div><div> .indent2 { margin-left: 2em; } <br></div><div> .indent3 { margin-left: 3em; } <br></div><div> .indent4 { margin-left: 4em; } <br></div><div> abbr { &:hover{ &:before{ content:
attr(title); } } } <br></div><div> .small-caps { font-variant: small-caps; } <br></div><div> .selah { text-align: right; width: 50%; margin: 0;
padding: 0; } <br></div><div> .acrostic { text-align: center; } <br></div><div> .colophon {font-style: italic; font-size: small;
display: block; } <br></div><div> .rdg { font-style: italic; } <br></div><div> .catchWord {font-style: bold; } <br></div><div> .x-p-indent {text-indent: 1em; } <br></div><div> <br></div><div> Hear me when I call, O God of my righteousness: thou hast
enlarged me <span class="transChange
transChange-added">when I was</span> in distress;
have mercy upon me, and hear my prayer. <br></div><div> ========================== <br></div><div> Entry Attributes: <br></div><div> <br></div><div> [ Footnote ] <br></div><div> [ 1 ] <br></div><div> body = <catchWord>chief…</catchWord>:
or, <rdg type="alternative">overseer</rdg> <br></div><div> type = study <br></div><div> [ 2 ] <br></div><div> body = <catchWord>have…</catchWord>: or,
<rdg type="alternative">be gracious unto
me</rdg> <br></div><div> type = study <br></div><div> [ Heading ] <br></div><div> [ 0 ] <br></div><div> sID = pv2 <br></div><div> subType = x-preverse <br></div><div> type = x-milestone <br></div><div> [ Preverse ] <br></div><div> 0 = <title canonical="true" type="psalm"><w
savlm="strong:H05329">To the chief Musician</w>
<w savlm="strong:H05058">on Neginoth</w>, <w
savlm="strong:H04210">A Psalm</w> <w
savlm="strong:H01732">of David</w>.</title> <br></div><div> module->renderText(heading[0]) = <h3
class="title psalm canonical">To the chief Musician on
Neginoth, A Psalm of David.</h3> <br></div><div> <br></div><div> <br></div><div> [ Word ] <br></div><div> [ 001 ] <br></div><div> Lemma = H05329 <br></div><div> LemmaClass = strong <br></div><div> Morph = TH8764 <br></div><div> MorphClass = strongMorph <br></div><div> PartCount = 1 <br></div><div> Text = To the chief Musician <br></div><div> [ 002 ] <br></div><div> Lemma = H05058 <br></div><div> LemmaClass = strong <br></div><div> PartCount = 1 <br></div><div> Text = on Neginoth <br></div><div> [ 003 ] <br></div><div> Lemma = H04210 <br></div><div> LemmaClass = strong <br></div><div> PartCount = 1 <br></div><div> Text = A Psalm <br></div><div> [ 004 ] <br></div><div> Lemma = H01732 <br></div><div> LemmaClass = strong <br></div><div> PartCount = 1 <br></div><div> Text = of David <br></div><div> [ 005 ] <br></div><div> Lemma = H06030 <br></div><div> LemmaClass = strong <br></div><div> Morph = TH8798 <br></div><div> MorphClass = strongMorph <br></div><div> PartCount = 1 <br></div><div> Text = Hear <br></div><div> [ 006 ] <br></div><div> Lemma = H07121 <br></div><div> LemmaClass = strong <br></div><div> Morph = TH8800 <br></div><div> MorphClass = strongMorph <br></div><div> PartCount = 1 <br></div><div> Text = me when I call <br></div><div> [ 007 ] <br></div><div> Lemma = H0430 <br></div><div> LemmaClass = strong <br></div><div> PartCount = 1 <br></div><div> Text = O God <br></div><div> [ 008 ] <br></div><div> Lemma = H06664 <br></div><div> LemmaClass = strong <br></div><div> PartCount = 1 <br></div><div> Text = of my righteousness <br></div><div> [ 009 ] <br></div><div> Lemma = H07337 <br></div><div> LemmaClass = strong <br></div><div> Morph = TH8689 <br></div><div> MorphClass = strongMorph <br></div><div> PartCount = 1 <br></div><div> Text = thou hast enlarged <br></div><div> [ 010 ] <br></div><div> Lemma = H06862 <br></div><div> LemmaClass = strong <br></div><div> PartCount = 1 <br></div><div> Text = in distress <br></div><div> [ 011 ] <br></div><div> Lemma = H02603 <br></div><div> LemmaClass = strong <br></div><div> Morph = TH8798 <br></div><div> MorphClass = strongMorph <br></div><div> PartCount = 1 <br></div><div> Text = have mercy <br></div><div> [ 012 ] <br></div><div> Lemma = H08085 <br></div><div> LemmaClass = strong <br></div><div> Morph = TH8798 <br></div><div> MorphClass = strongMorph <br></div><div> PartCount = 1 <br></div><div> Text = upon me, and hear <br></div><div> [ 013 ] <br></div><div> Lemma = H08605 <br></div><div> LemmaClass = strong <br></div><div> PartCount = 1 <br></div><div> Text = my prayer <br></div><p></p><p>There are very brief comments on this in the doxygen docs
for SWModule::search generated from the source headers.<br></p><p>Experimenting with multiword search on the verse body with
SWMgr::setGlobalOption("Headings", "On"), didn't produce the
output I would have expected from preverse headings. Karl
is certainly correct here. This is likely specific to this
one special entry attribute type "Preverse". We strip this
out from the rest of the body of the verse and are probably
moving it out of the way before we perform the search of the
body so an entry attribute search is the best way to find
these. However, other options like Strongs, if they are
turned on should return hits from the body of the verse.
Generally speaking, anything that you get from the plaintext
output for you options settings is what is searched by the
verse body search facility, so with Strongs on, you should
be able to search for lemmas as <G1234> or morph
(5678), but still I would be more precise and use an entry
attribute search: Word//Lemma./G1234/<br></p><p>Hope this helps.<br></p><p>Troy <br></p><p><br></p><div><br></div><div class="moz-cite-prefix">On 04/04/2018 10:42 AM, Karl
Kleinpaste wrote: <br></div><blockquote type="cite"><div class="moz-cite-prefix"><span class="font" style="font-family:FreeSerif">On
04/04/2018 01:33 PM, Karl Kleinpaste wrote:</span><br></div><blockquote type="cite"><span class="font" style="font-family:FreeSerif">Doesn't appear to be true, headings on
notwithstanding.</span><br></blockquote><div><span class="font" style="font-family:FreeSerif">On the other hand, a search for
lemma:H05058 finds "Neginoth" and "song" all over the
place.<br> Job 30:9; Psalms 4:1; Psalms 6:1; Psalms 54:1; Psalms
55:1; Psalms 61:1; Psalms 67:1; Psalms 69:12; Psalms 76:1;
Psalms 77:6; Isaiah 38:20; Lamentations 3:14; Lamentations
5:14; Habakkuk 3:19<br> </span> </div><div> <br></div><div> <br></div><pre wrap="">_______________________________________________
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="moz-txt-link-abbreviated">sword-devel@crosswire.org</a>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" class="moz-txt-link-freetext">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page<br></pre></blockquote><div><br></div></blockquote></div><div><br></div><div><br></div><pre wrap="">_______________________________________________
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="moz-txt-link-abbreviated">sword-devel@crosswire.org</a>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" class="moz-txt-link-freetext">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page<br></pre></blockquote></blockquote><div><br></div>