Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 03-06-2008, 12:08 PM   #406
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,548
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by nrapallo View Post
Sorry, it is in KBytes/s. I should have said 700KBytes/s and 100KBytes/s. I'll re-edit my previous posts to correct this!

In Mbit/s it is 6 Mbit/s download and 1 Mbit/s upload.

Here's a link to my Extreme internet connection service
That's more realistic . That's pretty similar to what most ADSL customers in the UK get - a nominal 8Mbit/sec download speed, although it's generally less due to contention. On a good day (eg early on a Saturday morning) I get about 6.5Mbit downloads - about 600 kBytes/sec. Right now (pretty much the busiest time of day) I'm downloading data which is coming in about 350 kBytes/sec, or about 2.7 Mbit/sec.
HarryT is offline   Reply With Quote
Old 03-07-2008, 12:10 AM   #407
Nick31
Junior Member
Nick31 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2008
Device: Palm
Question Very Nice Tools - Thanks!

I downloaded the MobiPerl tools today (version 0.0.36) and after a bit of playing around, got it to work with my 5.10 install of ActivePerl. Finding the Palm modules to install was the only difficult part, for those I had to use CPAN and compile them myself. In any case, mobi2mobi is working fine, and I expect to have no problem writing a quick perl script to wrap around this so I can convert the many .prc files I have into .mobi ones.


The first question I have (and this may have been answered elsewhere) is about getting the cover images to display in my converted .mobi files. mobi2mobi identifies the images and sets the offsets fine, but MobiPocket Reader doesn't show the covers. Is the problem that the images in the .prc files are bitmaps and not .jpeg images? Is there a way to get this to work (other than manually extracting each one from the many ebooks I have, converting the image, and then rebuilding the ebook)?


The other question involves using the --exthtype and --exthdata options. Is the type the number or the keyword? For example, the data from a newer .mobi shows:

EXTH item: 100 - Author - 11 - Wen Spencer
EXTH item: 101 - Publisher - 10 - Baen Books

What options would set the publisher?
Code:
--exthtype 101  --exthdata "Baen Books"
or
Code:
--exthtype Publisher  --exthdata "Baen Books"
Thanks again for putting the MobiPerl scripts together, they're very well done!
Nick31 is offline   Reply With Quote
Advert
Old 03-07-2008, 05:51 AM   #408
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by Nick31 View Post
The first question I have (and this may have been answered elsewhere) is about getting the cover images to display in my converted .mobi files. mobi2mobi identifies the images and sets the offsets fine, but MobiPocket Reader doesn't show the covers. Is the problem that the images in the .prc files are bitmaps and not .jpeg images? Is there a way to get this to work (other than manually extracting each one from the many ebooks I have, converting the image, and then rebuilding the ebook)?
If you set the cover image offset correctly and the thumbnail offset then as I remember MobiPocket reader will display the images in "library" mode. But I do not think the image is displayed in the book if you do not have a link to the image in the actual book. But I might be mistaken since it was a couple of months ago I wrote and tested that code.

Quote:
Originally Posted by Nick31 View Post
The other question involves using the --exthtype and --exthdata options. Is the type the number or the keyword? For example, the data from a newer .mobi shows:

EXTH item: 100 - Author - 11 - Wen Spencer
EXTH item: 101 - Publisher - 10 - Baen Books

What options would set the publisher?
Code:
--exthtype 101  --exthdata "Baen Books"
or
Code:
--exthtype Publisher  --exthdata "Baen Books"
There is a bug in one file concerning publisher. If you search for pubisher and then replace that with publisher then the flag --publisher will work. This fix will be in the next release.

--exthtype and --exthdata was added to be able to experiment if you knew what you do. It is the type name you have to use and for "Publisher" you should use "publisher". You have to look in MobiPerl/EXTH.pm and in the hash %typename_to_type to see what name to use.

