From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91454 Path: news.gmane.org!not-for-mail From: Christian Prim Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt-defined colours broken in TikZ in MkIV with latest betas Date: Thu, 14 May 2015 09:56:00 +0200 Message-ID: References: <552C2C44.3060101@wxs.nl> <552CD2DA.80500@wxs.nl> <55301475.80301@wxs.nl> <1429219797.10528.0@smtp.gmail.com> <5530454E.5090706@wxs.nl> <553C04A2.3000708@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1666622384==" X-Trace: ger.gmane.org 1431590210 30033 80.91.229.3 (14 May 2015 07:56:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 May 2015 07:56:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 14 09:56:35 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yso0R-0001hK-3p for gctc-ntg-context-518@m.gmane.org; Thu, 14 May 2015 09:56:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7020410225 for ; Thu, 14 May 2015 09:56:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qYVYa0v7EYN1 for ; Thu, 14 May 2015 09:56:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 9F9C31022A for ; Thu, 14 May 2015 09:56:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D1E24101E8 for ; Thu, 14 May 2015 09:56:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pIPTY3KfMWB5 for ; Thu, 14 May 2015 09:56:02 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 94C03101E6 for ; Thu, 14 May 2015 09:56:02 +0200 (CEST) Original-Received: from mail-la0-x22b.google.com (mail-la0-x22b.google.com [IPv6:2a00:1450:4010:c03::22b]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t4E7u1N9014169 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 14 May 2015 09:56:01 +0200 Original-Received: by layy10 with SMTP id y10so56174137lay.0 for ; Thu, 14 May 2015 00:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=qZ7F+8ie1hgVAmTrxztLBeMP56Gr2r0LeG0TAGJF6TY=; b=NtK72ov2f2Tl3bFs7/xkQHEAEi8pOdhic5jCid6gV6UEjo+MMo5xtbAjo5rhCSjkgA Dd/kD8N/j9SBtDhAJV0XIBVvP2DJOY58Z+KkB6ER7VntjOq4c4BPcHFzb0j1LOL2QgR8 BFKCQI8KwQwM+sGwqr0INMnhNNZ6P+TYVuD5XOjq16OK3jSmZGxHSi10iyWiBlIh0di9 rRG/92zCQDbhKKCWkGxqZPLNg8stwkD4ZXcQ6oGi7964ZcIqCvG9C2t9hUnpIMB1lwqk X+7M74OXf91/2C9OZDHsM11iAFWDuq7TlpyM2NUT9MWvAz4uhIr6humTMTXZ6YM8W99q eIcQ== X-Received: by 10.152.183.200 with SMTP id eo8mr2167771lac.57.1431590160764; Thu, 14 May 2015 00:56:00 -0700 (PDT) Original-Received: by 10.112.53.200 with HTTP; Thu, 14 May 2015 00:56:00 -0700 (PDT) In-Reply-To: <553C04A2.3000708@wxs.nl> X-Google-Sender-Auth: KwceyMe7lMUAPBU71WFwWR2VK2A X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c03::22b; country=FI; region=South Karelia; city=Lappeenranta; latitude=61.0667; longitude=28.1833; http://maps.google.com/maps?q=61.0667,28.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03OrHU13O - 8d9331b3b6ca - 20150514 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of christian.prim@gmail.com designates 2a00:1450:4010:c03::22b as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:4010:c03::22b; envelope-from=; helo=mail-la0-x22b.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:91454 Archived-At: --===============1666622384== Content-Type: multipart/alternative; boundary=001a113459acff14ce0516060ee4 --001a113459acff14ce0516060ee4 Content-Type: text/plain; charset=UTF-8 Thanks Hans with context-version 2015.05.13 23:52 it finally works on my side! Thanks for the fix! Christian 2015-04-25 23:18 GMT+02:00 Hans Hagen : > On 4/24/2015 3:05 PM, Christian Prim wrote: > >> Hi Hans >> >> I don't know if the latest beta already has the new code. But I can >> confirm, that there is still a difference between tikz-colors and >> context/metafun colors. >> >> TikZ translates c=1,m=1 in (native) RGB, that is b=1, which is in some >> way correct. >> ConTeXt translates c=1,m=1 in something I couldn't really define >> (perhaps sRGB or some other color profile) r=0.183... g=0.191... >> b=0.574... or in Web-Hex: #2e3092 >> >> or back to cmyk: c=.68, m=.67,k=.43 (which is blue with some key-value >> compared to TikZ with k=0) >> >> So I think that TikZ and ConTeXt don't use the same color profile.... >> >> Hope it could help somewhat to solve my problem. >> > > your example works ok here (with the tikz def file i made last week) > > i also made > > \setupcolors[cmyk=no] > \setupcolors[rgb=no] > \setupcolors[cmyk=no,rgb=no] > \setupcolors[state=stop] > > working (nothing needed in tikz as the code that interfaces to it does > that) which will be in the next beta > > > Hans > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --001a113459acff14ce0516060ee4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Hans

with context-version=C2=A02= 015.05.13 23:52 it finally works on my side! Thanks for the fix!
=
Christian

2015-04-25 23:18 GMT+02:00 Hans Hagen <pragma@wxs.nl>= :
On 4/24/2015 3:05 PM, Christian Prim= wrote:
Hi Hans

I don't know if the latest beta already has the new code. But I can
confirm, that there is still a difference between tikz-colors and
context/metafun colors.

TikZ translates c=3D1,m=3D1 in (native) RGB, that is b=3D1, which is in som= e
way correct.
ConTeXt translates c=3D1,m=3D1 in something I couldn't really define (perhaps sRGB or some other color profile) r=3D0.183... g=3D0.191...
b=3D0.574... or in Web-Hex: #2e3092

or back to cmyk: c=3D.68, m=3D.67,k=3D.43 (which is blue with some key-valu= e
compared to TikZ with k=3D0)

So I think that TikZ and ConTeXt don't use the same color profile....
Hope it could help somewhat to solve my problem.

your example works ok here (with the tikz def file i made last week)

i also made

\setupcolors[cmyk=3Dno]
\setupcolors[rgb=3Dno]
\setupcolors[cmyk=3Dno,rgb=3Dno]
\setupcolors[state=3Dstop]

working (nothing needed in tikz as the code that interfaces to it does that= ) which will be in the next beta


Hans


-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0| www.p= ragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http= ://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/contextrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________

--001a113459acff14ce0516060ee4-- --===============1666622384== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1666622384==--