Dear LyXers,
IMHO, LyX clearly lacks a decent support for a scripting language. As
this topic is not new but discussion about which language to choose is
endless, I tried to set up a script interface via the lyxserver.
What I have so far, is "lyx.py":
Functions and classes to connect to LyX via the lyxserver pipes
start_lyx() start a LyX session in a separate process
lyxpipe() open a lyxpipe for nonblocking access
LyXServer class for communication with the LyX-Server.
LyXClient a LyX client using the serverpipes
can listen to "NOTIFY" events and call a bound function
and some sample applications
lyx-python LyX with an interactive Python client.
lyx-remote Open a file in a running LyX or start LyX with the file
lyx_pyfuns.py Convenience and extension functions for LyX (including the
long awaited word_count)
However, the lyxserver support is, well, poor and problems with the lfuns
are many.
Is there documentation about the lyx functions (as usable from the
minibuffer) other than http://wiki.lyx.org/pmwiki.php/LyX/LyxFunctions ?
Is there a chance to get some feature requests regarding the server into
the next release?
Example: an (optional) argument to server-notify function like
\bind "M-q" "server-notify" "kbd-quit"
Would make it possible to have the keybindings in one place.
G�nter
--
G.Milde web.de