[referencer] lyx plugin

Aurélien Naldi aurelien.naldi at gmail.com
Sun Jan 6 04:54:22 EST 2008


Le dimanche 06 janvier 2008 à 09:27 +0000, John Spray a écrit :
> I've found that I can use the lyxclient tool that comes with lyx to
> insert citations without altering my lyx configuration.  I believe it
> uses sockets rather than pipes.  I've hacked the lyx plugin to use
> lyxclient instead of pipes (sorry for demolishing your code).  Using an
> external tool is not ideal, but I think it's important to "Just work"
> rather than needing to provide instructions on altering lyx config.  I
> believe lyxclient is part of a default lyx install, at least on linux
> (which is currently the only place referencer runs).

As I mentioned, kile does support quoting through the lyxpipe as well,
getting a working citation to kile with the same code would be nice :)
I have just looked at it, it looks like kile uses ~/.lyxpipe.in/out by
default. So the quotation plugin could check lyx config file. If
something is found here, test if the file exists. If they do, use it. If
they don't test if ~/lyxpipe.in exist and use it if it does. If all of
the above fail, then it can use lyxclient.
I don't have time right now to do this (I'm supposed to have left
already) but I'm willing to do it tonight or early next week, if you
agree.

> 
> I've committed your code for setting icons, thanks.  It is a bit
> convoluted but I think that's more GTK's fault than yours.  Anyway, it
> works and it's self-contained, so I don't think it's a problem.  I've
> added data/lyx.png.

Thanks, I'll look at ways to improve/clen it up ASAP.

> 
> Perhaps the python code that the lyx people have would let us do this
> without using external program, in which case that would be a neater
> way.
> 
> I've taken the random print statements out of lyx.py, although you'll
> find that the between-release svn code is often thick with overly
> verbose stuff like that.  That one was a little gratuitous, I agree.
> 
> I think we're pretty much good to go, apart from a bit more error
> handling stuff that I'll do on the C++ side.

I bet I'll let you handle this one.

Thanks again for your work on it, I can't wait for the next release!

-- 
Aurélien Naldi <aurelien.naldi at gmail.com>




More information about the referencer mailing list