You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xmlgraphics.apache.org by bu...@apache.org on 2010/03/18 11:20:41 UTC

DO NOT REPLY [Bug 48797] [PATCH] Optimize EPS and PS file size

https://issues.apache.org/bugzilla/show_bug.cgi?id=48797

Jeremias Maerki <je...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #2 from Jeremias Maerki <je...@apache.org> 2010-03-18 10:20:40 UTC ---
Thanks for your patch, Calixte. To produce smaller PS files, your patch makes
perfect sense. However, I'm wondering if we should not make it configurable
whether the standard commands or the short macros should be used. When
debugging PostScript I find it desirable not to have to memorize all the one or
two letter commands. Also, having the full commands in the Java source code
would also improve readability. I'm thinking about a translation method in
PSGenerator that converts the full commands to short ones if that is enabled
(probably true by default). Something like this:

public String command(String postscriptCommand);

when compact mode enabled:
command("setlinejoin") --> "LJ"
when compact mode disabled:
command("setlinejoin") --> "setlinejoin"

So before we apply Calixte's patch, I'd like to ask around for opinions on
this.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org