summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/mathplayer.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/mathplayer.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/mathplayer.4ht178
1 files changed, 73 insertions, 105 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/mathplayer.4ht b/Master/texmf-dist/tex/generic/tex4ht/mathplayer.4ht
index 85bbd4e9a21..69c45f1970a 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/mathplayer.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/mathplayer.4ht
@@ -1,6 +1,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% mathplayer.4ht 2006-10-28-15:33 %
-% Copyright (C) 2002--2006 Eitan M. Gurari %
+% 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 %
@@ -24,22 +24,17 @@
% gurari@cse.ohio-state.edu %
% http://www.cse.ohio-state.edu/~gurari %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\immediate\write-1{version 2006-10-28-15:33}
+\immediate\write-1{version 2007-11-30-15:11}
\exit:ifnot{Preamble,%
+color,%
tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{Preamble}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- \:CheckOption{xht} \if:Option
- \Configure{ext}{xht}
-\else \:CheckOption{xml} \if:Option
- \Configure{ext}{xml}
-\else
- \Configure{ext}{html}
- \Configure{mathml}{m:}
-\fi \fi
+ \edef\Preamble{\Preamble,xht}
+\Configure{ext}{xht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -49,24 +44,7 @@ tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- \Configure{VERSION}{}
-\:CheckOption{xht} \if:Option
- \Configure{DOCTYPE}
- {\HCode{<!DOCTYPE html PUBLIC
- "-//W3C//DTD XHTML 1.1 plus MathML 2.0//\expandafter
-\ifx \csname a:dtd-lang\endcsname\relax EN\else
- \csname a:dtd-lang\endcsname
-\fi
-"\Hnewline
- "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"\Hnewline
-% "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"\Hnewline
-% [<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">]\Hnewline
- >\Hnewline }}
- \Configure{@HTML}
- {xmlns:dsi="http://www.dessci.com/mathml" \Hnewline}
-
-\else \:CheckOption{xml} \if:Option
- \Configure{DOCTYPE}
+ \Configure{DOCTYPE}
{\HCode{<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//\expandafter
\ifx \csname a:dtd-lang\endcsname\relax EN\else
@@ -74,61 +52,35 @@ tex4ht}
\fi
"\Hnewline
"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"\Hnewline
-% "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"\Hnewline
-% [<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">]\Hnewline
+ [\Hnewline
+ <!ENTITY \% MATHML.prefixed "INCLUDE">\Hnewline
+ <!ENTITY \% MATHML.prefix "m">\Hnewline
+ ]\Hnewline
>\Hnewline }}
- \Configure{@HTML}
- {xmlns:dsi="http://www.dessci.com/mathml" \Hnewline}
-
-\else
- \Configure{DOCTYPE}
- {\HCode{<!DOCTYPE html PUBLIC
- "-//W3C//DTD XHTML 1.1 plus MathML 2.0//\expandafter
-\ifx \csname a:dtd-lang\endcsname\relax EN\else
- \csname a:dtd-lang\endcsname
-\fi
-"\Hnewline
-% "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"\Hnewline
- "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"\Hnewline
- >\Hnewline }}
- \Configure{@HTML}
- {xmlns:m="http://www.w3.org/1998/Math/MathML"\Hnewline
- xmlns:dsi="http://www.dessci.com/mathml" \Hnewline}
- \Configure{@HEAD}
- {\HCode{
- <object id="MathPlayer"
- classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987"
- ></object>\Hnewline
- <?import namespace="m" implementation="\#MathPlayer" ?>\Hnewline
- <!--http://www.dessci.com/webmath/mathplayer/-->\Hnewline
- }}
- \Configure{@BODY}
- {\HCode{<script language="javascript">\Hnewline<!--\Hnewline
- if( navigator.appName=="Microsoft Internet Explorer" \Hnewline
+\Configure{@BODY}
+ {\ifvmode \EndP\fi \IgnorePar\HCode{<script type="text/javascript">\Hnewline<!--\Hnewline
+ if( navigator.appName=="Microsoft Internet Explorer" \Hnewline
&& navigator.platform=="Win32" \Hnewline
- && parseFloat(navigator.appVersion.substr( \Hnewline
- navigator.appVersion.indexOf("MSIE ")+5))>="5.5" \Hnewline
){ \Hnewline
- try { \Hnewline
- var oMP = new ActiveXObject("MathPlayer.Factory.1"); \Hnewline
- } \Hnewline
- catch(e) { alert("Can't find Design Science's MathPalyer" + \Hnewline
- "(http://www.dessci.com/webmath/mathplayer)");} \Hnewline
-} else { \Hnewline
- alert("Requires MSIE version 5.5 or later"); \Hnewline
-} \Hnewline
+ if( parseFloat(navigator.appVersion.substr( \Hnewline
+ navigator.appVersion.indexOf("MSIE ")+5))>="5.5" \Hnewline
+ ){
+ try { \Hnewline
+ var oMP = new ActiveXObject("MathPlayer.Factory.1"); \Hnewline
+ } \Hnewline
+ catch(e) { alert("Can't find Design Science's MathPalyer" + \Hnewline
+ "(http://www.dessci.com/webmath/mathplayer)");} \Hnewline
+ } else { \Hnewline
+ alert("Requires MSIE version 5.5 or later"); \Hnewline
+} } \Hnewline
\Hnewline-->\Hnewline
- </script>\Hnewline
- }}
- \Configure{math-xmlns}{}
-\fi \fi
-\:CheckOption{xht} \if:Option
-\else \:CheckOption{xml} \if:Option
-\else
- \Configure{$}
- {\Configure{@math}{display="inline"}\DviMath}
- {\EndDviMath\HCode{<span></span>}}{}
-\fi\fi
+ </script>\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}
@@ -147,31 +99,6 @@ tex4ht}
{p}{\ifmathml \HCode{ columnalign="left"}\else
\HCode{ style="text-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{</\a:mathml mtext>}%
- \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{</\a:mathml mtext>}%
-%
- \Endmtxt:link \HCode{<\a:mathml mtext\Hnewline
- \a:mathml class="endlabel">}\ht:special{t4ht@,&\#x00A0;}%
-%
- \else \HCode{</\a:mathml mstyle>%
-</\a:mathml
- maction><!--endlabel-->}\fi
- \else \expandafter\M:EndLink\fi}
\:CheckOption{xht} \if:Option
\else \:CheckOption{xml} \if:Option
\else
@@ -282,6 +209,47 @@ tex4ht}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \ConfigureHinput{color}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \let\a:txt:textcolor\a:textcolor
+\let\b:txt:textcolor\b:textcolor
+\Configure{textcolor}
+ {\ifmathml
+ \Configure{color}%
+ {\Configure{SetHColor}
+ {\HCode{<m:mstyle color="\HColor">}}}%
+ \else \a:txt:textcolor \fi
+ }
+ {\ifmathml \HCode{</m:mstyle>}\else \b:txt:textcolor \fi}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\endinput\empty\empty\empty\empty\empty\empty
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+