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 > I'm totally clueless about this stuff so a quick overview would be > great? (A pointer to a resouce works for me also ;-)) www.python.org Andre' PS: I never thought I'd become a python advocate one day...