13.10 mdwtab

<..mdwtab.4ht..>
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % mdwtab.4ht                            2014-07-12-22:36 %
 % Copyright (C) 2007--2009       Eitan M. Gurari         %
 <.TeX4ht copyright.>
 <.mdwtab config.>
 \Hinput{mdwtab}
 \endinput
 -_-_-

<..mdwtab config..>
 \def\:tempc[#1]#2{%
   <.init conds for @mkpream.>%
   \edef\tab@restorehlstate{%
     \global\tab@endheight\the\tab@endheight%
     \gdef\noexpand\tab@hlstate{\tab@hlstate}%
   }%
   \def\tab@hlstate{n}%
   \colset{tabular}%
   \tab@initread
   \let\@sharp\relax                                             % <--------
   \def\tab@midtext{\tab@setcr\ignorespaces\@sharp\@maybe@unskip}% <---------
   \def\tab@multicol{\@arstrut\tab@startrow}%
   \tab@preamble{\tab@multicol\tabskip\z@skip}%
   \tab@readpreamble{#2}%
   \tab@leftskip\z@skip%
   \tab@rightskip\z@skip%
   \tab@setposn{#1}%
 %  \ifdim\tab@width=\z@%
 %    \def\tab@halign{}%
 %  \else%
 %    \def\tab@halign{to\tab@width}%
 %  \fi%
   \lineskip\z@\baselineskip\z@%
 %%%%%%%%%%%%%%%%%%%%%%%%%%
 \SaveMkHalignConfig
 \Configure{MkHalign}
    {\@array:a}%
    {\@array:b\ProperTrTrue}%
    {\a:putHBorder\InitHBorder
     <.cond eliminate pre cline tr.>%
     \ifProperTr{\@array:c}}%
    {\ifProperTr{\@array:d}%
     <.end cond eliminate pre cline tr.>%
     \a:putHBorder\InitHBorder}%
    {\ifProperTr{\@array:e}\RecallMkHalignConfig   %\recall:ar
    }%
    {\ifProperTr{\@array:f}}%
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   \m@th%
   \def\tabularnewline{\tab@arraycr\tab@penalty}%
   \tab@setcr%
   \let\par\@empty%
   \everycr{}\tabskip\tab@leftskip  \tab@left
   \edef\:temp{\noexpand\MkHalign \@sharp{\the\tab@preamble}}%
 % \hshow{:temp}%
   \:temp
 %  \halign\expandafter\bgroup%
 %    \the\tab@preamble\tabskip\tab@rightskip\cr%
 }
 \HLet\@array\:tempc
 -_-_-

<..mdwtab config..>+
 \def\:tempc#1{%
   \@ifundefined{\tab@colset!col.\string#1}{%
     \tab@err@undef{#1}\tab@mkpreamble%
   }{%
     \if c#1\add:ar   -\else
     \if l#1\add:ar   <\else
     \if r#1\add:ar   >\else
     \if p#1\add:ar   p\else
     \if b#1\add:ar   b\else
     \if m#1\add:ar   m\else
     \if |#1\b:VBorder\else
     \if @#1\d:VBorder \else
     \fi\fi\fi\fi\fi\fi\fi\fi
     \@nameuse{\tab@colset!col.\string#1}%
   }%
 }
 \HLet\tab@mkpreamble@iii\:tempc
 <.alignment utilities for VBorder.>%
 -_-_-

<..mdwtab config..>+
 \def\:tempc{\relax
    \ifx \HCol\:UnDef \else \ifnum\HCol=1 \a:endarray\fi \fi
    \crcr\ifx \EndPicture\:UnDef \EndMkHalign
    \else \egroup\fi
    \tab@right
    \tab@restorehlstate }
 \HLet\endarray\:tempc
 -_-_-

<..mdwtab config..>+
 \pend:def\tabular{<.set hooks of tabular.>}
 \def\endtabular{\endarray}
 -_-_-

<..mdwtab config..>+
 \expandafter\pend:defI\csname tabular*\endcsname{
    \expandafter\let\expandafter\@array:a\csname a:tabular*\endcsname
    \expandafter\let\expandafter\@array:b\csname b:tabular*\endcsname
    \expandafter\let\expandafter\@array:c\csname c:tabular*\endcsname
    \expandafter\let\expandafter\@array:d\csname d:tabular*\endcsname
    \expandafter\let\expandafter\@array:e\csname e:tabular*\endcsname
    \expandafter\let\expandafter\@array:f\csname f:tabular*\endcsname
 }
 \expandafter\def\csname endtabular*\endcsname{\endarray}
 \NewConfigure{tabular*}{6}
 -_-_-

<..mdwtab config..>+
 \pend:def\smarray{%
   \let\@array:a\a:smarray \let\@array:b\b:smarray
   \let\@array:c\c:smarray \let\@array:d\d:smarray
   \let\@array:e\e:smarray \let\@array:f\f:smarray
 }
 \def\endsmarray{\endarray}
 \NewConfigure{smarray}{6}
 -_-_-