diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-11-06 04:06:35 +0100 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-11-11 01:35:01 +0100 |
commit | d78999a570833c495e55af7bc0035a969a626bec (patch) | |
tree | 352ca3fe1f725b727031b267bc56a61bfb2ff59c | |
parent | 0726387ce0c72586b5e0663b632e0a64ec441e58 (diff) | |
download | luaotfload-d78999a570833c495e55af7bc0035a969a626bec.tar.gz |
Adapt to luatexbase v3.0
-rw-r--r-- | luaotfload.dtx | 28 |
1 files 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 |