summaryrefslogtreecommitdiff
path: root/tex/context/base/char-utf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/char-utf.lua')
-rw-r--r--tex/context/base/char-utf.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/tex/context/base/char-utf.lua b/tex/context/base/char-utf.lua
index 54ace8c9b..154213ea8 100644
--- a/tex/context/base/char-utf.lua
+++ b/tex/context/base/char-utf.lua
@@ -362,7 +362,13 @@ not collecting tokens is not only faster but also saves garbage collecting.
--~ return str
--~ end
-function utffilters.collapse(str) -- not really tested (we could preallocate a table)
+local skippable = table.tohash { "mkiv", "mkvi" }
+local filesuffix = file.suffix
+
+function utffilters.collapse(str,filename) -- not really tested (we could preallocate a table)
+ if skippable[filesuffix(filename)] then
+ return str
+ end
if str and str ~= "" then
local nstr = #str
if nstr > 1 then