View Single Post
Old 07-06-2009, 11:09 AM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,557
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by kovidgoyal View Post
Don't use oeb2mobi, use any2mobi on the OPF file. Also make sure you have justification turned off.
I tried this:

Code:
any2mobi --no-justification -o b.mobi a-dir/The\ Picture\ of\ Dorian\ Gray.opf
(after deleting the justification from the <style> and <body> tags of the HTML in a-dir)

And the result is a bit better, but still:

1. b.mobi is quite larger than a.mobi
2. The images in both a-dir/images and b-dir/images are not the same size
3. The HTML in b-dir still has <p style="margin-top: 1em; text-indent: 0pt"> instead of simply <p>, which is cumbersome and "wrong" (I don't want explicit top margin or indent).
4. The language of b.mobi is NEUTRAL instead of ENGLISH

Wouldn't it be possible to have a couple of commands to just unpack and pack a mobi file with no data loss? (I admit I have no real knowledge of the internal structure of mobipocket format.)
Jellby is offline   Reply With Quote