Re: completeness of Perl bindings


Subject: Re: completeness of Perl bindings
From: Vlad Harchev (hvv@hippo.ru)
Date: Wed Jun 20 2001 - 07:48:30 CDT


On 20 Jun 2001, Joaquín Cuenca Abela wrote:

> On 20 Jun 2001 12:30:48 +0500, Vlad Harchev wrote:
> >
> >
> > Hi,
> >
> > First of all - it's so much wonderful that Perl bindings are available
> > and are even documented :) !
> > Looking at the HOWTO, it seems they can be extended a bit.
> >
> > * it seems that there is no ability for printing of the document (using
> > default settings at least)
> > * There should be a way to insert a non-latin1 text into AW using bindings too
> > (it may already be possible through the bindings and the latest Perl -
> > dunno) - but I propose to add the following methods (very cheap to implement):
> > writeUnicode( <unicode value here>)
> > writeutf8("<utf8 string here>")
> > After something like this will be available, everybody will be able to use
> > perl bindings for adding data in their own language.
>
> of course, but I would like to only have a write operation (your
> writeUnicode). Unfortunatelly I don't know how to translate unicode
> perl strings to the C/C++ world, but I will take a look.

 I was not implying that we need to support latest perl only (that supports
unicode). writeutf8 function is extremely important too (since converting from
some encoding to UCS2 is by orders more difficult than from some encoding to
utf8 (in that case, iconv utility from libc can be used)). Or 'write' function
should treat its parameter as utf8 string..

> comments in this stuff are welcome
>
> > * To make bindings functionally complete, operations for getting range of
> > current selection, retriving arbitrary range of text and
> > extending/shrinking/begining/resetting selection should be available, and for
> > at least only inserting images too.
> > * Also it would be nice to have something for editing page setup (size,
> > orientation, etc).
> > * Finally a commandline option that after starting AW executes named script is
> > necessary to provide full automation.
>
> That's already there (abiword --script filename.pl)

 Fine! Documenting it would be nice :)

 BTW, is it possible to insert centered (or right-aligned) text with the
current version of bindings? I got impression that it's even impossible to
insert a paragraph break (by looking at gnomecard importer). These operations
are necessary too.

> All the other suggestions are very good ones, and I have them in the my
> TODO lists, now :)

 Thanks!

> Thank you for your comments!

 Thank you for the bindings! :)
 
> Cheers,
>
> --
> Joaquín Cuenca Abela
> cuenca@celium.net
>

 Best regards,
  -Vlad



This archive was generated by hypermail 2b25 : Wed Jun 20 2001 - 07:43:49 CDT