ubsicap / usx

Unified Scripture XML
30 stars 6 forks source link

Support for explicit table cell spanning (add cell@colspan) #10

Closed klassenjm closed 6 years ago

klassenjm commented 8 years ago

Proposal

This is the USX companion to USFM 3.0 proposal "Support for explicit table cell spanning". See: ubsicap/usfm#12 for detail.

Details

To have confidence that markup expresses the intended table layout accurately, we require an explicit syntax to for column spanning.

Example

Numbers 2:18-24 (final row of table)

<row style="tr">
  <cell style="th1" align="start">Tribe</cell>
  <cell style="th2" align="start">Leader</cell>
  <cell style="th3" align="start">Number</cell>
</row>
<row style="tr">
    <cell style="tc1" align="start">Ephraim</cell>
    <cell style="tc2" align="start">Elishama son of Ammihud</cell>
    <cell style="tc3" align="end">40,500</cell>
<row>
<row style="tr">
    <cell style="tc1" align="start">Manasseh</cell>
    <cell style="tc2" align="start">Gamaliel son of Pedahzur</cell>
    <cell style="tc3" align="end">32,200</cell>
<row>
<row style="tr">
    <cell style="tc1" align="start">Benjamin</cell>
    <cell style="tc2" align="start">Abidan son of Gideoni</cell>
    <cell style="tc3" align="end">35,400</cell>
<row>
<row style="tr">
  <cell style="tc1" colspan="2" align="end">Total: </cell>
  <cell style="tcr3" align="end">108,100</cell>
</row>