summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmkluatexfontdb.lua2
-rw-r--r--otfl-font-nms.lua5
-rw-r--r--otfl-luat-dum.lua2
3 files changed, 5 insertions, 4 deletions
diff --git a/mkluatexfontdb.lua b/mkluatexfontdb.lua
index ad9a362..ce9c410 100755
--- a/mkluatexfontdb.lua
+++ b/mkluatexfontdb.lua
@@ -44,7 +44,7 @@ Valid options:
-h --help print this message
The output database file is named otfl-fonts.lua. By default it is placed
-in $TEXMFVAR/luatex-cache/latex/names/.
+in $TEXMFVAR/luatex/generic/luaotfload/names.
]], name))
end
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index dc8179b..27de2e7 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -10,12 +10,13 @@ fonts = fonts or { }
fonts.names = fonts.names or { }
local names = fonts.names
+local names_dir = "/luatex/generic/luaotfload/names"
names.version = 2.007 -- not the same as in context
names.data = nil
names.path = {
basename = "otfl-names.lua",
- localdir = kpse.expand_var("$TEXMFVAR") .. "/luatex-cache/latex/names/",
- systemdir = kpse.expand_var("$TEXMFSYSVAR") .. "/luatex-cache/latex/names/",
+ localdir = kpse.expand_var("$TEXMFVAR") .. names_dir,
+ systemdir = kpse.expand_var("$TEXMFSYSVAR") .. names_dir,
}
diff --git a/otfl-luat-dum.lua b/otfl-luat-dum.lua
index 6e2e1c6..3946b6f 100644
--- a/otfl-luat-dum.lua
+++ b/otfl-luat-dum.lua
@@ -90,7 +90,7 @@ function caches.setpath(category,subcategory)
-- root = kpse.var_value("VARTEXMF") or ""
-- end
local var = kpse.var_value("TEXMFVAR")
- local root = var and (var .. "/luatex-cache/latex") or ""
+ local root = var and (var .. "/luatex/generic/luaotfload/") or ""
if root ~= "" then
root = file.join(root,category)
lfs.mkdir(root)