<div dir="ltr"><div><div><div><div>Hi Karl,<br><br></div>BPBible has some level of support for it (look for display_level in <a href="https://code.google.com/p/bpbible/source/browse/trunk/backend/genbook.py">https://code.google.com/p/bpbible/source/browse/trunk/backend/genbook.py</a>).<br></div>Looks like it tries to find the first and last key that should be included.<br></div>I didn't write it, and I don't know whether it still works or whether there are any modules that actually use it.<br><br></div>Jon<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 19, 2015 at 9:05 PM, Karl Kleinpaste <span dir="ltr"><<a href="mailto:karl@kleinpaste.org" target="_blank">karl@kleinpaste.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Xiphos has never handled DisplayLevel in any way. I've looked at
the wiki write-a-conf page and I'm kind of at a loss to grasp what
would happen for DL > 2. DL=1, just display the entry, fine.
DL=2, display all siblings at the same key level, fine. DL>=3?
Do I start crawling up and down the key tree looking for stuff? It
doesn't seem to me that DL>2 makes a whole lot of practical
sense.<br>
<br>
Does anyone have some code at hand that they could share, for
handling the DL=2 case? Basically, given a key /a/b/c, loop through
all /a/b/*. Just trim the key back to /a/b, then...what? I
understand DL=2 is what must have been intended in the brief,
abortive foray into genbook Bibles some years ago, so asking for
Matthew/25/1 would show all of Matthew/25, but that effort clearly
fell flat.<br>
<br>
I've always been uncomfortable with Xiphos' handling of genbook
keys. I could use a short tutorial in code.<font face="FreeSerif"><br>
</font>
</div>
<br>_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br></blockquote></div><br></div>