[NTG-context] bug in \doattributed[box|copy]

2007-12-30 Thread Peter Rolf
Hi,

compilation still breaks in case of a vbox. Minimal example attached.

Best wishes and a happy new year,

Peter


-
Among the maxims on Lord Naoshige's wall there was this one:
Matters of great concern should be treated lightly.
Master Ittei commented,
Matters of small concern should be treated seriously. [..]

(Hagakure)
% engine=luatex
\starttext

\enableattributeinheritance

\setbox\scratchbox\vbox{foo}
\attributedbox\scratchbox

\stoptext
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug in \doattributed[box|copy]

2007-12-30 Thread luigi scarso
On Dec 30, 2007 3:09 PM, Peter Rolf [EMAIL PROTECTED] wrote:
 Hi,

 compilation still breaks in case of a vbox. Minimal example attached.
Confirm with last mkiv
This is LuaTeX, Version snapshot-0.20.2-2007121721 (Web2C 7.5.6)
ConTeXt  ver: 2007.12.29 22:30 MKIV  fmt: 2007.12.30  int: english/english

With hbox compilation is ok.

-- 
luigi
http://wiki.contextgarden.net/User:Luigi.scarso/Merry_Christmas_2007

it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug in \doattributed[box|copy]

2007-12-30 Thread Wolfgang Schuster
On Dec 30, 2007 6:01 PM, luigi scarso [EMAIL PROTECTED] wrote:
 On Dec 30, 2007 3:09 PM, Peter Rolf [EMAIL PROTECTED] wrote:
  Hi,
 
  compilation still breaks in case of a vbox. Minimal example attached.
 Confirm with last mkiv
 This is LuaTeX, Version snapshot-0.20.2-2007121721 (Web2C 7.5.6)
 ConTeXt  ver: 2007.12.29 22:30 MKIV  fmt: 2007.12.30  int: english/english

 With hbox compilation is ok.

Easy to fix.

% engine=luatex

\def\dodoattributedcopy
  {\startinheritattributes\ifvbox\attributeboxcount\vbox\else\hbox\fi
 {\ifvbox\attributeboxcount\unvcopy\else\unhcopy\fi\attributeboxcount}%
   \stopinheritattributes}

\def\dodoattributedbox
  {\startinheritattributes\ifvbox\attributeboxcount\vbox\else\hbox\fi
 {\ifvbox\attributeboxcount\unvbox\else\unhbox\fi\attributeboxcount}%
   \stopinheritattributes}

\starttext

\enableattributeinheritance

\setbox\scratchbox\vbox{foo}
\attributedbox\scratchbox

\stoptext

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug in \doattributed[box|copy]

2007-12-30 Thread luigi scarso
 Easy to fix.

 % engine=luatex

 \def\dodoattributedcopy
   {\startinheritattributes\ifvbox\attributeboxcount\vbox\else\hbox\fi
  {\ifvbox\attributeboxcount\unvcopy\else\unhcopy\fi\attributeboxcount}%
\stopinheritattributes}

 \def\dodoattributedbox
   {\startinheritattributes\ifvbox\attributeboxcount\vbox\else\hbox\fi
  {\ifvbox\attributeboxcount\unvbox\else\unhbox\fi\attributeboxcount}%
\stopinheritattributes}

 \starttext

 \enableattributeinheritance

 \setbox\scratchbox\vbox{foo}
 \attributedbox\scratchbox

 \stoptext

 Wolfgang

Compilation ok with last mkiv
This is LuaTeX, Version snapshot-0.20.2-2007121721 (Web2C 7.5.6)
ConTeXt  ver: 2007.12.29 22:30 MKIV  fmt: 2007.12.30  int: english/english
-- 
luigi
http://wiki.contextgarden.net/User:Luigi.scarso/Merry_Christmas_2007

it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug in \doattributed[box|copy]

2007-12-30 Thread Hans Hagen
Wolfgang Schuster wrote:

 Easy to fix.

ok, will be fixed in next upload


-
   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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___