Tables

Alternate structures for tables in USFM and USX

In USFM, a table is composed by 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.

  • USFM

  • USX

Example 1. USFM table structure
\tr \tc1 {cell 1 content} \tc2 {cell 2 content}
\tr \tc1 {cell 3 content} \tc2 {cell 4 content}
Example 2. USX table structure
<table>
   <row>
      <cell style="[char@style]" align="start">{cell 1 content}</cell>
      <cell style="[char@style]" align="start">{cell 2 content}</cell>
   </row>
   <row>
      <cell style="[char@style]" align="start">{cell 3 content}</cell>
      <cell style="[char@style]" align="start">{cell 4 content}</cell>
   </row>
</table>

Diagrams

  • USFM

  • USX

table rail
table usx