summaryrefslogtreecommitdiff
path: root/tex/context/base/typo-pag.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2014-01-07 15:19:00 +0100
committerHans Hagen <pragma@wxs.nl>2014-01-07 15:19:00 +0100
commit18ad0b8b1c759d062ff9d90476552e20926f2723 (patch)
treea9b34362a1fc8a84e040e1ce337222a3f38e2ff3 /tex/context/base/typo-pag.lua
parent539201b19e95e9e3c2279e12485866e2f0919262 (diff)
downloadcontext-18ad0b8b1c759d062ff9d90476552e20926f2723.tar.gz
beta 2014.01.07 15:19
Diffstat (limited to 'tex/context/base/typo-pag.lua')
-rw-r--r--tex/context/base/typo-pag.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/tex/context/base/typo-pag.lua b/tex/context/base/typo-pag.lua
index 148eac875..5b96e9c21 100644
--- a/tex/context/base/typo-pag.lua
+++ b/tex/context/base/typo-pag.lua
@@ -6,6 +6,14 @@ if not modules then modules = { } end modules ['typo-pag'] = {
license = "see context related readme files"
}
+
+builders = builders or { }
+local builders = builders
+
+builders.paragraphs = builders.paragraphs or { }
+local parbuilders = builders.paragraphs
+
+local nodes = nodes
local nodecodes = nodes.nodecodes
local hlist_code = nodecodes.hlist
@@ -43,7 +51,7 @@ trackers.register("parbuilders.keeptogether", function(v) trace_keeptogether =
-- todo: also support lines = 3 etc (e.g. dropped caps) but how to set that
-- when no hlists are there ? ... maybe the local_par
-function builders.paragraphs.registertogether(line,specification) -- might change
+function parbuilders.registertogether(line,specification) -- might change
if not enabled then
nodes.tasks.enableaction("finalizers","builders.paragraphs.keeptogether")
end
@@ -170,7 +178,7 @@ end
-- also look at first non glue/kern node e.g for a dropped caps
-function builders.paragraphs.keeptogether(head)
+function parbuilders.keeptogether(head)
local done = false
local current = tonut(head)
while current do