summaryrefslogtreecommitdiff
path: root/otfl-data-con.lua
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2009-06-10 20:21:00 +0300
committerElie Roux <elie.roux@telecom-bretagne.eu>2009-06-10 20:21:00 +0300
commit1ef10e57241a65e8ce2aeefdd83874e8999b7b44 (patch)
tree713769db5cdf9115e2824aa09e8f65cd795667f7 /otfl-data-con.lua
parent5821436af1c522206c3faf90e0813415445ea6c7 (diff)
downloadluaotfload-1ef10e57241a65e8ce2aeefdd83874e8999b7b44.tar.gz
syncing with latest ConTeXt version (more feautures, less bugs), thanks to Khaled Hosny
Diffstat (limited to 'otfl-data-con.lua')
-rw-r--r--otfl-data-con.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/otfl-data-con.lua b/otfl-data-con.lua
index ec146f0..02ee9ee 100644
--- a/otfl-data-con.lua
+++ b/otfl-data-con.lua
@@ -58,7 +58,7 @@ function containers.define(category, subcategory, version, enabled)
enabled = enabled,
version = version or 1.000,
trace = false,
- path = caches and caches.setpath(category,subcategory),
+ path = caches and caches.setpath and caches.setpath(category,subcategory),
}
c[subcategory] = s
end
@@ -116,3 +116,7 @@ end
function containers.content(container,name)
return container.storage[name]
end
+
+function containers.cleanname(name)
+ return (gsub(lower(name),"[^%w%d]+","-"))
+end