View Issue Details

IDProjectCategoryView StatusLast Update
0000649luatexfeature requestpublic2014-03-30 12:02
ReporterPaul Isambert Assigned ToHans Hagen  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version0.66.0 
Summary0000649: Use control sequence names in node.has_attribute and others.
DescriptionIt'd be useful if one could use the name of a control sequence defined with \attributedef in node.has_attribute (as can be done in the tex.attribute table), e.g.:

\attributedef\myattr=100
\directlua{
  ...
  node.has_attribute(a_node, "myattr")
  ...
}

and similarly with node.set_attribute and node.unset_attribute.

(Currently, the string is ignored and the value of attribute 0 is returned.)
TagsNo tags attached.

Activities

Hans Hagen

2014-03-30 12:02

manager   ~0001268

that would slow down the (often critical) attr access code ... it's no big deal for a macro package to pass the number that relates to a such names to lua and then use a wrapper around has_attribute that uses that info ... also, we try to avoid too many dependencies like that in the lua-node-access code which is geared for speed

Hans Hagen

2014-03-30 12:02

manager   ~0001269

not needed

Issue History

Date Modified Username Field Change
2011-05-10 15:56 Paul Isambert New Issue
2011-05-10 19:51 Taco Status new => assigned
2011-05-10 19:51 Taco Assigned To => Taco
2014-03-30 12:02 Hans Hagen Note Added: 0001268
2014-03-30 12:02 Hans Hagen Note Added: 0001269
2014-03-30 12:02 Hans Hagen Status assigned => closed
2014-03-30 12:02 Hans Hagen Assigned To Taco => Hans Hagen
2014-03-30 12:02 Hans Hagen Resolution open => fixed