summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/svg.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/svg.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/svg.4ht461
1 files changed, 461 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/svg.4ht b/Master/texmf-dist/tex/generic/tex4ht/svg.4ht
new file mode 100644
index 00000000000..bff015bc71b
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/tex4ht/svg.4ht
@@ -0,0 +1,461 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% svg.4ht 2005-10-23-20:28 %
+% Copyright (C) 2001--2005 Eitan M. Gurari %
+% %
+% This program can redistributed and/or modified unde r %
+% the terms of the LaTeX Project Public License %
+% Distributed from CTAN archives in directory %
+% macros/latex/base/lppl.txt; either version 1 of the %
+% License, or (at your option) any later version. %
+% %
+% If you modify this program your changing its signature %
+% with a directive of the following form will be %
+% appreciated. %
+% \message{signature} %
+% %
+% gartside@maths.ox.ac.uk %
+% gurari@cis.ohio-state.edu %
+% http://www.maths.ox.ac.uk/~gartside %
+% http://www.cis.ohio-state.edu/~gurari %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+\immediate\write-1{version 2005-10-23-20:28}
+\exit:ifnot{tex4ht,%
+th4}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \ConfigureHinput{tex4ht}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \Configure{VERSION}
+ {\IgnorePar\HCode{<?xml version="1.0" encoding="\expandafter\ifx \csname a:charset\endcsname\relax
+ \expandafter\:encoding\A:charset
+ \else \expandafter\:encoding\a:charset\fi"
+ ?> \Hnewline}}
+\Configure{DOCTYPE}{\HCode
+ {<!DOCTYPE html PUBLIC
+ "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//\expandafter
+\ifx \csname a:dtd-lang\endcsname\relax EN\else
+ \csname a:dtd-lang\endcsname
+\fi
+"\Hnewline
+ "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">\Hnewline
+ <!--http://www.w3.org/TR/XHTMLplusMathMLplusSVG/-->\Hnewline
+}}
+\Configure{@DOCTYPE}
+ {<!ENTITY \% svg.dtd PUBLIC "-//W3C//DTD SVG 20010719//\expandafter
+\ifx \csname a:dtd-lang\endcsname\relax EN\else
+ \csname a:dtd-lang\endcsname
+\fi
+"\Hnewline
+ "http://www.w3.org/TR/2001/PR-SVG-20010719/DTD/svg10.dtd">\Hnewline
+ \%svg.dtd; \Hnewline}
+\Configure{@HTML}
+ {\Hnewline xmlns:svg="http://www.w3.org/2000/svg"\Hnewline }
+\Configure{Picture}{.svg}
+\:CheckOption{svg-obj} \if:Option
+ \Configure{IMG}
+ {\special{t4ht=<object type="image/svg+xml" data="}}
+ {\special{t4ht=" name="}}
+ {" }
+ {\special{t4ht=" }}
+ {\special{t4ht=></object>}}
+
+\else \:CheckOption{svg-} \if:Option
+ \Configure{IMG}
+ {\special{t4ht=<object type="image/svg+xml"><img src="}}
+ {\special{t4ht=" alt="}}
+ {" }
+ {\special{t4ht=" }}
+ {\special{t4ht=/></object>}}
+
+ \else
+ \Log:Note{to request external SVG files
+ use the command line option `svg-obj' of 'svg-'}
+ \Configure{IMG}
+ {\special{t4ht=<!-- src="}}
+ {\special{t4ht=" alt="}}
+ {" }
+ {\special{t4ht=" }}
+ {\special{t4ht=-->}%
+ \openin15=\PictureFile \relax
+ \ifeof15 \:warning{\PictureFile\space is not available}%
+ \else \closein15 \special{t4ht*<\PictureFile}\fi
+ }
+
+\fi\fi
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\endinput\empty\empty\empty\empty\empty\empty
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \ConfigureHinput{th4}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ \:CheckOption{draw} \if:Option \:CheckOption{th4} \if:Option
+ \Configure{Fig}
+ {\Svg}
+ {\EndSvg}
+ \:CheckOption{svg-} \if:Option
+ \let\:svg=\empty
+\NewConfigure{Canvas}[4]{\ht:special{t4ht"%
+ *%
+ *d\Hnewline<!--width="\%.1f#4" %
+ *D height="\%.1f#4" %
+ *y above-baseline="\%.1f#4" -->%
+ **\Hnewline<\:svg text x="\%.1f" y="\%.1f" >%
+ *</\:svg text>%
+ *\Hnewline<\:svg rect x="\%.1f#4" y="\%.1f#4"
+ width="\%.1f#4" height="\%.1f#4" />%
+ *#1*#2*#1*#2*#3}}
+\Configure{Canvas}{0.0000152587890625}{0.0}{0.5}{}
+
+ \else
+ \def\Svg{\HCode{<svg:svg>\Hnewline
+ <svg:g style="stroke:black; stroke-width:1;
+ stroke-opacity:1;">\Hnewline}%
+ \bgroup\Canvas \x:SUBOff \x:SUPOff
+ \let\Picture=\empty \everymath{}\everydisplay{}%
+}
+\def\EndSvg{\EndCanvas\egroup
+ \HCode{</svg:g></svg:svg>}}
+
+ \fi
+\fi \fi
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\endinput\empty\empty\empty\empty\empty\empty
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+\endinput
+