3.4 Tables

<..latex tables..>
 \Configure{tabular}
    {<.start count rows,cols.><.set row count.>%
     \HCode{<table\Hnewline <.insert row count.> >}}
    {\HCode{</table>}%
      <.end count rows,cols.>}
    {<.modify rows count.>\HCode{<row role="data">}}
    {\HCode{</row>}}
    {<.modify cols count.>%
     \HCode{<cell\Hnewline cols="\HMultispan" rows="1" role="data">}}
    {\HCode{</cell>}}
 \HAssign\tabularN=0
-_-_-

<..start count rows,cols..>
 \gHAdvance\tabularN by 1  \PushStack\tabular:N\tabularN
 \let\prevR:max=\R:max  \let\prevC:max=\C:max  \gHAssign\C:max=0
-_-_-

<..end count rows,cols..>
 \PopStack\tabular:N\i:var <.toks Clr.>%
 \Tag{rc-\i:var}{rend="<.get Clr.>" rows="\R:max" cols="\C:max"}
 \global\let\R:max=\prevR:max  \global\let\C:max=\prevC:max
-_-_-

<..toks Clr..>
 \expandafter\tmp:toks\expandafter{\Clr}%
-_-_-

<..get Clr..>
 \the\tmp:toks
-_-_-

<..modify cols count..>
 \HAssign\i:var=\HCol \HAdvance\i:var by \HMultispan
 \HAdvance\i:var by -1  \ifnum \C:max<\i:var \gHAssign\C:max=\i:var \fi
-_-_-

<..modify rows count..>
 \gHAssign\R:max=\HRow
-_-_-

<..set row count..>
 \expandafter\ifx \csname  cw:rc-\tabularN\endcsname \relax
         \tmp:toks{ }%
 \else
    \expandafter\expandafter\expandafter\tmp:toks
       \expandafter\expandafter\expandafter{\csname
                                               cw:rc-\tabularN\endcsname}%
 \fi
-_-_-

<..insert row count..>
 \the\tmp:toks
-_-_-

<..latex tables..>+
 \Configure{hline}{}
 \Configure{//[]}{}
-_-_-

<..obey lines..>
 \Configure{verb}{}{}
 \Configure{obeylines}
    {\ifvmode \EndP
        \HCode{<div rend="obeylines-v">}%
        \gdef\ob:ln{div}%
     \else \HCode{<emph rend="obeylines-h">}%
        \gdef\ob:ln{emph}%
     \fi
    }
    {\ht:special{t4ht=</\ob:ln>}\ShowPar} {\hbox{\HCode{<br />}}}
-_-_-

<..ams art,proc,book..>+
 \ifx \deferred@thm@head\:UnDef\else
   \Configure{newtheorem}
      {\par\HCode{<title rend="newtheorem-ams">}\IgnorePar\par}
      {\HCode{</title>}}
      {}
 \fi
-_-_-