diff options
author | Karl Berry <karl@freefriends.org> | 2020-02-03 22:30:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-02-03 22:30:09 +0000 |
commit | 80eeb8a04335539fde455e00d5cfde4e2c7ed5c6 (patch) | |
tree | b35ac34b9cccd54d049c68d5d808b9ed48bab65e /Master/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua | |
parent | ca44d57bbfaa45d580f466e5dff1b3a9cccd49f6 (diff) |
luaotfload (3feb20)
git-svn-id: svn://tug.org/texlive/trunk@53652 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua index e136d6cf63c..0f8d7b3206f 100644 --- a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua +++ b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-init.lua @@ -7,8 +7,8 @@ local ProvidesLuaModule = { name = "luaotfload-init", - version = "3.11", --TAGVERSION - date = "2019-11-10", --TAGDATE + version = "3.12", --TAGVERSION + date = "2020-02-02", --TAGDATE description = "luaotfload submodule / initialization", license = "GPL v2.0" } @@ -192,6 +192,22 @@ local load_context_modules = function (pth) end +local function verify_context_dir (pth) + if lfsisdir(file.join(pth, ltx)) then + return true + end + for _, d in ipairs(ctx) do + if lfsisdir(file.join(pth, d)) then + return true + end + end + logreport("both", 0, "init", "A directory name has been passed as \z + fontloader name but this directory does not acutally seem to contain \z + a font loader. I will try to interpret your fontloader name in another \z + way for now, but please fix your settings.") + return false +end + local function init_main(early_hook) config = config or { } --- global config.luaotfload = config.luaotfload or { } @@ -374,7 +390,7 @@ local function init_main(early_hook) "Loading Context modules in lookup path.") load_context_modules () - elseif lfsisdir (fontloader) then + elseif lfsisdir (fontloader) and verify_context_dir (fontloader) then logreport ("log", 0, "init", "Loading Context files under prefix ā%sā.", fontloader) @@ -439,6 +455,7 @@ local init_post_install_callbacks = function () direction = tex.get'textdir' end domultiscript(head, nil, nil, nil, direction) + dofallback(head, nil, nil, nil, direction) return handler(head, groupcode, nil, nil, direction) end luatexbase.add_to_callback("pre_linebreak_filter", |