<div style="font-family: Arial, sans-serif; font-size: 14px;">Thanks DM,</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">The eXperimental module JSTX was rebuilt several times last night (& earlier) using <b>imp2vs</b> rather than <b>osis2mod</b></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">I can confirm that several verses containing the <b>chapter eID milestone</b> were most definitely not listed by <b>emptyvss</b> when they had no text content!<br><br>It would be easy enough for you to test out.<br><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><ol data-editing-info="{"orderedStyleType":1,"unorderedStyleType":1}" style="margin-top: 0px; margin-bottom: 0px;" data-listchain="__List_Chain_67"><li style="list-style-type: "1. ";"><span>mod2imp KJV > <b>KJV.raw.imp.txt</b><br></span></li><li style="font-family: Arial, sans-serif; font-size: 14px; list-style-type: "2. ";">edit <span style="display: inline !important; background-color: rgb(255, 255, 255);"><b>KJV.raw.imp.txt</b> by removing the last verse in any random chapter, but leaving the <b>eID milestone</b> intact.</span></li><li style="font-family: Arial, sans-serif; font-size: 14px; list-style-type: "3. ";"><span style="display: inline !important; background-color: rgb(255, 255, 255);">Rebuild the module (with a different name, say KJVX) using <b>imp2vs</b></span></li><li style="font-family: Arial, sans-serif; font-size: 14px; list-style-type: "4. ";"><span style="display: inline !important; background-color: rgb(255, 255, 255);"><b>emptyvss</b> KJVX ><b>KJVX.emptyvss.txt</b></span></li><li style="font-family: Arial, sans-serif; font-size: 14px; list-style-type: "5. ";"><span style="display: inline !important; background-color: rgb(255, 255, 255);">Open <b style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0)">KJVX.emptyvss.txt</b><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0)"> with a text editor and see if it's got any lines</span></span></li><li style="font-family: Arial, sans-serif; font-size: 14px; list-style-type: "6. ";"><span style="display: inline !important; background-color: rgb(255, 255, 255);"><span style="scrollbar-width:thin;scrollbar-color:rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0)">If it's still a null file, then the bug has been demonstrated</span></span></li></ol></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>
<div class="protonmail_signature_block" style="font-family: Arial, sans-serif; font-size: 14px;">
    <div class="protonmail_signature_block-user">NB. My intentional use of <span style="font-family: Menlo, Consolas, "Courier New", monospace;"><seg/></span> in (eg) <b>Song of Solomon</b> is completely irrelevant to this bug.</div><div class="protonmail_signature_block-user"><br></div><div class="protonmail_signature_block-user">
        Best regards,<br><br>David
    </div>
    <div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>
    <div class="protonmail_signature_block-proton">
        Sent with <a target="_blank" href="https://pr.tn/ref/SWXT9A5YZ67G">Proton Mail</a> secure email.
    </div>
</div>
<div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div class="protonmail_quote">
        On Wednesday, May 14th, 2025 at 12:17 PM, DM Smith <dmsmith@crosswire.org> wrote:<br>
        <blockquote class="protonmail_quote" type="cite">
            I think this bug is in osis2mod. It is not supposed to output book, chapter or verse starts or ends. I’m guessing that the chapter ends are present because of the handling of colophons, which come after the end of the last chapter of the book.<div><br></div><div>The design of emptyvss is that it doesn’t care what kind of markup (e.g. ThML, GBF, OSIS) is used. If the verse content has zero length then the verse is missing.</div><div><br></div><div>I think you have been trying to add “invisible” markup to modules to make them seem like they are present in Xiphos. It’s hard to have it both ways.</div><div><br></div><div>In Him,</div><div><span style="white-space:pre" class="Apple-tab-span">        </span>DM<br><div><div><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On May 14, 2025, at 4:09 AM, David Haslam <dfhdfh@protonmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div style="font-family: Arial, sans-serif; font-size: 14px;">Dear all,</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">I will soon report this in <b>MODTOOLS</b> in the CrossWire tracker, but this is to inform about the following:<br><br><div style="text-align: center;"><span style="font-size: 13.5pt; line-height: normal;"><b style="line-height: normal;">emptyvss</b></span><span style="font-size: 13.5pt; line-height: normal;"> does not detect all empty verses!!!</span></div>
<br>I suspect that it's looking for verses with the "null string" so it misses detecting any verse that <b><i>only</i></b> contains invisible XML content.<br><br>The main candidate of that class is the <b>last verse of each chapter</b>.<br>When the verse text is missing, such a verse still contains the XML milestone<br><blockquote style="border-left: 3px solid rgb(200, 200, 200); border-top-color: rgb(200, 200, 200); border-right-color: rgb(200, 200, 200); border-bottom-color: rgb(200, 200, 200); padding-left: 10px; color: rgb(102, 102, 102);"><span style="font-family: Menlo, Consolas, "Courier New", monospace;"><</span><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 12pt; line-height: normal;">chapter eID="...." osisID="...." /></span><br></blockquote>
E.g.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><blockquote style="border-left: 3px solid rgb(200, 200, 200); border-top-color: rgb(200, 200, 200); border-right-color: rgb(200, 200, 200); border-bottom-color: rgb(200, 200, 200); padding-left: 10px; color: rgb(102, 102, 102);"><span style="font-family: Menlo, Consolas, "Courier New", monospace; font-size: 12pt; line-height: normal;"><chapter eID="gen31843" osisID="Jas.1"/></span><br></blockquote><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>I encountered exactly this problem yesterday while I was working on the <b>JST</b> module.<br>Some of the missing verses were the last one in various chapters.<br><br>I'm quite astounded that I've been using this utility for almost 15 years and it's only just come to light.  It's a vital part of our armory for analysing new and updated modules.</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br>

<div style="font-family: Arial, sans-serif; font-size: 14px;" class="protonmail_signature_block">
    <div class="protonmail_signature_block-user">
        Best regards,<br><br>David
    </div>
    <div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>
    <div class="protonmail_signature_block-proton">
        Sent with <a href="https://pr.tn/ref/SWXT9A5YZ67G" target="_blank" rel="noreferrer nofollow noopener">Proton Mail</a> secure email.
    </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></div></div></div>
        </blockquote><br>
    </div>