diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-08-31 19:40:48 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-08-31 19:40:48 +0200 |
commit | 08135c42930576980e9bdae7a82208cb9dcf42f9 (patch) | |
tree | e6c9d648e497c1781066aef47e800eacdb1fe873 | |
parent | 9aec66e141e10d698e255c1303063e3a1236c278 (diff) | |
download | luaotfload-08135c42930576980e9bdae7a82208cb9dcf42f9.tar.gz |
[db] new structure
-rw-r--r-- | luaotfload-database.lua | 26 |
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 } |