axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Axiom-developer] RE: Doyen


From: Alfredo Portes
Subject: Re: [Axiom-developer] RE: Doyen
Date: Wed, 18 Jan 2006 06:43:10 -0500

Hi Bill,

I will look into the way you call the notangle inside your scripts. Right now
we have this application: http://toolbox1.sytes.net/doyen/dragdrop/

If you drag and drop a pamphlet file here, (you must drag the link of course)
the application will read the pamphlet extract the make file and process the
information in the pamphlet (extract the tex, source, etc).

This application for the front end has a _javascript_ that makes sure the file is
a pamphlet file, and everything else is discarted. Then, the JS calls a PHP
script and passes the location and the name of the file. The PHP script takes
care of downloading the file and process it locally, then it displays a pdf file.

So I assume at this point, what I would like to do is to integrate this app,
and ZWiki. I would look into the scripts and see the way this works.

Regards,

On 1/17/06, Page, Bill <address@hidden> wrote:
On Tuesday, January 17, 2006 4:41 PM Alfredo Portes wrote:

> I have a few questions regarding the way ZWiki handles new
> pages. I would like to integrate the little app we have for
> drag and drop in the CD to the Latex Wiki. Is it possible to
> create pages in the Wiki without doing this manually?

Yes, although of course some HTML <form action="" has
to be trigger somehow (usually via a "submit") in order that
ZWiki can begin to process the input.

> if it is, does it have to be a python script?

The processing on the server-side will have to be at
least initiated by some Python code that is associated
with the type of Zope objects you will be creating. See
for example how I handle the "tangle" operation now in
the pamphlet files on MathAction. In that case the Python
code calls 'notangle' internally.

But the triggering of the "submit" action would normally
be handled by something like _javascript_ in the browser or
by some other HTTP-aware "helper" application.

> I will like for the person using the CD to have this
> tool, they would drag the pamphlet to this application,
> not to the Wiki and then the application would take care
> of adding it to the Wiki.

This sounds quite possible but it perhaps might involve
more coding then alternatives. If you do it this way,
the local "helper" application could be written in any
programming language, but presumably you would want to
choose carefully in order to minimize the effort of
porting to/from at least Windows and Linux.

> I do not know if this sounds too complicated, or if
> it would be better to write this kind of script inside
> ZWiki. Sorry if I didn't explain my point clear enough.

I think your idea is clear enough. But it will not be
possible to write everything that you need inside ZWiki -
only part of it. The major alternative as I see it is to
write _javascript_ for a browser like FireFox. This has
the great benefit of being highly portable and provides
an otherwise very familiar interface for the user.

_javascript_ locally in a browser does have some limitations
but I think for what you want to do, it might be the most
simple solution.

How does you current test drag-and-drop application work?
Can it be easily used as the front-end to what you want
to do on LatexWiki?

Regards,
Bill Page.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]