Re: HOWTO use the perl bindings


Subject: Re: HOWTO use the perl bindings
From: Randy Kramer (rhkramer@fast.net)
Date: Mon Jun 18 2001 - 08:20:49 CDT


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?

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)? ;-)

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?

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)?

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.)

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

Aside: I have no problems with your humor. When the document is
published, you may consider adjusting the humor based on the anticipated
audience or the particular documents it's published with.

Thanks,
Randy Kramer



This archive was generated by hypermail 2b25 : Mon Jun 18 2001 - 08:26:16 CDT