<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">JSword does it’s own thing. The filter architecture is entirely different from SWORD’s. It converts Plain, GBF, ThML, TEI, … into OSIS. Then the toggles are passed to XSLT as parameters. The XSLT converts OSIS to HTML and it does the toggling.<div class=""><br class=""></div><div class="">STEP’s XSLT was based on BibleDesktop’s. As a fork, it handles things a bit differently than BibleDesktop. For example, it does morph segmentation, but BD does not.</div><div class=""><br class=""></div><div class="">SWORD has a filter for each toggle that modifies the input (e.g. OSIS, ThML) that the render filters get.<br class=""><div class=""><br class=""></div><div class="">— DM<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 30, 2017, at 10:22 AM, David Haslam <<a href="mailto:dfhdfh@protonmail.com" class="">dfhdfh@protonmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Thanks for the detailed report, Karl. </div>
<div class="">
<br class="">
</div>
<div class="">It's just as I feared. </div>
<div class="">
<br class="">
</div>
<div class="">It also indicates that STEP Bible must do its own thing for such modules. </div>
<div class="">
<br class="">
</div>
<div class="">It displays alternate segments in a different colour. </div>
<div class="">
<br class="">
</div>
<div class="protonmail_signature_block">Best regards, David
</div>
<div class="">
<br class="">
</div>
<div class="">
<br class="">
</div>
<div id="protonmail_mobile_signature_block" class="">Sent from ProtonMail Mobile</div>
<div class="">
<br class="">
<div class="">
<div class="">
<br class="">
</div>On Sat, Dec 30, 2017 at 15:02, Karl Kleinpaste <<a href="mailto:karl@kleinpaste.org" class="">karl@kleinpaste.org</a>> wrote:</div>
<blockquote class="protonmail_quote" type="cite">
<div class="moz-cite-prefix">On 12/30/2017 08:31 AM, DM Smith wrote:
<br class="">
</div>
<blockquote type="cite" cite="mid:BD5D13B2-D24D-4A21-9DC0-DEA3A46054EF@crosswire.org" class="">The module matches what the filter expects.
<div class="">The filter does something.</div>
<div class="">Third possibility: front end doesn’t handle the attribute.</div>
</blockquote>
<br class="">I just spent an hour stepping through Xiphos' handling of WLC Gen.1.1 with and without Morpheme Segmentation set.
<br class="">
<br class="">First, Xiphos correctly turns the option on and off. That's kind of a given, but I had to check on it anyway. There's a single area where all options are turned on/off in a uniform way, driven by the GTK menu files, and how Xiphos discovers the
current setting during each chapter redraw. Mostly, I had to check that I had spelled the option right in all the relevant places, to be sure the right effect was being caused.
<br class="">
<br class="">Second, the actual text output that results from Morpheme Segmentation being on vs. off is identical, as discovered by trapping the display routine that accepts the engine's result when requesting the verse. This image is the result of copy/pasting
gdb's textual output from a terminal into gedit and then capturing an image of that.
<br class="">
<br class="">
<span id="cid:part1.66460D4F.1B5C5454@kleinpaste.org"><ppacabhaclgbpkih.png></span>
<br class="">
<br class="">The filter has no effect on the text. If someone wants to look at how osismorphsegmentation.cpp does this, feel free, but objectively what comes out from requesting the verse doesn't care whether the option is on.
<br class="">
<br class="">More simply, "diatheke -b WLC -f xhtml -k gen.1.1" with and without "-o M" proves they're the same, as shown with both diff and md5sum.
<br class="">
</blockquote>
</div>_______________________________________________<br class="">sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" class="">sword-devel@crosswire.org</a><br class=""><a href="http://www.crosswire.org/mailman/listinfo/sword-devel" class="">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br class="">Instructions to unsubscribe/change your settings at above page</div></blockquote></div><br class=""></div></div></body></html>