From a5d1561767c7ee1eeee864c4e029b48de497cf01 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 14 Mar 2010 20:09:27 +0200 Subject: Set minimal required luatex to 0.51 + remove some unused compatibility code. --- luaotfload.dtx | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/luaotfload.dtx b/luaotfload.dtx index 39343d8..e1a334f 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -308,32 +308,28 @@ luaotfload.module = { luatextra.provides_module(luaotfload.module) +% \end{macrocode} +% +% The minimal required Lua\TeX\ version. +% +% \begin{macrocode} + +luaotfload.luatex_version = 51 + +if tex.luatexversion < luaotfload.luatex_version then + luatextra.module_warning('luaotfload', string.format('too old luatex version, "%s" is needed at least', luaotfload.luatex_version/100)) +end + % \end{macrocode} % % We load the Con\TeX t files with this function. It automatically adds the % \texttt{otfl-} prefix to it, so that we call it with the actual Con\TeX t % name. % -% Some Con\TeX t files introduce incompatibilities with old Lua\TeX s, thus -% the old versions of these files are kept under the name |otfl-compat-...| -% and are called according to the version. The only file in this case -% is a |font-otf.lua| that, in version 2009.11.26 of Con\TeX t generates -% invalid PDFs with Lua\TeX{} older than version 0.45. -% % \begin{macrocode} - -function luaotfload.loadmodule(name, compat) - local tofind - if compat then - if tex.luatexversion < 45 then - tofind = 'otfl-compat-'..name - else - tofind = 'otfl-'..name - end - else - tofind = 'otfl-'..name - end +function luaotfload.loadmodule(name) + local tofind = 'otfl-'..name local found = kpse.find_file(tofind,"tex") if not found then luatextra.module_error('luaotfload', string.format('file %s not found.', tofind)) -- cgit v1.2.3