This simple patch fixes bug 2845. wmf2eps has known problems, but it works
for simple figures and is better than nothing.
This goes in trunk now.
Jean-Marc, do you want this also in 1.4.4?

Georg

Log:
Fix bug 2845
        * lib/configure.py
        (checkFormatEntries): Add wmf format
        (checkConverterEntries): Add wmf -> eps converter
Index: lib/configure.py
===================================================================
--- lib/configure.py	(Revision 15036)
+++ lib/configure.py	(Arbeitskopie)
@@ -296,6 +296,7 @@ def checkFormatEntries():  
 \Format program    ""      Program                "" ""	""	""
 \Format pstex      pstex_t PSTEX                  "" ""	""	""
 \Format sxw        sxw    "OpenOffice.Org Writer" O  ""	""	"document"
+\Format wmf        wmf    "Windows Meta File"     "" ""	""	""
 \Format word       doc    "MS Word"               W  ""	""	"document"
 \Format wordhtml   html   "MS Word (HTML)"        "" ""        ""	"document"
 ''')
@@ -385,6 +386,9 @@ def checkConverterEntries():
 \converter tgif       pdf        "tgif -stdout -print -color -pdf $$i > $$o"	""''',
             ''])
     #
+    checkProg('a WMF -> EPS converter', ['wmf2eps -o $$o $$i'],
+        rc_entry = [ r'\converter wmf        eps        "%%"	""', ''])
+    #
     checkProg('a EPS -> PDF converter', ['epstopdf'],
         rc_entry = [ r'\converter eps        pdf        "epstopdf --outfile=$$o $$i"	""', ''])
     #

Reply via email to