Tables

Alternate structures for tables in USFM and USX

In USFM, a table is composed of a series of paragraphs marked with \tr.

The content for cells is marked with character types for tables.

USX represents most USFM paragraph and character types with corresponding <para> and <char> tags. For tables, the structures are different. In USX the sequence of \tr rows is composed within a <table>...</table> container. In USFM >= 3.2 this table container can also be expressed in USFM syntax using a table start and end milestone pair.

  • USFM

  • USX

  • USJ

Example 1. USFM table structure
\table-s\*
\tr \tc1 row 1, col 1 content \tc2 row 1, col 2 content
\tr \tc1 row 2, col 1 content \tc2 row 2, col 2 content
\table-e\*
Example 2. USX table structure
<table>
   <row>
      <cell style="[char@style]" align="start">row 1, col 1 content</cell>
      <cell style="[char@style]" align="start">row 1, col 2 content</cell>
   </row>
   <row>
      <cell style="[char@style]" align="start">row 2, col 1 content</cell>
      <cell style="[char@style]" align="start">row 2, col 2 content</cell>
   </row>
</table>
Example 3. USX table structure

Diagrams

  • USFM

  • USX

table rail
table usx