summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx32
1 files changed, 14 insertions, 18 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 39343d8..e1a334f 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -310,30 +310,26 @@ 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))