[latex3-commits] [git/LaTeX3-latex3-luaotfload] harfnode-dev: More bugs (fab8216)
Marcel Fabian Krüger
tex at 2krueger.de
Tue Oct 1 23:40:12 CEST 2019
Repository : https://github.com/latex3/luaotfload
On branch : harfnode-dev
Link : https://github.com/latex3/luaotfload/commit/fab8216c0064a92a33ebed1aab91f60534b469dc
>---------------------------------------------------------------
commit fab8216c0064a92a33ebed1aab91f60534b469dc
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Tue Oct 1 23:40:12 2019 +0200
More bugs
>---------------------------------------------------------------
fab8216c0064a92a33ebed1aab91f60534b469dc
src/harf/harf-node.lua | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/src/harf/harf-node.lua b/src/harf/harf-node.lua
index 71c941e..6b98452 100644
--- a/src/harf/harf-node.lua
+++ b/src/harf/harf-node.lua
@@ -262,7 +262,6 @@ local shape
-- Make s a sub run, used by discretionary nodes.
local function makesub(run, codes, nodelist)
- local codes = run.codes
local subrun = {
start = 1,
len = #codes,
@@ -273,9 +272,6 @@ local function makesub(run, codes, nodelist)
codes = codes,
}
table.print(subrun)
- for n in traverse(nodelist) do
- print(tonode(n))
- end
local glyphs
nodelist, glyphs = shape(nodelist, nodelist, subrun)
return { glyphs = glyphs, run = subrun, head = nodelist }
@@ -506,15 +502,15 @@ shape = function(head, node, run)
do local newpre = copynodelist(startnode, disc)
setnext(tail(newpre), pre)
pre = newpre end
- printnodes('PRE', pre)
+ -- printnodes('PRE', pre)
if post then
setnext(lastpost, copynodelist(getnext(disc), stopnode))
else
post = copynodelist(getnext(disc), stopnode)
end
- printnodes('POST', post)
- printnodes('HEAD', head)
- printnodes('REP', rep)
+ -- printnodes('POST', post)
+ -- printnodes('HEAD', head)
+ -- printnodes('REP', rep)
if startnode ~= disc then
local predisc = getprev(disc)
setnext(predisc, rep)
@@ -530,8 +526,8 @@ shape = function(head, node, run)
rep = startnode
lastrep = lastrep or predisc
end
- printnodes('HEAD', head)
- printnodes('REP', rep)
+ -- printnodes('HEAD', head)
+ -- printnodes('REP', rep)
if getnext(disc) ~= stopnode then
setnext(getprev(stopnode), nil)
setprev(stopnode, disc)
@@ -539,10 +535,9 @@ shape = function(head, node, run)
setnext(lastrep, getnext(disc))
rep = rep or getnext(disc)
setnext(disc, stopnode)
- print(disc, stopnode)
end
- printnodes('HEAD', head)
- printnodes('REP', rep)
+ -- printnodes('HEAD', head)
+ -- printnodes('REP', rep)
glyph.replace = makesub(run, repcodes, rep)
glyph.pre = makesub(run, precodes, pre)
glyph.post = makesub(run, postcodes, post)
More information about the latex3-commits
mailing list