Re: [NTG-context] \placeregister[index][compress=yes] BROKEN ??

2008-01-29 Thread Steffen Wolfrum
In context version 20070417 it works. The next one (2007-07-24) fails.

Yours,
Steffen



Am 28.01.2008 um 18:45 schrieb Taco Hoekwater:

 Steffen Wolfrum wrote:
 Hi,

 please have a look at following minimal:

 I can confirm that it is indeed broken, but because of the
 mkii/mkiv split, it is hard for me to track the exact cause.
 Do you happen to know when the last moment (i.e. context release)
 was that it *did* work?

 Best wishes,
 Taco

 \starttext

 \placeregister[index][compress=no] \blank[5*big]
 \placeregister[index][compress=yes]

 \page
 test text \index{test index}
 \section{heading}
 more test text \index{test index}
 \section{heading}
 more test text \index{test index}
 %\page test text% --- comment / uncomment this line
 \page
 \section{heading text \index{test index}}
 more test text \index{test index}
 \page
 test text \index{test index}
 \section{heading text \index{test index}}
 more test text \index{test index}

 \stoptext


 The compress=yes seems to be corrupt.

 Steffen
 (I am using vers. 2008.01.03)


 _ 
 __
 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
 _ 
 __

 __ 
 _
 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
 __ 
 _

___
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] \placeregister[index][compress=yes] BROKEN ??

2008-01-29 Thread Taco Hoekwater
Steffen Wolfrum wrote:
 In context version 20070417 it works. The next one (2007-07-24) fails.

And here is a document-level patch (mkii mode) that fixes it.
I leave it up to Hans to formalize this properly.

\unprotect

% The standard \mkloadregister takes one 1 argument, not enough
% because the before and after placeregister commands are then
% not executed. Xtended definition:
\def\mkloadregisterX#1#2#3%
   {\doutilities{#1}{\registerparameter\c!file}{#1}{#2}{#3}}

\def\doplaceregister[#1][#2]%
   {\iffirstargument
  \begingroup
  \edef\currentregister{#1}%
  \setupregister[\currentregister][#2]%
  \doifelse{\registerparameter\c!compress}\v!yes % new
 {\chardef\collapseregisterpages\plusone}
 {\chardef\collapseregisterpages\zerocount}%
  \raggedright
  \startcolumns
[\c!n=\registerparameter\c!n,
 \c!balance=\registerparameter\c!balance,
 \c!align=\registerparameter\c!align]%
  \dontcomplain
  \startpacked[\v!blank]%
  \mkloadregisterX % TH this does it
 \currentregister\dobeforeplaceregister\doafterplaceregister
  \stoppacked
  \stopcolumns
  \endgroup
\fi}
\protect


Best wishes,
Taco
___
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] \placeregister[index][compress=yes] BROKEN ??

2008-01-28 Thread Steffen Wolfrum

Am 28.01.2008 um 18:45 schrieb Taco Hoekwater:

 Steffen Wolfrum wrote:
 Hi,

 please have a look at following minimal:

 I can confirm that it is indeed broken, but because of the
 mkii/mkiv split, it is hard for me to track the exact cause.
 Do you happen to know when the last moment (i.e. context release)
 was that it *did* work?


Not ad hoc.
But I can run some tests tomorrow.


Thanks,

Steffen
___
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] \placeregister[index][compress=yes] BROKEN ??

2008-01-28 Thread Taco Hoekwater
Steffen Wolfrum wrote:
 Hi,
 
 please have a look at following minimal:

I can confirm that it is indeed broken, but because of the
mkii/mkiv split, it is hard for me to track the exact cause.
Do you happen to know when the last moment (i.e. context release)
was that it *did* work?

Best wishes,
Taco

 \starttext
 
 \placeregister[index][compress=no] \blank[5*big]
 \placeregister[index][compress=yes]
 
 \page
 test text \index{test index}
 \section{heading}
 more test text \index{test index}
 \section{heading}
 more test text \index{test index}
 %\page test text% --- comment / uncomment this line
 \page
 \section{heading text \index{test index}}
 more test text \index{test index}
 \page
 test text \index{test index}
 \section{heading text \index{test index}}
 more test text \index{test index}
 
 \stoptext
 
 
 The compress=yes seems to be corrupt.
 
 Steffen
 (I am using vers. 2008.01.03)
 
 
 ___
 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
 ___

___
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
___