summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2017-02-06 21:21:48 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2017-02-06 21:22:20 +0100
commit9b70f2ee9e20830cfb39ca3b139e6f3aa04be1f1 (patch)
tree8fe57b003fc07123f2bf118329d0418e61e0ed76
parent0842c371132e76fbe67c357b61207e6d5730f553 (diff)
downloadluaotfload-9b70f2ee9e20830cfb39ca3b139e6f3aa04be1f1.tar.gz
Revert "[features] remove unneeded tlig features"
This reverts commit 7250ac958d842f45d28220db87203506d3ae65c0. As per issue #405.
-rw-r--r--src/luaotfload-features.lua17
1 files changed, 17 insertions, 0 deletions
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 = {