<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 22, 2018 at 8:51 AM, David Haslam <span dir="ltr">&lt;<a href="mailto:dfhdfh@protonmail.com" target="_blank">dfhdfh@protonmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Greg,<br></div><div><br></div><div>Thanks for the comparison between <b>KJV</b> and <b>SpaRV1909</b>.<br></div><div><br></div><div>It seems therefore that I assumed <u>incorrectly</u> that the &quot;extra space&quot; problem was more general, and that <i><b>any</b></i> module with Psalm titles could be used illustrate it.</div><div><br></div><div>FYI. Test module <b>SpaRV1865</b> only exists so far in the <b>text development</b> collaboration between myself and Vince LaRue.<br></div><div>btw. <i>We&#39;re now in our third week of activity and have made very good progress.</i><br></div><div><br></div><div>I suppose it might even depend on which version of <b>osis2mod</b> was used to build the module?<br></div><div>i.e. If there&#39;s nothing obvious in the OSIS source text that would result in the space.<br></div><div>FIO. Here&#39;s <b>Psalm 3</b> in the OSIS file - there are no trailing spaces at all.<br></div><div><br></div><div>&lt;chapter eID=&quot;Ps.2&quot; /&gt;<br></div><div>&lt;chapter sID=&quot;Ps.3&quot; osisID=&quot;Ps.3&quot; n=&quot;3&quot; /&gt;<br></div><div>&lt;!-- cl --&gt;&lt;milestone type=&quot;x-chapterLabel&quot; n=&quot;SALMO 3&quot; /&gt;<br></div><div>&lt;!-- d --&gt;&lt;title type=&quot;psalm&quot; canonical=&quot;true&quot;&gt;Salmo de David, cuando huía de delante de Absalom su hijo.&lt;/title&gt;<br></div><div>&lt;verse sID=&quot;Ps.3.1&quot; osisID=&quot;Ps.3.1&quot; n=&quot;1&quot; /&gt;Jehová, ¡cuánto se han multiplicado mis enemigos! muchos se levantan contra mí.<br></div><div>&lt;verse eID=&quot;Ps.3.1&quot; /&gt;<br></div></blockquote><div><br></div><div>I wonder if this newline before the eID verse element plus the empty element itself is being converted into a newline and space character by the OSIS-&gt;Plain filter? It would be worth comparing that ending to verse endings in e.g. the KJV to see if they are similar. And also possibly worthwhile to compare the results of osis2mod for your SpaRV1865 to what the compiled KJV module is to see if that newline is preserved.</div><div><br></div><div>--Greg</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div></div><div>&lt;verse sID=&quot;Ps.3.2&quot; osisID=&quot;Ps.3.2&quot; n=&quot;2&quot; /&gt;Muchos dicen de mi alma: No hay para él salud en Dios. Selah.<br></div><div>&lt;verse eID=&quot;Ps.3.2&quot; /&gt;<br></div>...<br>&lt;chapter eID=&quot;Ps.3&quot; /&gt;<br><br>Nothing shouts &quot;extra space&quot; does it?<br><br>I will therefore try the more recent version of <b>osis2mod</b> next time I rebuild the module.<br><div><br></div><div>Maybe Peter can shed light on how diatheke works here?<br></div><div> - given that it was he who added the LaTeX format option - a major contribution which we owe him thanks for.<br></div><div>- to do that, he must have got deeply involved in the code.<br></div><span class="im HOEnZb"><div><br></div><div class="m_-596097476691058601protonmail_signature_block"><div class="m_-596097476691058601protonmail_signature_block-user"><div>Best regards,<br></div><div><br></div><div>David<br></div></div><div><br></div><div class="m_-596097476691058601protonmail_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></span><div class="HOEnZb"><div class="h5"><div> On 22 March 2018 1:20 PM, Greg Hellings &lt;<a href="mailto:greg.hellings@gmail.com" target="_blank">greg.hellings@gmail.com</a>&gt; wrote:<br></div><div> <br></div><blockquote class="m_-596097476691058601protonmail_quote" type="cite"><div dir="ltr"><div><br></div><div class="gmail_extra"><div><br></div><div class="gmail_quote"><div>On Thu, Mar 22, 2018 at 4:01 AM, David Haslam <span dir="ltr">&lt;<a href="mailto:dfhdfh@protonmail.com" target="_blank">dfhdfh@protonmail.com</a>&gt;</span> wrote:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div>Hi Greg,<br></div><div><br></div><div>With <b>Plain</b> output format, there&#39;s a minor side effect in the way the Psalm title was output in the wrong place.<br></div><div>Verse 2 of the same Psalm was output with a <u>leading space</u> before the Reference.<br></div><div><br></div><div><a href="https://www.dropbox.com/s/uz1amnrp7ez0b4y/Screenshot%202018-03-22%2008.37.42.png?dl=0" target="_blank">https://www.dropbox.com/s/uz1a<wbr>mnrp7ez0b4y/Screenshot%202018-<wbr>03-22%2008.37.42.png?dl=0</a><br></div><div><br></div><div>This might be less obvious in a terminal, but it&#39;s quite evident when the output is piped to a file.<br></div><div><br></div><div>Please ensure that the patch also <u>removes</u> this spurious space, if perhaps it ddidn&#39;t do so already.<br></div></blockquote><div><br></div><div>As someone who isn&#39;t the maintainer of either Diatheke or the filters, I&#39;m not about to dig through the source to find one errant space in the output. Doubly so in that I do not have nor can I easily locate the SpaRV1865 module that you have screenshot there. I don&#39;t see the same artifact in KJV so I am going to conclude, for now, that this is either a bug that was already fixed between the older version of Diatheke that you are using and now or that it is an artifact of the module itself. Compare the KJV and the Spa1909 that&#39;s on CrossWire&#39;s server:<br></div><div><br></div><div><div>$ diatheke -b KJV -o h -f Plain -k Ps.3<br></div><div>Psalms 3:1: LORD, how are they increased that trouble me! many are they that rise up against me.<br></div><div>A Psalm of David, when he fled from Absalom his son.<br></div><div>Psalms 3:2: Many there be which say of my soul, There is no help for him in God. Selah.<br></div></div><div><br></div><div><div>$ diatheke -b SpaRV1909 -o h -f Plain -k Ps.3<br></div><div>Psalms 3:1: <br></div><div>Salmo de David, cuando huía de delante de Absalom su hijo.<br></div><div> ¡OH Jehová, cuánto se han multiplicado mis enemigos! muchos se levantan contra mí.<br></div><div>Psalms 3:2: Muchos dicen de mi vida: No hay para él salud en Dios. (Selah.)<br></div></div><div><br></div><div>The SpaRV1909 module definitely has spurious spaces around many different places. I suspect that your SpaRV1865 module is in a similar place.<br></div><div><br></div><div>--Greg<br></div><div><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div><br></div><div><br></div><div>While I&#39;m on a roll, I noticed also that there&#39;s a subtle change in how diatheke treats the start and end of a <b>hi</b> element.<br></div><div>There&#39;s now a <b>space</b> after the leading asterisk and <b>another space</b> before the trailing asterisk.<br></div><div><a href="https://www.dropbox.com/s/2h2u1768rgx9p95/Screenshot%202018-03-22%2008.38.21.png?dl=0" target="_blank">https://www.dropbox.com/s/2h2u<wbr>1768rgx9p95/Screenshot%202018-<wbr>03-22%2008.38.21.png?dl=0</a><br></div><div><br></div><div>If this change was unintended, it ought to be reverted for consistency with earlier versions.<br></div></blockquote><div><br></div><div>Sounds like a filter thing.<br></div><div><br></div><div>--Greg<br></div><div> <br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div><br></div><span class="m_-596097476691058601gmail-im m_-596097476691058601gmail-HOEnZb"><div><br></div><div class="m_-596097476691058601gmail-m_-2132212568266044925protonmail_signature_block"><div class="m_-596097476691058601gmail-m_-2132212568266044925protonmail_signature_block-user"><div>Best regards,<br></div><div><br></div><div>David<br></div></div><div><br></div><div class="m_-596097476691058601gmail-m_-2132212568266044925protonmail_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></span><div class="m_-596097476691058601gmail-HOEnZb"><div class="m_-596097476691058601gmail-h5"><div>On 21 March 2018 3:33 AM, Greg Hellings &lt;<a href="mailto:greg.hellings@gmail.com" target="_blank">greg.hellings@gmail.com</a>&gt; wrote:<br></div><div><br></div><blockquote type="cite" class="m_-596097476691058601gmail-m_-2132212568266044925protonmail_quote"><div dir="ltr"><div><br></div><div class="gmail_extra"><div><br></div><div class="gmail_quote"><div>On Tue, Mar 20, 2018 at 10:21 PM, Troy A. Griffitts <span dir="ltr">&lt;<a href="mailto:scribe@crosswire.org" target="_blank">scribe@crosswire.org</a>&gt;</span> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>If I had to guess, I suspect diatheke is not calling renderText before asking for the header. The renderText method triggers all entryAttributes to be filled. The header is an entryAttribute.<br></div></blockquote><div><br></div><div>Spot on. If I were offering commentary, I would call that a bug in the UX of the API. But I do get why it is that way. Attaching a patch that solves the problem.<br></div><div><br></div><div>--Greg<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div class="m_-596097476691058601gmail-m_-2132212568266044925h5"><div><br></div><div><br></div><div class="gmail_quote"><div>On March 20, 2018 8:13:41 PM MST, Greg Hellings &lt;<a href="mailto:greg.hellings@gmail.com" target="_blank">greg.hellings@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>To be quite specific: diatheke does not encounter that header in the preverse content until it reaches Psalm 3:2 for some reason that is beyond my ken. Therefore, it is properly rendering that content as preverse, but it has attached it to the wrong verse. Output from my slightly modified diatheke confirms this:<br></div><div><br></div><div><div>$ ./inst/bin/diatheke -b KJV -o h -f Plain -k Ps 3<br></div><div>key: Psalms 3:1<br></div><div>header: <br></div><div>Psalms 3:1: LORD, how are they increased that trouble me! many are they that rise up against me.<br></div><div>key: Psalms 3:2<br></div><div>header: &lt;title canonical=&quot;true&quot; type=&quot;section&quot;&gt;&lt;w savlm=&quot;strong:H04210&quot;&gt;A Psalm&lt;/w&gt; &lt;w savlm=&quot;strong:H01732&quot;&gt;of David&lt;/w&gt;, &lt;w savlm=&quot;strong:H01272&quot;&gt;when he fled&lt;/w&gt; &lt;w savlm=&quot;strong:H06440&quot;&gt;from&lt;/w&gt; &lt;w savlm=&quot;strong:H053&quot;&gt;Absalom&lt;/w<wbr>&gt; &lt;w savlm=&quot;strong:H01121&quot;&gt;his son&lt;/w&gt;.&lt;/title&gt;<br></div><div>A Psalm of David, when he fled from Absalom his son.<br></div><div>Psalms 3:2: Many there be which say of my soul, There is no help for him in God. Selah.<br></div><div><br></div><div>--Greg<br></div></div></div><div class="gmail_extra"><div><br></div><div class="gmail_quote"><div>On Tue, Mar 20, 2018 at 9:53 PM, Greg Hellings <span dir="ltr">&lt;<a href="mailto:greg.hellings@gmail.com" target="_blank">greg.hellings@gmail.com</a>&gt;</span> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>It&#39;s easier to see the problem when using plain formatting:<br></div><div><br></div><div><div>$ diatheke -b KJV -o h -f Plain -k Ps 3<br></div><div>Psalms 3:1: LORD, how are they increased that trouble me! many are they that rise up against me.<br></div><div>A Psalm of David, when he fled from Absalom his son.<br></div><div>Psalms 3:2: Many there be which say of my soul, There is no help for him in God. Selah.<br></div><div>Psalms 3:3: But thou, O LORD, art a shield for me; my glory, and the lifter up of mine head.<br></div><div>Psalms 3:4: <br></div><div>I cried unto the LORD with my voice, and he heard me out of his holy hill. Selah.<br></div><div>Psalms 3:5: I laid me down and slept; I awaked; for the LORD sustained me.<br></div><div>Psalms 3:6: I will not be afraid of ten thousands of people, that have set themselves against me round about.<br></div><div>Psalms 3:7: Arise, O LORD; save me, O my God: for thou hast smitten all mine enemies upon the cheek bone; thou hast broken the teeth of the ungodly.<br></div><div>Psalms 3:8: Salvation belongeth unto the LORD: thy blessing is upon thy people. Selah.<br></div><div>(KJV)<br></div></div><span class="m_-596097476691058601gmail-m_-2132212568266044925m_-2037599869492834402HOEnZb"><span class="m_-596097476691058601colour" style="color:rgb(136,136,136)"><div><br></div><div>--Greg<br></div><div><br></div></span></span></div><div class="m_-596097476691058601gmail-m_-2132212568266044925m_-2037599869492834402HOEnZb"><div class="m_-596097476691058601gmail-m_-2132212568266044925m_-2037599869492834402h5"><div class="gmail_extra"><div><br></div><div class="gmail_quote"><div>On Tue, Mar 20, 2018 at 9:50 PM, Greg Hellings <span dir="ltr">&lt;<a href="mailto:greg.hellings@gmail.com" target="_blank">greg.hellings@gmail.com</a>&gt;</span> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I&#39;m not so sure your initial assertion is correct.<br></div><div><br></div><div><div>$ diatheke -b KJV -o h -k Ps 3<br></div><div>Psalms 3:1: &lt;w savlm=&quot;strong:H03068&quot;&gt;&lt;seg&gt;&lt;di<wbr>vineName&gt;Lord&lt;/divineName&gt;&lt;/se<wbr>g&gt;&lt;/w&gt;, &lt;w  savlm=&quot;strong:H07231&quot;&gt;how are they increased&lt;/w&gt; &lt;w savlm=&quot;strong:H06862&quot;&gt;that trouble&lt;/w&gt; &lt;w savlm=&quot;strong:H07227&quot;&gt;me! many&lt;/w&gt; &lt;transChange type=&quot;added&quot;&gt;are&lt;/transChange&gt; &lt;w  savlm=&quot;strong:H06965&quot;&gt;they that rise up&lt;/w&gt; against me.<br></div><div>&lt;title canonical=&quot;true&quot; type=&quot;section&quot;&gt;&lt;w savlm=&quot;strong:H04210&quot;&gt;A Psalm&lt;/w&gt; &lt;w savlm=&quot;strong:H01732&quot;&gt;of David&lt;/w&gt;, &lt;w savlm=&quot;strong:H01272&quot;&gt;when he fled&lt;/w&gt; &lt;w savlm=&quot;strong:H06440&quot;&gt;from&lt;/w&gt; &lt;w savlm=&quot;strong:H053&quot;&gt;Absalom&lt;/w<wbr>&gt; &lt;w savlm=&quot;strong:H01121&quot;&gt;his son&lt;/w&gt;.&lt;/title&gt;Psalms 3:2: &lt;w savlm=&quot;strong:H07227&quot;&gt;Many&lt;/w&gt; &lt;transChange type=&quot;added&quot;&gt;there be&lt;/transChange&gt; &lt;w  savlm=&quot;strong:H0559&quot;&gt;which say&lt;/w&gt; &lt;w savlm=&quot;strong:H05315&quot;&gt;of my soul&lt;/w&gt;, &lt;transChange type=&quot;added&quot;&gt;There is&lt;/transChange&gt; &lt;w savlm=&quot;strong:H03444&quot;&gt;no help&lt;/w&gt; &lt;w savlm=&quot;strong:H0430&quot;&gt;for him in God&lt;/w&gt;. &lt;w savlm=&quot;strong:H05542&quot;&gt;Selah&lt;/w<wbr>&gt;.<br></div><div><br></div><div>If you notice carefully, the canonical title is there. It is just misplaced. It comes after the text of Psalm 3:1 and not before.<br></div><div><br></div><div>--Greg<br></div><div class="gmail_extra"><div><br></div><div class="gmail_quote"><div><div class="m_-596097476691058601gmail-m_-2132212568266044925m_-2037599869492834402m_2175382381340732959h5">On Tue, Mar 20, 2018 at 4:40 PM, David Haslam <span dir="ltr">&lt;<a href="mailto:dfhdfh@protonmail.com" target="_blank">dfhdfh@protonmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="m_-596097476691058601gmail-m_-2132212568266044925m_-2037599869492834402m_2175382381340732959h5"><div>Maybe someone could patch diatheke to fix this?<br></div><span class="m_-596097476691058601gmail-m_-2132212568266044925m_-2037599869492834402m_2175382381340732959m_-3347557508244250965gmail-im m_-596097476691058601gmail-m_-2132212568266044925m_-2037599869492834402m_2175382381340732959m_-3347557508244250965gmail-HOEnZb"><div><br></div><div class="m_-596097476691058601gmail-m_-2132212568266044925m_-2037599869492834402m_2175382381340732959m_-3347557508244250965gmail-m_4619959956326407951protonmail_signature_block">Best regards, David<br></div><div><br></div><div><br></div><div id="m_-596097476691058601gmail-m_-2132212568266044925m_-2037599869492834402m_2175382381340732959m_-3347557508244250965gmail-m_4619959956326407951protonmail_mobile_signature_block">Sent from ProtonMail Mobile<br></div></span><div class="m_-596097476691058601gmail-m_-2132212568266044925m_-2037599869492834402m_2175382381340732959m_-3347557508244250965gmail-HOEnZb"><div class="m_-596097476691058601gmail-m_-2132212568266044925m_-2037599869492834402m_2175382381340732959m_-3347557508244250965gmail-h5"><div><div><br></div><div><div><br></div><div>On Wed, Mar 14, 2018 at 12:14, David Haslam &lt;<a href="mailto:dfhdfh@protonmail.com" target="_blank">dfhdfh@protonmail.com</a>&gt; wrote:<br></div></div><blockquote class="m_-596097476691058601gmail-m_-2132212568266044925m_-2037599869492834402m_2175382381340732959m_-3347557508244250965gmail-m_4619959956326407951protonmail_quote" type="cite"><div>Diatheke does not output the canonical Psalm titles when output option h is used.<br></div><div><br></div><div>Try this and see what I mean.<br></div><div><br></div><div>diatheke -b KJV -o h -k Ps 3<br></div><div><br></div><div>This is a significant lack of feature.<br></div><div><br></div><div>Best regards,<br></div><div><br></div><div>David<br></div><div><br></div><div id="m_-596097476691058601gmail-m_-2132212568266044925m_-2037599869492834402m_2175382381340732959m_-3347557508244250965gmail-m_4619959956326407951protonmail_mobile_signature_block">Sent from ProtonMail Mobile<br></div></blockquote></div></div></div><div><br></div></div></div><div>______________________________<wbr>_________________<br></div><div>sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br></div><div><a href="http://www.crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer" target="_blank">http://www.crosswire.org/mailm<wbr>an/listinfo/sword-devel</a><br></div><div>Instructions to unsubscribe/change your settings at above page<br></div></blockquote></div></div></div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote></div></div></div><div><span class="m_-596097476691058601gmail-m_-2132212568266044925HOEnZb"><span class="m_-596097476691058601colour" style="color:rgb(136,136,136)">--<br> Sent from my Android device with K-9 Mail. Please excuse my brevity.</span></span></div></div></blockquote></div></div></div></blockquote><div><br></div></div></div></blockquote></div></div></div></blockquote><div><br></div></div></div></blockquote></div><br></div></div>