Rudy Lippan > Palm-Ztxt-0.91 > Palm::Ztxt

Download:
Palm-Ztxt-0.91.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.91   Source  

NAME ^

Palm::Ztxt - Perl extension for creating and manipulating zTXTs using libztxt.

DESCRIPTION ^

First off, this module is NOT related to Palm::ZTxt module found on the weasel reader website (http://gutenpalm.sourceforge.net/files/Palm-ZText-0.1.tar.gz). The module, Palm-ZText-0.1, is a pure perl module that allows for the manipulation of zTXTs; this module however, is an XS interface to the ztxt library used by the Weasel Reader (http://gutenpalm.sourceforge.net/), with the addition that This module extends on libztext somewhat to give access to some fields that libztxt does not provide api functions for.

STATUS ^

This module seems to be stable; however, the API is not 100% finalized, it has not had much use in a production envionment, and more tests need to be written.

SYNOPSIS ^

  use Palm::Ztxt;
  my $ztxt = new Palm::Ztxt;
  $ztxt->set_title($title);
  $ztxt->set_data($data);
  $ztxt->add_bookmark($bkmark_title, $offset);
  $ztxt->add_annotation($anno_title, $offset);
  my $zbook = $ztxt->get_output();

  my $ztxt = new Palm::Ztxt;
  $ztxt->disect($zbook);
  my $title = $ztxt->get_title();
  my $book = $ztxt->get_data();
  my $bookmarks = $ztxt->get_bookmarks();
  my $get_annotations = $ztxt->get_annotations();
  $ztxt->delete_bookmark($title, $offset);
  $ztxt->delete_annotation($title, $offset, $annotation);

  # Stuff that will probably never need to be changed
  $ztxt->set_type($type);
  $type = $ztxt->get_type();
  $ztxt->attribs($attribs);
  $attribs = $ztxt->attribs();
  $ztxt->creator($creator);
  $creator = $ztxt->creator();

  # Attributes that affect the way ztext processes()/generates() the ztext
  # These can be set at any time before $ztxt->get_output() is called.

  $ztxt->{process_length};
  $ztxt->{Wbits};
  $ztxt->{CompressType};
  $ztxt->{ProcessMethod};
  $ztxt->{attribs};

API DOCUMENTATION ^

ATTRIBUTES ^

NOT IMPLEMENTED ^

The following functions are part of the makeztxt library; however, they are not implemented by this module because, well, 1. I did not feel like it, and 2. they are not really needed.

EXPORT ^

None.

KNOWN BUGS ^

SEE ALSO ^

For more information refer to the libztxt libraries that come with the Weasel Reader.

For help/questions/problems There is a mailing list set up for this module. To subscribe to the mailing lits, send an empty email to ""

If you have a web site set up for your module, mention it here.

AUTHOR ^

Rudolf Lippan <rlippan@remotelinux.com>

COPYRIGHT AND LICENSE ^

Copyright 2003-2008 by Rudolf Lippan <rlippan@remotelinux.com>

The inlcuded makeztxt library is copyright by its author. See makeztxt-1.62/COPYING and makeztxt-1.62/libztxt/* for more information.

syntax highlighting: