Re: HOWTO use the perl bindings


Subject: Re: HOWTO use the perl bindings
From: Joaquín Cuenca Abela (cuenca@pacaterie.u-psud.fr)
Date: Tue Jun 19 2001 - 06:22:29 CDT


Randy, all your comment are very much appreciated!
comments below

On 18 Jun 2001 09:20:49 -0400, Randy Kramer wrote:
>
> Joaquin,
>
> Joaquín Cuenca Abela wrote:
> > Can somebody that doesn't has a clue about how the perl bindings works
> > take a look and say me if everything is understandable?
>
> Hey, a job I'm qualified for (I think)!
>
> Very nice, and helpful to me -- one of the things I've been trying to do
> is learn Perl, at least a little bit -- reading your document has and
> will help.
>
> I do have some comments:
>
> 1. Near the beginning, please clarify: do the Perl bindings work only in
> unix, or they work in several OS's, but these *instructions* are only
> for unix, or they work in several OS's but the *installation
> instructions* are only for unix?

done

>
> 2. In the installation instructions, in or before step 2:
> -Must I first download and install some package (or does it come with
> AbiWord)? Must it be unzipped? Into a specific directory?
> -Must I be in a specific directory when I type those commands? (And
> I'm just thinking about an incident reported on one of the Mandrake
> groups -- must we tell people to type them at the command line (so they
> don't type them into AbiWord)? ;-)

lol lol lol
can you please take a look at the new HOWTO (is attached with this
email), and see if it explains all these things? (I don't want to
explain how to install perl... I don't think that somebody should be
able to write a perl script it he doesn't know how to install perl in
his system)

> 3. I won't mention typos or whatever on the assumption that rms will
> look at them. If he does not have time, I can attempt to deal with them
> -- the easiest for me would be fixing them in the document and sending
> it to you -- you can spot them with diff. (I'm doing this on my Windows
> box, diff is not at hand.)
>
> 4. In "The leading "1;" is important" it should be "trailing".
>
> 4. In the $view->saveAs(filename, left, cpy) method, what does the
> "left" parameter indicate, and what are other possible values?

good catch. left was a typo, it should be ieft
>
> 5. In $view->editHeader and the next two items, is "edition point" any
> different than "insertion point"? Would "insertion point" be the
> preferred term (because it is more common)?

yes, it's the same thing. Changed to insertion point.

> Also, this document gave me my first flavor of what the Perl bindings
> look like. Very nice, I appreciate all the work you've put into this!
>
> I assume that additional bindings can be added. The first one that
> comes to mind would be "find" so that we could insert text after a
> specific word or phrase. And maybe a way to "create" a selection (find
> something, select the word/line/sentence/paragraph/section containing
> what we found, so that, perhaps, we can apply a new (character or
> paragraph) style. Maybe a way to get the character (word, whatever) at
> the current insertion point? (No hurry from my point of view -- this is
> just brainstorming -- I'm not sure when I'd attempt to make use of this
> stuff -- but I have used VBA "macros" in Word.)

very good ideas, I will add them asap

> Is there / will there be a way to bind perl scripts to shortcut keys?

will there be. I've managed to bind a perl script to a menubar item
(the code is not yet finished), when that will be finished, you will be
able to bind a shortcut key to this menubar item, and thus to bind a
shortcut key to a perl script

Cheers,

--
Joaquín Cuenca Abela
cuenca@celium.net




This archive was generated by hypermail 2b25 : Tue Jun 19 2001 - 06:22:34 CDT