%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% html-mml.4ht 2009-04-18-11:08 %
% Copyright (C) 1999--2009 Eitan M. Gurari %
% %
% This work may be distributed and/or modified under the %
% conditions of the LaTeX Project Public License, either %
% version 1.3 of this license or (at your option) any %
% later version. The latest version of this license is %
% in %
% http://www.latex-project.org/lppl.txt %
% and version 1.3 or later is part of all distributions %
% of LaTeX version 2003/12/01 or later. %
% %
% This work has the LPPL maintenance status "maintained".%
% %
% This Current Maintainer of this work %
% is Eitan M. Gurari. %
% %
% If you modify this program your changing its signature %
% with a directive of the following form will be %
% appreciated. %
% \message{signature} %
% %
% gurari@cse.ohio-state.edu %
% http://www.cse.ohio-state.edu/~gurari %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\immediate\write-1{version 2009-04-18-11:08}
\exit:ifnot{amsmath,%
array,%
color,%
frenchb,%
latex,%
plain,%
rlbabel,%
tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\:CheckOption{frames} \if:Option
\Configure{frames-altDOCTYPE}{\Configure{DOCTYPE}{\HCode
{\Hnewline
}}
}
\else
\def\:temp{xhtml}
\ifx \:DTD\:temp
\Configure{DOCTYPE}{\HCode
{\Hnewline
}}
\fi
\fi
\Configure{DviMath}
{\a:DviMathML \mathmltrue
\ifOption{mml-fonts}{\Configure{htf}{0}{+}{}{}%
}{\NoFonts}%
\IgnoreRule \HCode{}\Tg<\a:mathml math\Hnewline
\csname a:math-xmlns\endcsname \Hnewline \a:@math>\a:math
\edef\sv:ignore{\if:nopar
\noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
\IgnorePar}
{\Tg\a:mathml math>\EndIgnoreRule
\ifOption{mml-fonts}{\Configure{htf}{0}{+}{}{}%
}{\EndNoFonts}%
\mathmlfalse \b:DviMathML \sv:ignore
}
\Css{\a:mathml math { text-indent: 0em; }}
\Configure{halignTBL}
{t}{\ifmathml \HCode{ style="text-align:top;\border:lines
" }\fi}
{b}{\ifmathml \HCode{ style="text-align:baseline;\border:lines
" }\fi}
{c}{\ifmathml \HCode{ style="text-align:axis;\border:lines
" }\fi}
{}
\Configure{halignTD} {}{}
{<}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else
\HCode{ style="text-align:left; white-space:nowrap;"}\fi}
{-}{\ifmathml \HCode{ \a:mathml columnalign="center"}\else
\HCode{ style="text-align:center; white-space:nowrap;"}\fi}
{>}{\ifmathml \HCode{ \a:mathml columnalign="right"}\else
\HCode{ style="text-align:right; white-space:nowrap;"}\fi}
{^}{\ifmathml \HCode{ \a:mathml rowalign="top"}\else
\HCode{ style="vertical-align:top; white-space:nowrap;"}\fi}
{=}{\ifmathml \HCode{ \a:mathml rowalign="baseline"}\else
\HCode{ style="vertical-align:baseline; white-space:nowrap;"}\fi}
{|}{\ifmathml \HCode{ \a:mathml rowalign="center"}\else
\HCode{ style="vertical-align:middle; white-space:nowrap;"}\fi}
{_}{\ifmathml \HCode{ \a:mathml rowalign="bottom"}\else
\HCode{ style="vertical-align:bottom; white-space:nowrap;"}\fi}
{p}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else
\HCode{ style="text-align:left;"}\fi}
{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{latex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{equation}
{\IgnorePar\ifvmode\else \HCode{}\fi
\EndP
\HCode{
}\IgnorePar
\Configure{$$}
{\Configure{@math}{%\a:mathml
display="block"
%
\mml:class="equation"}\IgnorePar\EndP\DviMath}
{\EndDviMath\EndP}
{\DisplayMathtrue}%
}
{\ifvmode \IgnorePar\fi\EndP\HCode{ | }}
{\HCode{ |
}\ShowPar\par{\HCondtrue\noindent}%
}
\Css{.equation td{text-align:center; vertical-align:middle; }}
\Css{td.eq-no{ width:5\%; }}
\Css{table.equation { width:100\%; } }
\Configure{romannumeral}
{\ifmtext\else
\HCode{<\ifmathml \a:mathml mrow \else span \fi \mml:class="romannumeral">}\fi
}
{\ifmtext\else \HCode{\ifmathml \a:mathml mrow\else span\fi>}\fi }
\Configure{hspace}
{\ifmathml \ifmtext \else \Tg<\a:mathml mspace width="\the\tmp:dim"/>\fi\fi}
{}{\ifmathml \else \:nbsp\fi}
\:CheckOption{new-accents} \if:Option \else
\ifx \mathml:on\:UnDef
\Configure{accents}
{\ifmmode \expandafter\mathord\fi
{\leavevmode
\if !#1!\ht:special{t4ht@+\string&{35}x#2;}%
\else \expandafter \ifx\csname U#2#1\endcsname\relax
\ht:special{t4ht@+\string&{35}x#2;}%
\else
\ht:special{t4ht@+\string&{35}x\csname U#2#1\endcsname;}%
\fi \fi x%
%
\ht:special{t4ht@[}\if!#1!x\else#2\fi\ht:special{t4ht@]}}}
{\ifmmode
\Tg<\a:mathml mrow
\mml:class="accent#1">\mathord{#3}\Tg\a:mathml mrow>%
\else \HCode{}#3\HCode{}%
\fi
}%
\fi
\fi
\Configure{newline}
{\ifmtext \ht:special{t4ht@,}%
\HCode{\a:mathml mtext><\a:mathml
mtext \mml:class="newline">}%
\ht:special{t4ht@,&\#x00A0;}%
%
\else \Tg
\fi}
\Configure{mathml[]}
{\edef\MathPar{\ifvmode par-\fi}\IgnorePar\endgraf\EndP
\HCode{}}
{\HCode{
}\ShowPar\par{\HCondtrue\noindent}%
}
\Css{div.math-display, div.par-math-display{text-align:center;}}
\ConfigureEnv{array}
{\PushStack\Col:Marg\AllColMargins
\bgroup\Configure{$}{}{}{}}
{\egroup \PopStack\Col:Marg\AllColMargins}
{}{}
\def\:MM{\ifmathml \a:mathml m\fi}
\Configure{HBorder}
{<\:MM tr\Hnewline
\ifmathml \expandafter\mml:class\else class\fi="hline">}
{\ifmathml<\a:mathml mtd> \string&\#x0332; \a:mathml mtd>
\else
| \fi}
{\:MM tr>}
{<\:MM tr\Hnewline
\ifmathml \expandafter\mml:class\else class\fi ="cline">}
{<\:MM td>\:MM td>}
{\ifmathml<\a:mathml mtd> \string&\#x0332; \a:mathml mtd>
\else
| \fi}
{\:MM tr>}
{<\:MM tr\Hnewline
\ifmathml \expandafter\mml:class\else class\fi="vspace"
style="font-size:\HBorderspace">}
{<\:MM td\Hnewline>\ifmathml\else\string&\#x00A0;\fi
\:MM td>}
{\:MM tr>}
\Configure{halign}
{\EndP
\PushStack\Table:Stck\TableNo
\gHAdvance\Next:TableNo by 1
\global\let\TableNo=\Next:TableNo
\halignTB{halign}}
{\HCode{\:MT table>}\PopStack\Table:Stck\TableNo}
{\HCode{<\:MT tr \Hnewline}\halignTR
\HCode{ id="TBL-\TableNo-\HRow-">}}
{\HCode{\:MT tr>}}
{\SaveEndP
\HCode{1 colspan="\HMultispan"\fi}%
\halignTD \HCode{\Hnewline
id="TBL-\TableNo-\HRow-\HCol">}\ShowPar\par}
{\ifvmode \IgnorePar \fi \EndP
\HCode{\:MT td>}\RecallEndP
}
\Css{mtr.hline mtd{
border-bottom:black solid 1px;
padding-top:2px;
padding-bottom:0em;
}}
\Css{mtr.hline mtd mo{
display:none
}}
\:CheckOption{fonts} \if:Option
\Configure{texttt}
{\ifmathml \Configure{@mtext}{\mml:class="texttt"
mathvariant="monospace" }%
\else \HCode{}\fi}
{\ifmathml\else \HCode{}\fi}
\Configure{textit}
{\ifmathml \Configure{@mtext}{\mml:class="textit"
mathvariant="italic" }%
\else \HCode{}\fi}
{\ifmathml\else \HCode{}\fi}
\Configure{textrm}
{\ifmathml \Configure{@mtext}{ \mml:class="textrm"
mathvariant="normal" }%
\else \HCode{}\fi}
{\ifmathml\else \HCode{}\fi}
\Configure{textup}
{\ifmathml \Configure{@mtext}{ \mml:class="textup"
mathvariant="normal" }%
\else \HCode{}\fi}
{\ifmathml\else \HCode{}\fi}
\Configure{textsl}
{\ifmathml \Configure{@mtext}{ \mml:class="textst"
mathvariant="italic" }%
\else \HCode{}\fi}
{\ifmathml\else \HCode{}\fi}
\Configure{textsf}
{\ifmathml \Configure{@mtext}{ \mml:class="textsf"
mathvariant="sans-serif" }%
\else \HCode{}\fi}
{\ifmathml\else \HCode{}\fi}
\Configure{textbf}
{\ifmathml \Configure{@mtext}{ \mml:class="textbf"
mathvariant="bold" }%
\else \HCode{}\fi}
{\ifmathml\else \HCode{}\fi}
\Configure{textsc}
{\ifmathml \Configure{@mtext}{ \mml:class="textsc"
mathvariant="normal" }%
\else \HCode{}\fi}
{\ifmathml\else \HCode{}\fi}
\Configure{emph}
{\ifmathml \Configure{@mtext}{ \mml:class="emph"
mathvariant="italic" }%
\else \HCode{}\fi}
{\ifmathml\else \HCode{}\fi}
\fi
\Css{math .texttt { font-family: monospace; }}
\Css{math .textit { font-style: italic; }}
\Css{math .textsl { font-style: oblique; }}
\Css{math .textsf { font-family: sans-serif; }}
\Css{math .textbf { font-weight: bold; }}
\Configure{multicolumn}
{\let\sv:VBorder\VBorder
\let\VBorder\empty
\Configure{VBorder}{}{}{}{}%
}
{\let\VBorder\sv:VBorder}
{\ifmmode \HCode{<\a:mathml mrow\Hnewline \mml:class="multicolumn}%
{\Configure{halignTD} {}{}
{<}{\HCode{-left}}
{-}{\HCode{-center}}
{>}{\HCode{-right}}
{p}{\HCode{-left}}
{}%
\HColAlign}\HCode{">}\else
\ifvmode\IgnorePar\fi
\HCode{ }\fi }
{\ifmmode \HCode{\a:mathml mrow>}\else
\ifvmode\IgnorePar\fi \EndP\HCode{ }\fi }
\def\gob:sp#1{#1}
\Configure{overline}
{\bgroup\ifmathml \HCode{<\a:mathml mover accent="false"\Hnewline
\mml:class="mml-overline"><\a:mathml mrow>}%
\else
\HCode{}\fi}
{\ifmathml \HCode{\a:mathml mrow><\a:mathml mo\Hnewline
accent="true">&\#x00AF;\a:mathml mo>%
\a:mathml mover>}%
\else \HCode{}\fi\egroup}
\Configure{underline}
{\bgroup
\ifmathml \HCode{<\a:mathml munder \a:mathml accentunder="false"\Hnewline
\mml:class="mml-underline"><\a:mathml mrow>}%
%
\else \expandafter\everymath
\expandafter{\expandafter\everymath
\expandafter{\the\everymath}}%
\let\o::@underline:\o:@@underline:
\def\o:@@underline:{\let\o:@@underline:\o::@underline:}%
\HCode{}\fi}
{\ifmathml \HCode{\a:mathml mrow><\a:mathml mo\Hnewline
accent="true">&\#x0332;\a:mathml mo>\a:mathml munder>}%
\else \HCode{}\fi \egroup}
\Configure{footnote-mark}
{\ifmathml \ifmtext \else
\HCode{<\a:mathml mrow \mml:class="footnote-mark">}\fi
\else \HCode{}\fi }
\Configure{thank-mark}
{\HCode{<\ifmathml \a:mathml mrow \expandafter\mml:class\else span class\fi
="thank-mark">}}
{\HCode{\ifmathml \a:mathml mrow\else span\fi>}}
\:CheckOption{fn-in}\if:Option \else
\expandafter\let\csname A:footnote-text\expandafter\endcsname
\csname a:footnote-text\endcsname
\expandafter\let\csname B:footnote-text\expandafter\endcsname
\csname b:footnote-text\endcsname
\NewConfigure{footnote-text}[2]{%
\expandafter\def\csname a:footnote-text\endcsname{%
#1%
\ifmathml
\HCode{<\a:mathml math\Hnewline
\csname a:math-xmlns\endcsname \Hnewline \a:@math>%
\ifmtext <\a:mathml mtext>\fi}
\fi
\ifmathml \fi
}%
\expandafter\def\csname b:footnote-text\endcsname{%
\ifmathml
\HCode{\ifmtext\a:mathml mtext>\fi \a:mathml math>}%
\fi
#2%
}%
}
\Configure{footnote-text}
{\csname A:footnote-text\endcsname}
{\csname B:footnote-text\endcsname}
\fi
\let\A:footnotetext=\a:footnotetext
\let\B:footnotetext=\b:footnotetext
\let\C:footnotetext=\c:footnotetext
\NewConfigure{footnotetext}[3]{%
\def\a:footnotetext{%
\ifmathml \ifmtext \ht:special{t4ht@,}%
\fi\fi
#1%
\ifmathml \ifmtext \ht:special{t4ht@,}%
\fi\fi
}%
\def\b:footnotetext{%
\ifmathml \ifmtext \ht:special{t4ht@,}%
\fi\fi
#2%
\ifmathml \ifmtext \ht:special{t4ht@,}%
\fi\fi
}%
\def\c:footnotetext{%
\ifmathml \ifmtext \ht:special{t4ht@,}%
\fi\fi
#3%
\ifmathml \ifmtext \ht:special{t4ht@,&\#x00A0;}%
\fi\fi
}%
}
\Configure{footnotetext}
{\A:footnotetext}
{\B:footnotetext}
{\C:footnotetext}
\Configure{footnotebody}
{\tmp:toks=}
{\ifmathml \ifmmode $\mbox{$\the\tmp:toks$}$
\else $\mbox{\the\tmp:toks}$\fi
\else \the\tmp:toks\fi}
\:CheckOption{mouseover} \if:Option
\pend:def\js:on{\ifmathml \ifmtext \ht:special{t4ht@,}%
\fi\fi}
\append:def\js:on{\ifmathml \ifmtext \ht:special{t4ht@,&\#x00A0;}%
\fi\fi}
\fi
\def\border:lines{%
\ifnum \borderlines>0
\ifnum \borderlines>1 border-right:solid 1px black;\fi
\ifodd \borderlines border-left:solid 1px black;\fi
\fi
}
\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
\HAssign\borderlines = 0
\global\let\columnlines=\relax
%
}
{\ifx \columnlines\relax \gHAssign\borderlines = 1
\else \gHAdvance\borderlines by 2 \fi
%
\xdef\VBorder{\VBorder\ifnum \NewGroup> 0 \fi}
\HAssign\NewGroup = 0 \gdef\GROUPS{rules="groups"}}
{\Advance:\NewGroup by 1
\ifnum \borderlines>1 \gHAdvance\borderlines by -2 \fi
\ifx \columnlines\relax
\global\let\columnlines\empty
\else
\ifnum \NewGroup=1
\xdef\columnlines{\columnlines\ifx\columnlines\empty
\else \space\fi solid}%
\else
\xdef\columnlines{\columnlines\ifx\columnlines\empty
\else \space\fi none}%
\fi
\fi
%
\ifnum \NewGroup=1 \xdef\VBorder{\VBorder}\fi
\xdef\VBorder{\VBorder}\xdef\AllColMargins{\AllColMargins1}}
{\xdef\AllColMargins{\AllColMargins 0}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifx \mathdisplay@@pop\:UnDef
\ifx \emdf@La\:UnDef
\Configure{equation}
{\ifvmode \IgnorePar\fi \EndP
\HCode{}%
\Configure{$$}{}{}{}%
\Configure{gather}
{\Configure{$$}
{\Configure{@math}{\mml:class="equation"}\IgnorePar\EndP\DviMath}
{\EndDviMath\EndP}%
{}%
\IgnorePar
}{}{}{}{}{}
%
\IgnorePar
}
{\ifvmode \IgnorePar\fi\EndP \HCode{ | }}
{\ifvmode \IgnorePar\fi\EndP \HCode{ | }%
\IgnoreIndent\par}
\Configure{equation*}
{\ifvmode \IgnorePar\fi \EndP
\HCode{}%
\Configure{$$}{}{}{}%
\Configure{gather}
{\Configure{$$}
{\Configure{@math}{\mml:class="equation"}\IgnorePar\EndP\DviMath}
{\EndDviMath\EndP}%
{}%
\IgnorePar
}{}{}{}{}{}
%
\IgnorePar
}
{\ifvmode \IgnorePar\fi\EndP \HCode{ | }%
\IgnoreIndent\par}
\else
\Configure{equation}
{\ifvmode \IgnorePar\fi \EndP
\HCode{}%
\Configure{gather}
{\HCode{<\a:mathml mtable\Hnewline
\mml:class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar
\Configure{$$}
{\Configure{@math}{%\a:mathml
display="block"
%
\mml:class="equation"}\IgnorePar\EndP\DviMath}
{\EndDviMath\EndP}
{\DisplayMathtrue}%
}
{\HCode{\a:mathml mtd>\a:mathml mtr>\a:mathml mtable>}}
{}
{}
{\ifnum\HCol=2 \IgnorePar
\HCode{\a:mathml mtd><\a:mathml mtd>}\fi }
{}
%
%
\IgnorePar
}
{\ifvmode \IgnorePar\fi\EndP
\HCode{ | }%
}
{\ifvmode \IgnorePar\fi\EndP
\HCode{ | }%
\IgnoreIndent\par}
\Configure{equation*}
{\ifvmode \IgnorePar\fi \EndP
\HCode{}%
\Configure{gather}
{\HCode{<\a:mathml mtable\Hnewline
\mml:class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar
\Configure{$$}
{\Configure{@math}{%\a:mathml
display="block"
%
\mml:class="equation"}\IgnorePar\EndP\DviMath}
{\EndDviMath\EndP}
{\DisplayMathtrue}%
}
{\HCode{\a:mathml mtd>\a:mathml mtr>\a:mathml mtable>}}
{}
{}
{\ifnum\HCol=2 \IgnorePar
\HCode{\a:mathml mtd><\a:mathml mtd>}\fi }
{}
%
%
\IgnorePar
}
{\ifvmode \IgnorePar\fi\EndP
\HCode{ | }%
\IgnoreIndent\par}
\fi
\else
\Configure{equation}
{\ifvmode \IgnorePar\fi\EndP
\HCode{}%
\Configure{gather}
{\HCode{<\a:mathml mtable\Hnewline
\mml:class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar
\Configure{$$}
{\Configure{@math}{%\a:mathml
display="block"
%
\mml:class="equation"}\IgnorePar\EndP\DviMath}
{\EndDviMath\EndP}
{\DisplayMathtrue}%
}
{\HCode{\a:mathml mtd>\a:mathml mtr>\a:mathml mtable>}}
{}
{}
{\ifnum\HCol=2 \IgnorePar
\HCode{\a:mathml mtd><\a:mathml mtd>}\fi }
{}
%
\Configure{$$}
{\Configure{@math}{%\a:mathml
display="block"
%
\mml:class="equation"}\IgnorePar\EndP\DviMath}
{\EndDviMath\EndP}
{\DisplayMathtrue}%
%
}
{\ifvmode \IgnorePar\fi\EndP
\HCode{ | }%
}
{\ifvmode \IgnorePar\fi\EndP \HCode{ | }%
\ShowPar\IgnoreIndent\par}
\Configure{equation*}
{\ifvmode \IgnorePar\fi\EndP
\HCode{}%
\Configure{gather}
{\HCode{<\a:mathml mtable\Hnewline
\mml:class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar
\Configure{$$}
{\Configure{@math}{%\a:mathml
display="block"
%
\mml:class="equation"}\IgnorePar\EndP\DviMath}
{\EndDviMath\EndP}
{\DisplayMathtrue}%
}
{\HCode{\a:mathml mtd>\a:mathml mtr>\a:mathml mtable>}}
{}
{}
{\ifnum\HCol=2 \IgnorePar
\HCode{\a:mathml mtd><\a:mathml mtd>}\fi }
{}
%
\Configure{$$}
{\Configure{@math}{%\a:mathml
display="block"
%
\mml:class="equation"}\IgnorePar\EndP\DviMath}
{\EndDviMath\EndP}
{\DisplayMathtrue}%
%
}
{\ifvmode \IgnorePar\fi\EndP \HCode{ | }%
\ShowPar\IgnoreIndent\par}
\fi
\Configure{@begin}
{split}
{\let\tagform@=\:gobble }
\Css{mtd.align-odd{margin-left:2em; text-align:right;}}
\Css{mtd.align-even{margin-right:2em; text-align:left;}}
\Configure{boxed}
{\ifmathml \Tg<\a:mathml mrow \mml:class="boxed">%
\else \HCode{}\IgnorePar\fi}
{\ifmathml \Tg\a:mathml mrow>%
\else \HCode{}\fi}
\Css{.boxed{border: 1px solid black; padding-left:2px;
padding-right:2px;}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{plain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\:CheckOption{new-accents} \if:Option \else
\ifx \mathml:on\:UnDef
\Configure{accents}
{\ifmmode \expandafter\mathord\fi
{\leavevmode
\if !#1!\ht:special{t4ht@+\string&{35}x#2;}%
\else \expandafter \ifx\csname U#2#1\endcsname\relax
\ht:special{t4ht@+\string&{35}x#2;}%
\else
\ht:special{t4ht@+\string&{35}x\csname U#2#1\endcsname;}%
\fi \fi x%
%
\ht:special{t4ht@[}\if!#1!x\else#2\fi\ht:special{t4ht@]}}}
{\ifmmode
\Tg<\a:mathml mrow
\mml:class="accent#1">\mathord{#3}\Tg\a:mathml mrow>%
\else \HCode{}#3\HCode{}%
\fi
}%
\fi
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{array}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureEnv{array}
{\PushStack\Col:Marg\AllColMargins
\bgroup\Configure{$}{}{}{}}
{\egroup \PopStack\Col:Marg\AllColMargins}
{}{}
\Configure{multicolumn}
{\let\sv:VBorder\VBorder
\let\VBorder\empty
\Configure{VBorder}{}{}{}{}%
}
{\let\VBorder\sv:VBorder}
{\ifmmode \HCode{<\a:mathml mrow\Hnewline \mml:class="multicolumn}%
{\Configure{halignTD} {}{}
{<}{\HCode{-left}}
{-}{\HCode{-center}}
{>}{\HCode{-right}}
{p}{\HCode{-left}}
{}%
\HColAlign}\HCode{">}\else
\ifvmode\IgnorePar\fi
\HCode{}\fi }
{\ifmmode \HCode{\a:mathml mrow>}\else
\ifvmode\IgnorePar\fi \EndP\HCode{ }\fi }
\def\gob:sp#1{#1}
\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
\HAssign\borderlines = 0
\global\let\columnlines=\relax
%
}
{\ifx \columnlines\relax \gHAssign\borderlines = 1
\else \gHAdvance\borderlines by 2 \fi
%
\xdef\VBorder{\VBorder\ifnum \NewGroup> 0 \fi}
\HAssign\NewGroup = 0 \gdef\GROUPS{rules="groups"}}
{\Advance:\NewGroup by 1
\ifnum \borderlines>1 \gHAdvance\borderlines by -2 \fi
\ifx \columnlines\relax
\global\let\columnlines\empty
\else
\ifnum \NewGroup=1
\xdef\columnlines{\columnlines\ifx\columnlines\empty
\else \space\fi solid}%
\else
\xdef\columnlines{\columnlines\ifx\columnlines\empty
\else \space\fi none}%
\fi
\fi
%
\ifnum \NewGroup=1 \xdef\VBorder{\VBorder}\fi
\xdef\VBorder{\VBorder}\xdef\AllColMargins{\AllColMargins1}}
{\xdef\AllColMargins{\AllColMargins 0}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{color}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{textcolor}
{\gHAdvance\textcolorN by 1
\Configure{color}%
{\Configure{SetHColor}
{\Css{.textcolor\textcolorN{color:\HColor}}}}%
\HCode{<\ifmathml mstyle\else span\fi
\space id="textcolor\textcolorN">}}%
{\HCode{\ifmathml mstyle\else span\fi>}}
\Configure{textcolor}
{\ifmathml
\Configure{color}%
{\Configure{SetHColor}
{\HCode{}}}%
\else
\gHAdvance\textcolorN by 1
\Configure{color}%
{\Configure{SetHColor}
{\Css{\#textcolor\textcolorN{color:\HColor}}}}%
\HCode{}%
\fi
}%
{\HCode{\ifmathml mstyle\else span\fi>}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{rlbabel}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{moreL}
{\ifmathml \ifmtext
\leavevmode\special{t4ht@+\a:mathml mtext><\a:mathml mtext{32}\mml:class="ltr">}x%
\def\end:moreRL{\HCode{\a:mathml mtext><\a:mathml mtext>}}%
\else
\let\end:moreRL=\empty
\fi
%
\else
\ifvmode \let\end:moreRL=\empty
\else\HCode{}%
\def\end:moreRL{\HCode{}}%
\fi
\fi
}
{\end:moreRL}
\Configure{moreR}
{\ifmathml \ifmtext
\leavevmode\special{t4ht@+\a:mathml mtext><\a:mathml mtext{32}\mml:class="rtl">}x%
\def\end:moreRL{\HCode{\a:mathml mtext><\a:mathml mtext>}}%
\else
\let\end:moreRL=\empty
\fi
%
\else
\ifvmode \let\end:moreRL=\empty
\else\HCode{}\def\end:moreRL{\HCode{}}\fi
\fi
}
{\end:moreRL}
\Css{.rtl {direction: rtl}
.ltr {direction: ltr} }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{frenchb}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{frenchb-nbsp}
{\ifmtext \leavevmode\special{t4ht@+\string&{35}x00A0{59}}x%
\else\ifmathml
\Tg<\a:mathml mspace class="frenchb-nbsp" />%
\else
\ht:special{t4ht@?unhskip}\HCode{}%
\leavevmode\special{t4ht@+\string&{35}x00A0{59}}x%
\HCode{}%
\fi\fi
\setbox\tmp:bx=\hbox\bgroup}
{\egroup}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput
|