From c25023f313a11e77e66cbe36efd8e075c15038b2 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Thu, 6 Oct 2011 00:59:24 +0200 Subject: Fix parse_script() after recent changes in the file --- otfl-font-ltx.lua | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'otfl-font-ltx.lua') 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 -- cgit v1.2.3