diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-01-16 20:18:04 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-01-16 20:18:04 +0200 |
commit | d7764afb98777c5fda3a7478f87944a64ca162c3 (patch) | |
tree | 050f4a5b9062adec5e3a648d054457e0fdc9a0b6 | |
parent | 48296a62ecdf327bbe4f0af51b656d099af57950 (diff) | |
download | luaotfload-d7764afb98777c5fda3a7478f87944a64ca162c3.tar.gz |
Drop otfl-luat-dum.lua dependency
-rw-r--r-- | luaotfload-fonts.lua | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/luaotfload-fonts.lua b/luaotfload-fonts.lua index 6a2fcf2..3c55e0d 100644 --- a/luaotfload-fonts.lua +++ b/luaotfload-fonts.lua @@ -14,7 +14,6 @@ luaotfload.fonts.module = { kpse.set_program_name("luatex") require("luaextra.lua") -require("otfl-luat-dum.lua") local upper, splitpath, expandpath, glob, basename = string.upper, file.split_path, kpse.expand_path, dir.glob, file.basename @@ -22,16 +21,16 @@ luaotfload.fonts.basename = "otfl-names.lua" luaotfload.fonts.version = 2.000 luaotfload.fonts.log = false +local function info(fmt,...) + texio.write_nl(string.format("luaotfload | %s", string.format(fmt,...))) +end + local function log(...) if luaotfload.fonts.log then - logs.simple(...) + info(...) end end -local function info(...) - logs.simple(...) -end - local function sanitize(str) return string.gsub(string.lower(str), "[^%a%d]", "") end @@ -161,12 +160,12 @@ local function generate() } local savepath scan_txmf_tree(fnames) - logs.simple("%s fonts saved in the database", #table.keys(fnames.mappings.psnames)) + info("%s fonts saved in the database", #table.keys(fnames.mappings.psnames)) savepath = kpse.expand_var("$TEXMFVAR") .. "/tex/" lfs.mkdir(savepath) savepath = savepath .. luaotfload.fonts.basename io.savedata(savepath, table.serialize(fnames, true)) - logs.simple("Saved font names database in %s\n", savepath) + info("Saved font names database in %s\n", savepath) end luaotfload.fonts.scan = scan_dir |