Helge Hafting wrote: > Lyx discovered the existence of a converter, invoked > lilypond which ran without error messages, but then > lyx (using -dbg external,graphics) claimed that no > file was produced. Very strange that. Note that > I don't actually tell lilypond where to put the output file, > but lilypond will then put it where it finds the > input file.
No, it will put it in the current directory (at least version 2.4.4) > There was no such file in the temp directory, > perhaps it got deleted somehow? The apprach worked > so well for .eps and .pdf, and of course I tested the > command on the command line too. I have an older version of lilypond, and I had to modify the converters to try it out, but what happens for me is this: Regardless of any -o parameter you give, the output is always generated in the current directory. Have a look at the directory where you started LyX from. Does it contain the gconvert* files? What you could do is to copy the files from the current direrctory to the temp directory in the python script. That should work. And of course you should file a bug report to lilypond if your version still ignores the directory part of the -o parameter. > So what the hell is this "syntax error in lyxconvert7.py" business ??? This is an automatically generated script that should of course never have a syntax error. See src/graphics/GraphicsConverter.C. Can you please send the script (it is copied to debug output for -dbg graphics)? I changed this script recently, also for 1.4.3. For me it works fine, but I'd like to iron out corner case bugs if they exist. > Anyway, the external inset with .pdf and .eps converters is all that > is needed to use this for output, so here it is so you may consider > it for inclusion or ask for improvements: I'd like to include that after some polishing. > Attached preferences.diff, which defines the file format and converters > Attached external.diff, which defines the external template > for lilypond. Can you explain what the -b and -d arguments do? My version of lilypond does not have them. Georg