06-12-2009, 11:15 AM | #796 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
You may want to revise these lines in mobi2mobi:
Code:
if ($len > 65535) { print "ERROR: Record $id - Image data size definitely too large: $len\n"; } else { if ($len > 61000) { print "WARNING: Record $id - Image data size might be too large: $len\n"; } } |
06-29-2009, 04:41 PM | #797 |
Fanatic
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
|
problem with mobi2html
I ran mobi2html on a nondrm book that I had bought online. It worked fine and I could open the html version on Firefox; it consisted of text mixed with jpg files of figures. However, I could not see any source code and when I opened the html with CoffeeCup editor, there were only two lines of text - long but not enough to cover over 200 pages of text.
Is there some way the author can hide the source code? Bob |
Advert | |
|
06-29-2009, 04:53 PM | #798 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
|
06-29-2009, 05:09 PM | #799 |
Fanatic
Posts: 527
Karma: 1048576
Join Date: May 2009
Device: bebook; prs-950; nook simple touch; HTC Jetstream tablet
|
Thanks for the info! I finally opened the html with MS Word and then looked at the source code and it all showed up. I was interested in precisely how the author formatted the book and how he use styles and css in general.
I'm working on an ebook and have done some simple html work before but haven't really used css, so I'm trying to learn by examples. The source code was useful because the author obviously hadn't used the overly complex automatic code generator results such as produced by MobiCreator for the html. Bob |
06-29-2009, 05:17 PM | #800 |
Resident Curmudgeon
Posts: 73,987
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Mobipocket HTML is not a good way to learn CSS. Mobipocket formats flattens out all the CSS. I've found using Google to search for what I want to know helps. And then there is asking on MR as well.
|
Advert | |
|
06-29-2009, 06:35 PM | #801 | |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
|
|
06-30-2009, 09:29 AM | #802 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
07-03-2009, 03:13 PM | #803 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
|
07-03-2009, 05:23 PM | #804 |
GuteBook/Mobi2IMP Creator
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
|
|
07-03-2009, 06:16 PM | #805 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
|
07-12-2009, 12:31 PM | #806 |
Resident Curmudgeon
Posts: 73,987
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What is the proper syntax in mobi2mobi to add in a cover image that does not get resized and replaces what is currently the cover image or the first image wich is not linked as a cover? Also, I'd like mobi2mobi to not recompress the cover. Thanks.
Last edited by JSWolf; 07-12-2009 at 01:40 PM. |
07-13-2009, 06:31 AM | #807 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I believe with the latest version you could use:
Code:
mobi2mobi input.prc --imagemaxbytes 9999999 --outfile output.prc |
07-14-2009, 03:00 PM | #808 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
|
07-15-2009, 02:28 PM | #809 |
Resident Curmudgeon
Posts: 73,987
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Can mobi2mobi be modified to remove the first image? And is there an windows exe of the version with --imagemaxbytes?
|
07-15-2009, 02:33 PM | #810 | |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Well, probably not since the design decision for mobi2mobi it to not touch the content of the book. Just modify the headers and the images.
Quote:
|
|
Tags |
mobi2mobi, mobils |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mobi2Mobi Mobi2Mobi v0.13 - GUI for Mobiperl tools | Jad | Kindle Formats | 476 | 03-15-2015 05:51 PM |
Tools for Editing Kindle .mobi Files? | GJN | Kindle Formats | 33 | 12-26-2013 02:05 PM |
Handy Perl Script to convert HTML0 files to smartquotes | maggotb0y | Sony Reader | 0 | 04-12-2007 11:49 AM |
PRS-500 Perl tools to generate Reader content | TadW | Sony Reader Dev Corner | 0 | 01-08-2007 05:55 AM |
gmail copy (gmcp) - Perl script to copy files to/from Gmail | Colin Dunstan | Lounge | 0 | 09-04-2004 01:24 PM |