summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/node-tra.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-09-12 01:13:39 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2018-09-12 01:13:39 +0200
commit5c433e6e8accaa4bc9ebe0a094b925fe11a8edf5 (patch)
tree7b4b1b7efe2225b4694cc6f7c50707206f8d5b06 /tex/context/base/mkiv/node-tra.lua
parentfd9c4ecd4421d087de21bef1e53d8ffb016285b0 (diff)
downloadcontext-5c433e6e8accaa4bc9ebe0a094b925fe11a8edf5.tar.gz
2018-09-12 00:46:00
Diffstat (limited to 'tex/context/base/mkiv/node-tra.lua')
-rw-r--r--tex/context/base/mkiv/node-tra.lua20
1 files changed, 11 insertions, 9 deletions
diff --git a/tex/context/base/mkiv/node-tra.lua b/tex/context/base/mkiv/node-tra.lua
index 6d6f1a554..bb08e1030 100644
--- a/tex/context/base/mkiv/node-tra.lua
+++ b/tex/context/base/mkiv/node-tra.lua
@@ -99,18 +99,20 @@ function nodes.showlist(head, message)
end
function nodes.handlers.checkglyphs(head,message)
- local h = tonut(head)
+ local h = tonut(head) -- tonut needed?
local t = { }
+ local n = 0
local f = formatters["%U:%s"]
- for g in nextglyph, h do
- t[#t+1] = f(getchar(g),getsubtype(g))
+ for g, font, char in nextglyph, h do
+ n = n + 1
+ t[n] = f(char,getsubtype(g))
end
- if #t > 0 then
- if message and message ~= "" then
- report_nodes("%s, %s glyphs: % t",message,#t,t)
- else
- report_nodes("%s glyphs: % t",#t,t)
- end
+ if n == 0 then
+ -- nothing to report
+ elseif message and message ~= "" then
+ report_nodes("%s, %s glyphs: % t",message,n,t)
+ else
+ report_nodes("%s glyphs: % t",n,t)
end
return false
end