%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% svg.4ht 2006-11-25-15:34 %
% Copyright (C) 2001--2006 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 2006-11-25-15:34}
\exit:ifnot{graphics,%
tex4ht,%
th4}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ConfigureHinput{tex4ht}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{VERSION}
{\IgnorePar\HCode{ \Hnewline}}
\Configure{DOCTYPE}{\HCode
{\Hnewline
\Hnewline
}}
\Configure{@DOCTYPE}
{\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=}}
\else \:CheckOption{svg-} \if:Option
\Configure{IMG}
{\special{t4ht=}}
\else
\Log:Note{for external SVG files
try the command line options `svg-obj' and 'svg-'}
\Configure{IMG}
{\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{graphics}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Configure{graphics*}
{svg}
{{\Configure{Needs}{File: \csname Gin@base\endcsname.svg}\Needs{}}%
\special{t4ht=}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\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%
**\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{\Hnewline
\Hnewline}%
\bgroup\Canvas \x:SUBOff \x:SUPOff
\let\Picture=\empty \everymath{}\everydisplay{}%
}
\def\EndSvg{\EndCanvas\egroup
\HCode{}}
\fi
\fi \fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput\empty\empty\empty\empty\empty\empty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput