summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-common-multimedia.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-common-multimedia.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-common-multimedia.sty14
1 files changed, 5 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-common-multimedia.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-common-multimedia.sty
index c57d58df19c..70971ef5625 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-common-multimedia.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-common-multimedia.sty
@@ -45,8 +45,8 @@
}{}%
}
\newcommand*{\LWR@multimedia@fileAV}[4]{%
-\filename@parse{#2}%
-\IfFileExists{#2}{%
+\IfFileExists{#2}{% also sets \@filef@und
+\StrSubstitute[100]{\@filef@und}{"}{}[\LWR@parsedfilename]%
\ifstrequal{#3}{audio}{%
\begin{BlockClass}{AVviewport}
}{%
@@ -64,10 +64,10 @@
\LWR@htmltag{%
source % space
src=\textquotedbl%
- \@filef@und\unskip\textquotedbl\ % space
+ \LWR@parsedfilename\unskip\textquotedbl\ % space
type=\textquotedbl{}#4\textquotedbl}
\LWR@startpars
- \href{\@filef@und}{#1}
+ \href{\LWR@parsedfilename}{#1}
\LWR@stoppars
\LWR@htmltag{/#3}\LWR@orignewline
\end{BlockClass}
@@ -154,11 +154,7 @@
}
\newrobustcmd*{\LWR@multimedia}{%
\begingroup%
- \catcode`\#=12%
- \catcode`\%=12%
- \catcode`\&=12%
- \catcode`\~=12%
- \catcode`\_=12%
+ \LWR@linkmediacatcodes%
\LWR@multimediab%
}
\endinput