View Single Post
Old 02-10-2009, 12:32 AM   #170
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by pixnaps View Post
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.
nrapallo is offline   Reply With Quote