Open DavidHaslam opened 6 years ago
While it might be possible, orefs is not designed for this purpose. It's intended as a companion to u2o. Process a bible with u2o, then add the osisRef's attributes to that bible using orefs. I suspect it would become very complicated trying to make orefs work for texts other than the bible. And I'm not sure I'm up to that particular task, at least not right now.
@domcorbex write a script to do this kind of job: Ref2osis.awk
Thinking horizontally...
In theory, it should be feasible to adapt
orefs.py
to process an OSIS file for a work other than a Bible.e.g. An OSIS commentary, or OSIS general book, or even a dictionary made with OSIS.
For this to be practicable, the osisRef values may need to include as a prefix the osisWork of the Bible being referred to.
OSIS 2.1.1 provides various mechanisms for a default prefix. See page 21.