usfm-bible / tcdocs

Technical Committee Documents
Other
9 stars 9 forks source link

Can USX and USFM be improved to handle contexts? #11

Closed KentSpiel closed 6 months ago

KentSpiel commented 2 years ago

One of my biggest bugaboos is the need to flatten text before publishing. The only way to properly style a text in HTML or IDML is to create all of the styes that result from nesting. For example we commonly have Hebrew transliterated words in the Psalm superscriptions: \d xxx \tl yyy\tl*` In publication yyy needs to be regular text, not italic. The need to transition between hierarchical/nested and flattened expressions of the USX should not be overlooked since the final goal of the format is not archiving but publication.

A second concern is that context matters in formatting. For example: we always add extra vertical space when going from prose to poetry and then back again.

This could convert to USX with a context specific attribute.

The desired result is improved formatting both in the PT editing environment and in print and electronic publications.

mhosken commented 6 months ago

This is out of scope for the standard. See how PTXprint handles this (at least hierarchically, rather than sequentially)