TEIC / TEI

The Text Encoding Initiative Guidelines
https://www.tei-c.org
Other
279 stars 88 forks source link

No column- nor row-spanning examples? #1946

Open sydb opened 4 years ago

sydb commented 4 years ago

Unless I’ve missed something, there are no examples (at all) of the use of @cols or @rows on any element other than <table> in the entirety of the Guidelines. This seems problematic.

I used //*[@cols or @rows], and found 5 <table>s, each of which has both attrs, and each of which looks like it is probably an example (i.e., in teix: namespace, not tei:), but I did not check.

martindholmes commented 4 years ago

I suspect this is because their use on <row> and <cell> pretty much mirrors how @colspan and @rowspan work in HTML. Not an excuse for the absence of examples, of course, but possible a reason why no-one has ever struggled with it.

martinascholger commented 4 years ago

@sydb do you have an example that we can use?

sydb commented 4 years ago

OK. Here is the one we (the WWP) were discussing that had me notice the lack of examples. Thanks to Jacob Murel for bringing this table to my attention.

Here is an image of part of page 21 of The ladies diary: or, the woman's almanack, for the year of our lord 1710 which is a table describing the lunar eclipse of 1710-02-02.

Ladies_Diary_1710_p21_detail_small

Here is (what I think is) a reasonable encoding. But someone who understand table models better than I might want to have a careful look.

      <table rows="7" cols="5">
        <row role="label">
          <cell/>
          <cell role="label">Ho.</cell>
          <cell role="label">Min.</cell>
          <cell role="label">Sec.</cell>
          <cell/>
        </row>
        <row role="data">
          <cell role="data">
            <supplied>T</supplied>o the Inhabitants of the City of Coventry
            <lb/>the Beginning of this Eclipſe will be at
          </cell>
          <cell role="data">8</cell>
          <cell role="data">54</cell>
          <cell role="data">58</cell>
          <cell role="label" rows="4">p.m.</cell>
        </row>
        <row role="data">
          <cell role="data"><supplied>T</supplied>he true Oppoſition is at</cell>
          <cell role="data">10</cell>
          <cell role="data">16</cell>
          <cell role="data">37</cell>
        </row>
        <row role="data">
          <cell role="data"><supplied>T</supplied>he Middle or greateſt Obſcuration at</cell>
          <cell role="data">10</cell>
          <cell role="data">21</cell>
          <cell role="data">41</cell>
        </row>
        <row role="data">
          <cell role="data">The End of the Eclipſe at</cell>
          <cell role="data">11</cell>
          <cell role="data">43</cell>
          <cell role="data">24</cell>
        </row>
        <row role="data">
          <cell role="data"><supplied>Tot</supplied>al Duration will be</cell>
          <cell role="data">2</cell>
          <cell role="data">53</cell>
          <cell role="data">26</cell>
          <cell/>
        </row>
        <row role="data">
          <cell role="data"><supplied>Th</supplied>e Digits Eclipſed</cell>
          <cell role="data">9</cell>
          <cell role="data">56</cell>
          <cell role="data">43</cell>
          <cell role="data">South.</cell>
        </row>
      </table>

Note-to-self: Padfoot:/Users/syd/Documents/tei-work/Ladies_Diary_1710_p21_detail.xcf.

ebeshero commented 3 years ago

Council V2F agrees that @npcole should proceed with implementing this new example in the Guidelines.