]> git.lyx.org Git - lyx.git/commitdiff
Convert odg to (cropped) eps without external script.
authorJulien Rioux <jrioux@lyx.org>
Tue, 25 Oct 2011 23:33:35 +0000 (23:33 +0000)
committerJulien Rioux <jrioux@lyx.org>
Tue, 25 Oct 2011 23:33:35 +0000 (23:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39986 a592a061-630c-0410-9148-cb99ea01b6c8

lib/configure.py

index 63ab867a34049e0ca234acff53e5fcb8d87b1dad..40e53b14d3ec086473671c8903976ef5b992ab6d 100644 (file)
@@ -748,7 +748,9 @@ def checkConverterEntries():
         rc_entry = [ r'\converter ps         text3      "%%"   ""' ])
     #
     checkProg('a PS to EPS converter', ['ps2eps $$i'],
-        rc_entry = [ r'\converter ps         eps      "%%"     ""' ])
+        rc_entry = [ r'''\Format eps2       eps    "EPS (ps2eps)"          "" "" ""    "vector"
+\converter ps         eps      "%%"    ""
+\converter eps2       eps      "%%"    "resultfile=$$b.eps.eps"''' ])
     #
     checkProg('a PDF to PS converter', ['pdf2ps $$i $$o', 'pdftops $$i $$o'],
         rc_entry = [ r'\converter pdf         ps        "%%"   ""' ])
@@ -822,8 +824,8 @@ def checkConverterEntries():
     checkProg('a Dia -> EPS converter', ['dia -e $$o -t eps $$i'],
         rc_entry = [ r'\converter dia        eps        "%%"   ""'])
     #
-    checkProg('an OpenOffice -> EPS converter', ['libreoffice'],
-        rc_entry = [ r'\converter odg        eps        "python -tt $$s/scripts/libreoffice2eps.py $$i $$o"    ""'])
+    checkProg('an OpenOffice -> EPS converter', ['libreoffice -headless -nologo -convert-to eps $$i'],
+        rc_entry = [ r'\converter odg        eps2       "%%"   ""'])
     #
     checkProg('a SVG -> PDF converter', ['rsvg-convert -f pdf -o $$o $$i', 'inkscape --file=$$i --export-area-drawing --without-gui --export-pdf=$$o'],
         rc_entry = [ r'\converter svg        pdf        "%%"   ""'])