diff options
author | Karl Berry <karl@freefriends.org> | 2018-12-30 17:39:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-12-30 17:39:13 +0000 |
commit | 78bb048ea070cccf7747859a6d0a3528f20b1ee7 (patch) | |
tree | 57b54f1e2c684165e885b1e1ffebfb31f2551837 /Master/texmf-dist/tex/generic/tex4ht/svg.4ht | |
parent | 97048299fff82e8c3be218a67180cd1354330f07 (diff) |
support for svg, tabu, scrjura, and rename previous svg.4ht to svg-option.4ht, tex4ht r467-r471
git-svn-id: svn://tug.org/texlive/trunk@49536 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/svg.4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/svg.4ht | 550 |
1 files changed, 9 insertions, 541 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/svg.4ht b/Master/texmf-dist/tex/generic/tex4ht/svg.4ht index ae6445a9ee2..524c7824dd9 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/svg.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/svg.4ht @@ -1,6 +1,5 @@ -% svg.4ht (2017-05-09-09:46), generated from tex4ht-svg.tex -% Copyright 2009-2017 TeX Users Group -% Copyright 2001-2009 Eitan M. Gurari +% svg.4ht (2018-12-30-09:31), generated from tex4ht-4ht.tex +% Copyright 2018 TeX Users Group % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -17,546 +16,15 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2017-05-09-09:46} +\immediate\write-1{version 2018-12-30-09:31} -\exit:ifnot{graphics,% -tex4ht,% -th4} - - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \ConfigureHinput{tex4ht} -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \:CheckOption{svg-inline}\if:Option -\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 } -\fi -\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{for external SVG files - try the command line options `svg-obj' and 'svg-'} -\:CheckOption{svg-inline}\if:Option - \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\fi - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\endinput\empty\empty\empty\empty\empty\empty -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - - - - - - - - - - - - - - - - - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \ConfigureHinput{graphics} -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - \Configure{graphics*} - {svg} - {{\Configure{Needs}{File: \csname Gin@base\endcsname.svg}\Needs{}}% - \special{t4ht=<object type="image/svg+xml" - data="\Gin@base.svg" - name="picture \Gin@base" - class="graphics"></object><!--tex4ht:graphics \csname a:Gin-dim\endcsname --->}} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\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{}% +\renewcommand\includesvg[2][]{% +% detect if an extension has been used +\filename@parse{#2} +\@ifundefined{filename@ext}{\edef\svg:filename{#2.svg}}{\edef\svg:filename{#2}} +\includegraphics{\svg:filename} } -\def\EndSvg{\EndCanvas\egroup - \HCode{</svg:g></svg:svg>}} - - \fi -\fi \fi - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\endinput\empty\empty\empty\empty\empty\empty -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +\Hinput{svg} \endinput |