[NTG-context] overprint and \currentcolorname in mkiv

2009-03-06 Thread Peter Rolf

Hi Hans,

the subject is re-used from an older mail

http://archive.contextgarden.net/message/20080912.160921.cb5bba9d.en.html

>> Currently I try to adapt some mkii code to mkiv. Overprinting should
>> only be enabled if
>> - a given maximum font size is not exceeded and
>> - the current text color is black.
>>
>> So I also need \currentcolorname (or something similar) for that test.
>>
>> [colo-new.mkiv:]
>> \def\currentcolorname{\s!black} % todo

You were so kind to add \doifblackelse in mkiv, but without a working 
\currentcolorname it is pretty useless at the moment. I want to closure 
the (inconvenient) prepress topic and overprinting is the last unsolved 
problem. Any chance that this will be implemented in the near future?


Best wishes,

Peter

--
 "Es ist doch ein Trost,
  das Geldgier manchmal blöd macht."

- Kottan in "Kottan ermittelt", Folge 9: "Die Einteilung" -

___
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] overprint and currentcolorname in mkiv

2008-09-16 Thread Peter Rolf
Hans Hagen schrieb:
 \setupcolors[state=start]

 \starttext

 No overprinting.

 \startoverprint
 Overprinting is active.
 \stopoverprint

 \stoptext
>>> run ok here, but the question is .. what exactly do you expect to see
>>>
>> to be exact: some orange text :)
> 
> can you check if the current beta is more in sync with pdftex?
> 

orange text *AND* 'OVP 1' mode :)

to put it into one word: perfect!!!

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

___
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] overprint and currentcolorname in mkiv

2008-09-16 Thread Hans Hagen

>>> \setupcolors[state=start]
>>>
>>> \starttext
>>>
>>> No overprinting.
>>>
>>> \startoverprint
>>> Overprinting is active.
>>> \stopoverprint
>>>
>>> \stoptext
>> run ok here, but the question is .. what exactly do you expect to see
>>
> 
> to be exact: some orange text :)

can you check if the current beta is more in sync with pdftex?


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


Re: [NTG-context] overprint and currentcolorname in mkiv

2008-09-15 Thread Peter Rolf
Hans Hagen schrieb:
> Peter Rolf wrote:
> 
>> Well, it seems that my formulation was too fuzzy (its out of question
>> that overprinting is implemented). Anyhow, its time to test it again.
>> This code fails here and at ConTeXt live (online).
>>
>>
>> \setupcolors[state=start]
>>
>> \starttext
>>
>> No overprinting.
>>
>> \startoverprint
>> Overprinting is active.
>> \stopoverprint
>>
>> \stoptext
> 
> run ok here, but the question is .. what exactly do you expect to see
>

to be exact: some orange text :)

Acrobat8 menu 'Advanced'-->'Print Production'-->'Output Preview...'

[Output Preview Window]
- select 'Color Warnings' entry in the 'Preview' listbox
- check the now visible 'Show Overprinting' checkbox

Now all overprinting stuff is shown in the selected color (orange).
Well, at least should...

After comparing the pdftex and the luatex pdf files, I found a
difference in the used overprinting modes. pdftex uses the 'Standard
Overprinting Mode' (OPM 0) here and luatex the 'Illustrator Overprinting
Mode' (OPM 1). This is probably the reason why the overprinting is not
shown in orange in the prior described output preview. So its no ConTeXt
related problem (overprinting attribute is set), but more a bug or at
least missing feature in Acrobat8.

I have to read more about the differences between the two modes. What I
have found out so far (no guarantee):

- 'OPM 0' overprints only on gray and spot colors (which makes it nearly
useless for my needs)
- 'OPM 1' can overprint on CMYK, but only if the RIP is capable of
Postscript Level 3. If any color channel of the overprinting color is at
0%, the overprinting is done channelwise (which means the corresponding
channel of the underlying color is visible in case of the 0% channel; so
knockout should be used here instead of overprinting)
- Also overprinting in general only works if no ICC-profile is attached
to the object


Sigh, prepress problems. Sorry for the noise!

Peter

___
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] overprint and currentcolorname in mkiv

2008-09-15 Thread Hans Hagen
Peter Rolf wrote:

> Well, it seems that my formulation was too fuzzy (its out of question
> that overprinting is implemented). Anyhow, its time to test it again.
> This code fails here and at ConTeXt live (online).
> 
> 
> \setupcolors[state=start]
> 
> \starttext
> 
> No overprinting.
> 
> \startoverprint
> Overprinting is active.
> \stopoverprint
> 
> \stoptext

run ok here, but the question is .. what exactly do you expect to see


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


Re: [NTG-context] overprint and currentcolorname in mkiv

2008-09-12 Thread Hans Hagen
Peter Rolf wrote:

> is overprinting working in mkiv?

well, i did implement it (but hardly tested it)

> \ctxlua{overprints.enabled=true}

should be enabled automatically when used, don't mess around with such 
low level settings


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


[NTG-context] overprint and currentcolorname in mkiv

2008-09-12 Thread Peter Rolf
Hi,

is overprinting working in mkiv?

\ctxlua{overprints.enabled=true}

has no effect here or on ConTeXt live. Maybe I'm missing something.

Currently I try to adapt some mkii code to mkiv. Overprinting should
only be enabled if
- a given maximum font size is not exceeded and
- the current text color is black.

So I also need \currentcolorname (or something similar) for that test.

[colo-new.mkiv:]
\def\currentcolorname{\s!black} % todo

This is all unhasty, but if there is a solution, let me know.


Best wishes, Peter
___
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
___