summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/grph-rul.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-05-15 21:07:12 +0000
committerKarl Berry <karl@freefriends.org>2016-05-15 21:07:12 +0000
commitb6a82290dcde74722176ee588102f1c924c9fa89 (patch)
tree474838d10829e68cddc94c207df2ae9b98600ada /Master/texmf-dist/tex/context/base/mkiv/grph-rul.lua
parentde072b82538a959d5fc50c3a3316d0668c26db9c (diff)
context (15may16)
git-svn-id: svn://tug.org/texlive/trunk@41152 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/grph-rul.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/grph-rul.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/grph-rul.lua b/Master/texmf-dist/tex/context/base/mkiv/grph-rul.lua
index 5d3cb8ad5d1..e5aa053963d 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/grph-rul.lua
+++ b/Master/texmf-dist/tex/context/base/mkiv/grph-rul.lua
@@ -23,6 +23,10 @@ local a_colorspace = attributes.private('colormodel')
local mpcolor = attributes.colors.mpcolor
+local trace_mp = false trackers.register("rules.mp", function(v) trace_mp = v end)
+
+local report_mp = logs.reporter("rules","mp")
+
local floor = math.floor
local random = math.random
@@ -65,6 +69,7 @@ FakeWord(%width%,%height%,%depth%,%line%,%color%);
FakeRule(%width%,%height%,%depth%,%line%,%color%);
]],
["fake:rest"] = replacer [[
+RuleOption := "%option%" ;
RuleWidth := %width% ;
RuleHeight := %height% ;
RuleDepth := %depth% ;
@@ -87,8 +92,12 @@ def RuleColor = %color% enddef ;
offset = p.offset or 0,
line = (p.line or 65536) * bpfactor,
color = mpcolor(p.ma,p.ca,p.ta),
+ option = p.option or "",
}
local m = cache[code]
+ if trace_mp then
+ report_mp(m)
+ end
if m and m ~= "" then
pdfprint("direct",m)
end