<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Dan,<div><br class="webkit-block-placeholder"></div><div>I just looked at the file you sent me and in looking at it here are my thoughts.<div><br><div><div>On Nov 4, 2007, at 11:57 PM, DM Smith wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <br><div><div>On Nov 4, 2007, at 10:03 PM, Daniel Owens wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I have checked and rechecked my OSIS tagging of the New Vietnamese Bible<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(2002), for which I am currently seeking permission to distribute, by<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">the way (The copyright holders are hard to find.). I believe it is a<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">valid OSIS document. At the very least it matches the tagging produced<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">by mod2osis.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I removed all line breaks in the xml file after the header to solve the<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">problem of line breaks displaying after the verse number in BibleDesktop<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">and BibleTime. The two features which cause difficulty now are headings<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">and notes. I've had trouble with line breaks as well (&lt;p&gt;&lt;/p&gt; is<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">useless), but I'm leaving them aside until I have success with headings<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">and notes.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Headings display correctly in BibleTime 1.6.2 (Kubuntu 7.04), GnomeSword<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">2.2.0 (Kubuntu 7.04), and BibleCS 1.5.10pre4 (Windows XP Home). Headings<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">do not display at all in BibleDesktop 1.0.7 (Windows XP Home), though<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">the View Source dialog shows that the tags are there in the "Original"<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">source.</div></blockquote><div><br class="webkit-block-placeholder"></div></div><div><br class="webkit-block-placeholder"></div><div>It could be that this bug is that the headings are becoming part of verse 0, which is automatically displayed in chapter mode in the other applications. At the moment BibleDesktop does not handle verse 0.</div><div><div>A good example of how to attach a heading to verse 1 instead of verse 0 can be found in the KJV. You can get the xml for the KJV here: <a href="http://www.crosswire.org/~dmsmith/kjv2006">www.crosswire.org/~dmsmith/kjv2006</a>.</div><br class="webkit-block-placeholder"></div><div>But given that you said that BibleDesktop's View Source shows it. My guess is that I have a bug in the code.</div></blockquote><div><br class="webkit-block-placeholder"></div>osis2mod has to handle headings specially. Sword does not store the verse tags with the content of the verse. Therefore it needs to mark anything that needs to stand before the verse number. It does this by marking the &lt;title&gt; element as x-preverse and putting it within verse content.</div><div>Thus if you have</div><div>&lt;title&gt;This is a title&lt;/title&gt;</div><div>&lt;verse osisID="Gen.1.1"&gt;In the beginning...&lt;/verse&gt;</div><div><br class="webkit-block-placeholder"></div><div>osis2mod will convert it into:</div><div>&lt;verse osisID="Gen1.1"&gt;&lt;title type="section" subType="x-preverse"&gt;This is a title&lt;/title&gt;In the beginning...&lt;/verse&gt;</div><div><br class="webkit-block-placeholder"></div><div>You have encoded it as the second form. This is valid OSIS but it is not proper OSIS.</div><div><br class="webkit-block-placeholder"></div><div>If it is truly a section heading the proper OSIS way to mark this up is to create a div around the entire section and have the title as the first element in the div. It should be marked up in the following way:</div><div>&lt;div type="section"&gt;</div><div>&lt;title type="section"&gt;This is a section header&lt;/title&gt;</div><div>&lt;verse osisID="Gen.1.1"&gt;Verse text&lt;/verse&gt;</div><div>... and continuing onward to the end of the last verse in the section....</div><div>&lt;/verse&gt;</div><div>&lt;/div&gt;</div><div><br class="webkit-block-placeholder"></div><div>But I'm not sure that osis2mod handles this properly. I think osis2mod only expects &lt;div type="book"&gt; and &lt;div type="chapter"&gt; and tries its best with the others. (BTW &lt;chapter&gt;, which you use, is favored over &lt;div type="chapter"&gt;.)</div><div><br class="webkit-block-placeholder"></div><div>I don't know why BD is not showing it. It should. I am assuming you have "Show Headings" checked.</div><div><br></div><div><br class="webkit-block-placeholder"></div><div><br><blockquote type="cite"><div><br></div><div><br><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Notes do not display at all in BibeCS. In BibleDesktop, BibleTime, and<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">GnomeSword the notes appear in the text like this (Genesis 2:24):</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">    </span>Vì thế, người nam sẽ rời cha mẹ để kết hiệp với vợ và hai người trở<span class="Apple-converted-space"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">thành một thân."<span class="Apple-converted-space">  </span>Nt: một thịt</div></blockquote><div><br class="webkit-block-placeholder"></div>This should be encoded something like:</div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: 12.0px Helvetica">&lt;verse sID="Gen.2.24" osisID="Gen.2.24" n="24"/&gt;Vì thế, người nam sẽ rời cha mẹ để kết hiệp với vợ và hai người trở thành một thân.&lt;q eID="xxx" marker="""/&gt;&lt;note osisRef="Gen.2.24" osisID="Gen.2.24!1" n="1" type="translation"&gt;Nt: một thịt&lt;/note&gt;&lt;verse eID="Gen.2.24"/&gt;</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I used xxx for eID to represent whatever the matching sID should be.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Notice that there is no space before the &lt;note....&gt; This means that the note marker will be attached to what precedes it.</div></div></blockquote><br><div><br class="webkit-block-placeholder"></div>You have type="crossReference" for your translation note. This type should only be used for notes that contain &lt;reference&gt; elements. Change it to type="translation" and it should work. You will also probably want to change the osisID to osisID="Gen.2.24!translation.a"</div><div><br class="webkit-block-placeholder"></div><div>SWORD has special handling when the type is crossReference. All other types are handled the same.</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Other things I noticed:</div><div>You have a space before every &lt;/verse&gt;. This is unnecessary. osis2mod will remove it.</div><div><br class="webkit-block-placeholder"></div><div>Fo readability and for text editors that cannot handle long lines, if you wish, you can start each book, chapter, verse and every "block" element on a new line in the file. Block elements include div, chapter, title, p. And for readability, putting closing div and chapter on their own lines is ok. </div><div><br class="webkit-block-placeholder"></div><div>I found titles inside of notes. (Gen 4:25, 10:1, 21, 37:25, 38:1) The way SWORD C++ works is that it will take every x-preverse title that it finds out of the text and put it into a special data structure and render the title before the verse number if headings is turned on. If the notes filter is before the headings filter, and "Show notes" is off then these won't be seen. However if the headings filter is before the notes filter, they will be found. JSword works differently, and never looks into notes for headings, but only within verses. So these will never be shown.</div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><br></div></div></div></body></html>