[sword-devel] usfm2osis.py and crossreferences

Peter von Kaehne refdoc at gmx.net
Fri Oct 12 22:53:16 MST 2012

Currently usfm2osis.py does not produce complete cross references.

a) It translates the in the \xo tag contained origin reference as a <reference type="annotateRef>

The probably better way in OSIS would be to tack the origin ref as an osisRef argument into the surrounding note tag.

Having said this, it is clear that many real life \xo references would require some level of parsing before they could be made a proper osisRef.
This in turn would require usfm2osis.py to make use of the sword bindings etc.

b) And then of course is the actual xref which requires even more parsing prior final composition

Chris - what is your plan re this? Do you want to include sword into the script and let it deal with the parsing? Or do you want me to rework xreffix.pl to deal with the different output?


More information about the sword-devel mailing list