summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-12-28 15:53:54 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2013-12-28 15:53:54 +0100
commit0eaa0d07ef75431cb5fa4f44232260b212e0b6c2 (patch)
tree6bfb9f53fcea4692097b777a40858111295a2f0c
parent9a23d171c6848768b3af33295cbbabd29dea848b (diff)
downloadluaotfload-0eaa0d07ef75431cb5fa4f44232260b212e0b6c2.tar.gz
[letterspace] move to luaotfload.letterspace namespace
-rw-r--r--luaotfload-letterspace.lua21
1 files changed, 9 insertions, 12 deletions
diff --git a/luaotfload-letterspace.lua b/luaotfload-letterspace.lua
index da78864..7c5a967 100644
--- a/luaotfload-letterspace.lua
+++ b/luaotfload-letterspace.lua
@@ -40,18 +40,16 @@ local otffeatures = fonts.constructors.newfeatures "otf"
--[[doc--
Since the letterspacing method was derived initially from Context’s
- typo-krn.lua we keep the sub-namespace “typesetters” inside the
+ typo-krn.lua we keep the sub-namespace “letterspace” inside the
“luaotfload” table.
--doc]]--
-luaotfload.typesetters = luaotfload.typesetters or { }
-local typesetters = luaotfload.typesetters
-typesetters.kernfont = typesetters.kernfont or { }
-local kernfont = typesetters.kernfont
+luaotfload.letterspace = luaotfload.letterspace or { }
+local letterspace = luaotfload.letterspace
-kernfont.keepligature = false
-kernfont.keeptogether = false
+letterspace.keepligature = false
+letterspace.keeptogether = false
---=================================================================---
--- preliminary definitions
@@ -212,8 +210,8 @@ local kerncharacters
kerncharacters = function (head)
local start, done = head, false
local lastfont = nil
- local keepligature = kernfont.keepligature --- function
- local keeptogether = kernfont.keeptogether --- function
+ local keepligature = letterspace.keepligature --- function
+ local keeptogether = letterspace.keeptogether --- function
local fillup = false
local identifiers = fonthashes.identifiers
@@ -409,7 +407,6 @@ end
--- integration
---=================================================================---
---- kernfont_callback : fontwise
--- · callback: kerncharacters
--- · enabler: enablefontkerning
--- · disabler: disablefontkerning
@@ -443,14 +440,14 @@ end
--- unit -> bool
local enablefontkerning = function ( )
return add_processor( kerncharacters
- , "typesetters.kernfont"
+ , "luaotfload.letterspace"
, "pre_linebreak_filter"
, "hpack_filter")
end
--- unit -> bool
local disablefontkerning = function ( )
- return remove_processor "typesetters.kernfont"
+ return remove_processor "luaotfload.letterspace"
end
--[[doc--