adyeths / u2o

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

Relaxed conformance option? #106

Closed DavidHaslam closed 4 years ago

DavidHaslam commented 4 years ago

I was recently notified that JohnAustinDev had updated usfm2osis.pl in refdoc/Module-tools to permit using \xt_...\xt* anywhere in the text, not just within cross reference notes.

Might this also be something to consider for u2o.py ?

Are there any further aspects under Relaxed conformance that might be of interest?

DavidHaslam commented 4 years ago

Sorry, path was misremembered.

[Scripts and tools for SWORD module conversions] (https://github.com/refdoc/Module-tools)

adyeths commented 4 years ago

Unless I'm mistaken, \xt ...\xt* isn't supposed to be used outside of cross reference notes in USFM.

DavidHaslam commented 4 years ago

I have it on good authority from Jeff Klassen at UBS ICAP that it may be used “almost anywhere”.

It’s conceivable that the documentation for USFM 3.x still lags behind what is permissible de facto in Paratext 9.

We should bear in mind that USFM evolves to meet needs that arise in new situations.

btw. My enquiry about USFM was in regard to how one might make verse numbers in “chapter summaries” act as links that would jump to the actual verse below when clicked.

cf. Many editions even of the KJV were printed with such italicised chapter summaries in smaller font size, centrally aligned in the column.

cmahte commented 4 years ago

See the first example after the word Attributes below the \xt heading.

https://ubsicap.github.io/usfm/notes_basic/xrefs.html

This is new behavior in USFM 3.

Also note that it has pipe | functionality added (new in USFM 3.0) This allows the link to be on words or numbers.

adyeths commented 4 years ago

Ah yes... I will see what I can do to address this particular situation.

adyeths commented 4 years ago

closing this issue because u2o already handles \xt tags outside of crossreferences.