From 1ef10e57241a65e8ce2aeefdd83874e8999b7b44 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Wed, 10 Jun 2009 20:21:00 +0300 Subject: syncing with latest ConTeXt version (more feautures, less bugs), thanks to Khaled Hosny --- otfl-data-con.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'otfl-data-con.lua') 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 -- cgit v1.2.3