summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fontspec/fontspec-code-enc.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/fontspec/fontspec-code-enc.dtx')
-rw-r--r--macros/latex/contrib/fontspec/fontspec-code-enc.dtx18
1 files changed, 2 insertions, 16 deletions
diff --git a/macros/latex/contrib/fontspec/fontspec-code-enc.dtx b/macros/latex/contrib/fontspec/fontspec-code-enc.dtx
index fef5d81549..1508176e32 100644
--- a/macros/latex/contrib/fontspec/fontspec-code-enc.dtx
+++ b/macros/latex/contrib/fontspec/fontspec-code-enc.dtx
@@ -8,28 +8,14 @@
% \end{macrocode}
% \fi
%
-% To be removed after the 2017 release of LaTeX2e:
-% \begin{macrocode}
-\providecommand\UnicodeFontFile[2]{"[#1]:#2"}
-\providecommand\UnicodeFontName[2]{"#1:#2"}
-%<XE>\providecommand\UnicodeFontTeXLigatures{mapping=tex-text;}
-%<LU>\providecommand\UnicodeFontTeXLigatures{+tlig;}
-% \end{macrocode}
-%
-% \begin{macrocode}
-\providecommand\add@unicode@accent[2]{#2\char#1\relax}
-\providecommand\DeclareUnicodeAccent[3]{%
- \DeclareTextCommand{#1}{#2}{\add@unicode@accent{#3}}%
-}
-% \end{macrocode}
%
% \begin{macro}{\EncodingCommand}
% \begin{macrocode}
-\DeclareDocumentCommand \EncodingCommand {mO{}m}
+\DeclareDocumentCommand \EncodingCommand { m O{} O{} m }
{
\bool_if:NF \l_@@_defining_encoding_bool
{ \@@_error:nn {only-inside-encdef} \EncodingCommand }
- \DeclareTextCommand{#1}{\UnicodeEncodingName}[#2]{#3}
+ \DeclareTextCommand{#1}{\UnicodeEncodingName}[#2][#3]{#4}
}
% \end{macrocode}
% \end{macro}