On 18/09/2011 4:00 PM, Tommaso Cucinotta wrote:
Il 17/09/2011 18:31, Julien Rioux ha scritto:
Ahh, I just found out why I couldn't find this email anymore... you
didn't include the list.
sorry about that.

So is the script needed only because libreoffice produces bad eps?

that depends on how you expect it to be called. If the output filename
(referred to as "$$o" in the script invocation line) is only constrained
to be equal to the input file-name with the extension changed, then the
trick you're proposing (eps2) should work without scripts, but we'd need
a "$$" variable to refer to the destination folder. However, if in
principle $$o may be an arbitrary file-name as compared to $$i, then we
do need a script, because all you can do with libreoffice is specify a
destination *folder*, and the file-name is always equal to the input
file-name, with extension changed to ".eps".

If so then there's at least another way, using a new format eps2, just
like there is dvi2 for "not clean" dvi (on windows).

so, anyway, you're the expert(s) in this area -- I've attached the
script that was missing in my last patch, which should work on Windows
too -- so, please, feel free to propose the best solution in this ODG case.

T.

We do expect converters to produce a file with the same basename but changed extension. So with libreoffice the file.odg becomes file.eps in the same folder and we're all good. But we'll need a clean_eps.py script if file.eps is bad and needs "cleaning". This script would be more general and would only run (in bash terms):
ps2eps file.eps && mv -f file.eps.eps file.eps

--
Julien

Reply via email to