[latex3-commits] [git/LaTeX3-latex3-l3build] master: More kern normalisation (a6a35b0)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed Mar 7 14:57:52 CET 2018
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/a6a35b059c98125fed7c9cc84dde308f9cdea006
>---------------------------------------------------------------
commit a6a35b059c98125fed7c9cc84dde308f9cdea006
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Mar 7 12:28:34 2018 +0000
More kern normalisation
>---------------------------------------------------------------
a6a35b059c98125fed7c9cc84dde308f9cdea006
l3build-check.lua | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/l3build-check.lua b/l3build-check.lua
index c2fe2c8..2239fe9 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -338,8 +338,14 @@ local function formatlualog(logfile, newfile, luatex)
-- Re-insert the space in explicit kerns
if match(line, "kern%-?%d+%.%d+ *$") then
line = gsub(line, "kern", "kern ")
- elseif match(line, " %(font%)$") then
- line = gsub(line, " %(font%)", "")
+ elseif match(line, "%(accent%)$") then
+ line = gsub(line, "kern", "kern ")
+ line = gsub(line, "%(accent%)$", "(for accent)")
+ elseif match(line, "%(italic%)$") then
+ line = gsub(line, "kern", "kern ")
+ line = gsub(line, " %(italic%)$", "")
+ else
+ line = gsub(line, " %(font%)$", "")
end
end
-- Changes in PDF specials
@@ -351,6 +357,7 @@ local function formatlualog(logfile, newfile, luatex)
-- 'Recover' some discretionary data
if match(lastline, "^%.+\\discretionary %(penalty 50%)$") and
match(line, boxprefix(lastline) .. "%.= ") then
+ line = gsub(line," %(font%)$","")
return gsub(line, "%.= ", ""),""
end
-- Where the last line was a discretionary, looks for the
More information about the latex3-commits
mailing list