<div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote">On Thu, Feb 23, 2017 at 2:04 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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You&#39;ll have to give more information before anyone can help you out<br></div></blockquote><div><br></div><div>I don&#39;t need help. I am trying to make it known that there is a problem with your usfm2osis.py conversion script so that it can be fixed.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Feb 23, 2017 at 12:46 PM, Ryan V <span dir="ltr">&lt;<a href="mailto:adyeths@gmail.com" target="_blank">adyeths@gmail.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 dir="ltr"><div><div>usfm2osis.py appears to be very broken now. I ran it on a number of bibles and it failed to properly convert all of them. For the World English Bible it reported the following:<br><br>    Unhandled USFM tags: \+bk, \c, \li1&lt;verse, \p, \p&lt;verse, \q2, \v (7 total)<br></div></div></div></blockquote><div><br></div></span><div>This is not broken. This is unimplemented. Tags are only implemented into usfm2osis.py once they are encountered. These have not been encountered in previous works converted using this tool. You or someone else will need to add support for those tags.<br></div></div></div></div></blockquote><div><br></div><div>Yes, it is broken. The only usfm tag in this list that is unimplemented is \+bk ... all of the other usfm tags are implemented and were previously handled by the usfm2osis.py conversion script before it became broken. The fact that both the \c and \v usfm tags appear in this list is a big indication that there is a serious problem. Those two usfm tags are what mark chapters and verses. And they have always been handled by the script.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> <br></div><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div></div><div><br>Chapter and verse numbering in the resulting osis is broken as well. It looks like the following:<br></div><br>    &lt;chapter osisID=&quot;$BOOK$.1&quot; sID=&quot;$BOOK$.1&quot;/&gt;<br>    &lt;verse osisID=&quot;$BOOK$.$CHAP$.1&quot; sID=&quot;$BOOK$.$CHAP$.1&quot;/&gt;<br></div></div></blockquote><div><br></div></span><div>What language and format are you source files in? Often USFM projects represent a new work from a new language, and the source language names and abbreviations for books are not known. Perhaps the format that your books are in means that this information is missing from the OSIS but present in some other type of metadata. Somewhere, somehow the book and chapter information is missing from the input and thus it&#39;s not in the output. That doesn&#39;t necessarily mean that the utility is &quot;very broken&quot;.<br> </div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div>Please give us a bit more information to work with.<br><br></div><div>--Greg <br></div></div></div></div></blockquote><div><br></div><div></div><div>Since I am talking about usfm2osis.py which is a usfm to osis converter, it can be inferred that the source files are usfm. If that was not clear then I apologize and will make it clear now. The source files are usfm. The language would be english since I specifically mentioned the results I posted were from the World English Bible.<br><br>The book and chapter information is missing because the current version of usfm2osis.py is broken. Going to a version of usfm2osis.py before it became broken produced expected results.<br><br>I was trying to test your latest version of the usfm2osis.py converter to compare its output with my u2o converter. I discovered that your usfm2osis.py converter was broken. I thought that those who were responsible for it would want to know. And reporting it on this list is the only way I know to guarantee that they see that there is a problem with it.<br><br>***<br><br>And if you really want specifics, here are some specifics for you...<br>I took a few minutes to track down when it broke and what change broke it...<br>The breakage occurred on November 30th, 2016... and this is the commit that broke it...<br><br><a href="https://github.com/refdoc/Module-tools/commit/ad7fbad7e9a809eb65dea223d5174351bcccee8d">https://github.com/refdoc/Module-tools/commit/ad7fbad7e9a809eb65dea223d5174351bcccee8d</a></div><br></div><div class="gmail_quote">Undoing that one tiny little change makes usfm2osis.py work again.<br><br></div></div></div></div>