diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-19 01:47:15 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-19 01:47:15 +0200 |
commit | ba2d7155dfd46e432da4ef9888d7ca1dc530246e (patch) | |
tree | be3dd88d7bb7e99b0b2d67389f5862cdbfb5acbb | |
parent | 012786984e0f32a16f1153fc9f697e94992e4829 (diff) | |
download | luaotfload-ba2d7155dfd46e432da4ef9888d7ca1dc530246e.tar.gz |
cleanup features
-rw-r--r-- | luaotfload-features.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/luaotfload-features.lua b/luaotfload-features.lua index 1635fba..52d947e 100644 --- a/luaotfload-features.lua +++ b/luaotfload-features.lua @@ -6,10 +6,10 @@ if not modules then modules = { } end modules ["features"] = { license = "see context related readme files" } -local format, insert = string.format, table.insert local type, next = type, next +local tonumber = tonumber +local tostring = tostring local lpegmatch = lpeg.match -local mathceil = math.ceil ---[[ begin included font-ltx.lua ]] --- this appears to be based in part on luatex-fonts-def.lua @@ -29,15 +29,15 @@ function fonts.definers.getspecification(str) return "", str, "", ":", str end -local old_feature_list = { } - local report = logs.names_report local stringfind = string.find local stringlower = string.lower local stringgsub = string.gsub local stringsub = string.sub +local stringformat = string.format local stringis_empty = string.is_empty +local mathceil = math.ceil --- TODO an option to dump the default features for a script would make --- a nice addition to luaotfload-tool @@ -1298,11 +1298,11 @@ local function addfeature(data,feature,specifications) local featuretype = types[specification.type or "substitution"] local featureflags = specification.flags or noflags local added = false - local featurename = format("ctx_%s_%s",feature,s) + local featurename = stringformat("ctx_%s_%s",feature,s) local st = { } for t=1,#subtables do local list = subtables[t] - local full = format("%s_%s",featurename,t) + local full = stringformat("%s_%s",featurename,t) st[t] = full if featuretype == "gsub_ligature" then lookuptypes[full] = "ligature" |