From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78287 Path: news.gmane.org!not-for-mail From: pol stra Newsgroups: gmane.comp.tex.context Subject: Re: ntg-context Digest, Vol 99, Issue 40 Date: Fri, 14 Sep 2012 16:57:21 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1875072486==" X-Trace: ger.gmane.org 1347634656 22032 80.91.229.3 (14 Sep 2012 14:57:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 14:57:36 +0000 (UTC) To: conteXt mail Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 14 16:57:38 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCXKq-0006sc-Bk for gctc-ntg-context-518@m.gmane.org; Fri, 14 Sep 2012 16:57:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 728C010201; Fri, 14 Sep 2012 16:57:32 +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 sbbF-7oI3ViW; Fri, 14 Sep 2012 16:57:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 58AF5101F8; Fri, 14 Sep 2012 16:57:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AD654101F8 for ; Fri, 14 Sep 2012 16:57:28 +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 SK3LV7lqVjLs for ; Fri, 14 Sep 2012 16:57:27 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id CFA83101F6 for ; Fri, 14 Sep 2012 16:57:27 +0200 (CEST) Original-Received: from bay0-omc2-s15.bay0.hotmail.com (bay0-omc2-s15.bay0.hotmail.com [65.54.190.90]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8EEvPmu030985 for ; Fri, 14 Sep 2012 16:57:26 +0200 Original-Received: from BAY002-W160 ([65.54.190.124]) by bay0-omc2-s15.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 14 Sep 2012 07:57:21 -0700 X-Originating-IP: [193.49.32.254] Importance: Normal In-Reply-To: X-OriginalArrivalTime: 14 Sep 2012 14:57:21.0411 (UTC) FILETIME=[3E209530:01CD9289] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=65.54.190.90; country=US; region=WA; city=Redmond; postalcode=98052; latitude=47.6801; longitude=-122.1206; metrocode=819; areacode=425; http://maps.google.com/maps?q=47.6801,-122.1206&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07HX2VqCE - 3c4348dacad6 - 20120914 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78287 Archived-At: --===============1875072486== Content-Type: multipart/alternative; boundary="_fc635387-92ec-4152-89a7-2c97d41b59b1_" --_fc635387-92ec-4152-89a7-2c97d41b59b1_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Troy Henderson said: >I tested this on a black-on-transparent EPS that was created via MetaPost= =2C and it seems to work fine. If you are not using Linux (or Unix or Mac = OS X)=2C let me know and I can probably >put together a quick HTML page to = do this on my server. Thanks for the invitation. Fortunatly I=92m using GNU/Linux. =0A= >> cat foo.eps | sed -e "s/0 0 0 setrgbcolor/1 1 1 setrgbcolor/g" > bar.eps >It simply translates the (0=2C0=2C0) triplet (which is black) to the (1=2C= 1=2C1) triplet (which is white). This is very simplistic and may not do al= l that you want. Unfortunatly there is no such a sequence in my file: grep setrgbcolor a1.EPS=20 /setcmykcolor{1 sub 4 1 roll 3{3 index add neg dup 0 lt{pop 0}if 3 1 roll}r= epeat setrgbcolor pop}wd /sw/setlinewidth ld/scap/setlinecap ld/sj/setlinejoin ld/sm/setmiterlimit l= d/sd/setdash ld/rgb/setrgbcolor ld/crgb/currentrgbcolor ld/cmyk/setcmykcolo= r ld/gs/gsave ld/gr/grestore ld But thank you for gave a try. = --_fc635387-92ec-4152-89a7-2c97d41b59b1_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Troy Henderson said:
>=3BI tested this on a black-on-transparent EPS that was created via= MetaPost=2C and it seems to work fine. =3B If you are not using Linux = (or Unix or Mac OS X)=2C let me know and I can probably >=3Bput together = a quick HTML page to do this on my server.
Thanks for the invitation. Fo= rtunatly I=92m using GNU/Linux.
=0A=
>=3B>=3B cat foo.eps | sed -e "s/0 0 0 setrgbcolor/1 1 1 setrgbcolo= r/g" >=3B bar.eps

>=3BIt simply translates the (0=2C0=2C0) tripl= et (which is black) to the (1=2C1=2C1) triplet (which is white). =3B Th= is is very simplistic and may not do all that you want.

Unfortunatly= there is no such a sequence in my file:

grep setrgbcolor a1.EPS /setcmykcolor{1 sub 4 1 roll 3{3 index add neg dup 0 lt{pop 0}if 3 1 roll}= repeat setrgbcolor pop}wd
/sw/setlinewidth ld/scap/setlinecap ld/sj/setl= inejoin ld/sm/setmiterlimit ld/sd/setdash ld/rgb/setrgbcolor ld/crgb/curren= trgbcolor ld/cmyk/setcmykcolor ld/gs/gsave ld/gr/grestore ld

But tha= nk you for gave a try.
= --_fc635387-92ec-4152-89a7-2c97d41b59b1_-- --===============1875072486== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1875072486==--