Andre Poenitz <[EMAIL PROTECTED]> writes: | On Thu, Jul 13, 2006 at 07:40:45PM +0100, Angus Leeming wrote: | > André Pönitz wrote: | > > On Wed, Jul 12, 2006 at 10:24:18AM +0000, Angus Leeming wrote: | > >> There's lots that is a mess about the LFUN language (ad hoc, | > >> no formal grammar, etc) but it is powerful and will become | > >> more so if someone adds the ability to return queried-for | > >> information like these LyXView IDs that you mention. | > | > > Shouldn't we simply embed Python now that it has become de facto the | > > Chosen Scripting Language? | > | > Can someone explain how this "embedding" works? LyX itself understands | > LFUNs not Python so we'll still need to translate the python to a | > series of LFUNs, no? | | Python would be extended by, e.g. a module 'lyx' and each lfun would be | wrapped in a python function in this module. In the end you'd call | something like | | lyx.CursorForward
And how does this module communicate with the lyx process? (Agree on how you would use the lyx module in python scripts, but that is only a small part of the solution.) (My pow is that this is best done through a mechanism similar to the lyxserver. Then we have no script/language specific mechanism inside lyx itself.) -- Lgb