From: M�ta-MCI (MVP) on
Hi!

> Is there a way to do similar things on linux?

I think no. Because these tech use COM. And COM don't exist under xxnux.
But:
- look if XPCOM, or dBus) can help you
- search with the word "MOZLAB", who work a solution (plugin) for
drive Firefox, from an external software.

Good luck!
--
Michel Claveau



From: Daniel Fetchinson on
>> Is there a way to do similar things on linux?
>
> I think no. Because these tech use COM. And COM don't exist under xxnux.
> But:
> - look if XPCOM, or dBus) can help you
> - search with the word "MOZLAB", who work a solution (plugin) for
> drive Firefox, from an external software.

Wow, mozlab is amazing!

Thanks,
Daniel
--
Psss, psss, put it down! - http://www.cafepress.com/putitdown
From: jiri.zahradil on
On 6 Èec, 07:02, Tim Roberts <t...(a)probo.com> wrote:
> "jiri.zahra...(a)gmail.com" <jiri.zahra...(a)gmail.com> wrote:
>
> >for my Python application (Windows platform) to be standards
> >compliant, I need to embbed Ecmascript(Javascript) interpreter - I
> >need to execute plugins written in this language.
>
> What standard are you hoping to comply with? I mean, what kind of a
> program is this?
> --
> Tim Roberts, t...(a)probo.com
> Providenza & Boekelheide, Inc.

Thats for our speech recognition server - it should executed "tags"
with Javascript code embbeded in some XML grammar format.

I personally does not like COM solution. I prefer some simple library
but may be it is just a hope. I will look to PyQT library and to
Mozilla scripting engine, but I think that this one can get
unnecessarily difficult.

Does anyone work or use something similar?

Jiri
From: alex23 on
On Jul 7, 12:31 am, "jiri.zahra...(a)gmail.com"
<jiri.zahra...(a)gmail.com> wrote:
> I personally does not like COM solution. I prefer some simple library
> but may be it is just a hope.

Have you looked at the module 'python-spidermonkey'? It apparently
"allows for the implementation of Javascript classes, objects and
functions in Python, as well as the evaluation and calling of
Javascript scripts and functions".

http://code.google.com/p/python-spidermonkey/
From: jiri.zahradil on
On 7 Èec, 08:21, alex23 <wuwe...(a)gmail.com> wrote:
> On Jul 7, 12:31 am, "jiri.zahra...(a)gmail.com"
>
> <jiri.zahra...(a)gmail.com> wrote:
> > I personally does not like COM solution. I prefer some simple library
> > but may be it is just a hope.
>
> Have you looked at the module 'python-spidermonkey'? It apparently
> "allows for the implementation of Javascript classes, objects and
> functions in Python, as well as the evaluation and calling of
> Javascript scripts and functions".
>
> http://code.google.com/p/python-spidermonkey/

I have looked at it. It seems to be not fully working version, but I
have not check it properly because the project homepage says "windows
version is forthcoming".

At this time I am considering using some command line interpreter
(maybe jsdb, http://www.jsdb.org/, based on spidermonkey) Idea is to
save script code to file and let it run by interpreter and then parse
the results. Problem is that this approach has very limited access to
variables and objects exposed to javascript (they needs to be
serialized before script run, script cannot call python functions etc)
and also retrieving results is not straigtforward.

Still looking for better solution ...

JZ