From d78999a570833c495e55af7bc0035a969a626bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Sat, 6 Nov 2010 04:06:35 +0100 Subject: Adapt to luatexbase v3.0 --- luaotfload.dtx | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/luaotfload.dtx b/luaotfload.dtx index c4c06da..880bb59 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -458,7 +458,7 @@ luaotfload.module = { license = "CC0" } -luatexbase.provides_module(luaotfload.module) +local error, warning, info, log = luatexbase.provides_module(luaotfload.module) % \end{macrocode} % % This is a necessary initalization in order not to rebuild an existing font. @@ -471,24 +471,6 @@ luatexbase.provides_module(luaotfload.module) kpse.init_prog('', 600, '/') % \end{macrocode} % -% Some helper functions. -% -% \begin{macrocode} -local format = string.format - -local function log(...) - luatexbase.module_log ('luaotfload', format(...)) -end - -local function error(...) - luatexbase.module_error ('luaotfload', format(...)) -end - -local function warning(...) - luatexbase.module_warning('luaotfload', format(...)) -end -% \end{macrocode} -% % The minimal required \LuaTeX\ version. % % \begin{macrocode} @@ -754,17 +736,13 @@ end \bgroup\expandafter\expandafter\expandafter\egroup \expandafter\ifx\csname ProvidesPackage\endcsname\relax \input luatexbase.sty - \input luatexbase-modutils.sty - \input luatexbase-mcb.sty \else \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{luaotfload}% [2010/10/16 v1.20 OpenType layout system] \RequirePackage{luatexbase} - \RequirePackage{luatexbase-modutils} - \RequirePackage{luatexbase-mcb} \fi -\luatexUseModule{lualibs} +\RequireLuaModule{lualibs} \expandafter\edef\csname otfl@AtEnd\endcsname{% \catcode64 \the\catcode64\relax @@ -789,7 +767,7 @@ end % We load the |lua| file, and we turn the package on. % % \begin{macrocode} -\luatexUseModule{luaotfload} +\RequireLuaModule{luaotfload} \otfl@on -- cgit v1.2.3