summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-10-06 00:59:24 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-10-06 00:59:24 +0200
commitc25023f313a11e77e66cbe36efd8e075c15038b2 (patch)
tree288fb513fabd36b5c7f5fcd4a0e7f2fc8b5b7acc
parentc1d7136fd34aa4dfb47cf9d3c82c9f9e0e5474b8 (diff)
downloadluaotfload-c25023f313a11e77e66cbe36efd8e075c15038b2.tar.gz
Fix parse_script() after recent changes in the file
-rw-r--r--otfl-font-ltx.lua19
1 files changed, 7 insertions, 12 deletions
diff --git a/otfl-font-ltx.lua b/otfl-font-ltx.lua
index 1865637..26beda1 100644
--- a/otfl-font-ltx.lua
+++ b/otfl-font-ltx.lua
@@ -94,20 +94,15 @@ defaults.tibt = defaults.khmr
defaults.lao = defaults.thai
local function parse_script(script)
+ local features
+ logs.report("load font", "auto-selecting default features for script: %s", script)
if defaults[script] then
- local dflt
- if defaults[script] then
- logs.report("load font", "auto-selecting default features for script: %s", script)
- dflt = defaults[script]
- else
- logs.report("load font", "auto-selecting default features for script: dflt (was %s)", script)
- dflt = defaults["dflt"]
- end
- for _,v in next, dflt do
- list[v] = "yes"
- end
+ features = defaults[script]
else
- logs.report("load font", "unknown script: %s", script)
+ features = defaults["dflt"]
+ end
+ for _,v in next, features do
+ list[v] = "yes"
end
end