Closed DavidHaslam closed 5 years ago
It's not as simple as you think. This is exactly the path I went down with orefs, which leads to a dead end. And it would be a duplication of efforts when I'm going to write a new script to try and process all reference tags.
Which cases would the method fail at?
A Bible that I just started working again on has no cross-references and no parallel passage headings.
However, it does have footnotes and these all have an origin reference in the USFM, e.g.
The resulting OSIS can be easily fixed in regard to adding osisRef attributes for these references where the current output has (e.g.)
<reference type="annotateRef">3:20 </reference>
.AFAICT, all that's needed is to insert
osisRef="$1"
where$1
is the value of the current verse sID attribute.The main point is that one does not need to parse the raw reference text at all. Unless the translator made a mistake, it should be equivalent to the current verse reference.
The example thus becomes:
Notes:
</reference>
.This may be suitable for including in
u2o.py
inasmuch asorefs.py
is now in limbo.It's not a huge leap forward, but it would be very nice to have.