Peter Rolf wrote:
Hi,
can anyone with an actual *luatex* test, if this fails (live ConTeXt is broken). My binaries are from the minimals at contextgarden (pragma tree), ConTeXt is the latest beta.
if you consider how color is implemented, this is actually not a bug what do you expect in the following case ... \setbox\scratchbox{hi there} \hbox{\bf \copy\scratchbox} till we had luatex, only fonts could be considered an attribute, and a rather limited one: each glyph node has a font id attached; luatex has a more generalized concept, attributes, and *each* node can have attributes colors (and more) in mkiv are implemented using attributes and therefore things behave a bit different i'm still not sure what mkiv should provide, since both methods have their (dis)advantages and so it may not come as a surprise that there is some hackery around this compatibility issue .. % engine=luatex \setupcolors[state=start] \enableattributeinheritance \starttext \newbox\TESTbox \setbox\TESTbox\hbox{Silence is sexy.} \hbox{\color[red]{Silence is sexy.}{\color[blue]{Silence is sexy.}}} \hbox{\color[red]{\attributedcopy\TESTbox}\color[blue]{\attributedbox\TESTbox}} \stoptext i may reimplement this at some point using the new attr feature that comes with boxes (i had no time yet) when testing this a few minutes ago, i found out that this mechanisms was disabled; i uploaded a beta that should work ok it will take a while before such thinsg are sorted out, esp because there is no best way, most logical approach, no method that makes most sense (which is also why it's left to macro packages to deal with it) (btw, this phenomena is mentioned in mk.pdf, of which there is an updated version) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------