[latex3-commits] [l3svn] branch master updated: l3build: Convert a LuaTeX v1 \discretionary to TeX90 form

noreply at latex-project.org noreply at latex-project.org
Wed Oct 12 22:10:37 CEST 2016


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

The following commit(s) were added to refs/heads/master by this push:
       new  e9d87f2   l3build: Convert a LuaTeX v1 \discretionary to TeX90 form
e9d87f2 is described below

commit e9d87f274d0e0565d5a994ac91350be0be63e209
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Oct 12 21:09:33 2016 +0100

    l3build: Convert a LuaTeX v1 \discretionary to TeX90 form
    
    There is a potential optimisation in terms of having a list
    of different special cases twice. However, it's likely best to
    keep all of the forms separate as they may yet need more tweaking!
---
 l3build/l3build.lua |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/l3build/l3build.lua b/l3build/l3build.lua
index 59318e3..95e5160 100644
--- a/l3build/l3build.lua
+++ b/l3build/l3build.lua
@@ -967,6 +967,8 @@ function formatlualog(logfile, newfile)
           if string.match(lastline, "^%.+\\discretionary50%|$") then
             lastline =  string.gsub(lastline, "50%|$", "")
           end
+          -- Remove some info that TeX90 lacks
+          lastline = string.gsub(lastline, " %(penalty 50%)$", "")
           -- A normal (TeX90) discretionary:
           -- add with the line break reintroduced
           return lastline .. os_newline .. line, ""

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list