summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-04-20 23:02:43 +0000
committerKarl Berry <karl@freefriends.org>2009-04-20 23:02:43 +0000
commit3ea86bef2e63ca77c8fbfe4e3b4617804de11855 (patch)
tree1e0e750a74f9564e0c70869bcb018ee010518e50 /Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht
parentee53eac199e12fb91859fd18a43dd506ff75e3a9 (diff)
tex4ht-1.0.2009_04_18_1145
git-svn-id: svn://tug.org/texlive/trunk@12767 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht117
1 files changed, 110 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht b/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht
index a755bac3839..952c60160cd 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht
@@ -1,6 +1,6 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% html-mml.4ht 2008-09-10-15:23 %
-% Copyright (C) 1999--2008 Eitan M. Gurari %
+% 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 %
@@ -24,7 +24,7 @@
% gurari@cse.ohio-state.edu %
% http://www.cse.ohio-state.edu/~gurari %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\immediate\write-1{version 2008-09-10-15:23}
+\immediate\write-1{version 2009-04-18-11:08}
\exit:ifnot{amsmath,%
array,%
@@ -87,6 +87,15 @@ tex4ht}
}{\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}
@@ -223,6 +232,14 @@ tex4ht}
{\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"
@@ -395,6 +412,45 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
\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 </colgroup>\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<colgroup
+ id="TBL-\TableNo-\ar:cnt g">}\fi
+ \xdef\VBorder{\VBorder<col\Hnewline id="TBL-\TableNo
+ -\ar:cnt"\xml:empty>}\xdef\AllColMargins{\AllColMargins1}}
+ {\xdef\AllColMargins{\AllColMargins 0}}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -424,6 +480,9 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
+
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -620,7 +679,6 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{plain}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -670,6 +728,9 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
+
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{array}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -698,6 +759,39 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
\ifvmode\IgnorePar\fi \EndP\HCode{</div>}\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 </colgroup>\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<colgroup
+ id="TBL-\TableNo-\ar:cnt g">}\fi
+ \xdef\VBorder{\VBorder<col\Hnewline id="TBL-\TableNo
+ -\ar:cnt"\xml:empty>}\xdef\AllColMargins{\AllColMargins1}}
+ {\xdef\AllColMargins{\AllColMargins 0}}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -726,9 +820,6 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
-
-
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{color}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -798,6 +889,9 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
+
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{rlbabel}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1114,5 +1208,14 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
+
+
+
+
+
+
+
+
+
\endinput