<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<meta http-equiv="Content-Style-Type" content="text/css">
</head>
<body>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">Troy,</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">The problem is not parsing references. I have that figured out long ago, and converting from Logos to Sword, etc.</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">The problem is that when you have a commentary with, for example a milestone for Gen 1:1-31 with some introductory material, followed by a sub-heading with a milestone for Gen 1:1-13,
then followed by verse commentaries for Gen 1:1-5, then Gen 1:6-8, then Gen 1:9-13. When compiling with osis2mod, it doesn't quite know what to do with the nested ranges, and stuff does not display properly.</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">John</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> Hi John,</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> Do you have an example? Our parser handles some pretty crazy verse references. You can
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> give it a try here:</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> http://crosswire.org/study/examples/parsevs.jsp</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> On 11/15/18 10:35 AM, Dudeck, John wrote:</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> The main problem with commentaries is getting the annotateRef attribute right without
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> manual intervention. Logos supports nested levels of reference, eg. book-level,
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> chapter-level, verse-level, and verse ranges (that can span mutiple chapters). As far as I
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> can tell, osis2mod gets terribly confused with nested ranges.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> Generally speaking, black box converters are pretty much a lost cause. I have used a .conf
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> file approach where variable stuff can be configured, for example how to map class and
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> style attributes to the limited rendering capabilities of Sword. And I have separate scripts
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> for genbooks, bibles, commentaries, and dictionaries/lexicons.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> John</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">>
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > Any time your list of exceptional conditions contains more text than the</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > conversion itself, you have to start questioning whether 'automation' is</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > even possible. </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > I spent time developing similar scripts (something like wordxml -></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > USFM) for single use cases. Doing the conversion was usually about</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > 10 steps, but then dealing with the exceptions (both before and after</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > the conversion) took 100+ steps. Without automation, the 10 steps</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > was good enough. but not keeping a human involved, all the human</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > decisions had to be mapped. </span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > On Thu, Nov 15, 2018 at 10:39 AM Greg Hellings <greg.hellings@gmail.com> wrote:</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > On Thu, Nov 15, 2018 at 10:35 AM Dudeck, John <John.Dudeck@sim.org> wrote:</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > I am developing a set of Perl scripts that convert Logos XML to OSIS for</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > commentaries. It has proven to be a non-trivial exercise.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > I undertook a similar exercise over a decade ago as part of an internship. It was a beast
</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> of</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > a task and one that was never fully completed.</span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> ></span></font></div>
<div align="left"><font face="Arial" color="#7f0000" size="2"><span style=" font-size:10pt">> > --Greg</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt"><br>
</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">John Dudeck</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">Programmer at Editions Cle Lyon, France</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">john.dudeck@sim.org john@editionscle.com</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">--</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt">"If we knew what it was we were doing, it would not be called</span></font></div>
<div align="left"><font face="Arial" size="2"><span style=" font-size:10pt"> research, would it?" -- Albert Einstein</span></font></div>
<div align="left"> </div>
</body>
</html>