Re: Scripting

2002-02-18 Thread Florian Klaempfl

At 15:04 18.02.02 +0100, you wrote:
On Sat, Feb 16, 2002 at 03:18:41AM +0100, Florian Klaempfl wrote:
  Is this still up-to-date?

Fairly.

  Or are there plans to do anything using the Lyx-Server? If not, I'd 
 glad to
  implement parts of the
  the scripting capabilities into Lyx.
 
  Furhter, I would propose to use Python as scripting language.

I think the discussion on what will become LyX's favourite scripting
language is still postponed. But you could certainly start collecting
a list pro's and con's of python.

Some help might be (from the Python home page, so read it with care):
http://wwwipd.ira.uka.de/~prechelt/Biblio/#jccpprtTR
http://www.networkcomputing.com/unixworld/tutorial/005/005.html#Others
and (less serious)
http://www.python.org/doc/Humor.html#vowels ;)

I like (and prefer) Python because it's a very clean OOP language
and the code is much more readable than Perl code :). Further, it has
a lot of integrated data types

This would be even more valuable if you
had some direct comparison with the other candidates (Tcl  Perl were
'nominated' among others IIRC)





Re: Scripting

2002-02-18 Thread Florian Klaempfl

At 15:04 18.02.02 +0100, you wrote:
>On Sat, Feb 16, 2002 at 03:18:41AM +0100, Florian Klaempfl wrote:
> > Is this still up-to-date?
>
>Fairly.
>
> > Or are there plans to do anything using the Lyx-Server? If not, I'd 
> glad to
> > implement parts of the
> > the scripting capabilities into Lyx.
> >
> > Furhter, I would propose to use Python as scripting language.
>
>I think the discussion on what will become LyX's favourite scripting
>language is still postponed. But you could certainly start collecting
>a list pro's and con's of python.

Some help might be (from the Python home page, so read it with care):
http://wwwipd.ira.uka.de/~prechelt/Biblio/#jccpprtTR
http://www.networkcomputing.com/unixworld/tutorial/005/005.html#Others
and (less serious)
http://www.python.org/doc/Humor.html#vowels ;)

I like (and prefer) Python because it's a very clean OOP language
and the code is much more readable than Perl code :). Further, it has
a lot of integrated data types

>This would be even more valuable if you
>had some direct comparison with the other candidates (Tcl & Perl were
>'nominated' among others IIRC)





Re: Scripting

2002-02-16 Thread Florian Klaempfl

At 02:28 16.02.02 +, you wrote:
On Sat, Feb 16, 2002 at 03:18:41AM +0100, Florian Klaempfl wrote:

  Or are there plans to do anything using the Lyx-Server? If not, I'd 
 glad to
  implement parts of the
  the scripting capabilities into Lyx.

the idea is to sort out the lyxfunc interface (what lyx server uses) so 
you can
script most things. It's really a long-haul project.

  Furhter, I would propose to use Python as scripting language.

then it is a matter of wrapping lyx server inside a python (or whatever) lib

Hmmm, I must admit, I don't see the use of the lyx server. First, you've
to pass all information through a socket or pipe and you need a client
for every language which dispatches this information and provides an 
appropriate
interface for the desired language = the lyx server solution doubles the work.

If someone needs something like the lyx server, he still can use the integrated
script language to provide something like the lyx server...

Further, the lyx server solution looks very home brewed to me,
there are standard solutions like CORBA.

If I make patches to integrate Python directly into Lyx, is there a chance that
they make it into the official sources? As I can see with my current knowledge
about the lyx sources and the Python lib, the changes
to the existing sources will be very little for basic scripting
functions, it's mainly extra code in extra source files.




Re: Scripting

2002-02-16 Thread Florian Klaempfl

At 02:28 16.02.02 +, you wrote:
>On Sat, Feb 16, 2002 at 03:18:41AM +0100, Florian Klaempfl wrote:
>
> > Or are there plans to do anything using the Lyx-Server? If not, I'd 
> glad to
> > implement parts of the
> > the scripting capabilities into Lyx.
>
>the idea is to sort out the lyxfunc interface (what lyx server uses) so 
>you can
>script most things. It's really a long-haul project.
>
> > Furhter, I would propose to use Python as scripting language.
>
>then it is a matter of wrapping lyx server inside a python (or whatever) lib

Hmmm, I must admit, I don't see the use of the lyx server. First, you've
to pass all information through a socket or pipe and you need a client
for every language which dispatches this information and provides an 
appropriate
interface for the desired language => the lyx server solution doubles the work.

If someone needs something like the lyx server, he still can use the integrated
script language to provide something like the lyx server...

Further, the lyx server solution looks very home brewed to me,
there are standard solutions like CORBA.

If I make patches to integrate Python directly into Lyx, is there a chance that
they make it into the official sources? As I can see with my current knowledge
about the lyx sources and the Python lib, the changes
to the existing sources will be very little for basic scripting
functions, it's mainly extra code in extra source files.




Scripting

2002-02-15 Thread Florian Klaempfl

Is this still up-to-date?

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.
Things to place in scripts:
·   Export functions - DocBook, LaTeX, Lout
·   Word operations - capitalize word

Or are there plans to do anything using the Lyx-Server? If not, I'd glad to 
implement parts of the
the scripting capabilities into Lyx.

Furhter, I would propose to use Python as scripting language.






Scripting

2002-02-15 Thread Florian Klaempfl

Is this still up-to-date?

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.
Things to place in scripts:
·   Export functions - DocBook, LaTeX, Lout
·   Word operations - capitalize word

Or are there plans to do anything using the Lyx-Server? If not, I'd glad to 
implement parts of the
the scripting capabilities into Lyx.

Furhter, I would propose to use Python as scripting language.