The main problem with commentaries is getting the annotateRef attribute right 
without manual intervention. Logos supports nested levels of reference, eg. 
book-level, chapter-level, verse-level, and verse ranges (that can span mutiple 
chapters). As far as I can tell, osis2mod gets terribly confused with nested 
ranges.

Generally speaking, black box converters are pretty much a lost cause. I have 
used a .conf file approach where variable stuff can be configured, for example 
how to map class and style attributes to the limited rendering capabilities of 
Sword. And I have separate scripts for genbooks, bibles, commentaries, and 
dictionaries/lexicons.

John

> Any time your list of exceptional conditions contains more text than the
> conversion itself, you have to start questioning whether 'automation' is
> even possible.
>
> I spent time developing similar scripts (something like wordxml ->
> USFM) for single use cases.  Doing the conversion was usually about
> 10 steps, but  then dealing with the exceptions (both before and after
> the conversion) took 100+ steps. Without automation, the 10 steps
> was good enough. but not keeping a human involved, all the human
> decisions had to be mapped.
>
>
>
>
> On Thu, Nov 15, 2018 at 10:39 AM Greg Hellings <[email protected]> 
> wrote:
>
>
> On Thu, Nov 15, 2018 at 10:35 AM Dudeck, John <[email protected]> wrote:
> I am developing a set of Perl scripts that convert Logos XML to OSIS for
> commentaries. It has proven to be a non-trivial exercise.
>
> I undertook a similar exercise over a decade ago as part of an internship. It 
> was a beast of
> a task and one that was never fully completed.
>
> --Greg
> _______________________________________________
> sword-devel mailing list: [email protected]
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

John Dudeck
Programmer at Editions Cle                             Lyon, France
[email protected]                            [email protected]
--
"Hmm, doubtful. The source code generally wasn't there when I needed it."
 -- Larry Wall when asked if he learned Perl from the perl source

_______________________________________________
sword-devel mailing list: [email protected]
http://www.crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page

Reply via email to