ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* overprint and \currentcolorname in mkiv
@ 2009-03-06 14:25 Peter Rolf
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Rolf @ 2009-03-06 14:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: overprint and currentcolorname in mkiv
  2008-09-16 13:11         ` Hans Hagen
@ 2008-09-16 14:05           ` Peter Rolf
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Rolf @ 2008-09-16 14:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: overprint and currentcolorname in mkiv
  2008-09-15 12:21       ` Peter Rolf
@ 2008-09-16 13:11         ` Hans Hagen
  2008-09-16 14:05           ` Peter Rolf
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2008-09-16 13:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


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

* Re: overprint and currentcolorname in mkiv
  2008-09-15  7:33     ` Hans Hagen
@ 2008-09-15 12:21       ` Peter Rolf
  2008-09-16 13:11         ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Rolf @ 2008-09-15 12:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: overprint and currentcolorname in mkiv
  2008-09-14 13:27   ` Peter Rolf
@ 2008-09-15  7:33     ` Hans Hagen
  2008-09-15 12:21       ` Peter Rolf
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2008-09-15  7:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: overprint and currentcolorname in mkiv
  2008-09-12 17:17 ` Hans Hagen
@ 2008-09-14 13:27   ` Peter Rolf
  2008-09-15  7:33     ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Rolf @ 2008-09-14 13:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans Hagen schrieb:
> Peter Rolf wrote:
> 
>> is overprinting working in mkiv?
> 
> well, i did implement it (but hardly tested it)
>

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


No problems with mkii.

>> \ctxlua{overprints.enabled=true}
> 
> should be enabled automatically when used, don't mess around with such 
> low level settings
>
sure. was just a shortcut for testing :D

Peter

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


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

* Re: overprint and currentcolorname in mkiv
  2008-09-12 16:09 overprint and currentcolorname " Peter Rolf
@ 2008-09-12 17:17 ` Hans Hagen
  2008-09-14 13:27   ` Peter Rolf
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2008-09-12 17:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* overprint and currentcolorname in mkiv
@ 2008-09-12 16:09 Peter Rolf
  2008-09-12 17:17 ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Rolf @ 2008-09-12 16:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

end of thread, other threads:[~2009-03-06 14:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-06 14:25 overprint and \currentcolorname in mkiv Peter Rolf
  -- strict thread matches above, loose matches on Subject: below --
2008-09-12 16:09 overprint and currentcolorname " Peter Rolf
2008-09-12 17:17 ` Hans Hagen
2008-09-14 13:27   ` Peter Rolf
2008-09-15  7:33     ` Hans Hagen
2008-09-15 12:21       ` Peter Rolf
2008-09-16 13:11         ` Hans Hagen
2008-09-16 14:05           ` Peter Rolf

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