Re: [Tuxpaint-devel] Per-locale default font
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2023-06-17 18:46:36
|
Okay, I've created a kind of hybrid solution... a shell script, `convert-wrapper.sh`, that Makefile will now call (instead of `convert` directly). _It_ will do the trick of creating a dummy './inkscape' and adding '.' (PWD) to $PATH so `convert` will see it. Please tell me whether this works (I've also asked Tim to test it when doing the Slackware build) https://sourceforge.net/p/tuxpaint/tuxpaint/ci/8e9b33b22efa7c11efddc6c79910f26cf3730ab7/ Luc & Mark, can you check it too? WORST case, there can be OS-specific values for the new $(CONVERT) variable in Makefile. (I replaced direct calls to "convert" with that, a la $(CC), and set the variable to "./convert-wrapper.sh"). Whew, I hope this solves it! Hoping to get back to fun stuff now! -bill! On Sat, Jun 17, 2023 at 10:01:17PM +0900, Shin-ichi TOYAMA wrote: > Hi! > > On Sat, 17 Jun 2023 09:05:52 +0900, Shin-ichi TOYAMA wrote: > >How do I check if the fake incscape method is working correctly? > > I tweaked the fake inkscape to write debug log as follows. > > ----------------------------------------------------------------------- > echo-thumb-starters: > @echo > @echo "...Generating thumbnails for starters..." > @echo "# Don't let ImageMagick use Inkscape; use rsvgconvert instead" > ./inkscape > @echo "echo Fake inkscape invoked >> fake.log" >> ./inkscape > @echo "exit 1" >> ./inkscape > @chmod 755 ./inkscape > @(eval export PATH="$(shell pwd)":"$(PATH)") > ----------------------------------------------------------------------- > > At first, I tested it on Rocky 9 linux. > > It looks like the fake inkscape is not called because the "fake.log" file > is not created. I guess modified PATH environment variable here affects only > to the subshell. > > Next I replaced the "eval" line with the one Mark suggested, > > ----------------------------------------------------------------------- > $(eval export PATH=$(shell pwd):$(PATH)) > ----------------------------------------------------------------------- > > and *got* the "fake.log" file. > > On the other hand, both original code and Mark's one did not create the > "fake.log" file on Windows. > > Therefore, I simply ran convert command on Linux and Windows. The result was > > [ Linux ] > --------------- > [toyama@rocky9 tuxpaint]$ convert -verbose starters/fish_icon.svg fish_icon2.svg > 'inkscape' '/tmp/magick-LyWuJyZdCkEYr-nzgHilo5hNBUMB3sBv' --export-filename='/tmp/magick-F2sFztT4Ha-sp2e13FKriomVW_1aGFj6.png' --export-dpi='96' --export-background='rgb(100%,100%,100%)' --export-background-opacity='1' > '/tmp/magick-t-yhM4iKZM0BE1Ycg6r82LZpE5i9UoAT' 2>&1 > /tmp/magick-F2sFztT4Ha-sp2e13FKriomVW_1aGFj6.png PNG 559x478 559x478+0+0 8-bit sRGB 49984B 0.020u 0:00.008 > starters/fish_icon.svg SVG 559x478 559x478+0+0 8-bit sRGB 49984B 0.000u 0:00.000 > starters/fish_icon.svg=>fish_icon2.svg PNM 559x478 559x478+0+0 8-bit sRGB 801621B 0.000u 0:00.022 > --------------- > > [ Windows ] > --------------- > mingw64:$ convert -verbose starters/fish_icon.svg fish_icon2.svg > starters/fish_icon.svg SVG 559x478 559x478+0+0 16-bit sRGB 5779B 0.000u 0:00.011 > starters/fish_icon.svg=>fish_icon2.svg SVG 559x478 559x478+0+0 16-bit sRGB 31474B 0.031u 0:00.032 > --------------- > > So, ImageMagick convert for Window is not likely to try inkscape even inkscape is installed. > > Judging from all above, I suppose we should adopt Mark's correction for "eval" line. > > Thanks. > > > > _______________________________________________ > Tuxpaint-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel -- -bill! Sent from my computer |