ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \doprepareidentity
@ 2005-03-16 16:30 Peter Münster
  2005-03-17  8:21 ` \doprepareidentity Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Münster @ 2005-03-16 16:30 UTC (permalink / raw)


Hello,
in order to get correct output of pdfinfo, I need to redefine
\doprepareidentity :

\let\doprepareidentity\relax % try with and without this line
\setupoutput[pdf]
\enableregime[il1]
\setupinteraction[state=start,author=ä,title=ä,subtitle=ä,keyword=ä]
\starttext
test
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \doprepareidentity
  2005-03-16 16:30 \doprepareidentity Peter Münster
@ 2005-03-17  8:21 ` Hans Hagen
  2005-03-17 16:01   ` \doprepareidentity Peter Münster
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2005-03-17  8:21 UTC (permalink / raw)


Peter Münster wrote:

> Hello,
> in order to get correct output of pdfinfo, I need to redefine
> \doprepareidentity :
> 
> \let\doprepareidentity\relax % try with and without this line
> \setupoutput[pdf]
> \enableregime[il1]
> \setupinteraction[state=start,author=ä,title=ä,subtitle=ä,keyword=ä]
> \starttext
> test
> \stoptext

patch this on core-int:

\def\doprepareidentity        % beware, we need to construct
   {\let\!!stringa\@@iakeyword % an unexpanded space separated
    \let\@@iakeyword\empty     % list of keywords from a comma
    \def\doprepareidentity##1% % separated one
      {\ifx\@@iakeyword\empty
         \appended\def\@@iakeyword{##1}%
       \else
         \appended\def\@@iakeyword{ ##1}%
       \fi}%
    \@EA\processcommalist\@EA[\!!stringa]\doprepareidentity
    \global\let\doprepareidentity\relax}

(lazy expansion is needed)

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \doprepareidentity
  2005-03-17  8:21 ` \doprepareidentity Hans Hagen
@ 2005-03-17 16:01   ` Peter Münster
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Münster @ 2005-03-17 16:01 UTC (permalink / raw)


On Thu, 17 Mar 2005, Hans Hagen wrote:

> patch this on core-int:
> 
> \def\doprepareidentity        % beware, we need to construct
>    {\let\!!stringa\@@iakeyword % an unexpanded space separated
>     \let\@@iakeyword\empty     % list of keywords from a comma
>     \def\doprepareidentity##1% % separated one
>       {\ifx\@@iakeyword\empty
>          \appended\def\@@iakeyword{##1}%
>        \else
>          \appended\def\@@iakeyword{ ##1}%
>        \fi}%
>     \@EA\processcommalist\@EA[\!!stringa]\doprepareidentity
>     \global\let\doprepareidentity\relax}

Thanks, this works very well!
Peter

-- 
http://pmrb.free.fr/contact/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-17 16:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-16 16:30 \doprepareidentity Peter Münster
2005-03-17  8:21 ` \doprepareidentity Hans Hagen
2005-03-17 16:01   ` \doprepareidentity Peter Münster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).