[sword-devel] usfm to osis converter...

Peter von Kaehne refdoc at gmx.net
Fri Jul 31 00:19:54 MST 2015

On Thu, 2015-07-30 at 14:06 -0400, Ryan wrote:
>  but perhaps someone else may find it useful

I have tested it right now very shortly on a couple of my more
complicated USFM texts

1) it is fast. Roughly as fast as usfm2osis.pl. Also it does not heat
my computer up, that is nice.
2) Various USFM texts I used validate after conversion.

The pitfalls of all scripts I have seen so far are around the
recognition of "end of construct" in USFM - end of verse, section etc.
which is not explicit.  This, combined with OSIS milestones has caused
a lot of grief over the years. 

As a result we usually had to rely on some bad stuff with massive
regexes to reorder tags. 

What are you doing in this matter?

Wrt xrefs- I have always had a separate script using the Sword library
to parse the xrefs and insert these into the OSIS. I do not think you
can do much about this as every language will have different xref
conventions - both names of books and, crucially, often different use
of punctuation as separators. 


More information about the sword-devel mailing list