From 7ca84d412dde2a7a67cca513ba668687e3e34260 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 27 Sep 2016 23:26:11 +0200 Subject: [features,parsers] add extremely important feature Credits to Taco for the talk at Kalenberg that inspired the feature. Extending the parser is required so we can have proper name for the feature. Happy Luatex 1.0.0 --- src/luaotfload-features.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/luaotfload-features.lua') diff --git a/src/luaotfload-features.lua b/src/luaotfload-features.lua index f56213d..285482f 100644 --- a/src/luaotfload-features.lua +++ b/src/luaotfload-features.lua @@ -1340,11 +1340,17 @@ local rot13_specification = { prepend = true, } +local interrolig_specification = { + { type = "ligature", data = { [0x203d] = {0x21, 0x3f}, [0x2e18] = {0xa1, 0xbf}, }, }, + { type = "ligature", data = { [0x203d] = {0x3f, 0x21}, [0x2e18] = {0xbf, 0xa1}, }, }, +} + local autofeatures = { --- always present with Luaotfload; anum for Arabic and Persian is --- predefined in font-otc. { "tlig" , tlig_specification , "tex ligatures and substitutions" }, { "rot13", rot13_specification, "rot13" }, + { "!!??", interrolig_specification, "interrobang substitutions" }, } local add_auto_features = function () -- cgit v1.2.3