%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% mathplayer.4ht 2007-11-30-15:11 %
% Copyright (C) 2002--2007 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 2007-11-30-15:11}
\exit:ifnot{Preamble,%
color,%
tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{Preamble}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\edef\Preamble{\Preamble,xht}
\Configure{ext}{xht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{DOCTYPE}
{\HCode{\Hnewline
\Hnewline
]\Hnewline
>\Hnewline }}
\Configure{@BODY}
{\ifvmode \EndP\fi \IgnorePar\HCode{\Hnewline
}\par\ShowPar}
\Configure{@HTML}
{xmlns:m="http://www.w3.org/1998/Math/MathML"\Hnewline
% xmlns:dsi="http://www.dessci.com/mathml" \Hnewline
}
%\let\dsi:=\empty
\Configure{halignTD} {}{}
{<}{\ifmathml \HCode{ columnalign="left"}\else
\HCode{ style="text-align:left" }\fi}
{-}{\ifmathml \HCode{ columnalign="center"}\else
\HCode{ style="text-align:center" }\fi}
{>}{\ifmathml \HCode{ columnalign="right"}\else
\HCode{ style="text-align:right" }\fi}
{^}{\ifmathml \HCode{ rowalign="top"}\else
\HCode{ style="vertical-align:top" }\fi}
{=}{\ifmathml \HCode{ rowalign="baseline"}\else
\HCode{ style="vertical-align:baseline" }\fi}
{|}{\ifmathml \HCode{ rowalign="center"}\else
\HCode{ style="vertical-align:middle" }\fi}
{_}{\ifmathml \HCode{ rowalign="bottom"}\else
\HCode{ style="vertical-align:bottom" }\fi}
{p}{\ifmathml \HCode{ columnalign="left"}\else
\HCode{ style="text-align:left"}\fi}
{}
\:CheckOption{xht} \if:Option
\else \:CheckOption{xml} \if:Option
\else
\Configure{DviMath}
{\a:DviMathML \mathmltrue
\ifOption{mml-fonts}{}{\NoFonts}%
\IgnoreRule \HCode{}\HCode{<\a:mathml math\Hnewline}%
\let\sva:mathml=\a:mathml \let\a:mathml=\empty
%
\HCode{\csname a:math-xmlns\endcsname \Hnewline \a:@math>}%
\let\a:mathml=\sva:mathml
\a:math
\edef\sv:ignore{\if:nopar
\noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
\IgnorePar}
{\Tg\a:mathml math>\EndIgnoreRule
\ifOption{mml-fonts}{}{\EndNoFonts}%
\mathmlfalse \b:DviMathML \sv:ignore
}
\fi\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{color}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\let\a:txt:textcolor\a:textcolor
\let\b:txt:textcolor\b:textcolor
\Configure{textcolor}
{\ifmathml
\Configure{color}%
{\Configure{SetHColor}
{\HCode{}}}%
\else \a:txt:textcolor \fi
}
{\ifmathml \HCode{}\else \b:txt:textcolor \fi}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput