> there are two user hooks:
> 
> tasks.appendaction("processors","before","modules.mine.whatever_a")
> tasks.appendaction("processors","after","modules.mine.whatever_b")
> -----------------------------------------

My example looks now

\starttext
\startluacode
function MyPreLB(head,gc)
  texio.write("\n")
  for n in node.traverse(head) do
    if node.type(n.id) == "glyph" then
      texio.write(string.char(n.char))
    elseif node.type(n.id) == "glue" then
      texio.write(' ')
    end
  end
  texio.write("\n")
  return head
end
tasks.appendaction("processors","before","MyPreLB")
\stopluacode
Dies ist ein Test.
\stoptext

Is it correct to return 'head'?

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to