The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

dtRdr::BookUtil::AnnoInsert - XML parse/populate

SYNOPSIS

  my $answer = dtRdr::BookUtil::AnnoInsert->new(
    $book, %params
    )->parse($string)->done;

Frontend

new

  my $ai = dtRdr::BookUtil::AnnoInsert->new($book, %params);

parse

  $ai->parse($string);

done

  $output = $ai->done;

XML Parsing Guts

start_handler

  $ai->start_handler($p, $el, %atts);

end_handler

  $ai->end_handler($p, $el);

do_chars

  $ai->do_chars($byte_offset);

String Handling

splice

  my $spliced = $ai->splice($string, $new_offset);

Formatting

hoppers

  $ai->hoppers;

opening_marker

  $self->opening_marker($anno);

closing_marker

  $self->closing_marker($anno);

create_marker

Build the annotation marker.

  $marker .= $self->create_marker($type, $id, %opts);

img

Create (with caching) the img string (runs the book callbacks.)

  my $string = $self->img($png_path);

start_marker

Create the start of a span marker

  my $marker = $self->start_marker($type, $id);

AUTHOR

Eric Wilhelm <ewilhelm at cpan dot org>

http://scratchcomputing.com/

COPYRIGHT

Copyright (C) 2006 Eric L. Wilhelm and OSoft, All Rights Reserved.

NO WARRANTY

Absolutely, positively NO WARRANTY, neither express or implied, is offered with this software. You use this software at your own risk. In case of loss, no person or entity owes you anything whatsoever. You have been warned.

LICENSE

The dotReader(TM) is OSI Certified Open Source Software licensed under the GNU General Public License (GPL) Version 2, June 1991. Non-encrypted and encrypted packages are usable in connection with the dotReader(TM). The ability to create, edit, or otherwise modify content of such encrypted packages is self-contained within the packages, and NOT provided by the dotReader(TM), and is addressed in a separate commercial license.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.