summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-03-14 20:09:27 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-03-14 20:15:40 +0200
commita5d1561767c7ee1eeee864c4e029b48de497cf01 (patch)
tree589bf7133484322e86e984b261ed7a922f13ea4c /luaotfload.dtx
parenta8f8f9f97f72b00610ef2d56cb7d20dcf1e27663 (diff)
downloadluaotfload-a5d1561767c7ee1eeee864c4e029b48de497cf01.tar.gz
Set minimal required luatex to 0.51
+ remove some unused compatibility code.
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))