[NTG-context] upload

Max Chernoff mseven at telus.net
Thu Jul 7 03:15:37 CEST 2022


Hi,

With the latest upload, "tex.linebreak" doesn't return an "info" table.

When running this code:

     \startluacode
         function test(head)
             local new_head, info = tex.linebreak(node.copylist(head))

             print(head, type(head), info, type(info))

             if info == nil then
                 print "!!! info is nil !!!"
             end

             return head
         end

         nodes.tasks.appendaction("processors", "after", "test")
     \stopluacode

     \starttext
         Hello!
     \stoptext

with the latest upload I get (also note the small typo in "rigthfill"):

     luatex warning  > linebreak: no [ leftinit | rightinit | leftfill | rigthfill] expected
     <node :    nil <=   2265 =>   2353 : par vmodepar>      userdata        nil     nil
     !!! info is nil !!!
     <node :    nil <=   2475 =>   2299 : glue userskip>     userdata        nil     nil
     !!! info is nil !!!

but with live.contextgarden.net I get:

     luatex warning  > tex: left parfill skip is gone
     Underfull \hbox (badness 10000) in paragraph at lines 20--1
     <node :    nil <=    936 =>    929 : par vmode_par>	userdata	table: 0x39a050f7000	table
     <node :    nil <=   1529 =>   1561 : glue userskip>	userdata	nil	nil
     !!! info is nil !!!

Thanks,
-- Max


More information about the ntg-context mailing list