Pleae tell me if you want to set something that is missing. The intention was to add specific flags for everything that people wanted to set.
tompe is offline   Reply With Quote
Old 03-07-2008, 05:55 AM   #409
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by Nick31 View Post
I downloaded the MobiPerl tools today (version 0.0.36) and after a bit of playing around, got it to work with my 5.10 install of ActivePerl. Finding the Palm modules to install was the only difficult part, for those I had to use CPAN and compile them myself. In any case, mobi2mobi is working fine, and I expect to have no problem writing a quick perl script to wrap around this so I can convert the many .prc files I have into .mobi ones.
Which Palm module was it? And did the ActivePerl packages have the same name in 5.10 as in 5.8 (the names is on
http://www.ida.liu.se/~tompe/mobiperl/)?
tompe is offline   Reply With Quote
Old 03-10-2008, 08:49 PM   #410
Nick31
Junior Member
Nick31 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2008
Device: Palm
Let's see. I got Encode, Getopt-Mixed, Image-BMP, Image-Size, Palm-PalmDoc, and TimeDate from ActiveState's repository. GD and XML-Parser I got from Bribes. HTML-Format, P5-Palm, and Palm-Doc I got as source code off of CPAN and compiled. So yes, the names are the same for the most part.

Thanks for the info on the publisher fix and how to use the EXTH flags. (I suppose I could have looked in the code myself on those. ) I'll try some different PRC files and see if I can get the cover images to work. No luck so far, but I will figure this out one way or another!
Nick31 is offline   Reply With Quote
Advert
Old 03-11-2008, 08:06 PM   #411
Jad
Groupie
Jad has learned how to read e-booksJad has learned how to read e-booksJad has learned how to read e-booksJad has learned how to read e-booksJad has learned how to read e-booksJad has learned how to read e-booksJad has learned how to read e-books
 
Jad's Avatar
 
Posts: 152
Karma: 772
Join Date: Mar 2008
Location: Perth, Western Australia
Device: Cybook Gen3
Got a query regarding the coverimage function of Mobi2Mobi. When adding a coverimage to a PRC while converting to MOBI it appears when looking at the converted file in Mobipocket or the Cybook, that you get a double coverpage image. In the original there is a small thumbnail on the Page 1 TOC page, but after the convert I get the Coverimage on Page 0 and the thumnail becomes a full size image on the Page 1 TOC.

On another track and for purely selfish reasons, is it possible to add to your todo for Mobi2Mobi a way to extract the Thumbnail/Coverimage images as a flag option. I know the Mobi2HTML code does this and was wondering if the same code existed in M2M. I could leverage this to populate the Coverimage display in the Mobi2Mobi Windows GUI or add a thumbnail preview. I was looking at leveraging off of Mobi2HTML do to this, but if time permits.... =8)
Jad is offline   Reply With Quote
Old 03-11-2008, 08:34 PM   #412
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by Jad View Post
Got a query regarding the coverimage function of Mobi2Mobi. When adding a coverimage to a PRC while converting to MOBI it appears when looking at the converted file in Mobipocket or the Cybook, that you get a double coverpage image. In the original there is a small thumbnail on the Page 1 TOC page, but after the convert I get the Coverimage on Page 0 and the thumnail becomes a full size image on the Page 1 TOC.
Yes, this is expected behaviour, see the documentation. If a cover image is already there it will be replaced. That you see it on the TOC page is because there is a link to it in the HTML code. The Cybook displays the coverimage first and then the TOC page which has the link.

Are you really sure you get two images in Mobipocket Reader? I though the Mobipocket Reader did not display the cover image when opening the book.

Quote:
On another track and for purely selfish reasons, is it possible to add to your todo for Mobi2Mobi a way to extract the Thumbnail/Coverimage images as a flag option. I know the Mobi2HTML code does this and was wondering if the same code existed in M2M. I could leverage this to populate the Coverimage display in the Mobi2Mobi Windows GUI or add a thumbnail preview. I was looking at leveraging off of Mobi2HTML do to this, but if time permits.... =8)
Maybe. Or maybe a flag to mobi2html to only explode the images? Is this enough? Or maybe it is better with a flag that saves the cover image or the thumb nail image in a specified file. That sound like a good functionality to have and it is very easy to add. I will add it tomorrow.

Let me know if you need some other flags that are easy to add...
tompe is offline   Reply With Quote
Old 03-11-2008, 08:50 PM   #413
Jad
Groupie
Jad has learned how to read e-booksJad has learned how to read e-booksJad has learned how to read e-booksJad has learned how to read e-booksJad has learned how to read e-booksJad has learned how to read e-booksJad has learned how to read e-books
 
Jad's Avatar
 
Posts: 152
Karma: 772
Join Date: Mar 2008
Location: Perth, Western Australia
Device: Cybook Gen3
I'm running Mobipocket 6.2 Beta and I definately get the initial coverpage then I next page to get the TOC. It looks like a double up, especially on the Cybook as the replaced thumbnail is oblivously the same size now as the coverimage. Its not a problem, JSWolf noticed while testing the GUI as did I, but I'm happy that its normal behaviour.

