ubsicap / usfm

Unified Standard Format Markers
36 stars 18 forks source link

Extended syntax for \pb to facilitate recording page numbers of pre-digital printed Bibles #53

Open DavidHaslam opened 6 years ago

DavidHaslam commented 6 years ago

By analogy with the extended syntax for word level and character level markers, I would like to suggest extending this to the page break marker \pb to facilitate recording page numbers of historic printed Bibles that are now being digitised for the first time.

This might be achieved by defining an attribute for the marker to hold the page number.

\pb|n="#"\pb*

where # would be the page number of the page immediately after the break.

ParaTExt would not need to use this for new publications.

Converting USFM to other digital formats would be able to take advantage of it.

e.g. When making e-Book editions (Kindle & other brands) of such a historic work.

OSIS converters should convert this to

<milestone type="pb" n="#" />

@klassenjm - please review - see email sent today.

ThomHehl commented 6 years ago

Just to be clear, the page number should be optional as it's only useful for historic works.

mhosken commented 2 years ago

\pb currently indicates a page break to output software (e.g. typesetting). I think this use would overload that function since it is not indicating that a page break is desired. Also \pb is not currently defined as a milestone. Changing it to be one would require the \* on the end, thus breaking many existing texts.

I therefore suggest that another marker be found for this kind of milestone and perhaps collect similar use case requirements together before deciding on a marker/milestone.