diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-05-06 05:26:35 -0700 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-05-06 05:26:35 -0700 |
commit | 6cb8c7ab0b577053c57872d476b8a5933369fbea (patch) | |
tree | 7edc5fc21fa26aaeb15de8c439ee518ec224bd16 /luaotfload-tool.lua | |
parent | 778267979a304bd83228fd0077c453a953d35fd0 (diff) | |
parent | dc3781fc328b18282f42b7813a7952d00f36ef8c (diff) | |
download | luaotfload-6cb8c7ab0b577053c57872d476b8a5933369fbea.tar.gz |
Merge pull request #15 from lualatex/master
Sync with lualatex repo
Diffstat (limited to 'luaotfload-tool.lua')
-rwxr-xr-x | luaotfload-tool.lua | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua index bb935cf..0cd19b1 100755 --- a/luaotfload-tool.lua +++ b/luaotfload-tool.lua @@ -1,13 +1,28 @@ #!/usr/bin/env texlua +----------------------------------------------------------------------- +-- FILE: luaotfload-tool.lua +-- DESCRIPTION: database functionality +-- REQUIREMENTS: luaotfload 2.2 +-- AUTHOR: Khaled Hosny, Élie Roux, Philipp Gesang +-- VERSION: 2.2 +-- LICENSE: GPL v2 +-- CREATED: 2013-05-06 13:37:12+0200 +----------------------------------------------------------------------- --[[doc-- -This file was originally written by Elie Roux and Khaled Hosny and is under CC0 -license (see http://creativecommons.org/publicdomain/zero/1.0/legalcode). + +This file was originally written (as \fileent{mkluatexfontdb.lua}) by +Elie Roux and Khaled Hosny and, as a derived work of ConTeXt, is +provided under the terms of the GPL v2.0 license as printed in full +text in the manual (luaotfload.pdf). + + \url{http://www.gnu.org/licenses/old-licenses/gpl-2.0.html}. This file is a wrapper for the luaotfload font names module (luaotfload-database.lua). It is part of the luaotfload bundle, please see the luaotfload documentation for more info. Report bugs to -\url{https://github.com/lualatex/luaotfload/issues}. + + \url{https://github.com/lualatex/luaotfload/issues}. --doc]]-- @@ -15,7 +30,6 @@ kpse.set_program_name"luatex" local stringformat = string.format local texiowrite_nl = texio.write_nl -local stringfind = string.find local stringlower = string.lower @@ -93,7 +107,7 @@ require"luaotfload-override.lua" --- this populates the logs.* namespace require"luaotfload-database" require"alt_getopt" -local version = "2.2" -- same version number as luaotfload +local version = "2.2" -- same version number as luaotfload local names = fonts.names local db_src_out = names.path.dir.."/"..names.path.basename @@ -253,11 +267,10 @@ actions.generate = function (job) end actions.flush = function (job) - local success, fontnames = names.flush_cache() + local success, lookups = names.flush_cache() if success then - local savedname = names.save(fontnames) - logs.names_report("info", 2, "cache", - "Cache emptied", #fontnames.mappings) + local savedname = names.save_lookups() + logs.names_report("info", 2, "cache", "Cache emptied") if savedname then return true, true end |