Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-24 Thread Jürgen Spitzmüller
Am Montag, den 24.08.2020, 10:39 -0400 schrieb Scott Kostyshak: > Nice, thanks for working on the Python script. Regarding the PDF/PS > viewers, another possibility would to exploit that LyX knows the > preferred PDF and PS viewers. Either LyX could pass the viewer paths > as > arguments to the

Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-24 Thread Scott Kostyshak
On Mon, Aug 24, 2020 at 11:13:56AM +0200, Jürgen Spitzmüller wrote: > Am Freitag, den 21.08.2020, 09:56 +0200 schrieb Pavel Sanda: > > I am not entirely against pythonic solution, but I think at this > > stage it's really for win users to step up. I can make the linux part > > working if they come

Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-24 Thread Pavel Sanda
On Mon, Aug 24, 2020 at 01:27:56PM +0200, Jürgen Spitzmüller wrote: > > Anyway, feel free to commit any version of this script as well. > > I propose to replace the bash script with this, as the python script > does all the bash script does, and more. And we don't have to ship bash > scripts. >

Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-24 Thread Jürgen Spitzmüller
Am Montag, den 24.08.2020, 13:08 +0200 schrieb Pavel Sanda: > Seems to work (except filenames with spaces). Filenames with spaces work fine for me. > Anyway, feel free to commit any version of this script as well. I propose to replace the bash script with this, as the python script does all the

Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-24 Thread Pavel Sanda
On Mon, Aug 24, 2020 at 12:57:00PM +0200, Jürgen Spitzmüller wrote: > Well, that's what I meant when I said we could try and use locate if > possible (and maybe something comparable on other OSes) and only fall > back to the slower method if that doesn't play. > > The attached version of the

Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-24 Thread Jürgen Spitzmüller
Am Montag, den 24.08.2020, 12:09 +0200 schrieb Pavel Sanda: > I believe it is near to impossible to code a script which would fit > to most people. Sure but we can provide one that fits wide needs rather than several > E.g. the first run of your script takes 1 min on my machine and won't > find

Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-24 Thread Pavel Sanda
On Mon, Aug 24, 2020 at 11:13:56AM +0200, Jürgen Spitzmüller wrote: > Am Freitag, den 21.08.2020, 09:56 +0200 schrieb Pavel Sanda: > > I am not entirely against pythonic solution, but I think at this > > stage it's really for win users to step up. I can make the linux part > > working if they come

Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-24 Thread Jürgen Spitzmüller
Am Freitag, den 21.08.2020, 09:56 +0200 schrieb Pavel Sanda: > I am not entirely against pythonic solution, but I think at this > stage it's really for win users to step up. I can make the linux part > working if they come up with a solution. Humble attempt attached. Works for me (on Linux) and

Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-21 Thread Scott Kostyshak
On Fri, Aug 21, 2020 at 09:26:07AM +0200, Pavel Sanda wrote: > On Thu, Aug 20, 2020 at 09:34:51PM -0400, Scott Kostyshak wrote: > > I wonder if it would be helpful to pass the path to the .lyx file as an > > argument to lyxpaperview. This would help users that store PDF files in > > a directory

Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-21 Thread Pavel Sanda
On Thu, Aug 20, 2020 at 02:52:28PM +0200, Jürgen Spitzmüller wrote: > Am Donnerstag, den 20.08.2020, 08:47 +0200 schrieb Pavel Sanda: > > commit 4cd3ab1b1ac28c4236cc7f37903d746f3e3fa211 > > > > Author: Pavel Sanda > > > > Date: Thu Aug 20 09:11:07 2020 +0200 > > > > Example script for

Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-21 Thread Pavel Sanda
On Thu, Aug 20, 2020 at 09:34:51PM -0400, Scott Kostyshak wrote: > I wonder if it would be helpful to pass the path to the .lyx file as an > argument to lyxpaperview. This would help users that store PDF files in > a directory relative to their .lyx files. They wouldn't need to rely on > locate.

Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-20 Thread Scott Kostyshak
On Thu, Aug 20, 2020 at 10:56:42AM -0400, Richard Kimberly Heck wrote: > On 8/20/20 8:52 AM, Jürgen Spitzmüller wrote: > > Am Donnerstag, den 20.08.2020, 08:47 +0200 schrieb Pavel Sanda: > >> commit 4cd3ab1b1ac28c4236cc7f37903d746f3e3fa211 > >> > >> Author: Pavel Sanda > >> > >> Date: Thu Aug

Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-20 Thread Richard Kimberly Heck
On 8/20/20 8:52 AM, Jürgen Spitzmüller wrote: > Am Donnerstag, den 20.08.2020, 08:47 +0200 schrieb Pavel Sanda: >> commit 4cd3ab1b1ac28c4236cc7f37903d746f3e3fa211 >> >> Author: Pavel Sanda >> >> Date: Thu Aug 20 09:11:07 2020 +0200 >> >> Example script for looking up the citation pdfs. >

Re: [LyX/master] Example script for looking up the citation pdfs.

2020-08-20 Thread Jürgen Spitzmüller
Am Donnerstag, den 20.08.2020, 08:47 +0200 schrieb Pavel Sanda: > commit 4cd3ab1b1ac28c4236cc7f37903d746f3e3fa211 > > Author: Pavel Sanda > > Date: Thu Aug 20 09:11:07 2020 +0200 > > Example script for looking up the citation pdfs. For portability it would be good to rewrite this in