<br><br>Sent from my HTC<br><br>----- Reply message -----<br>From: &quot;Chris Little&quot; &lt;chrislit@crosswire.org&gt;<br>To: &quot;SWORD Developers&#39; Collaboration Forum&quot; &lt;sword-devel@crosswire.org&gt;<br>Subject: [sword-devel] usfm2osis.py and crossreferences<br>Date: Sat, Oct 13, 2012 7:41 am<br><br><br>On 10/12/2012 10:53 PM, Peter von Kaehne wrote:<br>&gt; Currently usfm2osis.py does not produce complete cross references.<br>&gt;<br>&gt; a) It translates the in the \xo tag contained origin reference as a<br>&gt; &lt;reference type=&quot;annotateRef&gt;<br>&gt;<br>&gt; The probably better way in OSIS would be to tack the origin ref as an<br>&gt; osisRef argument into the surrounding note tag.<br>&gt;<br>&gt; Having said this, it is clear that many real life \xo references<br>&gt; would require some level of parsing before they could be made a<br>&gt; proper osisRef. This in turn would require usfm2osis.py to make use<br>&gt; of the sword bindings etc.<br>&gt;<br>&gt; b) And then of course is the actual xref which requires even more<br>&gt; parsing prior final composition<br>&gt;<br>&gt; Chris - what is your plan re this? Do you want to include sword into<br>&gt; the script and let it deal with the parsing? Or do you want me to<br>&gt; rework xreffix.pl to deal with the different output?<br><br>There&#39;s a roadmap in usfm2osis.py that includes reference parsing as a post-1.0 feature. At the present, usfm2osis.py is just a USFM to OSIS converter. Parsing references from USFM docs is outside that scope since references in USFM docs are completely unstandardized and the few facilities made available to allow reference parsing (\toc3) are infrequently used.<br><br>I&#39;d like to enable reference parsing (though I don&#39;t necessarily believe it can be done reliably), but I see it as a future feature, along with things like generating Sword modules directly--without osis2mod.<br><br>--Chris<br><br>_______________________________________________<br>sword-devel mailing list: sword-devel@crosswire.org<br>http://www.crosswire.org/mailman/listinfo/sword-devel<br>Instructions to unsubscribe/change your settings at above page<br>