On Mon, Mar 07, 2022 at 06:13:10PM +0100, Pavel Sanda wrote: > On Fri, Feb 04, 2022 at 10:36:57AM +0000, José Abílio Matos wrote: > > On Wednesday, 2 February 2022 21.45.40 WET Pavel Sanda wrote: > > > Jose, could I ask for pythonic help? > > > We would need a routine in configure.py which check whether to remove > > > eps->png > > > conversion in case IM bans those conversions. That could be done this way > > > by > > > checking return status of the conversion. In bash that would be something > > > like this: > > > > > > echo '%!PS' > /tmp/.lyx_configure_test.eps > > > convert /tmp/.lyx_configure_test.eps /tmp/.lyx_configure_test.png > > > if ! [ $? == 0 ] ; then > > > # remove eps->png conversion from configure settings, i.e. set > > > \converter > > > "eps" "png" "" "" fi > > > > > > > > > Completely different way would be mimicking what IM internally does with > > > GS > > > when converting eps->png. I already checked little bit and unfortunately > > > it > > > won't be oneliner if we want to get resolution right. But probably doable > > > with additional script of our own. Pavel > > > > I will look into this in the weekend. > > > > <Thinking aloud> > > At some point I will want to overhaul the configure.py script. > > The purpose is, among others, to simplify the code required to do this kind > > of tests. > > > > The test above is relatively easy to do. > > Something that I should, probably, take into account is the order of the > > tests. > > > > In the sense that if we different \convert lines we probably retain the > > last... > > </Thinking aloud> > > ping :)
ping :) > p -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel