Dear list,

I just read a bit about 'LyX Wanted Features list' and saw

Scripting language:  Support a scripting language to control various
parts of LyX, this requires deciding on an official scripting
language. The idea is for non-core parts of LyX to be moved to the
scripting language and thus simplifying extension and customization.

I would definitely propose python/swig for this purpose. I have used
C++/SWIG/Python for quite some time now and I am very pleased with the
results. I am not quite sure what you have in mind, but it is easy to

1. add a SWIG interface file for some of the lyx classes.
2. provide a python module for lyx, generated automatically by SWIG.
3. Be able to create lyx buffer, load file, change content from python.

This looks like a MSWord/VisualBasic approach. Later on, you can
choose to integrate lyx more with python by calling python objects
from the C++ code through the well-defined Python C/API.

Cheers,
Bo

Reply via email to