Quote:
Originally Posted by nrapallo
First, try installing Mobiperl per the instructions Installing all required modules on an Ubuntu installation on this webpage https://dev.mobileread.com/trac/mobiperl.
Second, get and install over Mobiperl my modified Mobiperl/html2mobi and use 'html2mobi' but rename it to 'NRhtml2mobi' as modifications are made to NOT reduce image sizes, and thus this program no longer is the same as tompe's 'html2mobi'. Mods to Mobiperl-0.0.37
=======================
- MobiPerl/MobiFile.pm (changed: my $data = MobiPerl::Util::get_image_data ($filename, 0) 
- MobiPerl/Util.pm (changed: my $rescale_large_images = 0 
- Palm/Doc.pm (added version printout code from previous version) I hope that's it!
I haven't tried this out, but it should work if you also edit the edit 'output.py' and 'common.py' to replace the 'NRhtml2mobi' command with 'perl html2mobi.pl' perhaps.
|
Right, I installed all the required perl modules. (But I wasn't sure if more was required to install mobiperl itself, besides copying the source files into a directory.)
I've now downloaded your mod version, and copied that into the PDFRead src directory (where I run 'python pdfread.py ...'), renaming the perl script html2mobi so that now 'perl NRhtml2mobi' runs (albeit with error messages because I'm not passing it the arguments it expects).
So now it's just a matter of integrating this with pdfread, right? I tried editing the two files you suggested, replacing each of the three mentions of 'NRhtml2mobi' with 'perl NRhtml2mobi' instead, but it doesn't seem to have made any difference. Any ideas?