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/ooffice-mml.4ht | 760 +++++++++++++++++++++ 1 file changed, 760 insertions(+) create mode 100644 Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht (limited to 'Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht') diff --git a/Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht b/Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht new file mode 100644 index 00000000000..73627fb2a0d --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/ooffice-mml.4ht @@ -0,0 +1,760 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% ooffice-mml.4ht 2005-10-22-10:51 % +% Copyright (C) 2001--2005 Maarten Wisse % +% James Naughton % +% 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} % +% % +% Maarten.Wisse@urz.uni-heidelberg.de % +% http://home.wanadoo.nl/pmwisse % +% % +% james.naughton@st-edmund-hall.oxford.ac.uk % +% % +% gurari@cse.ohio-state.edu % +% http://www.cse.ohio-state.edu/~gurari % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\immediate\write-1{version 2005-10-22-10:51} + \exit:ifnot{Preamble,% +amsmath,% +array,% +latex,% +plain,% +rlbabel,% +tex4ht} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{Preamble} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \Configure{mathml}{math:} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{tex4ht} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \Configure{math-xmlns} + { + xmlns:math="http://www.w3.org/1998/Math/MathML" + } +\HAssign\math:obj=0 +\Configure{DviMath} + {\a:DviMathML \mathmltrue + \ifOption{mml-fonts}{}{\NoFonts}% + \HCode{% +}\IgnoreRule + \gHAdvance\math:obj by 1 +\NextFile{\jobname-m\math:obj +.4om}% +\bgroup + \HCode{% +}% + \OOmanifest{\Hnewline +\Hnewline + +}% + \Configure{DOCTYPE} + {\HCode{\Hnewline}}% +\Configure{HTML}{}{\noindent}% +\Configure{BODY}{}{}% +% + \edef\sv:ignore{\if:nopar + \noexpand\IgnorePar\else \noexpand\ShowPar\fi}% +\IgnorePar + \HPage{}% +\Tg<\a:mathml math\Hnewline + \csname a:math-xmlns\endcsname \Hnewline \a:@math>\a:math + } + {\Tg% + \EndHPage{}\sv:ignore +\egroup +\EndIgnoreRule + \ifOption{mml-fonts}{}{\EndNoFonts}% + \mathmlfalse \b:DviMathML } +\Configure{halignTD} {}{} + {<}{\ifmathml \HCode{ columnalign="left"}\else + L\fi} + {-}{\ifmathml \HCode{ columnalign="center"}\else + C\fi} + {>}{\ifmathml \HCode{ columnalign="right"}\else + R\fi} + {^}{\ifmathml \HCode{ rowalign="top"}\else + T\fi} + {=}{\ifmathml \HCode{ rowalign="baseline"}\else + N\fi} + {|}{\ifmathml \HCode{ rowalign="center"}\else + M\fi} + {_}{\ifmathml \HCode{ rowalign="bottom"}\else + B\fi} + {p}{\ifmathml \HCode{ columnalign="left"}\else + \fi} + {m}{\ifmathml\else m\fi} %{\HCode{valign-middle align-left}} + {b}{\ifmathml\else n\fi} %{\HCode{valign-baseline align-left}} + {} +\Configure{$$} + {\Configure{@math}{\a:mathml display="block"}\IgnorePar + \ifvmode\EndP + \else\EndP \HCode{}\fi + \HCode{}\DviMath} + {\EndDviMath\HCode{}\ShowPar\par + {\csname HCondtrue\endcsname\noindent}} + {\DisplayMathtrue} +\NewConfigureOO{display-math} +\ConfigureOO{display-math} + {\Hnewline + \Hnewline + \Hnewline} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{latex} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \OOstyles{\Hnewline + \Hnewline + \Hnewline + \Hnewline} +\let\AllColMargins\empty +\ConfigureEnv{array} + {\PushStack\Col:Marg\AllColMargins + \bgroup\Configure{$}{}{}{}} + {\egroup \PopStack\Col:Marg\AllColMargins} + {}{} +\Configure{HBorder} + {\ifmathml <\a:mathml mtr\Hnewline class="hline"> + \else % +\fi} +{\ifmathml <\a:mathml mtd> \string&\#x0332; + + \else % + % + \Hnewline +\fi} +{\ifmathml + \else \Hnewline +\fi} +% + {\ifmathml <\a:mathml mtr\Hnewline class="cline"> + \else \Hnewline +\fi} +{\ifmathml <\a:mathml mtd> + \else % + % + \Hnewline +\fi } +{\ifmathml <\a:mathml mtd> \string&\#x0332; + + \else % + % + \Hnewline +\fi} +{\ifmathml + \else \Hnewline +\fi} +% + {\ifmathml <\a:mathml mtr\Hnewline class="vspace" style="font-size:\HBorderspace"> + \else % +\fi} +{\ifmathml <\a:mathml mtd\Hnewline> + \else \string % +\fi} +{\ifmathml + \else % +\fi} +% +\Configure{equation} + {\IgnorePar\ifvmode\else \HCode{}\fi + \EndP \HCode{% + \Hnewline + \Hnewline + % + % + }% +% + \Configure{$$} + {\Configure{@math}{}\IgnorePar\EndP\DviMath} + {\EndDviMath\EndP}{}% +% + \IgnorePar} + {\ifvmode \IgnorePar\fi\EndP + \HCode{\Hnewline + % + }% +} + {\HCode{\Hnewline + }% +\ShowPar\par{\HCondtrue\noindent}% +% +} +\OOstyles{% +\Hnewline + \Hnewline +\Hnewline +} +\OOstyles{% +\Hnewline + \Hnewline +\Hnewline +} +\OOstyles{% +\Hnewline + \Hnewline +\Hnewline +} +\Configure{[]} + {\Configure{@math}{\a:mathml display="block"}\IgnorePar + \ifvmode\EndP + \else\EndP \HCode{}\fi + \HCode{}\DviMath$$\DisplayMathtrue} + {$$\EndDviMath\HCode{}\ShowPar\par + {\csname HCondtrue\endcsname\noindent}} + {} +\Configure{newline} + {\ifmtext \ht:special{t4ht@,}% +\HCode{<\a:mathml + mtext class="newline">}% + \ht:special{t4ht@,&\#x00A0;}% +% + \else \HCode{}\fi} +\def\:nbsp{\ifmtext \leavevmode\special{t4ht@+\string&{35}x00A0{59}}x% +\else\ifmathml + \Tg<\a:mathml mspace />\else \ht:special{t4ht@+}% +\fi\fi} +\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 mo\Hnewline + accent="true">&\#x00AF;% +}% +\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 mo\Hnewline +accent="true">&\#x0332;}% +\else \HCode{}\fi \egroup} +\Configure{left} + {} + {\HCode{<\a:mathml mrow><\a:mathml mo>\expandafter + \ifx \csname \string#1:lr del\endcsname\relax #1\else + \csname \string#1:lr del\endcsname\fi + <\a:mathml mrow>}} +\Configure{right} + {\HCode{<\a:mathml mo>\expandafter + \ifx \csname \string#1:lr del\endcsname\relax #1\else + \csname \string#1:lr del\endcsname\fi + }} + {\HCode{}} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + + + + + + + + + + + + + + + + + + + + + + + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{amsmath} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \Configure{equation} + {\ifvmode \IgnorePar\fi\EndP + \HCode{% + \Hnewline + \Hnewline + % + % + }% +% + \Configure{gather} + {\HCode{<\a:mathml mtable\Hnewline + class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar + } + {\HCode{}} + {} + {} + {\ifnum\HCol=2 \IgnorePar + \HCode{<\a:mathml mtd>}\fi } + {}% +% + \Configure{$$} + {\Configure{@math}{}\IgnorePar\EndP\DviMath} + {\EndDviMath\EndP}{}% +% + } + {\ifvmode \IgnorePar\fi\EndP \HCode{\Hnewline + % + }% +} + {\ifvmode \IgnorePar\fi\EndP \HCode{\Hnewline + }% +% + \ShowPar\par{\HCondtrue\noindent}% +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + + + + + + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{plain} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \Configure{left} + {} + {\HCode{<\a:mathml mrow><\a:mathml mo>\expandafter + \ifx \csname \string#1:lr del\endcsname\relax #1\else + \csname \string#1:lr del\endcsname\fi + <\a:mathml mrow>}} +\Configure{right} + {\HCode{<\a:mathml mo>\expandafter + \ifx \csname \string#1:lr del\endcsname\relax #1\else + \csname \string#1:lr del\endcsname\fi + }} + {\HCode{}} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + + + + + + + + + + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{array} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \let\AllColMargins\empty +\ConfigureEnv{array} + {\PushStack\Col:Marg\AllColMargins + \bgroup\Configure{$}{}{}{}} + {\egroup \PopStack\Col:Marg\AllColMargins} + {}{} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \ConfigureHinput{rlbabel} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + \Configure{[]} + {\Configure{@math}{\a:mathml display="block"}\IgnorePar + \ifvmode\EndP + \else\EndP \HCode{}\fi + \HCode{}\DviMath$$\DisplayMathtrue} + {$$\EndDviMath\HCode{}\ShowPar\par + {\csname HCondtrue\endcsname\noindent}} + {} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput\empty\empty\empty\empty\empty\empty +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +\endinput + -- cgit v1.2.3