summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/meta-blb.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-06-13 09:56:22 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2018-06-13 09:56:22 +0200
commit204057fdc5023b5f4ff55a69bc6593388ea427e7 (patch)
tree2153d525f1fb854189772d3109be782a0aeb14fd /tex/context/base/mkiv/meta-blb.lua
parent7686a24f79edfef2a9d013882c822c76a12e23dc (diff)
downloadcontext-204057fdc5023b5f4ff55a69bc6593388ea427e7.tar.gz
2018-06-12 21:56:00
Diffstat (limited to 'tex/context/base/mkiv/meta-blb.lua')
-rw-r--r--tex/context/base/mkiv/meta-blb.lua24
1 files changed, 17 insertions, 7 deletions
diff --git a/tex/context/base/mkiv/meta-blb.lua b/tex/context/base/mkiv/meta-blb.lua
index 957af16ca..d3418199c 100644
--- a/tex/context/base/mkiv/meta-blb.lua
+++ b/tex/context/base/mkiv/meta-blb.lua
@@ -196,7 +196,12 @@ local function process(object,prescript,before,after)
-- end
end
-metapost.installplugin(reset,analyze,process)
+metapost.installplugin {
+ name = "texblob",
+ reset = reset,
+ analyze = analyze,
+ process = process,
+}
-- Here follows an example of usage of the above: a more modern
-- version of followokens (in meta-imp-txt.mkiv).
@@ -279,7 +284,7 @@ interfaces.implement {
actions = initialize,
}
-local tb_reset, tb_analyze, tb_process do
+local ft_reset, ft_analyze, ft_process do
if metapost.use_one_pass then
@@ -300,7 +305,7 @@ local tb_reset, tb_analyze, tb_process do
end
}
- tb_process = function(object,prescript,before,after)
+ ft_process = function(object,prescript,before,after)
object.path = false
object.color = false
object.grouped = true
@@ -310,11 +315,11 @@ local tb_reset, tb_analyze, tb_process do
else
- tb_reset = function()
+ ft_reset = function()
-- nothing
end
- tb_analyze = function(object,prescript)
+ ft_analyze = function(object,prescript)
if prescript.ft_stage == "trial" then
local ft_category = tonumber(prescript.ft_category)
if ft_category then
@@ -325,7 +330,7 @@ local tb_reset, tb_analyze, tb_process do
end
end
- tb_process = function(object,prescript,before,after)
+ ft_process = function(object,prescript,before,after)
if prescript.ft_stage == "final" then
object.path = false
object.color = false
@@ -339,4 +344,9 @@ local tb_reset, tb_analyze, tb_process do
end
-metapost.installplugin(tb_reset,tb_analyze,tb_process)
+metapost.installplugin {
+ name = "followtext",
+ reset = ft_reset,
+ analyze = ft_analyze,
+ process = ft_process,
+}