On Tue, Jan 01, 2019 at 02:10:37PM +0100, Stephan Witt wrote: > Hi all, > > first I wish all of you a Happy New Year. > > I investigated the cause of the issue with displaying SVG (including our own > icons in Users Guide) on-screen. > > IMO the root cause is the existence of two ways to use the configured > converters: > 1. the conversion process to load external material to present it on-screen > (build_script in GraphicsConverter.cpp) and > 2. the conversion process to prepare external material for use by external > programs like LaTeX (Converters::convert) > > Both are using the utilities detected by lib/configure.py. But the meaning of > the „$$i“ and „$$o“ placeholders is different. (1) is passing the complete > absolute path of input and output file. (2) is operating in the temporary > directory and uses relative path names only. On Mac the inkscape binary is a > shell script itself and it’s not working with relative path names for input > and output files. Therefore I added the prefix „$$p“ in front of the names to > get absolute path names. Unfortunately this breaks the conversion (1). > > One possible solution for the current issue is it to change (1) to replace > „$$p“ with an empty string. Is this a good idea or is some more fundamental > change to unify the converters to prefer? Any other ideas?
What about changing (1) to use relative path names for "$$i" and "$$o" and then adding "$$p" to obtain absolute ones? In this way "$$p" maintains its meaning in both cases. Happy New Year to all. -- Enrico