Return-Path: Delivered-To: apmail-xmlgraphics-general-archive@www.apache.org Received: (qmail 88089 invoked from network); 21 Feb 2010 14:07:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Feb 2010 14:07:09 -0000 Received: (qmail 97726 invoked by uid 500); 21 Feb 2010 14:07:09 -0000 Mailing-List: contact general-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@xmlgraphics.apache.org Delivered-To: mailing list general@xmlgraphics.apache.org Received: (qmail 97716 invoked by uid 99); 21 Feb 2010 14:07:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Feb 2010 14:07:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of helder.magalhaes@gmail.com designates 74.125.78.24 as permitted sender) Received: from [74.125.78.24] (HELO ey-out-2122.google.com) (74.125.78.24) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Feb 2010 14:07:02 +0000 Received: by ey-out-2122.google.com with SMTP id 9so387795eyd.51 for ; Sun, 21 Feb 2010 06:06:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=aSvO65S3JFnTZquRRe8CMd5vq9uFfXKD3SOsY9PfBz0=; b=Oou35NaBcAMo8wGqcxkIcnoTekNjigo27fVgCEDahjlcLYMX7N/0rqmOD3rU2TO5l7 5fsc7w5ualyx+uUbmCXbQeHMzlaQmWwLjjezAYZTdV+L8Q9KBW0OpUYNM2an8QggknkZ 6EtPDANoAdPqwOvwHQN9/WIbLo4tovZx47Sl0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=ZRq0Ys9YY9JrhxZOGWiz+SNAwze+uloalU1h1XEEsvMDXC/v/SjYSA2pWpSKRM239J 6xWVHzhkSA3pwRZzzJpDMVLVTHQhss/BwqyxbSAGbz3J9+kpdpRwSABX1b+X+3PSpprZ 2NVGKu19s1hPtYt26X3Czp5LbpZLsn+6YHuVo= MIME-Version: 1.0 Received: by 10.213.109.68 with SMTP id i4mr7687893ebp.43.1266761199183; Sun, 21 Feb 2010 06:06:39 -0800 (PST) In-Reply-To: References: From: =?ISO-8859-1?Q?Helder_Magalh=E3es?= Date: Sun, 21 Feb 2010 14:06:19 +0000 Message-ID: <2a1ddf8a1002210606j5ade21abge409a6dc4a154bbd@mail.gmail.com> Subject: Re: Patch to reduce the size of generated ps To: general@xmlgraphics.apache.org Cc: Calixte.Denizet@ac-rennes.fr Content-Type: text/plain; charset=ISO-8859-1 Hi Calixte, > I wrote the attached patch to reduce the size of ps or eps file. I added basic shortcuts to postscript commands and gave an > access to the property clippingDisabled. With these modifications (and in using the added method disableClipping) I can divide > by 3 the size of eps files (generated from svg). Thanks for your contribution. I'm not a EPS expert so I'm only leaving a couple comments, mostly cosmetic. 1. Indentation issues. A quick review of the patch shows that, in a couple files, tabs instead of (4) spaces were used: * src/java/org/apache/xmlgraphics/ps/PSProcSets.java * src/java/org/apache/xmlgraphics/java2d/ps/AbstractPSDocumentGraphics2D.java 2. Potential coherency improvement. In: > + gen.writeln("/f/fill ld"); > + gen.writeln("/S/stroke ld"); If "S" stands for "stroke", why is "f" being used for "fill"? Is it a reserved keyword? If not, using the capitalized "F" would make things more coherent IMO. There are also more places were this could also apply, but I haven't reviewed the whole file... ;-) > I'll be happy if you can push them for the next release. As said, I'm no PostScript expert but, overall, the patch looks good and safe to apply. :-) It would be great if you could update your patch. ;-) > Best regards, Thanks, Helder --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: general-help@xmlgraphics.apache.org