|
In Haiola, I convert something as simple as: \x + Deuteronomy 8:3\x* to: <note type="crossReference" osisRef="Matt.4.7" osisID="Matt.4.7!note.1"><reference osisRef="Deut.6.16">Deuteronomy 6:16</reference></note> where the origin reference (Matthew 4:7 in this case) comes from the location of the note if not explicitly given with an \xo tag. That was based on my best reading of USFM and OSIS specs at the time. OSIS presents many way of doing things, all of which are valid OSIS. A good OSIS reader can handle them all. On 08/12/2015 11:31 AM, Peter von Kaehne wrote: USFM's describing of xrefs has become more complicated over the years and not everything USFM describes is easily translated into OSIS.This is a typical USFM xref: \x * \xo 1.3: \xt 2-Corinthians 4.6\x* The older usfm2osis.pl converter made out of this the following: <note type="crossReference" n="1">1.3: <reference>2-Corinthians 4.6</reference></note> Our new usfm2osis converters (usfm2osis.py which is the current "official" one and u2o.py which might well replace the former) create a different format: <note type="crossReference"><reference type="annotateRef">1.3: </reference><reference>2-Corinthians 4.6</reference></note> The first reference here is simply referring back to the "anchoring" verse (or wherever else the xref is attached to). The older way of doing xrefs used the anchor reference solely as plain text. The type "annotateRef" is IMO misused in the reference as annotateRef seems to mean a xref within biblical text, not really an "anchor" (see OSIS handbook p83) My personal preference would be to go back to the usfm2osis.pl way or alternatively introduce an x-anchor type for the first reference and use the annotateRef appropriately for the second reference. <note type="crossReference"><reference type="x-anchorRef">1.3: </reference><reference type="annotateRef">2-Corinthians 4.6</reference></note> The next step (xreffix.pl or else) could then create the necessary osisRef attributes <note type="crossReference"><reference type="x-anchorRef" osisRef="Gen.1.3">1.3: </reference><reference type="annotateRef" osisRef="2Cor.4.6">2-Corinthians 4.6</reference></note> As this goes beyond the small group of people involved in conversion I think some collective input would be good. Thanks! Peter _______________________________________________ sword-devel mailing list: [email protected] http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page --
Aloha,
|
_______________________________________________ sword-devel mailing list: [email protected] http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page
