NAME

Carmen::AP11::PrescriptStructure - Representing HTML documents generated by prescript.


SYNOPSIS

  my $dok=new Carmen::AP11::PrescriptStructure($data);
  my $pages=$dok->getNumOfPages;
  for ($i=1;$i<=$pages;$i++){
        print "Page $i: ",$dok->getData($i);
  }
  ...


DESCRIPTION

PrescriptStructure - Representing HTML documents generated by prescript. See http://www.mathematik.uni-osnabrueck.de/projects/carmen/AP11 for further description.


METHODS

new($data)
Creates a PrescriptStructure object from the HTML document contained in $data.

getNumOfPages
Returns the number of pages.

getNumOfParagraphs($page)
Returns the number of paragraphs of page $page .

getNumOfLines($page,$paragraph)
Returns the number of lines of paragraph $paragraph of page $page .

getNumberOf($page);
Returns the number of the page $page , if this information was provided in the document.

getData($page[,$paragraph[,$line]]);
Returns the content of $line in paragraph $paragraph in page $page , if all parameters are given. If $line is ommited, returns the paragraph $paragraph of page $page , where the lines are separated by <br>'s. If $paragraph is ommited, returns the page $page where the paragraphs are separated by <p>'s.


AUTHOR

Stefan Kokkelink.


COPYRIGHT

Copyright 2000/2001 Stefan Kokkelink. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.