summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-31 19:40:48 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-31 19:40:48 +0200
commit08135c42930576980e9bdae7a82208cb9dcf42f9 (patch)
treee6c9d648e497c1781066aef47e800eacdb1fe873 /luaotfload-database.lua
parent9aec66e141e10d698e255c1303063e3a1236c278 (diff)
downloadluaotfload-08135c42930576980e9bdae7a82208cb9dcf42f9.tar.gz
[db] new structure
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua26
1 files changed, 20 insertions, 6 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index 755ad52..067b48c 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -318,11 +318,19 @@ mtx-fonts has in names.tma:
local fontnames_init = function (formats) --- returns dbobj
return {
- mappings = { },
- status = { },
+ families = {
+ texmf = { },
+ system = { },
+ },
+ index = { }, -- was: status; map abspath -> mapping
+ mappings = { }, -- TODO: check if still necessary after rewrite
+ names = { },
-- filenames = { }, -- created later
- version = names.version,
- formats = formats,
+ meta = {
+ formats = formats,
+ statistics = { },
+ version = names.version,
+ },
}
end
@@ -2191,8 +2199,14 @@ local gen_fast_lookups = function (fontnames)
local nmappings = #mappings
--- this is needlessly complicated due to texmf priorization
local filenames = {
- bare = { },
- base = { },
+ bare = {
+ system = { }, --- mapped to mapping format -> index in full
+ texmf = { }, --- mapped to mapping format -> “true”
+ },
+ base = {
+ system = { }, --- mapped to index in “full”
+ texmf = { }, --- set; all values are “true”
+ },
full = { }, --- non-texmf
}