ubsicap / usx

Unified Scripture XML
32 stars 6 forks source link

Support for peripheral content (non-scripture project text) #21

Closed klassenjm closed 6 years ago

klassenjm commented 8 years ago

Updated Proposal

Jan 30, 2018

This proposal is being updated to recommend that content for unique peripheral divisions be stored in separate USX files - one content division per file.

The above structure will allow a consumer to identify and publish individual peripheral content sections easily, as well as making it possible to accurately (re)construct corresponding USFM files for the same content, if required.


Details

Prior to this 3.0 proposal, USX did not include a specification for handling peripheral content divisions. The content of peripheral divisions is encoded with existing USX elements. The container for peripheral content divisions is what is described in this proposal.

This is also a companion to USFM 3.0 proposal "Syntax for peripheral (\periph) identifiers". See: ubsicap/usfm#28 for detail.

User Defined Peripheral Division Identifiers

A project text which includes peripheral content beyond the common peripheral identifiers (USX 3.0 #22) should add the prefix x- to a user defined periph@id value.

Examples

<?xml version="1.0" encoding="utf-8"?>
<usx version="3.0">
  <book code="FRT" style="id">Good News Translation Front Matter</book>
  <periph alt="Title Page" id="title">
    <para style="mt1">Holy Bible</para>
    <para style="mt3">with</para>
    <para style="mt2">Deuterocanonicals/Apocrypha</para>
  </periph>
</usx>
<?xml version="1.0" encoding="utf-8"?>
<usx version="3.0">
  <book code="FRT" style="id">Good News Translation Front Matter</book>
  <periph alt="Foreword" id="foreword">
    <para style="h">Foreword</para>
    <para style="mt1">Foreword</para>
    <para style="p">The <char style="bk">Good News
      Translation</char> of the Bible is a translation which 
      seeks to state clearly and accurately the meaning of the 
      original texts in words and forms that are widely accepted 
      by people who use English as a means of 
      communication.</para>
  </periph>
</usx>
<?xml version="1.0" encoding="utf-8"?>
<usx version="3.0">
  <book code="FRT" style="id">Good News Translation Front Matter</book>
  <periph alt="Table of Contents" id="contents">
    <para style="h">Contents</para>
    <para style="mt1">Contents</para>
    <para style="s">Old Testament</para>
    <table>
      <row style="tr">
        <cell style="th1" align="start">Name</cell>
        <cell style="th2" align="start">Page</cell>
        <cell style="th3" align="start">Name</cell>
        <cell style="th3" align="start">Page</cell>
      </row>
      <row style="tr">
        <cell style="th1" align="start">Genesis</cell>
        <cell style="th2" align="start">#</cell>
        <cell style="th3" align="start">Ecclesiastes</cell>
        <cell style="th3" align="start">#</cell>
      </row>
    ...
    </table>
    ...
  </periph>
</usx>

DEPRECATED Proposal

See: Common peripheral identifiers (USX 3.0 #22)