Adding an extraction flag would be great. If you could either extract the Thumnail/Coverimage to a supplied name each or just dump them out using the original filename with an appropriate identifier _TN / _CI that would be awesome.
Jad is offline   Reply With Quote
Old 03-11-2008, 09:22 PM   #414
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
But can that bug be fixed? Having two cover images the same size is not the way the cover is supposed to work.
JSWolf is offline   Reply With Quote
Old 03-12-2008, 04:30 AM   #415
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,548
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by JSWolf View Post
But can that bug be fixed? Having two cover images the same size is not the way the cover is supposed to work.
It's not really a "bug", Jon, but the way the book is made.

With a Mobi book, the cover is specified as an entry in the "Guide" part of the OPF file (the "Guide" section is what controls navigation links).

You only get a double image if you also display the cover by having an image link within the HTML of the book itself. Don't do this, and you won't get the double image.
HarryT is offline   Reply With Quote
Old 03-12-2008, 07:20 AM   #416
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by HarryT View Post
It's not really a "bug", Jon, but the way the book is made.

With a Mobi book, the cover is specified as an entry in the "Guide" part of the OPF file (the "Guide" section is what controls navigation links).

You only get a double image if you also display the cover by having an image link within the HTML of the book itself. Don't do this, and you won't get the double image.
Exactly. And I really do not want to manipulate the html code in mobi2mobi so it is a bit hard to solve this problem. Also to see the cover image in FBReader you need the link. So my feeling is that you have to live with two images since you want program that does not display the actual cover image to work.
tompe is offline   Reply With Quote
Old 03-12-2008, 10:14 AM   #417
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Why do we end up with two cover images when we have no cover images to start with? So from what I am seeing, mobi2mobi puts in the extra link and therein lies the bug.

But I am not doing this for FBReader. I am doing this for Mobipocket. If you want, why not made a switch for FBReader. On Mobipocket, it just looks silly to have two cover images. And yes, it does make it look like a bug under mobi2mobi.
JSWolf is offline   Reply With Quote
Old 03-12-2008, 10:22 AM   #418
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,548
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
I thought I'd explained this, Jon. Let me have another go.

A normal "linked" image in a book is NOT a cover image - even if it appears on the first page of the book. A cover image is especially marked as such in the file. The "Cover Image" menu item in the Windows mobi reader will display it, and the library manager on the Gen3 will automatically display it as the book's "cover" in the library.

When you use "mobi2mobi" to add a cover image to a book, you are adding that special flag to the file which says "this image is a cover image". What the tool CAN'T do is go through the HTML code of your book and remove any OTHER references to that same image that it might find - and nor would you want it to, in many cases.

It's down to the book creator NOT to "link" the image that they want as a cover image within the normal HTML, but simply to add that image via the "Guide" section of the OPF.

With the older creation tools such as BD, there was no way to properly designate an image as being a cover image; all you could do with such tools was simply have an image link for the picture on the first page of the book. If you use "mobi2mobi" to "re-add" that same image as a cover image in such a book, you will end up with it duplicated - it'll be there once as a "real" cover image, and again as an image link within the HTML. In such a case, the correct solution would be to "explode" the book to its OEB source, edit the HTML to remove the image reference, then rebuild the book as a Mobi file with its "real" cover image.
HarryT is offline   Reply With Quote
Old 03-12-2008, 11:35 AM   #419
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by tompe View Post
Exactly. And I really do not want to manipulate the html code in mobi2mobi so it is a bit hard to solve this problem. Also to see the cover image in FBReader you need the link.
I agree about not manipulating the HTML. However, FBReader not recognizing a cover image is a bug in FBReader. I'll report it and see if this can be fixed. The iLiad's MobiPocket Reader has the same bug though (no way to show the cover image). I thought the "standard" behavior was to only show the cover image on request, which makes adding the same image to the start of the HTML a good thing, but apparently there is no standard behavior in this case - so someone is going to be unhappy.
wallcraft is offline   Reply With Quote
Old 03-12-2008, 11:51 AM   #420
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
text2mobi

Is there such a function?
JeffElkins is offline   Reply With Quote
Reply

Tags
mobi2mobi, mobils


Forum Jump

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


All times are GMT -4. The time now is 05:06 PM.


MobileRead.com is a privately owned, operated and funded community.