adyeths / u2o

USFM to OSIS bible format converter.
The Unlicense
19 stars 6 forks source link

Parentheses in parallel passage references \r_text #56

Closed DavidHaslam closed 5 years ago

DavidHaslam commented 6 years ago

Currently, u2o.py doesn't do anything with the parentheses usually found in a parallel passage reference.

Thus, taking the example in the USFM User Reference:

\r (Mark 1.1-8; Luke 3.1-18; John 1.19-28)

is converted to

<!-- r --><title type="parallel"><reference type="parallel">(Mark 1.1-8; Luke 3.1-18; John 1.19-28)</reference></title>

IMHO, it would make sense to move the parentheses to outside the reference element:

<!-- r --><title type="parallel">(<reference type="parallel">Mark 1.1-8; Luke 3.1-18; John 1.19-28</reference>)</title>

This would leave the content of the reference element more amenable to being processed by orefs.py.

adyeths commented 6 years ago

When I get some time I will fix orefs to handle these references that are surrounded by parenthesis.

adyeths commented 6 years ago

orefs should be able to handle references surrounded by parenthesis now. Test it and let me know if it works ok for you.

DavidHaslam commented 6 years ago

Thanks!

I've not yet used orefs.py. It may be some time before I get the hang of it.

LAfricain commented 5 years ago

I tested on Konvb (Future kikongo release), it use also parenthesis, it runs perfectly with it. This issue can be closed according me.