You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use 5.010;
use strict;
use warnings;
use EBook::MOBI;
my $book = EBook::MOBI->new();
$book->add_mhtml_content(q{
<p><ol> and <li> oddly number the rows with 65535.</p>
<ol>
<li>First entry</li>
<li>Second entry</li>
</ol>
}
);
$book->add_pagebreak();
$book->set_title( 'A new MOBI book generated by EBook::MOBI' );
$book->set_author('Gabor Szabo');
$book->set_encoding(':encoding(UTF-8)');
$book->print_mhtml;
$book->make();
$book->save();
The resulting file will show two list items having the order number 65535 when viewed on the desktop Kindle reader on OSX.
When reading on real Kindle, they show no numbering at all.
I wonder if this is a bug in the module, the viewer or Kindle itself?
I wonder if this
The text was updated successfully, but these errors were encountered:
I made this module once without much deeper understanding of the kindle-format (due to the lack of solutions on CPAN).
I just wrapped existing scripts into a module and did some reverse engineering until it worked.
I can't help you here.
If you find the problem, I can merge any fixes.
Perhaps I messed something up in the code from add_mhtml_content?
Maybe also the method "debug_on" helps https://metacpan.org/pod/EBook::MOBI#debug_on
As far I remember I was able to print out the compete data-structure (html) before it gets compressed into the mobi-format.
If the raw data structure also shows this behavior, something in the code is messed up!
The resulting file will show two list items having the order number 65535 when viewed on the desktop Kindle reader on OSX.
When reading on real Kindle, they show no numbering at all.
I wonder if this is a bug in the module, the viewer or Kindle itself?
I wonder if this
The text was updated successfully, but these errors were encountered: