From 9b70f2ee9e20830cfb39ca3b139e6f3aa04be1f1 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 6 Feb 2017 21:21:48 +0100 Subject: Revert "[features] remove unneeded tlig features" This reverts commit 7250ac958d842f45d28220db87203506d3ae65c0. As per issue #405. --- src/luaotfload-features.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/luaotfload-features.lua b/src/luaotfload-features.lua index 5c35031..a57aac3 100644 --- a/src/luaotfload-features.lua +++ b/src/luaotfload-features.lua @@ -1288,6 +1288,10 @@ local tlig_specification = { data = { [0x2013] = {0x002D, 0x002D}, -- endash [0x2014] = {0x002D, 0x002D, 0x002D}, -- emdash + [0x201C] = {0x2018, 0x2018}, -- quotedblleft + [0x201D] = {0x2019, 0x2019}, -- quotedblright + [0x00A1] = {0x0021, 0x2018}, -- exclamdown + [0x00BF] = {0x003F, 0x2018}, -- questiondown --- next three originate in T1 encoding; Xetex applies --- them too [0x201E] = {0x002C, 0x002C}, -- quotedblbase @@ -1298,6 +1302,19 @@ local tlig_specification = { order = { "tlig" }, prepend = true, }, + { + type = "ligature", + features = everywhere, + data = { + [0x201C] = {0x0060, 0x0060}, -- quotedblleft + [0x201D] = {0x0027, 0x0027}, -- quotedblright + [0x00A1] = {0x0021, 0x0060}, -- exclamdown + [0x00BF] = {0x003F, 0x0060}, -- questiondown + }, + flags = noflags, + order = { "tlig" }, + prepend = true, + }, } local rot13_specification = { -- cgit v1.2.3