From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78285 Path: news.gmane.org!not-for-mail From: Troy Henderson Newsgroups: gmane.comp.tex.context Subject: Re: Change color of EPS file. Date: Fri, 14 Sep 2012 09:34:40 -0500 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="===============1696545025==" X-Trace: ger.gmane.org 1347633287 8958 80.91.229.3 (14 Sep 2012 14:34:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 14:34:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 14 16:34:51 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 1TCWyo-0007hg-Dc for gctc-ntg-context-518@m.gmane.org; Fri, 14 Sep 2012 16:34:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6221D10261; Fri, 14 Sep 2012 16:34:46 +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 yxHGryOeyHmv; Fri, 14 Sep 2012 16:34:44 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8280610203; Fri, 14 Sep 2012 16:34:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D3A7310203 for ; Fri, 14 Sep 2012 16:34:43 +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 Ml98tUGu9GYI for ; Fri, 14 Sep 2012 16:34:43 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 1FAFC101F6 for ; Fri, 14 Sep 2012 16:34:43 +0200 (CEST) Original-Received: from mail-oa0-f41.google.com (mail-oa0-f41.google.com [209.85.219.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q8EEYfj1012561 for ; Fri, 14 Sep 2012 16:34:42 +0200 Original-Received: by oagj6 with SMTP id j6so3567036oag.14 for ; Fri, 14 Sep 2012 07:34:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=WN+C1xULUtmP2wtBB1IdyFShEhkTk7oBPzxiZOqoWi8=; b=Uy55mPeW5usX6S2VRx9r8zhE3eDqs9+s1WNyUfOgry0KiwYGRwy8dGUYBbZBZBtfJI I/WXb8Z76OwWgZOPMTSkmGmqaKgYdQLRwKvEOPuw2qwFwX0VXwxrib3jWZhK7SWTFgHG QEwgAHWJ3Q8HkCGp0E/V1gWmtl3ygV+qeQ10s03wAaCzOPMYbxfwE3mId/CPc1DzRtdD PkCznAb+hxxjx4WueR/4WcExzMx+dNfo68jURgkVhmVhPvs7TSVxDSm8UPNwyjRk8v4e E3FKuiSudTTWBA6StDlAiM152Vh4An+fo5rvmLXVtJA+zE+NQ/2ouxhmSlm+kIiDNE65 gC3A== Original-Received: by 10.182.152.36 with SMTP id uv4mr3398783obb.81.1347633280915; Fri, 14 Sep 2012 07:34:40 -0700 (PDT) Original-Received: by 10.76.172.199 with HTTP; Fri, 14 Sep 2012 07:34:40 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.219.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NHX2yFKS - 9c4dbaf9f061 - 20120914 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:78285 Archived-At: --===============1696545025== Content-Type: multipart/alternative; boundary=f46d044472f3ff177904c9aa5297 --f46d044472f3ff177904c9aa5297 Content-Type: text/plain; charset=ISO-8859-1 I tested this on a black-on-transparent EPS that was created via MetaPost, and it seems to work fine. If you are not using Linux (or Unix or Mac OS X), let me know and I can probably put together a quick HTML page to do this on my server. > cat foo.eps | sed -e "s/0 0 0 setrgbcolor/1 1 1 setrgbcolor/g" > bar.eps It simply translates the (0,0,0) triplet (which is black) to the (1,1,1) triplet (which is white). This is very simplistic and may not do all that you want. Troy Henderson --f46d044472f3ff177904c9aa5297 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I tested this on a black-on-transparent EPS that was created via MetaPost, = and it seems to work fine.=A0 If you are not using Linux (or Unix or Mac OS= X), let me know and I can probably put together a quick HTML page to do th= is on my server.

> cat foo.eps | sed -e "s/0 0 0 setrgbcolor/1 1 1 setrgbcolor/g= " > bar.eps

It simply translates the (0,0,0) triplet (which = is black) to the (1,1,1) triplet (which is white).=A0 This is very simplist= ic and may not do all that you want.

Troy Henderson
--f46d044472f3ff177904c9aa5297-- --===============1696545025== 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 ___________________________________________________________________________________ --===============1696545025==--