summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2012-05-09 09:41:19 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2012-05-09 09:41:19 +0200
commita54bf71df0e790a2665cc2242d4cf452ca3bb81b (patch)
tree7e1ea89bd686628efedd7b929825761a23c468bc
parentbb67558c87704ad7193b07e4ef657cb9d948a9a0 (diff)
downloadluaotfload-a54bf71df0e790a2665cc2242d4cf452ca3bb81b.tar.gz
Simplify
-rw-r--r--luaotfload.dtx42
1 files changed, 20 insertions, 22 deletions
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