<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Jul 9, 2025, at 10:35 AM, Karl Kleinpaste <karl@kleinpaste.org> wrote:</div><br class="Apple-interchange-newline"><div>

  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
  <div>
    <div class="moz-cite-prefix">On 7/9/25 10:01 AM, DM Smith wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:F44B9ADB-3A16-47EF-9FDD-F251614F3844@crosswire.org">
      <pre class="moz-quote-pre" wrap="">These have to be enable with setIntros(true). I’m not sure which frontends support these intros.</pre>
    </blockquote>
    <br>
    <font face="FreeSerif">Xiphos does, but for only book and chapter,
      obtained as 0:0 and [1-n]:0.<br>
      <br>
      It has no awareness of module or testament intros. How are these
      accessed in terms of a verse key? B & C are obvious as "0"
      elements, but where do the other intro elements fit? Visually,
      should a testament intro be presented ahead of Genesis and
      Matthew, or should separate views be provided?</font><br></div></div></blockquote><div><br></div>I think you can either parse the string literals I gave earlier, e.g. “[ Module Heading ]”, “[ Testament 1 Heading ]”, “[ Testament 2 Heading ]"or set the testament to 0, 1 or 2. Setting the testament will set the other parts to 0 if Intros is true else 1.</div><div><br></div><div>Something like the following should work to get the headings.</div><div>VerseKey vk;</div><div>vk.setIntros(true);</div><div>vk.setTestament(0); // for module heading. use 1 for OT Heading and 2 for NT heading.</div><div><br></div><div>or</div><div>VerseKey vk;</div><div>vk.setIntros(true);</div><div>ListKey verses = vk.parseVerseList(“[ Module Heading ]”, vk, true); // or “[ Testament 1 Heading ]”, “[ Testament 2 Heading ]”</div><div>verses.setPosition(TOP);</div><div>vk = verseKeys;</div><div><br></div><div>Currently in OSIS modules, we are storing the build info in a milestone which SWORD won’t render. It is stored in the NT Heading when the module is NT only, and in the OT Heading otherwise.</div><div><br></div><div>As far as I can tell there’s no test to see if a module has these intros. I would think from a front end perspective you’d want to show them only if the user has chosen to show intros/headings/titles and only if they have content.</div><div><br></div><div>It might make sense to show them when showing Book intros to Gen or Matt. I’m not sure what you’d do if the module was the NT and Psalms. Perhaps, an upfront test to determine whether the module has these intros and show them separately.</div><div><br></div><div><br></div><div><br></div><div>— DM</div><div><br></div><div><br><blockquote type="cite"><div><div>
  </div>

_______________________________________________<br>sword-devel mailing list: sword-devel@crosswire.org<br>http://crosswire.org/mailman/listinfo/sword-devel<br>Instructions to unsubscribe/change your settings at above page<br></div></blockquote></div><br></body></html>