[luatex] LuaTeX 0.76: problem with pdf_colorstack whatsit

Stephan Hennig mailing_list at arcor.de
Mon May 13 23:19:04 CEST 2013


Am 29.04.2013 20:12, schrieb Stephan Hennig:

> Taco, is this change intentional?  It hasn't been announced in the
> LuaTeX changelog.  Do I have to adapt my code (the change breaks the
> spelling package) or will LuaTeX be fixed?

Ping!

Referring to field 'command' instead 'cmd' works.  I could test for the
correct node field, but since node.has_field(n, 'cmd') returns true and
node.has_field(n, 'command') returns false with LuaTeX 0.76, one needed
to explicitly test for an error triggered by an assignment to either field.

\directlua{
  local WHATSIT = node.id('whatsit')
  local PDF_COLORSTACK = node.subtype('pdf_colorstack')

  local function test_node_cmd()
    local n = node.new(WHATSIT, PDF_COLORSTACK)
    n.cmd = 1
  end

  if pcall(test_node_cmd) then
    texio.write_nl('node.cmd')
  else
    texio.write_nl('node.command')
  end
}
\bye

Do I need to add such an ugly test to my code or may we expect this to
be fixed before TL2013 is released?

Best regards,
Stephan Hennig



More information about the luatex mailing list