summaryrefslogtreecommitdiff
path: root/otfl-font-ott.lua
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2009-08-10 08:54:22 +0300
committerElie Roux <elie.roux@telecom-bretagne.eu>2009-08-10 08:54:22 +0300
commite7e1f9fa9046828a20677ac09a230eb383854c93 (patch)
tree9539e3bb3f59e690d2f1d70c8053fde76b5c52df /otfl-font-ott.lua
parenta4ad0bc15c4d506ba81f1e95431cf225ab094274 (diff)
downloadluaotfload-e7e1f9fa9046828a20677ac09a230eb383854c93.tar.gz
updating to latest (20090809) ConTeXt code (with minor bugfix)
Diffstat (limited to 'otfl-font-ott.lua')
-rw-r--r--otfl-font-ott.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/otfl-font-ott.lua b/otfl-font-ott.lua
index 6676ff6..47c2e0e 100644
--- a/otfl-font-ott.lua
+++ b/otfl-font-ott.lua
@@ -671,6 +671,16 @@ local to_scripts = otf.tables.to_scripts
local to_languages = otf.tables.to_languages
local to_features = otf.tables.to_features
+for k, v in pairs(to_features) do
+ local stripped = gsub(k,"%-"," ")
+ to_features[stripped] = v
+ local stripped = gsub(k,"[^a-zA-Z0-9]","")
+ to_features[stripped] = v
+end
+for k, v in pairs(to_features) do
+ to_features[lower(k)] = v
+end
+
function otf.meanings.normalize(features)
local h = { }
for k,v in next, features do