summaryrefslogtreecommitdiff
path: root/tex/context/base/font-ott.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-10-07 01:40:15 +0300
committerMarius <mariausol@gmail.com>2011-10-07 01:40:15 +0300
commit8867aebf22f20d09cbc1f9f80ba430de336de9b1 (patch)
tree1485aa1e6d590ce74e7dcb950dfe19f770a0226d /tex/context/base/font-ott.lua
parentd81ec60866639455ef2dd726e340a4313b7e2c8a (diff)
downloadcontext-8867aebf22f20d09cbc1f9f80ba430de336de9b1.tar.gz
beta 2011.10.07 00:40
Diffstat (limited to 'tex/context/base/font-ott.lua')
-rw-r--r--tex/context/base/font-ott.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tex/context/base/font-ott.lua b/tex/context/base/font-ott.lua
index c13a20246..6c671d76f 100644
--- a/tex/context/base/font-ott.lua
+++ b/tex/context/base/font-ott.lua
@@ -778,14 +778,14 @@ local checkers = {
function otf.features.normalize(features) -- no longer 'lang'
if features then
local h = { }
- for k,v in next, features do
+ for k, v in next, features do
k = lower(k)
if k == "language" then
v = gsub(lower(v),"[^a-z0-9]","")
- h.language = rawget(verboselanguages,v) or languages[v] or "dflt" -- auto adds
+ h.language = rawget(verboselanguages,v) or (languages[v] and v) or "dflt" -- auto adds
elseif k == "script" then
v = gsub(lower(v),"[^a-z0-9]","")
- h.script = rawget(verbosescripts,v) or scripts[v] or "dflt" -- auto adds
+ h.script = rawget(verbosescripts,v) or (scripts[v] and v) or "dflt" -- auto adds
else
if type(v) == "string" then
local b = is_boolean(v)