diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-06-02 10:08:23 -0700 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-06-02 10:08:23 -0700 |
commit | 12375b6291320ecd8e962a62e28ec70f2b205192 (patch) | |
tree | 841ca2c9bda3f76971877766a3b300f5d2a5821b /luaotfload-features.lua | |
parent | b1379efc10e86a907874104d7134b4e3f0ef1e1d (diff) | |
parent | 5cd039c3101fd6ca751244fb24b2ec85bc15b213 (diff) | |
download | luaotfload-12375b6291320ecd8e962a62e28ec70f2b205192.tar.gz |
Merge pull request #96 from phi-gamma/master
db rewrite + fixes (``texmf-fonts`` branch)
Diffstat (limited to 'luaotfload-features.lua')
-rw-r--r-- | luaotfload-features.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/luaotfload-features.lua b/luaotfload-features.lua index a68eb04..a70dace 100644 --- a/luaotfload-features.lua +++ b/luaotfload-features.lua @@ -1003,7 +1003,11 @@ local prefixed = P"name:" * ws * Cg(fontname, "name") --- with paths already, so we’ll add a less strict rule here. anyways, --- we’ll emit a warning. + P"file:" * ws * Cg(unsupported, "path") - + P"file:" * ws * Cg(fontname, "file") + + P"file:" * ws * Cg(fontname, "file") +--- EXPERIMENTAL: kpse lookup + + P"kpse:" * ws * Cg(fontname, "kpse") +--- EXPERIMENTAL: custom lookup + + P"my:" * ws * Cg(fontname, "my") local unprefixed = Cg(fontname, "anon") local path_lookup = lbrk * Cg(C((1-rbrk)^1), "path") * rbrk @@ -1069,7 +1073,7 @@ local import_values = { { "mode", true }, } -local lookup_types = { "anon", "file", "name", "path" } +local lookup_types = { "anon", "file", "kpse", "my", "name", "path" } local select_lookup = function (request) for i=1, #lookup_types do @@ -1171,7 +1175,7 @@ local handle_request = function (specification) local keep = import_values[n][2] local newvalue = request.features[feat] if newvalue then - specification[feat] = request.features[feat] + specification[feat] = request.features[feat] if not keep then request.features[feat] = nil end |