From a54bf71df0e790a2665cc2242d4cf452ca3bb81b Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Wed, 9 May 2012 09:41:19 +0200 Subject: Simplify --- luaotfload.dtx | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) (limited to 'luaotfload.dtx') diff --git a/luaotfload.dtx b/luaotfload.dtx index 1716299..47b2595 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -625,31 +625,29 @@ local trep = { [0x0060] = 0x2018, -- quoteright } -local trep_specification = { - type = "substitution", - features = everywhere, - data = trep, - flags = noflags, -} - local tlig_specification = { - type = "ligature", - features = everywhere, - data = tlig, - flags = noflags, -} - -local tlig2_specification = { - type = "ligature", - features = everywhere, - data = tlig2, - flags = noflags, + { + type = "substitution", + features = everywhere, + data = trep, + flags = { }, + }, + { + type = "ligature", + features = everywhere, + data = tlig, + flags = { }, + }, + { + type = "ligature", + features = everywhere, + data = tlig2, + flags = { }, + }, } -fonts.handlers.otf.addfeature("tlig", - { tlig_specification, tlig2_specification, trep_specification } -) -fonts.handlers.otf.addfeature("trep", {}) +fonts.handlers.otf.addfeature("tlig", tlig_specification) +fonts.handlers.otf.addfeature("trep", { }) % \end{macrocode} % % we provide a callback for patching fonts on the fly, to be used by other -- cgit v1.2.3