EBook-Tools

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

  * fix_guide() normalizes reference types
  * Some advertisements are deleted from metadata automatically

 Bug fixes:
  * Lots of bugs in epub generation fixed, including automatic
    generation of NCX files
  * fix_links() no longer breaks when encountering mailto: news: or
    backwards directory traversal links.
  * fix_links() should no longer sometimes attempt to add the same
    href multiple times.
  * hrefs are decoded to give actual filesystem filenames
  * XHTML 1.1 source files are no longer backwards-converted to XHTML
    1.0
  * Mobipocket UTF-8 HTML generation bugs fixed
  * Fixed bugs that could cause Mobipocket filepos anchors to have
    wrong ids
  * 'ebook genepub' options now match the documentation
  * OPF encoding is now autodetected instead of assumed as UTF-8
  * Compatible with Perl 5.20

 Behavior changes:

lib/EBook/Tools/LZSS.pm  view on Meta::CPAN


=item * C<lengthbits>

The number of bits used to encode the length of a LZSS reference.  If
not specified defaults to 4 bits.

The eBookwise .IMP format typically compresses with 3 length bits.

Note that the actual length of the LZSS reference in bytes is greater
than the value stored in the length bits.  The actual number of bytes
returned is the decoded length bits value plus C<maxuncoded> plus 1,

=item * C<offsetbits>

The number of bits used to encode the offset to a LZSS reference.
This also determines the size of the sliding window of reference data.
If not specified, it defaults to 12 bits (4096-byte window).

The eBookwise .IMP format typically compresses with 14 offset bits
(16384-byte window).

=item * C<windowinit>

A string used to initalize the sliding window.  If specified, this
string MUST be the same length as the window size, or the subroutine
will croak.  If not specified, the window will be initialized with
spaces.

=item * C<windowstart>

The first byte position in the window that will be overwritten by
decoded text.  If not specified, defaults to 0.

=item * C<maxuncoded>

The maximum number of uncoded bytes (?).  This currently isn't used
for that purpose, but determines the actual length of a LZSS reference.

=item * C<screwybits>

If set to true and the number of offset bits is greater than 8, then
the offset bits will be read first in a chunk of 8 for the least



( run in 0.558 second using v1.01-cache-2.11-cpan-ba35b6b0368 )