Quote:
Originally Posted by pixnaps
I seem to have the same problem using the Ubuntu command line. PdfRead outputs the html (in the temporary folder) just fine, but fails to turn it into a prc file. (Other conversions, e.g. to lrf, do work.)
Any idea how I can get it to build a .prc in Ubuntu? I've installed perl, and extracted 'mobiperl' (0.0.41) into its own directory, but I've no idea what to do with it from here. It'd be wonderful if you could make PdfRead truly cross-platform in its full functionality.
|
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.
BTW, the original author of PDFRead, Ashish Kulkarni, is working on PDFRead v2 which will hopefully be cross-platform and output .epub, which could then be used to create .prc. The timing of (any) release is not yet known.