From 873660d1a83ece926fe7206288dda9c36b349c1b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 12 Jan 2006 23:46:03 +0000 Subject: generic 1 git-svn-id: svn://tug.org/texlive/trunk@613 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/generic/tex4ht/mathplayer.4ht | 518 +++++++++++++++++++++ 1 file changed, 518 insertions(+) create mode 100644 Master/texmf-dist/tex/generic/tex4ht/mathplayer.4ht (limited to 'Master/texmf-dist/tex/generic/tex4ht/mathplayer.4ht') diff --git a/Master/texmf-dist/tex/generic/tex4ht/mathplayer.4ht b/Master/texmf-dist/tex/generic/tex4ht/mathplayer.4ht new file mode 100644 index 00000000000..6a847e446c2 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/mathplayer.4ht @@ -0,0 +1,518 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% mathplayer.4ht 2005-02-21-19:09 % +% Copyright (C) 2002--2005 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 2005-02-21-19:09} + +\exit:ifnot{Preamble,% +tex4ht} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{Preamble} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \:CheckOption{xht} \if:Option + \Configure{html}{xht} +\else \:CheckOption{xml} \if:Option + \Configure{html}{xml} +\else + \Configure{html}{html} + \Configure{mathml}{m:} +\fi \fi + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{tex4ht} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \Configure{VERSION}{} +\:CheckOption{xht} \if:Option + \Configure{DOCTYPE} + {\HCode{]\Hnewline + >\Hnewline }} + \Configure{@HTML} + {xmlns:dsi="http://www.dessci.com/mathml" \Hnewline} + +\else \:CheckOption{xml} \if:Option + \Configure{DOCTYPE} + {\HCode{]\Hnewline + >\Hnewline }} + \Configure{@HTML} + {xmlns:dsi="http://www.dessci.com/mathml" \Hnewline} + +\else + \Configure{DOCTYPE} + {\HCode{\Hnewline }} + \Configure{@HTML} + {xmlns:m="http://www.w3.org/1998/Math/MathML"\Hnewline + xmlns:dsi="http://www.dessci.com/mathml" \Hnewline} + \Configure{@HEAD} + {\HCode{ + \Hnewline + \Hnewline + \Hnewline + }} + \Configure{@BODY} + {\HCode{\Hnewline + }} + \Configure{math-xmlns}{} +\fi \fi +\:CheckOption{xht} \if:Option +\else \:CheckOption{xml} \if:Option +\else + \Configure{$} + {\Configure{@math}{display="inline"}\DviMath} + {\EndDviMath\HCode{}}{} +\fi\fi +\Configure{halignTD} {}{} + {<}{\ifmathml \HCode{ columnalign="left"}\else + \HCode{ align="left" }\fi} + {-}{\ifmathml \HCode{ columnalign="center"}\else + \HCode{ align="center" }\fi} + {>}{\ifmathml \HCode{ columnalign="right"}\else + \HCode{ align="right" }\fi} + {^}{\ifmathml \HCode{ rowalign="top"}\else + \HCode{ valign="top" }\fi} + {=}{\ifmathml \HCode{ rowalign="baseline"}\else + \HCode{ valign="baseline" }\fi} + {|}{\ifmathml \HCode{ rowalign="center"}\else + \HCode{ valign="middle" }\fi} + {_}{\ifmathml \HCode{ rowalign="bottom"}\else + \HCode{ valign="bottom" }\fi} + {p}{\ifmathml \HCode{ columnalign="left"}\else + \HCode{ align="left"}\fi} + {} +\LinkCommand\mtxt:link{\a:mathml maction,% + actiontype="link" dsi:href, id, + \a:mathml class="label"><\a:mathml mtext mathbackground="yellow"% +,,} +\LinkCommand\msp:link{\a:mathml maction,% + actiontype="link" dsi:href, id, + \a:mathml class="label"><\a:mathml mstyle mathbackground="yellow"% +,,} +\def\Link{\ifmathml + \ifmtext \ht:special{t4ht@,}% +\HCode{}% + \expandafter\expandafter\expandafter\mtxt:link + \else \expandafter\expandafter\expandafter\msp:link\fi + \else \expandafter\M:Link\fi} +\def\EndLink{\ifmathml + \ifmtext \ht:special{t4ht@,}% +\HCode{}% +% + \Endmtxt:link \HCode{<\a:mathml mtext\Hnewline + \a:mathml class="endlabel">}\ht:special{t4ht@,&\#x00A0;}% +% + \else \HCode{% +}\fi + \else \expandafter\M:EndLink\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\EndIgnoreRule + \ifOption{mml-fonts}{}{\EndNoFonts}% + \mathmlfalse \b:DviMathML \sv:ignore +} +\fi\fi + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +\endinput + -- cgit v1.2.3