Georg Baum schrieb:

\converter svg        png        "inkscape --export-png=$$i $$o"

That is wrong. Correct would be

\converter svg        png        "inkscape --export-png=$$o $$i"

Ähm yes, sorry. But this also don't work. I get this debug info:

---
filetools(getFormatFromContents)
        Couldn't find a known format!
[GrahicsCacheItem::convertToDisplayFormat]
        Attempting to convert image file: D:/download/test.svg
        with displayed filename: D:\download\test.svg
filetools(getFormatFromContents)
        Couldn't find a known format!
        will guess format from file extension: svg -> svg

        The file contains svg format data.
Unable to convert from svg to bmp
Unable to convert from svg to jpg
Unable to convert from svg to pbm
Unable to convert from svg to pgm
        Converting it to png format.
Converter c-tor:
        from_file:      D:/download/test.svg
to_file_base: C:/Dokumente und Einstellungen/stoehr/Lokale Einstellungen
/Temp/lyx_tmpdir4032a03848/test4032a03848
        from_format:  svg
        to_format:    png
build_script ... ready!
        Conversion script:
--------------------------------------
#!/bin/sh
infile="D:/download/test.svg"
infile_base="D:/download/test"
outfile="C:/Dokumente und Einstellungen/stoehr/Lokale Einstellungen/Temp/lyx_tmp
dir4032a03848/gconvert04032a03848.png"

inkscape --export-png="${infile}" "${outfile}" ||
{
        'rm' -f "${outfile}"
        exit 1
}

if [ ! -f "${outfile}" ]; then
        if [ -f "${outfile}".0 ]; then
                'mv' -f "${outfile}".0 "${outfile}"
                'rm' -f "${outfile}".?
        else
                exit 1
        fi
fi

fromfile="${outfile}"
tofile="C:/Dokumente und Einstellungen/stoehr/Lokale Einstellungen/Temp/lyx_tmpd
ir4032a03848/test4032a03848.png"

'mv' -f "${fromfile}" "${tofile}" ||
{
        'cp' -f "${fromfile}" "${tofile}" ||
        {
                exit 1
        }
        'rm' -f "${fromfile}"
}

--------------------------------------
ForkedCallQueue: waking up
LoaderQueue: I'm going to sleep
ForkedCallQueue: I'm going to sleep
Image conversion failed.
Unable to find converted file!
---

to LyX's preferences file doesn't work. LyX's ui also doesn't allow me
to choose svg as valid format.

Because svg is not defined as a format yet. Do that, and then it will also
be available for converters.

How could I do this? If this needs a change in LyX's source code I would ask you if you could do this please (and also apply this to the 1.4.x tree). It would be nice if the user could define its own formats or is this yet possible?

thanks and regards
Uwe

Reply via email to