From 2d1908ff97890f3a0e7cae39dd99e7b97ff2d443 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 9 May 2010 18:19:57 +0300 Subject: Updating to latest ConTeXt stable (2010.05.08) --- otfl-font-ott.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'otfl-font-ott.lua') diff --git a/otfl-font-ott.lua b/otfl-font-ott.lua index 55cb734..d26c55f 100644 --- a/otfl-font-ott.lua +++ b/otfl-font-ott.lua @@ -682,6 +682,14 @@ for k, v in pairs(to_features) do to_features[lower(k)] = v end +otf.meanings.checkers = { + rand = function(v) + return v and "random" + end +} + +local checkers = otf.meanings.checkers + function otf.meanings.normalize(features) local h = { } for k,v in next, features do @@ -710,7 +718,9 @@ function otf.meanings.normalize(features) v = b end end - h[to_features[k] or k] = v + k = to_features[k] or k + local c = checkers[k] + h[k] = c and c(v) or v end end return h -- cgit v1.2.3