summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/typo-cap.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-07-16 22:42:53 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-07-16 22:42:53 +0200
commita92a8d40ce567ecf5b0baacd9a93a94aac9a4a2d (patch)
tree17f7038c1c3b353bc2130af87066676d49f87184 /tex/context/base/mkiv/typo-cap.lua
parent4bc28891615011ed3581836e9259434720e25830 (diff)
downloadcontext-a92a8d40ce567ecf5b0baacd9a93a94aac9a4a2d.tar.gz
2019-07-16 18:30:00
Diffstat (limited to 'tex/context/base/mkiv/typo-cap.lua')
-rw-r--r--tex/context/base/mkiv/typo-cap.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/typo-cap.lua b/tex/context/base/mkiv/typo-cap.lua
index 7e8003c62..64bb66dab 100644
--- a/tex/context/base/mkiv/typo-cap.lua
+++ b/tex/context/base/mkiv/typo-cap.lua
@@ -315,6 +315,9 @@ register(variables.camel, camel) -- 10
register(variables.cap, variables.capital) -- clone
register(variables.Cap, variables.Capital) -- clone
+-- this can be more clever: when we unset we can actually
+-- use the same attr ref if needed
+
function cases.handler(head) -- not real fast but also not used on much data
local start = head
local lastfont = { }
@@ -341,9 +344,10 @@ function cases.handler(head) -- not real fast but also not used on much data
end
local action = actions[n] -- map back to low number
if action then
- start = action(start,attr,lastfont,n,count)
+ local quit
+ start, quit = action(start,attr,lastfont,n,count)
if trace_casing then
- report_casing("case trigger %a, instance %a, fontid %a, result %a",n,m,id,ok)
+ report_casing("case trigger %a, instance %a, fontid %a, result %a",n,m,id,quit and "-" or "+")
end
elseif trace_casing then
report_casing("unknown case trigger %a",n)