1.10.3 Description of Columns

The variable \NewGroup is introduced to record the index of entry in current group.

<..configure ooffice-mml latex..>+
 <.visit start of pattern.>
 \Configure{VBorder}
    {\HAssign\NewGroup = 0
     <.increase table num.>%
     <.visit start of pattern.>%
    }
    {<.visit a v-bar entry.>\HAssign\NewGroup = 0 }
    {\Advance:\NewGroup by 1
     <.visit a non-@ entry.>%
    }
    {<.visit a @ entry.>}
-_-_-

<..configure ooffice-mml array..>
 <.visit start of pattern.>
 \Configure{VBorder}
    {\HAssign\NewGroup = 0
     <.increase table num.>%
     <.visit start of pattern.>%
    }
    {<.visit a v-bar entry.>\HAssign\NewGroup = 0 }
    {\Advance:\NewGroup by 1
     <.visit a non-@ entry.>%
    }
    {<.visit a @ entry.>}
-_-_-

<..configure ooffice-mml latexNO..>
 \let\VBorder=\empty   \let\AllColMargins=\empty
 \Configure{VBorder}
    {\let\VBorder=\empty \let\AllColMargins=\empty
     \global\let\GROUPS=\empty \HAssign\NewGroup = 0
     \gHAdvance\Next:TableNo by 1 \global\let\TableNo=\Next:TableNo
     <.init vborder??.>%
    }
    {<.vborder solid??.>%
     \xdef\VBorder{\VBorder\ifnum \NewGroup> 0 </colgroup>\fi}
     \HAssign\NewGroup = 0  \gdef\GROUPS{rules="groups"}}
    {\Advance:\NewGroup by 1
     <.record cur vborder??.>%
     \ifnum \NewGroup=1 \xdef\VBorder{\VBorder<colgroup
         id="TBL-\TableNo-\ar:cnt g">}\fi
     \xdef\VBorder{\VBorder<col\Hnewline id="TBL-\TableNo
        -\ar:cnt"\xml:empty>}\xdef\AllColMargins{\AllColMargins1}}
    {\xdef\AllColMargins{\AllColMargins 0}}
-_-_-

<..insert ClrNO..>
 \expandafter\tmp:toks\expandafter{\Clr}%
 \HCode{<!--\the\tmp:toks-->}%
-_-_-

The above doesn’t work, for instance on ‘|r||r@{--}l|p{1.25in}|’ due to thge extra --..

<..configuring @()..>
 \Configure{@{}}{}
-_-_-

<..row attributes..>
 \halignTR
-_-_-

<..latex tabular..>+
 \Configure{halignTR}
    {}
 \Configure{halignTBL}
 %   {t}{\HCode{valign-top}}
 %   {b}{\HCode{valign-baseline}}
 %   {c}{\HCode{valign-middle}}
     {}
-_-_-

<..start par at cell..>
 <.extract cell attributes.>\if !\Aligh:Wrap!\let\not:Pcell=\:gobble
 \else \let\not:Pcell\empty \fi
 \not:Pcell{\HCode{<text:p
     \Hnewline  text:style-name="}<.style at cell.>\HCode{"
      >}}%
 <.start array par box.>%
-_-_-

<..style at cell..>
 \cell:sty
-_-_-

<..latex tabular..>+
 \def\cell:sty{\NoFonts
     <.extract cell margins info.>%
     <.extract cell h-border info.>%
     <.extract cell attributes.>%
     <.cell style name.>%
     <.cell style properties.>%
   \EndNoFonts}
-_-_-

<..cell style name..>
 sty-\LR:VBars\Left:Marg\Right:Marg\Aligh:Wrap
-_-_-

<..end par at cell..>
 \csname not:Pcell\endcsname{\HCode{</text:p>}}%
-_-_-

<..multispan cell..>
 \ifnum \HMultispan>1
    \HCode{table:number-columns-spanned="\HMultispan"\Hnewline}%
    \bgroup
       \def\:temp{\ifnum \HMultispan>1
           \HAdvance\HMultispan by -1
           \HCode{<table:covered-table-cell/>}%
           \expandafter\:temp
         \fi}%
    \egroup
 \fi
-_-_-