\catcode`{=1 \catcode`}=2
\directlua0{callback.register("open_read_file",function(filename)
  print "opening file name";return end)}
\input plain.tex
